@bacca2095/webphone 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,58 @@
1
+ var WebPhone=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,a=(e,t)=>()=>(e&&(t=e(e=0)),t),o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,a,o,s)=>{if(a&&typeof a==`object`||typeof a==`function`)for(var c=r(a),l=0,u=c.length,d;l<u;l++)d=c[l],!i.call(e,d)&&d!==o&&t(e,d,{get:(e=>a[e]).bind(null,d),enumerable:!(s=n(a,d))||s.enumerable});return e},l=e=>i.call(e,`module.exports`)?e[`module.exports`]:c(t({},`__esModule`,{value:!0}),e);function u(e){let t=Object.create(null);for(let n of e.split(`,`))t[n]=1;return e=>e in t}var d=process.env.NODE_ENV===`production`?{}:Object.freeze({}),f=process.env.NODE_ENV===`production`?[]:Object.freeze([]),p=()=>{},m=()=>!1,h=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),g=e=>e.startsWith(`onUpdate:`),_=Object.assign,v=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},y=Object.prototype.hasOwnProperty,b=(e,t)=>y.call(e,t),x=Array.isArray,S=e=>te(e)===`[object Map]`,C=e=>te(e)===`[object Set]`,w=e=>te(e)===`[object Date]`,T=e=>te(e)===`[object RegExp]`,E=e=>typeof e==`function`,D=e=>typeof e==`string`,O=e=>typeof e==`symbol`,k=e=>typeof e==`object`&&!!e,ee=e=>(k(e)||E(e))&&E(e.then)&&E(e.catch),A=Object.prototype.toString,te=e=>A.call(e),ne=e=>te(e).slice(8,-1),re=e=>te(e)===`[object Object]`,ie=e=>D(e)&&e!==`NaN`&&e[0]!==`-`&&``+parseInt(e,10)===e,j=u(`,key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted`),M=u(`bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo`),ae=e=>{let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},oe=/-\w/g,se=ae(e=>e.replace(oe,e=>e.slice(1).toUpperCase())),ce=/\B([A-Z])/g,N=ae(e=>e.replace(ce,`-$1`).toLowerCase()),P=ae(e=>e.charAt(0).toUpperCase()+e.slice(1)),le=ae(e=>e?`on${P(e)}`:``),ue=(e,t)=>!Object.is(e,t),de=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},fe=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},pe=e=>{let t=parseFloat(e);return isNaN(t)?e:t},me=e=>{let t=D(e)?Number(e):NaN;return isNaN(t)?e:t},he,ge=()=>he||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{},_e=u(`Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol`);function ve(e){if(x(e)){let t={};for(let n=0;n<e.length;n++){let r=e[n],i=D(r)?Se(r):ve(r);if(i)for(let e in i)t[e]=i[e]}return t}else if(D(e)||k(e))return e}var ye=/;(?![^(]*\))/g,be=/:([^]+)/,xe=/\/\*[^]*?\*\//g;function Se(e){let t={};return e.replace(xe,``).split(ye).forEach(e=>{if(e){let n=e.split(be);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Ce(e){if(!e)return``;if(D(e))return e;let t=``;for(let n in e){let r=e[n];if(D(r)||typeof r==`number`){let e=n.startsWith(`--`)?n:N(n);t+=`${e}:${r};`}}return t}function we(e){let t=``;if(D(e))t=e;else if(x(e))for(let n=0;n<e.length;n++){let r=we(e[n]);r&&(t+=r+` `)}else if(k(e))for(let n in e)e[n]&&(t+=n+` `);return t.trim()}function Te(e){if(!e)return null;let{class:t,style:n}=e;return t&&!D(t)&&(e.class=we(t)),n&&(e.style=ve(n)),e}var Ee=`html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot`,De=`svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view`,Oe=`annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics`,ke=u(Ee),Ae=u(De),je=u(Oe),Me=`itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`,Ne=u(Me),F=u(Me+`,async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected`);function Pe(e){return!!e||e===``}var Fe=u(`accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap`),Ie=u(`xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xmlns:xlink,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan`);function Le(e){if(e==null)return!1;let t=typeof e;return t===`string`||t===`number`||t===`boolean`}var Re=/[ !"#$%&'()*+,./:;<=>?@[\\\]^`{|}~]/g;function ze(e,t){return e.replace(Re,e=>t?e===`"`?`\\\\\\"`:`\\\\${e}`:`\\${e}`)}function Be(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Ve(e[r],t[r]);return n}function Ve(e,t){if(e===t)return!0;let n=w(e),r=w(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=O(e),r=O(t),n||r)return e===t;if(n=x(e),r=x(t),n||r)return n&&r?Be(e,t):!1;if(n=k(e),r=k(t),n||r){if(!n||!r||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e){let r=e.hasOwnProperty(n),i=t.hasOwnProperty(n);if(r&&!i||!r&&i||!Ve(e[n],t[n]))return!1}}return String(e)===String(t)}function He(e,t){return e.findIndex(e=>Ve(e,t))}var Ue=e=>!!(e&&e.__v_isRef===!0),We=e=>D(e)?e:e==null?``:x(e)||k(e)&&(e.toString===A||!E(e.toString))?Ue(e)?We(e.value):JSON.stringify(e,Ge,2):String(e),Ge=(e,t)=>Ue(t)?Ge(e,t.value):S(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[Ke(t,r)+` =>`]=n,e),{})}:C(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>Ke(e))}:O(t)?Ke(t):k(t)&&!x(t)&&!re(t)?String(t):t,Ke=(e,t=``)=>O(e)?`Symbol(${e.description??t})`:e;function qe(e){return e==null?`initial`:typeof e==`string`?e===``?` `:e:((typeof e!=`number`||!Number.isFinite(e))&&process.env.NODE_ENV!==`production`&&console.warn(`[Vue warn] Invalid value used for CSS binding. Expected a string or a finite number but received:`,e),String(e))}function Je(e,...t){console.warn(`[Vue warn] ${e}`,...t)}var Ye,Xe=class{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&Ye&&(Ye.active?(this.parent=Ye,this.index=(Ye.scopes||=[]).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].pause();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,t;if(this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].resume();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].resume()}}run(e){if(this._active){let t=Ye;try{return Ye=this,e()}finally{Ye=t}}else process.env.NODE_ENV!==`production`&&this._warnOnRun&&Je(`cannot run an inactive effect scope.`)}on(){++this._on===1&&(this.prevScope=Ye,Ye=this)}off(){if(this._on>0&&--this._on===0){if(Ye===this)Ye=this.prevScope;else{let e=Ye;for(;e;){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.prevScope}}this.prevScope=void 0}}stop(e){if(this._active){this._active=!1;let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){let e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}};function Ze(e){return new Xe(e)}function Qe(){return Ye}function $e(e,t=!1){Ye?Ye.cleanups.push(e):process.env.NODE_ENV!==`production`&&!t&&Je(`onScopeDispose() is called when there is no active effect scope to be associated with.`)}var et,tt=new WeakSet,nt=class{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Ye&&(Ye.active?Ye.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,tt.has(this)&&(tt.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||ot(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,xt(this),lt(this);let e=et,t=_t;et=this,_t=!0;try{return this.fn()}finally{process.env.NODE_ENV!==`production`&&et!==this&&Je(`Active effect was not restored correctly - this is likely a Vue internal bug.`),ut(this),et=e,_t=t,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)pt(e);this.deps=this.depsTail=void 0,xt(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?tt.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){dt(this)&&this.run()}get dirty(){return dt(this)}},rt=0,it,at;function ot(e,t=!1){if(e.flags|=8,t){e.next=at,at=e;return}e.next=it,it=e}function st(){rt++}function ct(){if(--rt>0)return;if(at){let e=at;for(at=void 0;e;){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;it;){let t=it;for(it=void 0;t;){let n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(t){e||=t}t=n}}if(e)throw e}function lt(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ut(e){let t,n=e.depsTail,r=n;for(;r;){let e=r.prevDep;r.version===-1?(r===n&&(n=e),pt(r),mt(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function dt(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ft(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ft(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===St)||(e.globalVersion=St,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!dt(e))))return;e.flags|=2;let t=e.dep,n=et,r=_t;et=e,_t=!0;try{lt(e);let n=e.fn(e._value);(t.version===0||ue(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{et=n,_t=r,ut(e),e.flags&=-3}}function pt(e,t=!1){let{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),process.env.NODE_ENV!==`production`&&n.subsHead===e&&(n.subsHead=i),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)pt(e,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function mt(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}function ht(e,t){e.effect instanceof nt&&(e=e.effect.fn);let n=new nt(e);t&&_(n,t);try{n.run()}catch(e){throw n.stop(),e}let r=n.run.bind(n);return r.effect=n,r}function gt(e){e.effect.stop()}var _t=!0,vt=[];function yt(){vt.push(_t),_t=!1}function bt(){let e=vt.pop();_t=e===void 0?!0:e}function xt(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let e=et;et=void 0;try{t()}finally{et=e}}}var St=0,Ct=class{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},wt=class{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0,process.env.NODE_ENV!==`production`&&(this.subsHead=void 0)}track(e){if(!et||!_t||et===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==et)t=this.activeLink=new Ct(et,this),et.deps?(t.prevDep=et.depsTail,et.depsTail.nextDep=t,et.depsTail=t):et.deps=et.depsTail=t,Tt(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){let e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=et.depsTail,t.nextDep=void 0,et.depsTail.nextDep=t,et.depsTail=t,et.deps===t&&(et.deps=e)}return process.env.NODE_ENV!==`production`&&et.onTrack&&et.onTrack(_({effect:et},e)),t}trigger(e){this.version++,St++,this.notify(e)}notify(e){st();try{if(process.env.NODE_ENV!==`production`)for(let t=this.subsHead;t;t=t.nextSub)t.sub.onTrigger&&!(t.sub.flags&8)&&t.sub.onTrigger(_({effect:t.sub},e));for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{ct()}}};function Tt(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)Tt(e)}let n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),process.env.NODE_ENV!==`production`&&e.dep.subsHead===void 0&&(e.dep.subsHead=e),e.dep.subs=e}}var Et=new WeakMap,Dt=Symbol(process.env.NODE_ENV===`production`?``:`Object iterate`),Ot=Symbol(process.env.NODE_ENV===`production`?``:`Map keys iterate`),kt=Symbol(process.env.NODE_ENV===`production`?``:`Array iterate`);function At(e,t,n){if(_t&&et){let r=Et.get(e);r||Et.set(e,r=new Map);let i=r.get(n);i||(r.set(n,i=new wt),i.map=r,i.key=n),process.env.NODE_ENV===`production`?i.track():i.track({target:e,type:t,key:n})}}function jt(e,t,n,r,i,a){let o=Et.get(e);if(!o){St++;return}let s=o=>{o&&(process.env.NODE_ENV===`production`?o.trigger():o.trigger({target:e,type:t,key:n,newValue:r,oldValue:i,oldTarget:a}))};if(st(),t===`clear`)o.forEach(s);else{let i=x(e),a=i&&ie(n);if(i&&n===`length`){let e=Number(r);o.forEach((t,n)=>{(n===`length`||n===kt||!O(n)&&n>=e)&&s(t)})}else switch((n!==void 0||o.has(void 0))&&s(o.get(n)),a&&s(o.get(kt)),t){case`add`:i?a&&s(o.get(`length`)):(s(o.get(Dt)),S(e)&&s(o.get(Ot)));break;case`delete`:i||(s(o.get(Dt)),S(e)&&s(o.get(Ot)));break;case`set`:S(e)&&s(o.get(Dt));break}}ct()}function Mt(e,t){let n=Et.get(e);return n&&n.get(t)}function Nt(e){let t=I(e);return t===e?t:(At(t,`iterate`,kt),wn(e)?t:t.map(Dn))}function Pt(e){return At(e=I(e),`iterate`,kt),e}function Ft(e,t){return Cn(e)?On(Sn(e)?Dn(t):t):Dn(t)}var It={__proto__:null,[Symbol.iterator](){return Lt(this,Symbol.iterator,e=>Ft(this,e))},concat(...e){return Nt(this).concat(...e.map(e=>x(e)?Nt(e):e))},entries(){return Lt(this,`entries`,e=>(e[1]=Ft(this,e[1]),e))},every(e,t){return zt(this,`every`,e,t,void 0,arguments)},filter(e,t){return zt(this,`filter`,e,t,e=>e.map(e=>Ft(this,e)),arguments)},find(e,t){return zt(this,`find`,e,t,e=>Ft(this,e),arguments)},findIndex(e,t){return zt(this,`findIndex`,e,t,void 0,arguments)},findLast(e,t){return zt(this,`findLast`,e,t,e=>Ft(this,e),arguments)},findLastIndex(e,t){return zt(this,`findLastIndex`,e,t,void 0,arguments)},forEach(e,t){return zt(this,`forEach`,e,t,void 0,arguments)},includes(...e){return Vt(this,`includes`,e)},indexOf(...e){return Vt(this,`indexOf`,e)},join(e){return Nt(this).join(e)},lastIndexOf(...e){return Vt(this,`lastIndexOf`,e)},map(e,t){return zt(this,`map`,e,t,void 0,arguments)},pop(){return Ht(this,`pop`)},push(...e){return Ht(this,`push`,e)},reduce(e,...t){return Bt(this,`reduce`,e,t)},reduceRight(e,...t){return Bt(this,`reduceRight`,e,t)},shift(){return Ht(this,`shift`)},some(e,t){return zt(this,`some`,e,t,void 0,arguments)},splice(...e){return Ht(this,`splice`,e)},toReversed(){return Nt(this).toReversed()},toSorted(e){return Nt(this).toSorted(e)},toSpliced(...e){return Nt(this).toSpliced(...e)},unshift(...e){return Ht(this,`unshift`,e)},values(){return Lt(this,`values`,e=>Ft(this,e))}};function Lt(e,t,n){let r=Pt(e),i=r[t]();return r!==e&&!wn(e)&&(i._next=i.next,i.next=()=>{let e=i._next();return e.done||(e.value=n(e.value)),e}),i}var Rt=Array.prototype;function zt(e,t,n,r,i,a){let o=Pt(e),s=o!==e&&!wn(e),c=o[t];if(c!==Rt[t]){let t=c.apply(e,a);return s?Dn(t):t}let l=n;o!==e&&(s?l=function(t,r){return n.call(this,Ft(e,t),r,e)}:n.length>2&&(l=function(t,r){return n.call(this,t,r,e)}));let u=c.call(o,l,r);return s&&i?i(u):u}function Bt(e,t,n,r){let i=Pt(e),a=i!==e&&!wn(e),o=n,s=!1;i!==e&&(a?(s=r.length===0,o=function(t,r,i){return s&&(s=!1,t=Ft(e,t)),n.call(this,t,Ft(e,r),i,e)}):n.length>3&&(o=function(t,r,i){return n.call(this,t,r,i,e)}));let c=i[t](o,...r);return s?Ft(e,c):c}function Vt(e,t,n){let r=I(e);At(r,`iterate`,kt);let i=r[t](...n);return(i===-1||i===!1)&&Tn(n[0])?(n[0]=I(n[0]),r[t](...n)):i}function Ht(e,t,n=[]){yt(),st();let r=I(e)[t].apply(e,n);return ct(),bt(),r}var Ut=u(`__proto__,__v_isRef,__isVue`),Wt=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!==`arguments`&&e!==`caller`).map(e=>Symbol[e]).filter(O));function Gt(e){O(e)||(e=String(e));let t=I(this);return At(t,`has`,e),t.hasOwnProperty(e)}var Kt=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if(t===`__v_skip`)return e.__v_skip;let r=this._isReadonly,i=this._isShallow;if(t===`__v_isReactive`)return!r;if(t===`__v_isReadonly`)return r;if(t===`__v_isShallow`)return i;if(t===`__v_raw`)return n===(r?i?mn:pn:i?fn:dn).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let a=x(e);if(!r){let e;if(a&&(e=It[t]))return e;if(t===`hasOwnProperty`)return Gt}let o=Reflect.get(e,t,kn(e)?e:n);if((O(t)?Wt.has(t):Ut(t))||(r||At(e,`get`,t),i))return o;if(kn(o)){let e=a&&ie(t)?o:o.value;return r&&k(e)?yn(e):e}return k(o)?r?yn(o):_n(o):o}},qt=class extends Kt{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t],a=x(e)&&ie(t);if(!this._isShallow){let r=Cn(i);if(!wn(n)&&!Cn(n)&&(i=I(i),n=I(n)),!a&&kn(i)&&!kn(n))return r?(process.env.NODE_ENV!==`production`&&Je(`Set operation on key "${String(t)}" failed: target is readonly.`,e[t]),!0):(i.value=n,!0)}let o=a?Number(t)<e.length:b(e,t),s=Reflect.set(e,t,n,kn(e)?e:r);return e===I(r)&&(o?ue(n,i)&&jt(e,`set`,t,n,i):jt(e,`add`,t,n)),s}deleteProperty(e,t){let n=b(e,t),r=e[t],i=Reflect.deleteProperty(e,t);return i&&n&&jt(e,`delete`,t,void 0,r),i}has(e,t){let n=Reflect.has(e,t);return(!O(t)||!Wt.has(t))&&At(e,`has`,t),n}ownKeys(e){return At(e,`iterate`,x(e)?`length`:Dt),Reflect.ownKeys(e)}},Jt=class extends Kt{constructor(e=!1){super(!0,e)}set(e,t){return process.env.NODE_ENV!==`production`&&Je(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0}deleteProperty(e,t){return process.env.NODE_ENV!==`production`&&Je(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0}},Yt=new qt,Xt=new Jt,Zt=new qt(!0),Qt=new Jt(!0),$t=e=>e,en=e=>Reflect.getPrototypeOf(e);function tn(e,t,n){return function(...r){let i=this.__v_raw,a=I(i),o=S(a),s=e===`entries`||e===Symbol.iterator&&o,c=e===`keys`&&o,l=i[e](...r),u=n?$t:t?On:Dn;return!t&&At(a,`iterate`,c?Ot:Dt),_(Object.create(l),{next(){let{value:e,done:t}=l.next();return t?{value:e,done:t}:{value:s?[u(e[0]),u(e[1])]:u(e),done:t}}})}}function nn(e){return function(...t){if(process.env.NODE_ENV!==`production`){let n=t[0]?`on key "${t[0]}" `:``;Je(`${P(e)} operation ${n}failed: target is readonly.`,I(this))}return e===`delete`?!1:e===`clear`?void 0:this}}function rn(e,t){let n={get(n){let r=this.__v_raw,i=I(r),a=I(n);e||(ue(n,a)&&At(i,`get`,n),At(i,`get`,a));let{has:o}=en(i),s=t?$t:e?On:Dn;if(o.call(i,n))return s(r.get(n));if(o.call(i,a))return s(r.get(a));r!==i&&r.get(n)},get size(){let t=this.__v_raw;return!e&&At(I(t),`iterate`,Dt),t.size},has(t){let n=this.__v_raw,r=I(n),i=I(t);return e||(ue(t,i)&&At(r,`has`,t),At(r,`has`,i)),t===i?n.has(t):n.has(t)||n.has(i)},forEach(n,r){let i=this,a=i.__v_raw,o=I(a),s=t?$t:e?On:Dn;return!e&&At(o,`iterate`,Dt),a.forEach((e,t)=>n.call(r,s(e),s(t),i))}};return _(n,e?{add:nn(`add`),set:nn(`set`),delete:nn(`delete`),clear:nn(`clear`)}:{add(e){let n=I(this),r=en(n),i=I(e),a=!t&&!wn(e)&&!Cn(e)?i:e;return r.has.call(n,a)||ue(e,a)&&r.has.call(n,e)||ue(i,a)&&r.has.call(n,i)||(n.add(a),jt(n,`add`,a,a)),this},set(e,n){!t&&!wn(n)&&!Cn(n)&&(n=I(n));let r=I(this),{has:i,get:a}=en(r),o=i.call(r,e);o?process.env.NODE_ENV!==`production`&&un(r,i,e):(e=I(e),o=i.call(r,e));let s=a.call(r,e);return r.set(e,n),o?ue(n,s)&&jt(r,`set`,e,n,s):jt(r,`add`,e,n),this},delete(e){let t=I(this),{has:n,get:r}=en(t),i=n.call(t,e);i?process.env.NODE_ENV!==`production`&&un(t,n,e):(e=I(e),i=n.call(t,e));let a=r?r.call(t,e):void 0,o=t.delete(e);return i&&jt(t,`delete`,e,void 0,a),o},clear(){let e=I(this),t=e.size!==0,n=process.env.NODE_ENV===`production`?void 0:S(e)?new Map(e):new Set(e),r=e.clear();return t&&jt(e,`clear`,void 0,void 0,n),r}}),[`keys`,`values`,`entries`,Symbol.iterator].forEach(r=>{n[r]=tn(r,e,t)}),n}function an(e,t){let n=rn(e,t);return(t,r,i)=>r===`__v_isReactive`?!e:r===`__v_isReadonly`?e:r===`__v_raw`?t:Reflect.get(b(n,r)&&r in t?n:t,r,i)}var on={get:an(!1,!1)},sn={get:an(!1,!0)},cn={get:an(!0,!1)},ln={get:an(!0,!0)};function un(e,t,n){let r=I(n);if(r!==n&&t.call(e,r)){let t=ne(e);Je(`Reactive ${t} contains both the raw and reactive versions of the same object${t===`Map`?` as keys`:``}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}var dn=new WeakMap,fn=new WeakMap,pn=new WeakMap,mn=new WeakMap;function hn(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}function gn(e){return e.__v_skip||!Object.isExtensible(e)?0:hn(ne(e))}function _n(e){return Cn(e)?e:xn(e,!1,Yt,on,dn)}function vn(e){return xn(e,!1,Zt,sn,fn)}function yn(e){return xn(e,!0,Xt,cn,pn)}function bn(e){return xn(e,!0,Qt,ln,mn)}function xn(e,t,n,r,i){if(!k(e))return process.env.NODE_ENV!==`production`&&Je(`value cannot be made ${t?`readonly`:`reactive`}: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;let a=gn(e);if(a===0)return e;let o=i.get(e);if(o)return o;let s=new Proxy(e,a===2?r:n);return i.set(e,s),s}function Sn(e){return Cn(e)?Sn(e.__v_raw):!!(e&&e.__v_isReactive)}function Cn(e){return!!(e&&e.__v_isReadonly)}function wn(e){return!!(e&&e.__v_isShallow)}function Tn(e){return e?!!e.__v_raw:!1}function I(e){let t=e&&e.__v_raw;return t?I(t):e}function En(e){return!b(e,`__v_skip`)&&Object.isExtensible(e)&&fe(e,`__v_skip`,!0),e}var Dn=e=>k(e)?_n(e):e,On=e=>k(e)?yn(e):e;function kn(e){return e?e.__v_isRef===!0:!1}function L(e){return jn(e,!1)}function An(e){return jn(e,!0)}function jn(e,t){return kn(e)?e:new Mn(e,t)}var Mn=class{constructor(e,t){this.dep=new wt,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:I(e),this._value=t?e:Dn(e),this.__v_isShallow=t}get value(){return process.env.NODE_ENV===`production`?this.dep.track():this.dep.track({target:this,type:`get`,key:`value`}),this._value}set value(e){let t=this._rawValue,n=this.__v_isShallow||wn(e)||Cn(e);e=n?e:I(e),ue(e,t)&&(this._rawValue=e,this._value=n?e:Dn(e),process.env.NODE_ENV===`production`?this.dep.trigger():this.dep.trigger({target:this,type:`set`,key:`value`,newValue:e,oldValue:t}))}};function Nn(e){e.dep&&(process.env.NODE_ENV===`production`?e.dep.trigger():e.dep.trigger({target:e,type:`set`,key:`value`,newValue:e._value}))}function R(e){return kn(e)?e.value:e}function z(e){return E(e)?e():R(e)}var Pn={get:(e,t,n)=>t===`__v_raw`?e:R(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let i=e[t];return kn(i)&&!kn(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function Fn(e){return Sn(e)?e:new Proxy(e,Pn)}var In=class{constructor(e){this.__v_isRef=!0,this._value=void 0;let t=this.dep=new wt,{get:n,set:r}=e(t.track.bind(t),t.trigger.bind(t));this._get=n,this._set=r}get value(){return this._value=this._get()}set value(e){this._set(e)}};function Ln(e){return new In(e)}function Rn(e){process.env.NODE_ENV!==`production`&&!Tn(e)&&Je(`toRefs() expects a reactive object but received a plain one.`);let t=x(e)?Array(e.length):{};for(let n in e)t[n]=Hn(e,n);return t}var zn=class{constructor(e,t,n){this._object=e,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._key=O(t)?t:String(t),this._raw=I(e);let r=!0,i=e;if(!x(e)||O(this._key)||!ie(this._key))do r=!Tn(i)||wn(i);while(r&&(i=i.__v_raw));this._shallow=r}get value(){let e=this._object[this._key];return this._shallow&&(e=R(e)),this._value=e===void 0?this._defaultValue:e}set value(e){if(this._shallow&&kn(this._raw[this._key])){let t=this._object[this._key];if(kn(t)){t.value=e;return}}this._object[this._key]=e}get dep(){return Mt(this._raw,this._key)}},Bn=class{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}};function Vn(e,t,n){return kn(e)?e:E(e)?new Bn(e):k(e)&&arguments.length>1?Hn(e,t,n):L(e)}function Hn(e,t,n){return new zn(e,t,n)}var Un=class{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new wt(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=St-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&et!==this)return ot(this,!0),!0;process.env.NODE_ENV}get value(){let e=process.env.NODE_ENV===`production`?this.dep.track():this.dep.track({target:this,type:`get`,key:`value`});return ft(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter?this.setter(e):process.env.NODE_ENV!==`production`&&Je(`Write operation failed: computed value is readonly`)}};function Wn(e,t,n=!1){let r,i;E(e)?r=e:(r=e.get,i=e.set);let a=new Un(r,i,n);return process.env.NODE_ENV!==`production`&&t&&!n&&(a.onTrack=t.onTrack,a.onTrigger=t.onTrigger),a}var Gn={GET:`get`,HAS:`has`,ITERATE:`iterate`},Kn={SET:`set`,ADD:`add`,DELETE:`delete`,CLEAR:`clear`},qn={},Jn=new WeakMap,Yn=void 0;function Xn(){return Yn}function Zn(e,t=!1,n=Yn){if(n){let t=Jn.get(n);t||Jn.set(n,t=[]),t.push(e)}else process.env.NODE_ENV!==`production`&&!t&&Je(`onWatcherCleanup() was called when there was no active watcher to associate with.`)}function Qn(e,t,n=d){let{immediate:r,deep:i,once:a,scheduler:o,augmentJob:s,call:c}=n,l=e=>{(n.onWarn||Je)(`Invalid watch source: `,e,`A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.`)},u=e=>i?e:wn(e)||i===!1||i===0?$n(e,1):$n(e),f,m,h,g,_=!1,y=!1;if(kn(e)?(m=()=>e.value,_=wn(e)):Sn(e)?(m=()=>u(e),_=!0):x(e)?(y=!0,_=e.some(e=>Sn(e)||wn(e)),m=()=>e.map(e=>{if(kn(e))return e.value;if(Sn(e))return u(e);if(E(e))return c?c(e,2):e();process.env.NODE_ENV!==`production`&&l(e)})):E(e)?m=t?c?()=>c(e,2):e:()=>{if(h){yt();try{h()}finally{bt()}}let t=Yn;Yn=f;try{return c?c(e,3,[g]):e(g)}finally{Yn=t}}:(m=p,process.env.NODE_ENV!==`production`&&l(e)),t&&i){let e=m,t=i===!0?1/0:i;m=()=>$n(e(),t)}let b=Qe(),S=()=>{f.stop(),b&&b.active&&v(b.effects,f)};if(a&&t){let e=t;t=(...t)=>{e(...t),S()}}let C=y?Array(e.length).fill(qn):qn,w=e=>{if(!(!(f.flags&1)||!f.dirty&&!e))if(t){let e=f.run();if(i||_||(y?e.some((e,t)=>ue(e,C[t])):ue(e,C))){h&&h();let n=Yn;Yn=f;try{let n=[e,C===qn?void 0:y&&C[0]===qn?[]:C,g];C=e,c?c(t,3,n):t(...n)}finally{Yn=n}}}else f.run()};return s&&s(w),f=new nt(m),f.scheduler=o?()=>o(w,!1):w,g=e=>Zn(e,!1,f),h=f.onStop=()=>{let e=Jn.get(f);if(e){if(c)c(e,4);else for(let t of e)t();Jn.delete(f)}},process.env.NODE_ENV!==`production`&&(f.onTrack=n.onTrack,f.onTrigger=n.onTrigger),t?r?w(!0):C=f.run():o?o(w.bind(null,!0),!0):f.run(),S.pause=f.pause.bind(f),S.resume=f.resume.bind(f),S.stop=S,S}function $n(e,t=1/0,n){if(t<=0||!k(e)||e.__v_skip||(n||=new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,kn(e))$n(e.value,t,n);else if(x(e))for(let r=0;r<e.length;r++)$n(e[r],t,n);else if(C(e)||S(e))e.forEach(e=>{$n(e,t,n)});else if(re(e)){for(let r in e)$n(e[r],t,n);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&$n(e[r],t,n)}return e}var er=[];function tr(e){er.push(e)}function nr(){er.pop()}var rr=!1;function B(e,...t){if(rr)return;rr=!0,yt();let n=er.length?er[er.length-1].component:null,r=n&&n.appContext.config.warnHandler,i=ir();if(r)fr(r,n,11,[e+t.map(e=>e.toString?.call(e)??JSON.stringify(e)).join(``),n&&n.proxy,i.map(({vnode:e})=>`at <${Ll(n,e.type)}>`).join(`
2
+ `),i]);else{let n=[`[Vue warn]: ${e}`,...t];i.length&&n.push(`
3
+ `,...ar(i)),console.warn(...n)}bt(),rr=!1}function ir(){let e=er[er.length-1];if(!e)return[];let t=[];for(;e;){let n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});let r=e.component&&e.component.parent;e=r&&r.vnode}return t}function ar(e){let t=[];return e.forEach((e,n)=>{t.push(...n===0?[]:[`
4
+ `],...or(e))}),t}function or({vnode:e,recurseCount:t}){let n=t>0?`... (${t} recursive calls)`:``,r=e.component?e.component.parent==null:!1,i=` at <${Ll(e.component,e.type,r)}`,a=`>`+n;return e.props?[i,...sr(e.props),a]:[i+a]}function sr(e){let t=[],n=Object.keys(e);return n.slice(0,3).forEach(n=>{t.push(...cr(n,e[n]))}),n.length>3&&t.push(` ...`),t}function cr(e,t,n){return D(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t==`number`||typeof t==`boolean`||t==null?n?t:[`${e}=${t}`]:kn(t)?(t=cr(e,I(t.value),!0),n?t:[`${e}=Ref<`,t,`>`]):E(t)?[`${e}=fn${t.name?`<${t.name}>`:``}`]:(t=I(t),n?t:[`${e}=`,t])}function lr(e,t){process.env.NODE_ENV!==`production`&&e!==void 0&&(typeof e==`number`?isNaN(e)&&B(`${t} is NaN - the duration expression might be incorrect.`):B(`${t} is not a valid number - got ${JSON.stringify(e)}.`))}var ur={SETUP_FUNCTION:0,0:`SETUP_FUNCTION`,RENDER_FUNCTION:1,1:`RENDER_FUNCTION`,NATIVE_EVENT_HANDLER:5,5:`NATIVE_EVENT_HANDLER`,COMPONENT_EVENT_HANDLER:6,6:`COMPONENT_EVENT_HANDLER`,VNODE_HOOK:7,7:`VNODE_HOOK`,DIRECTIVE_HOOK:8,8:`DIRECTIVE_HOOK`,TRANSITION_HOOK:9,9:`TRANSITION_HOOK`,APP_ERROR_HANDLER:10,10:`APP_ERROR_HANDLER`,APP_WARN_HANDLER:11,11:`APP_WARN_HANDLER`,FUNCTION_REF:12,12:`FUNCTION_REF`,ASYNC_COMPONENT_LOADER:13,13:`ASYNC_COMPONENT_LOADER`,SCHEDULER:14,14:`SCHEDULER`,COMPONENT_UPDATE:15,15:`COMPONENT_UPDATE`,APP_UNMOUNT_CLEANUP:16,16:`APP_UNMOUNT_CLEANUP`},dr={sp:`serverPrefetch hook`,bc:`beforeCreate hook`,c:`created hook`,bm:`beforeMount hook`,m:`mounted hook`,bu:`beforeUpdate hook`,u:`updated`,bum:`beforeUnmount hook`,um:`unmounted hook`,a:`activated hook`,da:`deactivated hook`,ec:`errorCaptured hook`,rtc:`renderTracked hook`,rtg:`renderTriggered hook`,0:`setup function`,1:`render function`,2:`watcher getter`,3:`watcher callback`,4:`watcher cleanup function`,5:`native event handler`,6:`component event handler`,7:`vnode hook`,8:`directive hook`,9:`transition hook`,10:`app errorHandler`,11:`app warnHandler`,12:`ref function`,13:`async component loader`,14:`scheduler flush`,15:`component update`,16:`app unmount cleanup function`};function fr(e,t,n,r){try{return r?e(...r):e()}catch(e){mr(e,t,n)}}function pr(e,t,n,r){if(E(e)){let i=fr(e,t,n,r);return i&&ee(i)&&i.catch(e=>{mr(e,t,n)}),i}if(x(e)){let i=[];for(let a=0;a<e.length;a++)i.push(pr(e[a],t,n,r));return i}else process.env.NODE_ENV!==`production`&&B(`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof e}`)}function mr(e,t,n,r=!0){let i=t?t.vnode:null,{errorHandler:a,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||d;if(t){let r=t.parent,i=t.proxy,o=process.env.NODE_ENV===`production`?`https://vuejs.org/error-reference/#runtime-${n}`:dr[n];for(;r;){let t=r.ec;if(t){for(let n=0;n<t.length;n++)if(t[n](e,i,o)===!1)return}r=r.parent}if(a){yt(),fr(a,null,10,[e,i,o]),bt();return}}hr(e,n,i,r,o)}function hr(e,t,n,r=!0,i=!1){if(process.env.NODE_ENV!==`production`){let i=dr[t];if(n&&tr(n),B(`Unhandled error${i?` during execution of ${i}`:``}`),n&&nr(),r)throw e;console.error(e)}else if(i)throw e;else console.error(e)}var gr=[],_r=-1,vr=[],yr=null,br=0,xr=Promise.resolve(),Sr=null,Cr=100;function wr(e){let t=Sr||xr;return e?t.then(this?e.bind(this):e):t}function Tr(e){let t=_r+1,n=gr.length;for(;t<n;){let r=t+n>>>1,i=gr[r],a=jr(i);a<e||a===e&&i.flags&2?t=r+1:n=r}return t}function Er(e){if(!(e.flags&1)){let t=jr(e),n=gr[gr.length-1];!n||!(e.flags&2)&&t>=jr(n)?gr.push(e):gr.splice(Tr(t),0,e),e.flags|=1,Dr()}}function Dr(){Sr||=xr.then(Mr)}function Or(e){x(e)?vr.push(...e):yr&&e.id===-1?yr.splice(br+1,0,e):e.flags&1||(vr.push(e),e.flags|=1),Dr()}function kr(e,t,n=_r+1){for(process.env.NODE_ENV!==`production`&&(t||=new Map);n<gr.length;n++){let r=gr[n];if(r&&r.flags&2){if(e&&r.id!==e.uid||process.env.NODE_ENV!==`production`&&Nr(t,r))continue;gr.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function Ar(e){if(vr.length){let t=[...new Set(vr)].sort((e,t)=>jr(e)-jr(t));if(vr.length=0,yr){yr.push(...t);return}for(yr=t,process.env.NODE_ENV!==`production`&&(e||=new Map),br=0;br<yr.length;br++){let t=yr[br];process.env.NODE_ENV!==`production`&&Nr(e,t)||(t.flags&4&&(t.flags&=-2),t.flags&8||t(),t.flags&=-2)}yr=null,br=0}}var jr=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Mr(e){process.env.NODE_ENV!==`production`&&(e||=new Map);let t=process.env.NODE_ENV===`production`?p:t=>Nr(e,t);try{for(_r=0;_r<gr.length;_r++){let e=gr[_r];if(e&&!(e.flags&8)){if(process.env.NODE_ENV!==`production`&&t(e))continue;e.flags&4&&(e.flags&=-2),fr(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2)}}}finally{for(;_r<gr.length;_r++){let e=gr[_r];e&&(e.flags&=-2)}_r=-1,gr.length=0,Ar(e),Sr=null,(gr.length||vr.length)&&Mr(e)}}function Nr(e,t){let n=e.get(t)||0;if(n>Cr){let e=t.i,n=e&&Il(e.type);return mr(`Maximum recursive updates exceeded${n?` in component <${n}>`:``}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,null,10),!0}return e.set(t,n+1),!1}var Pr=!1,Fr=e=>{try{return Pr}finally{Pr=e}},Ir=new Map;process.env.NODE_ENV!==`production`&&(ge().__VUE_HMR_RUNTIME__={createRecord:Wr(zr),rerender:Wr(Vr),reload:Wr(Hr)});var V=new Map;function Lr(e){let t=e.type.__hmrId,n=V.get(t);n||=(zr(t,e.type),V.get(t)),n.instances.add(e)}function Rr(e){V.get(e.type.__hmrId).instances.delete(e)}function zr(e,t){return V.has(e)?!1:(V.set(e,{initialDef:Br(t),instances:new Set}),!0)}function Br(e){return Rl(e)?e.__vccOpts:e}function Vr(e,t){let n=V.get(e);n&&(n.initialDef.render=t,[...n.instances].forEach(e=>{t&&(e.render=t,Br(e.type).render=t),e.renderCache=[],Pr=!0,e.job.flags&8||e.update(),Pr=!1}))}function Hr(e,t){let n=V.get(e);if(!n)return;t=Br(t),Ur(n.initialDef,t);let r=[...n.instances];for(let e=0;e<r.length;e++){let i=r[e],a=Br(i.type),o=Ir.get(a);o||(a!==n.initialDef&&Ur(a,t),Ir.set(a,o=new Set)),o.add(i),i.appContext.propsCache.delete(i.type),i.appContext.emitsCache.delete(i.type),i.appContext.optionsCache.delete(i.type),i.ceReload?(o.add(i),i.ceReload(t.styles),o.delete(i)):i.parent?Er(()=>{i.job.flags&8||(Pr=!0,i.parent.update(),Pr=!1,o.delete(i))}):i.appContext.reload?i.appContext.reload():typeof window<`u`?window.location.reload():console.warn(`[HMR] Root or manually mounted instance modified. Full reload required.`),i.root.ce&&i!==i.root&&i.root.ce._removeChildStyle(a)}Or(()=>{Ir.clear()})}function Ur(e,t){_(e,t);for(let n in e)n!==`__file`&&!(n in t)&&delete e[n]}function Wr(e){return(t,n)=>{try{return e(t,n)}catch(e){console.error(e),console.warn(`[HMR] Something went wrong during Vue component hot-reload. Full reload required.`)}}}var Gr,Kr=[],qr=!1;function Jr(e,...t){Gr?Gr.emit(e,...t):qr||Kr.push({event:e,args:t})}function Yr(e,t){Gr=e,Gr?(Gr.enabled=!0,Kr.forEach(({event:e,args:t})=>Gr.emit(e,...t)),Kr=[]):typeof window<`u`&&window.HTMLElement&&!(window.navigator?.userAgent)?.includes(`jsdom`)?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(e=>{Yr(e,t)}),setTimeout(()=>{Gr||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,qr=!0,Kr=[])},3e3)):(qr=!0,Kr=[])}function Xr(e,t){Jr(`app:init`,e,t,{Fragment:Nc,Text:Pc,Comment:Fc,Static:Ic})}function Zr(e){Jr(`app:unmount`,e)}var Qr=ni(`component:added`),$r=ni(`component:updated`),ei=ni(`component:removed`),ti=e=>{Gr&&typeof Gr.cleanupBuffer==`function`&&!Gr.cleanupBuffer(e)&&ei(e)};function ni(e){return t=>{Jr(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}var ri=ai(`perf:start`),ii=ai(`perf:end`);function ai(e){return(t,n,r)=>{Jr(e,t.appContext.app,t.uid,t,n,r)}}function oi(e,t,n){Jr(`component:emit`,e.appContext.app,e,t,n)}var si=null,ci=null;function li(e){let t=si;return si=e,ci=e&&e.type.__scopeId||null,t}function ui(e){ci=e}function di(){ci=null}var fi=e=>H;function H(e,t=si,n){if(!t||e._n)return e;let r=(...n)=>{r._d&&Vc(-1);let i=li(t),a;try{a=e(...n)}finally{li(i),r._d&&Vc(1)}return process.env.NODE_ENV!==`production`&&$r(t),a};return r._n=!0,r._c=!0,r._d=!0,r}function pi(e){M(e)&&B(`Do not use built-in directive ids as custom directive id: `+e)}function mi(e,t){if(si===null)return process.env.NODE_ENV!==`production`&&B(`withDirectives can only be used inside render functions.`),e;let n=Nl(si),r=e.dirs||=[];for(let e=0;e<t.length;e++){let[i,a,o,s=d]=t[e];i&&(E(i)&&(i={mounted:i,updated:i}),i.deep&&$n(a),r.push({dir:i,instance:n,value:a,oldValue:void 0,arg:o,modifiers:s}))}return e}function hi(e,t,n,r){let i=e.dirs,a=t&&t.dirs;for(let o=0;o<i.length;o++){let s=i[o];a&&(s.oldValue=a[o].value);let c=s.dir[r];c&&(yt(),pr(c,n,8,[e.el,s,e,t]),bt())}}function gi(e,t){if(process.env.NODE_ENV!==`production`&&(!fl||fl.isMounted)&&B(`provide() can only be used inside setup().`),fl){let n=fl.provides,r=fl.parent&&fl.parent.provides;r===n&&(n=fl.provides=Object.create(r)),n[e]=t}}function _i(e,t,n=!1){let r=pl();if(r||cs){let i=cs?cs._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&E(t)?t.call(r&&r.proxy):t;process.env.NODE_ENV!==`production`&&B(`injection "${String(e)}" not found.`)}else process.env.NODE_ENV!==`production`&&B(`inject() can only be used inside setup() or functional components.`)}function vi(){return!!(pl()||cs)}var yi=Symbol.for(`v-scx`),bi=()=>{{let e=_i(yi);return e||process.env.NODE_ENV!==`production`&&B(`Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build.`),e}};function xi(e,t){return Ti(e,null,t)}function Si(e,t){return Ti(e,null,process.env.NODE_ENV===`production`?{flush:`post`}:_({},t,{flush:`post`}))}function Ci(e,t){return Ti(e,null,process.env.NODE_ENV===`production`?{flush:`sync`}:_({},t,{flush:`sync`}))}function wi(e,t,n){return process.env.NODE_ENV!==`production`&&!E(t)&&B("`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."),Ti(e,t,n)}function Ti(e,t,n=d){let{immediate:r,deep:i,flush:a,once:o}=n;process.env.NODE_ENV!==`production`&&!t&&(r!==void 0&&B(`watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.`),i!==void 0&&B(`watch() "deep" option is only respected when using the watch(source, callback, options?) signature.`),o!==void 0&&B(`watch() "once" option is only respected when using the watch(source, callback, options?) signature.`));let s=_({},n);process.env.NODE_ENV!==`production`&&(s.onWarn=B);let c=t&&r||!t&&a!==`post`,l;if(xl){if(a===`sync`){let e=bi();l=e.__watcherHandles||=[]}else if(!c){let e=()=>{};return e.stop=p,e.resume=p,e.pause=p,e}}let u=fl;s.call=(e,t,n)=>pr(e,u,t,n);let f=!1;a===`post`?s.scheduler=e=>{sc(e,u&&u.suspense)}:a!==`sync`&&(f=!0,s.scheduler=(e,t)=>{t?e():Er(e)}),s.augmentJob=e=>{t&&(e.flags|=4),f&&(e.flags|=2,u&&(e.id=u.uid,e.i=u))};let m=Qn(e,t,s);return xl&&(l?l.push(m):c&&m()),m}function Ei(e,t,n){let r=this.proxy,i=D(e)?e.includes(`.`)?Di(r,e):()=>r[e]:e.bind(r,r),a;E(t)?a=t:(a=t.handler,n=t);let o=gl(this),s=Ti(i,a.bind(r),n);return o(),s}function Di(e,t){let n=t.split(`.`);return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}var Oi=new WeakMap,ki=Symbol(`_vte`),Ai=e=>e.__isTeleport,ji=e=>e&&(e.disabled||e.disabled===``),Mi=e=>e&&(e.defer||e.defer===``),Ni=e=>typeof SVGElement<`u`&&e instanceof SVGElement,Pi=e=>typeof MathMLElement==`function`&&e instanceof MathMLElement,Fi=(e,t)=>{let n=e&&e.to;if(D(n))if(t){let r=t(n);return process.env.NODE_ENV!==`production`&&!r&&!ji(e)&&B(`Failed to locate Teleport target with selector "${n}". Note the target element must exist before the component is mounted - i.e. the target cannot be rendered by the component itself, and ideally should be outside of the entire Vue component tree.`),r}else return process.env.NODE_ENV!==`production`&&B(`Current renderer does not support string target for Teleports. (missing querySelector renderer option)`),null;else return process.env.NODE_ENV!==`production`&&!n&&!ji(e)&&B(`Invalid Teleport target: ${n}`),n},Ii={name:`Teleport`,__isTeleport:!0,process(e,t,n,r,i,a,o,s,c,l){let{mc:u,pc:d,pbc:f,o:{insert:p,querySelector:m,createText:h,createComment:g,parentNode:_}}=l,v=ji(t.props),{dynamicChildren:y}=t;process.env.NODE_ENV!==`production`&&Pr&&(c=!1,y=null);let b=(e,t,n)=>{e.shapeFlag&16&&u(e.children,t,n,i,a,o,s,c)},x=(e=t)=>{let n=ji(e.props),r=e.target=Fi(e.props,m),a=Vi(r,e,h,p);r?(o!==`svg`&&Ni(r)?o=`svg`:o!==`mathml`&&Pi(r)&&(o=`mathml`),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(r),n||(b(e,r,a),Bi(e,!1))):process.env.NODE_ENV!==`production`&&!n&&B(`Invalid Teleport target on mount:`,r,`(${typeof r})`)},S=e=>{let t=()=>{Oi.get(e)===t&&(Oi.delete(e),ji(e.props)&&(b(e,_(e.el)||n,e.anchor),Bi(e,!0)),x(e))};Oi.set(e,t),sc(t,a)};if(e==null){let e=t.el=process.env.NODE_ENV===`production`?h(``):g(`teleport start`),i=t.anchor=process.env.NODE_ENV===`production`?h(``):g(`teleport end`);if(p(e,n,r),p(i,n,r),Mi(t.props)||a&&a.pendingBranch){S(t);return}v&&(b(t,n,i),Bi(t,!0)),x()}else{t.el=e.el;let r=t.anchor=e.anchor,u=Oi.get(e);if(u){u.flags|=8,Oi.delete(e),S(t);return}t.targetStart=e.targetStart;let p=t.target=e.target,h=t.targetAnchor=e.targetAnchor,g=ji(e.props),_=g?n:p,b=g?r:h;if(o===`svg`||Ni(p)?o=`svg`:(o===`mathml`||Pi(p))&&(o=`mathml`),y?(f(e.dynamicChildren,y,_,i,a,o,s),mc(e,t,process.env.NODE_ENV===`production`)):c||d(e,t,_,b,i,a,o,s,!1),v)g?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Li(t,n,r,l,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){let e=t.target=Fi(t.props,m);e?Li(t,e,null,l,0):process.env.NODE_ENV!==`production`&&B(`Invalid Teleport target on update:`,p,`(${typeof p})`)}else g&&Li(t,p,h,l,1);Bi(t,v)}},remove(e,t,n,{um:r,o:{remove:i}},a){let{shapeFlag:o,children:s,anchor:c,targetStart:l,targetAnchor:u,target:d,props:f}=e,p=a||!ji(f),m=Oi.get(e);if(m&&(m.flags|=8,Oi.delete(e),p=!1),d&&(i(l),i(u)),a&&i(c),o&16)for(let e=0;e<s.length;e++){let i=s[e];r(i,t,n,p,!!i.dynamicChildren)}},move:Li,hydrate:Ri};function Li(e,t,n,{o:{insert:r},m:i},a=2){a===0&&r(e.targetAnchor,t,n);let{el:o,anchor:s,shapeFlag:c,children:l,props:u}=e,d=a===2;if(d&&r(o,t,n),!Oi.has(e)&&(!d||ji(u))&&c&16)for(let e=0;e<l.length;e++)i(l[e],t,n,2);d&&r(s,t,n)}function Ri(e,t,n,r,i,a,{o:{nextSibling:o,parentNode:s,querySelector:c,insert:l,createText:u}},d){function f(e,n){let r=n;for(;r;){if(r&&r.nodeType===8){if(r.data===`teleport start anchor`)t.targetStart=r;else if(r.data===`teleport anchor`){t.targetAnchor=r,e._lpa=t.targetAnchor&&o(t.targetAnchor);break}}r=o(r)}}function p(e,t){t.anchor=d(o(e),t,s(e),n,r,i,a)}let m=t.target=Fi(t.props,c),h=ji(t.props);if(m){let c=m._lpa||m.firstChild;t.shapeFlag&16&&(h?(p(e,t),f(m,c),t.targetAnchor||Vi(m,t,u,l,s(e)===m?e:null)):(t.anchor=o(e),f(m,c),t.targetAnchor||Vi(m,t,u,l),d(c&&o(c),t,m,n,r,i,a))),Bi(t,h)}else h&&t.shapeFlag&16&&(p(e,t),t.targetStart=e,t.targetAnchor=o(e));return t.anchor&&o(t.anchor)}var zi=Ii;function Bi(e,t){let n=e.ctx;if(n&&n.ut){let r,i;for(t?(r=e.el,i=e.anchor):(r=e.targetStart,i=e.targetAnchor);r&&r!==i;)r.nodeType===1&&r.setAttribute(`data-v-owner`,n.uid),r=r.nextSibling;n.ut()}}function Vi(e,t,n,r,i=null){let a=t.targetStart=n(``),o=t.targetAnchor=n(``);return a[ki]=o,e&&(r(a,e,i),r(o,e,i)),o}var Hi=Symbol(`_leaveCb`),Ui=Symbol(`_enterCb`);function Wi(){let e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Xa(()=>{e.isMounted=!0}),$a(()=>{e.isUnmounting=!0}),e}var Gi=[Function,Array],Ki={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Gi,onEnter:Gi,onAfterEnter:Gi,onEnterCancelled:Gi,onBeforeLeave:Gi,onLeave:Gi,onAfterLeave:Gi,onLeaveCancelled:Gi,onBeforeAppear:Gi,onAppear:Gi,onAfterAppear:Gi,onAppearCancelled:Gi},qi=e=>{let t=e.subTree;return t.component?qi(t.component):t},Ji={name:`BaseTransition`,props:Ki,setup(e,{slots:t}){let n=pl(),r=Wi();return()=>{let i=t.default&&na(t.default(),!0),a=i&&i.length?Yi(i):n.subTree?rl():void 0;if(!a)return;let o=I(e),{mode:s}=o;if(process.env.NODE_ENV!==`production`&&s&&s!==`in-out`&&s!==`out-in`&&s!==`default`&&B(`invalid <transition> mode: ${s}`),r.isLeaving)return $i(a);let c=ea(a);if(!c)return $i(a);let l=Qi(c,o,r,n,e=>l=e);c.type!==Fc&&ta(c,l);let u=n.subTree&&ea(n.subTree);if(u&&u.type!==Fc&&!Gc(u,c)&&qi(n).type!==Fc){let e=Qi(u,o,r,n);if(ta(u,e),s===`out-in`&&c.type!==Fc)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete e.afterLeave,u=void 0},$i(a);s===`in-out`&&c.type!==Fc?e.delayLeave=(e,t,n)=>{let i=Zi(r,u);i[String(u.key)]=u,e[Hi]=()=>{t(),e[Hi]=void 0,delete l.delayedLeave,u=void 0},l.delayedLeave=()=>{n(),delete l.delayedLeave,u=void 0}}:u=void 0}else u&&=void 0;return a}}};function Yi(e){let t=e[0];if(e.length>1){let n=!1;for(let r of e)if(r.type!==Fc){if(process.env.NODE_ENV!==`production`&&n){B(`<transition> can only be used on a single element or component. Use <transition-group> for lists.`);break}if(t=r,n=!0,process.env.NODE_ENV===`production`)break}}return t}var Xi=Ji;function Zi(e,t){let{leavingVNodes:n}=e,r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Qi(e,t,n,r,i){let{appear:a,mode:o,persisted:s=!1,onBeforeEnter:c,onEnter:l,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:f,onLeave:p,onAfterLeave:m,onLeaveCancelled:h,onBeforeAppear:g,onAppear:_,onAfterAppear:v,onAppearCancelled:y}=t,b=String(e.key),S=Zi(n,e),C=(e,t)=>{e&&pr(e,r,9,t)},w=(e,t)=>{let n=t[1];C(e,t),x(e)?e.every(e=>e.length<=1)&&n():e.length<=1&&n()},T={mode:o,persisted:s,beforeEnter(t){let r=c;if(!n.isMounted)if(a)r=g||c;else return;t[Hi]&&t[Hi](!0);let i=S[b];i&&Gc(e,i)&&i.el[Hi]&&i.el[Hi](),C(r,[t])},enter(t){if(!Pr&&S[b]===e)return;let r=l,i=u,o=d;if(!n.isMounted)if(a)r=_||l,i=v||u,o=y||d;else return;let s=!1;t[Ui]=e=>{s||(s=!0,C(e?o:i,[t]),T.delayedLeave&&T.delayedLeave(),t[Ui]=void 0)};let c=t[Ui].bind(null,!1);r?w(r,[t,c]):c()},leave(t,r){let i=String(e.key);if(t[Ui]&&t[Ui](!0),n.isUnmounting)return r();C(f,[t]);let a=!1;t[Hi]=n=>{a||(a=!0,r(),C(n?h:m,[t]),t[Hi]=void 0,S[i]===e&&delete S[i])};let o=t[Hi].bind(null,!1);S[i]=e,p?w(p,[t,o]):o()},clone(e){let a=Qi(e,t,n,r,i);return i&&i(a),a}};return T}function $i(e){if(Ra(e))return e=$c(e),e.children=null,e}function ea(e){if(!Ra(e))return Ai(e.type)&&e.children?Yi(e.children):e;if(e.component)return e.component.subTree;let{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&E(n.default))return n.default()}}function ta(e,t){e.shapeFlag&6&&e.component?(e.transition=t,ta(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function na(e,t=!1,n){let r=[],i=0;for(let a=0;a<e.length;a++){let o=e[a],s=n==null?o.key:String(n)+String(o.key==null?a:o.key);o.type===Nc?(o.patchFlag&128&&i++,r=r.concat(na(o.children,t,s))):(t||o.type!==Fc)&&r.push(s==null?o:$c(o,{key:s}))}if(i>1)for(let e=0;e<r.length;e++)r[e].patchFlag=-2;return r}function U(e,t){return E(e)?_({name:e.name},t,{setup:e}):e}function ra(){let e=pl();return e?(e.appContext.config.idPrefix||`v`)+`-`+e.ids[0]+ e.ids[1]++:(process.env.NODE_ENV!==`production`&&B(`useId() is called when there is no active component instance to be associated with.`),``)}function ia(e){e.ids=[e.ids[0]+ e.ids[2]+++`-`,0,0]}var aa=new WeakSet;function oa(e){let t=pl(),n=An(null);if(t){let r=t.refs===d?t.refs={}:t.refs;process.env.NODE_ENV!==`production`&&sa(r,e)?B(`useTemplateRef('${e}') already exists.`):Object.defineProperty(r,e,{enumerable:!0,get:()=>n.value,set:e=>n.value=e})}else process.env.NODE_ENV!==`production`&&B(`useTemplateRef() is called when there is no active component instance to be associated with.`);let r=process.env.NODE_ENV===`production`?n:yn(n);return process.env.NODE_ENV!==`production`&&aa.add(r),r}function sa(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}var ca=new WeakMap;function la(e,t,n,r,i=!1){if(x(e)){e.forEach((e,a)=>la(e,t&&(x(t)?t[a]:t),n,r,i));return}if(Fa(r)&&!i){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&la(e,t,n,r.component.subTree);return}let a=r.shapeFlag&4?Nl(r.component):r.el,o=i?null:a,{i:s,r:c}=e;if(process.env.NODE_ENV!==`production`&&!s){B(`Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function.`);return}let l=t&&t.r,u=s.refs===d?s.refs={}:s.refs,f=s.setupState,p=I(f),h=f===d?m:e=>process.env.NODE_ENV!==`production`&&(b(p,e)&&!kn(p[e])&&B(`Template ref "${e}" used on a non-ref value. It will not work in the production build.`),aa.has(p[e]))||sa(u,e)?!1:b(p,e),g=(e,t)=>!(process.env.NODE_ENV!==`production`&&aa.has(e)||t&&sa(u,t));if(l!=null&&l!==c){if(ua(t),D(l))u[l]=null,h(l)&&(f[l]=null);else if(kn(l)){let e=t;g(l,e.k)&&(l.value=null),e.k&&(u[e.k]=null)}}if(E(c))fr(c,s,12,[o,u]);else{let t=D(c),r=kn(c);if(t||r){let s=()=>{if(e.f){let n=t?h(c)?f[c]:u[c]:g(c)||!e.k?c.value:u[e.k];if(i)x(n)&&v(n,a);else if(x(n))n.includes(a)||n.push(a);else if(t)u[c]=[a],h(c)&&(f[c]=u[c]);else{let t=[a];g(c,e.k)&&(c.value=t),e.k&&(u[e.k]=t)}}else t?(u[c]=o,h(c)&&(f[c]=o)):r?(g(c,e.k)&&(c.value=o),e.k&&(u[e.k]=o)):process.env.NODE_ENV!==`production`&&B(`Invalid template ref type:`,c,`(${typeof c})`)};if(o){let t=()=>{s(),ca.delete(e)};t.id=-1,ca.set(e,t),sc(t,n)}else ua(e),s()}else process.env.NODE_ENV!==`production`&&B(`Invalid template ref type:`,c,`(${typeof c})`)}}function ua(e){let t=ca.get(e);t&&(t.flags|=8,ca.delete(e))}var da=!1,fa=()=>{da||=(console.error(`Hydration completed but contains mismatches.`),!0)},pa=e=>e.namespaceURI.includes(`svg`)&&e.tagName!==`foreignObject`,ma=e=>e.namespaceURI.includes(`MathML`),ha=e=>{if(e.nodeType===1){if(pa(e))return`svg`;if(ma(e))return`mathml`}},ga=e=>e.nodeType===8;function _a(e){let{mt:t,p:n,o:{patchProp:r,createText:i,nextSibling:a,parentNode:o,remove:s,insert:c,createComment:l}}=e,u=(e,t)=>{if(!t.hasChildNodes()){process.env.NODE_ENV!==`production`&&B(`Attempting to hydrate existing markup but container is empty. Performing full mount instead.`),n(null,e,t),Ar(),t._vnode=e;return}d(t.firstChild,e,null,null,null),Ar(),t._vnode=e},d=(n,r,s,l,u,h=!1)=>{h||=!!r.dynamicChildren;let b=ga(n)&&n.data===`[`,x=()=>g(n,r,s,l,u,b),{type:S,ref:C,shapeFlag:w,patchFlag:T}=r,E=n.nodeType;r.el=n,process.env.NODE_ENV!==`production`&&(fe(n,`__vnode`,r,!0),fe(n,`__vueParentComponent`,s,!0)),T===-2&&(h=!1,r.dynamicChildren=null);let D=null;switch(S){case Pc:E===3?(n.data!==r.children&&(process.env.NODE_ENV!==`production`&&B(`Hydration text mismatch in`,n.parentNode,`
5
+ - rendered on server: ${JSON.stringify(n.data)}
6
+ - expected on client: ${JSON.stringify(r.children)}`),fa(),n.data=r.children),D=a(n)):r.children===``?(c(r.el=i(``),o(n),n),D=n):D=x();break;case Fc:y(n)?(D=a(n),v(r.el=n.content.firstChild,n,s)):D=E!==8||b?x():a(n);break;case Ic:if(b&&(n=a(n),E=n.nodeType),E===1||E===3){D=n;let e=!r.children.length;for(let t=0;t<r.staticCount;t++)e&&(r.children+=D.nodeType===1?D.outerHTML:D.data),t===r.staticCount-1&&(r.anchor=D),D=a(D);return b?a(D):D}else x();break;case Nc:D=b?m(n,r,s,l,u,h):x();break;default:if(w&1)D=(E!==1||r.type.toLowerCase()!==n.tagName.toLowerCase())&&!y(n)?x():f(n,r,s,l,u,h);else if(w&6){r.slotScopeIds=u;let e=o(n);if(D=b?_(n):ga(n)&&n.data===`teleport start`?_(n,n.data,`teleport end`):a(n),t(r,e,null,s,l,ha(e),h),Fa(r)&&!r.type.__asyncResolved){let t;b?(t=J(Nc),t.anchor=D?D.previousSibling:e.lastChild):t=n.nodeType===3?tl(``):J(`div`),t.el=n,r.component.subTree=t}}else w&64?D=E===8?r.type.hydrate(n,r,s,l,u,h,e,p):x():w&128?D=r.type.hydrate(n,r,s,l,ha(o(n)),u,h,e,d):process.env.NODE_ENV!==`production`&&B(`Invalid HostVNode type:`,S,`(${typeof S})`)}return C!=null&&la(C,null,l,r),D},f=(e,t,n,i,a,o)=>{o||=!!t.dynamicChildren;let{type:c,props:l,patchFlag:u,shapeFlag:d,dirs:f,transition:m}=t,g=c===`input`||c===`option`;if(process.env.NODE_ENV!==`production`||g||u!==-1){f&&hi(t,null,n,`created`);let c=!1;if(y(e)){c=pc(null,m)&&n&&n.vnode.props&&n.vnode.props.appear;let r=e.content.firstChild;if(c){let e=r.getAttribute(`class`);e&&(r.$cls=e),m.beforeEnter(r)}v(r,e,n),t.el=e=r}if(d&16&&!(l&&(l.innerHTML||l.textContent))){let r=p(e.firstChild,t,e,n,i,a,o),c=!1;for(;r;){Ea(e,1)||(process.env.NODE_ENV!==`production`&&!c&&(B(`Hydration children mismatch on`,e,`
7
+ Server rendered element contains more child nodes than client vdom.`),c=!0),fa());let t=r;r=r.nextSibling,s(t)}}else if(d&8){let n=t.children;n[0]===`
8
+ `&&(e.tagName===`PRE`||e.tagName===`TEXTAREA`)&&(n=n.slice(1));let{textContent:r}=e;r!==n&&r!==n.replace(/\r\n|\r/g,`
9
+ `)&&(Ea(e,0)||(process.env.NODE_ENV!==`production`&&B(`Hydration text content mismatch on`,e,`
10
+ - rendered on server: ${r}
11
+ - expected on client: ${n}`),fa()),e.textContent=t.children)}if(l){if(process.env.NODE_ENV!==`production`||g||!o||u&48){let i=e.tagName.includes(`-`);for(let a in l)process.env.NODE_ENV!==`production`&&!(f&&f.some(e=>e.dir.created))&&va(e,a,l[a],t,n)&&fa(),(g&&(a.endsWith(`value`)||a===`indeterminate`)||h(a)&&!j(a)||a[0]===`.`||i&&!j(a))&&r(e,a,null,l[a],void 0,n)}else if(l.onClick)r(e,`onClick`,null,l.onClick,void 0,n);else if(u&4&&Sn(l.style))for(let e in l.style)l.style[e]}let _;(_=l&&l.onVnodeBeforeMount)&&cl(_,n,t),f&&hi(t,null,n,`beforeMount`),((_=l&&l.onVnodeMounted)||f||c)&&Ac(()=>{_&&cl(_,n,t),c&&m.enter(e),f&&hi(t,null,n,`mounted`)},i)}return e.nextSibling},p=(e,t,r,o,s,l,u)=>{u||=!!t.dynamicChildren;let f=t.children,p=f.length,m=!1;for(let t=0;t<p;t++){let h=u?f[t]:f[t]=il(f[t]),g=h.type===Pc;e?(g&&!u&&t+1<p&&il(f[t+1]).type===Pc&&(c(i(e.data.slice(h.children.length)),r,a(e)),e.data=h.children),e=d(e,h,o,s,l,u)):g&&!h.children?c(h.el=i(``),r):(Ea(r,1)||(process.env.NODE_ENV!==`production`&&!m&&(B(`Hydration children mismatch on`,r,`
12
+ Server rendered element contains fewer child nodes than client vdom.`),m=!0),fa()),n(null,h,r,null,o,s,ha(r),l))}return e},m=(e,t,n,r,i,s)=>{let{slotScopeIds:u}=t;u&&(i=i?i.concat(u):u);let d=o(e),f=p(a(e),t,d,n,r,i,s);return f&&ga(f)&&f.data===`]`?a(t.anchor=f):(fa(),c(t.anchor=l(`]`),d,f),f)},g=(e,t,r,i,c,l)=>{if(Ea(e.parentElement,1)||(process.env.NODE_ENV!==`production`&&B(`Hydration node mismatch:
13
+ - rendered on server:`,e,e.nodeType===3?`(text)`:ga(e)&&e.data===`[`?`(start of fragment)`:``,`
14
+ - expected on client:`,t.type),fa()),t.el=null,l){let t=_(e);for(;;){let n=a(e);if(n&&n!==t)s(n);else break}}let u=a(e),d=o(e);return s(e),n(null,t,d,u,r,i,ha(d),c),r&&(r.vnode.el=t.el,Es(r,t.el)),u},_=(e,t=`[`,n=`]`)=>{let r=0;for(;e;)if(e=a(e),e&&ga(e)&&(e.data===t&&r++,e.data===n)){if(r===0)return a(e);r--}return e},v=(e,t,n)=>{let r=t.parentNode;r&&r.replaceChild(e,t);let i=n;for(;i;)i.vnode.el===t&&(i.vnode.el=i.subTree.el=e),i=i.parent},y=e=>e.nodeType===1&&e.tagName===`TEMPLATE`;return[u,d]}function va(e,t,n,r,i){let a,o,s,c;if(t===`class`)e.$cls?(s=e.$cls,delete e.$cls):s=e.getAttribute(`class`),c=we(n),ba(ya(s||``),ya(c))||(a=2,o=`class`);else if(t===`style`){s=e.getAttribute(`style`)||``,c=D(n)?n:Ce(ve(n));let t=xa(s),l=xa(c);if(r.dirs)for(let{dir:e,value:t}of r.dirs)e.name===`show`&&!t&&l.set(`display`,`none`);i&&Ca(i,r,l),Sa(t,l)||(a=3,o=`style`)}else (e instanceof SVGElement&&Ie(t)||e instanceof HTMLElement&&(F(t)||Fe(t)))&&(F(t)?(s=e.hasAttribute(t),c=Pe(n)):n==null?(s=e.hasAttribute(t),c=!1):(s=e.hasAttribute(t)?e.getAttribute(t):t===`value`&&e.tagName===`TEXTAREA`?e.value:!1,c=Le(n)?String(n):!1),s!==c&&(a=4,o=t));if(a!=null&&!Ea(e,a)){let t=e=>e===!1?`(not rendered)`:`${o}="${e}"`;return B(`Hydration ${Ta[a]} mismatch on`,e,`
15
+ - rendered on server: ${t(s)}
16
+ - expected on client: ${t(c)}
17
+ Note: this mismatch is check-only. The DOM will not be rectified in production due to performance overhead.
18
+ You should fix the source of the mismatch.`),!0}return!1}function ya(e){return new Set(e.trim().split(/\s+/))}function ba(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function xa(e){let t=new Map;for(let n of e.split(`;`)){let[e,r]=n.split(`:`);e=e.trim(),r&&=r.trim(),e&&r&&t.set(e,r)}return t}function Sa(e,t){if(e.size!==t.size)return!1;for(let[n,r]of e)if(r!==t.get(n))return!1;return!0}function Ca(e,t,n){let r=e.subTree;if(e.getCssVars&&(t===r||r&&r.type===Nc&&r.children.includes(t))){let t=e.getCssVars();for(let e in t){let r=qe(t[e]);n.set(`--${ze(e,!1)}`,r)}}t===r&&e.parent&&Ca(e.parent,e.vnode,n)}var wa=`data-allow-mismatch`,Ta={0:`text`,1:`children`,2:`class`,3:`style`,4:`attribute`};function Ea(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(wa);)e=e.parentElement;let n=e&&e.getAttribute(wa);if(n==null)return!1;if(n===``)return!0;{let e=n.split(`,`);return t===0&&e.includes(`children`)?!0:e.includes(Ta[t])}}var Da=ge().requestIdleCallback||(e=>setTimeout(e,1)),Oa=ge().cancelIdleCallback||(e=>clearTimeout(e)),ka=(e=1e4)=>t=>{let n=Da(t,{timeout:e});return()=>Oa(n)};function Aa(e){let{top:t,left:n,bottom:r,right:i}=e.getBoundingClientRect(),{innerHeight:a,innerWidth:o}=window;return(t>0&&t<a||r>0&&r<a)&&(n>0&&n<o||i>0&&i<o)}var ja=e=>(t,n)=>{let r=new IntersectionObserver(e=>{for(let n of e)if(n.isIntersecting){r.disconnect(),t();break}},e);return n(e=>{if(e instanceof Element){if(Aa(e))return t(),r.disconnect(),!1;r.observe(e)}}),()=>r.disconnect()},Ma=e=>t=>{if(e){let n=matchMedia(e);if(n.matches)t();else return n.addEventListener(`change`,t,{once:!0}),()=>n.removeEventListener(`change`,t)}},Na=(e=[])=>(t,n)=>{D(e)&&(e=[e]);let r=!1,i=e=>{r||(r=!0,a(),t(),e.target.dispatchEvent(new e.constructor(e.type,e)))},a=()=>{n(t=>{for(let n of e)t.removeEventListener(n,i)})};return n(t=>{for(let n of e)t.addEventListener(n,i,{once:!0})}),a};function Pa(e,t){if(ga(e)&&e.data===`[`){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(ga(r))if(r.data===`]`){if(--n===0)break}else r.data===`[`&&n++;r=r.nextSibling}}else t(e)}var Fa=e=>!!e.type.__asyncLoader;function Ia(e){E(e)&&(e={loader:e});let{loader:t,loadingComponent:n,errorComponent:r,delay:i=200,hydrate:a,timeout:o,suspensible:s=!0,onError:c}=e,l=null,u,d=0,f=()=>(d++,l=null,p()),p=()=>{let e;return l||(e=l=t().catch(e=>{if(e=e instanceof Error?e:Error(String(e)),c)return new Promise((t,n)=>{c(e,()=>t(f()),()=>n(e),d+1)});throw e}).then(t=>{if(e!==l&&l)return l;if(process.env.NODE_ENV!==`production`&&!t&&B(`Async component loader resolved to undefined. If you are using retry(), make sure to return its return value.`),t&&(t.__esModule||t[Symbol.toStringTag]===`Module`)&&(t=t.default),process.env.NODE_ENV!==`production`&&t&&!k(t)&&!E(t))throw Error(`Invalid async component load result: ${t}`);return u=t,t}))};return U({name:`AsyncComponentWrapper`,__asyncLoader:p,__asyncHydrate(e,t,n){let r=!1;(t.bu||=[]).push(()=>r=!0);let i=()=>{if(r){process.env.NODE_ENV!==`production`&&B(`Skipping lazy hydration for component '${Il(u)||u.__file}': it was updated before lazy hydration performed.`);return}n()},o=a?()=>{let n=a(i,t=>Pa(e,t));n&&(t.bum||=[]).push(n)}:i;u?o():p().then(()=>!t.isUnmounted&&o())},get __asyncResolved(){return u},setup(){let e=fl;if(ia(e),u)return()=>La(u,e);let t=t=>{l=null,mr(t,e,13,!r)};if(s&&e.suspense||xl)return p().then(t=>()=>La(t,e)).catch(e=>(t(e),()=>r?J(r,{error:e}):null));let a=L(!1),c=L(),d=L(!!i);return i&&setTimeout(()=>{d.value=!1},i),o!=null&&setTimeout(()=>{if(!a.value&&!c.value){let e=Error(`Async component timed out after ${o}ms.`);t(e),c.value=e}},o),p().then(()=>{a.value=!0,e.parent&&Ra(e.parent.vnode)&&e.parent.update()}).catch(e=>{t(e),c.value=e}),()=>{if(a.value&&u)return La(u,e);if(c.value&&r)return J(r,{error:c.value});if(n&&!d.value)return La(n,e)}}})}function La(e,t){let{ref:n,props:r,children:i,ce:a}=t.vnode,o=J(e,r,i);return o.ref=n,o.ce=a,delete t.vnode.ce,o}var Ra=e=>e.type.__isKeepAlive,za={name:`KeepAlive`,__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){let n=pl(),r=n.ctx;if(!r.renderer)return()=>{let e=t.default&&t.default();return e&&e.length===1?e[0]:e};let i=new Map,a=new Set,o=null;process.env.NODE_ENV!==`production`&&(n.__v_cache=i);let s=n.suspense,{renderer:{p:c,m:l,um:u,o:{createElement:d}}}=r,f=d(`div`);r.activate=(e,t,n,r,i)=>{let a=e.component;l(e,t,n,0,s),c(a.vnode,e,t,n,a,s,r,e.slotScopeIds,i),sc(()=>{a.isDeactivated=!1,a.a&&de(a.a);let t=e.props&&e.props.onVnodeMounted;t&&cl(t,a.parent,e)},s),process.env.NODE_ENV!==`production`&&Qr(a)},r.deactivate=e=>{let t=e.component;_c(t.m),_c(t.a),l(e,f,null,1,s),sc(()=>{t.da&&de(t.da);let n=e.props&&e.props.onVnodeUnmounted;n&&cl(n,t.parent,e),t.isDeactivated=!0},s),process.env.NODE_ENV!==`production`&&Qr(t),process.env.NODE_ENV!==`production`&&(t.__keepAliveStorageContainer=f)};function p(e){Ga(e),u(e,n,s,!0)}function m(e){i.forEach((t,n)=>{let r=Il(Fa(t)?t.type.__asyncResolved||{}:t.type);r&&!e(r)&&h(n)})}function h(e){let t=i.get(e);t&&(!o||!Gc(t,o))?p(t):o&&Ga(o),i.delete(e),a.delete(e)}wi(()=>[e.include,e.exclude],([e,t])=>{e&&m(t=>Ba(e,t)),t&&m(e=>!Ba(t,e))},{flush:`post`,deep:!0});let g=null,_=()=>{g!=null&&(yc(n.subTree.type)?sc(()=>{i.set(g,Ka(n.subTree))},n.subTree.suspense):i.set(g,Ka(n.subTree)))};return Xa(_),Qa(_),$a(()=>{i.forEach(e=>{let{subTree:t,suspense:r}=n,i=Ka(t);if(e.type===i.type&&e.key===i.key){Ga(i);let e=i.component.da;e&&sc(e,r);return}p(e)})}),()=>{if(g=null,!t.default)return o=null;let n=t.default(),r=n[0];if(n.length>1)return process.env.NODE_ENV!==`production`&&B(`KeepAlive should contain exactly one component child.`),o=null,n;if(!Wc(r)||!(r.shapeFlag&4)&&!(r.shapeFlag&128))return o=null,r;let s=Ka(r);if(s.type===Fc)return o=null,s;let c=s.type,l=Il(Fa(s)?s.type.__asyncResolved||{}:c),{include:u,exclude:d,max:f}=e;if(u&&(!l||!Ba(u,l))||d&&l&&Ba(d,l))return s.shapeFlag&=-257,o=s,r;let p=s.key==null?c:s.key,m=i.get(p);return s.el&&(s=$c(s),r.shapeFlag&128&&(r.ssContent=s)),g=p,m?(s.el=m.el,s.component=m.component,s.transition&&ta(s,s.transition),s.shapeFlag|=512,a.delete(p),a.add(p)):(a.add(p),f&&a.size>parseInt(f,10)&&h(a.values().next().value)),s.shapeFlag|=256,o=s,yc(r.type)?r:s}}};function Ba(e,t){return x(e)?e.some(e=>Ba(e,t)):D(e)?e.split(`,`).includes(t):T(e)?(e.lastIndex=0,e.test(t)):!1}function Va(e,t){Ua(e,`a`,t)}function Ha(e,t){Ua(e,`da`,t)}function Ua(e,t,n=fl){let r=e.__wdc||=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()};if(qa(t,r,n),n){let e=n.parent;for(;e&&e.parent;)Ra(e.parent.vnode)&&Wa(r,t,n,e),e=e.parent}}function Wa(e,t,n,r){let i=qa(t,e,r,!0);eo(()=>{v(r[t],i)},n)}function Ga(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Ka(e){return e.shapeFlag&128?e.ssContent:e}function qa(e,t,n=fl,r=!1){if(n){let i=n[e]||(n[e]=[]),a=t.__weh||=(...r)=>{yt();let i=gl(n),a=pr(t,n,e,r);return i(),bt(),a};return r?i.unshift(a):i.push(a),a}else process.env.NODE_ENV!==`production`&&B(`${le(dr[e].replace(/ hook$/,``))} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`)}var Ja=e=>(t,n=fl)=>{(!xl||e===`sp`)&&qa(e,(...e)=>t(...e),n)},Ya=Ja(`bm`),Xa=Ja(`m`),Za=Ja(`bu`),Qa=Ja(`u`),$a=Ja(`bum`),eo=Ja(`um`),to=Ja(`sp`),no=Ja(`rtg`),ro=Ja(`rtc`);function io(e,t=fl){qa(`ec`,e,t)}var ao=`components`,oo=`directives`;function so(e,t){return fo(ao,e,!0,t)||e}var co=Symbol.for(`v-ndc`);function lo(e){return D(e)?fo(ao,e,!1)||e:e||co}function uo(e){return fo(oo,e)}function fo(e,t,n=!0,r=!1){let i=si||fl;if(i){let a=i.type;if(e===ao){let e=Il(a,!1);if(e&&(e===t||e===se(t)||e===P(se(t))))return a}let o=po(i[e]||a[e],t)||po(i.appContext[e],t);if(!o&&r)return a;if(process.env.NODE_ENV!==`production`&&n&&!o){let n=e===ao?`
19
+ If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.`:``;B(`Failed to resolve ${e.slice(0,-1)}: ${t}${n}`)}return o}else process.env.NODE_ENV!==`production`&&B(`resolve${P(e.slice(0,-1))} can only be used in render() or setup().`)}function po(e,t){return e&&(e[t]||e[se(t)]||e[P(se(t))])}function mo(e,t,n,r){let i,a=n&&n[r],o=x(e);if(o||D(e)){let n=o&&Sn(e),r=!1,s=!1;n&&(r=!wn(e),s=Cn(e),e=Pt(e)),i=Array(e.length);for(let n=0,o=e.length;n<o;n++)i[n]=t(r?s?On(Dn(e[n])):Dn(e[n]):e[n],n,void 0,a&&a[n])}else if(typeof e==`number`)if(process.env.NODE_ENV!==`production`&&(!Number.isInteger(e)||e<0))B(`The v-for range expects a positive integer value but got ${e}.`),i=[];else{i=Array(e);for(let n=0;n<e;n++)i[n]=t(n+1,n,void 0,a&&a[n])}else if(k(e))if(e[Symbol.iterator])i=Array.from(e,(e,n)=>t(e,n,void 0,a&&a[n]));else{let n=Object.keys(e);i=Array(n.length);for(let r=0,o=n.length;r<o;r++){let o=n[r];i[r]=t(e[o],o,r,a&&a[r])}}else i=[];return n&&(n[r]=i),i}function ho(e,t){for(let n=0;n<t.length;n++){let r=t[n];if(x(r))for(let t=0;t<r.length;t++)e[r[t].name]=r[t].fn;else r&&(e[r.name]=r.key?(...e)=>{let t=r.fn(...e);return t&&(t.key=r.key),t}:r.fn)}return e}function W(e,t,n={},r,i){if(si.ce||si.parent&&Fa(si.parent)&&si.parent.ce){let e=Object.keys(n).length>0;return t!==`default`&&(n.name=t),G(),K(Nc,null,[J(`slot`,n,r&&r())],e?-2:64)}let a=e[t];process.env.NODE_ENV!==`production`&&a&&a.length>1&&(B(`SSR-optimized slot function detected in a non-SSR-optimized render function. You need to mark this component with $dynamic-slots in the parent template.`),a=()=>[]),a&&a._c&&(a._d=!1),G();let o=a&&go(a(n)),s=n.key||o&&o.key,c=K(Nc,{key:(s&&!O(s)?s:`_${t}`)+(!o&&r?`_fb`:``)},o||(r?r():[]),o&&e._===1?64:-2);return!i&&c.scopeId&&(c.slotScopeIds=[c.scopeId+`-s`]),a&&a._c&&(a._d=!0),c}function go(e){return e.some(e=>Wc(e)?!(e.type===Fc||e.type===Nc&&!go(e.children)):!0)?e:null}function _o(e,t){let n={};if(process.env.NODE_ENV!==`production`&&!k(e))return B(`v-on with no argument expects an object value.`),n;for(let r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:le(r)]=e[r];return n}var vo=e=>e?bl(e)?Nl(e):vo(e.parent):null,yo=_(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>process.env.NODE_ENV===`production`?e.props:bn(e.props),$attrs:e=>process.env.NODE_ENV===`production`?e.attrs:bn(e.attrs),$slots:e=>process.env.NODE_ENV===`production`?e.slots:bn(e.slots),$refs:e=>process.env.NODE_ENV===`production`?e.refs:bn(e.refs),$parent:e=>vo(e.parent),$root:e=>vo(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Yo(e),$forceUpdate:e=>e.f||=()=>{Er(e.update)},$nextTick:e=>e.n||=wr.bind(e.proxy),$watch:e=>Ei.bind(e)}),bo=e=>e===`_`||e===`$`,xo=(e,t)=>e!==d&&!e.__isScriptSetup&&b(e,t),So={get({_:e},t){if(t===`__v_skip`)return!0;let{ctx:n,setupState:r,data:i,props:a,accessCache:o,type:s,appContext:c}=e;if(process.env.NODE_ENV!==`production`&&t===`__isVue`)return!0;if(t[0]!==`$`){let e=o[t];if(e!==void 0)switch(e){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return a[t]}else if(xo(r,t))return o[t]=1,r[t];else if(i!==d&&b(i,t))return o[t]=2,i[t];else if(b(a,t))return o[t]=3,a[t];else if(n!==d&&b(n,t))return o[t]=4,n[t];else Wo&&(o[t]=0)}let l=yo[t],u,f;if(l)return t===`$attrs`?(At(e.attrs,`get`,``),process.env.NODE_ENV!==`production`&&gs()):process.env.NODE_ENV!==`production`&&t===`$slots`&&At(e,`get`,t),l(e);if((u=s.__cssModules)&&(u=u[t]))return u;if(n!==d&&b(n,t))return o[t]=4,n[t];if(f=c.config.globalProperties,b(f,t))return f[t];process.env.NODE_ENV!==`production`&&si&&(!D(t)||t.indexOf(`__v`)!==0)&&(i!==d&&bo(t[0])&&b(i,t)?B(`Property ${JSON.stringify(t)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):e===si&&B(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))},set({_:e},t,n){let{data:r,setupState:i,ctx:a}=e;return xo(i,t)?(i[t]=n,!0):process.env.NODE_ENV!==`production`&&i.__isScriptSetup&&b(i,t)?(B(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):r!==d&&b(r,t)?(r[t]=n,!0):b(e.props,t)?(process.env.NODE_ENV!==`production`&&B(`Attempting to mutate prop "${t}". Props are readonly.`),!1):t[0]===`$`&&t.slice(1)in e?(process.env.NODE_ENV!==`production`&&B(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`),!1):(process.env.NODE_ENV!==`production`&&t in e.appContext.config.globalProperties?Object.defineProperty(a,t,{enumerable:!0,configurable:!0,value:n}):a[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,props:a,type:o}},s){let c;return!!(n[s]||e!==d&&s[0]!==`$`&&b(e,s)||xo(t,s)||b(a,s)||b(r,s)||b(yo,s)||b(i.config.globalProperties,s)||(c=o.__cssModules)&&c[s])},defineProperty(e,t,n){return n.get==null?b(n,`value`)&&this.set(e,t,n.value,null):e._.accessCache[t]=0,Reflect.defineProperty(e,t,n)}};process.env.NODE_ENV!==`production`&&(So.ownKeys=e=>(B(`Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead.`),Reflect.ownKeys(e)));var Co=_({},So,{get(e,t){if(t!==Symbol.unscopables)return So.get(e,t,e)},has(e,t){let n=t[0]!==`_`&&!_e(t);return process.env.NODE_ENV!==`production`&&!n&&So.has(e,t)&&B(`Property ${JSON.stringify(t)} should not start with _ which is a reserved prefix for Vue internals.`),n}});function wo(e){let t={};return Object.defineProperty(t,"_",{configurable:!0,enumerable:!1,get:()=>e}),Object.keys(yo).forEach(n=>{Object.defineProperty(t,n,{configurable:!0,enumerable:!1,get:()=>yo[n](e),set:p})}),t}function To(e){let{ctx:t,propsOptions:[n]}=e;n&&Object.keys(n).forEach(n=>{Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>e.props[n],set:p})})}function Eo(e){let{ctx:t,setupState:n}=e;Object.keys(I(n)).forEach(e=>{if(!n.__isScriptSetup){if(bo(e[0])){B(`setup() return property ${JSON.stringify(e)} should not start with "$" or "_" which are reserved prefixes for Vue internals.`);return}Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:()=>n[e],set:p})}})}var Do=e=>B(`${e}() is a compiler-hint helper that is only usable inside <script setup> of a single file component. Its arguments should be compiled away and passing it at runtime has no effect.`);function Oo(){return process.env.NODE_ENV!==`production`&&Do(`defineProps`),null}function ko(){return process.env.NODE_ENV!==`production`&&Do(`defineEmits`),null}function Ao(e){process.env.NODE_ENV!==`production`&&Do(`defineExpose`)}function jo(e){process.env.NODE_ENV!==`production`&&Do(`defineOptions`)}function Mo(){return process.env.NODE_ENV!==`production`&&Do(`defineSlots`),null}function No(){process.env.NODE_ENV!==`production`&&Do(`defineModel`)}function Po(e,t){return process.env.NODE_ENV!==`production`&&Do(`withDefaults`),null}function Fo(){return Lo(`useSlots`).slots}function Io(){return Lo(`useAttrs`).attrs}function Lo(e){let t=pl();return process.env.NODE_ENV!==`production`&&!t&&B(`${e}() called without active instance.`),t.setupContext||=Ml(t)}function Ro(e){return x(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}function zo(e,t){let n=Ro(e);for(let e in t){if(e.startsWith(`__skip`))continue;let r=n[e];r?x(r)||E(r)?r=n[e]={type:r,default:t[e]}:r.default=t[e]:r===null?r=n[e]={default:t[e]}:process.env.NODE_ENV!==`production`&&B(`props default key "${e}" has no corresponding declaration.`),r&&t[`__skip_${e}`]&&(r.skipFactory=!0)}return n}function Bo(e,t){return!e||!t?e||t:x(e)&&x(t)?e.concat(t):_({},Ro(e),Ro(t))}function Vo(e,t){let n={};for(let r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function Ho(e){let t=pl(),n=xl;process.env.NODE_ENV!==`production`&&!t&&B(`withAsyncContext called without active current instance. This is likely a bug.`);let r=e();_l(),n&&hl(!1);let i=()=>{gl(t),n&&hl(!0)},a=()=>{pl()!==t&&t.scope.off(),_l(),n&&hl(!1)};return ee(r)&&(r=r.catch(e=>{throw i(),Promise.resolve().then(()=>Promise.resolve().then(a)),e})),[r,()=>{i(),Promise.resolve().then(a)}]}function Uo(){let e=Object.create(null);return(t,n)=>{e[n]?B(`${t} property "${n}" is already defined in ${e[n]}.`):e[n]=t}}var Wo=!0;function Go(e){let t=Yo(e),n=e.proxy,r=e.ctx;Wo=!1,t.beforeCreate&&qo(t.beforeCreate,e,`bc`);let{data:i,computed:a,methods:o,watch:s,provide:c,inject:l,created:u,beforeMount:d,mounted:f,beforeUpdate:m,updated:h,activated:g,deactivated:_,beforeDestroy:v,beforeUnmount:y,destroyed:b,unmounted:S,render:C,renderTracked:w,renderTriggered:T,errorCaptured:D,serverPrefetch:O,expose:A,inheritAttrs:te,components:ne,directives:re,filters:ie}=t,j=process.env.NODE_ENV===`production`?null:Uo();if(process.env.NODE_ENV!==`production`){let[t]=e.propsOptions;if(t)for(let e in t)j(`Props`,e)}if(l&&Ko(l,r,j),o)for(let e in o){let t=o[e];E(t)?(process.env.NODE_ENV===`production`?r[e]=t.bind(n):Object.defineProperty(r,e,{value:t.bind(n),configurable:!0,enumerable:!0,writable:!0}),process.env.NODE_ENV!==`production`&&j(`Methods`,e)):process.env.NODE_ENV!==`production`&&B(`Method "${e}" has type "${typeof t}" in the component definition. Did you reference the function correctly?`)}if(i){process.env.NODE_ENV!==`production`&&!E(i)&&B(`The data option must be a function. Plain object usage is no longer supported.`);let t=i.call(n,n);if(process.env.NODE_ENV!==`production`&&ee(t)&&B(`data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>.`),!k(t))process.env.NODE_ENV!==`production`&&B(`data() should return an object.`);else if(e.data=_n(t),process.env.NODE_ENV!==`production`)for(let e in t)j(`Data`,e),bo(e[0])||Object.defineProperty(r,e,{configurable:!0,enumerable:!0,get:()=>t[e],set:p})}if(Wo=!0,a)for(let e in a){let t=a[e],i=E(t)?t.bind(n,n):E(t.get)?t.get.bind(n,n):p;process.env.NODE_ENV!==`production`&&i===p&&B(`Computed property "${e}" has no getter.`);let o=Y({get:i,set:!E(t)&&E(t.set)?t.set.bind(n):process.env.NODE_ENV===`production`?p:()=>{B(`Write operation failed: computed property "${e}" is readonly.`)}});Object.defineProperty(r,e,{enumerable:!0,configurable:!0,get:()=>o.value,set:e=>o.value=e}),process.env.NODE_ENV!==`production`&&j(`Computed`,e)}if(s)for(let e in s)Jo(s[e],r,n,e);if(c){let e=E(c)?c.call(n):c;Reflect.ownKeys(e).forEach(t=>{gi(t,e[t])})}u&&qo(u,e,`c`);function M(e,t){x(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(M(Ya,d),M(Xa,f),M(Za,m),M(Qa,h),M(Va,g),M(Ha,_),M(io,D),M(ro,w),M(no,T),M($a,y),M(eo,S),M(to,O),x(A))if(A.length){let t=e.exposed||={};A.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||={};C&&e.render===p&&(e.render=C),te!=null&&(e.inheritAttrs=te),ne&&(e.components=ne),re&&(e.directives=re),O&&ia(e)}function Ko(e,t,n=p){x(e)&&(e=es(e));for(let r in e){let i=e[r],a;a=k(i)?`default`in i?_i(i.from||r,i.default,!0):_i(i.from||r):_i(i),kn(a)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>a.value,set:e=>a.value=e}):t[r]=a,process.env.NODE_ENV!==`production`&&n(`Inject`,r)}}function qo(e,t,n){pr(x(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function Jo(e,t,n,r){let i=r.includes(`.`)?Di(n,r):()=>n[r];if(D(e)){let n=t[e];E(n)?wi(i,n):process.env.NODE_ENV!==`production`&&B(`Invalid watch handler specified by key "${e}"`,n)}else if(E(e))wi(i,e.bind(n));else if(k(e))if(x(e))e.forEach(e=>Jo(e,t,n,r));else{let r=E(e.handler)?e.handler.bind(n):t[e.handler];E(r)?wi(i,r,e):process.env.NODE_ENV!==`production`&&B(`Invalid watch handler specified by key "${e.handler}"`,r)}else process.env.NODE_ENV!==`production`&&B(`Invalid watch option: "${r}"`,e)}function Yo(e){let t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,s=a.get(t),c;return s?c=s:!i.length&&!n&&!r?c=t:(c={},i.length&&i.forEach(e=>Xo(c,e,o,!0)),Xo(c,t,o)),k(t)&&a.set(t,c),c}function Xo(e,t,n,r=!1){let{mixins:i,extends:a}=t;a&&Xo(e,a,n,!0),i&&i.forEach(t=>Xo(e,t,n,!0));for(let i in t)if(r&&i===`expose`)process.env.NODE_ENV!==`production`&&B(`"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.`);else{let r=Zo[i]||n&&n[i];e[i]=r?r(e[i],t[i]):t[i]}return e}var Zo={data:Qo,props:rs,emits:rs,methods:ns,computed:ns,beforeCreate:ts,created:ts,beforeMount:ts,mounted:ts,beforeUpdate:ts,updated:ts,beforeDestroy:ts,beforeUnmount:ts,destroyed:ts,unmounted:ts,activated:ts,deactivated:ts,errorCaptured:ts,serverPrefetch:ts,components:ns,directives:ns,watch:is,provide:Qo,inject:$o};function Qo(e,t){return t?e?function(){return _(E(e)?e.call(this,this):e,E(t)?t.call(this,this):t)}:t:e}function $o(e,t){return ns(es(e),es(t))}function es(e){if(x(e)){let t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function ts(e,t){return e?[...new Set([].concat(e,t))]:t}function ns(e,t){return e?_(Object.create(null),e,t):t}function rs(e,t){return e?x(e)&&x(t)?[...new Set([...e,...t])]:_(Object.create(null),Ro(e),Ro(t??{})):t}function is(e,t){if(!e)return t;if(!t)return e;let n=_(Object.create(null),e);for(let r in t)n[r]=ts(e[r],t[r]);return n}function as(){return{app:null,config:{isNativeTag:m,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}var os=0;function ss(e,t){return function(n,r=null){E(n)||(n=_({},n)),r!=null&&!k(r)&&(process.env.NODE_ENV!==`production`&&B(`root props passed to app.mount() must be an object.`),r=null);let i=as(),a=new WeakSet,o=[],s=!1,c=i.app={_uid:os++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:Ul,get config(){return i.config},set config(e){process.env.NODE_ENV!==`production`&&B(`app.config cannot be replaced. Modify individual options instead.`)},use(e,...t){return a.has(e)?process.env.NODE_ENV!==`production`&&B(`Plugin has already been applied to target app.`):e&&E(e.install)?(a.add(e),e.install(c,...t)):E(e)?(a.add(e),e(c,...t)):process.env.NODE_ENV!==`production`&&B(`A plugin must either be a function or an object with an "install" function.`),c},mixin(e){return i.mixins.includes(e)?process.env.NODE_ENV!==`production`&&B(`Mixin has already been applied to target app`+(e.name?`: ${e.name}`:``)):i.mixins.push(e),c},component(e,t){return process.env.NODE_ENV!==`production`&&yl(e,i.config),t?(process.env.NODE_ENV!==`production`&&i.components[e]&&B(`Component "${e}" has already been registered in target app.`),i.components[e]=t,c):i.components[e]},directive(e,t){return process.env.NODE_ENV!==`production`&&pi(e),t?(process.env.NODE_ENV!==`production`&&i.directives[e]&&B(`Directive "${e}" has already been registered in target app.`),i.directives[e]=t,c):i.directives[e]},mount(a,o,l){if(s)process.env.NODE_ENV!==`production`&&B("App has already been mounted.\nIf you want to remount the same app, move your app creation logic into a factory function and create fresh app instances for each mount - e.g. `const createMyApp = () => createApp(App)`");else{process.env.NODE_ENV!==`production`&&a.__vue_app__&&B("There is already an app instance mounted on the host container.\n If you want to mount another app on the same host container, you need to unmount the previous app by calling `app.unmount()` first.");let u=c._ceVNode||J(n,r);return u.appContext=i,l===!0?l=`svg`:l===!1&&(l=void 0),process.env.NODE_ENV!==`production`&&(i.reload=()=>{let t=$c(u);t.el=null,e(t,a,l)}),o&&t?t(u,a):e(u,a,l),s=!0,c._container=a,a.__vue_app__=c,process.env.NODE_ENV!==`production`&&(c._instance=u.component,Xr(c,Ul)),Nl(u.component)}},onUnmount(e){process.env.NODE_ENV!==`production`&&typeof e!=`function`&&B(`Expected function as first argument to app.onUnmount(), but got ${typeof e}`),o.push(e)},unmount(){s?(pr(o,c._instance,16),e(null,c._container),process.env.NODE_ENV!==`production`&&(c._instance=null,Zr(c)),delete c._container.__vue_app__):process.env.NODE_ENV!==`production`&&B(`Cannot unmount an app that is not mounted.`)},provide(e,t){return process.env.NODE_ENV!==`production`&&e in i.provides&&(b(i.provides,e)?B(`App already provides property with key "${String(e)}". It will be overwritten with the new value.`):B(`App already provides property with key "${String(e)}" inherited from its parent element. It will be overwritten with the new value.`)),i.provides[e]=t,c},runWithContext(e){let t=cs;cs=c;try{return e()}finally{cs=t}}};return c}}var cs=null;function ls(e,t,n=d){let r=pl();if(process.env.NODE_ENV!==`production`&&!r)return B(`useModel() called without active instance.`),L();let i=se(t);if(process.env.NODE_ENV!==`production`&&!r.propsOptions[0][i])return B(`useModel() called with prop "${t}" which is not declared.`),L();let a=N(t),o=us(e,i),s=Ln((o,s)=>{let c,l=d,u;return Ci(()=>{let t=e[i];ue(c,t)&&(c=t,s())}),{get(){return o(),n.get?n.get(c):c},set(e){let o=n.set?n.set(e):e;if(!ue(o,c)&&!(l!==d&&ue(e,l)))return;let f=r.vnode.props;f&&(t in f||i in f||a in f)&&(`onUpdate:${t}`in f||`onUpdate:${i}`in f||`onUpdate:${a}`in f)||(c=e,s()),r.emit(`update:${t}`,o),ue(e,o)&&ue(e,l)&&!ue(o,u)&&s(),l=e,u=o}}});return s[Symbol.iterator]=()=>{let e=0;return{next(){return e<2?{value:e++?o||d:s,done:!1}:{done:!0}}}},s}var us=(e,t)=>t===`modelValue`||t===`model-value`?e.modelModifiers:e[`${t}Modifiers`]||e[`${se(t)}Modifiers`]||e[`${N(t)}Modifiers`];function ds(e,t,...n){if(e.isUnmounted)return;let r=e.vnode.props||d;if(process.env.NODE_ENV!==`production`){let{emitsOptions:r,propsOptions:[i]}=e;if(r)if(!(t in r))(!i||!(le(se(t))in i))&&B(`Component emitted event "${t}" but it is neither declared in the emits option nor as an "${le(se(t))}" prop.`);else{let e=r[t];E(e)&&(e(...n)||B(`Invalid event arguments: event validation failed for event "${t}".`))}}let i=n,a=t.startsWith(`update:`),o=a&&us(r,t.slice(7));if(o&&(o.trim&&(i=n.map(e=>D(e)?e.trim():e)),o.number&&(i=n.map(pe))),process.env.NODE_ENV!==`production`&&oi(e,t,i),process.env.NODE_ENV!==`production`){let n=t.toLowerCase();n!==t&&r[le(n)]&&B(`Event "${n}" is emitted in component ${Ll(e,e.type)} but the handler is registered for "${t}". Note that HTML attributes are case-insensitive and you cannot use v-on to listen to camelCase events when using in-DOM templates. You should probably use "${N(t)}" instead of "${t}".`)}let s,c=r[s=le(t)]||r[s=le(se(t))];!c&&a&&(c=r[s=le(N(t))]),c&&pr(c,e,6,i);let l=r[s+`Once`];if(l){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,pr(l,e,6,i)}}var fs=new WeakMap;function ps(e,t,n=!1){let r=n?fs:t.emitsCache,i=r.get(e);if(i!==void 0)return i;let a=e.emits,o={},s=!1;if(!E(e)){let r=e=>{let n=ps(e,t,!0);n&&(s=!0,_(o,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return!a&&!s?(k(e)&&r.set(e,null),null):(x(a)?a.forEach(e=>o[e]=null):_(o,a),k(e)&&r.set(e,o),o)}function ms(e,t){return!e||!h(t)?!1:(t=t.slice(2).replace(/Once$/,``),b(e,t[0].toLowerCase()+t.slice(1))||b(e,N(t))||b(e,t))}var hs=!1;function gs(){hs=!0}function _s(e){let{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[a],slots:o,attrs:s,emit:c,render:l,renderCache:u,props:d,data:f,setupState:p,ctx:m,inheritAttrs:_}=e,v=li(e),y,b;process.env.NODE_ENV!==`production`&&(hs=!1);try{if(n.shapeFlag&4){let e=i||r,t=process.env.NODE_ENV!==`production`&&p.__isScriptSetup?new Proxy(e,{get(e,t,n){return B(`Property '${String(t)}' was accessed via 'this'. Avoid using 'this' in templates.`),Reflect.get(e,t,n)}}):e;y=il(l.call(t,e,u,process.env.NODE_ENV===`production`?d:bn(d),p,f,m)),b=s}else{let e=t;process.env.NODE_ENV!==`production`&&s===d&&gs(),y=il(e.length>1?e(process.env.NODE_ENV===`production`?d:bn(d),process.env.NODE_ENV===`production`?{attrs:s,slots:o,emit:c}:{get attrs(){return gs(),bn(s)},slots:o,emit:c}):e(process.env.NODE_ENV===`production`?d:bn(d),null)),b=t.props?s:bs(s)}}catch(t){Lc.length=0,mr(t,e,1),y=J(Fc)}let x=y,S;if(process.env.NODE_ENV!==`production`&&y.patchFlag>0&&y.patchFlag&2048&&([x,S]=vs(y)),b&&_!==!1){let e=Object.keys(b),{shapeFlag:t}=x;if(e.length){if(t&7)a&&e.some(g)&&(b=xs(b,a)),x=$c(x,b,!1,!0);else if(process.env.NODE_ENV!==`production`&&!hs&&x.type!==Fc){let e=Object.keys(s),t=[],n=[];for(let r=0,i=e.length;r<i;r++){let i=e[r];h(i)?g(i)||t.push(i[2].toLowerCase()+i.slice(3)):n.push(i)}n.length&&B(`Extraneous non-props attributes (${n.join(`, `)}) were passed to component but could not be automatically inherited because component renders fragment or text or teleport root nodes.`),t.length&&B(`Extraneous non-emits event listeners (${t.join(`, `)}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes. If the listener is intended to be a component custom event listener only, declare it using the "emits" option.`)}}}return n.dirs&&(process.env.NODE_ENV!==`production`&&!Ss(x)&&B(`Runtime directive used on component with non-element root node. The directives will not function as intended.`),x=$c(x,null,!1,!0),x.dirs=x.dirs?x.dirs.concat(n.dirs):n.dirs),n.transition&&(process.env.NODE_ENV!==`production`&&!Ss(x)&&B(`Component inside <Transition> renders non-element root node that cannot be animated.`),ta(x,n.transition)),process.env.NODE_ENV!==`production`&&S?S(x):y=x,li(v),y}var vs=e=>{let t=e.children,n=e.dynamicChildren,r=ys(t,!1);if(!r)return[e,void 0];if(process.env.NODE_ENV!==`production`&&r.patchFlag>0&&r.patchFlag&2048)return vs(r);let i=t.indexOf(r),a=n?n.indexOf(r):-1;return[il(r),r=>{t[i]=r,n&&(a>-1?n[a]=r:r.patchFlag>0&&(e.dynamicChildren=[...n,r]))}]};function ys(e,t=!0){let n;for(let r=0;r<e.length;r++){let i=e[r];if(Wc(i)){if(i.type!==Fc||i.children===`v-if`){if(n)return;if(n=i,process.env.NODE_ENV!==`production`&&t&&n.patchFlag>0&&n.patchFlag&2048)return ys(n.children)}}else return}return n}var bs=e=>{let t;for(let n in e)(n===`class`||n===`style`||h(n))&&((t||={})[n]=e[n]);return t},xs=(e,t)=>{let n={};for(let r in e)(!g(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n},Ss=e=>e.shapeFlag&7||e.type===Fc;function Cs(e,t,n){let{props:r,children:i,component:a}=e,{props:o,children:s,patchFlag:c}=t,l=a.emitsOptions;if(process.env.NODE_ENV!==`production`&&(i||s)&&Pr||t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?ws(r,o,l):!!o;if(c&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let n=e[t];if(Ts(o,r,n)&&!ms(l,n))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:r===o?!1:r?o?ws(r,o,l):!0:!!o;return!1}function ws(e,t,n){let r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){let a=r[i];if(Ts(t,e,a)&&!ms(n,a))return!0}return!1}function Ts(e,t,n){let r=e[n],i=t[n];return n===`style`&&k(r)&&k(i)?!Ve(r,i):r!==i}function Es({vnode:e,parent:t,suspense:n},r){for(;t;){let n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.suspense.vnode.el=n.el=r,e=n),n===e)(e=t.vnode).el=r,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=r)}var Ds={},Os=()=>Object.create(Ds),ks=e=>Object.getPrototypeOf(e)===Ds;function As(e,t,n,r=!1){let i={},a=Os();e.propsDefaults=Object.create(null),Ns(e,t,i,a);for(let t in e.propsOptions[0])t in i||(i[t]=void 0);process.env.NODE_ENV!==`production`&&zs(t||{},i,e),n?e.props=r?i:vn(i):e.type.props?e.props=i:e.props=a,e.attrs=a}function js(e){for(;e;){if(e.type.__hmrId)return!0;e=e.parent}}function Ms(e,t,n,r){let{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=I(i),[c]=e.propsOptions,l=!1;if(!(process.env.NODE_ENV!==`production`&&js(e))&&(r||o>0)&&!(o&16)){if(o&8){let n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let o=n[r];if(ms(e.emitsOptions,o))continue;let u=t[o];if(c)if(b(a,o))u!==a[o]&&(a[o]=u,l=!0);else{let t=se(o);i[t]=Ps(c,s,t,u,e,!1)}else u!==a[o]&&(a[o]=u,l=!0)}}}else{Ns(e,t,i,a)&&(l=!0);let r;for(let a in s)(!t||!b(t,a)&&((r=N(a))===a||!b(t,r)))&&(c?n&&(n[a]!==void 0||n[r]!==void 0)&&(i[a]=Ps(c,s,a,void 0,e,!0)):delete i[a]);if(a!==s)for(let e in a)(!t||!b(t,e))&&(delete a[e],l=!0)}l&&jt(e.attrs,`set`,``),process.env.NODE_ENV!==`production`&&zs(t||{},i,e)}function Ns(e,t,n,r){let[i,a]=e.propsOptions,o=!1,s;if(t)for(let c in t){if(j(c))continue;let l=t[c],u;i&&b(i,u=se(c))?!a||!a.includes(u)?n[u]=l:(s||={})[u]=l:ms(e.emitsOptions,c)||(!(c in r)||l!==r[c])&&(r[c]=l,o=!0)}if(a){let t=I(n),r=s||d;for(let o=0;o<a.length;o++){let s=a[o];n[s]=Ps(i,t,s,r[s],e,!b(r,s))}}return o}function Ps(e,t,n,r,i,a){let o=e[n];if(o!=null){let e=b(o,`default`);if(e&&r===void 0){let e=o.default;if(o.type!==Function&&!o.skipFactory&&E(e)){let{propsDefaults:a}=i;if(n in a)r=a[n];else{let o=gl(i);r=a[n]=e.call(null,t),o()}}else r=e;i.ce&&i.ce._setProp(n,r)}o[0]&&(a&&!e?r=!1:o[1]&&(r===``||r===N(n))&&(r=!0))}return r}var Fs=new WeakMap;function Is(e,t,n=!1){let r=n?Fs:t.propsCache,i=r.get(e);if(i)return i;let a=e.props,o={},s=[],c=!1;if(!E(e)){let r=e=>{c=!0;let[n,r]=Is(e,t,!0);_(o,n),r&&s.push(...r)};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!a&&!c)return k(e)&&r.set(e,f),f;if(x(a))for(let e=0;e<a.length;e++){process.env.NODE_ENV!==`production`&&!D(a[e])&&B(`props must be strings when using array syntax.`,a[e]);let t=se(a[e]);Ls(t)&&(o[t]=d)}else if(a){process.env.NODE_ENV!==`production`&&!k(a)&&B(`invalid props options`,a);for(let e in a){let t=se(e);if(Ls(t)){let n=a[e],r=o[t]=x(n)||E(n)?{type:n}:_({},n),i=r.type,c=!1,l=!0;if(x(i))for(let e=0;e<i.length;++e){let t=i[e],n=E(t)&&t.name;if(n===`Boolean`){c=!0;break}else n===`String`&&(l=!1)}else c=E(i)&&i.name===`Boolean`;r[0]=c,r[1]=l,(c||b(r,`default`))&&s.push(t)}}}let l=[o,s];return k(e)&&r.set(e,l),l}function Ls(e){return e[0]!==`$`&&!j(e)?!0:(process.env.NODE_ENV!==`production`&&B(`Invalid prop name: "${e}" is a reserved property.`),!1)}function Rs(e){return e===null?`null`:typeof e==`function`?e.name||``:typeof e==`object`&&e.constructor&&e.constructor.name||``}function zs(e,t,n){let r=I(t),i=n.propsOptions[0],a=Object.keys(e).map(e=>se(e));for(let e in i){let t=i[e];t!=null&&Bs(e,r[e],t,process.env.NODE_ENV===`production`?r:bn(r),!a.includes(e))}}function Bs(e,t,n,r,i){let{type:a,required:o,validator:s,skipCheck:c}=n;if(o&&i){B(`Missing required prop: "`+e+`"`);return}if(!(t==null&&!o)){if(a!=null&&a!==!0&&!c){let n=!1,r=x(a)?a:[a],i=[];for(let e=0;e<r.length&&!n;e++){let{valid:a,expectedType:o}=Hs(t,r[e]);i.push(o||``),n=a}if(!n){B(Us(e,t,i));return}}s&&!s(t,r)&&B(`Invalid prop: custom validator check failed for prop "`+e+`".`)}}var Vs=u(`String,Number,Boolean,Function,Symbol,BigInt`);function Hs(e,t){let n,r=Rs(t);if(r===`null`)n=e===null;else if(Vs(r)){let i=typeof e;n=i===r.toLowerCase(),!n&&i===`object`&&(n=e instanceof t)}else n=r===`Object`?k(e):r===`Array`?x(e):e instanceof t;return{valid:n,expectedType:r}}function Us(e,t,n){if(n.length===0)return`Prop type [] for prop "${e}" won't match anything. Did you mean to use type Array instead?`;let r=`Invalid prop: type check failed for prop "${e}". Expected ${n.map(P).join(` | `)}`,i=n[0],a=ne(t),o=Ws(t,i),s=Ws(t,a);return n.length===1&&Gs(i)&&Ks(i,a)&&(r+=` with value ${o}`),r+=`, got ${a} `,Gs(a)&&(r+=`with value ${s}.`),r}function Ws(e,t){return O(e)?e.toString():t===`String`?`"${e}"`:t===`Number`?`${Number(e)}`:`${e}`}function Gs(e){return[`string`,`number`,`boolean`].some(t=>e.toLowerCase()===t)}function Ks(...e){return e.every(e=>{let t=e.toLowerCase();return t!==`boolean`&&t!==`symbol`})}var qs=e=>e===`_`||e===`_ctx`||e===`$stable`,Js=e=>x(e)?e.map(il):[il(e)],Ys=(e,t,n)=>{if(t._n)return t;let r=H((...r)=>(process.env.NODE_ENV!==`production`&&fl&&!(n===null&&si)&&!(n&&n.root!==fl.root)&&B(`Slot "${e}" invoked outside of the render function: this will not track dependencies used in the slot. Invoke the slot function inside the render function instead.`),Js(t(...r))),n);return r._c=!1,r},Xs=(e,t,n)=>{let r=e._ctx;for(let n in e){if(qs(n))continue;let i=e[n];if(E(i))t[n]=Ys(n,i,r);else if(i!=null){process.env.NODE_ENV!==`production`&&B(`Non-function value encountered for slot "${n}". Prefer function slots for better performance.`);let e=Js(i);t[n]=()=>e}}},Zs=(e,t)=>{process.env.NODE_ENV!==`production`&&!Ra(e.vnode)&&B(`Non-function value encountered for default slot. Prefer function slots for better performance.`);let n=Js(t);e.slots.default=()=>n},Qs=(e,t,n)=>{for(let r in t)(n||!qs(r))&&(e[r]=t[r])},$s=(e,t,n)=>{let r=e.slots=Os();if(e.vnode.shapeFlag&32){let e=t._;e?(Qs(r,t,n),n&&fe(r,`_`,e,!0)):Xs(t,r)}else t&&Zs(e,t)},ec=(e,t,n)=>{let{vnode:r,slots:i}=e,a=!0,o=d;if(r.shapeFlag&32){let r=t._;r?process.env.NODE_ENV!==`production`&&Pr?(Qs(i,t,n),jt(e,`set`,`$slots`)):n&&r===1?a=!1:Qs(i,t,n):(a=!t.$stable,Xs(t,i)),o=t}else t&&(Zs(e,t),o={default:1});if(a)for(let e in i)!qs(e)&&o[e]==null&&delete i[e]},tc,nc;function rc(e,t){e.appContext.config.performance&&ac()&&nc.mark(`vue-${t}-${e.uid}`),process.env.NODE_ENV!==`production`&&ri(e,t,ac()?nc.now():Date.now())}function ic(e,t){if(e.appContext.config.performance&&ac()){let n=`vue-${t}-${e.uid}`,r=n+`:end`,i=`<${Ll(e,e.type)}> ${t}`;nc.mark(r),nc.measure(i,n,r),nc.clearMeasures(i),nc.clearMarks(n),nc.clearMarks(r)}process.env.NODE_ENV!==`production`&&ii(e,t,ac()?nc.now():Date.now())}function ac(){return tc===void 0&&(typeof window<`u`&&window.performance?(tc=!0,nc=window.performance):tc=!1),tc}function oc(){let e=[];if(process.env.NODE_ENV!==`production`&&e.length){let t=e.length>1;console.warn(`Feature flag${t?`s`:``} ${e.join(`, `)} ${t?`are`:`is`} not explicitly defined. You are running the esm-bundler build of Vue, which expects these compile-time feature flags to be globally injected via the bundler config in order to get better tree-shaking in the production bundle.
20
+
21
+ For more details, see https://link.vuejs.org/feature-flags.`)}}var sc=Ac;function cc(e){return uc(e)}function lc(e){return uc(e,_a)}function uc(e,t){oc();let n=ge();n.__VUE__=!0,process.env.NODE_ENV!==`production`&&Yr(n.__VUE_DEVTOOLS_GLOBAL_HOOK__,n);let{insert:r,remove:i,patchProp:a,createElement:o,createText:s,createComment:c,setText:l,setElementText:u,parentNode:m,nextSibling:h,setScopeId:g=p,insertStaticContent:_}=e,v=(e,t,n,r=null,i=null,a=null,o=void 0,s=null,c=process.env.NODE_ENV!==`production`&&Pr?!1:!!t.dynamicChildren)=>{if(e===t)return;e&&!Gc(e,t)&&(r=he(e),P(e,i,a,!0),e=null),t.patchFlag===-2&&(c=!1,t.dynamicChildren=null);let{type:l,ref:u,shapeFlag:d}=t;switch(l){case Pc:y(e,t,n,r);break;case Fc:b(e,t,n,r);break;case Ic:e==null?x(t,n,r,o):process.env.NODE_ENV!==`production`&&S(e,t,n,o);break;case Nc:te(e,t,n,r,i,a,o,s,c);break;default:d&1?T(e,t,n,r,i,a,o,s,c):d&6?ne(e,t,n,r,i,a,o,s,c):d&64||d&128?l.process(e,t,n,r,i,a,o,s,c,ye):process.env.NODE_ENV!==`production`&&B(`Invalid VNode type:`,l,`(${typeof l})`)}u!=null&&i?la(u,e&&e.ref,a,t||e,!t):u==null&&e&&e.ref!=null&&la(e.ref,null,a,e,!0)},y=(e,t,n,i)=>{if(e==null)r(t.el=s(t.children),n,i);else{let n=t.el=e.el;t.children!==e.children&&l(n,t.children)}},b=(e,t,n,i)=>{e==null?r(t.el=c(t.children||``),n,i):t.el=e.el},x=(e,t,n,r)=>{[e.el,e.anchor]=_(e.children,t,n,r,e.el,e.anchor)},S=(e,t,n,r)=>{if(t.children!==e.children){let i=h(e.anchor);w(e),[t.el,t.anchor]=_(t.children,n,i,r)}else t.el=e.el,t.anchor=e.anchor},C=({el:e,anchor:t},n,i)=>{let a;for(;e&&e!==t;)a=h(e),r(e,n,i),e=a;r(t,n,i)},w=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=h(e),i(e),e=n;i(t)},T=(e,t,n,r,i,a,o,s,c)=>{if(t.type===`svg`?o=`svg`:t.type===`math`&&(o=`mathml`),e==null)E(t,n,r,i,a,o,s,c);else{let n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),k(e,t,i,a,o,s,c)}finally{n&&n._endPatch()}}},E=(e,t,n,i,s,c,l,d)=>{let f,p,{props:m,shapeFlag:h,transition:g,dirs:_}=e;if(f=e.el=o(e.type,c,m&&m.is,m),h&8?u(f,e.children):h&16&&O(e.children,f,null,i,s,dc(e,c),l,d),_&&hi(e,null,i,`created`),D(f,e,e.scopeId,l,i),m){for(let e in m)e!==`value`&&!j(e)&&a(f,e,null,m[e],c,i);`value`in m&&a(f,`value`,null,m.value,c),(p=m.onVnodeBeforeMount)&&cl(p,i,e)}process.env.NODE_ENV!==`production`&&(fe(f,`__vnode`,e,!0),fe(f,`__vueParentComponent`,i,!0)),_&&hi(e,null,i,`beforeMount`);let v=pc(s,g);if(v&&g.beforeEnter(f),r(f,t,n),(p=m&&m.onVnodeMounted)||v||_){let t=process.env.NODE_ENV!==`production`&&Pr;sc(()=>{let n;process.env.NODE_ENV!==`production`&&(n=Fr(t));try{p&&cl(p,i,e),v&&g.enter(f),_&&hi(e,null,i,`mounted`)}finally{process.env.NODE_ENV!==`production`&&Fr(n)}},s)}},D=(e,t,n,r,i)=>{if(n&&g(e,n),r)for(let t=0;t<r.length;t++)g(e,r[t]);if(i){let n=i.subTree;if(process.env.NODE_ENV!==`production`&&n.patchFlag>0&&n.patchFlag&2048&&(n=ys(n.children)||n),t===n||yc(n.type)&&(n.ssContent===t||n.ssFallback===t)){let t=i.vnode;D(e,t,t.scopeId,t.slotScopeIds,i.parent)}}},O=(e,t,n,r,i,a,o,s,c=0)=>{for(let l=c;l<e.length;l++)v(null,e[l]=s?al(e[l]):il(e[l]),t,n,r,i,a,o,s)},k=(e,t,n,r,i,o,s)=>{let c=t.el=e.el;process.env.NODE_ENV!==`production`&&(c.__vnode=t);let{patchFlag:l,dynamicChildren:f,dirs:p}=t;l|=e.patchFlag&16;let m=e.props||d,h=t.props||d,g;if(n&&fc(n,!1),(g=h.onVnodeBeforeUpdate)&&cl(g,n,t,e),p&&hi(t,e,n,`beforeUpdate`),n&&fc(n,!0),process.env.NODE_ENV!==`production`&&Pr&&(l=0,s=!1,f=null),(m.innerHTML&&h.innerHTML==null||m.textContent&&h.textContent==null)&&u(c,``),f?(ee(e.dynamicChildren,f,c,n,r,dc(t,i),o),process.env.NODE_ENV!==`production`&&mc(e,t)):s||oe(e,t,c,null,n,r,dc(t,i),o,!1),l>0){if(l&16)A(c,m,h,n,i);else if(l&2&&m.class!==h.class&&a(c,`class`,null,h.class,i),l&4&&a(c,`style`,m.style,h.style,i),l&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let r=e[t],o=m[r],s=h[r];(s!==o||r===`value`)&&a(c,r,o,s,i,n)}}l&1&&e.children!==t.children&&u(c,t.children)}else !s&&f==null&&A(c,m,h,n,i);((g=h.onVnodeUpdated)||p)&&sc(()=>{g&&cl(g,n,t,e),p&&hi(t,e,n,`updated`)},r)},ee=(e,t,n,r,i,a,o)=>{for(let s=0;s<t.length;s++){let c=e[s],l=t[s];v(c,l,c.el&&(c.type===Nc||!Gc(c,l)||c.shapeFlag&198)?m(c.el):n,null,r,i,a,o,!0)}},A=(e,t,n,r,i)=>{if(t!==n){if(t!==d)for(let o in t)!j(o)&&!(o in n)&&a(e,o,t[o],null,i,r);for(let o in n){if(j(o))continue;let s=n[o],c=t[o];s!==c&&o!==`value`&&a(e,o,c,s,i,r)}`value`in n&&a(e,`value`,t.value,n.value,i)}},te=(e,t,n,i,a,o,c,l,u)=>{let d=t.el=e?e.el:s(``),f=t.anchor=e?e.anchor:s(``),{patchFlag:p,dynamicChildren:m,slotScopeIds:h}=t;process.env.NODE_ENV!==`production`&&(Pr||p&2048)&&(p=0,u=!1,m=null),h&&(l=l?l.concat(h):h),e==null?(r(d,n,i),r(f,n,i),O(t.children||[],n,f,a,o,c,l,u)):p>0&&p&64&&m&&e.dynamicChildren&&e.dynamicChildren.length===m.length?(ee(e.dynamicChildren,m,n,a,o,c,l),process.env.NODE_ENV===`production`?(t.key!=null||a&&t===a.subTree)&&mc(e,t,!0):mc(e,t)):oe(e,t,n,f,a,o,c,l,u)},ne=(e,t,n,r,i,a,o,s,c)=>{t.slotScopeIds=s,e==null?t.shapeFlag&512?i.ctx.activate(t,n,r,o,c):re(t,n,r,i,a,o,c):ie(e,t,c)},re=(e,t,n,r,i,a,o)=>{let s=e.component=dl(e,r,i);if(process.env.NODE_ENV!==`production`&&s.type.__hmrId&&Lr(s),process.env.NODE_ENV!==`production`&&(tr(e),rc(s,`mount`)),Ra(e)&&(s.ctx.renderer=ye),process.env.NODE_ENV!==`production`&&rc(s,`init`),Sl(s,!1,o),process.env.NODE_ENV!==`production`&&ic(s,`init`),process.env.NODE_ENV!==`production`&&Pr&&(e.el=null),s.asyncDep){if(i&&i.registerDep(s,M,o),!e.el){let r=s.subTree=J(Fc);b(null,r,t,n),e.placeholder=r.el}}else M(s,e,t,n,i,a,o);process.env.NODE_ENV!==`production`&&(nr(),ic(s,`mount`))},ie=(e,t,n)=>{let r=t.component=e.component;if(Cs(e,t,n))if(r.asyncDep&&!r.asyncResolved){process.env.NODE_ENV!==`production`&&tr(t),ae(r,t,n),process.env.NODE_ENV!==`production`&&nr();return}else r.next=t,r.update();else t.el=e.el,r.vnode=t},M=(e,t,n,r,i,a,o)=>{let s=()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:s,vnode:c}=e;{let n=gc(e);if(n){t&&(t.el=c.el,ae(e,t,o)),n.asyncDep.then(()=>{sc(()=>{e.isUnmounted||l()},i)});return}}let u=t,d;process.env.NODE_ENV!==`production`&&tr(t||e.vnode),fc(e,!1),t?(t.el=c.el,ae(e,t,o)):t=c,n&&de(n),(d=t.props&&t.props.onVnodeBeforeUpdate)&&cl(d,s,t,c),fc(e,!0),process.env.NODE_ENV!==`production`&&rc(e,`render`);let f=_s(e);process.env.NODE_ENV!==`production`&&ic(e,`render`);let p=e.subTree;e.subTree=f,process.env.NODE_ENV!==`production`&&rc(e,`patch`),v(p,f,m(p.el),he(p),e,i,a),process.env.NODE_ENV!==`production`&&ic(e,`patch`),t.el=f.el,u===null&&Es(e,f.el),r&&sc(r,i),(d=t.props&&t.props.onVnodeUpdated)&&sc(()=>cl(d,s,t,c),i),process.env.NODE_ENV!==`production`&&$r(e),process.env.NODE_ENV!==`production`&&nr()}else{let o,{el:s,props:c}=t,{bm:l,m:u,parent:d,root:f,type:p}=e,m=Fa(t);if(fc(e,!1),l&&de(l),!m&&(o=c&&c.onVnodeBeforeMount)&&cl(o,d,t),fc(e,!0),s&&xe){let t=()=>{process.env.NODE_ENV!==`production`&&rc(e,`render`),e.subTree=_s(e),process.env.NODE_ENV!==`production`&&ic(e,`render`),process.env.NODE_ENV!==`production`&&rc(e,`hydrate`),xe(s,e.subTree,e,i,null),process.env.NODE_ENV!==`production`&&ic(e,`hydrate`)};m&&p.__asyncHydrate?p.__asyncHydrate(s,e,t):t()}else{f.ce&&f.ce._hasShadowRoot()&&f.ce._injectChildStyle(p,e.parent?e.parent.type:void 0),process.env.NODE_ENV!==`production`&&rc(e,`render`);let o=e.subTree=_s(e);process.env.NODE_ENV!==`production`&&ic(e,`render`),process.env.NODE_ENV!==`production`&&rc(e,`patch`),v(null,o,n,r,e,i,a),process.env.NODE_ENV!==`production`&&ic(e,`patch`),t.el=o.el}if(u&&sc(u,i),!m&&(o=c&&c.onVnodeMounted)){let e=t;sc(()=>cl(o,d,e),i)}(t.shapeFlag&256||d&&Fa(d.vnode)&&d.vnode.shapeFlag&256)&&e.a&&sc(e.a,i),e.isMounted=!0,process.env.NODE_ENV!==`production`&&Qr(e),t=n=r=null}};e.scope.on();let c=e.effect=new nt(s);e.scope.off();let l=e.update=c.run.bind(c),u=e.job=c.runIfDirty.bind(c);u.i=e,u.id=e.uid,c.scheduler=()=>Er(u),fc(e,!0),process.env.NODE_ENV!==`production`&&(c.onTrack=e.rtc?t=>de(e.rtc,t):void 0,c.onTrigger=e.rtg?t=>de(e.rtg,t):void 0),l()},ae=(e,t,n)=>{t.component=e;let r=e.vnode.props;e.vnode=t,e.next=null,Ms(e,t.props,r,n),ec(e,t.children,n),yt(),kr(e),bt()},oe=(e,t,n,r,i,a,o,s,c=!1)=>{let l=e&&e.children,d=e?e.shapeFlag:0,f=t.children,{patchFlag:p,shapeFlag:m}=t;if(p>0){if(p&128){ce(l,f,n,r,i,a,o,s,c);return}else if(p&256){se(l,f,n,r,i,a,o,s,c);return}}m&8?(d&16&&me(l,i,a),f!==l&&u(n,f)):d&16?m&16?ce(l,f,n,r,i,a,o,s,c):me(l,i,a,!0):(d&8&&u(n,``),m&16&&O(f,n,r,i,a,o,s,c))},se=(e,t,n,r,i,a,o,s,c)=>{e||=f,t||=f;let l=e.length,u=t.length,d=Math.min(l,u),p;for(p=0;p<d;p++){let r=t[p]=c?al(t[p]):il(t[p]);v(e[p],r,n,null,i,a,o,s,c)}l>u?me(e,i,a,!0,!1,d):O(t,n,r,i,a,o,s,c,d)},ce=(e,t,n,r,i,a,o,s,c)=>{let l=0,u=t.length,d=e.length-1,p=u-1;for(;l<=d&&l<=p;){let r=e[l],u=t[l]=c?al(t[l]):il(t[l]);if(Gc(r,u))v(r,u,n,null,i,a,o,s,c);else break;l++}for(;l<=d&&l<=p;){let r=e[d],l=t[p]=c?al(t[p]):il(t[p]);if(Gc(r,l))v(r,l,n,null,i,a,o,s,c);else break;d--,p--}if(l>d){if(l<=p){let e=p+1,d=e<u?t[e].el:r;for(;l<=p;)v(null,t[l]=c?al(t[l]):il(t[l]),n,d,i,a,o,s,c),l++}}else if(l>p)for(;l<=d;)P(e[l],i,a,!0),l++;else{let m=l,h=l,g=new Map;for(l=h;l<=p;l++){let e=t[l]=c?al(t[l]):il(t[l]);e.key!=null&&(process.env.NODE_ENV!==`production`&&g.has(e.key)&&B(`Duplicate keys found during update:`,JSON.stringify(e.key),`Make sure keys are unique.`),g.set(e.key,l))}let _,y=0,b=p-h+1,x=!1,S=0,C=Array(b);for(l=0;l<b;l++)C[l]=0;for(l=m;l<=d;l++){let r=e[l];if(y>=b){P(r,i,a,!0);continue}let u;if(r.key!=null)u=g.get(r.key);else for(_=h;_<=p;_++)if(C[_-h]===0&&Gc(r,t[_])){u=_;break}u===void 0?P(r,i,a,!0):(C[u-h]=l+1,u>=S?S=u:x=!0,v(r,t[u],n,null,i,a,o,s,c),y++)}let w=x?hc(C):f;for(_=w.length-1,l=b-1;l>=0;l--){let e=h+l,d=t[e],f=t[e+1],p=e+1<u?f.el||vc(f):r;C[l]===0?v(null,d,n,p,i,a,o,s,c):x&&(_<0||l!==w[_]?N(d,n,p,2):_--)}}},N=(e,t,n,a,o=null)=>{let{el:s,type:c,transition:l,children:u,shapeFlag:d}=e;if(d&6){N(e.component.subTree,t,n,a);return}if(d&128){e.suspense.move(t,n,a);return}if(d&64){c.move(e,t,n,ye);return}if(c===Nc){r(s,t,n);for(let e=0;e<u.length;e++)N(u[e],t,n,a);r(e.anchor,t,n);return}if(c===Ic){C(e,t,n);return}if(a!==2&&d&1&&l)if(a===0)l.beforeEnter(s),r(s,t,n),sc(()=>l.enter(s),o);else{let{leave:a,delayLeave:o,afterLeave:c}=l,u=()=>{e.ctx.isUnmounted?i(s):r(s,t,n)},d=()=>{s._isLeaving&&s[Hi](!0),a(s,()=>{u(),c&&c()})};o?o(s,u,d):d()}else r(s,t,n)},P=(e,t,n,r=!1,i=!1)=>{let{type:a,props:o,ref:s,children:c,dynamicChildren:l,shapeFlag:u,patchFlag:d,dirs:f,cacheIndex:p,memo:m}=e;if(d===-2&&(i=!1),s!=null&&(yt(),la(s,null,n,e,!0),bt()),p!=null&&(t.renderCache[p]=void 0),u&256){t.ctx.deactivate(e);return}let h=u&1&&f,g=!Fa(e),_;if(g&&(_=o&&o.onVnodeBeforeUnmount)&&cl(_,t,e),u&6)pe(e.component,n,r);else{if(u&128){e.suspense.unmount(n,r);return}h&&hi(e,null,t,`beforeUnmount`),u&64?e.type.remove(e,t,n,ye,r):l&&!l.hasOnce&&(a!==Nc||d>0&&d&64)?me(l,t,n,!1,!0):(a===Nc&&d&384||!i&&u&16)&&me(c,t,n),r&&le(e)}let v=m!=null&&p==null;(g&&(_=o&&o.onVnodeUnmounted)||h||v)&&sc(()=>{_&&cl(_,t,e),h&&hi(e,null,t,`unmounted`),v&&(e.el=null)},n)},le=e=>{let{type:t,el:n,anchor:r,transition:a}=e;if(t===Nc){process.env.NODE_ENV!==`production`&&e.patchFlag>0&&e.patchFlag&2048&&a&&!a.persisted?e.children.forEach(e=>{e.type===Fc?i(e.el):le(e)}):ue(n,r);return}if(t===Ic){w(e);return}let o=()=>{i(n),a&&!a.persisted&&a.afterLeave&&a.afterLeave()};if(e.shapeFlag&1&&a&&!a.persisted){let{leave:t,delayLeave:r}=a,i=()=>t(n,o);r?r(e.el,o,i):i()}else o()},ue=(e,t)=>{let n;for(;e!==t;)n=h(e),i(e),e=n;i(t)},pe=(e,t,n)=>{process.env.NODE_ENV!==`production`&&e.type.__hmrId&&Rr(e);let{bum:r,scope:i,job:a,subTree:o,um:s,m:c,a:l}=e;_c(c),_c(l),r&&de(r),i.stop(),a&&(a.flags|=8,P(o,e,t,n)),s&&sc(s,t),sc(()=>{e.isUnmounted=!0},t),process.env.NODE_ENV!==`production`&&ti(e)},me=(e,t,n,r=!1,i=!1,a=0)=>{for(let o=a;o<e.length;o++)P(e[o],t,n,r,i)},he=e=>{if(e.shapeFlag&6)return he(e.component.subTree);if(e.shapeFlag&128)return e.suspense.next();let t=h(e.anchor||e.el),n=t&&t[ki];return n?h(n):t},_e=!1,ve=(e,t,n)=>{let r;e==null?t._vnode&&(P(t._vnode,null,null,!0),r=t._vnode.component):v(t._vnode||null,e,t,null,null,null,n),t._vnode=e,_e||=(_e=!0,kr(r),Ar(),!1)},ye={p:v,um:P,m:N,r:le,mt:re,mc:O,pc:oe,pbc:ee,n:he,o:e},be,xe;return t&&([be,xe]=t(ye)),{render:ve,hydrate:be,createApp:ss(ve,be)}}function dc({type:e,props:t},n){return n===`svg`&&e===`foreignObject`||n===`mathml`&&e===`annotation-xml`&&t&&t.encoding&&t.encoding.includes(`html`)?void 0:n}function fc({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function pc(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function mc(e,t,n=!1){let r=e.children,i=t.children;if(x(r)&&x(i))for(let e=0;e<r.length;e++){let t=r[e],a=i[e];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[e]=al(i[e]),a.el=t.el),!n&&a.patchFlag!==-2&&mc(t,a)),a.type===Pc&&(a.patchFlag===-1&&(a=i[e]=al(a)),a.el=t.el),a.type===Fc&&!a.el&&(a.el=t.el),process.env.NODE_ENV!==`production`&&a.el&&(a.el.__vnode=a)}}function hc(e){let t=e.slice(),n=[0],r,i,a,o,s,c=e.length;for(r=0;r<c;r++){let c=e[r];if(c!==0){if(i=n[n.length-1],e[i]<c){t[r]=i,n.push(r);continue}for(a=0,o=n.length-1;a<o;)s=a+o>>1,e[n[s]]<c?a=s+1:o=s;c<e[n[a]]&&(a>0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,o=n[a-1];a-- >0;)n[a]=o,o=t[o];return n}function gc(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:gc(t)}function _c(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function vc(e){if(e.placeholder)return e.placeholder;let t=e.component;return t?vc(t.subTree):null}var yc=e=>e.__isSuspense,bc=0,xc={name:`Suspense`,__isSuspense:!0,process(e,t,n,r,i,a,o,s,c,l){if(e==null)Cc(t,n,r,i,a,o,s,c,l);else{if(a&&a.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}wc(e,t,n,r,i,o,s,c,l)}},hydrate:Dc,normalize:Oc};function Sc(e,t){let n=e.props&&e.props[t];E(n)&&n()}function Cc(e,t,n,r,i,a,o,s,c){let{p:l,o:{createElement:u}}=c,d=u(`div`),f=e.suspense=Ec(e,i,r,t,d,n,a,o,s,c);l(null,f.pendingBranch=e.ssContent,d,null,r,f,a,o),f.deps>0?(Sc(e,`onPending`),Sc(e,`onFallback`),l(null,e.ssFallback,t,n,r,null,a,o),jc(f,e.ssFallback)):f.resolve(!1,!0)}function wc(e,t,n,r,i,a,o,s,{p:c,um:l,o:{createElement:u}}){let d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;let f=t.ssContent,p=t.ssFallback,{activeBranch:m,pendingBranch:h,isInFallback:g,isHydrating:_}=d;if(h)d.pendingBranch=f,Gc(h,f)?(c(h,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0?d.resolve():g&&(_||(c(m,p,n,r,i,null,a,o,s),jc(d,p)))):(d.pendingId=bc++,_?(d.isHydrating=!1,d.activeBranch=h):l(h,i,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u(`div`),g?(c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0?d.resolve():(c(m,p,n,r,i,null,a,o,s),jc(d,p))):m&&Gc(m,f)?(c(m,f,n,r,i,d,a,o,s),d.resolve(!0)):(c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0&&d.resolve()));else if(m&&Gc(m,f))c(m,f,n,r,i,d,a,o,s),jc(d,f);else if(Sc(t,`onPending`),d.pendingBranch=f,f.shapeFlag&512?d.pendingId=f.component.suspenseId:d.pendingId=bc++,c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0)d.resolve();else{let{timeout:e,pendingId:t}=d;e>0?setTimeout(()=>{d.pendingId===t&&d.fallback(p)},e):e===0&&d.fallback(p)}}var Tc=!1;function Ec(e,t,n,r,i,a,o,s,c,l,u=!1){process.env.NODE_ENV!==`production`&&!Tc&&(Tc=!0,console[console.info?`info`:`log`](`<Suspense> is an experimental feature and its API will likely change.`));let{p:d,m:f,um:p,n:m,o:{parentNode:h,remove:g}}=l,_,v=Mc(e);v&&t&&t.pendingBranch&&(_=t.pendingId,t.deps++);let y=e.props?me(e.props.timeout):void 0;process.env.NODE_ENV!==`production`&&lr(y,`Suspense timeout`);let b=a,x={vnode:e,parent:t,parentComponent:n,namespace:o,container:r,hiddenContainer:i,deps:0,pendingId:bc++,timeout:typeof y==`number`?y:-1,activeBranch:null,isFallbackMountPending:!1,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(e=!1,n=!1){if(process.env.NODE_ENV!==`production`){if(!e&&!x.pendingBranch)throw Error(`suspense.resolve() is called without a pending branch.`);if(x.isUnmounted)throw Error(`suspense.resolve() is called on an already unmounted suspense boundary.`)}let{vnode:r,activeBranch:i,pendingBranch:o,pendingId:s,effects:c,parentComponent:l,container:u,isInFallback:d}=x,g=!1;if(x.isHydrating)x.isHydrating=!1;else if(!e){g=i&&o.transition&&o.transition.mode===`out-in`;let e=!1;g&&(i.transition.afterLeave=()=>{s===x.pendingId&&(f(o,u,a===b&&!e?m(i):a,0),Or(c),d&&r.ssFallback&&(r.ssFallback.el=null))}),i&&!x.isFallbackMountPending&&(h(i.el)===u&&(a=m(i),e=!0),p(i,l,x,!0),!g&&d&&r.ssFallback&&sc(()=>r.ssFallback.el=null,x)),g||f(o,u,a,0)}x.isFallbackMountPending=!1,jc(x,o),x.pendingBranch=null,x.isInFallback=!1;let y=x.parent,S=!1;for(;y;){if(y.pendingBranch){y.effects.push(...c),S=!0;break}y=y.parent}!S&&!g&&Or(c),x.effects=[],v&&t&&t.pendingBranch&&_===t.pendingId&&(t.deps--,t.deps===0&&!n&&t.resolve()),Sc(r,`onResolve`)},fallback(e){if(!x.pendingBranch)return;let{vnode:t,activeBranch:n,parentComponent:r,container:i,namespace:a}=x;Sc(t,`onFallback`);let o=m(n),l=()=>{x.isFallbackMountPending=!1,x.isInFallback&&(d(null,e,i,o,r,null,a,s,c),jc(x,e))},u=e.transition&&e.transition.mode===`out-in`;u&&(x.isFallbackMountPending=!0,n.transition.afterLeave=l),x.isInFallback=!0,p(n,r,null,!0),u||l()},move(e,t,n){x.activeBranch&&f(x.activeBranch,e,t,n),x.container=e},next(){return x.activeBranch&&m(x.activeBranch)},registerDep(e,t,n){let r=!!x.pendingBranch;r&&x.deps++;let i=e.vnode.el;e.asyncDep.catch(t=>{mr(t,e,0)}).then(a=>{if(e.isUnmounted||x.isUnmounted||x.pendingId!==e.suspenseId)return;_l(),e.asyncResolved=!0;let{vnode:s}=e;process.env.NODE_ENV!==`production`&&tr(s),wl(e,a,!1),i&&(s.el=i);let c=!i&&e.subTree.el;t(e,s,h(i||e.subTree.el),i?null:m(e.subTree),x,o,n),c&&(s.placeholder=null,g(c)),Es(e,s.el),process.env.NODE_ENV!==`production`&&nr(),r&&--x.deps===0&&x.resolve()})},unmount(e,t){x.isUnmounted=!0,x.activeBranch&&p(x.activeBranch,n,e,t),x.pendingBranch&&p(x.pendingBranch,n,e,t)}};return x}function Dc(e,t,n,r,i,a,o,s,c){let l=t.suspense=Ec(t,r,n,e.parentNode,document.createElement(`div`),null,i,a,o,s,!0),u=c(e,l.pendingBranch=t.ssContent,n,l,a,o);return l.deps===0&&l.resolve(!1,!0),u}function Oc(e){let{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=kc(r?n.default:n),e.ssFallback=r?kc(n.fallback):J(Fc)}function kc(e){let t;if(E(e)){let n=Bc&&e._c;n&&(e._d=!1,G()),e=e(),n&&(e._d=!0,t=Rc,zc())}if(x(e)){let t=ys(e);process.env.NODE_ENV!==`production`&&!t&&e.filter(e=>e!==co).length>0&&B(`<Suspense> slots expect a single root node.`),e=t}return e=il(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(t=>t!==e)),e}function Ac(e,t){t&&t.pendingBranch?x(e)?t.effects.push(...e):t.effects.push(e):Or(e)}function jc(e,t){e.activeBranch=t;let{vnode:n,parentComponent:r}=e,i=t.el;for(;!i&&t.component;)t=t.component.subTree,i=t.el;n.el=i,r&&r.subTree===n&&(r.vnode.el=i,Es(r,i))}function Mc(e){let t=e.props&&e.props.suspensible;return t!=null&&t!==!1}var Nc=Symbol.for(`v-fgt`),Pc=Symbol.for(`v-txt`),Fc=Symbol.for(`v-cmt`),Ic=Symbol.for(`v-stc`),Lc=[],Rc=null;function G(e=!1){Lc.push(Rc=e?null:[])}function zc(){Lc.pop(),Rc=Lc[Lc.length-1]||null}var Bc=1;function Vc(e,t=!1){Bc+=e,e<0&&Rc&&t&&(Rc.hasOnce=!0)}function Hc(e){return e.dynamicChildren=Bc>0?Rc||f:null,zc(),Bc>0&&Rc&&Rc.push(e),e}function Uc(e,t,n,r,i,a){return Hc(q(e,t,n,r,i,a,!0))}function K(e,t,n,r,i){return Hc(J(e,t,n,r,i,!0))}function Wc(e){return e?e.__v_isVNode===!0:!1}function Gc(e,t){if(process.env.NODE_ENV!==`production`&&t.shapeFlag&6&&e.component){let n=Ir.get(t.type);if(n&&n.has(e.component))return e.shapeFlag&=-257,t.shapeFlag&=-513,!1}return e.type===t.type&&e.key===t.key}var Kc;function qc(e){Kc=e}var Jc=(...e)=>Zc(...Kc?Kc(e,si):e),Yc=({key:e})=>e??null,Xc=({ref:e,ref_key:t,ref_for:n})=>(typeof e==`number`&&(e=``+e),e==null?null:D(e)||kn(e)||E(e)?{i:si,r:e,k:t,f:!!n}:e);function q(e,t=null,n=null,r=0,i=null,a=e===Nc?0:1,o=!1,s=!1){let c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Yc(t),ref:t&&Xc(t),scopeId:ci,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:si};return s?(ol(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=D(n)?8:16),process.env.NODE_ENV!==`production`&&c.key!==c.key&&B(`VNode created with invalid key (NaN). VNode type:`,c.type),Bc>0&&!o&&Rc&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&Rc.push(c),c}var J=process.env.NODE_ENV===`production`?Zc:Jc;function Zc(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===co)&&(process.env.NODE_ENV!==`production`&&!e&&B(`Invalid vnode type when creating vnode: ${e}.`),e=Fc),Wc(e)){let r=$c(e,t,!0);return n&&ol(r,n),Bc>0&&!a&&Rc&&(r.shapeFlag&6?Rc[Rc.indexOf(e)]=r:Rc.push(r)),r.patchFlag=-2,r}if(Rl(e)&&(e=e.__vccOpts),t){t=Qc(t);let{class:e,style:n}=t;e&&!D(e)&&(t.class=we(e)),k(n)&&(Tn(n)&&!x(n)&&(n=_({},n)),t.style=ve(n))}let o=D(e)?1:yc(e)?128:Ai(e)?64:k(e)?4:E(e)?2:0;return process.env.NODE_ENV!==`production`&&o&4&&Tn(e)&&(e=I(e),B("Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",`
22
+ Component that was made reactive: `,e)),q(e,t,n,r,i,o,a,!0)}function Qc(e){return e?Tn(e)||ks(e)?_({},e):e:null}function $c(e,t,n=!1,r=!1){let{props:i,ref:a,patchFlag:o,children:s,transition:c}=e,l=t?sl(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Yc(l),ref:t&&t.ref?n&&a?x(a)?a.concat(Xc(t)):[a,Xc(t)]:Xc(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:process.env.NODE_ENV!==`production`&&o===-1&&x(s)?s.map(el):s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Nc?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&$c(e.ssContent),ssFallback:e.ssFallback&&$c(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&ta(u,c.clone(u)),u}function el(e){let t=$c(e);return x(e.children)&&(t.children=e.children.map(el)),t}function tl(e=` `,t=0){return J(Pc,null,e,t)}function nl(e,t){let n=J(Ic,null,e);return n.staticCount=t,n}function rl(e=``,t=!1){return t?(G(),K(Fc,null,e)):J(Fc,null,e)}function il(e){return e==null||typeof e==`boolean`?J(Fc):x(e)?J(Nc,null,e.slice()):Wc(e)?al(e):J(Pc,null,String(e))}function al(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:$c(e)}function ol(e,t){let n=0,{shapeFlag:r}=e;if(t==null)t=null;else if(x(t))n=16;else if(typeof t==`object`)if(r&65){let n=t.default;n&&(n._c&&(n._d=!1),ol(e,n()),n._c&&(n._d=!0));return}else{n=32;let r=t._;!r&&!ks(t)?t._ctx=si:r===3&&si&&(si.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else E(t)?(t={default:t,_ctx:si},n=32):(t=String(t),r&64?(n=16,t=[tl(t)]):n=8);e.children=t,e.shapeFlag|=n}function sl(...e){let t={};for(let n=0;n<e.length;n++){let r=e[n];for(let e in r)if(e===`class`)t.class!==r.class&&(t.class=we([t.class,r.class]));else if(e===`style`)t.style=ve([t.style,r.style]);else if(h(e)){let n=t[e],i=r[e];i&&n!==i&&!(x(n)&&n.includes(i))?t[e]=n?[].concat(n,i):i:i==null&&n==null&&!g(e)&&(t[e]=i)}else e!==``&&(t[e]=r[e])}return t}function cl(e,t,n,r=null){pr(e,t,7,[n,r])}var ll=as(),ul=0;function dl(e,t,n){let r=e.type,i=(t?t.appContext:e.appContext)||ll,a={uid:ul++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Xe(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:[``,0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Is(r,i),emitsOptions:ps(r,i),emit:null,emitted:null,propsDefaults:d,inheritAttrs:r.inheritAttrs,ctx:d,data:d,props:d,attrs:d,slots:d,refs:d,setupState:d,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return process.env.NODE_ENV===`production`?a.ctx={_:a}:a.ctx=wo(a),a.root=t?t.root:a,a.emit=ds.bind(null,a),e.ce&&e.ce(a),a}var fl=null,pl=()=>fl||si,ml,hl;{let e=ge(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach(t=>t(e)):r[0](e)}};ml=t(`__VUE_INSTANCE_SETTERS__`,e=>fl=e),hl=t(`__VUE_SSR_SETTERS__`,e=>xl=e)}var gl=e=>{let t=fl;return ml(e),e.scope.on(),()=>{e.scope.off(),ml(t)}},_l=()=>{fl&&fl.scope.off(),ml(null)},vl=u(`slot,component`);function yl(e,{isNativeTag:t}){(vl(e)||t(e))&&B(`Do not use built-in or reserved HTML elements as component id: `+e)}function bl(e){return e.vnode.shapeFlag&4}var xl=!1;function Sl(e,t=!1,n=!1){t&&hl(t);let{props:r,children:i}=e.vnode,a=bl(e);As(e,r,a,t),$s(e,i,n||t);let o=a?Cl(e,t):void 0;return t&&hl(!1),o}function Cl(e,t){let n=e.type;if(process.env.NODE_ENV!==`production`){if(n.name&&yl(n.name,e.appContext.config),n.components){let t=Object.keys(n.components);for(let n=0;n<t.length;n++)yl(t[n],e.appContext.config)}if(n.directives){let e=Object.keys(n.directives);for(let t=0;t<e.length;t++)pi(e[t])}n.compilerOptions&&Ol()&&B(`"compilerOptions" is only supported when using a build of Vue that includes the runtime compiler. Since you are using a runtime-only build, the options should be passed via your build tool config instead.`)}e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,So),process.env.NODE_ENV!==`production`&&To(e);let{setup:r}=n;if(r){yt();let i=e.setupContext=r.length>1?Ml(e):null,a=gl(e),o=fr(r,e,0,[process.env.NODE_ENV===`production`?e.props:bn(e.props),i]),s=ee(o);if(bt(),a(),(s||e.sp)&&!Fa(e)&&ia(e),s){if(o.then(_l,_l),t)return o.then(n=>{wl(e,n,t)}).catch(t=>{mr(t,e,0)});e.asyncDep=o,process.env.NODE_ENV!==`production`&&!e.suspense&&B(`Component <${Ll(e,n)}>: setup function returned a promise, but no <Suspense> boundary was found in the parent component tree. A component with async setup() must be nested in a <Suspense> in order to be rendered.`)}else wl(e,o,t)}else kl(e,t)}function wl(e,t,n){E(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:k(t)?(process.env.NODE_ENV!==`production`&&Wc(t)&&B(`setup() should not return VNodes directly - return a render function instead.`),process.env.NODE_ENV!==`production`&&(e.devtoolsRawSetupState=t),e.setupState=Fn(t),process.env.NODE_ENV!==`production`&&Eo(e)):process.env.NODE_ENV!==`production`&&t!==void 0&&B(`setup() should return an object. Received: ${t===null?`null`:typeof t}`),kl(e,n)}var Tl,El;function Dl(e){Tl=e,El=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,Co))}}var Ol=()=>!Tl;function kl(e,t,n){let r=e.type;if(!e.render){if(!t&&Tl&&!r.render){let t=r.template||Yo(e).template;if(t){process.env.NODE_ENV!==`production`&&rc(e,`compile`);let{isCustomElement:n,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:o}=r,s=_(_({isCustomElement:n,delimiters:a},i),o);r.render=Tl(t,s),process.env.NODE_ENV!==`production`&&ic(e,`compile`)}}e.render=r.render||p,El&&El(e)}{let t=gl(e);yt();try{Go(e)}finally{bt(),t()}}process.env.NODE_ENV!==`production`&&!r.render&&e.render===p&&!t&&(!Tl&&r.template?B(`Component provided template option but runtime compilation is not supported in this build of Vue. Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".`):B(`Component is missing template or render function: `,r))}var Al=process.env.NODE_ENV===`production`?{get(e,t){return At(e,`get`,``),e[t]}}:{get(e,t){return gs(),At(e,`get`,``),e[t]},set(){return B(`setupContext.attrs is readonly.`),!1},deleteProperty(){return B(`setupContext.attrs is readonly.`),!1}};function jl(e){return new Proxy(e.slots,{get(t,n){return At(e,`get`,`$slots`),t[n]}})}function Ml(e){let t=t=>{if(process.env.NODE_ENV!==`production`&&(e.exposed&&B(`expose() should be called only once per setup().`),t!=null)){let e=typeof t;e===`object`&&(x(t)?e=`array`:kn(t)&&(e=`ref`)),e!==`object`&&B(`expose() should be passed a plain object, received ${e}.`)}e.exposed=t||{}};if(process.env.NODE_ENV!==`production`){let n,r;return Object.freeze({get attrs(){return n||=new Proxy(e.attrs,Al)},get slots(){return r||=jl(e)},get emit(){return(t,...n)=>e.emit(t,...n)},expose:t})}else return{attrs:new Proxy(e.attrs,Al),slots:e.slots,emit:e.emit,expose:t}}function Nl(e){return e.exposed?e.exposeProxy||=new Proxy(Fn(En(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in yo)return yo[n](e)},has(e,t){return t in e||t in yo}}):e.proxy}var Pl=/(?:^|[-_])\w/g,Fl=e=>e.replace(Pl,e=>e.toUpperCase()).replace(/[-_]/g,``);function Il(e,t=!0){return E(e)?e.displayName||e.name:e.name||t&&e.__name}function Ll(e,t,n=!1){let r=Il(t);if(!r&&t.__file){let e=t.__file.match(/([^/\\]+)\.\w+$/);e&&(r=e[1])}if(!r&&e){let n=e=>{for(let n in e)if(e[n]===t)return n};r=n(e.components)||e.parent&&n(e.parent.type.components)||n(e.appContext.components)}return r?Fl(r):n?`App`:`Anonymous`}function Rl(e){return E(e)&&`__vccOpts`in e}var Y=(e,t)=>{let n=Wn(e,t,xl);if(process.env.NODE_ENV!==`production`){let e=pl();e&&e.appContext.config.warnRecursiveComputed&&(n._warnRecursive=!0)}return n};function zl(e,t,n){try{Vc(-1);let r=arguments.length;return r===2?k(t)&&!x(t)?Wc(t)?J(e,null,[t]):J(e,t):J(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Wc(n)&&(n=[n]),J(e,t,n))}finally{Vc(1)}}function Bl(){if(process.env.NODE_ENV===`production`||typeof window>`u`)return;let e={style:`color:#3ba776`},t={style:`color:#1677ff`},n={style:`color:#f5222d`},r={style:`color:#eb2f96`},i={__vue_custom_formatter:!0,header(t){if(!k(t))return null;if(t.__isVue)return[`div`,e,`VueInstance`];if(kn(t)){yt();let n=t.value;return bt(),[`div`,{},[`span`,e,u(t)],`<`,s(n),`>`]}else if(Sn(t))return[`div`,{},[`span`,e,wn(t)?`ShallowReactive`:`Reactive`],`<`,s(t),`>${Cn(t)?` (readonly)`:``}`];else if(Cn(t))return[`div`,{},[`span`,e,wn(t)?`ShallowReadonly`:`Readonly`],`<`,s(t),`>`];return null},hasBody(e){return e&&e.__isVue},body(e){if(e&&e.__isVue)return[`div`,{},...a(e.$)]}};function a(e){let t=[];e.type.props&&e.props&&t.push(o(`props`,I(e.props))),e.setupState!==d&&t.push(o(`setup`,e.setupState)),e.data!==d&&t.push(o(`data`,I(e.data)));let n=c(e,`computed`);n&&t.push(o(`computed`,n));let i=c(e,`inject`);return i&&t.push(o(`injected`,i)),t.push([`div`,{},[`span`,{style:r.style+`;opacity:0.66`},`$ (internal): `],[`object`,{object:e}]]),t}function o(e,t){return t=_({},t),Object.keys(t).length?[`div`,{style:`line-height:1.25em;margin-bottom:0.6em`},[`div`,{style:`color:#476582`},e],[`div`,{style:`padding-left:1.25em`},...Object.keys(t).map(e=>[`div`,{},[`span`,r,e+`: `],s(t[e],!1)])]]:[`span`,{}]}function s(e,i=!0){return typeof e==`number`?[`span`,t,e]:typeof e==`string`?[`span`,n,JSON.stringify(e)]:typeof e==`boolean`?[`span`,r,e]:k(e)?[`object`,{object:i?I(e):e}]:[`span`,n,String(e)]}function c(e,t){let n=e.type;if(E(n))return;let r={};for(let i in e.ctx)l(n,i,t)&&(r[i]=e.ctx[i]);return r}function l(e,t,n){let r=e[n];if(x(r)&&r.includes(t)||k(r)&&t in r||e.extends&&l(e.extends,t,n)||e.mixins&&e.mixins.some(e=>l(e,t,n)))return!0}function u(e){return wn(e)?`ShallowRef`:e.effect?`ComputedRef`:`Ref`}window.devtoolsFormatters?window.devtoolsFormatters.push(i):window.devtoolsFormatters=[i]}function Vl(e,t,n,r){let i=n[r];if(i&&Hl(i,e))return i;let a=t();return a.memo=e.slice(),a.cacheIndex=r,n[r]=a}function Hl(e,t){let n=e.memo;if(n.length!=t.length)return!1;for(let e=0;e<n.length;e++)if(ue(n[e],t[e]))return!1;return Bc>0&&Rc&&Rc.push(e),!0}var Ul=`3.5.34`,Wl=process.env.NODE_ENV===`production`?p:B,Gl=dr,Kl=(process.env.NODE_ENV,Gr),ql=(process.env.NODE_ENV,Yr),Jl={createComponentInstance:dl,setupComponent:Sl,renderComponentRoot:_s,setCurrentRenderingInstance:li,isVNode:Wc,normalizeVNode:il,getComponentPublicInstance:Nl,ensureValidVNode:go,pushWarningContext:tr,popWarningContext:nr},Yl=void 0,Xl=typeof window<`u`&&window.trustedTypes;if(Xl)try{Yl=Xl.createPolicy(`vue`,{createHTML:e=>e})}catch(e){process.env.NODE_ENV!==`production`&&Wl(`Error creating trusted types policy: ${e}`)}var Zl=Yl?e=>Yl.createHTML(e):e=>e,Ql=`http://www.w3.org/2000/svg`,$l=`http://www.w3.org/1998/Math/MathML`,eu=typeof document<`u`?document:null,tu=eu&&eu.createElement(`template`),nu={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let i=t===`svg`?eu.createElementNS(Ql,e):t===`mathml`?eu.createElementNS($l,e):n?eu.createElement(e,{is:n}):eu.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>eu.createTextNode(e),createComment:e=>eu.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>eu.querySelector(e),setScopeId(e,t){e.setAttribute(t,``)},insertStaticContent(e,t,n,r,i,a){let o=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===a||!(i=i.nextSibling)););else{tu.innerHTML=Zl(r===`svg`?`<svg>${e}</svg>`:r===`mathml`?`<math>${e}</math>`:e);let i=tu.content;if(r===`svg`||r===`mathml`){let e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},ru=`transition`,iu=`animation`,au=Symbol(`_vtc`),ou={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},su=_({},Ki,ou),cu=(e=>(e.displayName=`Transition`,e.props=su,e))((e,{slots:t})=>zl(Xi,du(e),t)),lu=(e,t=[])=>{x(e)?e.forEach(e=>e(...t)):e&&e(...t)},uu=e=>e?x(e)?e.some(e=>e.length>1):e.length>1:!1;function du(e){let t={};for(let n in e)n in ou||(t[n]=e[n]);if(e.css===!1)return t;let{name:n=`v`,type:r,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:c=a,appearActiveClass:l=o,appearToClass:u=s,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,m=fu(i),h=m&&m[0],g=m&&m[1],{onBeforeEnter:v,onEnter:y,onEnterCancelled:b,onLeave:x,onLeaveCancelled:S,onBeforeAppear:C=v,onAppear:w=y,onAppearCancelled:T=b}=t,E=(e,t,n,r)=>{e._enterCancelled=r,hu(e,t?u:s),hu(e,t?l:o),n&&n()},D=(e,t)=>{e._isLeaving=!1,hu(e,d),hu(e,p),hu(e,f),t&&t()},O=e=>(t,n)=>{let i=e?w:y,o=()=>E(t,e,n);lu(i,[t,o]),gu(()=>{hu(t,e?c:a),mu(t,e?u:s),uu(i)||vu(t,r,h,o)})};return _(t,{onBeforeEnter(e){lu(v,[e]),mu(e,a),mu(e,o)},onBeforeAppear(e){lu(C,[e]),mu(e,c),mu(e,l)},onEnter:O(!1),onAppear:O(!0),onLeave(e,t){e._isLeaving=!0;let n=()=>D(e,t);mu(e,d),e._enterCancelled?(mu(e,f),Su(e)):(Su(e),mu(e,f)),gu(()=>{e._isLeaving&&(hu(e,d),mu(e,p),uu(x)||vu(e,r,g,n))}),lu(x,[e,n])},onEnterCancelled(e){E(e,!1,void 0,!0),lu(b,[e])},onAppearCancelled(e){E(e,!0,void 0,!0),lu(T,[e])},onLeaveCancelled(e){D(e),lu(S,[e])}})}function fu(e){if(e==null)return null;if(k(e))return[pu(e.enter),pu(e.leave)];{let t=pu(e);return[t,t]}}function pu(e){let t=me(e);return process.env.NODE_ENV!==`production`&&lr(t,`<transition> explicit duration`),t}function mu(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[au]||(e[au]=new Set)).add(t)}function hu(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));let n=e[au];n&&(n.delete(t),n.size||(e[au]=void 0))}function gu(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}var _u=0;function vu(e,t,n,r){let i=e._endId=++_u,a=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(a,n);let{type:o,timeout:s,propCount:c}=yu(e,t);if(!o)return r();let l=o+`end`,u=0,d=()=>{e.removeEventListener(l,f),a()},f=t=>{t.target===e&&++u>=c&&d()};setTimeout(()=>{u<c&&d()},s+1),e.addEventListener(l,f)}function yu(e,t){let n=window.getComputedStyle(e),r=e=>(n[e]||``).split(`, `),i=r(`${ru}Delay`),a=r(`${ru}Duration`),o=bu(i,a),s=r(`${iu}Delay`),c=r(`${iu}Duration`),l=bu(s,c),u=null,d=0,f=0;t===ru?o>0&&(u=ru,d=o,f=a.length):t===iu?l>0&&(u=iu,d=l,f=c.length):(d=Math.max(o,l),u=d>0?o>l?ru:iu:null,f=u?u===ru?a.length:c.length:0);let p=u===ru&&/\b(?:transform|all)(?:,|$)/.test(r(`${ru}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:p}}function bu(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((t,n)=>xu(t)+xu(e[n])))}function xu(e){return e===`auto`?0:Number(e.slice(0,-1).replace(`,`,`.`))*1e3}function Su(e){return(e?e.ownerDocument:document).body.offsetHeight}function Cu(e,t,n){let r=e[au];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}var wu=Symbol(`_vod`),Tu=Symbol(`_vsh`),Eu={name:`show`,beforeMount(e,{value:t},{transition:n}){e[wu]=e.style.display===`none`?``:e.style.display,n&&t?n.beforeEnter(e):Du(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Du(e,!0),r.enter(e)):r.leave(e,()=>{Du(e,!1)}):Du(e,t))},beforeUnmount(e,{value:t}){Du(e,t)}};function Du(e,t){e.style.display=t?e[wu]:`none`,e[Tu]=!t}function Ou(){Eu.getSSRProps=({value:e})=>{if(!e)return{style:{display:`none`}}}}var ku=Symbol(process.env.NODE_ENV===`production`?``:`CSS_VAR_TEXT`);function Au(e){let t=pl();if(!t){process.env.NODE_ENV!==`production`&&Wl(`useCssVars is called without current active component instance.`);return}let n=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(e=>Mu(e,n))};process.env.NODE_ENV!==`production`&&(t.getCssVars=()=>e(t.proxy));let r=()=>{let r=e(t.proxy);t.ce?Mu(t.ce,r):ju(t.subTree,r),n(r)};Za(()=>{Or(r)}),Xa(()=>{wi(r,p,{flush:`post`});let e=new MutationObserver(r);e.observe(t.subTree.el.parentNode,{childList:!0}),eo(()=>e.disconnect())})}function ju(e,t){if(e.shapeFlag&128){let n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{ju(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)Mu(e.el,t);else if(e.type===Nc)e.children.forEach(e=>ju(e,t));else if(e.type===Ic){let{el:n,anchor:r}=e;for(;n&&(Mu(n,t),n!==r);)n=n.nextSibling}}function Mu(e,t){if(e.nodeType===1){let n=e.style,r=``;for(let e in t){let i=qe(t[e]);n.setProperty(`--${e}`,i),r+=`--${e}: ${i};`}n[ku]=r}}var Nu=/(?:^|;)\s*display\s*:/;function Pu(e,t,n){let r=e.style,i=D(n),a=!1;if(n&&!i){if(t)if(D(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();n[t]??Lu(r,t,``)}else for(let e in t)n[e]??Lu(r,e,``);for(let i in n){i===`display`&&(a=!0);let o=n[i];o==null?Lu(r,i,``):Vu(e,i,!D(t)&&t?t[i]:void 0,o)||Lu(r,i,o)}}else if(i){if(t!==n){let e=r[ku];e&&(n+=`;`+e),r.cssText=n,a=Nu.test(n)}}else t&&e.removeAttribute(`style`);wu in e&&(e[wu]=a?r.display:``,e[Tu]&&(r.display=`none`))}var Fu=/[^\\];\s*$/,Iu=/\s*!important$/;function Lu(e,t,n){if(x(n))n.forEach(n=>Lu(e,t,n));else if(n??=``,process.env.NODE_ENV!==`production`&&Fu.test(n)&&Wl(`Unexpected semicolon at the end of '${t}' style value: '${n}'`),t.startsWith(`--`))e.setProperty(t,n);else{let r=Bu(e,t);Iu.test(n)?e.setProperty(N(r),n.replace(Iu,``),`important`):e[r]=n}}var Ru=[`Webkit`,`Moz`,`ms`],zu={};function Bu(e,t){let n=zu[t];if(n)return n;let r=se(t);if(r!==`filter`&&r in e)return zu[t]=r;r=P(r);for(let n=0;n<Ru.length;n++){let i=Ru[n]+r;if(i in e)return zu[t]=i}return t}function Vu(e,t,n,r){return e.tagName===`TEXTAREA`&&(t===`width`||t===`height`)&&D(r)&&n===r}var Hu=`http://www.w3.org/1999/xlink`;function Uu(e,t,n,r,i,a=Ne(t)){r&&t.startsWith(`xlink:`)?n==null?e.removeAttributeNS(Hu,t.slice(6,t.length)):e.setAttributeNS(Hu,t,n):n==null||a&&!Pe(n)?e.removeAttribute(t):e.setAttribute(t,a?``:O(n)?String(n):n)}function Wu(e,t,n,r,i){if(t===`innerHTML`||t===`textContent`){n!=null&&(e[t]=t===`innerHTML`?Zl(n):n);return}let a=e.tagName;if(t===`value`&&a!==`PROGRESS`&&!a.includes(`-`)){let r=a===`OPTION`?e.getAttribute(`value`)||``:e.value,i=n==null?e.type===`checkbox`?`on`:``:String(n);(r!==i||!(`_value`in e))&&(e.value=i),n??e.removeAttribute(t),e._value=n;return}let o=!1;if(n===``||n==null){let r=typeof e[t];r===`boolean`?n=Pe(n):n==null&&r===`string`?(n=``,o=!0):r===`number`&&(n=0,o=!0)}try{e[t]=n}catch(e){process.env.NODE_ENV!==`production`&&!o&&Wl(`Failed setting prop "${t}" on <${a.toLowerCase()}>: value ${n} is invalid.`,e)}o&&e.removeAttribute(i||t)}function Gu(e,t,n,r){e.addEventListener(t,n,r)}function Ku(e,t,n,r){e.removeEventListener(t,n,r)}var qu=Symbol(`_vei`);function Ju(e,t,n,r,i=null){let a=e[qu]||(e[qu]={}),o=a[t];if(r&&o)o.value=process.env.NODE_ENV===`production`?r:td(r,t);else{let[n,s]=Xu(t);r?Gu(e,n,a[t]=ed(process.env.NODE_ENV===`production`?r:td(r,t),i),s):o&&(Ku(e,n,o,s),a[t]=void 0)}}var Yu=/(?:Once|Passive|Capture)$/;function Xu(e){let t;if(Yu.test(e)){t={};let n;for(;n=e.match(Yu);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===`:`?e.slice(3):N(e.slice(2)),t]}var Zu=0,Qu=Promise.resolve(),$u=()=>Zu||=(Qu.then(()=>Zu=0),Date.now());function ed(e,t){let n=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=n.attached)return;pr(nd(e,n.value),t,5,[e])};return n.value=e,n.attached=$u(),n}function td(e,t){return E(e)||x(e)?e:(Wl(`Wrong type passed as event handler to ${t} - did you forget @ or : in front of your prop?
23
+ Expected function or array of functions, received type ${typeof e}.`),p)}function nd(e,t){if(x(t)){let n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(e=>t=>!t._stopped&&e&&e(t))}else return t}var rd=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,id=(e,t,n,r,i,a)=>{let o=i===`svg`;t===`class`?Cu(e,r,o):t===`style`?Pu(e,n,r):h(t)?g(t)||Ju(e,t,n,r,a):(t[0]===`.`?(t=t.slice(1),!0):t[0]===`^`?(t=t.slice(1),!1):ad(e,t,r,o))?(Wu(e,t,r),!e.tagName.includes(`-`)&&(t===`value`||t===`checked`||t===`selected`)&&Uu(e,t,r,o,a,t!==`value`)):e._isVueCE&&(od(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!D(r)))?Wu(e,se(t),r,a,t):(t===`true-value`?e._trueValue=r:t===`false-value`&&(e._falseValue=r),Uu(e,t,r,o))};function ad(e,t,n,r){if(r)return!!(t===`innerHTML`||t===`textContent`||t in e&&rd(t)&&E(n));if(t===`spellcheck`||t===`draggable`||t===`translate`||t===`autocorrect`||t===`sandbox`&&e.tagName===`IFRAME`||t===`form`||t===`list`&&e.tagName===`INPUT`||t===`type`&&e.tagName===`TEXTAREA`)return!1;if(t===`width`||t===`height`){let t=e.tagName;if(t===`IMG`||t===`VIDEO`||t===`CANVAS`||t===`SOURCE`)return!1}return rd(t)&&D(n)?!1:t in e}function od(e,t){let n=e._def.props;if(!n)return!1;let r=se(t);return Array.isArray(n)?n.some(e=>se(e)===r):Object.keys(n).some(e=>se(e)===r)}var sd={};function cd(e,t,n){let r=U(e,t);re(r)&&(r=_({},r,t));class i extends dd{constructor(e){super(r,e,n)}}return i.def=r,i}var ld=((e,t)=>cd(e,t,tf)),ud=typeof HTMLElement<`u`?HTMLElement:class{},dd=class e extends ud{constructor(e,t={},n=ef){super(),this._def=e,this._props=t,this._createApp=n,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._styleAnchors=new WeakMap,this._ob=null,this.shadowRoot&&n!==ef?this._root=this.shadowRoot:(process.env.NODE_ENV!==`production`&&this.shadowRoot&&Wl("Custom element has pre-rendered declarative shadow root but is not defined as hydratable. Use `defineSSRCustomElement`."),e.shadowRoot===!1?this._root=this:(this.attachShadow(_({},e.shadowRootOptions,{mode:`open`})),this._root=this.shadowRoot))}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let t=this;for(;t&&=t.assignedSlot||t.parentNode||t.host;)if(t instanceof e){this._parent=t;break}this._instance||(this._resolved?this._mount(this._def):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(e=this._parent){e&&(this._instance.parent=e._instance,this._inheritParentContext(e))}_inheritParentContext(e=this._parent){e&&this._app&&Object.setPrototypeOf(this._app._context.provides,e._instance.provides)}disconnectedCallback(){this._connected=!1,wr(()=>{this._connected||(this._ob&&=(this._ob.disconnect(),null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&=(this._teleportTargets.clear(),void 0))})}_processMutations(e){for(let t of e)this._setAttr(t.attributeName)}_resolveDef(){if(this._pendingResolve)return;for(let e=0;e<this.attributes.length;e++)this._setAttr(this.attributes[e].name);this._ob=new MutationObserver(this._processMutations.bind(this)),this._ob.observe(this,{attributes:!0});let e=(e,t=!1)=>{this._resolved=!0,this._pendingResolve=void 0;let{props:n,styles:r}=e,i;if(n&&!x(n))for(let e in n){let t=n[e];(t===Number||t&&t.type===Number)&&(e in this._props&&(this._props[e]=me(this._props[e])),(i||=Object.create(null))[se(e)]=!0)}this._numberProps=i,this._resolveProps(e),this.shadowRoot?this._applyStyles(r):process.env.NODE_ENV!==`production`&&r&&Wl(`Custom element style injection is not supported when using shadowRoot: false`),this._mount(e)},t=this._def.__asyncLoader;t?this._pendingResolve=t().then(t=>{t.configureApp=this._def.configureApp,e(this._def=t,!0)}):e(this._def)}_mount(e){process.env.NODE_ENV!==`production`&&!e.name&&(e.name=`VueElement`),this._app=this._createApp(e),this._inheritParentContext(),e.configureApp&&e.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);let t=this._instance&&this._instance.exposed;if(t)for(let e in t)b(this,e)?process.env.NODE_ENV!==`production`&&Wl(`Exposed property "${e}" already exists on custom element.`):Object.defineProperty(this,e,{get:()=>R(t[e])})}_resolveProps(e){let{props:t}=e,n=x(t)?t:Object.keys(t||{});for(let e of Object.keys(this))e[0]!==`_`&&n.includes(e)&&this._setProp(e,this[e]);for(let e of n.map(se))Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t,!0,!this._patching)}})}_setAttr(e){if(e.startsWith(`data-v-`))return;let t=this.hasAttribute(e),n=t?this.getAttribute(e):sd,r=se(e);t&&this._numberProps&&this._numberProps[r]&&(n=me(n)),this._setProp(r,n,!1,!0)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,r=!1){if(t!==this._props[e]&&(this._dirty=!0,t===sd?delete this._props[e]:(this._props[e]=t,e===`key`&&this._app&&(this._app._ceVNode.key=t)),r&&this._instance&&this._update(),n)){let n=this._ob;n&&(this._processMutations(n.takeRecords()),n.disconnect()),t===!0?this.setAttribute(N(e),``):typeof t==`string`||typeof t==`number`?this.setAttribute(N(e),t+``):t||this.removeAttribute(N(e)),n&&n.observe(this,{attributes:!0})}}_update(){let e=this._createVNode();this._app&&(e.appContext=this._app._context),Qd(e,this._root)}_createVNode(){let e={};this.shadowRoot||(e.onVnodeMounted=e.onVnodeUpdated=this._renderSlots.bind(this));let t=J(this._def,_(e,this._props));return this._instance||(t.ce=e=>{this._instance=e,e.ce=this,e.isCE=!0,process.env.NODE_ENV!==`production`&&(e.ceReload=e=>{this._styles&&(this._styles.forEach(e=>this._root.removeChild(e)),this._styles.length=0),this._styleAnchors.delete(this._def),this._applyStyles(e),this._instance=null,this._update()});let t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,re(t[0])?_({detail:t},t[0]):{detail:t}))};e.emit=(e,...n)=>{t(e,n),N(e)!==e&&t(N(e),n)},this._setParent()}),t}_applyStyles(e,t,n){if(!e)return;if(t){if(t===this._def||this._styleChildren.has(t))return;this._styleChildren.add(t)}let r=this._nonce,i=this.shadowRoot,a=n?this._getStyleAnchor(n)||this._getStyleAnchor(this._def):this._getRootStyleInsertionAnchor(i),o=null;for(let s=e.length-1;s>=0;s--){let c=document.createElement(`style`);if(r&&c.setAttribute(`nonce`,r),c.textContent=e[s],i.insertBefore(c,o||a),o=c,s===0&&(n||this._styleAnchors.set(this._def,c),t&&this._styleAnchors.set(t,c)),process.env.NODE_ENV!==`production`)if(t){if(t.__hmrId){this._childStyles||=new Map;let e=this._childStyles.get(t.__hmrId);e||this._childStyles.set(t.__hmrId,e=[]),e.push(c)}}else (this._styles||=[]).push(c)}}_getStyleAnchor(e){if(!e)return null;let t=this._styleAnchors.get(e);return t&&t.parentNode===this.shadowRoot?t:(t&&this._styleAnchors.delete(e),null)}_getRootStyleInsertionAnchor(e){for(let t=0;t<e.childNodes.length;t++){let n=e.childNodes[t];if(!(n instanceof HTMLStyleElement))return n}return null}_parseSlots(){let e=this._slots={},t;for(;t=this.firstChild;){let n=t.nodeType===1&&t.getAttribute(`slot`)||`default`;(e[n]||(e[n]=[])).push(t),this.removeChild(t)}}_renderSlots(){let e=this._getSlots(),t=this._instance.type.__scopeId;for(let n=0;n<e.length;n++){let r=e[n],i=r.getAttribute(`name`)||`default`,a=this._slots[i],o=r.parentNode;if(a)for(let e of a){if(t&&e.nodeType===1){let n=t+`-s`,r=document.createTreeWalker(e,1);e.setAttribute(n,``);let i;for(;i=r.nextNode();)i.setAttribute(n,``)}o.insertBefore(e,r)}else for(;r.firstChild;)o.insertBefore(r.firstChild,r);o.removeChild(r)}}_getSlots(){let e=[this];this._teleportTargets&&e.push(...this._teleportTargets);let t=new Set;for(let n of e){let e=n.querySelectorAll(`slot`);for(let n=0;n<e.length;n++)t.add(e[n])}return Array.from(t)}_injectChildStyle(e,t){this._applyStyles(e.styles,e,t)}_beginPatch(){this._patching=!0,this._dirty=!1}_endPatch(){this._patching=!1,this._dirty&&this._instance&&this._update()}_hasShadowRoot(){return this._def.shadowRoot!==!1}_removeChildStyle(e){if(process.env.NODE_ENV!==`production`&&(this._styleChildren.delete(e),this._styleAnchors.delete(e),this._childStyles&&e.__hmrId)){let t=this._childStyles.get(e.__hmrId);t&&(t.forEach(e=>this._root.removeChild(e)),t.length=0)}}};function fd(e){let t=pl();return t&&t.ce||(process.env.NODE_ENV!==`production`&&Wl(t?`${e||`useHost`} can only be used in components defined via defineCustomElement.`:`${e||`useHost`} called without an active component instance.`),null)}function pd(){let e=process.env.NODE_ENV===`production`?fd():fd(`useShadowRoot`);return e&&e.shadowRoot}function md(e=`$style`){{let t=pl();if(!t)return process.env.NODE_ENV!==`production`&&Wl(`useCssModule must be called inside setup()`),d;let n=t.type.__cssModules;return n?n[e]||(process.env.NODE_ENV!==`production`&&Wl(`Current instance does not have CSS module named "${e}".`),d):(process.env.NODE_ENV!==`production`&&Wl(`Current instance does not have CSS modules injected.`),d)}}var hd=new WeakMap,gd=new WeakMap,_d=Symbol(`_moveCb`),vd=Symbol(`_enterCb`),yd=(e=>(delete e.props.mode,e))({name:`TransitionGroup`,props:_({},su,{tag:String,moveClass:String}),setup(e,{slots:t}){let n=pl(),r=Wi(),i,a;return Qa(()=>{if(!i.length)return;let t=e.moveClass||`${e.name||`v`}-move`;if(!wd(i[0].el,n.vnode.el,t)){i=[];return}i.forEach(bd),i.forEach(xd);let r=i.filter(Sd);Su(n.vnode.el),r.forEach(e=>{let n=e.el,r=n.style;mu(n,t),r.transform=r.webkitTransform=r.transitionDuration=``;let i=n[_d]=e=>{e&&e.target!==n||(!e||e.propertyName.endsWith(`transform`))&&(n.removeEventListener(`transitionend`,i),n[_d]=null,hu(n,t))};n.addEventListener(`transitionend`,i)}),i=[]}),()=>{let o=I(e),s=du(o),c=o.tag||Nc;if(i=[],a)for(let e=0;e<a.length;e++){let t=a[e];t.el&&t.el instanceof Element&&(i.push(t),ta(t,Qi(t,s,r,n)),hd.set(t,Cd(t.el)))}a=t.default?na(t.default()):[];for(let e=0;e<a.length;e++){let t=a[e];t.key==null?process.env.NODE_ENV!==`production`&&t.type!==Pc&&Wl(`<TransitionGroup> children must be keyed.`):ta(t,Qi(t,s,r,n))}return J(c,null,a)}}});function bd(e){let t=e.el;t[_d]&&t[_d](),t[vd]&&t[vd]()}function xd(e){gd.set(e,Cd(e.el))}function Sd(e){let t=hd.get(e),n=gd.get(e),r=t.left-n.left,i=t.top-n.top;if(r||i){let t=e.el,n=t.style,a=t.getBoundingClientRect(),o=1,s=1;return t.offsetWidth&&(o=a.width/t.offsetWidth),t.offsetHeight&&(s=a.height/t.offsetHeight),(!Number.isFinite(o)||o===0)&&(o=1),(!Number.isFinite(s)||s===0)&&(s=1),Math.abs(o-1)<.01&&(o=1),Math.abs(s-1)<.01&&(s=1),n.transform=n.webkitTransform=`translate(${r/o}px,${i/s}px)`,n.transitionDuration=`0s`,e}}function Cd(e){let t=e.getBoundingClientRect();return{left:t.left,top:t.top}}function wd(e,t,n){let r=e.cloneNode(),i=e[au];i&&i.forEach(e=>{e.split(/\s+/).forEach(e=>e&&r.classList.remove(e))}),n.split(/\s+/).forEach(e=>e&&r.classList.add(e)),r.style.display=`none`;let a=t.nodeType===1?t:t.parentNode;a.appendChild(r);let{hasTransform:o}=yu(r);return a.removeChild(r),o}var Td=e=>{let t=e.props[`onUpdate:modelValue`]||!1;return x(t)?e=>de(t,e):t};function Ed(e){e.target.composing=!0}function Dd(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event(`input`)))}var Od=Symbol(`_assign`);function kd(e,t,n){return t&&(e=e.trim()),n&&(e=pe(e)),e}var Ad={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[Od]=Td(i);let a=r||i.props&&i.props.type===`number`;Gu(e,t?`change`:`input`,t=>{t.target.composing||e[Od](kd(e.value,n,a))}),(n||a)&&Gu(e,`change`,()=>{e.value=kd(e.value,n,a)}),t||(Gu(e,`compositionstart`,Ed),Gu(e,`compositionend`,Dd),Gu(e,`change`,Dd))},mounted(e,{value:t}){e.value=t??``},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:a}},o){if(e[Od]=Td(o),e.composing)return;let s=(a||e.type===`number`)&&!/^0\d/.test(e.value)?pe(e.value):e.value,c=t??``;if(s===c)return;let l=e.getRootNode();(l instanceof Document||l instanceof ShadowRoot)&&l.activeElement===e&&e.type!==`range`&&(r&&t===n||i&&e.value.trim()===c)||(e.value=c)}},jd={deep:!0,created(e,t,n){e[Od]=Td(n),Gu(e,`change`,()=>{let t=e._modelValue,n=Id(e),r=e.checked,i=e[Od];if(x(t)){let e=He(t,n),a=e!==-1;if(r&&!a)i(t.concat(n));else if(!r&&a){let n=[...t];n.splice(e,1),i(n)}}else if(C(t)){let e=new Set(t);r?e.add(n):e.delete(n),i(e)}else i(Ld(e,r))})},mounted:Md,beforeUpdate(e,t,n){e[Od]=Td(n),Md(e,t,n)}};function Md(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(x(t))i=He(t,r.props.value)>-1;else if(C(t))i=t.has(r.props.value);else{if(t===n)return;i=Ve(t,Ld(e,!0))}e.checked!==i&&(e.checked=i)}var Nd={created(e,{value:t},n){e.checked=Ve(t,n.props.value),e[Od]=Td(n),Gu(e,`change`,()=>{e[Od](Id(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[Od]=Td(r),t!==n&&(e.checked=Ve(t,r.props.value))}},Pd={deep:!0,created(e,{value:t,modifiers:{number:n}},r){let i=C(t);Gu(e,`change`,()=>{let t=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>n?pe(Id(e)):Id(e));e[Od](e.multiple?i?new Set(t):t:t[0]),e._assigning=!0,wr(()=>{e._assigning=!1})}),e[Od]=Td(r)},mounted(e,{value:t}){Fd(e,t)},beforeUpdate(e,t,n){e[Od]=Td(n)},updated(e,{value:t}){e._assigning||Fd(e,t)}};function Fd(e,t){let n=e.multiple,r=x(t);if(n&&!r&&!C(t)){process.env.NODE_ENV!==`production`&&Wl(`<select multiple v-model> expects an Array or Set value for its binding, but got ${Object.prototype.toString.call(t).slice(8,-1)}.`);return}for(let i=0,a=e.options.length;i<a;i++){let a=e.options[i],o=Id(a);if(n)if(r){let e=typeof o;e===`string`||e===`number`?a.selected=t.some(e=>String(e)===String(o)):a.selected=He(t,o)>-1}else a.selected=t.has(o);else if(Ve(Id(a),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}function Id(e){return`_value`in e?e._value:e.value}function Ld(e,t){let n=t?`_trueValue`:`_falseValue`;return n in e?e[n]:t}var Rd={created(e,t,n){Bd(e,t,n,null,`created`)},mounted(e,t,n){Bd(e,t,n,null,`mounted`)},beforeUpdate(e,t,n,r){Bd(e,t,n,r,`beforeUpdate`)},updated(e,t,n,r){Bd(e,t,n,r,`updated`)}};function zd(e,t){switch(e){case`SELECT`:return Pd;case`TEXTAREA`:return Ad;default:switch(t){case`checkbox`:return jd;case`radio`:return Nd;default:return Ad}}}function Bd(e,t,n,r,i){let a=zd(e.tagName,n.props&&n.props.type)[i];a&&a(e,t,n,r)}function Vd(){Ad.getSSRProps=({value:e})=>({value:e}),Nd.getSSRProps=({value:e},t)=>{if(t.props&&Ve(t.props.value,e))return{checked:!0}},jd.getSSRProps=({value:e},t)=>{if(x(e)){if(t.props&&He(e,t.props.value)>-1)return{checked:!0}}else if(C(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},Rd.getSSRProps=(e,t)=>{if(typeof t.type!=`string`)return;let n=zd(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}var Hd=[`ctrl`,`shift`,`alt`,`meta`],Ud={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>`button`in e&&e.button!==0,middle:e=>`button`in e&&e.button!==1,right:e=>`button`in e&&e.button!==2,exact:(e,t)=>Hd.some(n=>e[`${n}Key`]&&!t.includes(n))},Wd=(e,t)=>{if(!e)return e;let n=e._withMods||={},r=t.join(`.`);return n[r]||(n[r]=((n,...r)=>{for(let e=0;e<t.length;e++){let r=Ud[t[e]];if(r&&r(n,t))return}return e(n,...r)}))},Gd={esc:`escape`,space:` `,up:`arrow-up`,left:`arrow-left`,right:`arrow-right`,down:`arrow-down`,delete:`backspace`},Kd=(e,t)=>{let n=e._withKeys||={},r=t.join(`.`);return n[r]||(n[r]=(n=>{if(!(`key`in n))return;let r=N(n.key);if(t.some(e=>e===r||Gd[e]===r))return e(n)}))},qd=_({patchProp:id},nu),Jd,Yd=!1;function Xd(){return Jd||=cc(qd)}function Zd(){return Jd=Yd?Jd:lc(qd),Yd=!0,Jd}var Qd=((...e)=>{Xd().render(...e)}),$d=((...e)=>{Zd().hydrate(...e)}),ef=((...e)=>{let t=Xd().createApp(...e);process.env.NODE_ENV!==`production`&&(rf(t),af(t));let{mount:n}=t;return t.mount=e=>{let r=of(e);if(!r)return;let i=t._component;!E(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent=``);let a=n(r,!1,nf(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t}),tf=((...e)=>{let t=Zd().createApp(...e);process.env.NODE_ENV!==`production`&&(rf(t),af(t));let{mount:n}=t;return t.mount=e=>{let t=of(e);if(t)return n(t,!0,nf(t))},t});function nf(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function rf(e){Object.defineProperty(e.config,"isNativeTag",{value:e=>ke(e)||Ae(e)||je(e),writable:!1})}function af(e){if(Ol()){let t=e.config.isCustomElement;Object.defineProperty(e.config,"isCustomElement",{get(){return t},set(){Wl("The `isCustomElement` config option is deprecated. Use `compilerOptions.isCustomElement` instead.")}});let n=e.config.compilerOptions,r='The `compilerOptions` config option is only respected when using a build of Vue.js that includes the runtime compiler (aka "full build"). Since you are using the runtime-only build, `compilerOptions` must be passed to `@vue/compiler-dom` in the build setup instead.\n- For vue-loader: pass it via vue-loader\'s `compilerOptions` loader option.\n- For vue-cli: see https://cli.vuejs.org/guide/webpack.html#modifying-options-of-a-loader\n- For vite: pass it via @vitejs/plugin-vue options. See https://github.com/vitejs/vite-plugin-vue/tree/main/packages/plugin-vue#example-for-passing-options-to-vuecompiler-sfc';Object.defineProperty(e.config,"compilerOptions",{get(){return Wl(r),n},set(){Wl(r)}})}}function of(e){if(D(e)){let t=document.querySelector(e);return process.env.NODE_ENV!==`production`&&!t&&Wl(`Failed to mount app: mount target selector "${e}" returned null.`),t}return process.env.NODE_ENV!==`production`&&window.ShadowRoot&&e instanceof window.ShadowRoot&&e.mode===`closed`&&Wl('mounting on a ShadowRoot with `{mode: "closed"}` may lead to unpredictable bugs'),e}var sf=!1,cf=()=>{sf||(sf=!0,Vd(),Ou())},lf=s({BaseTransition:()=>Xi,BaseTransitionPropsValidators:()=>Ki,Comment:()=>Fc,DeprecationTypes:()=>null,EffectScope:()=>Xe,ErrorCodes:()=>ur,ErrorTypeStrings:()=>Gl,Fragment:()=>Nc,KeepAlive:()=>za,ReactiveEffect:()=>nt,Static:()=>Ic,Suspense:()=>xc,Teleport:()=>zi,Text:()=>Pc,TrackOpTypes:()=>Gn,Transition:()=>cu,TransitionGroup:()=>yd,TriggerOpTypes:()=>Kn,VueElement:()=>dd,assertNumber:()=>lr,callWithAsyncErrorHandling:()=>pr,callWithErrorHandling:()=>fr,camelize:()=>se,capitalize:()=>P,cloneVNode:()=>$c,compatUtils:()=>null,compile:()=>df,computed:()=>Y,createApp:()=>ef,createBlock:()=>K,createCommentVNode:()=>rl,createElementBlock:()=>Uc,createElementVNode:()=>q,createHydrationRenderer:()=>lc,createPropsRestProxy:()=>Vo,createRenderer:()=>cc,createSSRApp:()=>tf,createSlots:()=>ho,createStaticVNode:()=>nl,createTextVNode:()=>tl,createVNode:()=>J,customRef:()=>Ln,defineAsyncComponent:()=>Ia,defineComponent:()=>U,defineCustomElement:()=>cd,defineEmits:()=>ko,defineExpose:()=>Ao,defineModel:()=>No,defineOptions:()=>jo,defineProps:()=>Oo,defineSSRCustomElement:()=>ld,defineSlots:()=>Mo,devtools:()=>Kl,effect:()=>ht,effectScope:()=>Ze,getCurrentInstance:()=>pl,getCurrentScope:()=>Qe,getCurrentWatcher:()=>Xn,getTransitionRawChildren:()=>na,guardReactiveProps:()=>Qc,h:()=>zl,handleError:()=>mr,hasInjectionContext:()=>vi,hydrate:()=>$d,hydrateOnIdle:()=>ka,hydrateOnInteraction:()=>Na,hydrateOnMediaQuery:()=>Ma,hydrateOnVisible:()=>ja,initCustomFormatter:()=>Bl,initDirectivesForSSR:()=>cf,inject:()=>_i,isMemoSame:()=>Hl,isProxy:()=>Tn,isReactive:()=>Sn,isReadonly:()=>Cn,isRef:()=>kn,isRuntimeOnly:()=>Ol,isShallow:()=>wn,isVNode:()=>Wc,markRaw:()=>En,mergeDefaults:()=>zo,mergeModels:()=>Bo,mergeProps:()=>sl,nextTick:()=>wr,nodeOps:()=>nu,normalizeClass:()=>we,normalizeProps:()=>Te,normalizeStyle:()=>ve,onActivated:()=>Va,onBeforeMount:()=>Ya,onBeforeUnmount:()=>$a,onBeforeUpdate:()=>Za,onDeactivated:()=>Ha,onErrorCaptured:()=>io,onMounted:()=>Xa,onRenderTracked:()=>ro,onRenderTriggered:()=>no,onScopeDispose:()=>$e,onServerPrefetch:()=>to,onUnmounted:()=>eo,onUpdated:()=>Qa,onWatcherCleanup:()=>Zn,openBlock:()=>G,patchProp:()=>id,popScopeId:()=>di,provide:()=>gi,proxyRefs:()=>Fn,pushScopeId:()=>ui,queuePostFlushCb:()=>Or,reactive:()=>_n,readonly:()=>yn,ref:()=>L,registerRuntimeCompiler:()=>Dl,render:()=>Qd,renderList:()=>mo,renderSlot:()=>W,resolveComponent:()=>so,resolveDirective:()=>uo,resolveDynamicComponent:()=>lo,resolveFilter:()=>null,resolveTransitionHooks:()=>Qi,setBlockTracking:()=>Vc,setDevtoolsHook:()=>ql,setTransitionHooks:()=>ta,shallowReactive:()=>vn,shallowReadonly:()=>bn,shallowRef:()=>An,ssrContextKey:()=>yi,ssrUtils:()=>Jl,stop:()=>gt,toDisplayString:()=>We,toHandlerKey:()=>le,toHandlers:()=>_o,toRaw:()=>I,toRef:()=>Vn,toRefs:()=>Rn,toValue:()=>z,transformVNodeArgs:()=>qc,triggerRef:()=>Nn,unref:()=>R,useAttrs:()=>Io,useCssModule:()=>md,useCssVars:()=>Au,useHost:()=>fd,useId:()=>ra,useModel:()=>ls,useSSRContext:()=>bi,useShadowRoot:()=>pd,useSlots:()=>Fo,useTemplateRef:()=>oa,useTransitionState:()=>Wi,vModelCheckbox:()=>jd,vModelDynamic:()=>Rd,vModelRadio:()=>Nd,vModelSelect:()=>Pd,vModelText:()=>Ad,vShow:()=>Eu,version:()=>Ul,warn:()=>Wl,watch:()=>wi,watchEffect:()=>xi,watchPostEffect:()=>Si,watchSyncEffect:()=>Ci,withAsyncContext:()=>Ho,withCtx:()=>H,withDefaults:()=>Po,withDirectives:()=>mi,withKeys:()=>Kd,withMemo:()=>Vl,withModifiers:()=>Wd,withScopeId:()=>fi});function uf(){Bl()}process.env.NODE_ENV!==`production`&&uf();var df=()=>{process.env.NODE_ENV!==`production`&&Wl(`Runtime compilation is not supported in this build of Vue. Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".`)},ff=Object.create,pf=Object.defineProperty,mf=Object.getOwnPropertyDescriptor,hf=Object.getOwnPropertyNames,gf=Object.getPrototypeOf,_f=Object.prototype.hasOwnProperty,vf=(e,t)=>function(){return e&&(t=(0,e[hf(e)[0]])(e=0)),t},yf=(e,t)=>function(){return t||(0,e[hf(e)[0]])((t={exports:{}}).exports,t),t.exports},bf=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of hf(t))!_f.call(e,i)&&i!==n&&pf(e,i,{get:()=>t[i],enumerable:!(r=mf(t,i))||r.enumerable});return e},xf=(e,t,n)=>(n=e==null?{}:ff(gf(e)),bf(t||!e||!e.__esModule?pf(n,`default`,{value:e,enumerable:!0}):n,e)),Sf=vf({"../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.51.1_@types+node@22.13.14__jiti@2.4.2_postcss@8.5_96eb05a9d65343021e53791dd83f3773/node_modules/tsup/assets/esm_shims.js"(){"use strict";}}),Cf=yf({"../../node_modules/.pnpm/rfdc@1.4.1/node_modules/rfdc/index.js"(e,t){"use strict";Sf(),t.exports=r;function n(e){return e instanceof Buffer?Buffer.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}function r(e){if(e||={},e.circles)return i(e);let t=new Map;if(t.set(Date,e=>new Date(e)),t.set(Map,(e,t)=>new Map(a(Array.from(e),t))),t.set(Set,(e,t)=>new Set(a(Array.from(e),t))),e.constructorHandlers)for(let n of e.constructorHandlers)t.set(n[0],n[1]);let r=null;return e.proto?s:o;function a(e,i){let a=Object.keys(e),o=Array(a.length);for(let s=0;s<a.length;s++){let c=a[s],l=e[c];typeof l!=`object`||!l?o[c]=l:l.constructor!==Object&&(r=t.get(l.constructor))?o[c]=r(l,i):ArrayBuffer.isView(l)?o[c]=n(l):o[c]=i(l)}return o}function o(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return a(e,o);if(e.constructor!==Object&&(r=t.get(e.constructor)))return r(e,o);let i={};for(let a in e){if(Object.hasOwnProperty.call(e,a)===!1)continue;let s=e[a];typeof s!=`object`||!s?i[a]=s:s.constructor!==Object&&(r=t.get(s.constructor))?i[a]=r(s,o):ArrayBuffer.isView(s)?i[a]=n(s):i[a]=o(s)}return i}function s(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return a(e,s);if(e.constructor!==Object&&(r=t.get(e.constructor)))return r(e,s);let i={};for(let a in e){let o=e[a];typeof o!=`object`||!o?i[a]=o:o.constructor!==Object&&(r=t.get(o.constructor))?i[a]=r(o,s):ArrayBuffer.isView(o)?i[a]=n(o):i[a]=s(o)}return i}}function i(e){let t=[],r=[],i=new Map;if(i.set(Date,e=>new Date(e)),i.set(Map,(e,t)=>new Map(o(Array.from(e),t))),i.set(Set,(e,t)=>new Set(o(Array.from(e),t))),e.constructorHandlers)for(let t of e.constructorHandlers)i.set(t[0],t[1]);let a=null;return e.proto?c:s;function o(e,o){let s=Object.keys(e),c=Array(s.length);for(let l=0;l<s.length;l++){let u=s[l],d=e[u];if(typeof d!=`object`||!d)c[u]=d;else if(d.constructor!==Object&&(a=i.get(d.constructor)))c[u]=a(d,o);else if(ArrayBuffer.isView(d))c[u]=n(d);else{let e=t.indexOf(d);e===-1?c[u]=o(d):c[u]=r[e]}}return c}function s(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return o(e,s);if(e.constructor!==Object&&(a=i.get(e.constructor)))return a(e,s);let c={};t.push(e),r.push(c);for(let o in e){if(Object.hasOwnProperty.call(e,o)===!1)continue;let l=e[o];if(typeof l!=`object`||!l)c[o]=l;else if(l.constructor!==Object&&(a=i.get(l.constructor)))c[o]=a(l,s);else if(ArrayBuffer.isView(l))c[o]=n(l);else{let e=t.indexOf(l);e===-1?c[o]=s(l):c[o]=r[e]}}return t.pop(),r.pop(),c}function c(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return o(e,c);if(e.constructor!==Object&&(a=i.get(e.constructor)))return a(e,c);let s={};t.push(e),r.push(s);for(let o in e){let l=e[o];if(typeof l!=`object`||!l)s[o]=l;else if(l.constructor!==Object&&(a=i.get(l.constructor)))s[o]=a(l,c);else if(ArrayBuffer.isView(l))s[o]=n(l);else{let e=t.indexOf(l);e===-1?s[o]=c(l):s[o]=r[e]}}return t.pop(),r.pop(),s}}}});Sf(),Sf(),Sf();var wf=typeof navigator<`u`,X=typeof window<`u`?window:typeof globalThis<`u`?globalThis:typeof global<`u`?global:{};X.chrome!==void 0&&X.chrome.devtools,wf&&(X.self,X.top),typeof navigator<`u`&&navigator.userAgent?.toLowerCase().includes(`electron`),typeof window<`u`&&window.__NUXT__,Sf();var Tf=xf(Cf(),1),Ef=/(?:^|[-_/])(\w)/g;function Df(e,t){return t?t.toUpperCase():``}function Of(e){return e&&`${e}`.replace(Ef,Df)}function kf(e,t){let n=e.replace(/^[a-z]:/i,``).replace(/\\/g,`/`);n.endsWith(`index${t}`)&&(n=n.replace(`/index${t}`,t));let r=n.lastIndexOf(`/`),i=n.substring(r+1);if(t){let e=i.lastIndexOf(t);return i.substring(0,e)}return``}var Af=(0,Tf.default)({circles:!0}),jf={trailing:!0};function Mf(e,t=25,n={}){if(n={...jf,...n},!Number.isFinite(t))throw TypeError("Expected `wait` to be a finite number");let r,i,a=[],o,s,c=(t,r)=>(o=Nf(e,t,r),o.finally(()=>{if(o=null,n.trailing&&s&&!i){let e=c(t,s);return s=null,e}}),o);return function(...e){return o?(n.trailing&&(s=e),o):new Promise(o=>{let s=!i&&n.leading;clearTimeout(i),i=setTimeout(()=>{i=null;let t=n.leading?r:c(this,e);for(let e of a)e(t);a=[]},t),s?(r=c(this,e),o(r)):a.push(o)})}}async function Nf(e,t,n){return await e.apply(t,n)}function Pf(e,t={},n){for(let r in e){let i=e[r],a=n?`${n}:${r}`:r;typeof i==`object`&&i?Pf(i,t,a):typeof i==`function`&&(t[a]=i)}return t}var Ff={run:e=>e()},If=console.createTask===void 0?()=>Ff:console.createTask;function Lf(e,t){let n=If(t.shift());return e.reduce((e,r)=>e.then(()=>n.run(()=>r(...t))),Promise.resolve())}function Rf(e,t){let n=If(t.shift());return Promise.all(e.map(e=>n.run(()=>e(...t))))}function zf(e,t){for(let n of[...e])n(t)}var Bf=class{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(e,t,n={}){if(!e||typeof t!=`function`)return()=>{};let r=e,i;for(;this._deprecatedHooks[e];)i=this._deprecatedHooks[e],e=i.to;if(i&&!n.allowDeprecated){let e=i.message;e||=`${r} hook has been deprecated`+(i.to?`, please use ${i.to}`:``),this._deprecatedMessages||=new Set,this._deprecatedMessages.has(e)||(console.warn(e),this._deprecatedMessages.add(e))}if(!t.name)try{Object.defineProperty(t,"name",{get:()=>`_`+e.replace(/\W+/g,`_`)+`_hook_cb`,configurable:!0})}catch{}return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(t),()=>{t&&=(this.removeHook(e,t),void 0)}}hookOnce(e,t){let n,r=(...e)=>(typeof n==`function`&&n(),n=void 0,r=void 0,t(...e));return n=this.hook(e,r),n}removeHook(e,t){if(this._hooks[e]){let n=this._hooks[e].indexOf(t);n!==-1&&this._hooks[e].splice(n,1),this._hooks[e].length===0&&delete this._hooks[e]}}deprecateHook(e,t){this._deprecatedHooks[e]=typeof t==`string`?{to:t}:t;let n=this._hooks[e]||[];delete this._hooks[e];for(let t of n)this.hook(e,t)}deprecateHooks(e){Object.assign(this._deprecatedHooks,e);for(let t in e)this.deprecateHook(t,e[t])}addHooks(e){let t=Pf(e),n=Object.keys(t).map(e=>this.hook(e,t[e]));return()=>{for(let e of n.splice(0,n.length))e()}}removeHooks(e){let t=Pf(e);for(let e in t)this.removeHook(e,t[e])}removeAllHooks(){for(let e in this._hooks)delete this._hooks[e]}callHook(e,...t){return t.unshift(e),this.callHookWith(Lf,e,...t)}callHookParallel(e,...t){return t.unshift(e),this.callHookWith(Rf,e,...t)}callHookWith(e,t,...n){let r=this._before||this._after?{name:t,args:n,context:{}}:void 0;this._before&&zf(this._before,r);let i=e(t in this._hooks?[...this._hooks[t]]:[],n);return i instanceof Promise?i.finally(()=>{this._after&&r&&zf(this._after,r)}):(this._after&&r&&zf(this._after,r),i)}beforeEach(e){return this._before=this._before||[],this._before.push(e),()=>{if(this._before!==void 0){let t=this._before.indexOf(e);t!==-1&&this._before.splice(t,1)}}}afterEach(e){return this._after=this._after||[],this._after.push(e),()=>{if(this._after!==void 0){let t=this._after.indexOf(e);t!==-1&&this._after.splice(t,1)}}}};function Vf(){return new Bf}var Hf=Object.create,Uf=Object.defineProperty,Wf=Object.getOwnPropertyDescriptor,Gf=Object.getOwnPropertyNames,Kf=Object.getPrototypeOf,qf=Object.prototype.hasOwnProperty,Jf=(e,t)=>function(){return e&&(t=(0,e[Gf(e)[0]])(e=0)),t},Yf=(e,t)=>function(){return t||(0,e[Gf(e)[0]])((t={exports:{}}).exports,t),t.exports},Xf=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of Gf(t))!qf.call(e,i)&&i!==n&&Uf(e,i,{get:()=>t[i],enumerable:!(r=Wf(t,i))||r.enumerable});return e},Zf=(e,t,n)=>(n=e==null?{}:Hf(Kf(e)),Xf(t||!e||!e.__esModule?Uf(n,`default`,{value:e,enumerable:!0}):n,e)),Z=Jf({"../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.51.1_@types+node@22.13.14__jiti@2.4.2_postcss@8.5_96eb05a9d65343021e53791dd83f3773/node_modules/tsup/assets/esm_shims.js"(){"use strict";}}),Qf=Yf({"../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/lib/speakingurl.js"(e,t){"use strict";Z(),(function(e){var n={À:`A`,Á:`A`,Â:`A`,Ã:`A`,Ä:`Ae`,Å:`A`,Æ:`AE`,Ç:`C`,È:`E`,É:`E`,Ê:`E`,Ë:`E`,Ì:`I`,Í:`I`,Î:`I`,Ï:`I`,Ð:`D`,Ñ:`N`,Ò:`O`,Ó:`O`,Ô:`O`,Õ:`O`,Ö:`Oe`,Ő:`O`,Ø:`O`,Ù:`U`,Ú:`U`,Û:`U`,Ü:`Ue`,Ű:`U`,Ý:`Y`,Þ:`TH`,ß:`ss`,à:`a`,á:`a`,â:`a`,ã:`a`,ä:`ae`,å:`a`,æ:`ae`,ç:`c`,è:`e`,é:`e`,ê:`e`,ë:`e`,ì:`i`,í:`i`,î:`i`,ï:`i`,ð:`d`,ñ:`n`,ò:`o`,ó:`o`,ô:`o`,õ:`o`,ö:`oe`,ő:`o`,ø:`o`,ù:`u`,ú:`u`,û:`u`,ü:`ue`,ű:`u`,ý:`y`,þ:`th`,ÿ:`y`,ẞ:`SS`,ا:`a`,أ:`a`,إ:`i`,آ:`aa`,ؤ:`u`,ئ:`e`,ء:`a`,ب:`b`,ت:`t`,ث:`th`,ج:`j`,ح:`h`,خ:`kh`,د:`d`,ذ:`th`,ر:`r`,ز:`z`,س:`s`,ش:`sh`,ص:`s`,ض:`dh`,ط:`t`,ظ:`z`,ع:`a`,غ:`gh`,ف:`f`,ق:`q`,ك:`k`,ل:`l`,م:`m`,ن:`n`,ه:`h`,و:`w`,ي:`y`,ى:`a`,ة:`h`,ﻻ:`la`,ﻷ:`laa`,ﻹ:`lai`,ﻵ:`laa`,گ:`g`,چ:`ch`,پ:`p`,ژ:`zh`,ک:`k`,ی:`y`,"َ":`a`,"ً":`an`,"ِ":`e`,"ٍ":`en`,"ُ":`u`,"ٌ":`on`,"ْ":``,"٠":`0`,"١":`1`,"٢":`2`,"٣":`3`,"٤":`4`,"٥":`5`,"٦":`6`,"٧":`7`,"٨":`8`,"٩":`9`,"۰":`0`,"۱":`1`,"۲":`2`,"۳":`3`,"۴":`4`,"۵":`5`,"۶":`6`,"۷":`7`,"۸":`8`,"۹":`9`,က:`k`,ခ:`kh`,ဂ:`g`,ဃ:`ga`,င:`ng`,စ:`s`,ဆ:`sa`,ဇ:`z`,စျ:`za`,ည:`ny`,ဋ:`t`,ဌ:`ta`,ဍ:`d`,ဎ:`da`,ဏ:`na`,တ:`t`,ထ:`ta`,ဒ:`d`,ဓ:`da`,န:`n`,ပ:`p`,ဖ:`pa`,ဗ:`b`,ဘ:`ba`,မ:`m`,ယ:`y`,ရ:`ya`,လ:`l`,ဝ:`w`,သ:`th`,ဟ:`h`,ဠ:`la`,အ:`a`,"ြ":`y`,"ျ":`ya`,"ွ":`w`,"ြွ":`yw`,"ျွ":`ywa`,"ှ":`h`,ဧ:`e`,"၏":`-e`,ဣ:`i`,ဤ:`-i`,ဉ:`u`,ဦ:`-u`,ဩ:`aw`,သြော:`aw`,ဪ:`aw`,"၀":`0`,"၁":`1`,"၂":`2`,"၃":`3`,"၄":`4`,"၅":`5`,"၆":`6`,"၇":`7`,"၈":`8`,"၉":`9`,"္":``,"့":``,"း":``,č:`c`,ď:`d`,ě:`e`,ň:`n`,ř:`r`,š:`s`,ť:`t`,ů:`u`,ž:`z`,Č:`C`,Ď:`D`,Ě:`E`,Ň:`N`,Ř:`R`,Š:`S`,Ť:`T`,Ů:`U`,Ž:`Z`,ހ:`h`,ށ:`sh`,ނ:`n`,ރ:`r`,ބ:`b`,ޅ:`lh`,ކ:`k`,އ:`a`,ވ:`v`,މ:`m`,ފ:`f`,ދ:`dh`,ތ:`th`,ލ:`l`,ގ:`g`,ޏ:`gn`,ސ:`s`,ޑ:`d`,ޒ:`z`,ޓ:`t`,ޔ:`y`,ޕ:`p`,ޖ:`j`,ޗ:`ch`,ޘ:`tt`,ޙ:`hh`,ޚ:`kh`,ޛ:`th`,ޜ:`z`,ޝ:`sh`,ޞ:`s`,ޟ:`d`,ޠ:`t`,ޡ:`z`,ޢ:`a`,ޣ:`gh`,ޤ:`q`,ޥ:`w`,"ަ":`a`,"ާ":`aa`,"ި":`i`,"ީ":`ee`,"ު":`u`,"ޫ":`oo`,"ެ":`e`,"ޭ":`ey`,"ޮ":`o`,"ޯ":`oa`,"ް":``,ა:`a`,ბ:`b`,გ:`g`,დ:`d`,ე:`e`,ვ:`v`,ზ:`z`,თ:`t`,ი:`i`,კ:`k`,ლ:`l`,მ:`m`,ნ:`n`,ო:`o`,პ:`p`,ჟ:`zh`,რ:`r`,ს:`s`,ტ:`t`,უ:`u`,ფ:`p`,ქ:`k`,ღ:`gh`,ყ:`q`,შ:`sh`,ჩ:`ch`,ც:`ts`,ძ:`dz`,წ:`ts`,ჭ:`ch`,ხ:`kh`,ჯ:`j`,ჰ:`h`,α:`a`,β:`v`,γ:`g`,δ:`d`,ε:`e`,ζ:`z`,η:`i`,θ:`th`,ι:`i`,κ:`k`,λ:`l`,μ:`m`,ν:`n`,ξ:`ks`,ο:`o`,π:`p`,ρ:`r`,σ:`s`,τ:`t`,υ:`y`,φ:`f`,χ:`x`,ψ:`ps`,ω:`o`,ά:`a`,έ:`e`,ί:`i`,ό:`o`,ύ:`y`,ή:`i`,ώ:`o`,ς:`s`,ϊ:`i`,ΰ:`y`,ϋ:`y`,ΐ:`i`,Α:`A`,Β:`B`,Γ:`G`,Δ:`D`,Ε:`E`,Ζ:`Z`,Η:`I`,Θ:`TH`,Ι:`I`,Κ:`K`,Λ:`L`,Μ:`M`,Ν:`N`,Ξ:`KS`,Ο:`O`,Π:`P`,Ρ:`R`,Σ:`S`,Τ:`T`,Υ:`Y`,Φ:`F`,Χ:`X`,Ψ:`PS`,Ω:`O`,Ά:`A`,Έ:`E`,Ί:`I`,Ό:`O`,Ύ:`Y`,Ή:`I`,Ώ:`O`,Ϊ:`I`,Ϋ:`Y`,ā:`a`,ē:`e`,ģ:`g`,ī:`i`,ķ:`k`,ļ:`l`,ņ:`n`,ū:`u`,Ā:`A`,Ē:`E`,Ģ:`G`,Ī:`I`,Ķ:`k`,Ļ:`L`,Ņ:`N`,Ū:`U`,Ќ:`Kj`,ќ:`kj`,Љ:`Lj`,љ:`lj`,Њ:`Nj`,њ:`nj`,Тс:`Ts`,тс:`ts`,ą:`a`,ć:`c`,ę:`e`,ł:`l`,ń:`n`,ś:`s`,ź:`z`,ż:`z`,Ą:`A`,Ć:`C`,Ę:`E`,Ł:`L`,Ń:`N`,Ś:`S`,Ź:`Z`,Ż:`Z`,Є:`Ye`,І:`I`,Ї:`Yi`,Ґ:`G`,є:`ye`,і:`i`,ї:`yi`,ґ:`g`,ă:`a`,Ă:`A`,ș:`s`,Ș:`S`,ț:`t`,Ț:`T`,ţ:`t`,Ţ:`T`,а:`a`,б:`b`,в:`v`,г:`g`,д:`d`,е:`e`,ё:`yo`,ж:`zh`,з:`z`,и:`i`,й:`i`,к:`k`,л:`l`,м:`m`,н:`n`,о:`o`,п:`p`,р:`r`,с:`s`,т:`t`,у:`u`,ф:`f`,х:`kh`,ц:`c`,ч:`ch`,ш:`sh`,щ:`sh`,ъ:``,ы:`y`,ь:``,э:`e`,ю:`yu`,я:`ya`,А:`A`,Б:`B`,В:`V`,Г:`G`,Д:`D`,Е:`E`,Ё:`Yo`,Ж:`Zh`,З:`Z`,И:`I`,Й:`I`,К:`K`,Л:`L`,М:`M`,Н:`N`,О:`O`,П:`P`,Р:`R`,С:`S`,Т:`T`,У:`U`,Ф:`F`,Х:`Kh`,Ц:`C`,Ч:`Ch`,Ш:`Sh`,Щ:`Sh`,Ъ:``,Ы:`Y`,Ь:``,Э:`E`,Ю:`Yu`,Я:`Ya`,ђ:`dj`,ј:`j`,ћ:`c`,џ:`dz`,Ђ:`Dj`,Ј:`j`,Ћ:`C`,Џ:`Dz`,ľ:`l`,ĺ:`l`,ŕ:`r`,Ľ:`L`,Ĺ:`L`,Ŕ:`R`,ş:`s`,Ş:`S`,ı:`i`,İ:`I`,ğ:`g`,Ğ:`G`,ả:`a`,Ả:`A`,ẳ:`a`,Ẳ:`A`,ẩ:`a`,Ẩ:`A`,đ:`d`,Đ:`D`,ẹ:`e`,Ẹ:`E`,ẽ:`e`,Ẽ:`E`,ẻ:`e`,Ẻ:`E`,ế:`e`,Ế:`E`,ề:`e`,Ề:`E`,ệ:`e`,Ệ:`E`,ễ:`e`,Ễ:`E`,ể:`e`,Ể:`E`,ỏ:`o`,ọ:`o`,Ọ:`o`,ố:`o`,Ố:`O`,ồ:`o`,Ồ:`O`,ổ:`o`,Ổ:`O`,ộ:`o`,Ộ:`O`,ỗ:`o`,Ỗ:`O`,ơ:`o`,Ơ:`O`,ớ:`o`,Ớ:`O`,ờ:`o`,Ờ:`O`,ợ:`o`,Ợ:`O`,ỡ:`o`,Ỡ:`O`,Ở:`o`,ở:`o`,ị:`i`,Ị:`I`,ĩ:`i`,Ĩ:`I`,ỉ:`i`,Ỉ:`i`,ủ:`u`,Ủ:`U`,ụ:`u`,Ụ:`U`,ũ:`u`,Ũ:`U`,ư:`u`,Ư:`U`,ứ:`u`,Ứ:`U`,ừ:`u`,Ừ:`U`,ự:`u`,Ự:`U`,ữ:`u`,Ữ:`U`,ử:`u`,Ử:`ư`,ỷ:`y`,Ỷ:`y`,ỳ:`y`,Ỳ:`Y`,ỵ:`y`,Ỵ:`Y`,ỹ:`y`,Ỹ:`Y`,ạ:`a`,Ạ:`A`,ấ:`a`,Ấ:`A`,ầ:`a`,Ầ:`A`,ậ:`a`,Ậ:`A`,ẫ:`a`,Ẫ:`A`,ắ:`a`,Ắ:`A`,ằ:`a`,Ằ:`A`,ặ:`a`,Ặ:`A`,ẵ:`a`,Ẵ:`A`,"⓪":`0`,"①":`1`,"②":`2`,"③":`3`,"④":`4`,"⑤":`5`,"⑥":`6`,"⑦":`7`,"⑧":`8`,"⑨":`9`,"⑩":`10`,"⑪":`11`,"⑫":`12`,"⑬":`13`,"⑭":`14`,"⑮":`15`,"⑯":`16`,"⑰":`17`,"⑱":`18`,"⑲":`18`,"⑳":`18`,"⓵":`1`,"⓶":`2`,"⓷":`3`,"⓸":`4`,"⓹":`5`,"⓺":`6`,"⓻":`7`,"⓼":`8`,"⓽":`9`,"⓾":`10`,"⓿":`0`,"⓫":`11`,"⓬":`12`,"⓭":`13`,"⓮":`14`,"⓯":`15`,"⓰":`16`,"⓱":`17`,"⓲":`18`,"⓳":`19`,"⓴":`20`,"Ⓐ":`A`,"Ⓑ":`B`,"Ⓒ":`C`,"Ⓓ":`D`,"Ⓔ":`E`,"Ⓕ":`F`,"Ⓖ":`G`,"Ⓗ":`H`,"Ⓘ":`I`,"Ⓙ":`J`,"Ⓚ":`K`,"Ⓛ":`L`,"Ⓜ":`M`,"Ⓝ":`N`,"Ⓞ":`O`,"Ⓟ":`P`,"Ⓠ":`Q`,"Ⓡ":`R`,"Ⓢ":`S`,"Ⓣ":`T`,"Ⓤ":`U`,"Ⓥ":`V`,"Ⓦ":`W`,"Ⓧ":`X`,"Ⓨ":`Y`,"Ⓩ":`Z`,"ⓐ":`a`,"ⓑ":`b`,"ⓒ":`c`,"ⓓ":`d`,"ⓔ":`e`,"ⓕ":`f`,"ⓖ":`g`,"ⓗ":`h`,"ⓘ":`i`,"ⓙ":`j`,"ⓚ":`k`,"ⓛ":`l`,"ⓜ":`m`,"ⓝ":`n`,"ⓞ":`o`,"ⓟ":`p`,"ⓠ":`q`,"ⓡ":`r`,"ⓢ":`s`,"ⓣ":`t`,"ⓤ":`u`,"ⓦ":`v`,"ⓥ":`w`,"ⓧ":`x`,"ⓨ":`y`,"ⓩ":`z`,"“":`"`,"”":`"`,"‘":`'`,"’":`'`,"∂":`d`,ƒ:`f`,"™":`(TM)`,"©":`(C)`,œ:`oe`,Œ:`OE`,"®":`(R)`,"†":`+`,"℠":`(SM)`,"…":`...`,"˚":`o`,º:`o`,ª:`a`,"•":`*`,"၊":`,`,"။":`.`,$:`USD`,"€":`EUR`,"₢":`BRN`,"₣":`FRF`,"£":`GBP`,"₤":`ITL`,"₦":`NGN`,"₧":`ESP`,"₩":`KRW`,"₪":`ILS`,"₫":`VND`,"₭":`LAK`,"₮":`MNT`,"₯":`GRD`,"₱":`ARS`,"₲":`PYG`,"₳":`ARA`,"₴":`UAH`,"₵":`GHS`,"¢":`cent`,"¥":`CNY`,元:`CNY`,円:`YEN`,"﷼":`IRR`,"₠":`EWE`,"฿":`THB`,"₨":`INR`,"₹":`INR`,"₰":`PF`,"₺":`TRY`,"؋":`AFN`,"₼":`AZN`,лв:`BGN`,"៛":`KHR`,"₡":`CRC`,"₸":`KZT`,ден:`MKD`,zł:`PLN`,"₽":`RUB`,"₾":`GEL`},r=[`်`,`ް`],i={"ာ":`a`,"ါ":`a`,"ေ":`e`,"ဲ":`e`,"ိ":`i`,"ီ":`i`,"ို":`o`,"ု":`u`,"ူ":`u`,"ေါင်":`aung`,"ော":`aw`,"ော်":`aw`,"ေါ":`aw`,"ေါ်":`aw`,"်":`်`,က်:`et`,"ိုက်":`aik`,"ောက်":`auk`,င်:`in`,"ိုင်":`aing`,"ောင်":`aung`,စ်:`it`,ည်:`i`,တ်:`at`,"ိတ်":`eik`,"ုတ်":`ok`,"ွတ်":`ut`,"ေတ်":`it`,ဒ်:`d`,"ိုဒ်":`ok`,"ုဒ်":`ait`,န်:`an`,"ာန်":`an`,"ိန်":`ein`,"ုန်":`on`,"ွန်":`un`,ပ်:`at`,"ိပ်":`eik`,"ုပ်":`ok`,"ွပ်":`ut`,န်ုပ်:`nub`,မ်:`an`,"ိမ်":`ein`,"ုမ်":`on`,"ွမ်":`un`,ယ်:`e`,"ိုလ်":`ol`,ဉ်:`in`,"ံ":`an`,"ိံ":`ein`,"ုံ":`on`,"ައް":`ah`,"ަށް":`ah`},a={en:{},az:{ç:`c`,ə:`e`,ğ:`g`,ı:`i`,ö:`o`,ş:`s`,ü:`u`,Ç:`C`,Ə:`E`,Ğ:`G`,İ:`I`,Ö:`O`,Ş:`S`,Ü:`U`},cs:{č:`c`,ď:`d`,ě:`e`,ň:`n`,ř:`r`,š:`s`,ť:`t`,ů:`u`,ž:`z`,Č:`C`,Ď:`D`,Ě:`E`,Ň:`N`,Ř:`R`,Š:`S`,Ť:`T`,Ů:`U`,Ž:`Z`},fi:{ä:`a`,Ä:`A`,ö:`o`,Ö:`O`},hu:{ä:`a`,Ä:`A`,ö:`o`,Ö:`O`,ü:`u`,Ü:`U`,ű:`u`,Ű:`U`},lt:{ą:`a`,č:`c`,ę:`e`,ė:`e`,į:`i`,š:`s`,ų:`u`,ū:`u`,ž:`z`,Ą:`A`,Č:`C`,Ę:`E`,Ė:`E`,Į:`I`,Š:`S`,Ų:`U`,Ū:`U`},lv:{ā:`a`,č:`c`,ē:`e`,ģ:`g`,ī:`i`,ķ:`k`,ļ:`l`,ņ:`n`,š:`s`,ū:`u`,ž:`z`,Ā:`A`,Č:`C`,Ē:`E`,Ģ:`G`,Ī:`i`,Ķ:`k`,Ļ:`L`,Ņ:`N`,Š:`S`,Ū:`u`,Ž:`Z`},pl:{ą:`a`,ć:`c`,ę:`e`,ł:`l`,ń:`n`,ó:`o`,ś:`s`,ź:`z`,ż:`z`,Ą:`A`,Ć:`C`,Ę:`e`,Ł:`L`,Ń:`N`,Ó:`O`,Ś:`S`,Ź:`Z`,Ż:`Z`},sv:{ä:`a`,Ä:`A`,ö:`o`,Ö:`O`},sk:{ä:`a`,Ä:`A`},sr:{љ:`lj`,њ:`nj`,Љ:`Lj`,Њ:`Nj`,đ:`dj`,Đ:`Dj`},tr:{Ü:`U`,Ö:`O`,ü:`u`,ö:`o`}},o={ar:{"∆":`delta`,"∞":`la-nihaya`,"♥":`hob`,"&":`wa`,"|":`aw`,"<":`aqal-men`,">":`akbar-men`,"∑":`majmou`,"¤":`omla`},az:{},ca:{"∆":`delta`,"∞":`infinit`,"♥":`amor`,"&":`i`,"|":`o`,"<":`menys que`,">":`mes que`,"∑":`suma dels`,"¤":`moneda`},cs:{"∆":`delta`,"∞":`nekonecno`,"♥":`laska`,"&":`a`,"|":`nebo`,"<":`mensi nez`,">":`vetsi nez`,"∑":`soucet`,"¤":`mena`},de:{"∆":`delta`,"∞":`unendlich`,"♥":`Liebe`,"&":`und`,"|":`oder`,"<":`kleiner als`,">":`groesser als`,"∑":`Summe von`,"¤":`Waehrung`},dv:{"∆":`delta`,"∞":`kolunulaa`,"♥":`loabi`,"&":`aai`,"|":`noonee`,"<":`ah vure kuda`,">":`ah vure bodu`,"∑":`jumula`,"¤":`faisaa`},en:{"∆":`delta`,"∞":`infinity`,"♥":`love`,"&":`and`,"|":`or`,"<":`less than`,">":`greater than`,"∑":`sum`,"¤":`currency`},es:{"∆":`delta`,"∞":`infinito`,"♥":`amor`,"&":`y`,"|":`u`,"<":`menos que`,">":`mas que`,"∑":`suma de los`,"¤":`moneda`},fa:{"∆":`delta`,"∞":`bi-nahayat`,"♥":`eshgh`,"&":`va`,"|":`ya`,"<":`kamtar-az`,">":`bishtar-az`,"∑":`majmooe`,"¤":`vahed`},fi:{"∆":`delta`,"∞":`aarettomyys`,"♥":`rakkaus`,"&":`ja`,"|":`tai`,"<":`pienempi kuin`,">":`suurempi kuin`,"∑":`summa`,"¤":`valuutta`},fr:{"∆":`delta`,"∞":`infiniment`,"♥":`Amour`,"&":`et`,"|":`ou`,"<":`moins que`,">":`superieure a`,"∑":`somme des`,"¤":`monnaie`},ge:{"∆":`delta`,"∞":`usasruloba`,"♥":`siqvaruli`,"&":`da`,"|":`an`,"<":`naklebi`,">":`meti`,"∑":`jami`,"¤":`valuta`},gr:{},hu:{"∆":`delta`,"∞":`vegtelen`,"♥":`szerelem`,"&":`es`,"|":`vagy`,"<":`kisebb mint`,">":`nagyobb mint`,"∑":`szumma`,"¤":`penznem`},it:{"∆":`delta`,"∞":`infinito`,"♥":`amore`,"&":`e`,"|":`o`,"<":`minore di`,">":`maggiore di`,"∑":`somma`,"¤":`moneta`},lt:{"∆":`delta`,"∞":`begalybe`,"♥":`meile`,"&":`ir`,"|":`ar`,"<":`maziau nei`,">":`daugiau nei`,"∑":`suma`,"¤":`valiuta`},lv:{"∆":`delta`,"∞":`bezgaliba`,"♥":`milestiba`,"&":`un`,"|":`vai`,"<":`mazak neka`,">":`lielaks neka`,"∑":`summa`,"¤":`valuta`},my:{"∆":`kwahkhyaet`,"∞":`asaonasme`,"♥":`akhyait`,"&":`nhin`,"|":`tho`,"<":`ngethaw`,">":`kyithaw`,"∑":`paungld`,"¤":`ngwekye`},mk:{},nl:{"∆":`delta`,"∞":`oneindig`,"♥":`liefde`,"&":`en`,"|":`of`,"<":`kleiner dan`,">":`groter dan`,"∑":`som`,"¤":`valuta`},pl:{"∆":`delta`,"∞":`nieskonczonosc`,"♥":`milosc`,"&":`i`,"|":`lub`,"<":`mniejsze niz`,">":`wieksze niz`,"∑":`suma`,"¤":`waluta`},pt:{"∆":`delta`,"∞":`infinito`,"♥":`amor`,"&":`e`,"|":`ou`,"<":`menor que`,">":`maior que`,"∑":`soma`,"¤":`moeda`},ro:{"∆":`delta`,"∞":`infinit`,"♥":`dragoste`,"&":`si`,"|":`sau`,"<":`mai mic ca`,">":`mai mare ca`,"∑":`suma`,"¤":`valuta`},ru:{"∆":`delta`,"∞":`beskonechno`,"♥":`lubov`,"&":`i`,"|":`ili`,"<":`menshe`,">":`bolshe`,"∑":`summa`,"¤":`valjuta`},sk:{"∆":`delta`,"∞":`nekonecno`,"♥":`laska`,"&":`a`,"|":`alebo`,"<":`menej ako`,">":`viac ako`,"∑":`sucet`,"¤":`mena`},sr:{},tr:{"∆":`delta`,"∞":`sonsuzluk`,"♥":`ask`,"&":`ve`,"|":`veya`,"<":`kucuktur`,">":`buyuktur`,"∑":`toplam`,"¤":`para birimi`},uk:{"∆":`delta`,"∞":`bezkinechnist`,"♥":`lubov`,"&":`i`,"|":`abo`,"<":`menshe`,">":`bilshe`,"∑":`suma`,"¤":`valjuta`},vn:{"∆":`delta`,"∞":`vo cuc`,"♥":`yeu`,"&":`va`,"|":`hoac`,"<":`nho hon`,">":`lon hon`,"∑":`tong`,"¤":`tien te`}},s=[`;`,`?`,`:`,`@`,`&`,`=`,`+`,`$`,`,`,`/`].join(``),c=[`;`,`?`,`:`,`@`,`&`,`=`,`+`,`$`,`,`].join(``),l=[`.`,`!`,`~`,`*`,`'`,`(`,`)`].join(``),u=function(e,t){var u=`-`,d=``,m=``,h=!0,g={},_,v,y,b,x,S,C,w,T,E,D,O,k,ee,A=``;if(typeof e!=`string`)return``;if(typeof t==`string`&&(u=t),C=o.en,w=a.en,typeof t==`object`)for(D in _=t.maintainCase||!1,g=t.custom&&typeof t.custom==`object`?t.custom:g,y=+t.truncate>1&&t.truncate||!1,b=t.uric||!1,x=t.uricNoSlash||!1,S=t.mark||!1,h=!(t.symbols===!1||t.lang===!1),u=t.separator||u,b&&(A+=s),x&&(A+=c),S&&(A+=l),C=t.lang&&o[t.lang]&&h?o[t.lang]:h?o.en:{},w=t.lang&&a[t.lang]?a[t.lang]:t.lang===!1||t.lang===!0?{}:a.en,t.titleCase&&typeof t.titleCase.length==`number`&&Array.prototype.toString.call(t.titleCase)?(t.titleCase.forEach(function(e){g[e+``]=e+``}),v=!0):v=!!t.titleCase,t.custom&&typeof t.custom.length==`number`&&Array.prototype.toString.call(t.custom)&&t.custom.forEach(function(e){g[e+``]=e+``}),Object.keys(g).forEach(function(t){var n=t.length>1?RegExp(`\\b`+f(t)+`\\b`,`gi`):new RegExp(f(t),`gi`);e=e.replace(n,g[t])}),g)A+=D;for(A+=u,A=f(A),e=e.replace(/(^\s+|\s+$)/g,``),k=!1,ee=!1,E=0,O=e.length;E<O;E++)D=e[E],p(D,g)?k=!1:w[D]?(D=k&&w[D].match(/[A-Za-z0-9]/)?` `+w[D]:w[D],k=!1):D in n?(E+1<O&&r.indexOf(e[E+1])>=0?(m+=D,D=``):ee===!0?(D=i[m]+n[D],m=``):D=k&&n[D].match(/[A-Za-z0-9]/)?` `+n[D]:n[D],k=!1,ee=!1):D in i?(m+=D,D=``,E===O-1&&(D=i[m]),ee=!0):C[D]&&!(b&&s.indexOf(D)!==-1)&&!(x&&c.indexOf(D)!==-1)?(D=k||d.substr(-1).match(/[A-Za-z0-9]/)?u+C[D]:C[D],D+=e[E+1]!==void 0&&e[E+1].match(/[A-Za-z0-9]/)?u:``,k=!0):(ee===!0?(D=i[m]+D,m=``,ee=!1):k&&(/[A-Za-z0-9]/.test(D)||d.substr(-1).match(/A-Za-z0-9]/))&&(D=` `+D),k=!1),d+=D.replace(RegExp(`[^\\w\\s`+A+`_-]`,`g`),u);return v&&(d=d.replace(/(\w)(\S*)/g,function(e,t,n){var r=t.toUpperCase()+(n===null?``:n);return Object.keys(g).indexOf(r.toLowerCase())<0?r:r.toLowerCase()})),d=d.replace(/\s+/g,u).replace(RegExp(`\\`+u+`+`,`g`),u).replace(RegExp(`(^\\`+u+`+|\\`+u+`+$)`,`g`),``),y&&d.length>y&&(T=d.charAt(y)===u,d=d.slice(0,y),T||(d=d.slice(0,d.lastIndexOf(u)))),!_&&!v&&(d=d.toLowerCase()),d},d=function(e){return function(t){return u(t,e)}},f=function(e){return e.replace(/[-\\^$*+?.()|[\]{}\/]/g,`\\$&`)},p=function(e,t){for(var n in t)if(t[n]===e)return!0};if(t!==void 0&&t.exports)t.exports=u,t.exports.createSlug=d;else if(typeof define<`u`&&define.amd)define([],function(){return u});else try{if(e.getSlug||e.createSlug)throw`speakingurl: globals exists /(getSlug|createSlug)/`;e.getSlug=u,e.createSlug=d}catch{}})(e)}}),$f=Yf({"../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/index.js"(e,t){"use strict";Z(),t.exports=Qf()}});Z(),Z(),Z(),Z(),Z(),Z(),Z(),Z();function ep(e){let t=e.name||e._componentTag||e.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__||e.__name;return t===`index`&&e.__file?.endsWith(`index.vue`)?``:t}function tp(e){let t=e.__file;if(t)return Of(kf(t,`.vue`))}function np(e,t){return e.type.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__=t,t}function rp(e){if(e.__VUE_DEVTOOLS_NEXT_APP_RECORD__)return e.__VUE_DEVTOOLS_NEXT_APP_RECORD__;if(e.root)return e.appContext.app.__VUE_DEVTOOLS_NEXT_APP_RECORD__}function ip(e){let t=e.subTree?.type,n=rp(e);return n?n?.types?.Fragment===t:!1}function ap(e){let t=ep(e?.type||{});if(t)return t;if(e?.root===e)return`Root`;for(let t in e.parent?.type?.components)if(e.parent.type.components[t]===e?.type)return np(e,t);for(let t in e.appContext?.components)if(e.appContext.components[t]===e?.type)return np(e,t);return tp(e?.type||{})||`Anonymous Component`}function op(e){return`${e?.appContext?.app?.__VUE_DEVTOOLS_NEXT_APP_RECORD_ID__??0}:${e===e?.root?`root`:e.uid}`}function sp(e,t){return t||=`${e.id}:root`,e.instanceMap.get(t)||e.instanceMap.get(`:root`)}function cp(){let e={top:0,bottom:0,left:0,right:0,get width(){return e.right-e.left},get height(){return e.bottom-e.top}};return e}var lp;function up(e){return lp||=document.createRange(),lp.selectNode(e),lp.getBoundingClientRect()}function dp(e){let t=cp();if(!e.children)return t;for(let n=0,r=e.children.length;n<r;n++){let r=e.children[n],i;if(r.component)i=mp(r.component);else if(r.el){let e=r.el;e.nodeType===1||e.getBoundingClientRect?i=e.getBoundingClientRect():e.nodeType===3&&e.data.trim()&&(i=up(e))}i&&fp(t,i)}return t}function fp(e,t){return(!e.top||t.top<e.top)&&(e.top=t.top),(!e.bottom||t.bottom>e.bottom)&&(e.bottom=t.bottom),(!e.left||t.left<e.left)&&(e.left=t.left),(!e.right||t.right>e.right)&&(e.right=t.right),e}var pp={top:0,left:0,right:0,bottom:0,width:0,height:0};function mp(e){let t=e.subTree.el;return typeof window>`u`?pp:ip(e)?dp(e.subTree):t?.nodeType===1?t?.getBoundingClientRect():e.subTree.component?mp(e.subTree.component):pp}Z();function hp(e){return ip(e)?gp(e.subTree):e.subTree?[e.subTree.el]:[]}function gp(e){if(!e.children)return[];let t=[];return e.children.forEach(e=>{e.component?t.push(...hp(e.component)):e?.el&&t.push(e.el)}),t}var _p=`__vue-devtools-component-inspector__`,vp=`__vue-devtools-component-inspector__card__`,yp=`__vue-devtools-component-inspector__name__`,bp=`__vue-devtools-component-inspector__indicator__`,xp={display:`block`,zIndex:2147483640,position:`fixed`,backgroundColor:`#42b88325`,border:`1px solid #42b88350`,borderRadius:`5px`,transition:`all 0.1s ease-in`,pointerEvents:`none`},Sp={fontFamily:`Arial, Helvetica, sans-serif`,padding:`5px 8px`,borderRadius:`4px`,textAlign:`left`,position:`absolute`,left:0,color:`#e9e9e9`,fontSize:`14px`,fontWeight:600,lineHeight:`24px`,backgroundColor:`#42b883`,boxShadow:`0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1)`},Cp={display:`inline-block`,fontWeight:400,fontStyle:`normal`,fontSize:`12px`,opacity:.7};function wp(){return document.getElementById(_p)}function Tp(){return document.getElementById(vp)}function Ep(){return document.getElementById(bp)}function Dp(){return document.getElementById(yp)}function Op(e){return{left:`${Math.round(e.left*100)/100}px`,top:`${Math.round(e.top*100)/100}px`,width:`${Math.round(e.width*100)/100}px`,height:`${Math.round(e.height*100)/100}px`}}function kp(e){let t=document.createElement(`div`);t.id=e.elementId??_p,Object.assign(t.style,{...xp,...Op(e.bounds),...e.style});let n=document.createElement(`span`);n.id=vp,Object.assign(n.style,{...Sp,top:e.bounds.top<35?0:`-35px`});let r=document.createElement(`span`);r.id=yp,r.innerHTML=`&lt;${e.name}&gt;&nbsp;&nbsp;`;let i=document.createElement(`i`);return i.id=bp,i.innerHTML=`${Math.round(e.bounds.width*100)/100} x ${Math.round(e.bounds.height*100)/100}`,Object.assign(i.style,Cp),n.appendChild(r),n.appendChild(i),t.appendChild(n),document.body.appendChild(t),t}function Ap(e){let t=wp(),n=Tp(),r=Dp(),i=Ep();t&&(Object.assign(t.style,{...xp,...Op(e.bounds)}),Object.assign(n.style,{top:e.bounds.top<35?0:`-35px`}),r.innerHTML=`&lt;${e.name}&gt;&nbsp;&nbsp;`,i.innerHTML=`${Math.round(e.bounds.width*100)/100} x ${Math.round(e.bounds.height*100)/100}`)}function jp(e){let t=mp(e);if(!t.width&&!t.height)return;let n=ap(e);wp()?Ap({bounds:t,name:n}):kp({bounds:t,name:n})}function Mp(){let e=wp();e&&(e.style.display=`none`)}var Np=null;function Pp(e){let t=e.target;if(t){let e=t.__vueParentComponent;if(e&&(Np=e,e.vnode.el)){let t=mp(e),n=ap(e);wp()?Ap({bounds:t,name:n}):kp({bounds:t,name:n})}}}function Fp(e,t){e.preventDefault(),e.stopPropagation(),Np&&t(op(Np))}var Ip=null;function Lp(){Mp(),window.removeEventListener(`mouseover`,Pp),window.removeEventListener(`click`,Ip,!0),Ip=null}function Rp(){return window.addEventListener(`mouseover`,Pp),new Promise(e=>{function t(n){n.preventDefault(),n.stopPropagation(),Fp(n,n=>{window.removeEventListener(`click`,t,!0),Ip=null,window.removeEventListener(`mouseover`,Pp);let r=wp();r&&(r.style.display=`none`),e(JSON.stringify({id:n}))})}Ip=t,window.addEventListener(`click`,t,!0)})}function zp(e){let t=sp(vm.value,e.id);if(t){let[n]=hp(t);if(typeof n.scrollIntoView==`function`)n.scrollIntoView({behavior:`smooth`});else{let e=mp(t),n=document.createElement(`div`),r={...Op(e),position:`absolute`};Object.assign(n.style,r),document.body.appendChild(n),n.scrollIntoView({behavior:`smooth`}),setTimeout(()=>{document.body.removeChild(n)},2e3)}setTimeout(()=>{let n=mp(t);if(n.width||n.height){let r=ap(t),i=wp();i?Ap({...e,name:r,bounds:n}):kp({...e,name:r,bounds:n}),setTimeout(()=>{i&&(i.style.display=`none`)},1500)}},1200)}}Z();var Bp;(Bp=X).__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__??(Bp.__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__=!0);function Vp(e){let t=0,n=setInterval(()=>{X.__VUE_INSPECTOR__&&(clearInterval(n),t+=30,e()),t>=5e3&&clearInterval(n)},30)}function Hp(){let e=X.__VUE_INSPECTOR__,t=e.openInEditor;e.openInEditor=async(...n)=>{e.disable(),t(...n)}}function Up(){return new Promise(e=>{function t(){Hp(),e(X.__VUE_INSPECTOR__)}X.__VUE_INSPECTOR__?t():Vp(()=>{t()})})}Z(),Z();function Wp(e){return!!(e&&e.__v_isReadonly)}function Gp(e){return Wp(e)?Gp(e.__v_raw):!!(e&&e.__v_isReactive)}function Kp(e){return!!(e&&e.__v_isRef===!0)}function qp(e){let t=e&&e.__v_raw;return t?qp(t):e}var Jp=class{constructor(){this.refEditor=new Yp}set(e,t,n,r){let i=Array.isArray(t)?t:t.split(`.`);for(;i.length>1;){let t=i.shift();e=e instanceof Map?e.get(t):e instanceof Set?Array.from(e.values())[t]:e[t],this.refEditor.isRef(e)&&(e=this.refEditor.get(e))}let a=i[0],o=this.refEditor.get(e)[a];r?r(e,a,n):this.refEditor.isRef(o)?this.refEditor.set(o,n):e[a]=n}get(e,t){let n=Array.isArray(t)?t:t.split(`.`);for(let t=0;t<n.length;t++)if(e=e instanceof Map?e.get(n[t]):e[n[t]],this.refEditor.isRef(e)&&(e=this.refEditor.get(e)),!e)return;return e}has(e,t,n=!1){if(e===void 0)return!1;let r=Array.isArray(t)?t.slice():t.split(`.`),i=n?2:1;for(;e&&r.length>i;){let t=r.shift();e=e[t],this.refEditor.isRef(e)&&(e=this.refEditor.get(e))}return e!=null&&Object.prototype.hasOwnProperty.call(e,r[0])}createDefaultSetCallback(e){return(t,n,r)=>{if((e.remove||e.newKey)&&(Array.isArray(t)?t.splice(n,1):qp(t)instanceof Map?t.delete(n):qp(t)instanceof Set?t.delete(Array.from(t.values())[n]):Reflect.deleteProperty(t,n)),!e.remove){let i=t[e.newKey||n];this.refEditor.isRef(i)?this.refEditor.set(i,r):qp(t)instanceof Map?t.set(e.newKey||n,r):qp(t)instanceof Set?t.add(r):t[e.newKey||n]=r}}}},Yp=class{set(e,t){if(Kp(e))e.value=t;else{if(e instanceof Set&&Array.isArray(t)){e.clear(),t.forEach(t=>e.add(t));return}let n=Object.keys(t);if(e instanceof Map){let r=new Set(e.keys());n.forEach(n=>{e.set(n,Reflect.get(t,n)),r.delete(n)}),r.forEach(t=>e.delete(t));return}let r=new Set(Object.keys(e));n.forEach(n=>{Reflect.set(e,n,Reflect.get(t,n)),r.delete(n)}),r.forEach(t=>Reflect.deleteProperty(e,t))}}get(e){return Kp(e)?e.value:e}isRef(e){return Kp(e)||Gp(e)}};new Jp,Z(),Z(),Z();var Xp=`__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS_STATE__`;function Zp(){if(typeof window>`u`||!wf||typeof localStorage>`u`||localStorage===null)return{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:``};let e=localStorage.getItem===void 0?null:localStorage.getItem(Xp);return e?JSON.parse(e):{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:``}}Z(),Z(),Z();var Qp;(Qp=X).__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS??(Qp.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS=[]);var $p=new Proxy(X.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS,{get(e,t,n){return Reflect.get(e,t,n)}});function em(e,t){Sm.timelineLayersState[t.id]=!1,$p.push({...e,descriptorId:t.id,appRecord:rp(t.app)})}var tm;(tm=X).__VUE_DEVTOOLS_KIT_INSPECTOR__??(tm.__VUE_DEVTOOLS_KIT_INSPECTOR__=[]);var nm=new Proxy(X.__VUE_DEVTOOLS_KIT_INSPECTOR__,{get(e,t,n){return Reflect.get(e,t,n)}}),rm=Mf(()=>{nh.hooks.callHook(`sendInspectorToClient`,am())});function im(e,t){nm.push({options:e,descriptor:t,treeFilterPlaceholder:e.treeFilterPlaceholder??`Search tree...`,stateFilterPlaceholder:e.stateFilterPlaceholder??`Search state...`,treeFilter:``,selectedNodeId:``,appRecord:rp(t.app)}),rm()}function am(){return nm.filter(e=>e.descriptor.app===vm.value.app).filter(e=>e.descriptor.id!==`components`).map(e=>{let t=e.descriptor,n=e.options;return{id:n.id,label:n.label,logo:t.logo,icon:`custom-ic-baseline-${(n?.icon)?.replace(/_/g,`-`)}`,packageName:t.packageName,homepage:t.homepage,pluginId:t.id}})}function om(e,t){return nm.find(n=>n.options.id===e&&(t?n.descriptor.app===t:!0))}function sm(){let e=Vf();e.hook(`addInspector`,({inspector:e,plugin:t})=>{im(e,t.descriptor)});let t=Mf(async({inspectorId:t,plugin:n})=>{if(!t||!n?.descriptor?.app||Sm.highPerfModeEnabled)return;let r=om(t,n.descriptor.app),i={app:n.descriptor.app,inspectorId:t,filter:r?.treeFilter||``,rootNodes:[]};await new Promise(t=>{e.callHookWith(async e=>{await Promise.all(e.map(e=>e(i))),t()},`getInspectorTree`)}),e.callHookWith(async e=>{await Promise.all(e.map(e=>e({inspectorId:t,rootNodes:i.rootNodes})))},`sendInspectorTreeToClient`)},120);e.hook(`sendInspectorTree`,t);let n=Mf(async({inspectorId:t,plugin:n})=>{if(!t||!n?.descriptor?.app||Sm.highPerfModeEnabled)return;let r=om(t,n.descriptor.app),i={app:n.descriptor.app,inspectorId:t,nodeId:r?.selectedNodeId||``,state:null},a={currentTab:`custom-inspector:${t}`};i.nodeId&&await new Promise(t=>{e.callHookWith(async e=>{await Promise.all(e.map(e=>e(i,a))),t()},`getInspectorState`)}),e.callHookWith(async e=>{await Promise.all(e.map(e=>e({inspectorId:t,nodeId:i.nodeId,state:i.state})))},`sendInspectorStateToClient`)},120);return e.hook(`sendInspectorState`,n),e.hook(`customInspectorSelectNode`,({inspectorId:e,nodeId:t,plugin:n})=>{let r=om(e,n.descriptor.app);r&&(r.selectedNodeId=t)}),e.hook(`timelineLayerAdded`,({options:e,plugin:t})=>{em(e,t.descriptor)}),e.hook(`timelineEventAdded`,({options:t,plugin:n})=>{Sm.highPerfModeEnabled||!Sm.timelineLayersState?.[n.descriptor.id]&&![`performance`,`component-event`,`keyboard`,`mouse`].includes(t.layerId)||e.callHookWith(async e=>{await Promise.all(e.map(e=>e(t)))},`sendTimelineEventToClient`)}),e.hook(`getComponentInstances`,async({app:e})=>{let t=e.__VUE_DEVTOOLS_NEXT_APP_RECORD__;if(!t)return null;let n=t.id.toString();return[...t.instanceMap].filter(([e])=>e.split(`:`)[0]===n).map(([,e])=>e)}),e.hook(`getComponentBounds`,async({instance:e})=>mp(e)),e.hook(`getComponentName`,({instance:e})=>ap(e)),e.hook(`componentHighlight`,({uid:e})=>{let t=vm.value.instanceMap.get(e);t&&jp(t)}),e.hook(`componentUnhighlight`,()=>{Mp()}),e}var cm;(cm=X).__VUE_DEVTOOLS_KIT_APP_RECORDS__??(cm.__VUE_DEVTOOLS_KIT_APP_RECORDS__=[]);var lm;(lm=X).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__??(lm.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__={});var um;(um=X).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__??(um.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__=``);var dm;(dm=X).__VUE_DEVTOOLS_KIT_CUSTOM_TABS__??(dm.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__=[]);var fm;(fm=X).__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__??(fm.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__=[]);var pm=`__VUE_DEVTOOLS_KIT_GLOBAL_STATE__`;function mm(){return{connected:!1,clientConnected:!1,vitePluginDetected:!0,appRecords:[],activeAppRecordId:``,tabs:[],commands:[],highPerfModeEnabled:!0,devtoolsClientDetected:{},perfUniqueGroupId:0,timelineLayersState:Zp()}}var hm;(hm=X)[pm]??(hm[pm]=mm());var gm=Mf(e=>{nh.hooks.callHook(`devtoolsStateUpdated`,{state:e})});Mf((e,t)=>{nh.hooks.callHook(`devtoolsConnectedUpdated`,{state:e,oldState:t})});var _m=new Proxy(X.__VUE_DEVTOOLS_KIT_APP_RECORDS__,{get(e,t,n){return t===`value`?X.__VUE_DEVTOOLS_KIT_APP_RECORDS__:X.__VUE_DEVTOOLS_KIT_APP_RECORDS__[t]}}),vm=new Proxy(X.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__,{get(e,t,n){return t===`value`?X.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__:t===`id`?X.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__:X.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__[t]}});function ym(){gm({...X[pm],appRecords:_m.value,activeAppRecordId:vm.id,tabs:X.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__,commands:X.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__})}function bm(e){X.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__=e,ym()}function xm(e){X.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__=e,ym()}var Sm=new Proxy(X[pm],{get(e,t){return t===`appRecords`?_m:t===`activeAppRecordId`?vm.id:t===`tabs`?X.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__:t===`commands`?X.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__:X[pm][t]},deleteProperty(e,t){return delete e[t],!0},set(e,t,n){return{...X[pm]},e[t]=n,X[pm][t]=n,!0}});function Cm(e={}){let{file:t,host:n,baseUrl:r=window.location.origin,line:i=0,column:a=0}=e;if(t){if(n===`chrome-extension`){let e=t.replace(/\\/g,`\\\\`),n=window.VUE_DEVTOOLS_CONFIG?.openInEditorHost??`/`;fetch(`${n}__open-in-editor?file=${encodeURI(t)}`).then(t=>{if(!t.ok){let t=`Opening component ${e} failed`;console.log(`%c${t}`,`color:red`)}})}else if(Sm.vitePluginDetected){let e=X.__VUE_DEVTOOLS_OPEN_IN_EDITOR_BASE_URL__??r;X.__VUE_INSPECTOR__.openInEditor(e,t,i,a)}}}Z(),Z(),Z(),Z(),Z();var wm;(wm=X).__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__??(wm.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__=[]);var Tm=new Proxy(X.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__,{get(e,t,n){return Reflect.get(e,t,n)}});function Em(e){let t={};return Object.keys(e).forEach(n=>{t[n]=e[n].defaultValue}),t}function Dm(e){return`__VUE_DEVTOOLS_NEXT_PLUGIN_SETTINGS__${e}__`}function Om(e){return(Tm.find(t=>t[0].id===e&&!!t[0]?.settings)?.[0]??null)?.settings??null}function km(e,t){let n=Dm(e);if(n){let e=localStorage.getItem(n);if(e)return JSON.parse(e)}return Em(e?(Tm.find(t=>t[0].id===e)?.[0]??null)?.settings??{}:t)}function Am(e,t){let n=Dm(e);localStorage.getItem(n)||localStorage.setItem(n,JSON.stringify(Em(t)))}function jm(e,t,n){let r=Dm(e),i=localStorage.getItem(r),a=JSON.parse(i||`{}`),o={...a,[t]:n};localStorage.setItem(r,JSON.stringify(o)),nh.hooks.callHookWith(r=>{r.forEach(r=>r({pluginId:e,key:t,oldValue:a[t],newValue:n,settings:o}))},`setPluginSettings`)}Z(),Z(),Z(),Z(),Z(),Z(),Z(),Z(),Z(),Z(),Z();var Mm,Nm=(Mm=X).__VUE_DEVTOOLS_HOOK??(Mm.__VUE_DEVTOOLS_HOOK=Vf()),Pm={on:{vueAppInit(e){Nm.hook(`app:init`,e)},vueAppUnmount(e){Nm.hook(`app:unmount`,e)},vueAppConnected(e){Nm.hook(`app:connected`,e)},componentAdded(e){return Nm.hook(`component:added`,e)},componentEmit(e){return Nm.hook(`component:emit`,e)},componentUpdated(e){return Nm.hook(`component:updated`,e)},componentRemoved(e){return Nm.hook(`component:removed`,e)},setupDevtoolsPlugin(e){Nm.hook(`devtools-plugin:setup`,e)},perfStart(e){return Nm.hook(`perf:start`,e)},perfEnd(e){return Nm.hook(`perf:end`,e)}},setupDevToolsPlugin(e,t){return Nm.callHook(`devtools-plugin:setup`,e,t)}},Fm=class{constructor({plugin:e,ctx:t}){this.hooks=t.hooks,this.plugin=e}get on(){return{visitComponentTree:e=>{this.hooks.hook(`visitComponentTree`,e)},inspectComponent:e=>{this.hooks.hook(`inspectComponent`,e)},editComponentState:e=>{this.hooks.hook(`editComponentState`,e)},getInspectorTree:e=>{this.hooks.hook(`getInspectorTree`,e)},getInspectorState:e=>{this.hooks.hook(`getInspectorState`,e)},editInspectorState:e=>{this.hooks.hook(`editInspectorState`,e)},inspectTimelineEvent:e=>{this.hooks.hook(`inspectTimelineEvent`,e)},timelineCleared:e=>{this.hooks.hook(`timelineCleared`,e)},setPluginSettings:e=>{this.hooks.hook(`setPluginSettings`,e)}}}notifyComponentUpdate(e){if(Sm.highPerfModeEnabled)return;let t=am().find(e=>e.packageName===this.plugin.descriptor.packageName);if(t?.id){if(e){let t=[e.appContext.app,e.uid,e.parent?.uid,e];Nm.callHook(`component:updated`,...t)}else Nm.callHook(`component:updated`);this.hooks.callHook(`sendInspectorState`,{inspectorId:t.id,plugin:this.plugin})}}addInspector(e){this.hooks.callHook(`addInspector`,{inspector:e,plugin:this.plugin}),this.plugin.descriptor.settings&&Am(e.id,this.plugin.descriptor.settings)}sendInspectorTree(e){Sm.highPerfModeEnabled||this.hooks.callHook(`sendInspectorTree`,{inspectorId:e,plugin:this.plugin})}sendInspectorState(e){Sm.highPerfModeEnabled||this.hooks.callHook(`sendInspectorState`,{inspectorId:e,plugin:this.plugin})}selectInspectorNode(e,t){this.hooks.callHook(`customInspectorSelectNode`,{inspectorId:e,nodeId:t,plugin:this.plugin})}visitComponentTree(e){return this.hooks.callHook(`visitComponentTree`,e)}now(){return Sm.highPerfModeEnabled?0:Date.now()}addTimelineLayer(e){this.hooks.callHook(`timelineLayerAdded`,{options:e,plugin:this.plugin})}addTimelineEvent(e){Sm.highPerfModeEnabled||this.hooks.callHook(`timelineEventAdded`,{options:e,plugin:this.plugin})}getSettings(e){return km(e??this.plugin.descriptor.id,this.plugin.descriptor.settings)}getComponentInstances(e){return this.hooks.callHook(`getComponentInstances`,{app:e})}getComponentBounds(e){return this.hooks.callHook(`getComponentBounds`,{instance:e})}getComponentName(e){return this.hooks.callHook(`getComponentName`,{instance:e})}highlightElement(e){let t=e.__VUE_DEVTOOLS_NEXT_UID__;return this.hooks.callHook(`componentHighlight`,{uid:t})}unhighlightElement(){return this.hooks.callHook(`componentUnhighlight`)}};Z(),Z(),Z(),Z();var Im=`__vue_devtool_undefined__`,Lm=`__vue_devtool_infinity__`,Rm=`__vue_devtool_negative_infinity__`,zm=`__vue_devtool_nan__`;Z(),Z(),Object.entries({[Im]:`undefined`,[zm]:`NaN`,[Lm]:`Infinity`,[Rm]:`-Infinity`}).reduce((e,[t,n])=>(e[n]=t,e),{}),Z(),Z(),Z(),Z(),Z();var Bm;(Bm=X).__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__??(Bm.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__=new Set);function Vm(e,t){return Pm.setupDevToolsPlugin(e,t)}function Hm(e,t){let[n,r]=e;if(n.app!==t)return;let i=new Fm({plugin:{setupFn:r,descriptor:n},ctx:nh});n.packageName===`vuex`&&i.on.editInspectorState(e=>{i.sendInspectorState(e.inspectorId)}),r(i)}function Um(e,t){X.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.has(e)||Sm.highPerfModeEnabled&&!t?.inspectingComponent||(X.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.add(e),Tm.forEach(t=>{Hm(t,e)}))}Z(),Z();var Wm=`__VUE_DEVTOOLS_ROUTER__`,Gm=`__VUE_DEVTOOLS_ROUTER_INFO__`,Km;(Km=X).__VUE_DEVTOOLS_ROUTER_INFO__??(Km.__VUE_DEVTOOLS_ROUTER_INFO__={currentRoute:null,routes:[]});var qm;(qm=X).__VUE_DEVTOOLS_ROUTER__??(qm.__VUE_DEVTOOLS_ROUTER__={}),new Proxy(X[Gm],{get(e,t){return X[Gm][t]}}),new Proxy(X[Wm],{get(e,t){if(t===`value`)return X[Wm]}});function Jm(e){let t=new Map;return(e?.getRoutes()||[]).filter(e=>!t.has(e.path)&&t.set(e.path,1))}function Ym(e){return e.map(e=>{let{path:t,name:n,children:r,meta:i}=e;return r?.length&&(r=Ym(r)),{path:t,name:n,children:r,meta:i}})}function Xm(e){if(e){let{fullPath:t,hash:n,href:r,path:i,name:a,matched:o,params:s,query:c}=e;return{fullPath:t,hash:n,href:r,path:i,name:a,params:s,query:c,matched:Ym(o)}}return e}function Zm(e,t){function n(){let t=e.app?.config.globalProperties.$router,n=Xm(t?.currentRoute.value),r=Ym(Jm(t)),i=console.warn;console.warn=()=>{},X[Gm]={currentRoute:n?Af(n):{},routes:Af(r)},X[Wm]=t,console.warn=i}n(),Pm.on.componentUpdated(Mf(()=>{t.value?.app===e.app&&(n(),!Sm.highPerfModeEnabled&&nh.hooks.callHook(`routerInfoUpdated`,{state:X[Gm]}))},200))}function Qm(e){return{async getInspectorTree(t){let n={...t,app:vm.value.app,rootNodes:[]};return await new Promise(t=>{e.callHookWith(async e=>{await Promise.all(e.map(e=>e(n))),t()},`getInspectorTree`)}),n.rootNodes},async getInspectorState(t){let n={...t,app:vm.value.app,state:null},r={currentTab:`custom-inspector:${t.inspectorId}`};return await new Promise(t=>{e.callHookWith(async e=>{await Promise.all(e.map(e=>e(n,r))),t()},`getInspectorState`)}),n.state},editInspectorState(t){let n=new Jp,r={...t,app:vm.value.app,set:(e,r=t.path,i=t.state.value,a)=>{n.set(e,r,i,a||n.createDefaultSetCallback(t.state))}};e.callHookWith(e=>{e.forEach(e=>e(r))},`editInspectorState`)},sendInspectorState(t){let n=om(t);e.callHook(`sendInspectorState`,{inspectorId:t,plugin:{descriptor:n.descriptor,setupFn:()=>({})}})},inspectComponentInspector(){return Rp()},cancelInspectComponentInspector(){return Lp()},getComponentRenderCode(e){let t=sp(vm.value,e);if(t)return typeof t?.type==`function`?t.type.toString():t.render.toString()},scrollToComponent(e){return zp({id:e})},openInEditor:Cm,getVueInspector:Up,toggleApp(e,t){let n=_m.value.find(t=>t.id===e);n&&(xm(e),bm(n),Zm(n,vm),rm(),Um(n.app,t))},inspectDOM(e){let t=sp(vm.value,e);if(t){let[e]=hp(t);e&&(X.__VUE_DEVTOOLS_INSPECT_DOM_TARGET__=e)}},updatePluginSettings(e,t,n){jm(e,t,n)},getPluginSettings(e){return{options:Om(e),values:km(e)}}}}Z();var $m;($m=X).__VUE_DEVTOOLS_ENV__??($m.__VUE_DEVTOOLS_ENV__={vitePluginDetected:!1});var eh=sm(),th;(th=X).__VUE_DEVTOOLS_KIT_CONTEXT__??(th.__VUE_DEVTOOLS_KIT_CONTEXT__={hooks:eh,get state(){return{...Sm,activeAppRecordId:vm.id,activeAppRecord:vm.value,appRecords:_m.value}},api:Qm(eh)});var nh=X.__VUE_DEVTOOLS_KIT_CONTEXT__;Z(),Zf($f(),1);var rh;(rh=X).__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__??(rh.__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__={id:0,appIds:new Set}),Z(),Z();function ih(e){Sm.highPerfModeEnabled=e??!Sm.highPerfModeEnabled,!e&&vm.value&&Um(vm.value.app)}Z(),Z(),Z();function ah(e){Sm.devtoolsClientDetected={...Sm.devtoolsClientDetected,...e},ih(!Object.values(Sm.devtoolsClientDetected).some(Boolean))}var oh;(oh=X).__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__??(oh.__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__=ah),Z(),Z(),Z(),Z(),Z(),Z(),Z();var sh=class{constructor(){this.keyToValue=new Map,this.valueToKey=new Map}set(e,t){this.keyToValue.set(e,t),this.valueToKey.set(t,e)}getByKey(e){return this.keyToValue.get(e)}getByValue(e){return this.valueToKey.get(e)}clear(){this.keyToValue.clear(),this.valueToKey.clear()}},ch=class{constructor(e){this.generateIdentifier=e,this.kv=new sh}register(e,t){this.kv.getByValue(e)||(t||=this.generateIdentifier(e),this.kv.set(t,e))}clear(){this.kv.clear()}getIdentifier(e){return this.kv.getByValue(e)}getValue(e){return this.kv.getByKey(e)}},lh=class extends ch{constructor(){super(e=>e.name),this.classToAllowedProps=new Map}register(e,t){typeof t==`object`?(t.allowProps&&this.classToAllowedProps.set(e,t.allowProps),super.register(e,t.identifier)):super.register(e,t)}getAllowedProps(e){return this.classToAllowedProps.get(e)}};Z(),Z();function uh(e){if(`values`in Object)return Object.values(e);let t=[];for(let n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}function dh(e,t){let n=uh(e);if(`find`in n)return n.find(t);let r=n;for(let e=0;e<r.length;e++){let n=r[e];if(t(n))return n}}function fh(e,t){Object.entries(e).forEach(([e,n])=>t(n,e))}function ph(e,t){return e.indexOf(t)!==-1}function mh(e,t){for(let n=0;n<e.length;n++){let r=e[n];if(t(r))return r}}var hh=class{constructor(){this.transfomers={}}register(e){this.transfomers[e.name]=e}findApplicable(e){return dh(this.transfomers,t=>t.isApplicable(e))}findByName(e){return this.transfomers[e]}};Z(),Z();var gh=e=>Object.prototype.toString.call(e).slice(8,-1),_h=e=>e===void 0,vh=e=>e===null,yh=e=>typeof e!=`object`||!e||e===Object.prototype?!1:Object.getPrototypeOf(e)===null?!0:Object.getPrototypeOf(e)===Object.prototype,bh=e=>yh(e)&&Object.keys(e).length===0,xh=e=>Array.isArray(e),Sh=e=>typeof e==`string`,Ch=e=>typeof e==`number`&&!isNaN(e),wh=e=>typeof e==`boolean`,Th=e=>e instanceof RegExp,Eh=e=>e instanceof Map,Dh=e=>e instanceof Set,Oh=e=>gh(e)===`Symbol`,kh=e=>e instanceof Date&&!isNaN(e.valueOf()),Ah=e=>e instanceof Error,jh=e=>typeof e==`number`&&isNaN(e),Mh=e=>wh(e)||vh(e)||_h(e)||Ch(e)||Sh(e)||Oh(e),Nh=e=>typeof e==`bigint`,Ph=e=>e===1/0||e===-1/0,Fh=e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),Ih=e=>e instanceof URL;Z();var Lh=e=>e.replace(/\./g,`\\.`),Rh=e=>e.map(String).map(Lh).join(`.`),zh=e=>{let t=[],n=``;for(let r=0;r<e.length;r++){let i=e.charAt(r);if(i===`\\`&&e.charAt(r+1)===`.`){n+=`.`,r++;continue}if(i===`.`){t.push(n),n=``;continue}n+=i}let r=n;return t.push(r),t};Z();function Bh(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var Vh=[Bh(_h,`undefined`,()=>null,()=>void 0),Bh(Nh,`bigint`,e=>e.toString(),e=>typeof BigInt<`u`?BigInt(e):(console.error(`Please add a BigInt polyfill.`),e)),Bh(kh,`Date`,e=>e.toISOString(),e=>new Date(e)),Bh(Ah,`Error`,(e,t)=>{let n={name:e.name,message:e.message};return t.allowedErrorProps.forEach(t=>{n[t]=e[t]}),n},(e,t)=>{let n=Error(e.message);return n.name=e.name,n.stack=e.stack,t.allowedErrorProps.forEach(t=>{n[t]=e[t]}),n}),Bh(Th,`regexp`,e=>``+e,e=>{let t=e.slice(1,e.lastIndexOf(`/`)),n=e.slice(e.lastIndexOf(`/`)+1);return new RegExp(t,n)}),Bh(Dh,`set`,e=>[...e.values()],e=>new Set(e)),Bh(Eh,`map`,e=>[...e.entries()],e=>new Map(e)),Bh(e=>jh(e)||Ph(e),`number`,e=>jh(e)?`NaN`:e>0?`Infinity`:`-Infinity`,Number),Bh(e=>e===0&&1/e==-1/0,`number`,()=>`-0`,Number),Bh(Ih,`URL`,e=>e.toString(),e=>new URL(e))];function Hh(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var Uh=Hh((e,t)=>Oh(e)?!!t.symbolRegistry.getIdentifier(e):!1,(e,t)=>[`symbol`,t.symbolRegistry.getIdentifier(e)],e=>e.description,(e,t,n)=>{let r=n.symbolRegistry.getValue(t[1]);if(!r)throw Error(`Trying to deserialize unknown symbol`);return r}),Wh=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((e,t)=>(e[t.name]=t,e),{}),Gh=Hh(Fh,e=>[`typed-array`,e.constructor.name],e=>[...e],(e,t)=>{let n=Wh[t[1]];if(!n)throw Error(`Trying to deserialize unknown typed array`);return new n(e)});function Kh(e,t){return e?.constructor?!!t.classRegistry.getIdentifier(e.constructor):!1}var qh=Hh(Kh,(e,t)=>[`class`,t.classRegistry.getIdentifier(e.constructor)],(e,t)=>{let n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return{...e};let r={};return n.forEach(t=>{r[t]=e[t]}),r},(e,t,n)=>{let r=n.classRegistry.getValue(t[1]);if(!r)throw Error(`Trying to deserialize unknown class '${t[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);return Object.assign(Object.create(r.prototype),e)}),Jh=Hh((e,t)=>!!t.customTransformerRegistry.findApplicable(e),(e,t)=>[`custom`,t.customTransformerRegistry.findApplicable(e).name],(e,t)=>t.customTransformerRegistry.findApplicable(e).serialize(e),(e,t,n)=>{let r=n.customTransformerRegistry.findByName(t[1]);if(!r)throw Error(`Trying to deserialize unknown custom value`);return r.deserialize(e)}),Yh=[qh,Uh,Jh,Gh],Xh=(e,t)=>{let n=mh(Yh,n=>n.isApplicable(e,t));if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};let r=mh(Vh,n=>n.isApplicable(e,t));if(r)return{value:r.transform(e,t),type:r.annotation}},Zh={};Vh.forEach(e=>{Zh[e.annotation]=e});var Qh=(e,t,n)=>{if(xh(t))switch(t[0]){case`symbol`:return Uh.untransform(e,t,n);case`class`:return qh.untransform(e,t,n);case`custom`:return Jh.untransform(e,t,n);case`typed-array`:return Gh.untransform(e,t,n);default:throw Error(`Unknown transformation: `+t)}else{let r=Zh[t];if(!r)throw Error(`Unknown transformation: `+t);return r.untransform(e,n)}};Z();var $h=(e,t)=>{if(t>e.size)throw Error(`index out of bounds`);let n=e.keys();for(;t>0;)n.next(),t--;return n.next().value};function eg(e){if(ph(e,`__proto__`))throw Error(`__proto__ is not allowed as a property`);if(ph(e,`prototype`))throw Error(`prototype is not allowed as a property`);if(ph(e,`constructor`))throw Error(`constructor is not allowed as a property`)}var tg=(e,t)=>{eg(t);for(let n=0;n<t.length;n++){let r=t[n];if(Dh(e))e=$h(e,+r);else if(Eh(e)){let i=+r,a=+t[++n]==0?`key`:`value`,o=$h(e,i);switch(a){case`key`:e=o;break;case`value`:e=e.get(o);break}}else e=e[r]}return e},ng=(e,t,n)=>{if(eg(t),t.length===0)return n(e);let r=e;for(let e=0;e<t.length-1;e++){let n=t[e];if(xh(r)){let e=+n;r=r[e]}else if(yh(r))r=r[n];else if(Dh(r)){let e=+n;r=$h(r,e)}else if(Eh(r)){if(e===t.length-2)break;let i=+n,a=+t[++e]==0?`key`:`value`,o=$h(r,i);switch(a){case`key`:r=o;break;case`value`:r=r.get(o);break}}}let i=t[t.length-1];if(xh(r)?r[+i]=n(r[+i]):yh(r)&&(r[i]=n(r[i])),Dh(r)){let e=$h(r,+i),t=n(e);e!==t&&(r.delete(e),r.add(t))}if(Eh(r)){let e=+t[t.length-2],a=$h(r,e);switch(+i==0?`key`:`value`){case`key`:{let e=n(a);r.set(e,r.get(a)),e!==a&&r.delete(a);break}case`value`:r.set(a,n(r.get(a)));break}}return e};function rg(e,t,n=[]){if(!e)return;if(!xh(e)){fh(e,(e,r)=>rg(e,t,[...n,...zh(r)]));return}let[r,i]=e;i&&fh(i,(e,r)=>{rg(e,t,[...n,...zh(r)])}),t(r,n)}function ig(e,t,n){return rg(t,(t,r)=>{e=ng(e,r,e=>Qh(e,t,n))}),e}function ag(e,t){function n(t,n){let r=tg(e,zh(n));t.map(zh).forEach(t=>{e=ng(e,t,()=>r)})}if(xh(t)){let[r,i]=t;r.forEach(t=>{e=ng(e,zh(t),()=>e)}),i&&fh(i,n)}else fh(t,n);return e}var og=(e,t)=>yh(e)||xh(e)||Eh(e)||Dh(e)||Kh(e,t);function sg(e,t,n){let r=n.get(e);r?r.push(t):n.set(e,[t])}function cg(e,t){let n={},r;return e.forEach(e=>{if(e.length<=1)return;t||(e=e.map(e=>e.map(String)).sort((e,t)=>e.length-t.length));let[i,...a]=e;i.length===0?r=a.map(Rh):n[Rh(i)]=a.map(Rh)}),r?bh(n)?[r]:[r,n]:bh(n)?void 0:n}var lg=(e,t,n,r,i=[],a=[],o=new Map)=>{let s=Mh(e);if(!s){sg(e,i,t);let n=o.get(e);if(n)return r?{transformedValue:null}:n}if(!og(e,n)){let t=Xh(e,n),r=t?{transformedValue:t.value,annotations:[t.type]}:{transformedValue:e};return s||o.set(e,r),r}if(ph(a,e))return{transformedValue:null};let c=Xh(e,n),l=c?.value??e,u=xh(l)?[]:{},d={};fh(l,(s,c)=>{if(c===`__proto__`||c===`constructor`||c===`prototype`)throw Error(`Detected property ${c}. This is a prototype pollution risk, please remove it from your object.`);let l=lg(s,t,n,r,[...i,c],[...a,e],o);u[c]=l.transformedValue,xh(l.annotations)?d[c]=l.annotations:yh(l.annotations)&&fh(l.annotations,(e,t)=>{d[Lh(c)+`.`+t]=e})});let f=bh(d)?{transformedValue:u,annotations:c?[c.type]:void 0}:{transformedValue:u,annotations:c?[c.type,d]:d};return s||o.set(e,f),f};Z(),Z();function ug(e){return Object.prototype.toString.call(e).slice(8,-1)}function dg(e){return ug(e)===`Array`}function fg(e){if(ug(e)!==`Object`)return!1;let t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function pg(e,t,n,r,i){let a={}.propertyIsEnumerable.call(r,t)?`enumerable`:`nonenumerable`;a===`enumerable`&&(e[t]=n),i&&a===`nonenumerable`&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}function mg(e,t={}){if(dg(e))return e.map(e=>mg(e,t));if(!fg(e))return e;let n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols(e);return[...n,...r].reduce((n,r)=>{if(dg(t.props)&&!t.props.includes(r))return n;let i=e[r];return pg(n,r,mg(i,t),e,t.nonenumerable),n},{})}var hg=class{constructor({dedupe:e=!1}={}){this.classRegistry=new lh,this.symbolRegistry=new ch(e=>e.description??``),this.customTransformerRegistry=new hh,this.allowedErrorProps=[],this.dedupe=e}serialize(e){let t=new Map,n=lg(e,t,this,this.dedupe),r={json:n.transformedValue};n.annotations&&(r.meta={...r.meta,values:n.annotations});let i=cg(t,this.dedupe);return i&&(r.meta={...r.meta,referentialEqualities:i}),r}deserialize(e){let{json:t,meta:n}=e,r=mg(t);return n?.values&&(r=ig(r,n.values,this)),n?.referentialEqualities&&(r=ag(r,n.referentialEqualities)),r}stringify(e){return JSON.stringify(this.serialize(e))}parse(e){return this.deserialize(JSON.parse(e))}registerClass(e,t){this.classRegistry.register(e,t)}registerSymbol(e,t){this.symbolRegistry.register(e,t)}registerCustom(e,t){this.customTransformerRegistry.register({name:t,...e})}allowErrorProps(...e){this.allowedErrorProps.push(...e)}};hg.defaultInstance=new hg,hg.serialize=hg.defaultInstance.serialize.bind(hg.defaultInstance),hg.deserialize=hg.defaultInstance.deserialize.bind(hg.defaultInstance),hg.stringify=hg.defaultInstance.stringify.bind(hg.defaultInstance),hg.parse=hg.defaultInstance.parse.bind(hg.defaultInstance),hg.registerClass=hg.defaultInstance.registerClass.bind(hg.defaultInstance),hg.registerSymbol=hg.defaultInstance.registerSymbol.bind(hg.defaultInstance),hg.registerCustom=hg.defaultInstance.registerCustom.bind(hg.defaultInstance),hg.allowErrorProps=hg.defaultInstance.allowErrorProps.bind(hg.defaultInstance),hg.serialize,hg.deserialize,hg.stringify,hg.parse,hg.registerClass,hg.registerCustom,hg.registerSymbol,hg.allowErrorProps,Z(),Z(),Z(),Z(),Z(),Z(),Z(),Z(),Z(),Z(),Z(),Z(),Z(),Z(),Z(),Z(),Z(),Z(),Z(),Z(),Z(),Z(),Z();var gg;(gg=X).__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__??(gg.__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__=[]);var _g;(_g=X).__VUE_DEVTOOLS_KIT_RPC_CLIENT__??(_g.__VUE_DEVTOOLS_KIT_RPC_CLIENT__=null);var vg;(vg=X).__VUE_DEVTOOLS_KIT_RPC_SERVER__??(vg.__VUE_DEVTOOLS_KIT_RPC_SERVER__=null);var yg;(yg=X).__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__??(yg.__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__=null);var bg;(bg=X).__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__??(bg.__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__=null);var xg;(xg=X).__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__??(xg.__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__=null),Z(),Z(),Z(),Z(),Z(),Z(),Z();var Sg=typeof window<`u`,Cg,wg=e=>Cg=e;process.env.NODE_ENV;var Tg=process.env.NODE_ENV===`production`?Symbol():Symbol(`pinia`);function Eg(e){return e&&typeof e==`object`&&Object.prototype.toString.call(e)===`[object Object]`&&typeof e.toJSON!=`function`}var Dg;(function(e){e.direct=`direct`,e.patchObject=`patch object`,e.patchFunction=`patch function`})(Dg||={});var Og=typeof window==`object`&&window.window===window?window:typeof self==`object`&&self.self===self?self:typeof global==`object`&&global.global===global?global:typeof globalThis==`object`?globalThis:{HTMLElement:null};function kg(e,{autoBom:t=!1}={}){return t&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([``,e],{type:e.type}):e}function Ag(e,t,n){let r=new XMLHttpRequest;r.open(`GET`,e),r.responseType=`blob`,r.onload=function(){Fg(r.response,t,n)},r.onerror=function(){console.error(`could not download file`)},r.send()}function jg(e){let t=new XMLHttpRequest;t.open(`HEAD`,e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function Mg(e){try{e.dispatchEvent(new MouseEvent(`click`))}catch{let t=new MouseEvent(`click`,{bubbles:!0,cancelable:!0,view:window,detail:0,screenX:80,screenY:20,clientX:80,clientY:20,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:null});e.dispatchEvent(t)}}var Ng=typeof navigator==`object`?navigator:{userAgent:``},Pg=/Macintosh/.test(Ng.userAgent)&&/AppleWebKit/.test(Ng.userAgent)&&!/Safari/.test(Ng.userAgent),Fg=Sg?typeof HTMLAnchorElement<`u`&&`download`in HTMLAnchorElement.prototype&&!Pg?Ig:`msSaveOrOpenBlob`in Ng?Lg:Rg:()=>{};function Ig(e,t=`download`,n){let r=document.createElement(`a`);r.download=t,r.rel=`noopener`,typeof e==`string`?(r.href=e,r.origin===location.origin?Mg(r):jg(r.href)?Ag(e,t,n):(r.target=`_blank`,Mg(r))):(r.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(r.href)},4e4),setTimeout(function(){Mg(r)},0))}function Lg(e,t=`download`,n){if(typeof e==`string`)if(jg(e))Ag(e,t,n);else{let t=document.createElement(`a`);t.href=e,t.target=`_blank`,setTimeout(function(){Mg(t)})}else navigator.msSaveOrOpenBlob(kg(e,n),t)}function Rg(e,t,n,r){if(r||=open(``,`_blank`),r&&(r.document.title=r.document.body.innerText=`downloading...`),typeof e==`string`)return Ag(e,t,n);let i=e.type===`application/octet-stream`,a=/constructor/i.test(String(Og.HTMLElement))||`safari`in Og,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||i&&a||Pg)&&typeof FileReader<`u`){let t=new FileReader;t.onloadend=function(){let e=t.result;if(typeof e!=`string`)throw r=null,Error(`Wrong reader.result type`);e=o?e:e.replace(/^data:[^;]*;/,`data:attachment/file;`),r?r.location.href=e:location.assign(e),r=null},t.readAsDataURL(e)}else{let t=URL.createObjectURL(e);r?r.location.assign(t):location.href=t,r=null,setTimeout(function(){URL.revokeObjectURL(t)},4e4)}}function zg(e,t){let n=`🍍 `+e;typeof __VUE_DEVTOOLS_TOAST__==`function`?__VUE_DEVTOOLS_TOAST__(n,t):t===`error`?console.error(n):t===`warn`?console.warn(n):console.log(n)}function Bg(e){return`_a`in e&&`install`in e}function Vg(){if(!(`clipboard`in navigator))return zg(`Your browser doesn't support the Clipboard API`,`error`),!0}function Hg(e){return e instanceof Error&&e.message.toLowerCase().includes(`document is not focused`)?(zg(`You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.`,`warn`),!0):!1}async function Ug(e){if(!Vg())try{await navigator.clipboard.writeText(JSON.stringify(e.state.value)),zg(`Global state copied to clipboard.`)}catch(e){if(Hg(e))return;zg(`Failed to serialize the state. Check the console for more details.`,`error`),console.error(e)}}async function Wg(e){if(!Vg())try{Yg(e,JSON.parse(await navigator.clipboard.readText())),zg(`Global state pasted from clipboard.`)}catch(e){if(Hg(e))return;zg(`Failed to deserialize the state from clipboard. Check the console for more details.`,`error`),console.error(e)}}async function Gg(e){try{Fg(new Blob([JSON.stringify(e.state.value)],{type:`text/plain;charset=utf-8`}),`pinia-state.json`)}catch(e){zg(`Failed to export the state as JSON. Check the console for more details.`,`error`),console.error(e)}}var Kg;function qg(){Kg||(Kg=document.createElement(`input`),Kg.type=`file`,Kg.accept=`.json`);function e(){return new Promise((e,t)=>{Kg.onchange=async()=>{let t=Kg.files;if(!t)return e(null);let n=t.item(0);return e(n?{text:await n.text(),file:n}:null)},Kg.oncancel=()=>e(null),Kg.onerror=t,Kg.click()})}return e}async function Jg(e){try{let t=await qg()();if(!t)return;let{text:n,file:r}=t;Yg(e,JSON.parse(n)),zg(`Global state imported from "${r.name}".`)}catch(e){zg(`Failed to import the state from JSON. Check the console for more details.`,`error`),console.error(e)}}function Yg(e,t){for(let n in t){let r=e.state.value[n];r?Object.assign(r,t[n]):e.state.value[n]=t[n]}}function Xg(e){return{_custom:{display:e}}}var Zg=`🍍 Pinia (root)`,Qg=`_root`;function $g(e){return Bg(e)?{id:Qg,label:Zg}:{id:e.$id,label:e.$id}}function e_(e){if(Bg(e)){let t=Array.from(e._s.keys()),n=e._s;return{state:t.map(t=>({editable:!0,key:t,value:e.state.value[t]})),getters:t.filter(e=>n.get(e)._getters).map(e=>{let t=n.get(e);return{editable:!1,key:e,value:t._getters.reduce((e,n)=>(e[n]=t[n],e),{})}})}}let t={state:Object.keys(e.$state).map(t=>({editable:!0,key:t,value:e.$state[t]}))};return e._getters&&e._getters.length&&(t.getters=e._getters.map(t=>({editable:!1,key:t,value:e[t]}))),e._customProperties.size&&(t.customProperties=Array.from(e._customProperties).map(t=>({editable:!0,key:t,value:e[t]}))),t}function t_(e){return e?Array.isArray(e)?e.reduce((e,t)=>(e.keys.push(t.key),e.operations.push(t.type),e.oldValue[t.key]=t.oldValue,e.newValue[t.key]=t.newValue,e),{oldValue:{},keys:[],operations:[],newValue:{}}):{operation:Xg(e.type),key:Xg(e.key),oldValue:e.oldValue,newValue:e.newValue}:{}}function n_(e){switch(e){case Dg.direct:return`mutation`;case Dg.patchFunction:return`$patch`;case Dg.patchObject:return`$patch`;default:return`unknown`}}var r_=!0,i_=[],a_=`pinia:mutations`,o_=`pinia`,{assign:s_}=Object,c_=e=>`🍍 `+e;function l_(e,t){Vm({id:`dev.esm.pinia`,label:`Pinia 🍍`,logo:`https://pinia.vuejs.org/logo.svg`,packageName:`pinia`,homepage:`https://pinia.vuejs.org`,componentStateTypes:i_,app:e},n=>{typeof n.now!=`function`&&zg(`You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html.`),n.addTimelineLayer({id:a_,label:`Pinia 🍍`,color:15064968}),n.addInspector({id:o_,label:`Pinia 🍍`,icon:`storage`,treeFilterPlaceholder:`Search stores`,actions:[{icon:`content_copy`,action:()=>{Ug(t)},tooltip:`Serialize and copy the state`},{icon:`content_paste`,action:async()=>{await Wg(t),n.sendInspectorTree(o_),n.sendInspectorState(o_)},tooltip:`Replace the state with the content of your clipboard`},{icon:`save`,action:()=>{Gg(t)},tooltip:`Save the state as a JSON file`},{icon:`folder_open`,action:async()=>{await Jg(t),n.sendInspectorTree(o_),n.sendInspectorState(o_)},tooltip:`Import the state from a JSON file`}],nodeActions:[{icon:`restore`,tooltip:`Reset the state (with "$reset")`,action:e=>{let n=t._s.get(e);n?typeof n.$reset==`function`?(n.$reset(),zg(`Store "${e}" reset.`)):zg(`Cannot reset "${e}" store because it doesn't have a "$reset" method implemented.`,`warn`):zg(`Cannot reset "${e}" store because it wasn't found.`,`warn`)}}]}),n.on.inspectComponent(e=>{let t=e.componentInstance&&e.componentInstance.proxy;if(t&&t._pStores){let t=e.componentInstance.proxy._pStores;Object.values(t).forEach(t=>{e.instanceData.state.push({type:c_(t.$id),key:`state`,editable:!0,value:t._isOptionsAPI?{_custom:{value:I(t.$state),actions:[{icon:`restore`,tooltip:`Reset the state of this store`,action:()=>t.$reset()}]}}:Object.keys(t.$state).reduce((e,n)=>(e[n]=t.$state[n],e),{})}),t._getters&&t._getters.length&&e.instanceData.state.push({type:c_(t.$id),key:`getters`,editable:!1,value:t._getters.reduce((e,n)=>{try{e[n]=t[n]}catch(t){e[n]=t}return e},{})})})}}),n.on.getInspectorTree(n=>{if(n.app===e&&n.inspectorId===o_){let e=[t];e=e.concat(Array.from(t._s.values())),n.rootNodes=(n.filter?e.filter(e=>`$id`in e?e.$id.toLowerCase().includes(n.filter.toLowerCase()):Zg.toLowerCase().includes(n.filter.toLowerCase())):e).map($g)}}),globalThis.$pinia=t,n.on.getInspectorState(n=>{if(n.app===e&&n.inspectorId===o_){let e=n.nodeId===Qg?t:t._s.get(n.nodeId);if(!e)return;e&&(n.nodeId!==Qg&&(globalThis.$store=I(e)),n.state=e_(e))}}),n.on.editInspectorState(n=>{if(n.app===e&&n.inspectorId===o_){let e=n.nodeId===Qg?t:t._s.get(n.nodeId);if(!e)return zg(`store "${n.nodeId}" not found`,`error`);let{path:r}=n;Bg(e)?r.unshift(`state`):(r.length!==1||!e._customProperties.has(r[0])||r[0]in e.$state)&&r.unshift(`$state`),r_=!1,n.set(e,r,n.state.value),r_=!0}}),n.on.editComponentState(e=>{if(e.type.startsWith(`🍍`)){let n=e.type.replace(/^🍍\s*/,``),r=t._s.get(n);if(!r)return zg(`store "${n}" not found`,`error`);let{path:i}=e;if(i[0]!==`state`)return zg(`Invalid path for store "${n}":\n${i}\nOnly state can be modified.`);i[0]=`$state`,r_=!1,e.set(r,i,e.state.value),r_=!0}})})}function u_(e,t){i_.includes(c_(t.$id))||i_.push(c_(t.$id)),Vm({id:`dev.esm.pinia`,label:`Pinia 🍍`,logo:`https://pinia.vuejs.org/logo.svg`,packageName:`pinia`,homepage:`https://pinia.vuejs.org`,componentStateTypes:i_,app:e,settings:{logStoreChanges:{label:`Notify about new/deleted stores`,type:`boolean`,defaultValue:!0}}},e=>{let n=typeof e.now==`function`?e.now.bind(e):Date.now;t.$onAction(({after:r,onError:i,name:a,args:o})=>{let s=d_++;e.addTimelineEvent({layerId:a_,event:{time:n(),title:`🛫 `+a,subtitle:`start`,data:{store:Xg(t.$id),action:Xg(a),args:o},groupId:s}}),r(r=>{f_=void 0,e.addTimelineEvent({layerId:a_,event:{time:n(),title:`🛬 `+a,subtitle:`end`,data:{store:Xg(t.$id),action:Xg(a),args:o,result:r},groupId:s}})}),i(r=>{f_=void 0,e.addTimelineEvent({layerId:a_,event:{time:n(),logType:`error`,title:`💥 `+a,subtitle:`end`,data:{store:Xg(t.$id),action:Xg(a),args:o,error:r},groupId:s}})})},!0),t._customProperties.forEach(r=>{wi(()=>R(t[r]),(t,i)=>{e.notifyComponentUpdate(),e.sendInspectorState(o_),r_&&e.addTimelineEvent({layerId:a_,event:{time:n(),title:`Change`,subtitle:r,data:{newValue:t,oldValue:i},groupId:f_}})},{deep:!0})}),t.$subscribe(({events:r,type:i},a)=>{if(e.notifyComponentUpdate(),e.sendInspectorState(o_),!r_)return;let o={time:n(),title:n_(i),data:s_({store:Xg(t.$id)},t_(r)),groupId:f_};i===Dg.patchFunction?o.subtitle=`⤵️`:i===Dg.patchObject?o.subtitle=`🧩`:r&&!Array.isArray(r)&&(o.subtitle=r.type),r&&(o.data[`rawEvent(s)`]={_custom:{display:`DebuggerEvent`,type:`object`,tooltip:`raw DebuggerEvent[]`,value:r}}),e.addTimelineEvent({layerId:a_,event:o})},{detached:!0,flush:`sync`});let r=t._hotUpdate;t._hotUpdate=En(i=>{r(i),e.addTimelineEvent({layerId:a_,event:{time:n(),title:`🔥 `+t.$id,subtitle:`HMR update`,data:{store:Xg(t.$id),info:Xg(`HMR update`)}}}),e.notifyComponentUpdate(),e.sendInspectorTree(o_),e.sendInspectorState(o_)});let{$dispose:i}=t;t.$dispose=()=>{i(),e.notifyComponentUpdate(),e.sendInspectorTree(o_),e.sendInspectorState(o_),e.getSettings().logStoreChanges&&zg(`Disposed "${t.$id}" store 🗑`)},e.notifyComponentUpdate(),e.sendInspectorTree(o_),e.sendInspectorState(o_),e.getSettings().logStoreChanges&&zg(`"${t.$id}" store installed 🆕`)})}var d_=0,f_;function p_(e,t,n){let r=t.reduce((t,n)=>(t[n]=I(e)[n],t),{});for(let t in r)e[t]=function(){let i=d_,a=n?new Proxy(e,{get(...e){return f_=i,Reflect.get(...e)},set(...e){return f_=i,Reflect.set(...e)}}):e;f_=i;let o=r[t].apply(a,arguments);return f_=void 0,o}}function m_({app:e,store:t,options:n}){if(!t.$id.startsWith(`__hot:`)){if(t._isOptionsAPI=!!n.state,!t._p._testing){p_(t,Object.keys(n.actions),t._isOptionsAPI);let e=t._hotUpdate;I(t)._hotUpdate=function(n){e.apply(this,arguments),p_(t,Object.keys(n._hmrPayload.actions),!!t._isOptionsAPI)}}u_(e,t)}}function h_(){let e=Ze(!0),t=e.run(()=>L({})),n=[],r=[],i=En({install(e){wg(i),i._a=e,e.provide(Tg,i),e.config.globalProperties.$pinia=i,process.env.NODE_ENV!==`production`&&process.env.NODE_ENV!==`test`&&Sg&&l_(e,i),r.forEach(e=>n.push(e)),r=[]},use(e){return this._a?n.push(e):r.push(e),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return process.env.NODE_ENV!==`production`&&process.env.NODE_ENV!==`test`&&Sg&&typeof Proxy<`u`&&i.use(m_),i}function g_(e,t){for(let n in t){let r=t[n];if(!(n in e))continue;let i=e[n];Eg(i)&&Eg(r)&&!kn(r)&&!Sn(r)?e[n]=g_(i,r):e[n]=r}return e}var __=()=>{};function v_(e,t,n,r=__){e.add(t);let i=()=>{e.delete(t)&&r()};return!n&&Qe()&&$e(i),i}function y_(e,...t){e.forEach(e=>{e(...t)})}var b_=e=>e(),x_=Symbol(),S_=Symbol();function C_(e,t){e instanceof Map&&t instanceof Map?t.forEach((t,n)=>e.set(n,t)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(let n in t){if(!t.hasOwnProperty(n))continue;let r=t[n],i=e[n];Eg(i)&&Eg(r)&&e.hasOwnProperty(n)&&!kn(r)&&!Sn(r)?e[n]=C_(i,r):e[n]=r}return e}var w_=process.env.NODE_ENV===`production`?Symbol():Symbol(`pinia:skipHydration`);function T_(e){return!Eg(e)||!Object.prototype.hasOwnProperty.call(e,w_)}var{assign:E_}=Object;function D_(e){return!!(kn(e)&&e.effect)}function O_(e,t,n,r){let{state:i,actions:a,getters:o}=t,s=n.state.value[e],c;function l(){!s&&(process.env.NODE_ENV===`production`||!r)&&(n.state.value[e]=i?i():{});let t=process.env.NODE_ENV!==`production`&&r?Rn(L(i?i():{}).value):Rn(n.state.value[e]);return E_(t,a,Object.keys(o||{}).reduce((r,i)=>(process.env.NODE_ENV!==`production`&&i in t&&console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${i}" in store "${e}".`),r[i]=En(Y(()=>{wg(n);let t=n._s.get(e);return o[i].call(t,t)})),r),{}))}return c=k_(e,l,t,n,r,!0),c}function k_(e,t,n={},r,i,a){let o,s=E_({actions:{}},n);if(process.env.NODE_ENV!==`production`&&!r._e.active)throw Error(`Pinia destroyed`);let c={deep:!0};process.env.NODE_ENV!==`production`&&(c.onTrigger=e=>{l?p=e:l==0&&!C._hotUpdating&&(Array.isArray(p)?p.push(e):console.error(`🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug.`))});let l,u,d=new Set,f=new Set,p,m=r.state.value[e];!a&&!m&&(process.env.NODE_ENV===`production`||!i)&&(r.state.value[e]={});let h=L({}),g;function _(t){let n;l=u=!1,process.env.NODE_ENV!==`production`&&(p=[]),typeof t==`function`?(t(r.state.value[e]),n={type:Dg.patchFunction,storeId:e,events:p}):(C_(r.state.value[e],t),n={type:Dg.patchObject,payload:t,storeId:e,events:p});let i=g=Symbol();wr().then(()=>{g===i&&(l=!0)}),u=!0,y_(d,n,r.state.value[e])}let v=a?function(){let{state:e}=n,t=e?e():{};this.$patch(e=>{E_(e,t)})}:process.env.NODE_ENV===`production`?__:()=>{throw Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`)};function y(){o.stop(),d.clear(),f.clear(),r._s.delete(e)}let b=(t,n=``)=>{if(x_ in t)return t[S_]=n,t;let i=function(){wg(r);let n=Array.from(arguments),a=new Set,o=new Set;function s(e){a.add(e)}function c(e){o.add(e)}y_(f,{args:n,name:i[S_],store:C,after:s,onError:c});let l;try{l=t.apply(this&&this.$id===e?this:C,n)}catch(e){throw y_(o,e),e}return l instanceof Promise?l.then(e=>(y_(a,e),e)).catch(e=>(y_(o,e),Promise.reject(e))):(y_(a,l),l)};return i[x_]=!0,i[S_]=n,i},x=En({actions:{},getters:{},state:[],hotState:h}),S={_p:r,$id:e,$onAction:v_.bind(null,f),$patch:_,$reset:v,$subscribe(t,n={}){let i=v_(d,t,n.detached,()=>a()),a=o.run(()=>wi(()=>r.state.value[e],r=>{(n.flush===`sync`?u:l)&&t({storeId:e,type:Dg.direct,events:p},r)},E_({},c,n)));return i},$dispose:y},C=_n(process.env.NODE_ENV!==`production`||process.env.NODE_ENV!==`production`&&process.env.NODE_ENV!==`test`&&Sg?E_({_hmrPayload:x,_customProperties:En(new Set)},S):S);r._s.set(e,C);let w=(r._a&&r._a.runWithContext||b_)(()=>r._e.run(()=>(o=Ze()).run(()=>t({action:b}))));for(let t in w){let o=w[t];kn(o)&&!D_(o)||Sn(o)?(process.env.NODE_ENV!==`production`&&i?h.value[t]=Vn(w,t):a||(m&&T_(o)&&(kn(o)?o.value=m[t]:C_(o,m[t])),r.state.value[e][t]=o),process.env.NODE_ENV!==`production`&&x.state.push(t)):typeof o==`function`?(w[t]=process.env.NODE_ENV!==`production`&&i?o:b(o,t),process.env.NODE_ENV!==`production`&&(x.actions[t]=o),s.actions[t]=o):process.env.NODE_ENV!==`production`&&D_(o)&&(x.getters[t]=a?n.getters[t]:o,Sg&&(w._getters||=En([])).push(t))}if(E_(C,w),E_(I(C),w),Object.defineProperty(C,"$state",{get:()=>process.env.NODE_ENV!==`production`&&i?h.value:r.state.value[e],set:e=>{if(process.env.NODE_ENV!==`production`&&i)throw Error(`cannot set hotState`);_(t=>{E_(t,e)})}}),process.env.NODE_ENV!==`production`&&(C._hotUpdate=En(t=>{C._hotUpdating=!0,t._hmrPayload.state.forEach(e=>{if(e in C.$state){let n=t.$state[e],r=C.$state[e];typeof n==`object`&&Eg(n)&&Eg(r)?g_(n,r):t.$state[e]=r}C[e]=Vn(t.$state,e)}),Object.keys(C.$state).forEach(e=>{e in t.$state||delete C[e]}),l=!1,u=!1,r.state.value[e]=Vn(t._hmrPayload,`hotState`),u=!0,wr().then(()=>{l=!0});for(let e in t._hmrPayload.actions){let n=t[e];C[e]=b(n,e)}for(let e in t._hmrPayload.getters){let n=t._hmrPayload.getters[e];C[e]=a?Y(()=>(wg(r),n.call(C,C))):n}Object.keys(C._hmrPayload.getters).forEach(e=>{e in t._hmrPayload.getters||delete C[e]}),Object.keys(C._hmrPayload.actions).forEach(e=>{e in t._hmrPayload.actions||delete C[e]}),C._hmrPayload=t._hmrPayload,C._getters=t._getters,C._hotUpdating=!1})),process.env.NODE_ENV!==`production`&&process.env.NODE_ENV!==`test`&&Sg){let e={writable:!0,configurable:!0,enumerable:!1};[`_p`,`_hmrPayload`,`_getters`,`_customProperties`].forEach(t=>{Object.defineProperty(C,t,E_({value:C[t]},e))})}return r._p.forEach(e=>{if(process.env.NODE_ENV!==`production`&&process.env.NODE_ENV!==`test`&&Sg){let t=o.run(()=>e({store:C,app:r._a,pinia:r,options:s}));Object.keys(t||{}).forEach(e=>C._customProperties.add(e)),E_(C,t)}else E_(C,o.run(()=>e({store:C,app:r._a,pinia:r,options:s})))}),process.env.NODE_ENV!==`production`&&C.$state&&typeof C.$state==`object`&&typeof C.$state.constructor==`function`&&!C.$state.constructor.toString().includes(`[native code]`)&&console.warn(`[🍍]: The "state" must be a plain object. It cannot be
24
+ state: () => new MyClass()
25
+ Found in store "${C.$id}".`),m&&a&&n.hydrate&&n.hydrate(C.$state,m),l=!0,u=!0,C}function A_(e,t,n){let r,i=typeof t==`function`;r=i?n:t;function a(n,o){let s=vi();if(n=(process.env.NODE_ENV===`test`&&Cg&&Cg._testing?null:n)||(s?_i(Tg,null):null),n&&wg(n),process.env.NODE_ENV!==`production`&&!Cg)throw Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
26
+ See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
27
+ This will fail in production.`);n=Cg,n._s.has(e)||(i?k_(e,t,r,n):O_(e,r,n),process.env.NODE_ENV!==`production`&&(a._pinia=n));let c=n._s.get(e);if(process.env.NODE_ENV!==`production`&&o){let a=`__hot:`+e,s=i?k_(a,t,r,n,!0):O_(a,E_({},r),n,!0);o._hotUpdate(s),delete n.state.value[a],n._s.delete(a)}if(process.env.NODE_ENV!==`production`&&Sg){let t=pl();if(t&&t.proxy&&!o){let n=t.proxy,r=`_pStores`in n?n._pStores:n._pStores={};r[e]=c}}return c}return a.$id=e,a}function j_(e,t){let n=An();return xi(()=>{n.value=e()},{...t,flush:t?.flush??`sync`}),yn(n)}function M_(e,t){return Qe()?($e(e,t),!0):!1}function N_(e){let t=!1,n,r=Ze(!0);return((...i)=>(t||=(n=r.run(()=>e(...i)),!0),n))}var P_=new WeakMap,F_=(...e)=>{let t=e[0],n=pl()?.proxy??Qe();if(n==null&&!vi())throw Error(`injectLocal must be called in setup`);return n&&P_.has(n)&&t in P_.get(n)?P_.get(n)[t]:_i(...e)},I_=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;var L_=e=>e!==void 0,R_=e=>e!=null,z_=Object.prototype.toString,B_=e=>z_.call(e)===`[object Object]`,V_=()=>{},H_=U_();function U_(){var e,t;return I_&&!!(!((e=window)==null||(e=e.navigator)==null)&&e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window)==null||(t=t.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function W_(...e){if(e.length!==1)return Vn(...e);let t=e[0];return typeof t==`function`?yn(Ln(()=>({get:t,set:V_}))):L(t)}function G_(e,t){function n(...n){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(r).catch(i)})}return n}var K_=e=>e();function q_(e=K_,t={}){let{initialState:n=`active`}=t,r=W_(n===`active`);function i(){r.value=!1}function a(){r.value=!0}return{isActive:bn(r),pause:i,resume:a,eventFilter:(...t)=>{r.value&&e(...t)}}}function J_(e){return e.endsWith(`rem`)?Number.parseFloat(e)*16:Number.parseFloat(e)}function Y_(e){return Array.isArray(e)?e:[e]}function X_(e){return e||pl()}function Z_(e){if(!I_)return e;let t=0,n,r,i=()=>{--t,r&&t<=0&&(r.stop(),n=void 0,r=void 0)};return((...a)=>(t+=1,r||(r=Ze(!0),n=r.run(()=>e(...a))),M_(i),n))}function Q_(e){return _n(kn(e)?new Proxy({},{get(t,n,r){return R(Reflect.get(e.value,n,r))},set(t,n,r){return kn(e.value[n])&&!kn(r)?e.value[n].value=r:e.value[n]=r,!0},deleteProperty(t,n){return Reflect.deleteProperty(e.value,n)},has(t,n){return Reflect.has(e.value,n)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}}):e)}function $_(e){return Q_(Y(e))}function ev(e,...t){let n=t.flat(),r=n[0];return $_(()=>Object.fromEntries(typeof r==`function`?Object.entries(Rn(e)).filter(([e,t])=>!r(z(t),e)):Object.entries(Rn(e)).filter(e=>!n.includes(e[0]))))}function tv(e,t,n={}){let{eventFilter:r=K_,...i}=n;return wi(e,G_(r,t),i)}function nv(e,t,n={}){let{eventFilter:r,initialState:i=`active`,...a}=n,{eventFilter:o,pause:s,resume:c,isActive:l}=q_(r,{initialState:i});return{stop:tv(e,t,{...a,eventFilter:o}),pause:s,resume:c,isActive:l}}function rv(e,t={}){if(!kn(e))return Rn(e);let n=Array.isArray(e.value)?Array.from({length:e.value.length}):{};for(let r in e.value)n[r]=Ln(()=>({get(){return e.value[r]},set(n){if(z(t.replaceRef)??!0)if(Array.isArray(e.value)){let t=[...e.value];t[r]=n,e.value=t}else{let t={...e.value,[r]:n};Object.setPrototypeOf(t,Object.getPrototypeOf(e.value)),e.value=t}else e.value[r]=n}}));return n}function iv(e,t){X_(t)&&$a(e,t)}function av(e,t=!0,n){X_(n)?Xa(e,n):t?e():wr(e)}function ov(e=!1,t={}){let{truthyValue:n=!0,falsyValue:r=!1}=t,i=kn(e),a=An(e);function o(e){if(arguments.length)return a.value=e,a.value;{let e=z(n);return a.value=a.value===e?z(r):e,a.value}}return i?o:[a,o]}function sv(e,t,n){return wi(e,t,{...n,immediate:!0})}var cv=I_?window:void 0;I_&&window.document,I_&&window.navigator,I_&&window.location;function lv(e){let t=z(e);return t?.$el??t}function uv(...e){let t=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),n=Y(()=>{let t=Y_(z(e[0])).filter(e=>e!=null);return t.every(e=>typeof e!=`string`)?t:void 0});return sv(()=>[n.value?.map(e=>lv(e))??[cv].filter(e=>e!=null),Y_(z(n.value?e[1]:e[0])),Y_(R(n.value?e[2]:e[1])),z(n.value?e[3]:e[2])],([e,n,r,i],a,o)=>{if(!e?.length||!n?.length||!r?.length)return;let s=B_(i)?{...i}:i,c=e.flatMap(e=>n.flatMap(n=>r.map(r=>t(e,n,r,s))));o(()=>{c.forEach(e=>e())})},{flush:`post`})}function dv(){let e=An(!1),t=pl();return t&&Xa(()=>{e.value=!0},t),e}function fv(e){let t=dv();return Y(()=>(t.value,!!e()))}function pv(e,t,n={}){let{window:r=cv,...i}=n,a,o=fv(()=>r&&`MutationObserver`in r),s=()=>{a&&=(a.disconnect(),void 0)},c=wi(Y(()=>{let t=Y_(z(e)).map(lv).filter(R_);return new Set(t)}),e=>{s(),o.value&&e.size&&(a=new MutationObserver(t),e.forEach(e=>a.observe(e,i)))},{immediate:!0,flush:`post`}),l=()=>a?.takeRecords(),u=()=>{c(),s()};return M_(u),{isSupported:o,stop:u,takeRecords:l}}function mv(e){return typeof e==`function`?e:typeof e==`string`?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function hv(...e){let t,n,r={};e.length===3?(t=e[0],n=e[1],r=e[2]):e.length===2?typeof e[1]==`object`?(t=!0,n=e[0],r=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);let{target:i=cv,eventName:a=`keydown`,passive:o=!1,dedupe:s=!1}=r,c=mv(t);return uv(i,a,e=>{e.repeat&&z(s)||c(e)&&n(e)},o)}var gv=Symbol(`vueuse-ssr-width`);function _v(){let e=vi()?F_(gv,null):null;return typeof e==`number`?e:void 0}function vv(e,t={}){let{window:n=cv,ssrWidth:r=_v()}=t,i=fv(()=>n&&`matchMedia`in n&&typeof n.matchMedia==`function`),a=An(typeof r==`number`),o=An(),s=An(!1);return xi(()=>{if(a.value){a.value=!i.value,s.value=z(e).split(`,`).some(e=>{let t=e.includes(`not all`),n=e.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),i=e.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),a=!!(n||i);return n&&a&&(a=r>=J_(n[1])),i&&a&&(a=r<=J_(i[1])),t?!a:a});return}i.value&&(o.value=n.matchMedia(z(e)),s.value=o.value.matches)}),uv(o,`change`,e=>{s.value=e.matches},{passive:!0}),Y(()=>s.value)}function yv(e){return JSON.parse(JSON.stringify(e))}var bv=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{},xv=`__vueuse_ssr_handlers__`,Sv=Cv();function Cv(){return xv in bv||(bv[xv]=bv[xv]||{}),bv[xv]}function wv(e,t){return Sv[e]||t}function Tv(e){return vv(`(prefers-color-scheme: dark)`,e)}function Ev(e){return e==null?`any`:e instanceof Set?`set`:e instanceof Map?`map`:e instanceof Date?`date`:typeof e==`boolean`?`boolean`:typeof e==`string`?`string`:typeof e==`object`?`object`:Number.isNaN(e)?`any`:`number`}var Dv={boolean:{read:e=>e===`true`,write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},Ov=`vueuse-storage`;function kv(e,t,n,r={}){let{flush:i=`pre`,deep:a=!0,listenToStorageChanges:o=!0,writeDefaults:s=!0,mergeDefaults:c=!1,shallow:l,window:u=cv,eventFilter:d,onError:f=e=>{console.error(e)},initOnMounted:p}=r,m=(l?An:L)(typeof t==`function`?t():t),h=Y(()=>z(e));if(!n)try{n=wv(`getDefaultStorage`,()=>cv?.localStorage)()}catch(e){f(e)}if(!n)return m;let g=z(t),_=Ev(g),v=r.serializer??Dv[_],{pause:y,resume:b}=nv(m,e=>C(e),{flush:i,deep:a,eventFilter:d});wi(h,()=>T(),{flush:i});let x=!1;u&&o&&(n instanceof Storage?uv(u,`storage`,e=>{p&&!x||T(e)},{passive:!0}):uv(u,Ov,e=>{p&&!x||E(e)})),p?av(()=>{x=!0,T()}):T();function S(e,t){if(u){let r={key:h.value,oldValue:e,newValue:t,storageArea:n};u.dispatchEvent(n instanceof Storage?new StorageEvent(`storage`,r):new CustomEvent(Ov,{detail:r}))}}function C(e){try{let t=n.getItem(h.value);if(e==null)S(t,null),n.removeItem(h.value);else{let r=v.write(e);t!==r&&(n.setItem(h.value,r),S(t,r))}}catch(e){f(e)}}function w(e){let t=e?e.newValue:n.getItem(h.value);if(t==null)return s&&g!=null&&n.setItem(h.value,v.write(g)),g;if(!e&&c){let e=v.read(t);return typeof c==`function`?c(e,g):_===`object`&&!Array.isArray(e)?{...g,...e}:e}else if(typeof t!=`string`)return t;else return v.read(t)}function T(e){if(!(e&&e.storageArea!==n)){if(e&&e.key==null){m.value=g;return}if(!(e&&e.key!==h.value)){y();try{let t=v.write(m.value);(e===void 0||e?.newValue!==t)&&(m.value=w(e))}catch(e){f(e)}finally{e?wr(b):b()}}}}function E(e){T(e.detail)}return m}var Av=`*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}`;function jv(e={}){let{selector:t=`html`,attribute:n=`class`,initialValue:r=`auto`,window:i=cv,storage:a,storageKey:o=`vueuse-color-scheme`,listenToStorageChanges:s=!0,storageRef:c,emitAuto:l,disableTransition:u=!0}=e,d={auto:``,light:`light`,dark:`dark`,...e.modes||{}},f=Tv({window:i}),p=Y(()=>f.value?`dark`:`light`),m=c||(o==null?W_(r):kv(o,r,a,{window:i,listenToStorageChanges:s})),h=Y(()=>m.value===`auto`?p.value:m.value),g=wv(`updateHTMLAttrs`,(e,t,n)=>{let r=typeof e==`string`?i?.document.querySelector(e):lv(e);if(!r)return;let a=new Set,o=new Set,s=null;if(t===`class`){let e=n.split(/\s/g);Object.values(d).flatMap(e=>(e||``).split(/\s/g)).filter(Boolean).forEach(t=>{e.includes(t)?a.add(t):o.add(t)})}else s={key:t,value:n};if(a.size===0&&o.size===0&&s===null)return;let c;u&&(c=i.document.createElement(`style`),c.appendChild(document.createTextNode(Av)),i.document.head.appendChild(c));for(let e of a)r.classList.add(e);for(let e of o)r.classList.remove(e);s&&r.setAttribute(s.key,s.value),u&&(i.getComputedStyle(c).opacity,document.head.removeChild(c))});function _(e){g(t,n,d[e]??e)}function v(t){e.onChanged?e.onChanged(t,_):_(t)}wi(h,v,{flush:`post`,immediate:!0}),av(()=>v(h.value));let y=Y({get(){return l?m.value:h.value},set(e){m.value=e}});return Object.assign(y,{store:m,system:p,state:h})}function Mv(e={}){let{valueDark:t=`dark`,valueLight:n=``}=e,r=jv({...e,onChanged:(t,n)=>{var r;e.onChanged?(r=e.onChanged)==null||r.call(e,t===`dark`,n,t):n(t)},modes:{dark:t,light:n}}),i=Y(()=>r.system.value);return Y({get(){return r.value===`dark`},set(e){let t=e?`dark`:`light`;i.value===t?r.value=`auto`:r.value=t}})}var Nv={speed:2,margin:30,direction:`both`};function Pv(e){e.scrollLeft>e.scrollWidth-e.clientWidth&&(e.scrollLeft=Math.max(0,e.scrollWidth-e.clientWidth)),e.scrollTop>e.scrollHeight-e.clientHeight&&(e.scrollTop=Math.max(0,e.scrollHeight-e.clientHeight))}function Fv(e,t={}){let{pointerTypes:n,preventDefault:r,stopPropagation:i,exact:a,onMove:o,onEnd:s,onStart:c,initialValue:l,axis:u=`both`,draggingElement:d=cv,containerElement:f,handle:p=e,buttons:m=[0],restrictInView:h,autoScroll:g=!1}=t,_=L(z(l)??{x:0,y:0}),v=L(),y=e=>n?n.includes(e.pointerType):!0,b=e=>{z(r)&&e.preventDefault(),z(i)&&e.stopPropagation()},x=z(g),S=typeof x==`object`?{speed:z(x.speed)??Nv.speed,margin:z(x.margin)??Nv.margin,direction:x.direction??Nv.direction}:Nv,C=e=>typeof e==`number`?[e,e]:[e.x,e.y],w=(e,t,n)=>{let{clientWidth:r,clientHeight:i,scrollLeft:a,scrollTop:o,scrollWidth:s,scrollHeight:c}=e,[l,u]=C(S.margin),[d,f]=C(S.speed),p=0,m=0;(S.direction===`x`||S.direction===`both`)&&(n.x<l&&a>0?p=-d:n.x+t.width>r-l&&a<s-r&&(p=d)),(S.direction===`y`||S.direction===`both`)&&(n.y<u&&o>0?m=-f:n.y+t.height>i-u&&o<c-i&&(m=f)),(p||m)&&e.scrollBy({left:p,top:m,behavior:`auto`})},T=null,E=()=>{let t=z(f);t&&!T&&(T=setInterval(()=>{let n=z(e).getBoundingClientRect(),{x:r,y:i}=_.value,a={x:r-t.scrollLeft,y:i-t.scrollTop};a.x>=0&&a.y>=0&&(w(t,n,a),a.x+=t.scrollLeft,a.y+=t.scrollTop,_.value=a)},1e3/60))},D=()=>{T&&=(clearInterval(T),null)},O=(e,t,n,r)=>{let[i,a]=typeof n==`number`?[n,n]:[n.x,n.y],{clientWidth:o,clientHeight:s}=t;return e.x<i||e.x+r.width>o-i||e.y<a||e.y+r.height>s-a};z(g)&&wi(_,()=>{if(z(t.disabled)||!v.value)return;let n=z(f);if(!n)return;let r=z(e).getBoundingClientRect(),{x:i,y:a}=_.value;O({x:i-n.scrollLeft,y:a-n.scrollTop},n,S.margin,r)?E():D()});let k=n=>{var r;if(!z(m).includes(n.button)||z(t.disabled)||!y(n)||z(a)&&n.target!==z(e))return;let i=z(f),o=i==null||(r=i.getBoundingClientRect)==null?void 0:r.call(i),s=z(e).getBoundingClientRect(),l={x:n.clientX-(i?s.left-o.left+(g?0:i.scrollLeft):s.left),y:n.clientY-(i?s.top-o.top+(g?0:i.scrollTop):s.top)};c?.(l,n)!==!1&&(v.value=l,b(n))},ee=n=>{if(z(t.disabled)||!y(n)||!v.value)return;let r=z(f);r instanceof HTMLElement&&Pv(r);let i=z(e).getBoundingClientRect(),{x:a,y:s}=_.value;if((u===`x`||u===`both`)&&(a=n.clientX-v.value.x,r&&(a=Math.min(Math.max(0,a),r.scrollWidth-i.width))),(u===`y`||u===`both`)&&(s=n.clientY-v.value.y,r&&(s=Math.min(Math.max(0,s),r.scrollHeight-i.height))),z(g)&&r&&(T===null&&w(r,i,{x:a,y:s}),a+=r.scrollLeft,s+=r.scrollTop),r&&(h||g)){if(u!==`y`){let e=a-r.scrollLeft;e<0?a=r.scrollLeft:e>r.clientWidth-i.width&&(a=r.clientWidth-i.width+r.scrollLeft)}if(u!==`x`){let e=s-r.scrollTop;e<0?s=r.scrollTop:e>r.clientHeight-i.height&&(s=r.clientHeight-i.height+r.scrollTop)}}_.value={x:a,y:s},o?.(_.value,n),b(n)},A=e=>{z(t.disabled)||!y(e)||v.value&&(v.value=void 0,g&&D(),s?.(_.value,e),b(e))};if(I_){let e=()=>({capture:t.capture??!0,passive:!z(r)});uv(p,`pointerdown`,k,e),uv(d,`pointermove`,ee,e),uv(d,`pointerup`,A,e)}return{...rv(_),position:_,isDragging:Y(()=>!!v.value),style:Y(()=>`
28
+ left: ${_.value.x}px;
29
+ top: ${_.value.y}px;
30
+ ${g?`text-wrap: nowrap;`:``}
31
+ `)}}function Iv(e,t,n={}){let{window:r=cv,...i}=n,a,o=fv(()=>r&&`ResizeObserver`in r),s=()=>{a&&=(a.disconnect(),void 0)},c=wi(Y(()=>{let t=z(e);return Array.isArray(t)?t.map(e=>lv(e)):[lv(t)]}),e=>{if(s(),o.value&&r){a=new ResizeObserver(t);for(let t of e)t&&a.observe(t,i)}},{immediate:!0,flush:`post`}),l=()=>{s(),c()};return M_(l),{isSupported:o,stop:l}}function Lv(e,t={}){let{reset:n=!0,windowResize:r=!0,windowScroll:i=!0,immediate:a=!0,updateTiming:o=`sync`}=t,s=An(0),c=An(0),l=An(0),u=An(0),d=An(0),f=An(0),p=An(0),m=An(0);function h(){let t=lv(e);if(!t){n&&(s.value=0,c.value=0,l.value=0,u.value=0,d.value=0,f.value=0,p.value=0,m.value=0);return}let r=t.getBoundingClientRect();s.value=r.height,c.value=r.bottom,l.value=r.left,u.value=r.right,d.value=r.top,f.value=r.width,p.value=r.x,m.value=r.y}function g(){o===`sync`?h():o===`next-frame`&&requestAnimationFrame(()=>h())}return Iv(e,g),wi(()=>lv(e),e=>!e&&g()),pv(e,g,{attributeFilter:[`style`,`class`]}),i&&uv(`scroll`,g,{capture:!0,passive:!0}),r&&uv(`resize`,g,{passive:!0}),av(()=>{a&&g()}),{height:s,bottom:c,left:l,right:u,top:d,width:f,x:p,y:m,update:g}}function Rv(e,t,n={}){let{window:r=cv}=n;return kv(e,t,r?.localStorage,n)}function zv(e,t,n,r={}){var i,a;let{clone:o=!1,passive:s=!1,eventName:c,deep:l=!1,defaultValue:u,shouldEmit:d}=r,f=pl(),p=n||f?.emit||(f==null||(i=f.$emit)==null?void 0:i.bind(f))||(f==null||(a=f.proxy)==null||(a=a.$emit)==null?void 0:a.bind(f?.proxy)),m=c;t||=`modelValue`,m||=`update:${t.toString()}`;let h=e=>o?typeof o==`function`?o(e):yv(e):e,g=()=>L_(e[t])?h(e[t]):u,_=e=>{d?d(e)&&p(m,e):p(m,e)};if(s){let n=L(g()),r=!1;return wi(()=>e[t],e=>{r||(r=!0,n.value=h(e),wr(()=>r=!1))}),wi(n,n=>{!r&&(n!==e[t]||l)&&_(n)},{deep:l}),n}else return Y({get(){return g()},set(e){_(e)}})}var Bv=e=>e===``,Vv=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),Hv=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),Uv=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),Wv=e=>{let t=Uv(e);return t.charAt(0).toUpperCase()+t.slice(1)},Gv={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`},Kv=Symbol(`lucide-icons`);function qv(){return _i(Kv,{})}var Jv=({name:e,iconNode:t,absoluteStrokeWidth:n,"absolute-stroke-width":r,strokeWidth:i,"stroke-width":a,size:o,color:s,...c},{slots:l})=>{let{size:u,color:d,strokeWidth:f=2,absoluteStrokeWidth:p=!1,class:m=``}=qv(),h=Y(()=>{let e=Bv(n)||Bv(r)||n===!0||r===!0||p===!0,t=i||a||f||Gv[`stroke-width`];return e?Number(t)*24/Number(o??u??Gv.width):t});return zl(`svg`,{...Gv,...c,width:o??u??Gv.width,height:o??u??Gv.height,stroke:s??d??Gv.stroke,"stroke-width":h.value,class:Vv(`lucide`,m,...e?[`lucide-${Hv(Wv(e))}-icon`,`lucide-${Hv(e)}`]:[`lucide-icon`])},[...t.map(e=>zl(...e)),...l.default?[l.default()]:[]])},Yv=(e,t)=>(n,{slots:r,attrs:i})=>zl(Jv,{...i,...n,iconNode:t,name:e},r.default?{default:r.default}:void 0),Xv=Yv(`calendar-days`,[[`path`,{d:`M8 2v4`,key:`1cmpym`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`4`,rx:`2`,key:`1hopcy`}],[`path`,{d:`M3 10h18`,key:`8toen8`}],[`path`,{d:`M8 14h.01`,key:`6423bh`}],[`path`,{d:`M12 14h.01`,key:`1etili`}],[`path`,{d:`M16 14h.01`,key:`1gbofw`}],[`path`,{d:`M8 18h.01`,key:`lrp35t`}],[`path`,{d:`M12 18h.01`,key:`mhygvu`}],[`path`,{d:`M16 18h.01`,key:`kzsmim`}]]),Zv=Yv(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),Qv=Yv(`chevron-up`,[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]),$v=Yv(`clock`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]),ey=Yv(`delete`,[[`path`,{d:`M10 5a2 2 0 0 0-1.344.519l-6.328 5.74a1 1 0 0 0 0 1.481l6.328 5.741A2 2 0 0 0 10 19h10a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2z`,key:`1yo7s0`}],[`path`,{d:`m12 9 6 6`,key:`anjzzh`}],[`path`,{d:`m18 9-6 6`,key:`1fp51s`}]]),ty=Yv(`ellipsis`,[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`circle`,{cx:`19`,cy:`12`,r:`1`,key:`1wjl8i`}],[`circle`,{cx:`5`,cy:`12`,r:`1`,key:`1pcz8c`}]]),ny=Yv(`globe`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,key:`13o1zl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]),ry=Yv(`headset`,[[`path`,{d:`M3 11h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-5Zm0 0a9 9 0 1 1 18 0m0 0v5a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3Z`,key:`12oyoe`}],[`path`,{d:`M21 16v2a4 4 0 0 1-4 4h-5`,key:`1x7m43`}]]),iy=Yv(`keyboard`,[[`path`,{d:`M10 8h.01`,key:`1r9ogq`}],[`path`,{d:`M12 12h.01`,key:`1mp3jc`}],[`path`,{d:`M14 8h.01`,key:`1primd`}],[`path`,{d:`M16 12h.01`,key:`1l6xoz`}],[`path`,{d:`M18 8h.01`,key:`emo2bl`}],[`path`,{d:`M6 8h.01`,key:`x9i8wu`}],[`path`,{d:`M7 16h10`,key:`wp8him`}],[`path`,{d:`M8 12h.01`,key:`czm47f`}],[`rect`,{width:`20`,height:`16`,x:`2`,y:`4`,rx:`2`,key:`18n3k1`}]]),ay=Yv(`mic-off`,[[`path`,{d:`M12 19v3`,key:`npa21l`}],[`path`,{d:`M15 9.34V5a3 3 0 0 0-5.68-1.33`,key:`1gzdoj`}],[`path`,{d:`M16.95 16.95A7 7 0 0 1 5 12v-2`,key:`cqa7eg`}],[`path`,{d:`M18.89 13.23A7 7 0 0 0 19 12v-2`,key:`16hl24`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M9 9v3a3 3 0 0 0 5.12 2.12`,key:`r2i35w`}]]),oy=Yv(`mic`,[[`path`,{d:`M12 19v3`,key:`npa21l`}],[`path`,{d:`M19 10v2a7 7 0 0 1-14 0v-2`,key:`1vc78b`}],[`rect`,{x:`9`,y:`2`,width:`6`,height:`13`,rx:`3`,key:`s6n7sd`}]]),sy=Yv(`moon`,[[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`,key:`kfwtm`}]]),cy=Yv(`notebook-pen`,[[`path`,{d:`M13.4 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7.4`,key:`re6nr2`}],[`path`,{d:`M2 6h4`,key:`aawbzj`}],[`path`,{d:`M2 10h4`,key:`l0bgd4`}],[`path`,{d:`M2 14h4`,key:`1gsvsf`}],[`path`,{d:`M2 18h4`,key:`1bu2t1`}],[`path`,{d:`M21.378 5.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z`,key:`pqwjuv`}]]),ly=Yv(`notebook-text`,[[`path`,{d:`M2 6h4`,key:`aawbzj`}],[`path`,{d:`M2 10h4`,key:`l0bgd4`}],[`path`,{d:`M2 14h4`,key:`1gsvsf`}],[`path`,{d:`M2 18h4`,key:`1bu2t1`}],[`rect`,{width:`16`,height:`20`,x:`4`,y:`2`,rx:`2`,key:`1nb95v`}],[`path`,{d:`M9.5 8h5`,key:`11mslq`}],[`path`,{d:`M9.5 12H16`,key:`ktog6x`}],[`path`,{d:`M9.5 16H14`,key:`p1seyn`}]]),uy=Yv(`pause`,[[`rect`,{x:`14`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`kaeet6`}],[`rect`,{x:`5`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`1wsw3u`}]]),dy=Yv(`phone-incoming`,[[`path`,{d:`M16 2v6h6`,key:`1mfrl5`}],[`path`,{d:`m22 2-6 6`,key:`6f0sa0`}],[`path`,{d:`M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384`,key:`9njp5v`}]]),fy=Yv(`phone-missed`,[[`path`,{d:`m16 2 6 6`,key:`1gw87d`}],[`path`,{d:`m22 2-6 6`,key:`6f0sa0`}],[`path`,{d:`M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384`,key:`9njp5v`}]]),py=Yv(`phone-off`,[[`path`,{d:`M10.1 13.9a14 14 0 0 0 3.732 2.668 1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2 18 18 0 0 1-12.728-5.272`,key:`1wngk7`}],[`path`,{d:`M22 2 2 22`,key:`y4kqgn`}],[`path`,{d:`M4.76 13.582A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 .244.473`,key:`10hv5p`}]]),my=Yv(`phone`,[[`path`,{d:`M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384`,key:`9njp5v`}]]),hy=Yv(`play`,[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`,key:`10ikf1`}]]),gy=Yv(`settings`,[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),_y=Yv(`shield-alert`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`M12 8v4`,key:`1got3b`}],[`path`,{d:`M12 16h.01`,key:`1drbdi`}]]),vy=Yv(`sun`,[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m4.93 4.93 1.41 1.41`,key:`149t6j`}],[`path`,{d:`m17.66 17.66 1.41 1.41`,key:`ptbguv`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`m6.34 17.66-1.41 1.41`,key:`1m8zz5`}],[`path`,{d:`m19.07 4.93-1.41 1.41`,key:`1shlcs`}]]),yy=Yv(`triangle-alert`,[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),by=Yv(`user`,[[`path`,{d:`M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2`,key:`975kel`}],[`circle`,{cx:`12`,cy:`7`,r:`4`,key:`17ys0d`}]]),xy=Yv(`users`,[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`path`,{d:`M16 3.128a4 4 0 0 1 0 7.744`,key:`16gr8j`}],[`path`,{d:`M22 21v-2a4 4 0 0 0-3-3.87`,key:`kshegd`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]),Sy=Yv(`volume-2`,[[`path`,{d:`M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z`,key:`uqj9uw`}],[`path`,{d:`M16 9a5 5 0 0 1 0 6`,key:`1q6k2b`}],[`path`,{d:`M19.364 18.364a9 9 0 0 0 0-12.728`,key:`ijwkga`}]]),Cy=Yv(`volume-x`,[[`path`,{d:`M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z`,key:`uqj9uw`}],[`line`,{x1:`22`,x2:`16`,y1:`9`,y2:`15`,key:`1ewh16`}],[`line`,{x1:`16`,x2:`22`,y1:`9`,y2:`15`,key:`5ykzw1`}]]),wy=Yv(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]);function Ty(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Ty(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function Ey(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Ty(e))&&(r&&(r+=` `),r+=t);return r}var Dy=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,Oy=Ey,ky=(e,t)=>n=>{if(t?.variants==null)return Oy(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=Dy(t)||Dy(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return Oy(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)};function Ay(e){return typeof e==`string`?`'${e}'`:new jy().serialize(e)}var jy=function(){class e{#e=new Map;compare(e,t){let n=typeof e,r=typeof t;return n===`string`&&r===`string`?e.localeCompare(t):n===`number`&&r===`number`?e-t:String.prototype.localeCompare.call(this.serialize(e,!0),this.serialize(t,!0))}serialize(e,t){if(e===null)return`null`;switch(typeof e){case`string`:return t?e:`'${e}'`;case`bigint`:return`${e}n`;case`object`:return this.$object(e);case`function`:return this.$function(e)}return String(e)}serializeObject(e){let t=Object.prototype.toString.call(e);if(t!==`[object Object]`)return this.serializeBuiltInType(t.length<10?`unknown:${t}`:t.slice(8,-1),e);let n=e.constructor,r=n===Object||n===void 0?``:n.name;if(r!==``&&globalThis[r]===n)return this.serializeBuiltInType(r,e);if(typeof e.toJSON==`function`){let t=e.toJSON();return r+(typeof t==`object`&&t?this.$object(t):`(${this.serialize(t)})`)}return this.serializeObjectEntries(r,Object.entries(e))}serializeBuiltInType(e,t){let n=this[`$`+e];if(n)return n.call(this,t);if(typeof t?.entries==`function`)return this.serializeObjectEntries(e,t.entries());throw Error(`Cannot serialize ${e}`)}serializeObjectEntries(e,t){let n=Array.from(t).sort((e,t)=>this.compare(e[0],t[0])),r=`${e}{`;for(let e=0;e<n.length;e++){let[t,i]=n[e];r+=`${this.serialize(t,!0)}:${this.serialize(i)}`,e<n.length-1&&(r+=`,`)}return r+`}`}$object(e){let t=this.#e.get(e);return t===void 0&&(this.#e.set(e,`#${this.#e.size}`),t=this.serializeObject(e),this.#e.set(e,t)),t}$function(e){let t=Function.prototype.toString.call(e);return t.slice(-15)===`[native code] }`?`${e.name||``}()[native]`:`${e.name}(${e.length})${t.replace(/\s*\n\s*/g,``)}`}$Array(e){let t=`[`;for(let n=0;n<e.length;n++)t+=this.serialize(e[n]),n<e.length-1&&(t+=`,`);return t+`]`}$Date(e){try{return`Date(${e.toISOString()})`}catch{return`Date(null)`}}$ArrayBuffer(e){return`ArrayBuffer[${new Uint8Array(e).join(`,`)}]`}$Set(e){return`Set${this.$Array(Array.from(e).sort((e,t)=>this.compare(e,t)))}`}$Map(e){return this.serializeObjectEntries(`Map`,e.entries())}}for(let t of[`Error`,`RegExp`,`URL`])e.prototype[`$`+t]=function(e){return`${t}(${e})`};for(let t of[`Int8Array`,`Uint8Array`,`Uint8ClampedArray`,`Int16Array`,`Uint16Array`,`Int32Array`,`Uint32Array`,`Float32Array`,`Float64Array`])e.prototype[`$`+t]=function(e){return`${t}[${e.join(`,`)}]`};for(let t of[`BigInt64Array`,`BigUint64Array`])e.prototype[`$`+t]=function(e){return`${t}[${e.join(`n,`)}${e.length>0?`n`:``}]`};return e}();function My(e,t){return e===t||Ay(e)===Ay(t)}function Ny(e,t=-1/0,n=1/0){return Math.min(n,Math.max(t,e))}function Py(e,t){let n=typeof e==`string`&&!t?`${e}Context`:t,r=Symbol(n);return[t=>{let n=_i(r,t);if(n||n===null)return n;throw Error(`Injection \`${r.toString()}\` not found. Component must be used within ${Array.isArray(e)?`one of the following components: ${e.join(`, `)}`:`\`${e}\``}`)},e=>(gi(r,e),e)]}function Fy(){let e=document.activeElement;if(e==null)return null;for(;e!=null&&e.shadowRoot!=null&&e.shadowRoot.activeElement!=null;)e=e.shadowRoot.activeElement;return e}function Iy(e,t,n){let r=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),r.dispatchEvent(i)}function Ly(e){return e==null}function Ry(e,t){return Ly(e)?!1:Array.isArray(e)?e.some(e=>My(e,t)):My(e,t)}function zy(e){return e?e.flatMap(e=>e.type===Nc?zy(e.children):[e]):[]}var[By,Vy]=Py(`ConfigProvider`);function Hy(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)===`[object Module]`:!0}function Uy(e,t,n=`.`,r){if(!Hy(t))return Uy(e,{},n,r);let i={...t};for(let t of Object.keys(e)){if(t===`__proto__`||t===`constructor`)continue;let a=e[t];a!=null&&(r&&r(i,t,a,n)||(Array.isArray(a)&&Array.isArray(i[t])?i[t]=[...a,...i[t]]:Hy(a)&&Hy(i[t])?i[t]=Uy(a,i[t],(n?`${n}.`:``)+t.toString(),r):i[t]=a))}return i}function Wy(e){return(...t)=>t.reduce((t,n)=>Uy(t,n,``,e),{})}var Gy=Wy(),Ky=Z_(()=>{let e=L(new Map),t=L(),n=Y(()=>{for(let t of e.value.values())if(t)return!0;return!1}),r=By({scrollBody:L(!0)}),i=null,a=()=>{document.body.style.paddingRight=``,document.body.style.marginRight=``,document.body.style.pointerEvents=``,document.documentElement.style.removeProperty(`--scrollbar-width`),document.body.style.overflow=t.value??``,H_&&i?.(),t.value=void 0};return wi(n,(e,o)=>{if(!I_)return;if(!e){o&&a();return}t.value===void 0&&(t.value=document.body.style.overflow);let s=window.innerWidth-document.documentElement.clientWidth,c={padding:s,margin:0},l=r.scrollBody?.value?typeof r.scrollBody.value==`object`?Gy({padding:r.scrollBody.value.padding===!0?s:r.scrollBody.value.padding,margin:r.scrollBody.value.margin===!0?s:r.scrollBody.value.margin},c):c:{padding:0,margin:0};s>0&&(document.body.style.paddingRight=typeof l.padding==`number`?`${l.padding}px`:String(l.padding),document.body.style.marginRight=typeof l.margin==`number`?`${l.margin}px`:String(l.margin),document.documentElement.style.setProperty(`--scrollbar-width`,`${s}px`),document.body.style.overflow=`hidden`),H_&&(i=uv(document,`touchmove`,e=>Yy(e),{passive:!1})),wr(()=>{n.value&&(document.body.style.pointerEvents=`none`,document.body.style.overflow=`hidden`)})},{immediate:!0,flush:`sync`}),e});function qy(e){let t=Math.random().toString(36).substring(2,7),n=Ky();n.value.set(t,e??!1);let r=Y({get:()=>n.value.get(t)??!1,set:e=>n.value.set(t,e)});return iv(()=>{n.value.delete(t)}),r}function Jy(e){let t=window.getComputedStyle(e);if(t.overflowX===`scroll`||t.overflowY===`scroll`||t.overflowX===`auto`&&e.clientWidth<e.scrollWidth||t.overflowY===`auto`&&e.clientHeight<e.scrollHeight)return!0;{let t=e.parentNode;return!(t instanceof Element)||t.tagName===`BODY`?!1:Jy(t)}}function Yy(e){let t=e||window.event,n=t.target;return n instanceof Element&&Jy(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.cancelable&&t.preventDefault(),!1)}function Xy(e){let t=By({dir:L(`ltr`)});return Y(()=>e?.value||t.dir?.value||`ltr`)}function Zy(e){let t=pl(),n=t?.type.emits,r={};return n?.length||console.warn(`No emitted event found. Please check component: ${t?.type.__name}`),n?.forEach(t=>{r[le(se(t))]=(...n)=>e(t,...n)}),r}var Qy=0;function $y(){xi(e=>{if(!I_)return;let t=document.querySelectorAll(`[data-reka-focus-guard]`);document.body.insertAdjacentElement(`afterbegin`,t[0]??eb()),document.body.insertAdjacentElement(`beforeend`,t[1]??eb()),Qy++,e(()=>{Qy===1&&document.querySelectorAll(`[data-reka-focus-guard]`).forEach(e=>e.remove()),Qy--})})}function eb(){let e=document.createElement(`span`);return e.setAttribute(`data-reka-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}function tb(e){return Y(()=>z(e)?!!lv(e)?.closest(`form`):!0)}function nb(){let e=pl(),t=L(),n=Y(()=>r());Qa(()=>{n.value!==r()&&Nn(t)});function r(){return t.value&&`$el`in t.value&&[`#text`,`#comment`].includes(t.value.$el.nodeName)?t.value.$el.nextElementSibling:lv(t)}let i=Object.assign({},e.exposed),a={};for(let t in e.props)Object.defineProperty(a,t,{enumerable:!0,configurable:!0,get:()=>e.props[t]});if(Object.keys(i).length>0)for(let e in i)Object.defineProperty(a,e,{enumerable:!0,configurable:!0,get:()=>i[e]});Object.defineProperty(a,"$el",{enumerable:!0,configurable:!0,get:()=>e.vnode.el}),e.exposed=a;function o(n){if(t.value=n,n&&(Object.defineProperty(a,"$el",{enumerable:!0,configurable:!0,get:()=>n instanceof Element?n:n.$el}),!(n instanceof Element)&&!Object.hasOwn(n,`$el`))){let t=n.$.exposed,r=Object.assign({},a);for(let e in t)Object.defineProperty(r,e,{enumerable:!0,configurable:!0,get:()=>t[e]});e.exposed=r}}return{forwardRef:o,currentRef:t,currentElement:n}}function rb(e){let t=pl(),n=Object.keys(t?.type.props??{}).reduce((e,n)=>{let r=(t?.type.props[n]).default;return r!==void 0&&(e[n]=r),e},{}),r=Vn(e);return Y(()=>{let e={},i=t?.vnode.props??{};return Object.keys(i).forEach(t=>{e[se(t)]=i[t]}),Object.keys({...n,...e}).reduce((e,t)=>(r.value[t]!==void 0&&(e[t]=r.value[t]),e),{})})}function ib(e,t){let n=rb(e),r=t?Zy(t):{};return Y(()=>({...n.value,...r}))}var ab=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},ob=new WeakMap,sb=new WeakMap,cb={},lb=0,ub=function(e){return e&&(e.host||ub(e.parentNode))},db=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=ub(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},fb=function(e,t,n,r){var i=db(t,Array.isArray(e)?e:[e]);cb[n]||(cb[n]=new WeakMap);var a=cb[n],o=[],s=new Set,c=new Set(i),l=function(e){!e||s.has(e)||(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){!e||c.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(ob.get(e)||0)+1,l=(a.get(e)||0)+1;ob.set(e,c),a.set(e,l),o.push(e),c===1&&i&&sb.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),lb++,function(){o.forEach(function(e){var t=ob.get(e)-1,i=a.get(e)-1;ob.set(e,t),a.set(e,i),t||(sb.has(e)||e.removeAttribute(r),sb.delete(e)),i||e.removeAttribute(n)}),lb--,lb||(ob=new WeakMap,ob=new WeakMap,sb=new WeakMap,cb={})}},pb=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||ab(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),fb(r,i,n,`aria-hidden`)):function(){return null}};function mb(e){let t;wi(()=>lv(e),e=>{let n=!1;try{n=!!e?.closest(`[popover]:not(:popover-open)`)}catch{}e&&!n?t=pb(e):t&&t()}),eo(()=>{t&&t()})}var hb=0;function gb(e,t=`reka`){if(e)return e;let n;return n=`useId`in lf?ra?.():By({useId:void 0}).useId?.()??`${++hb}`,t?`${t}-${n}`:n}function _b(e){let t=L(),n=Y(()=>t.value?.width??0),r=Y(()=>t.value?.height??0);return Xa(()=>{let n=lv(e);if(n){t.value={width:n.offsetWidth,height:n.offsetHeight};let e=new ResizeObserver(e=>{if(!Array.isArray(e)||!e.length)return;let r=e[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=n.offsetWidth,a=n.offsetHeight;t.value={width:i,height:a}});return e.observe(n,{box:`border-box`}),()=>e.unobserve(n)}else t.value=void 0}),{width:n,height:r}}function vb(e,t){let n=L(e);function r(e){return t[n.value][e]??n.value}return{state:n,dispatch:e=>{n.value=r(e)}}}function yb(e,t){let n=L({}),r=L(`none`),i=L(e),a=e.value?`mounted`:`unmounted`,o,s=t.value?.ownerDocument.defaultView??cv,{state:c,dispatch:l}=vb(a,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}}),u=e=>{if(I_){let n=new CustomEvent(e,{bubbles:!1,cancelable:!1});t.value?.dispatchEvent(n)}};wi(e,async(e,i)=>{let a=i!==e;if(await wr(),a){let a=r.value,o=bb(t.value);e?(l(`MOUNT`),u(`enter`),o===`none`&&u(`after-enter`)):o===`none`||o===`undefined`||n.value?.display===`none`?(l(`UNMOUNT`),u(`leave`),u(`after-leave`)):i&&a!==o?(l(`ANIMATION_OUT`),u(`leave`)):(l(`UNMOUNT`),u(`after-leave`))}},{immediate:!0});let d=e=>{let n=bb(t.value),r=n.includes(CSS.escape(e.animationName)),a=c.value===`mounted`?`enter`:`leave`;if(e.target===t.value&&r&&(u(`after-${a}`),l(`ANIMATION_END`),!i.value)){let e=t.value.style.animationFillMode;t.value.style.animationFillMode=`forwards`,o=s?.setTimeout(()=>{t.value?.style.animationFillMode===`forwards`&&(t.value.style.animationFillMode=e)})}e.target===t.value&&n===`none`&&l(`ANIMATION_END`)},f=e=>{e.target===t.value&&(r.value=bb(t.value))},p=wi(t,(e,t)=>{e?(n.value=getComputedStyle(e),e.addEventListener(`animationstart`,f),e.addEventListener(`animationcancel`,d),e.addEventListener(`animationend`,d)):(l(`ANIMATION_END`),o!==void 0&&s?.clearTimeout(o),t?.removeEventListener(`animationstart`,f),t?.removeEventListener(`animationcancel`,d),t?.removeEventListener(`animationend`,d))},{immediate:!0}),m=wi(c,()=>{let e=bb(t.value);r.value=c.value===`mounted`?e:`none`});return eo(()=>{p(),m()}),{isPresent:Y(()=>[`mounted`,`unmountSuspended`].includes(c.value))}}function bb(e){return e&&getComputedStyle(e).animationName||`none`}var xb=U({name:`Presence`,props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(e,{slots:t,expose:n}){let{present:r,forceMount:i}=Rn(e),a=L(),{isPresent:o}=yb(r,a);n({present:o});let s=t.default({present:o.value});s=zy(s||[]);let c=pl();if(s&&s?.length>1){let e=c?.parent?.type.name?`<${c.parent.type.name} />`:`component`;throw Error([`Detected an invalid children for \`${e}\` for \`Presence\` component.`,``,"Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.",`You can apply a few solutions:`,["Provide a single child element so that `presence` directive attach correctly.",`Ensure the first child is an actual element instead of a raw text node or comment node.`].map(e=>` - ${e}`).join(`
32
+ `)].join(`
33
+ `))}return()=>i.value||r.value||o.value?zl(t.default({present:o.value})[0],{ref:e=>{let t=lv(e);return t?.hasAttribute===void 0||(t?.hasAttribute(`data-reka-popper-content-wrapper`)?a.value=t.firstElementChild:a.value=t),t}}):null}}),Sb=U({name:`PrimitiveSlot`,inheritAttrs:!1,setup(e,{attrs:t,slots:n}){return()=>{if(!n.default)return null;let e=zy(n.default()),r=e.findIndex(e=>e.type!==Fc);if(r===-1)return e;let i=e[r];delete i.props?.ref;let a=i.props?sl(t,i.props):t,o=$c({...i,props:{}},a);return e.length===1?o:(e[r]=o,e)}}}),Cb=[`area`,`img`,`input`],wb=U({name:`Primitive`,inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:`div`}},setup(e,{attrs:t,slots:n}){let r=e.asChild?`template`:e.as;return typeof r==`string`&&Cb.includes(r)?()=>zl(r,t):r===`template`?()=>zl(Sb,t,{default:n.default}):()=>zl(e.as,t,{default:n.default})}});function Tb(){let e=L();return{primitiveElement:e,currentElement:Y(()=>[`#text`,`#comment`].includes(e.value?.$el.nodeName)?e.value?.$el.nextElementSibling:lv(e))}}function Eb({type:e,defaultValue:t,modelValue:n}){let r=n||t;return n!==void 0||t!==void 0?Array.isArray(r)?`multiple`:`single`:e??`single`}function Db({type:e,defaultValue:t,modelValue:n}){return e||Eb({type:e,defaultValue:t,modelValue:n})}function Ob({type:e,defaultValue:t}){return t===void 0?e===`single`?void 0:[]:t}function kb(e,t){let n=Y(()=>Db(e)),r=zv(e,`modelValue`,t,{defaultValue:Ob(e),passive:e.modelValue===void 0,deep:!0});function i(e){if(n.value===`single`)r.value=My(e,r.value)?void 0:e;else{let t=Array.isArray(r.value)?[...r.value||[]]:[r.value].filter(Boolean);if(Ry(t,e)){let n=t.findIndex(t=>My(t,e));t.splice(n,1)}else t.push(e);r.value=t}}return{modelValue:r,changeModelValue:i,isSingle:Y(()=>n.value===`single`)}}var[Ab,jb]=Py(`DialogRoot`),Mb=U({inheritAttrs:!1,__name:`DialogRoot`,props:{open:{type:Boolean,required:!1,default:void 0},defaultOpen:{type:Boolean,required:!1,default:!1},modal:{type:Boolean,required:!1,default:!0}},emits:[`update:open`],setup(e,{emit:t}){let n=e,r=zv(n,`open`,t,{defaultValue:n.defaultOpen,passive:n.open===void 0}),i=L(),a=L(),{modal:o}=Rn(n);return jb({open:r,modal:o,openModal:()=>{r.value=!0},onOpenChange:e=>{r.value=e},onOpenToggle:()=>{r.value=!r.value},contentId:``,titleId:``,descriptionId:``,triggerElement:i,contentElement:a}),(e,t)=>W(e.$slots,`default`,{open:R(r),close:()=>r.value=!1})}}),Nb=U({__name:`DialogClose`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`}},setup(e){let t=e;nb();let n=Ab();return(e,r)=>(G(),K(R(wb),sl(t,{type:e.as===`button`?`button`:void 0,onClick:r[0]||=e=>R(n).onOpenChange(!1)}),{default:H(()=>[W(e.$slots,`default`)]),_:3},16,[`type`]))}}),Pb=`dismissableLayer.pointerDownOutside`,Fb=`dismissableLayer.focusOutside`;function Ib(e,t){if(!(t instanceof Element))return!1;let n=t.closest(`[data-dismissable-layer]`),r=e.dataset.dismissableLayer===``?e:e.querySelector(`[data-dismissable-layer]`),i=Array.from(e.ownerDocument.querySelectorAll(`[data-dismissable-layer]`));return!!(n&&(r===n||i.indexOf(r)<i.indexOf(n)))}function Lb(e,t,n=!0){let r=t?.value?.ownerDocument??globalThis?.document,i=L(!1),a=L(()=>{});return xi(o=>{if(!I_||!z(n))return;let s=async n=>{let o=n.target;if(!(!t?.value||!o)){if(Ib(t.value,o)){i.value=!1;return}if(n.target&&!i.value){let t={originalEvent:n};function s(){Iy(Pb,e,t)}n.pointerType===`touch`?(r.removeEventListener(`click`,a.value),a.value=s,r.addEventListener(`click`,a.value,{once:!0})):s()}else r.removeEventListener(`click`,a.value);i.value=!1}},c=window.setTimeout(()=>{r.addEventListener(`pointerdown`,s)},0);o(()=>{window.clearTimeout(c),r.removeEventListener(`pointerdown`,s),r.removeEventListener(`click`,a.value)})}),{onPointerDownCapture:()=>{z(n)&&(i.value=!0)}}}function Rb(e,t,n=!0){let r=t?.value?.ownerDocument??globalThis?.document,i=L(!1);return xi(a=>{if(!I_||!z(n))return;let o=async n=>{if(!t?.value)return;await wr(),await wr();let r=n.target;!t.value||!r||Ib(t.value,r)||n.target&&!i.value&&Iy(Fb,e,{originalEvent:n})};r.addEventListener(`focusin`,o),a(()=>r.removeEventListener(`focusin`,o))}),{onFocusCapture:()=>{z(n)&&(i.value=!0)},onBlurCapture:()=>{z(n)&&(i.value=!1)}}}var zb=_n({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,originalBodyPointerEvents:void 0,branches:new Set}),Bb=U({__name:`DismissableLayer`,props:{disableOutsidePointerEvents:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`dismiss`],setup(e,{emit:t}){let n=e,r=t,{forwardRef:i,currentElement:a}=nb(),o=Y(()=>a.value?.ownerDocument??globalThis.document),s=Y(()=>zb.layersRoot),c=Y(()=>a.value?Array.from(s.value).indexOf(a.value):-1),l=Y(()=>zb.layersWithOutsidePointerEventsDisabled.size>0),u=Y(()=>{let e=Array.from(s.value),[t]=[...zb.layersWithOutsidePointerEventsDisabled].slice(-1),n=e.indexOf(t);return c.value>=n}),d=Lb(async e=>{let t=[...zb.branches].some(t=>t?.contains(e.target));!u.value||t||(r(`pointerDownOutside`,e),r(`interactOutside`,e),await wr(),e.defaultPrevented||r(`dismiss`))},a),f=Rb(e=>{[...zb.branches].some(t=>t?.contains(e.target))||(r(`focusOutside`,e),r(`interactOutside`,e),e.defaultPrevented||r(`dismiss`))},a);return hv(`Escape`,e=>{c.value===s.value.size-1&&(r(`escapeKeyDown`,e),e.defaultPrevented||r(`dismiss`))}),xi(e=>{a.value&&(n.disableOutsidePointerEvents&&(zb.layersWithOutsidePointerEventsDisabled.size===0&&(zb.originalBodyPointerEvents=o.value.body.style.pointerEvents,o.value.body.style.pointerEvents=`none`),zb.layersWithOutsidePointerEventsDisabled.add(a.value)),s.value.add(a.value),e(()=>{n.disableOutsidePointerEvents&&zb.layersWithOutsidePointerEventsDisabled.size===1&&!Ly(zb.originalBodyPointerEvents)&&(o.value.body.style.pointerEvents=zb.originalBodyPointerEvents)}))}),xi(e=>{e(()=>{a.value&&(s.value.delete(a.value),zb.layersWithOutsidePointerEventsDisabled.delete(a.value))})}),(e,t)=>(G(),K(R(wb),{ref:R(i),"as-child":e.asChild,as:e.as,"data-dismissable-layer":``,style:ve({pointerEvents:l.value?u.value?`auto`:`none`:void 0}),onFocusCapture:R(f).onFocusCapture,onBlurCapture:R(f).onBlurCapture,onPointerdownCapture:R(d).onPointerDownCapture},{default:H(()=>[W(e.$slots,`default`)]),_:3},8,[`as-child`,`as`,`style`,`onFocusCapture`,`onBlurCapture`,`onPointerdownCapture`]))}}),Vb=N_(()=>L([]));function Hb(){let e=Vb();return{add(t){let n=e.value[0];t!==n&&n?.pause(),e.value=Ub(e.value,t),e.value.unshift(t)},remove(t){e.value=Ub(e.value,t),e.value[0]?.resume()}}}function Ub(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}var Wb=`focusScope.autoFocusOnMount`,Gb=`focusScope.autoFocusOnUnmount`,Kb={bubbles:!1,cancelable:!0};function qb(e,{select:t=!1}={}){let n=Fy();for(let r of e)if($b(r,{select:t}),Fy()!==n)return!0}function Jb(e){let t=Yb(e);return[Xb(t,e),Xb(t.reverse(),e)]}function Yb(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Xb(e,t){for(let n of e)if(!Zb(n,{upTo:t}))return n}function Zb(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}function Qb(e){return e instanceof HTMLInputElement&&`select`in e}function $b(e,{select:t=!1}={}){if(e&&e.focus){let n=Fy();e.focus({preventScroll:!0}),e!==n&&Qb(e)&&t&&e.select()}}var ex=U({__name:`FocusScope`,props:{loop:{type:Boolean,required:!1,default:!1},trapped:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`mountAutoFocus`,`unmountAutoFocus`],setup(e,{emit:t}){let n=e,r=t,{currentRef:i,currentElement:a}=nb(),o=L(null),s=Hb(),c=_n({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}});xi(e=>{if(!I_)return;let t=a.value;if(!n.trapped)return;function r(e){if(c.paused||!t)return;let n=e.target;t.contains(n)?o.value=n:$b(o.value,{select:!0})}function i(e){if(c.paused||!t)return;let n=e.relatedTarget;n!==null&&(t.contains(n)||$b(o.value,{select:!0}))}function s(e){let n=o.value;n!==null&&e.some(e=>e.removedNodes.length>0)&&(t.contains(n)||$b(t))}document.addEventListener(`focusin`,r),document.addEventListener(`focusout`,i);let l=new MutationObserver(s);t&&l.observe(t,{childList:!0,subtree:!0}),e(()=>{document.removeEventListener(`focusin`,r),document.removeEventListener(`focusout`,i),l.disconnect()})}),xi(async e=>{let t=a.value;if(await wr(),!t)return;s.add(c);let n=Fy();if(!t.contains(n)){let e=new CustomEvent(Wb,Kb);t.addEventListener(Wb,e=>r(`mountAutoFocus`,e)),t.dispatchEvent(e),e.defaultPrevented||(qb(Yb(t),{select:!0}),Fy()===n&&$b(t))}e(()=>{t.removeEventListener(Wb,e=>r(`mountAutoFocus`,e));let e=new CustomEvent(Gb,Kb),i=e=>{r(`unmountAutoFocus`,e)};t.addEventListener(Gb,i),t.dispatchEvent(e),setTimeout(()=>{e.defaultPrevented||$b(n??document.body,{select:!0}),t.removeEventListener(Gb,i),s.remove(c)},0)})});function l(e){if(!n.loop&&!n.trapped||c.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,r=Fy();if(t&&r){let t=e.currentTarget,[i,a]=Jb(t);i&&a?!e.shiftKey&&r===a?(e.preventDefault(),n.loop&&$b(i,{select:!0})):e.shiftKey&&r===i&&(e.preventDefault(),n.loop&&$b(a,{select:!0})):r===t&&e.preventDefault()}}return(e,t)=>(G(),K(R(wb),{ref_key:`currentRef`,ref:i,tabindex:`-1`,"as-child":e.asChild,as:e.as,onKeydown:l},{default:H(()=>[W(e.$slots,`default`)]),_:3},8,[`as-child`,`as`]))}}),tx=[`Enter`,` `],nx=[`ArrowDown`,`PageUp`,`Home`],rx=[`ArrowUp`,`PageDown`,`End`];[...nx,...rx],[...tx],[...tx];function ix(e){return e?`open`:`closed`}var ax=`DialogTitle`,ox=`DialogContent`;function sx({titleName:e=ax,contentName:t=ox,componentLink:n=`dialog.html#title`,titleId:r,descriptionId:i,contentElement:a}){let o=`Warning: \`${t}\` requires a \`${e}\` for the component to be accessible for screen reader users.
34
+
35
+ If you want to hide the \`${e}\`, you can wrap it with our VisuallyHidden component.
36
+
37
+ For more information, see https://www.reka-ui.com/docs/components/${n}`,s=`Warning: Missing \`Description\` or \`aria-describedby="undefined"\` for ${t}.`;Xa(()=>{document.getElementById(r)||console.warn(o);let e=a.value?.getAttribute(`aria-describedby`);i&&e&&(document.getElementById(i)||console.warn(s))})}var cx=U({__name:`DialogContentImpl`,props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=t,i=Ab(),{forwardRef:a,currentElement:o}=nb();return i.titleId||=gb(void 0,`reka-dialog-title`),i.descriptionId||=gb(void 0,`reka-dialog-description`),Xa(()=>{i.contentElement=o,Fy()!==document.body&&(i.triggerElement.value=Fy())}),process.env.NODE_ENV!==`production`&&sx({titleName:`DialogTitle`,contentName:`DialogContent`,componentLink:`dialog.html#title`,titleId:i.titleId,descriptionId:i.descriptionId,contentElement:o}),(e,t)=>(G(),K(R(ex),{"as-child":``,loop:``,trapped:n.trapFocus,onMountAutoFocus:t[5]||=e=>r(`openAutoFocus`,e),onUnmountAutoFocus:t[6]||=e=>r(`closeAutoFocus`,e)},{default:H(()=>[J(R(Bb),sl({id:R(i).contentId,ref:R(a),as:e.as,"as-child":e.asChild,"disable-outside-pointer-events":e.disableOutsidePointerEvents,role:`dialog`,"aria-describedby":R(i).descriptionId,"aria-labelledby":R(i).titleId,"data-state":R(ix)(R(i).open.value)},e.$attrs,{onDismiss:t[0]||=e=>R(i).onOpenChange(!1),onEscapeKeyDown:t[1]||=e=>r(`escapeKeyDown`,e),onFocusOutside:t[2]||=e=>r(`focusOutside`,e),onInteractOutside:t[3]||=e=>r(`interactOutside`,e),onPointerDownOutside:t[4]||=e=>r(`pointerDownOutside`,e)}),{default:H(()=>[W(e.$slots,`default`)]),_:3},16,[`id`,`as`,`as-child`,`disable-outside-pointer-events`,`aria-describedby`,`aria-labelledby`,`data-state`])]),_:3},8,[`trapped`]))}}),lx=U({__name:`DialogContentModal`,props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=t,i=Ab(),a=Zy(r),{forwardRef:o,currentElement:s}=nb();return mb(s),(e,t)=>(G(),K(cx,sl({...n,...R(a)},{ref:R(o),"trap-focus":R(i).open.value,"disable-outside-pointer-events":!0,onCloseAutoFocus:t[0]||=e=>{e.defaultPrevented||(e.preventDefault(),R(i).triggerElement.value?.focus())},onPointerDownOutside:t[1]||=e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()},onFocusOutside:t[2]||=e=>{e.preventDefault()}}),{default:H(()=>[W(e.$slots,`default`)]),_:3},16,[`trap-focus`]))}}),ux=U({__name:`DialogContentNonModal`,props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=Zy(t);nb();let i=Ab(),a=L(!1),o=L(!1);return(e,t)=>(G(),K(cx,sl({...n,...R(r)},{"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:t[0]||=e=>{e.defaultPrevented||(a.value||R(i).triggerElement.value?.focus(),e.preventDefault()),a.value=!1,o.value=!1},onInteractOutside:t[1]||=e=>{e.defaultPrevented||(a.value=!0,e.detail.originalEvent.type===`pointerdown`&&(o.value=!0));let t=e.target;R(i).triggerElement.value?.contains(t)&&e.preventDefault(),e.detail.originalEvent.type===`focusin`&&o.value&&e.preventDefault()}}),{default:H(()=>[W(e.$slots,`default`)]),_:3},16))}}),dx=U({__name:`DialogContent`,props:{forceMount:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=t,i=Ab(),a=Zy(r),{forwardRef:o}=nb();return(e,t)=>(G(),K(R(xb),{present:e.forceMount||R(i).open.value},{default:H(()=>[R(i).modal.value?(G(),K(lx,sl({key:0,ref:R(o)},{...n,...R(a),...e.$attrs}),{default:H(()=>[W(e.$slots,`default`)]),_:3},16)):(G(),K(ux,sl({key:1,ref:R(o)},{...n,...R(a),...e.$attrs}),{default:H(()=>[W(e.$slots,`default`)]),_:3},16))]),_:3},8,[`present`]))}}),fx=U({__name:`DialogDescription`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`p`}},setup(e){let t=e;nb();let n=Ab();return(e,r)=>(G(),K(R(wb),sl(t,{id:R(n).descriptionId}),{default:H(()=>[W(e.$slots,`default`)]),_:3},16,[`id`]))}}),px=U({__name:`DialogOverlayImpl`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=Ab();return qy(!0),nb(),(e,n)=>(G(),K(R(wb),{as:e.as,"as-child":e.asChild,"data-state":R(t).open.value?`open`:`closed`,style:{"pointer-events":`auto`}},{default:H(()=>[W(e.$slots,`default`)]),_:3},8,[`as`,`as-child`,`data-state`]))}}),mx=U({__name:`DialogOverlay`,props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=Ab(),{forwardRef:n}=nb();return(e,r)=>R(t)?.modal.value?(G(),K(R(xb),{key:0,present:e.forceMount||R(t).open.value},{default:H(()=>[J(px,sl(e.$attrs,{ref:R(n),as:e.as,"as-child":e.asChild}),{default:H(()=>[W(e.$slots,`default`)]),_:3},16,[`as`,`as-child`])]),_:3},8,[`present`])):rl(`v-if`,!0)}}),hx=U({__name:`Teleport`,props:{to:{type:null,required:!1,default:`body`},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){let t=dv();return(e,n)=>R(t)||e.forceMount?(G(),K(zi,{key:0,to:e.to,disabled:e.disabled,defer:e.defer},[W(e.$slots,`default`)],8,[`to`,`disabled`,`defer`])):rl(`v-if`,!0)}}),gx=U({__name:`DialogPortal`,props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){let t=e;return(e,n)=>(G(),K(R(hx),Te(Qc(t)),{default:H(()=>[W(e.$slots,`default`)]),_:3},16))}}),_x=U({__name:`DialogTitle`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`h2`}},setup(e){let t=e,n=Ab();return nb(),(e,r)=>(G(),K(R(wb),sl(t,{id:R(n).titleId}),{default:H(()=>[W(e.$slots,`default`)]),_:3},16,[`id`]))}}),vx=U({__name:`DialogTrigger`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`}},setup(e){let t=e,n=Ab(),{forwardRef:r,currentElement:i}=nb();return n.contentId||=gb(void 0,`reka-dialog-content`),Xa(()=>{n.triggerElement.value=i.value}),(e,i)=>(G(),K(R(wb),sl(t,{ref:R(r),type:e.as===`button`?`button`:void 0,"aria-haspopup":`dialog`,"aria-expanded":R(n).open.value||!1,"aria-controls":R(n).open.value?R(n).contentId:void 0,"data-state":R(n).open.value?`open`:`closed`,onClick:R(n).onOpenToggle}),{default:H(()=>[W(e.$slots,`default`)]),_:3},16,[`type`,`aria-expanded`,`aria-controls`,`data-state`,`onClick`]))}}),yx=`data-reka-collection-item`;function bx(e={}){let{key:t=``,isProvider:n=!1}=e,r=`${t}CollectionProvider`,i;n?(i={collectionRef:L(),itemMap:L(new Map)},gi(r,i)):i=_i(r);let a=(e=!1)=>{let t=i.collectionRef.value;if(!t)return[];let n=Array.from(t.querySelectorAll(`[${yx}]`)),r=Array.from(i.itemMap.value.values()).sort((e,t)=>n.indexOf(e.ref)-n.indexOf(t.ref));return e?r:r.filter(e=>e.ref.dataset.disabled!==``)},o=U({name:`CollectionSlot`,inheritAttrs:!1,setup(e,{slots:t,attrs:n}){let{primitiveElement:r,currentElement:a}=Tb();return wi(a,()=>{i.collectionRef.value=a.value}),()=>zl(Sb,{ref:r,...n},t)}}),s=U({name:`CollectionItem`,inheritAttrs:!1,props:{value:{validator:()=>!0}},setup(e,{slots:t,attrs:n}){let{primitiveElement:r,currentElement:a}=Tb();return xi(t=>{if(a.value){let n=En(a.value);i.itemMap.value.set(n,{ref:a.value,value:e.value}),t(()=>i.itemMap.value.delete(n))}}),()=>zl(Sb,{...n,[yx]:``,ref:r},t)}});return{getItems:a,reactiveItems:Y(()=>Array.from(i.itemMap.value.values())),itemMapSize:Y(()=>i.itemMap.value.size),CollectionSlot:o,CollectionItem:s}}var xx=U({__name:`VisuallyHidden`,props:{feature:{type:String,required:!1,default:`focusable`},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`span`}},setup(e){return(e,t)=>(G(),K(R(wb),{as:e.as,"as-child":e.asChild,"aria-hidden":e.feature===`focusable`?`true`:void 0,"data-hidden":e.feature===`fully-hidden`?``:void 0,tabindex:e.feature===`fully-hidden`?`-1`:void 0,style:{position:`absolute`,border:0,width:`1px`,height:`1px`,padding:0,margin:`-1px`,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,clipPath:`inset(50%)`,whiteSpace:`nowrap`,wordWrap:`normal`,top:`-1px`,left:`-1px`}},{default:H(()=>[W(e.$slots,`default`)]),_:3},8,[`as`,`as-child`,`aria-hidden`,`data-hidden`,`tabindex`]))}}),Sx=U({inheritAttrs:!1,__name:`VisuallyHiddenInputBubble`,props:{name:{type:String,required:!0},value:{type:null,required:!0},checked:{type:Boolean,required:!1,default:void 0},required:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},feature:{type:String,required:!1,default:`fully-hidden`}},setup(e){let t=e,{primitiveElement:n,currentElement:r}=Tb();return wi(Y(()=>t.checked??t.value),(e,t)=>{if(!r.value)return;let n=r.value,i=window.HTMLInputElement.prototype,a=Object.getOwnPropertyDescriptor(i,`value`).set;if(a&&e!==t){let t=new Event(`input`,{bubbles:!0}),r=new Event(`change`,{bubbles:!0});a.call(n,e),n.dispatchEvent(t),n.dispatchEvent(r)}}),(e,r)=>(G(),K(xx,sl({ref_key:`primitiveElement`,ref:n},{...t,...e.$attrs},{as:`input`}),null,16))}}),Cx=U({inheritAttrs:!1,__name:`VisuallyHiddenInput`,props:{name:{type:String,required:!0},value:{type:null,required:!0},checked:{type:Boolean,required:!1,default:void 0},required:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},feature:{type:String,required:!1,default:`fully-hidden`}},setup(e){let t=e,n=Y(()=>typeof t.value==`object`&&Array.isArray(t.value)&&t.value.length===0&&t.required),r=Y(()=>typeof t.value==`string`||typeof t.value==`number`||typeof t.value==`boolean`||t.value===null||t.value===void 0?[{name:t.name,value:t.value}]:typeof t.value==`object`&&Array.isArray(t.value)?t.value.flatMap((e,n)=>typeof e==`object`?Object.entries(e).map(([e,r])=>({name:`${t.name}[${n}][${e}]`,value:r})):{name:`${t.name}[${n}]`,value:e}):t.value!==null&&typeof t.value==`object`&&!Array.isArray(t.value)?Object.entries(t.value).map(([e,n])=>({name:`${t.name}[${e}]`,value:n})):[]);return(e,i)=>(G(),Uc(Nc,null,[rl(` We render single input if it's required `),n.value?(G(),K(Sx,sl({key:e.name},{...t,...e.$attrs},{name:e.name,value:e.value}),null,16,[`name`,`value`])):(G(!0),Uc(Nc,{key:1},mo(r.value,n=>(G(),K(Sx,sl({key:n.name},{ref_for:!0},{...t,...e.$attrs},{name:n.name,value:n.value}),null,16,[`name`,`value`]))),128))],2112))}}),wx=`rovingFocusGroup.onEntryFocus`,Tx={bubbles:!1,cancelable:!0},Ex={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function Dx(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}function Ox(e,t,n){let r=Dx(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return Ex[r]}function kx(e,t=!1){let n=Fy();for(let r of e)if(r===n||(r.focus({preventScroll:t}),Fy()!==n))return}function Ax(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var[jx,Mx]=Py(`PopperRoot`),Nx=U({inheritAttrs:!1,__name:`PopperRoot`,setup(e){let t=L();return Mx({anchor:t,onAnchorChange:e=>t.value=e}),(e,t)=>W(e.$slots,`default`)}}),Px=U({__name:`PopperAnchor`,props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e,{forwardRef:n,currentElement:r}=nb(),i=jx();return Si(()=>{i.onAnchorChange(t.reference??r.value)}),(e,t)=>(G(),K(R(wb),{ref:R(n),as:e.as,"as-child":e.asChild},{default:H(()=>[W(e.$slots,`default`)]),_:3},8,[`as`,`as-child`]))}});function Fx(e){return e!==null}function Ix(e){return{name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=Lx(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}}}function Lx(e){let[t,n=`center`]=e.split(`-`);return[t,n]}var Rx=[`top`,`right`,`bottom`,`left`],zx=Math.min,Bx=Math.max,Vx=Math.round,Hx=Math.floor,Ux=e=>({x:e,y:e}),Wx={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Gx(e,t,n){return Bx(e,zx(t,n))}function Kx(e,t){return typeof e==`function`?e(t):e}function qx(e){return e.split(`-`)[0]}function Jx(e){return e.split(`-`)[1]}function Yx(e){return e===`x`?`y`:`x`}function Xx(e){return e===`y`?`height`:`width`}function Zx(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Qx(e){return Yx(Zx(e))}function $x(e,t,n){n===void 0&&(n=!1);let r=Jx(e),i=Qx(e),a=Xx(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=cS(o)),[o,cS(o)]}function eS(e){let t=cS(e);return[tS(e),t,tS(t)]}function tS(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var nS=[`left`,`right`],rS=[`right`,`left`],iS=[`top`,`bottom`],aS=[`bottom`,`top`];function oS(e,t,n){switch(e){case`top`:case`bottom`:return n?t?rS:nS:t?nS:rS;case`left`:case`right`:return t?iS:aS;default:return[]}}function sS(e,t,n,r){let i=Jx(e),a=oS(qx(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(tS)))),a}function cS(e){let t=qx(e);return Wx[t]+e.slice(t.length)}function lS(e){return{top:0,right:0,bottom:0,left:0,...e}}function uS(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:lS(e)}function dS(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function fS(e,t,n){let{reference:r,floating:i}=e,a=Zx(t),o=Qx(t),s=Xx(o),c=qx(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(Jx(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function pS(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=Kx(t,e),p=uS(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=dS(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=dS(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var mS=50,hS=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:pS},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=fS(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<mS&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=fS(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},gS=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=Kx(e,t)||{};if(l==null)return{};let d=uS(u),f={x:n,y:r},p=Qx(i),m=Xx(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=zx(d[_],T),D=zx(d[v],T),O=E,k=C-h[m]-D,ee=C/2-h[m]/2+w,A=Gx(O,ee,k),te=!c.arrow&&Jx(i)!=null&&ee!==A&&a.reference[m]/2-(ee<O?E:D)-h[m]/2<0,ne=te?ee<O?ee-O:ee-k:0;return{[p]:f[p]+ne,data:{[p]:A,centerOffset:ee-A-ne,...te&&{alignmentOffset:ne}},reset:te}}}),_S=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=Kx(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=qx(r),_=Zx(o),v=qx(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[cS(o)]:eS(o)),x=p!==`none`;!d&&x&&b.push(...sS(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=$x(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==Zx(t))||T.every(e=>Zx(e.placement)===_?e.overflows[0]>0:!0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=Zx(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function vS(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function yS(e){return Rx.some(t=>e[t]>=0)}var bS=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=Kx(e,t);switch(i){case`referenceHidden`:{let e=vS(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:yS(e)}}}case`escaped`:{let e=vS(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:yS(e)}}}default:return{}}}}},xS=new Set([`left`,`top`]);async function SS(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=qx(n),s=Jx(n),c=Zx(n)===`y`,l=xS.has(o)?-1:1,u=a&&c?-1:1,d=Kx(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var CS=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await SS(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},wS=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Kx(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=Zx(qx(i)),p=Yx(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=Gx(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=Gx(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},TS=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=Kx(e,t),u={x:n,y:r},d=Zx(i),f=Yx(d),p=u[f],m=u[d],h=Kx(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=xS.has(qx(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},ES=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=Kx(e,t),u=await o.detectOverflow(t,l),d=qx(i),f=Jx(i),p=Zx(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=zx(h-u[g],v),x=zx(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=Bx(u.left,0),t=Bx(u.right,0),n=Bx(u.top,0),r=Bx(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:Bx(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:Bx(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function DS(){return typeof window<`u`}function OS(e){return jS(e)?(e.nodeName||``).toLowerCase():`#document`}function kS(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function AS(e){return((jS(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function jS(e){return DS()?e instanceof Node||e instanceof kS(e).Node:!1}function MS(e){return DS()?e instanceof Element||e instanceof kS(e).Element:!1}function NS(e){return DS()?e instanceof HTMLElement||e instanceof kS(e).HTMLElement:!1}function PS(e){return!DS()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof kS(e).ShadowRoot}function FS(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=KS(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function IS(e){return/^(table|td|th)$/.test(OS(e))}function LS(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var RS=/transform|translate|scale|rotate|perspective|filter/,zS=/paint|layout|strict|content/,BS=e=>!!e&&e!==`none`,VS;function HS(e){let t=MS(e)?KS(e):e;return BS(t.transform)||BS(t.translate)||BS(t.scale)||BS(t.rotate)||BS(t.perspective)||!WS()&&(BS(t.backdropFilter)||BS(t.filter))||RS.test(t.willChange||``)||zS.test(t.contain||``)}function US(e){let t=JS(e);for(;NS(t)&&!GS(t);){if(HS(t))return t;if(LS(t))return null;t=JS(t)}return null}function WS(){return VS??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),VS}function GS(e){return/^(html|body|#document)$/.test(OS(e))}function KS(e){return kS(e).getComputedStyle(e)}function qS(e){return MS(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function JS(e){if(OS(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||PS(e)&&e.host||AS(e);return PS(t)?t.host:t}function YS(e){let t=JS(e);return GS(t)?e.ownerDocument?e.ownerDocument.body:e.body:NS(t)&&FS(t)?t:YS(t)}function XS(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=YS(e),i=r===e.ownerDocument?.body,a=kS(r);if(i){let e=ZS(a);return t.concat(a,a.visualViewport||[],FS(r)?r:[],e&&n?XS(e):[])}else return t.concat(r,XS(r,[],n))}function ZS(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function QS(e){let t=KS(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=NS(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Vx(n)!==a||Vx(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function $S(e){return MS(e)?e:e.contextElement}function eC(e){let t=$S(e);if(!NS(t))return Ux(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=QS(t),o=(a?Vx(n.width):n.width)/r,s=(a?Vx(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var tC=Ux(0);function nC(e){let t=kS(e);return!WS()||!t.visualViewport?tC:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function rC(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==kS(e)?!1:t}function iC(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=$S(e),o=Ux(1);t&&(r?MS(r)&&(o=eC(r)):o=eC(e));let s=rC(a,n,r)?nC(a):Ux(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=kS(a),t=r&&MS(r)?kS(r):r,n=e,i=ZS(n);for(;i&&r&&t!==n;){let e=eC(i),t=i.getBoundingClientRect(),r=KS(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=kS(i),i=ZS(n)}}return dS({width:u,height:d,x:c,y:l})}function aC(e,t){let n=qS(e).scrollLeft;return t?t.left+n:iC(AS(e)).left+n}function oC(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-aC(e,n),y:n.top+t.scrollTop}}function sC(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=AS(r),s=t?LS(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=Ux(1),u=Ux(0),d=NS(r);if((d||!d&&!a)&&((OS(r)!==`body`||FS(o))&&(c=qS(r)),d)){let e=iC(r);l=eC(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?oC(o,c):Ux(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function cC(e){return Array.from(e.getClientRects())}function lC(e){let t=AS(e),n=qS(e),r=e.ownerDocument.body,i=Bx(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Bx(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+aC(e),s=-n.scrollTop;return KS(r).direction===`rtl`&&(o+=Bx(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var uC=25;function dC(e,t){let n=kS(e),r=AS(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=WS();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=aC(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=uC&&(a-=o)}else l<=uC&&(a+=l);return{width:a,height:o,x:s,y:c}}function fC(e,t){let n=iC(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=NS(e)?eC(e):Ux(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function pC(e,t,n){let r;if(t===`viewport`)r=dC(e,n);else if(t===`document`)r=lC(AS(e));else if(MS(t))r=fC(t,n);else{let n=nC(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return dS(r)}function mC(e,t){let n=JS(e);return n===t||!MS(n)||GS(n)?!1:KS(n).position===`fixed`||mC(n,t)}function hC(e,t){let n=t.get(e);if(n)return n;let r=XS(e,[],!1).filter(e=>MS(e)&&OS(e)!==`body`),i=null,a=KS(e).position===`fixed`,o=a?JS(e):e;for(;MS(o)&&!GS(o);){let t=KS(o),n=HS(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||FS(o)&&!n&&mC(e,o))?r=r.filter(e=>e!==o):i=t,o=JS(o)}return t.set(e,r),r}function gC(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?LS(t)?[]:hC(t,this._c):[].concat(n),r],o=pC(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=pC(t,a[e],i);s=Bx(n.top,s),c=zx(n.right,c),l=zx(n.bottom,l),u=Bx(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function _C(e){let{width:t,height:n}=QS(e);return{width:t,height:n}}function vC(e,t,n){let r=NS(t),i=AS(t),a=n===`fixed`,o=iC(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=Ux(0);function l(){c.x=aC(i)}if(r||!r&&!a)if((OS(t)!==`body`||FS(i))&&(s=qS(t)),r){let e=iC(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();a&&!r&&i&&l();let u=i&&!r&&!a?oC(i,s):Ux(0);return{x:o.left+s.scrollLeft-c.x-u.x,y:o.top+s.scrollTop-c.y-u.y,width:o.width,height:o.height}}function yC(e){return KS(e).position===`static`}function bC(e,t){if(!NS(e)||KS(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return AS(e)===n&&(n=n.ownerDocument.body),n}function xC(e,t){let n=kS(e);if(LS(e))return n;if(!NS(e)){let t=JS(e);for(;t&&!GS(t);){if(MS(t)&&!yC(t))return t;t=JS(t)}return n}let r=bC(e,t);for(;r&&IS(r)&&yC(r);)r=bC(r,t);return r&&GS(r)&&yC(r)&&!HS(r)?n:r||US(e)||n}var SC=async function(e){let t=this.getOffsetParent||xC,n=this.getDimensions,r=await n(e.floating);return{reference:vC(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function CC(e){return KS(e).direction===`rtl`}var wC={convertOffsetParentRelativeRectToViewportRelativeRect:sC,getDocumentElement:AS,getClippingRect:gC,getOffsetParent:xC,getElementRects:SC,getClientRects:cC,getDimensions:_C,getScale:eC,isElement:MS,isRTL:CC};function TC(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function EC(e,t){let n=null,r,i=AS(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(s||t(),!f||!p)return;let m=Hx(d),h=Hx(i.clientWidth-(u+f)),g=Hx(i.clientHeight-(d+p)),_=Hx(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:Bx(0,zx(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(n!==c){if(!y)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!TC(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function DC(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=$S(e),u=i||a?[...l?XS(l):[],...t?XS(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?EC(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?iC(e):null;c&&g();function g(){let t=iC(e);h&&!TC(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var OC=CS,kC=wS,AC=_S,jC=ES,MC=bS,NC=gS,PC=TS,FC=(e,t,n)=>{let r=new Map,i={platform:wC,...n},a={...i.platform,_c:r};return hS(e,t,{...i,platform:a})};function IC(e){return typeof e==`object`&&!!e&&`$el`in e}function LC(e){if(IC(e)){let t=e.$el;return jS(t)&&OS(t)===`#comment`?null:t}return e}function RC(e){return typeof e==`function`?e():R(e)}function zC(e){return{name:`arrow`,options:e,fn(t){let n=LC(RC(e.element));return n==null?{}:NC({element:n,padding:e.padding}).fn(t)}}}function BC(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function VC(e,t){let n=BC(e);return Math.round(t*n)/n}function HC(e,t,n){n===void 0&&(n={});let r=n.whileElementsMounted,i=Y(()=>RC(n.open)??!0),a=Y(()=>RC(n.middleware)),o=Y(()=>RC(n.placement)??`bottom`),s=Y(()=>RC(n.strategy)??`absolute`),c=Y(()=>RC(n.transform)??!0),l=Y(()=>LC(e.value)),u=Y(()=>LC(t.value)),d=L(0),f=L(0),p=L(s.value),m=L(o.value),h=An({}),g=L(!1),_=Y(()=>{let e={position:p.value,left:`0`,top:`0`};if(!u.value)return e;let t=VC(u.value,d.value),n=VC(u.value,f.value);return c.value?{...e,transform:`translate(`+t+`px, `+n+`px)`,...BC(u.value)>=1.5&&{willChange:`transform`}}:{position:p.value,left:t+`px`,top:n+`px`}}),v;function y(){if(l.value==null||u.value==null)return;let e=i.value;FC(l.value,u.value,{middleware:a.value,placement:o.value,strategy:s.value}).then(t=>{d.value=t.x,f.value=t.y,p.value=t.strategy,m.value=t.placement,h.value=t.middlewareData,g.value=e!==!1})}function b(){typeof v==`function`&&(v(),v=void 0)}function x(){if(b(),r===void 0){y();return}if(l.value!=null&&u.value!=null){v=r(l.value,u.value,y);return}}function S(){i.value||(g.value=!1)}return wi([a,o,s,i],y,{flush:`sync`}),wi([l,u],x,{flush:`sync`}),wi(i,S,{flush:`sync`}),Qe()&&$e(b),{x:bn(d),y:bn(f),strategy:bn(p),placement:bn(m),middlewareData:bn(h),isPositioned:bn(g),floatingStyles:_,update:y}}var UC={side:`bottom`,sideOffset:0,sideFlip:!0,align:`center`,alignOffset:0,alignFlip:!0,arrowPadding:0,hideShiftedArrow:!0,avoidCollisions:!0,collisionBoundary:()=>[],collisionPadding:0,sticky:`partial`,hideWhenDetached:!1,positionStrategy:`fixed`,updatePositionStrategy:`optimized`,prioritizePosition:!1},[WC,GC]=Py(`PopperContent`),KC=U({inheritAttrs:!1,__name:`PopperContent`,props:zo({side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},{...UC}),emits:[`placed`],setup(e,{emit:t}){let n=e,r=t,i=jx(),{forwardRef:a,currentElement:o}=nb(),s=L(),c=L(),{width:l,height:u}=_b(c),d=Y(()=>n.side+(n.align===`center`?``:`-${n.align}`)),f=Y(()=>typeof n.collisionPadding==`number`?n.collisionPadding:{top:0,right:0,bottom:0,left:0,...n.collisionPadding}),p=Y(()=>Array.isArray(n.collisionBoundary)?n.collisionBoundary:[n.collisionBoundary]),m=Y(()=>({padding:f.value,boundary:p.value.filter(Fx),altBoundary:p.value.length>0})),h=Y(()=>({mainAxis:n.sideFlip,crossAxis:n.alignFlip})),g=j_(()=>[OC({mainAxis:n.sideOffset+u.value,alignmentAxis:n.alignOffset}),n.prioritizePosition&&n.avoidCollisions&&AC({...m.value,...h.value}),n.avoidCollisions&&kC({mainAxis:!0,crossAxis:!!n.prioritizePosition,limiter:n.sticky===`partial`?PC():void 0,...m.value}),!n.prioritizePosition&&n.avoidCollisions&&AC({...m.value,...h.value}),jC({...m.value,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--reka-popper-available-width`,`${n}px`),o.setProperty(`--reka-popper-available-height`,`${r}px`),o.setProperty(`--reka-popper-anchor-width`,`${i}px`),o.setProperty(`--reka-popper-anchor-height`,`${a}px`)}}),c.value&&zC({element:c.value,padding:n.arrowPadding}),Ix({arrowWidth:l.value,arrowHeight:u.value}),n.hideWhenDetached&&MC({strategy:`referenceHidden`,...m.value})]),{floatingStyles:_,placement:v,isPositioned:y,middlewareData:b,update:x}=HC(Y(()=>n.reference??i.anchor.value),s,{strategy:n.positionStrategy,placement:d,whileElementsMounted:(...e)=>DC(...e,{layoutShift:!n.disableUpdateOnLayoutShift,animationFrame:n.updatePositionStrategy===`always`}),middleware:g}),S=Y(()=>Lx(v.value)[0]),C=Y(()=>Lx(v.value)[1]);Si(()=>{y.value&&r(`placed`)});let w=Y(()=>{let e=b.value.arrow?.centerOffset!==0;return n.hideShiftedArrow&&e}),T=L(``);return xi(()=>{o.value&&(T.value=window.getComputedStyle(o.value).zIndex)}),GC({placedSide:S,onArrowChange:e=>c.value=e,arrowX:Y(()=>b.value.arrow?.x??0),arrowY:Y(()=>b.value.arrow?.y??0),shouldHideArrow:w}),(e,t)=>(G(),Uc(`div`,{ref_key:`floatingRef`,ref:s,"data-reka-popper-content-wrapper":``,style:ve({...R(_),transform:R(y)?R(_).transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:T.value,"--reka-popper-transform-origin":[R(b).transformOrigin?.x,R(b).transformOrigin?.y].join(` `),...R(b).hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}})},[J(R(wb),sl({ref:R(a)},e.$attrs,{"as-child":n.asChild,as:e.as,"data-side":S.value,"data-align":C.value,style:{animation:R(y)?void 0:`none`}}),{default:H(()=>[W(e.$slots,`default`)]),_:3},16,[`as-child`,`as`,`data-side`,`data-align`,`style`])],4))}}),[qC,JC]=Py(`RovingFocusGroup`),YC=U({__name:`RovingFocusGroup`,props:{orientation:{type:String,required:!1,default:void 0},dir:{type:String,required:!1},loop:{type:Boolean,required:!1,default:!1},currentTabStopId:{type:[String,null],required:!1},defaultCurrentTabStopId:{type:String,required:!1},preventScrollOnEntryFocus:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`entryFocus`,`update:currentTabStopId`],setup(e,{expose:t,emit:n}){let r=e,i=n,{loop:a,orientation:o,dir:s}=Rn(r),c=Xy(s),l=zv(r,`currentTabStopId`,i,{defaultValue:r.defaultCurrentTabStopId,passive:r.currentTabStopId===void 0}),u=L(!1),d=L(!1),f=L(0),{getItems:p,CollectionSlot:m}=bx({isProvider:!0});function h(e){let t=!d.value;if(e.currentTarget&&e.target===e.currentTarget&&t&&!u.value){let t=new CustomEvent(wx,Tx);if(e.currentTarget.dispatchEvent(t),i(`entryFocus`,t),!t.defaultPrevented){let e=p().map(e=>e.ref).filter(e=>e.dataset.disabled!==``);kx([e.find(e=>e.getAttribute(`data-active`)===``),e.find(e=>e.getAttribute(`data-highlighted`)===``),e.find(e=>e.id===l.value),...e].filter(Boolean),r.preventScrollOnEntryFocus)}}d.value=!1}function g(){setTimeout(()=>{d.value=!1},1)}return t({getItems:p}),JC({loop:a,dir:c,orientation:o,currentTabStopId:l,onItemFocus:e=>{l.value=e},onItemShiftTab:()=>{u.value=!0},onFocusableItemAdd:()=>{f.value++},onFocusableItemRemove:()=>{f.value--}}),(e,t)=>(G(),K(R(m),null,{default:H(()=>[J(R(wb),{tabindex:u.value||f.value===0?-1:0,"data-orientation":R(o),as:e.as,"as-child":e.asChild,dir:R(c),style:{outline:`none`},onMousedown:t[0]||=e=>d.value=!0,onMouseup:g,onFocus:h,onBlur:t[1]||=e=>u.value=!1},{default:H(()=>[W(e.$slots,`default`)]),_:3},8,[`tabindex`,`data-orientation`,`as`,`as-child`,`dir`])]),_:3}))}}),XC=U({__name:`RovingFocusItem`,props:{tabStopId:{type:String,required:!1},focusable:{type:Boolean,required:!1,default:!0},active:{type:Boolean,required:!1},allowShiftKey:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`span`}},setup(e){let t=e,n=qC(),r=gb(),i=Y(()=>t.tabStopId||r),a=Y(()=>n.currentTabStopId.value===i.value),{getItems:o,CollectionItem:s}=bx();Xa(()=>{t.focusable&&n.onFocusableItemAdd()}),eo(()=>{t.focusable&&n.onFocusableItemRemove()});function c(e){if(e.key===`Tab`&&e.shiftKey){n.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let r=Ox(e,n.orientation.value,n.dir.value);if(r!==void 0){if(e.metaKey||e.ctrlKey||e.altKey||!t.allowShiftKey&&e.shiftKey)return;e.preventDefault();let i=[...o().map(e=>e.ref).filter(e=>e.dataset.disabled!==``)];if(r===`last`)i.reverse();else if(r===`prev`||r===`next`){r===`prev`&&i.reverse();let t=i.indexOf(e.currentTarget);i=n.loop.value?Ax(i,t+1):i.slice(t+1)}wr(()=>kx(i))}}return(e,t)=>(G(),K(R(s),null,{default:H(()=>[J(R(wb),{tabindex:a.value?0:-1,"data-orientation":R(n).orientation.value,"data-active":e.active?``:void 0,"data-disabled":e.focusable?void 0:``,as:e.as,"as-child":e.asChild,onMousedown:t[0]||=t=>{e.focusable?R(n).onItemFocus(i.value):t.preventDefault()},onFocus:t[1]||=e=>R(n).onItemFocus(i.value),onKeydown:c},{default:H(()=>[W(e.$slots,`default`)]),_:3},8,[`tabindex`,`data-orientation`,`data-active`,`data-disabled`,`as`,`as-child`])]),_:3}))}});function ZC(e=[],t,n){let r=[...e];return r[n]=t,r.sort((e,t)=>e-t)}function QC(e,t,n){return Ny(100/(n-t)*(e-t),0,100)}function $C(e,t){if(t>2)return`Value ${e+1} of ${t}`;if(t===2)return[`Minimum`,`Maximum`][e]}function ew(e,t){if(e.length===1)return 0;let n=e.map(e=>Math.abs(e-t)),r=Math.min(...n);return n.indexOf(r)}function tw(e,t,n){let r=e/2;return(r-iw([0,50],[0,r])(t)*n)*n}function nw(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function rw(e,t){if(t>0){let n=nw(e);return Math.min(...n)>=t}return!0}function iw(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function aw(e){return(String(e).split(`.`)[1]||``).length}function ow(e,t){let n=10**t;return Math.round(e*n)/n}var sw=[`PageUp`,`PageDown`],cw=[`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`],lw={"from-left":[`Home`,`PageDown`,`ArrowDown`,`ArrowLeft`],"from-right":[`Home`,`PageDown`,`ArrowDown`,`ArrowRight`],"from-bottom":[`Home`,`PageDown`,`ArrowDown`,`ArrowLeft`],"from-top":[`Home`,`PageUp`,`ArrowUp`,`ArrowLeft`]},[uw,dw]=Py([`SliderVertical`,`SliderHorizontal`]),fw=U({__name:`SliderHorizontal`,props:{dir:{type:String,required:!1},min:{type:Number,required:!0},max:{type:Number,required:!0},inverted:{type:Boolean,required:!0}},emits:[`slideEnd`,`slideStart`,`slideMove`,`homeKeyDown`,`endKeyDown`,`stepKeyDown`],setup(e,{emit:t}){let n=e,r=t,{max:i,min:a,dir:o,inverted:s}=Rn(n),{forwardRef:c,currentElement:l}=nb(),u=mw(),d=L(),f=L(),p=Y(()=>o?.value!==`rtl`&&!s.value||o?.value!==`ltr`&&s.value);function m(e,t){let n=f.value||l.value.getBoundingClientRect(),r=[...u.thumbElements.value][u.valueIndexToChangeRef.value],o=u.thumbAlignment.value===`contain`?r.clientWidth:0;!d.value&&!t&&u.thumbAlignment.value===`contain`&&(d.value=e.clientX-r.getBoundingClientRect().left);let s=iw([0,n.width-o],p.value?[a.value,i.value]:[i.value,a.value]);return f.value=n,s(t?e.clientX-n.left-o/2:e.clientX-n.left-(d.value??0))}return dw({startEdge:Y(()=>p.value?`left`:`right`),endEdge:Y(()=>p.value?`right`:`left`),direction:Y(()=>p.value?1:-1),size:`width`}),(e,t)=>(G(),K(_w,{ref:R(c),dir:R(o),"data-orientation":`horizontal`,style:ve({"--reka-slider-thumb-transform":!p.value&&R(u).thumbAlignment.value===`overflow`?`translateX(50%)`:`translateX(-50%)`}),onSlideStart:t[0]||=e=>{r(`slideStart`,m(e,!0))},onSlideMove:t[1]||=e=>{r(`slideMove`,m(e))},onSlideEnd:t[2]||=()=>{f.value=void 0,d.value=void 0,r(`slideEnd`)},onStepKeyDown:t[3]||=e=>{let t=p.value?`from-left`:`from-right`;r(`stepKeyDown`,e,R(lw)[t].includes(e.key)?-1:1)},onEndKeyDown:t[4]||=e=>r(`endKeyDown`,e),onHomeKeyDown:t[5]||=e=>r(`homeKeyDown`,e)},{default:H(()=>[W(e.$slots,`default`)]),_:3},8,[`dir`,`style`]))}}),pw=U({__name:`SliderVertical`,props:{min:{type:Number,required:!0},max:{type:Number,required:!0},inverted:{type:Boolean,required:!0}},emits:[`slideEnd`,`slideStart`,`slideMove`,`homeKeyDown`,`endKeyDown`,`stepKeyDown`],setup(e,{emit:t}){let n=e,r=t,{max:i,min:a,inverted:o}=Rn(n),s=mw(),{forwardRef:c,currentElement:l}=nb(),u=L(),d=L(),f=Y(()=>!o.value);function p(e,t){let n=d.value||l.value.getBoundingClientRect(),r=[...s.thumbElements.value][s.valueIndexToChangeRef.value],o=s.thumbAlignment.value===`contain`?r.clientHeight:0;!u.value&&!t&&s.thumbAlignment.value===`contain`&&(u.value=e.clientY-r.getBoundingClientRect().top);let c=iw([0,n.height-o],f.value?[i.value,a.value]:[a.value,i.value]),p=t?e.clientY-n.top-o/2:e.clientY-n.top-(u.value??0);return d.value=n,c(p)}return dw({startEdge:Y(()=>f.value?`bottom`:`top`),endEdge:Y(()=>f.value?`top`:`bottom`),direction:Y(()=>f.value?1:-1),size:`height`}),(e,t)=>(G(),K(_w,{ref:R(c),"data-orientation":`vertical`,style:ve({"--reka-slider-thumb-transform":!f.value&&R(s).thumbAlignment.value===`overflow`?`translateY(-50%)`:`translateY(50%)`}),onSlideStart:t[0]||=e=>{r(`slideStart`,p(e,!0))},onSlideMove:t[1]||=e=>{r(`slideMove`,p(e))},onSlideEnd:t[2]||=()=>{d.value=void 0,u.value=void 0,r(`slideEnd`)},onStepKeyDown:t[3]||=e=>{let t=f.value?`from-bottom`:`from-top`;r(`stepKeyDown`,e,R(lw)[t].includes(e.key)?-1:1)},onEndKeyDown:t[4]||=e=>r(`endKeyDown`,e),onHomeKeyDown:t[5]||=e=>r(`homeKeyDown`,e)},{default:H(()=>[W(e.$slots,`default`)]),_:3},8,[`style`]))}}),[mw,hw]=Py(`SliderRoot`),gw=U({inheritAttrs:!1,__name:`SliderRoot`,props:{defaultValue:{type:Array,required:!1,default:()=>[0]},modelValue:{type:[Array,null],required:!1},disabled:{type:Boolean,required:!1,default:!1},orientation:{type:String,required:!1,default:`horizontal`},dir:{type:String,required:!1},inverted:{type:Boolean,required:!1,default:!1},min:{type:Number,required:!1,default:0},max:{type:Number,required:!1,default:100},step:{type:Number,required:!1,default:1},minStepsBetweenThumbs:{type:Number,required:!1,default:0},thumbAlignment:{type:String,required:!1,default:`contain`},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`span`},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:[`update:modelValue`,`valueCommit`],setup(e,{emit:t}){let n=e,r=t,{min:i,max:a,step:o,minStepsBetweenThumbs:s,orientation:c,disabled:l,thumbAlignment:u,dir:d}=Rn(n),f=Xy(d),{forwardRef:p,currentElement:m}=nb(),h=tb(m),{CollectionSlot:g}=bx({isProvider:!0}),_=zv(n,`modelValue`,r,{defaultValue:n.defaultValue,passive:n.modelValue===void 0}),v=Y(()=>Array.isArray(_.value)?[..._.value]:[]),y=L(0),b=L(v.value);function x(e){w(e,ew(v.value,e))}function S(e){w(e,y.value)}function C(){let e=b.value[y.value];v.value[y.value]!==e&&r(`valueCommit`,I(v.value))}function w(e,t,{commit:n}={commit:!1}){let c=aw(o.value),l=Ny(ow(Math.round((e-i.value)/o.value)*o.value+i.value,c),i.value,a.value),u=ZC(v.value,l,t);if(rw(u,s.value*o.value)){y.value=u.indexOf(l);let e=String(u)!==String(_.value);e&&n&&r(`valueCommit`,u),e&&(T.value[y.value]?.focus(),_.value=u)}}let T=L([]);return hw({modelValue:_,currentModelValue:v,valueIndexToChangeRef:y,thumbElements:T,orientation:c,min:i,max:a,disabled:l,thumbAlignment:u}),(e,t)=>(G(),K(R(g),null,{default:H(()=>[(G(),K(lo(R(c)===`horizontal`?fw:pw),sl(e.$attrs,{ref:R(p),"as-child":e.asChild,as:e.as,min:R(i),max:R(a),dir:R(f),inverted:e.inverted,"aria-disabled":R(l),"data-disabled":R(l)?``:void 0,onPointerdown:t[0]||=()=>{R(l)||(b.value=v.value)},onSlideStart:t[1]||=e=>!R(l)&&x(e),onSlideMove:t[2]||=e=>!R(l)&&S(e),onSlideEnd:t[3]||=e=>!R(l)&&C(),onHomeKeyDown:t[4]||=e=>!R(l)&&w(R(i),0,{commit:!0}),onEndKeyDown:t[5]||=e=>!R(l)&&w(R(a),v.value.length-1,{commit:!0}),onStepKeyDown:t[6]||=(e,t)=>{if(!R(l)){let n=R(sw).includes(e.key)||e.shiftKey&&R(cw).includes(e.key)?10:1,r=y.value,i=v.value[r];w(i+R(o)*n*t,r,{commit:!0})}}}),{default:H(()=>[W(e.$slots,`default`,{modelValue:R(_)}),R(h)&&e.name?(G(),K(R(Cx),{key:0,type:`number`,value:R(_),name:e.name,required:e.required,disabled:R(l),step:R(o)},null,8,[`value`,`name`,`required`,`disabled`,`step`])):rl(`v-if`,!0)]),_:3},16,[`as-child`,`as`,`min`,`max`,`dir`,`inverted`,`aria-disabled`,`data-disabled`]))]),_:3}))}}),_w=U({__name:`SliderImpl`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`span`}},emits:[`slideStart`,`slideMove`,`slideEnd`,`homeKeyDown`,`endKeyDown`,`stepKeyDown`],setup(e,{emit:t}){let n=e,r=t,i=mw();return(e,t)=>(G(),K(R(wb),sl({"data-slider-impl":``},n,{onKeydown:t[0]||=e=>{e.key===`Home`?(r(`homeKeyDown`,e),e.preventDefault()):e.key===`End`?(r(`endKeyDown`,e),e.preventDefault()):R(sw).concat(R(cw)).includes(e.key)&&(r(`stepKeyDown`,e),e.preventDefault())},onPointerdown:t[1]||=e=>{let t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),R(i).thumbElements.value.includes(t)?t.focus():r(`slideStart`,e)},onPointermove:t[2]||=e=>{e.target.hasPointerCapture(e.pointerId)&&r(`slideMove`,e)},onPointerup:t[3]||=e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),r(`slideEnd`,e))}}),{default:H(()=>[W(e.$slots,`default`)]),_:3},16))}}),vw=U({__name:`SliderRange`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`span`}},setup(e){let t=mw(),n=uw();nb();let r=Y(()=>t.currentModelValue.value.map(e=>QC(e,t.min.value,t.max.value))),i=Y(()=>t.currentModelValue.value.length>1?Math.min(...r.value):0),a=Y(()=>100-Math.max(...r.value,0));return(e,r)=>(G(),K(R(wb),{"data-disabled":R(t).disabled.value?``:void 0,"data-orientation":R(t).orientation.value,"as-child":e.asChild,as:e.as,style:ve({[R(n).startEdge.value]:`${i.value}%`,[R(n).endEdge.value]:`${a.value}%`})},{default:H(()=>[W(e.$slots,`default`)]),_:3},8,[`data-disabled`,`data-orientation`,`as-child`,`as`,`style`]))}}),yw=U({inheritAttrs:!1,__name:`SliderThumbImpl`,props:{index:{type:Number,required:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e,n=mw(),r=uw(),{forwardRef:i,currentElement:a}=nb(),{CollectionItem:o}=bx(),s=Y(()=>n.modelValue?.value?.[t.index]),c=Y(()=>s.value===void 0?0:QC(s.value,n.min.value??0,n.max.value??100)),l=Y(()=>$C(t.index,n.modelValue?.value?.length??0)),u=_b(a),d=Y(()=>u[r.size].value),f=Y(()=>n.thumbAlignment.value===`overflow`||!d.value?0:tw(d.value,c.value,r.direction.value)),p=dv();return Xa(()=>{n.thumbElements.value.push(a.value)}),eo(()=>{let e=n.thumbElements.value.findIndex(e=>e===a.value)??-1;n.thumbElements.value.splice(e,1)}),(e,t)=>(G(),K(R(o),null,{default:H(()=>[J(R(wb),sl(e.$attrs,{ref:R(i),role:`slider`,tabindex:R(n).disabled.value?void 0:0,"aria-label":e.$attrs[`aria-label`]||l.value,"data-disabled":R(n).disabled.value?``:void 0,"data-orientation":R(n).orientation.value,"aria-valuenow":s.value,"aria-valuemin":R(n).min.value,"aria-valuemax":R(n).max.value,"aria-orientation":R(n).orientation.value,"as-child":e.asChild,as:e.as,style:{transform:`var(--reka-slider-thumb-transform)`,position:`absolute`,[R(r).startEdge.value]:`calc(${c.value}% + ${f.value}px)`,display:!R(p)&&s.value===void 0?`none`:void 0},onFocus:t[0]||=()=>{R(n).valueIndexToChangeRef.value=e.index}}),{default:H(()=>[W(e.$slots,`default`)]),_:3},16,[`tabindex`,`aria-label`,`data-disabled`,`data-orientation`,`aria-valuenow`,`aria-valuemin`,`aria-valuemax`,`aria-orientation`,`as-child`,`as`,`style`])]),_:3}))}}),bw=U({__name:`SliderThumb`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`span`}},setup(e){let t=e,{getItems:n}=bx(),{forwardRef:r,currentElement:i}=nb(),a=Y(()=>i.value?n(!0).findIndex(e=>e.ref===i.value):-1);return(e,n)=>(G(),K(yw,sl({ref:R(r)},t,{index:a.value}),{default:H(()=>[W(e.$slots,`default`)]),_:3},16,[`index`]))}}),xw=U({__name:`SliderTrack`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`span`}},setup(e){let t=mw();return nb(),(e,n)=>(G(),K(R(wb),{"as-child":e.asChild,as:e.as,"data-disabled":R(t).disabled.value?``:void 0,"data-orientation":R(t).orientation.value},{default:H(()=>[W(e.$slots,`default`)]),_:3},8,[`as-child`,`as`,`data-disabled`,`data-orientation`]))}}),[Sw,Cw]=Py(`PopoverRoot`),ww=U({__name:`PopoverRoot`,props:{defaultOpen:{type:Boolean,required:!1,default:!1},open:{type:Boolean,required:!1,default:void 0},modal:{type:Boolean,required:!1,default:!1}},emits:[`update:open`],setup(e,{emit:t}){let n=e,r=t,{modal:i}=Rn(n),a=zv(n,`open`,r,{defaultValue:n.defaultOpen,passive:n.open===void 0});return Cw({contentId:``,triggerId:``,modal:i,open:a,onOpenChange:e=>{a.value=e},onOpenToggle:()=>{a.value=!a.value},triggerElement:L(),hasCustomAnchor:L(!1)}),(e,t)=>(G(),K(R(Nx),null,{default:H(()=>[W(e.$slots,`default`,{open:R(a),close:()=>a.value=!1})]),_:3}))}}),Tw=U({__name:`PopoverContentImpl`,props:{trapFocus:{type:Boolean,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=t,i=rb(ev(n,`trapFocus`,`disableOutsidePointerEvents`)),{forwardRef:a}=nb(),o=Sw();return $y(),(e,t)=>(G(),K(R(ex),{"as-child":``,loop:``,trapped:e.trapFocus,onMountAutoFocus:t[5]||=e=>r(`openAutoFocus`,e),onUnmountAutoFocus:t[6]||=e=>r(`closeAutoFocus`,e)},{default:H(()=>[J(R(Bb),{"as-child":``,"disable-outside-pointer-events":e.disableOutsidePointerEvents,onPointerDownOutside:t[0]||=e=>r(`pointerDownOutside`,e),onInteractOutside:t[1]||=e=>r(`interactOutside`,e),onEscapeKeyDown:t[2]||=e=>r(`escapeKeyDown`,e),onFocusOutside:t[3]||=e=>r(`focusOutside`,e),onDismiss:t[4]||=e=>R(o).onOpenChange(!1)},{default:H(()=>[J(R(KC),sl(R(i),{id:R(o).contentId,ref:R(a),"data-state":R(o).open.value?`open`:`closed`,"aria-labelledby":R(o).triggerId,style:{"--reka-popover-content-transform-origin":`var(--reka-popper-transform-origin)`,"--reka-popover-content-available-width":`var(--reka-popper-available-width)`,"--reka-popover-content-available-height":`var(--reka-popper-available-height)`,"--reka-popover-trigger-width":`var(--reka-popper-anchor-width)`,"--reka-popover-trigger-height":`var(--reka-popper-anchor-height)`},role:`dialog`}),{default:H(()=>[W(e.$slots,`default`)]),_:3},16,[`id`,`data-state`,`aria-labelledby`])]),_:3},8,[`disable-outside-pointer-events`])]),_:3},8,[`trapped`]))}}),Ew=U({__name:`PopoverContentModal`,props:{side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=t,i=Sw(),a=L(!1);qy(!0);let o=ib(n,r),{forwardRef:s,currentElement:c}=nb();return mb(c),(e,t)=>(G(),K(Tw,sl(R(o),{ref:R(s),"trap-focus":R(i).open.value,"disable-outside-pointer-events":``,onCloseAutoFocus:t[0]||=Wd(e=>{r(`closeAutoFocus`,e),a.value||R(i).triggerElement.value?.focus()},[`prevent`]),onPointerDownOutside:t[1]||=e=>{r(`pointerDownOutside`,e);let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;a.value=t.button===2||n},onFocusOutside:t[2]||=Wd(()=>{},[`prevent`])}),{default:H(()=>[W(e.$slots,`default`)]),_:3},16,[`trap-focus`]))}}),Dw=U({__name:`PopoverContentNonModal`,props:{side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=t,i=Sw(),a=L(!1),o=L(!1),s=ib(n,r);return(e,t)=>(G(),K(Tw,sl(R(s),{"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:t[0]||=e=>{r(`closeAutoFocus`,e),e.defaultPrevented||(a.value||R(i).triggerElement.value?.focus(),e.preventDefault()),a.value=!1,o.value=!1},onInteractOutside:t[1]||=async e=>{r(`interactOutside`,e),e.defaultPrevented||(a.value=!0,e.detail.originalEvent.type===`pointerdown`&&(o.value=!0));let t=e.target;R(i).triggerElement.value?.contains(t)&&e.preventDefault(),e.detail.originalEvent.type===`focusin`&&o.value&&e.preventDefault()}}),{default:H(()=>[W(e.$slots,`default`)]),_:3},16))}}),Ow=U({__name:`PopoverContent`,props:{forceMount:{type:Boolean,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=t,i=Sw(),a=ib(n,r),{forwardRef:o}=nb();return i.contentId||=gb(void 0,`reka-popover-content`),(e,t)=>(G(),K(R(xb),{present:e.forceMount||R(i).open.value},{default:H(()=>[R(i).modal.value?(G(),K(Ew,sl({key:0},R(a),{ref:R(o)}),{default:H(()=>[W(e.$slots,`default`)]),_:3},16)):(G(),K(Dw,sl({key:1},R(a),{ref:R(o)}),{default:H(()=>[W(e.$slots,`default`)]),_:3},16))]),_:3},8,[`present`]))}}),kw=U({__name:`PopoverPortal`,props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){let t=e;return(e,n)=>(G(),K(R(hx),Te(Qc(t)),{default:H(()=>[W(e.$slots,`default`)]),_:3},16))}}),Aw=U({__name:`PopoverTrigger`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`}},setup(e){let t=e,n=Sw(),{forwardRef:r,currentElement:i}=nb();return n.triggerId||=gb(void 0,`reka-popover-trigger`),Xa(()=>{n.triggerElement.value=i.value}),(e,i)=>(G(),K(lo(R(n).hasCustomAnchor.value?R(wb):R(Px)),{"as-child":``},{default:H(()=>[J(R(wb),{id:R(n).triggerId,ref:R(r),type:e.as===`button`?`button`:void 0,"aria-haspopup":`dialog`,"aria-expanded":R(n).open.value,"aria-controls":R(n).contentId,"data-state":R(n).open.value?`open`:`closed`,as:e.as,"as-child":t.asChild,onClick:R(n).onOpenToggle},{default:H(()=>[W(e.$slots,`default`)]),_:3},8,[`id`,`type`,`aria-expanded`,`aria-controls`,`data-state`,`as`,`as-child`,`onClick`])]),_:3}))}}),[jw,Mw]=Py(`ToggleGroupRoot`),Nw=U({__name:`ToggleGroupRoot`,props:{rovingFocus:{type:Boolean,required:!1,default:!0},disabled:{type:Boolean,required:!1,default:!1},orientation:{type:String,required:!1},dir:{type:String,required:!1},loop:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},name:{type:String,required:!1},required:{type:Boolean,required:!1},type:{type:String,required:!1},modelValue:{type:null,required:!1},defaultValue:{type:null,required:!1}},emits:[`update:modelValue`],setup(e,{emit:t}){let n=e,r=t,{loop:i,rovingFocus:a,disabled:o,dir:s}=Rn(n),c=Xy(s),{forwardRef:l,currentElement:u}=nb(),{modelValue:d,changeModelValue:f,isSingle:p}=kb(n,r),m=tb(u);return Mw({isSingle:p,modelValue:d,changeModelValue:f,dir:c,orientation:n.orientation,loop:i,rovingFocus:a,disabled:o}),(e,t)=>(G(),K(lo(R(a)?R(YC):R(wb)),{"as-child":``,orientation:R(a)?e.orientation:void 0,dir:R(c),loop:R(a)?R(i):void 0},{default:H(()=>[J(R(wb),{ref:R(l),role:`group`,"as-child":e.asChild,as:e.as},{default:H(()=>[W(e.$slots,`default`,{modelValue:R(d)}),R(m)&&e.name?(G(),K(Cx,{key:0,name:e.name,required:e.required,value:R(d)},null,8,[`name`,`required`,`value`])):rl(`v-if`,!0)]),_:3},8,[`as-child`,`as`])]),_:3},8,[`orientation`,`dir`,`loop`]))}}),Pw=U({__name:`Toggle`,props:{defaultValue:{type:Boolean,required:!1},modelValue:{type:[Boolean,null],required:!1,default:void 0},disabled:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:[`update:modelValue`],setup(e,{emit:t}){let n=e,r=t,{forwardRef:i,currentElement:a}=nb(),o=jw(null),s=zv(n,`modelValue`,r,{defaultValue:n.defaultValue,passive:n.modelValue===void 0});function c(){s.value=!s.value}let l=Y(()=>s.value?`on`:`off`),u=tb(a);return(e,t)=>(G(),K(R(wb),{ref:R(i),type:e.as===`button`?`button`:void 0,"as-child":n.asChild,as:e.as,"aria-pressed":R(s),"data-state":l.value,"data-disabled":e.disabled?``:void 0,disabled:e.disabled,onClick:c},{default:H(()=>[W(e.$slots,`default`,{modelValue:R(s),disabled:e.disabled,pressed:R(s),state:l.value}),R(u)&&e.name&&!R(o)?(G(),K(Cx,{key:0,type:`checkbox`,name:e.name,value:R(s),required:e.required},null,8,[`name`,`value`,`required`])):rl(`v-if`,!0)]),_:3},8,[`type`,`as-child`,`as`,`aria-pressed`,`data-state`,`data-disabled`,`disabled`]))}}),Fw=U({__name:`ToggleGroupItem`,props:{value:{type:null,required:!0},disabled:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`}},setup(e){let t=e,n=jw(),r=Y(()=>n.disabled?.value||t.disabled),i=Y(()=>Ry(n.modelValue.value,t.value)),{forwardRef:a}=nb();return(e,o)=>(G(),K(lo(R(n).rovingFocus.value?R(XC):R(wb)),sl({"as-child":``},R(n).rovingFocus.value?{focusable:!r.value,active:i.value}:{}),{default:H(()=>[J(R(Pw),sl(t,{ref:R(a),disabled:r.value,"model-value":i.value,"onUpdate:modelValue":o[0]||=t=>R(n).changeModelValue(e.value)}),{default:H(t=>[W(e.$slots,`default`,Te(Qc(t)))]),_:3},16,[`disabled`,`model-value`])]),_:3},16))}}),Iw=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},Lw=(e,t)=>({classGroupId:e,validator:t}),Rw=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),zw=`-`,Bw=[],Vw=`arbitrary..`,Hw=e=>{let t=Gw(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return Ww(e);let n=e.split(zw);return Uw(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?Iw(i,t):t:i||Bw}return n[e]||Bw}}},Uw=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=Uw(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(zw):e.slice(t).join(zw),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},Ww=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?Vw+r:void 0})(),Gw=e=>{let{theme:t,classGroups:n}=e;return Kw(n,t)},Kw=(e,t)=>{let n=Rw();for(let r in e){let i=e[r];qw(i,n,r,t)}return n},qw=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];Jw(i,t,n,r)}},Jw=(e,t,n,r)=>{if(typeof e==`string`){Yw(e,t,n);return}if(typeof e==`function`){Xw(e,t,n,r);return}Zw(e,t,n,r)},Yw=(e,t,n)=>{let r=e===``?t:Qw(t,e);r.classGroupId=n},Xw=(e,t,n,r)=>{if($w(e)){qw(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Lw(n,e))},Zw=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];qw(o,Qw(t,a),n,r)}},Qw=(e,t)=>{let n=e,r=t.split(zw),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=Rw(),n.nextPart.set(t,i)),n=i}return n},$w=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,eT=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},tT=`!`,nT=`:`,rT=[],iT=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),aT=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===nT){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(tT)?(c=s.slice(0,-1),l=!0):s.startsWith(tT)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return iT(t,l,c,u)};if(t){let e=t+nT,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):iT(rT,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},oT=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},sT=e=>({cache:eT(e.cacheSize),parseClassName:aT(e),sortModifiers:oT(e),postfixLookupClassGroupIds:cT(e),...Hw(e)}),cT=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},lT=/\s+/,uT=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(lT),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h){l=t+(l.length>0?` `+l:l);continue}if(g=r(p),!g){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+tT:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e<b.length;++e){let t=b[e];s.push(v+t)}l=t+(l.length>0?` `+l:l)}return l},dT=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=fT(n))&&(i&&(i+=` `),i+=r);return i},fT=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=fT(e[r]))&&(n&&(n+=` `),n+=t);return n},pT=(e,...t)=>{let n,r,i,a,o=o=>(n=sT(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=uT(e,n);return i(e,a),a};return a=o,(...e)=>a(dT(...e))},mT=[],hT=e=>{let t=t=>t[e]||mT;return t.isThemeGetter=!0,t},gT=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,_T=/^\((?:(\w[\w-]*):)?(.+)\)$/i,vT=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,yT=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,bT=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,xT=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ST=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,CT=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,wT=e=>vT.test(e),TT=e=>!!e&&!Number.isNaN(Number(e)),ET=e=>!!e&&Number.isInteger(Number(e)),DT=e=>e.endsWith(`%`)&&TT(e.slice(0,-1)),OT=e=>yT.test(e),kT=()=>!0,AT=e=>bT.test(e)&&!xT.test(e),jT=()=>!1,MT=e=>ST.test(e),NT=e=>CT.test(e),PT=e=>!Q(e)&&!$(e),FT=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),IT=e=>ZT(e,tE,jT),Q=e=>gT.test(e),LT=e=>ZT(e,nE,AT),RT=e=>ZT(e,rE,TT),zT=e=>ZT(e,aE,kT),BT=e=>ZT(e,iE,jT),VT=e=>ZT(e,$T,jT),HT=e=>ZT(e,eE,NT),UT=e=>ZT(e,oE,MT),$=e=>_T.test(e),WT=e=>QT(e,nE),GT=e=>QT(e,iE),KT=e=>QT(e,$T),qT=e=>QT(e,tE),JT=e=>QT(e,eE),YT=e=>QT(e,oE,!0),XT=e=>QT(e,aE,!0),ZT=(e,t,n)=>{let r=gT.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},QT=(e,t,n=!1)=>{let r=_T.exec(e);return r?r[1]?t(r[1]):n:!1},$T=e=>e===`position`||e===`percentage`,eE=e=>e===`image`||e===`url`,tE=e=>e===`length`||e===`size`||e===`bg-size`,nE=e=>e===`length`,rE=e=>e===`number`,iE=e=>e===`family-name`,aE=e=>e===`number`||e===`weight`,oE=e=>e===`shadow`,sE=pT(()=>{let e=hT(`color`),t=hT(`font`),n=hT(`text`),r=hT(`font-weight`),i=hT(`tracking`),a=hT(`leading`),o=hT(`breakpoint`),s=hT(`container`),c=hT(`spacing`),l=hT(`radius`),u=hT(`shadow`),d=hT(`inset-shadow`),f=hT(`text-shadow`),p=hT(`drop-shadow`),m=hT(`blur`),h=hT(`perspective`),g=hT(`aspect`),_=hT(`ease`),v=hT(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),$,Q],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[$,Q,c],T=()=>[wT,`full`,`auto`,...w()],E=()=>[ET,`none`,`subgrid`,$,Q],D=()=>[`auto`,{span:[`full`,ET,$,Q]},ET,$,Q],O=()=>[ET,`auto`,$,Q],k=()=>[`auto`,`min`,`max`,`fr`,$,Q],ee=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],A=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],te=()=>[`auto`,...w()],ne=()=>[wT,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],re=()=>[wT,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],ie=()=>[wT,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],j=()=>[e,$,Q],M=()=>[...b(),KT,VT,{position:[$,Q]}],ae=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],oe=()=>[`auto`,`cover`,`contain`,qT,IT,{size:[$,Q]}],se=()=>[DT,WT,LT],ce=()=>[``,`none`,`full`,l,$,Q],N=()=>[``,TT,WT,LT],P=()=>[`solid`,`dashed`,`dotted`,`double`],le=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],ue=()=>[TT,DT,KT,VT],de=()=>[``,`none`,m,$,Q],fe=()=>[`none`,TT,$,Q],pe=()=>[`none`,TT,$,Q],me=()=>[TT,$,Q],he=()=>[wT,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[OT],breakpoint:[OT],color:[kT],container:[OT],"drop-shadow":[OT],ease:[`in`,`out`,`in-out`],font:[PT],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[OT],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[OT],shadow:[OT],spacing:[`px`,TT],text:[OT],"text-shadow":[OT],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,wT,Q,$,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,$,Q]}],"container-named":[FT],columns:[{columns:[TT,Q,$,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[ET,`auto`,$,Q]}],basis:[{basis:[wT,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[TT,wT,`auto`,`initial`,`none`,Q]}],grow:[{grow:[``,TT,$,Q]}],shrink:[{shrink:[``,TT,$,Q]}],order:[{order:[ET,`first`,`last`,`none`,$,Q]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:D()}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:D()}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":k()}],"auto-rows":[{"auto-rows":k()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...ee(),`normal`]}],"justify-items":[{"justify-items":[...A(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...A()]}],"align-content":[{content:[`normal`,...ee()]}],"align-items":[{items:[...A(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...A(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":ee()}],"place-items":[{"place-items":[...A(),`baseline`]}],"place-self":[{"place-self":[`auto`,...A()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:te()}],mx:[{mx:te()}],my:[{my:te()}],ms:[{ms:te()}],me:[{me:te()}],mbs:[{mbs:te()}],mbe:[{mbe:te()}],mt:[{mt:te()}],mr:[{mr:te()}],mb:[{mb:te()}],ml:[{ml:te()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:ne()}],"inline-size":[{inline:[`auto`,...re()]}],"min-inline-size":[{"min-inline":[`auto`,...re()]}],"max-inline-size":[{"max-inline":[`none`,...re()]}],"block-size":[{block:[`auto`,...ie()]}],"min-block-size":[{"min-block":[`auto`,...ie()]}],"max-block-size":[{"max-block":[`none`,...ie()]}],w:[{w:[s,`screen`,...ne()]}],"min-w":[{"min-w":[s,`screen`,`none`,...ne()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...ne()]}],h:[{h:[`screen`,`lh`,...ne()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...ne()]}],"max-h":[{"max-h":[`screen`,`lh`,...ne()]}],"font-size":[{text:[`base`,n,WT,LT]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,XT,zT]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,DT,Q]}],"font-family":[{font:[GT,BT,t]}],"font-features":[{"font-features":[Q]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,$,Q]}],"line-clamp":[{"line-clamp":[TT,`none`,$,RT]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,$,Q]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,$,Q]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:j()}],"text-color":[{text:j()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...P(),`wavy`]}],"text-decoration-thickness":[{decoration:[TT,`from-font`,`auto`,$,LT]}],"text-decoration-color":[{decoration:j()}],"underline-offset":[{"underline-offset":[TT,`auto`,$,Q]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"tab-size":[{tab:[ET,$,Q]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,$,Q]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,$,Q]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:M()}],"bg-repeat":[{bg:ae()}],"bg-size":[{bg:oe()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},ET,$,Q],radial:[``,$,Q],conic:[ET,$,Q]},JT,HT]}],"bg-color":[{bg:j()}],"gradient-from-pos":[{from:se()}],"gradient-via-pos":[{via:se()}],"gradient-to-pos":[{to:se()}],"gradient-from":[{from:j()}],"gradient-via":[{via:j()}],"gradient-to":[{to:j()}],rounded:[{rounded:ce()}],"rounded-s":[{"rounded-s":ce()}],"rounded-e":[{"rounded-e":ce()}],"rounded-t":[{"rounded-t":ce()}],"rounded-r":[{"rounded-r":ce()}],"rounded-b":[{"rounded-b":ce()}],"rounded-l":[{"rounded-l":ce()}],"rounded-ss":[{"rounded-ss":ce()}],"rounded-se":[{"rounded-se":ce()}],"rounded-ee":[{"rounded-ee":ce()}],"rounded-es":[{"rounded-es":ce()}],"rounded-tl":[{"rounded-tl":ce()}],"rounded-tr":[{"rounded-tr":ce()}],"rounded-br":[{"rounded-br":ce()}],"rounded-bl":[{"rounded-bl":ce()}],"border-w":[{border:N()}],"border-w-x":[{"border-x":N()}],"border-w-y":[{"border-y":N()}],"border-w-s":[{"border-s":N()}],"border-w-e":[{"border-e":N()}],"border-w-bs":[{"border-bs":N()}],"border-w-be":[{"border-be":N()}],"border-w-t":[{"border-t":N()}],"border-w-r":[{"border-r":N()}],"border-w-b":[{"border-b":N()}],"border-w-l":[{"border-l":N()}],"divide-x":[{"divide-x":N()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":N()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...P(),`hidden`,`none`]}],"divide-style":[{divide:[...P(),`hidden`,`none`]}],"border-color":[{border:j()}],"border-color-x":[{"border-x":j()}],"border-color-y":[{"border-y":j()}],"border-color-s":[{"border-s":j()}],"border-color-e":[{"border-e":j()}],"border-color-bs":[{"border-bs":j()}],"border-color-be":[{"border-be":j()}],"border-color-t":[{"border-t":j()}],"border-color-r":[{"border-r":j()}],"border-color-b":[{"border-b":j()}],"border-color-l":[{"border-l":j()}],"divide-color":[{divide:j()}],"outline-style":[{outline:[...P(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[TT,$,Q]}],"outline-w":[{outline:[``,TT,WT,LT]}],"outline-color":[{outline:j()}],shadow:[{shadow:[``,`none`,u,YT,UT]}],"shadow-color":[{shadow:j()}],"inset-shadow":[{"inset-shadow":[`none`,d,YT,UT]}],"inset-shadow-color":[{"inset-shadow":j()}],"ring-w":[{ring:N()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:j()}],"ring-offset-w":[{"ring-offset":[TT,LT]}],"ring-offset-color":[{"ring-offset":j()}],"inset-ring-w":[{"inset-ring":N()}],"inset-ring-color":[{"inset-ring":j()}],"text-shadow":[{"text-shadow":[`none`,f,YT,UT]}],"text-shadow-color":[{"text-shadow":j()}],opacity:[{opacity:[TT,$,Q]}],"mix-blend":[{"mix-blend":[...le(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":le()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[TT]}],"mask-image-linear-from-pos":[{"mask-linear-from":ue()}],"mask-image-linear-to-pos":[{"mask-linear-to":ue()}],"mask-image-linear-from-color":[{"mask-linear-from":j()}],"mask-image-linear-to-color":[{"mask-linear-to":j()}],"mask-image-t-from-pos":[{"mask-t-from":ue()}],"mask-image-t-to-pos":[{"mask-t-to":ue()}],"mask-image-t-from-color":[{"mask-t-from":j()}],"mask-image-t-to-color":[{"mask-t-to":j()}],"mask-image-r-from-pos":[{"mask-r-from":ue()}],"mask-image-r-to-pos":[{"mask-r-to":ue()}],"mask-image-r-from-color":[{"mask-r-from":j()}],"mask-image-r-to-color":[{"mask-r-to":j()}],"mask-image-b-from-pos":[{"mask-b-from":ue()}],"mask-image-b-to-pos":[{"mask-b-to":ue()}],"mask-image-b-from-color":[{"mask-b-from":j()}],"mask-image-b-to-color":[{"mask-b-to":j()}],"mask-image-l-from-pos":[{"mask-l-from":ue()}],"mask-image-l-to-pos":[{"mask-l-to":ue()}],"mask-image-l-from-color":[{"mask-l-from":j()}],"mask-image-l-to-color":[{"mask-l-to":j()}],"mask-image-x-from-pos":[{"mask-x-from":ue()}],"mask-image-x-to-pos":[{"mask-x-to":ue()}],"mask-image-x-from-color":[{"mask-x-from":j()}],"mask-image-x-to-color":[{"mask-x-to":j()}],"mask-image-y-from-pos":[{"mask-y-from":ue()}],"mask-image-y-to-pos":[{"mask-y-to":ue()}],"mask-image-y-from-color":[{"mask-y-from":j()}],"mask-image-y-to-color":[{"mask-y-to":j()}],"mask-image-radial":[{"mask-radial":[$,Q]}],"mask-image-radial-from-pos":[{"mask-radial-from":ue()}],"mask-image-radial-to-pos":[{"mask-radial-to":ue()}],"mask-image-radial-from-color":[{"mask-radial-from":j()}],"mask-image-radial-to-color":[{"mask-radial-to":j()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[TT]}],"mask-image-conic-from-pos":[{"mask-conic-from":ue()}],"mask-image-conic-to-pos":[{"mask-conic-to":ue()}],"mask-image-conic-from-color":[{"mask-conic-from":j()}],"mask-image-conic-to-color":[{"mask-conic-to":j()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:M()}],"mask-repeat":[{mask:ae()}],"mask-size":[{mask:oe()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,$,Q]}],filter:[{filter:[``,`none`,$,Q]}],blur:[{blur:de()}],brightness:[{brightness:[TT,$,Q]}],contrast:[{contrast:[TT,$,Q]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,YT,UT]}],"drop-shadow-color":[{"drop-shadow":j()}],grayscale:[{grayscale:[``,TT,$,Q]}],"hue-rotate":[{"hue-rotate":[TT,$,Q]}],invert:[{invert:[``,TT,$,Q]}],saturate:[{saturate:[TT,$,Q]}],sepia:[{sepia:[``,TT,$,Q]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,$,Q]}],"backdrop-blur":[{"backdrop-blur":de()}],"backdrop-brightness":[{"backdrop-brightness":[TT,$,Q]}],"backdrop-contrast":[{"backdrop-contrast":[TT,$,Q]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,TT,$,Q]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[TT,$,Q]}],"backdrop-invert":[{"backdrop-invert":[``,TT,$,Q]}],"backdrop-opacity":[{"backdrop-opacity":[TT,$,Q]}],"backdrop-saturate":[{"backdrop-saturate":[TT,$,Q]}],"backdrop-sepia":[{"backdrop-sepia":[``,TT,$,Q]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,$,Q]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[TT,`initial`,$,Q]}],ease:[{ease:[`linear`,`initial`,_,$,Q]}],delay:[{delay:[TT,$,Q]}],animate:[{animate:[`none`,v,$,Q]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,$,Q]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:fe()}],"rotate-x":[{"rotate-x":fe()}],"rotate-y":[{"rotate-y":fe()}],"rotate-z":[{"rotate-z":fe()}],scale:[{scale:pe()}],"scale-x":[{"scale-x":pe()}],"scale-y":[{"scale-y":pe()}],"scale-z":[{"scale-z":pe()}],"scale-3d":[`scale-3d`],skew:[{skew:me()}],"skew-x":[{"skew-x":me()}],"skew-y":[{"skew-y":me()}],transform:[{transform:[$,Q,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:he()}],"translate-x":[{"translate-x":he()}],"translate-y":[{"translate-y":he()}],"translate-z":[{"translate-z":he()}],"translate-none":[`translate-none`],zoom:[{zoom:[ET,$,Q]}],accent:[{accent:j()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:j()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,$,Q]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":j()}],"scrollbar-track-color":[{"scrollbar-track":j()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,$,Q]}],fill:[{fill:[`none`,...j()]}],"stroke-w":[{stroke:[TT,WT,LT,RT]}],stroke:[{stroke:[`none`,...j()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function cE(...e){return sE(Ey(e))}var lE=U({__name:`Button`,props:{variant:{},size:{},class:{type:[Boolean,null,String,Object,Array]},asChild:{type:Boolean},as:{default:`button`}},setup(e){let t=e;return(n,r)=>(G(),K(R(wb),{"data-slot":`button`,"data-variant":e.variant,"data-size":e.size,as:e.as,"as-child":e.asChild,class:we(R(cE)(R(uE)({variant:e.variant,size:e.size}),t.class))},{default:H(()=>[W(n.$slots,`default`)]),_:3},8,[`data-variant`,`data-size`,`as`,`as-child`,`class`]))}}),uE=ky(`inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive`,{variants:{variant:{default:`bg-primary text-primary-foreground hover:bg-primary/90`,destructive:`bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60`,outline:`border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50`,secondary:`bg-secondary text-secondary-foreground hover:bg-secondary/80`,ghost:`hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-9 px-4 py-2 has-[>svg]:px-3`,sm:`h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5`,lg:`h-10 rounded-md px-6 has-[>svg]:px-4`,icon:`size-9`,"icon-sm":`size-8`,"icon-lg":`size-10`}},defaultVariants:{variant:`default`,size:`default`}}),dE=U({__name:`Alert`,props:{class:{type:[Boolean,null,String,Object,Array]},variant:{}},setup(e){let t=e;return(n,r)=>(G(),Uc(`div`,{"data-slot":`alert`,class:we(R(cE)(R(pE)({variant:e.variant}),t.class)),role:`alert`},[W(n.$slots,`default`)],2))}}),fE=U({__name:`AlertDescription`,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){let t=e;return(e,n)=>(G(),Uc(`div`,{"data-slot":`alert-description`,class:we(R(cE)(`text-muted-foreground col-start-2 text-sm [&_p]:leading-relaxed`,t.class))},[W(e.$slots,`default`)],2))}}),pE=ky(`relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current`,{variants:{variant:{default:`bg-card text-card-foreground`,destructive:`text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90`}},defaultVariants:{variant:`default`}}),mE=s({bugs:()=>TE,contributors:()=>bE,default:()=>AE,dependencies:()=>OE,description:()=>_E,devDependencies:()=>kE,files:()=>EE,homepage:()=>yE,keywords:()=>CE,license:()=>`MIT`,main:()=>SE,name:()=>hE,repository:()=>wE,scripts:()=>DE,title:()=>gE,types:()=>xE,version:()=>vE}),hE,gE,_E,vE,yE,bE,xE,SE,CE,wE,TE,EE,DE,OE,kE,AE,jE=a((()=>{hE=`jssip`,gE=`JsSIP`,_E=`The Javascript SIP library`,vE=`3.13.8`,yE=`https://jssip.net`,bE=[`José Luis Millán <jmillan@aliax.net> (https://github.com/jmillan)`,`Iñaki Baz Castillo <ibc@aliax.net> (https://inakibaz.me)`],xE=`lib/JsSIP.d.ts`,SE=`lib/JsSIP.js`,CE=[`sip`,`websocket`,`webrtc`,`node`,`browser`,`library`],wE={type:`git`,url:`https://github.com/versatica/JsSIP.git`},TE={url:`https://github.com/versatica/JsSIP/issues`},EE=[`LICENSE`,`README.md`,`npm-scripts.mjs`,`lib`],DE={lint:`node npm-scripts.mjs lint`,"lint:fix":`node npm-scripts.mjs lint:fix`,test:`node npm-scripts.mjs test`,coverage:`node npm-scripts.mjs coverage`,build:`node npm-scripts.mjs build`,"typescript:build":`node npm-scripts.mjs typescript:build`,release:`node npm-scripts.mjs release`,docs:`node npm-scripts.mjs docs`,"docs:watch":`node npm-scripts.mjs docs:watch`,"docs:check":`node npm-scripts.mjs docs:check`},OE={debug:`^4.3.1`,events:`^3.3.0`,"sdp-transform":`^2.14.1`},kE={"@eslint/eslintrc":`^3.3.3`,"@eslint/js":`^9.39.2`,"@types/debug":`^4.1.12`,"@types/events":`^3.0.3`,"@types/jest":`^30.0.0`,"@types/node":`^25.0.10`,cpx:`^1.5.0`,esbuild:`^0.27.2`,eslint:`^9.39.1`,"eslint-config-prettier":`^10.1.8`,"eslint-plugin-jest":`^29.12.1`,"eslint-plugin-prettier":`^5.5.5`,globals:`^17.0.0`,jest:`^30.2.0`,"open-cli":`^8.0.0`,pegjs:`^0.7.0`,prettier:`^3.8.1`,"ts-jest":`^29.4.6`,typedoc:`^0.28.16`,typescript:`^5.9.3`,"typescript-eslint":`^8.53.1`},AE={name:hE,title:gE,description:_E,version:vE,homepage:yE,contributors:bE,types:xE,main:SE,keywords:CE,license:`MIT`,repository:wE,bugs:TE,files:EE,scripts:DE,dependencies:OE,devDependencies:kE}})),ME=o(((e,t)=>{var n=(jE(),l(mE).default);t.exports={USER_AGENT:`${n.title} ${n.version}`,SIP:`sip`,SIPS:`sips`,causes:{CONNECTION_ERROR:`Connection Error`,REQUEST_TIMEOUT:`Request Timeout`,SIP_FAILURE_CODE:`SIP Failure Code`,INTERNAL_ERROR:`Internal Error`,BUSY:`Busy`,REJECTED:`Rejected`,REDIRECTED:`Redirected`,UNAVAILABLE:`Unavailable`,NOT_FOUND:`Not Found`,ADDRESS_INCOMPLETE:`Address Incomplete`,INCOMPATIBLE_SDP:`Incompatible SDP`,MISSING_SDP:`Missing SDP`,AUTHENTICATION_ERROR:`Authentication Error`,BYE:`Terminated`,WEBRTC_ERROR:`WebRTC Error`,CANCELED:`Canceled`,NO_ANSWER:`No Answer`,EXPIRES:`Expires`,NO_ACK:`No ACK`,DIALOG_ERROR:`Dialog Error`,USER_DENIED_MEDIA_ACCESS:`User Denied Media Access`,BAD_MEDIA_DESCRIPTION:`Bad Media Description`,RTP_TIMEOUT:`RTP Timeout`},SIP_ERROR_CAUSES:{REDIRECTED:[300,301,302,305,380],BUSY:[486,600],REJECTED:[403,603],NOT_FOUND:[404,604],UNAVAILABLE:[480,410,408,430],ADDRESS_INCOMPLETE:[484,424],INCOMPATIBLE_SDP:[488,606],AUTHENTICATION_ERROR:[401,407]},ACK:`ACK`,BYE:`BYE`,CANCEL:`CANCEL`,INFO:`INFO`,INVITE:`INVITE`,MESSAGE:`MESSAGE`,NOTIFY:`NOTIFY`,OPTIONS:`OPTIONS`,REGISTER:`REGISTER`,REFER:`REFER`,UPDATE:`UPDATE`,SUBSCRIBE:`SUBSCRIBE`,DTMF_TRANSPORT:{INFO:`INFO`,RFC2833:`RFC2833`},REASON_PHRASE:{100:`Trying`,180:`Ringing`,181:`Call Is Being Forwarded`,182:`Queued`,183:`Session Progress`,199:`Early Dialog Terminated`,200:`OK`,202:`Accepted`,204:`No Notification`,300:`Multiple Choices`,301:`Moved Permanently`,302:`Moved Temporarily`,305:`Use Proxy`,380:`Alternative Service`,400:`Bad Request`,401:`Unauthorized`,402:`Payment Required`,403:`Forbidden`,404:`Not Found`,405:`Method Not Allowed`,406:`Not Acceptable`,407:`Proxy Authentication Required`,408:`Request Timeout`,410:`Gone`,412:`Conditional Request Failed`,413:`Request Entity Too Large`,414:`Request-URI Too Long`,415:`Unsupported Media Type`,416:`Unsupported URI Scheme`,417:`Unknown Resource-Priority`,420:`Bad Extension`,421:`Extension Required`,422:`Session Interval Too Small`,423:`Interval Too Brief`,424:`Bad Location Information`,428:`Use Identity Header`,429:`Provide Referrer Identity`,430:`Flow Failed`,433:`Anonymity Disallowed`,436:`Bad Identity-Info`,437:`Unsupported Certificate`,438:`Invalid Identity Header`,439:`First Hop Lacks Outbound Support`,440:`Max-Breadth Exceeded`,469:`Bad Info Package`,470:`Consent Needed`,478:`Unresolvable Destination`,480:`Temporarily Unavailable`,481:`Call/Transaction Does Not Exist`,482:`Loop Detected`,483:`Too Many Hops`,484:`Address Incomplete`,485:`Ambiguous`,486:`Busy Here`,487:`Request Terminated`,488:`Not Acceptable Here`,489:`Bad Event`,491:`Request Pending`,493:`Undecipherable`,494:`Security Agreement Required`,500:`JsSIP Internal Error`,501:`Not Implemented`,502:`Bad Gateway`,503:`Service Unavailable`,504:`Server Time-out`,505:`Version Not Supported`,513:`Message Too Large`,580:`Precondition Failure`,600:`Busy Everywhere`,603:`Decline`,604:`Does Not Exist Anywhere`,606:`Not Acceptable`},ALLOWED_METHODS:`INVITE,ACK,CANCEL,BYE,UPDATE,MESSAGE,OPTIONS,REFER,INFO,NOTIFY,SUBSCRIBE`,ACCEPTED_BODY_TYPES:`application/sdp, application/dtmf-relay`,MAX_FORWARDS:69,SESSION_EXPIRES:90,MIN_SESSION_EXPIRES:60,CONNECTION_RECOVERY_MAX_INTERVAL:30,CONNECTION_RECOVERY_MIN_INTERVAL:2}})),NE=o(((e,t)=>{t.exports={ConfigurationError:class extends Error{constructor(e,t){super(),this.code=1,this.name=`CONFIGURATION_ERROR`,this.parameter=e,this.value=t,this.message=this.value?`Invalid value ${JSON.stringify(this.value)} for parameter "${this.parameter}"`:`Missing parameter: ${this.parameter}`}},InvalidStateError:class extends Error{constructor(e){super(),this.code=2,this.name=`INVALID_STATE_ERROR`,this.status=e,this.message=`Invalid status: ${e}`}},NotSupportedError:class extends Error{constructor(e){super(),this.code=3,this.name=`NOT_SUPPORTED_ERROR`,this.message=e}},NotReadyError:class extends Error{constructor(e){super(),this.code=4,this.name=`NOT_READY_ERROR`,this.message=e}}}})),PE=o(((e,t)=>{var n=IE(),r=FE();t.exports=class e{static parse(e){if(e=r.parse(e,`Name_Addr_Header`),e!==-1)return e}constructor(e,t,r){if(!e||!(e instanceof n))throw TypeError(`missing or invalid "uri" parameter`);this._uri=e,this._parameters={},this.display_name=t;for(let e in r)Object.prototype.hasOwnProperty.call(r,e)&&this.setParam(e,r[e])}get uri(){return this._uri}get display_name(){return this._display_name}set display_name(e){this._display_name=e===0?`0`:e}setParam(e,t){e&&(this._parameters[e.toLowerCase()]=t==null?null:t.toString())}getParam(e){if(e)return this._parameters[e.toLowerCase()]}hasParam(e){if(e)return this._parameters.hasOwnProperty(e.toLowerCase())&&!0||!1}deleteParam(e){if(e=e.toLowerCase(),this._parameters.hasOwnProperty(e)){let t=this._parameters[e];return delete this._parameters[e],t}}clearParams(){this._parameters={}}clone(){return new e(this._uri.clone(),this._display_name,JSON.parse(JSON.stringify(this._parameters)))}_quote(e){return e.replace(/\\/g,`\\\\`).replace(/"/g,`\\"`)}toString(){let e=this._display_name?`"${this._quote(this._display_name)}" `:``;e+=`<${this._uri.toString()}>`;for(let t in this._parameters)Object.prototype.hasOwnProperty.call(this._parameters,t)&&(e+=`;${t}`,this._parameters[t]!==null&&(e+=`=${this._parameters[t]}`));return e}}})),FE=o(((e,t)=>{t.exports=(function(){function e(e){return`"`+e.replace(/\\/g,`\\\\`).replace(/"/g,`\\"`).replace(/\x08/g,`\\b`).replace(/\t/g,`\\t`).replace(/\n/g,`\\n`).replace(/\f/g,`\\f`).replace(/\r/g,`\\r`).replace(/[\x00-\x07\x0B\x0E-\x1F\x80-\uFFFF]/g,escape)+`"`}var t={parse:function(t,n){var r={CRLF:l,DIGIT:u,ALPHA:d,HEXDIG:f,WSP:p,OCTET:m,DQUOTE:h,SP:g,HTAB:_,alphanum:v,reserved:y,unreserved:b,mark:x,escaped:S,LWS:C,SWS:w,HCOLON:T,TEXT_UTF8_TRIM:E,TEXT_UTF8char:D,UTF8_NONASCII:O,UTF8_CONT:k,LHEX:ee,token:A,token_nodot:te,separators:ne,word:re,STAR:ie,SLASH:j,EQUAL:M,LPAREN:ae,RPAREN:oe,RAQUOT:se,LAQUOT:ce,COMMA:N,SEMI:P,COLON:le,LDQUOT:ue,RDQUOT:de,comment:fe,ctext:pe,quoted_string:me,quoted_string_clean:he,qdtext:ge,quoted_pair:_e,SIP_URI_noparams:ve,SIP_URI:ye,uri_scheme:be,uri_scheme_sips:xe,uri_scheme_sip:Se,userinfo:Ce,user:we,user_unreserved:Te,password:Ee,hostport:De,host:Oe,hostname:ke,domainlabel:Ae,toplabel:je,IPv6reference:Me,IPv6address:Ne,h16:F,ls32:Pe,IPv4address:Fe,dec_octet:Ie,port:Le,uri_parameters:Re,uri_parameter:ze,transport_param:Be,user_param:Ve,method_param:He,ttl_param:Ue,maddr_param:We,lr_param:Ge,other_param:Ke,pname:qe,pvalue:Je,paramchar:Ye,param_unreserved:Xe,headers:Ze,header:Qe,hname:$e,hvalue:et,hnv_unreserved:tt,Request_Response:nt,Request_Line:rt,Request_URI:it,absoluteURI:at,hier_part:ot,net_path:st,abs_path:ct,opaque_part:lt,uric:ut,uric_no_slash:dt,path_segments:ft,segment:pt,param:mt,pchar:ht,scheme:gt,authority:_t,srvr:vt,reg_name:yt,query:bt,SIP_Version:xt,INVITEm:St,ACKm:Ct,OPTIONSm:wt,BYEm:Tt,CANCELm:Et,REGISTERm:Dt,SUBSCRIBEm:Ot,NOTIFYm:kt,REFERm:At,Method:jt,Status_Line:Mt,Status_Code:Nt,extension_code:Pt,Reason_Phrase:Ft,Allow_Events:It,Call_ID:Lt,Contact:Rt,contact_param:zt,name_addr:Bt,display_name:Vt,contact_params:Ht,c_p_q:Ut,c_p_expires:Wt,delta_seconds:Gt,qvalue:Kt,generic_param:qt,gen_value:Jt,Content_Disposition:Yt,disp_type:Xt,disp_param:Zt,handling_param:Qt,Content_Encoding:$t,Content_Length:en,Content_Type:tn,media_type:nn,m_type:rn,discrete_type:an,composite_type:on,extension_token:sn,x_token:cn,m_subtype:ln,m_parameter:un,m_value:dn,CSeq:fn,CSeq_value:pn,Expires:mn,Event:hn,event_type:gn,From:_n,from_param:vn,tag_param:yn,Max_Forwards:bn,Min_Expires:xn,Name_Addr_Header:Sn,Proxy_Authenticate:Cn,challenge:wn,other_challenge:Tn,auth_param:I,digest_cln:En,realm:Dn,realm_value:On,domain:kn,URI:L,nonce:An,nonce_value:jn,opaque:Mn,stale:Nn,algorithm:R,qop_options:z,qop_value:Pn,Proxy_Require:Fn,Record_Route:In,rec_route:Ln,Reason:Rn,reason_param:zn,reason_cause:Bn,Require:Vn,Route:Hn,route_param:Un,Subscription_State:Wn,substate_value:Gn,subexp_params:Kn,event_reason_value:qn,Subject:Jn,Supported:Yn,To:Xn,to_param:Zn,Via:Qn,via_param:$n,via_params:er,via_ttl:tr,via_maddr:nr,via_received:rr,via_branch:B,response_port:ir,rport:ar,sent_protocol:or,protocol_name:sr,transport:cr,sent_by:lr,via_host:ur,via_port:dr,ttl:fr,WWW_Authenticate:pr,Session_Expires:mr,s_e_expires:hr,s_e_params:gr,s_e_refresher:_r,extension_header:vr,header_value:yr,message_body:br,uuid_URI:xr,uuid:Sr,hex4:Cr,hex8:wr,hex12:Tr,Refer_To:Er,Replaces:Dr,call_id:Or,replaces_param:kr,to_tag:Ar,from_tag:jr,early_flag:Mr};if(n!==void 0){if(r[n]===void 0)throw Error(`Invalid rule name: `+e(n)+`.`)}else n=`CRLF`;var i=0,a=0,o=0,s=[];function c(e){i<o||(i>o&&(o=i,s=[]),s.push(e))}function l(){var e;return t.substr(i,2)===`\r
38
+ `?(e=`\r
39
+ `,i+=2):(e=null,a===0&&c(`"\\r\\n"`)),e}function u(){var e;return/^[0-9]/.test(t.charAt(i))?(e=t.charAt(i),i++):(e=null,a===0&&c(`[0-9]`)),e}function d(){var e;return/^[a-zA-Z]/.test(t.charAt(i))?(e=t.charAt(i),i++):(e=null,a===0&&c(`[a-zA-Z]`)),e}function f(){var e;return/^[0-9a-fA-F]/.test(t.charAt(i))?(e=t.charAt(i),i++):(e=null,a===0&&c(`[0-9a-fA-F]`)),e}function p(){var e=g();return e===null&&(e=_()),e}function m(){var e;return/^[\0-\xFF]/.test(t.charAt(i))?(e=t.charAt(i),i++):(e=null,a===0&&c(`[\\0-\\xFF]`)),e}function h(){var e;return/^["]/.test(t.charAt(i))?(e=t.charAt(i),i++):(e=null,a===0&&c(`["]`)),e}function g(){var e;return t.charCodeAt(i)===32?(e=` `,i++):(e=null,a===0&&c(`" "`)),e}function _(){var e;return t.charCodeAt(i)===9?(e=` `,i++):(e=null,a===0&&c(`"\\t"`)),e}function v(){var e;return/^[a-zA-Z0-9]/.test(t.charAt(i))?(e=t.charAt(i),i++):(e=null,a===0&&c(`[a-zA-Z0-9]`)),e}function y(){var e;return t.charCodeAt(i)===59?(e=`;`,i++):(e=null,a===0&&c(`";"`)),e===null&&(t.charCodeAt(i)===47?(e=`/`,i++):(e=null,a===0&&c(`"/"`)),e===null&&(t.charCodeAt(i)===63?(e=`?`,i++):(e=null,a===0&&c(`"?"`)),e===null&&(t.charCodeAt(i)===58?(e=`:`,i++):(e=null,a===0&&c(`":"`)),e===null&&(t.charCodeAt(i)===64?(e=`@`,i++):(e=null,a===0&&c(`"@"`)),e===null&&(t.charCodeAt(i)===38?(e=`&`,i++):(e=null,a===0&&c(`"&"`)),e===null&&(t.charCodeAt(i)===61?(e=`=`,i++):(e=null,a===0&&c(`"="`)),e===null&&(t.charCodeAt(i)===43?(e=`+`,i++):(e=null,a===0&&c(`"+"`)),e===null&&(t.charCodeAt(i)===36?(e=`$`,i++):(e=null,a===0&&c(`"$"`)),e===null&&(t.charCodeAt(i)===44?(e=`,`,i++):(e=null,a===0&&c(`","`))))))))))),e}function b(){var e=v();return e===null&&(e=x()),e}function x(){var e;return t.charCodeAt(i)===45?(e=`-`,i++):(e=null,a===0&&c(`"-"`)),e===null&&(t.charCodeAt(i)===95?(e=`_`,i++):(e=null,a===0&&c(`"_"`)),e===null&&(t.charCodeAt(i)===46?(e=`.`,i++):(e=null,a===0&&c(`"."`)),e===null&&(t.charCodeAt(i)===33?(e=`!`,i++):(e=null,a===0&&c(`"!"`)),e===null&&(t.charCodeAt(i)===126?(e=`~`,i++):(e=null,a===0&&c(`"~"`)),e===null&&(t.charCodeAt(i)===42?(e=`*`,i++):(e=null,a===0&&c(`"*"`)),e===null&&(t.charCodeAt(i)===39?(e=`'`,i++):(e=null,a===0&&c(`"'"`)),e===null&&(t.charCodeAt(i)===40?(e=`(`,i++):(e=null,a===0&&c(`"("`)),e===null&&(t.charCodeAt(i)===41?(e=`)`,i++):(e=null,a===0&&c(`")"`)))))))))),e}function S(){var e,n,r,o=i,s=i;return t.charCodeAt(i)===37?(e=`%`,i++):(e=null,a===0&&c(`"%"`)),e===null?(e=null,i=s):(n=f(),n===null?(e=null,i=s):(r=f(),r===null?(e=null,i=s):e=[e,n,r])),e!==null&&(e=(function(e,t){return t.join(``)})(o,e)),e===null&&(i=o),e}function C(){var e,t,n,r=i,a=i,o=i;for(e=[],t=p();t!==null;)e.push(t),t=p();if(e===null?(e=null,i=o):(t=l(),t===null?(e=null,i=o):e=[e,t]),e=e===null?``:e,e!==null){if(n=p(),n!==null)for(t=[];n!==null;)t.push(n),n=p();else t=null;t===null?(e=null,i=a):e=[e,t]}else e=null,i=a;return e!==null&&(e=(function(e){return` `})(r)),e===null&&(i=r),e}function w(){var e=C();return e=e===null?``:e,e}function T(){var e,n,r,o=i,s=i;for(e=[],n=g(),n===null&&(n=_());n!==null;)e.push(n),n=g(),n===null&&(n=_());return e===null?(e=null,i=s):(t.charCodeAt(i)===58?(n=`:`,i++):(n=null,a===0&&c(`":"`)),n===null?(e=null,i=s):(r=w(),r===null?(e=null,i=s):e=[e,n,r])),e!==null&&(e=(function(e){return`:`})(o)),e===null&&(i=o),e}function E(){var e,n,r,a,o=i,s=i,c;if(n=D(),n!==null)for(e=[];n!==null;)e.push(n),n=D();else e=null;if(e!==null){for(n=[],c=i,r=[],a=C();a!==null;)r.push(a),a=C();for(r===null?(r=null,i=c):(a=D(),a===null?(r=null,i=c):r=[r,a]);r!==null;){for(n.push(r),c=i,r=[],a=C();a!==null;)r.push(a),a=C();r===null?(r=null,i=c):(a=D(),a===null?(r=null,i=c):r=[r,a])}n===null?(e=null,i=s):e=[e,n]}else e=null,i=s;return e!==null&&(e=(function(e){return t.substring(i,e)})(o)),e===null&&(i=o),e}function D(){var e;return/^[!-~]/.test(t.charAt(i))?(e=t.charAt(i),i++):(e=null,a===0&&c(`[!-~]`)),e===null&&(e=O()),e}function O(){var e;return/^[\x80-\uFFFF]/.test(t.charAt(i))?(e=t.charAt(i),i++):(e=null,a===0&&c(`[\\x80-\\uFFFF]`)),e}function k(){var e;return/^[\x80-\xBF]/.test(t.charAt(i))?(e=t.charAt(i),i++):(e=null,a===0&&c(`[\\x80-\\xBF]`)),e}function ee(){var e=u();return e===null&&(/^[a-f]/.test(t.charAt(i))?(e=t.charAt(i),i++):(e=null,a===0&&c(`[a-f]`))),e}function A(){var e,n,r=i;if(n=v(),n===null&&(t.charCodeAt(i)===45?(n=`-`,i++):(n=null,a===0&&c(`"-"`)),n===null&&(t.charCodeAt(i)===46?(n=`.`,i++):(n=null,a===0&&c(`"."`)),n===null&&(t.charCodeAt(i)===33?(n=`!`,i++):(n=null,a===0&&c(`"!"`)),n===null&&(t.charCodeAt(i)===37?(n=`%`,i++):(n=null,a===0&&c(`"%"`)),n===null&&(t.charCodeAt(i)===42?(n=`*`,i++):(n=null,a===0&&c(`"*"`)),n===null&&(t.charCodeAt(i)===95?(n=`_`,i++):(n=null,a===0&&c(`"_"`)),n===null&&(t.charCodeAt(i)===43?(n=`+`,i++):(n=null,a===0&&c(`"+"`)),n===null&&(t.charCodeAt(i)===96?(n="`",i++):(n=null,a===0&&c('"`"')),n===null&&(t.charCodeAt(i)===39?(n=`'`,i++):(n=null,a===0&&c(`"'"`)),n===null&&(t.charCodeAt(i)===126?(n=`~`,i++):(n=null,a===0&&c(`"~"`)))))))))))),n!==null)for(e=[];n!==null;)e.push(n),n=v(),n===null&&(t.charCodeAt(i)===45?(n=`-`,i++):(n=null,a===0&&c(`"-"`)),n===null&&(t.charCodeAt(i)===46?(n=`.`,i++):(n=null,a===0&&c(`"."`)),n===null&&(t.charCodeAt(i)===33?(n=`!`,i++):(n=null,a===0&&c(`"!"`)),n===null&&(t.charCodeAt(i)===37?(n=`%`,i++):(n=null,a===0&&c(`"%"`)),n===null&&(t.charCodeAt(i)===42?(n=`*`,i++):(n=null,a===0&&c(`"*"`)),n===null&&(t.charCodeAt(i)===95?(n=`_`,i++):(n=null,a===0&&c(`"_"`)),n===null&&(t.charCodeAt(i)===43?(n=`+`,i++):(n=null,a===0&&c(`"+"`)),n===null&&(t.charCodeAt(i)===96?(n="`",i++):(n=null,a===0&&c('"`"')),n===null&&(t.charCodeAt(i)===39?(n=`'`,i++):(n=null,a===0&&c(`"'"`)),n===null&&(t.charCodeAt(i)===126?(n=`~`,i++):(n=null,a===0&&c(`"~"`))))))))))));else e=null;return e!==null&&(e=(function(e){return t.substring(i,e)})(r)),e===null&&(i=r),e}function te(){var e,n,r=i;if(n=v(),n===null&&(t.charCodeAt(i)===45?(n=`-`,i++):(n=null,a===0&&c(`"-"`)),n===null&&(t.charCodeAt(i)===33?(n=`!`,i++):(n=null,a===0&&c(`"!"`)),n===null&&(t.charCodeAt(i)===37?(n=`%`,i++):(n=null,a===0&&c(`"%"`)),n===null&&(t.charCodeAt(i)===42?(n=`*`,i++):(n=null,a===0&&c(`"*"`)),n===null&&(t.charCodeAt(i)===95?(n=`_`,i++):(n=null,a===0&&c(`"_"`)),n===null&&(t.charCodeAt(i)===43?(n=`+`,i++):(n=null,a===0&&c(`"+"`)),n===null&&(t.charCodeAt(i)===96?(n="`",i++):(n=null,a===0&&c('"`"')),n===null&&(t.charCodeAt(i)===39?(n=`'`,i++):(n=null,a===0&&c(`"'"`)),n===null&&(t.charCodeAt(i)===126?(n=`~`,i++):(n=null,a===0&&c(`"~"`))))))))))),n!==null)for(e=[];n!==null;)e.push(n),n=v(),n===null&&(t.charCodeAt(i)===45?(n=`-`,i++):(n=null,a===0&&c(`"-"`)),n===null&&(t.charCodeAt(i)===33?(n=`!`,i++):(n=null,a===0&&c(`"!"`)),n===null&&(t.charCodeAt(i)===37?(n=`%`,i++):(n=null,a===0&&c(`"%"`)),n===null&&(t.charCodeAt(i)===42?(n=`*`,i++):(n=null,a===0&&c(`"*"`)),n===null&&(t.charCodeAt(i)===95?(n=`_`,i++):(n=null,a===0&&c(`"_"`)),n===null&&(t.charCodeAt(i)===43?(n=`+`,i++):(n=null,a===0&&c(`"+"`)),n===null&&(t.charCodeAt(i)===96?(n="`",i++):(n=null,a===0&&c('"`"')),n===null&&(t.charCodeAt(i)===39?(n=`'`,i++):(n=null,a===0&&c(`"'"`)),n===null&&(t.charCodeAt(i)===126?(n=`~`,i++):(n=null,a===0&&c(`"~"`)))))))))));else e=null;return e!==null&&(e=(function(e){return t.substring(i,e)})(r)),e===null&&(i=r),e}function ne(){var e;return t.charCodeAt(i)===40?(e=`(`,i++):(e=null,a===0&&c(`"("`)),e===null&&(t.charCodeAt(i)===41?(e=`)`,i++):(e=null,a===0&&c(`")"`)),e===null&&(t.charCodeAt(i)===60?(e=`<`,i++):(e=null,a===0&&c(`"<"`)),e===null&&(t.charCodeAt(i)===62?(e=`>`,i++):(e=null,a===0&&c(`">"`)),e===null&&(t.charCodeAt(i)===64?(e=`@`,i++):(e=null,a===0&&c(`"@"`)),e===null&&(t.charCodeAt(i)===44?(e=`,`,i++):(e=null,a===0&&c(`","`)),e===null&&(t.charCodeAt(i)===59?(e=`;`,i++):(e=null,a===0&&c(`";"`)),e===null&&(t.charCodeAt(i)===58?(e=`:`,i++):(e=null,a===0&&c(`":"`)),e===null&&(t.charCodeAt(i)===92?(e=`\\`,i++):(e=null,a===0&&c(`"\\\\"`)),e===null&&(e=h(),e===null&&(t.charCodeAt(i)===47?(e=`/`,i++):(e=null,a===0&&c(`"/"`)),e===null&&(t.charCodeAt(i)===91?(e=`[`,i++):(e=null,a===0&&c(`"["`)),e===null&&(t.charCodeAt(i)===93?(e=`]`,i++):(e=null,a===0&&c(`"]"`)),e===null&&(t.charCodeAt(i)===63?(e=`?`,i++):(e=null,a===0&&c(`"?"`)),e===null&&(t.charCodeAt(i)===61?(e=`=`,i++):(e=null,a===0&&c(`"="`)),e===null&&(t.charCodeAt(i)===123?(e=`{`,i++):(e=null,a===0&&c(`"{"`)),e===null&&(t.charCodeAt(i)===125?(e=`}`,i++):(e=null,a===0&&c(`"}"`)),e===null&&(e=g(),e===null&&(e=_())))))))))))))))))),e}function re(){var e,n,r=i;if(n=v(),n===null&&(t.charCodeAt(i)===45?(n=`-`,i++):(n=null,a===0&&c(`"-"`)),n===null&&(t.charCodeAt(i)===46?(n=`.`,i++):(n=null,a===0&&c(`"."`)),n===null&&(t.charCodeAt(i)===33?(n=`!`,i++):(n=null,a===0&&c(`"!"`)),n===null&&(t.charCodeAt(i)===37?(n=`%`,i++):(n=null,a===0&&c(`"%"`)),n===null&&(t.charCodeAt(i)===42?(n=`*`,i++):(n=null,a===0&&c(`"*"`)),n===null&&(t.charCodeAt(i)===95?(n=`_`,i++):(n=null,a===0&&c(`"_"`)),n===null&&(t.charCodeAt(i)===43?(n=`+`,i++):(n=null,a===0&&c(`"+"`)),n===null&&(t.charCodeAt(i)===96?(n="`",i++):(n=null,a===0&&c('"`"')),n===null&&(t.charCodeAt(i)===39?(n=`'`,i++):(n=null,a===0&&c(`"'"`)),n===null&&(t.charCodeAt(i)===126?(n=`~`,i++):(n=null,a===0&&c(`"~"`)),n===null&&(t.charCodeAt(i)===40?(n=`(`,i++):(n=null,a===0&&c(`"("`)),n===null&&(t.charCodeAt(i)===41?(n=`)`,i++):(n=null,a===0&&c(`")"`)),n===null&&(t.charCodeAt(i)===60?(n=`<`,i++):(n=null,a===0&&c(`"<"`)),n===null&&(t.charCodeAt(i)===62?(n=`>`,i++):(n=null,a===0&&c(`">"`)),n===null&&(t.charCodeAt(i)===58?(n=`:`,i++):(n=null,a===0&&c(`":"`)),n===null&&(t.charCodeAt(i)===92?(n=`\\`,i++):(n=null,a===0&&c(`"\\\\"`)),n===null&&(n=h(),n===null&&(t.charCodeAt(i)===47?(n=`/`,i++):(n=null,a===0&&c(`"/"`)),n===null&&(t.charCodeAt(i)===91?(n=`[`,i++):(n=null,a===0&&c(`"["`)),n===null&&(t.charCodeAt(i)===93?(n=`]`,i++):(n=null,a===0&&c(`"]"`)),n===null&&(t.charCodeAt(i)===63?(n=`?`,i++):(n=null,a===0&&c(`"?"`)),n===null&&(t.charCodeAt(i)===123?(n=`{`,i++):(n=null,a===0&&c(`"{"`)),n===null&&(t.charCodeAt(i)===125?(n=`}`,i++):(n=null,a===0&&c(`"}"`))))))))))))))))))))))))),n!==null)for(e=[];n!==null;)e.push(n),n=v(),n===null&&(t.charCodeAt(i)===45?(n=`-`,i++):(n=null,a===0&&c(`"-"`)),n===null&&(t.charCodeAt(i)===46?(n=`.`,i++):(n=null,a===0&&c(`"."`)),n===null&&(t.charCodeAt(i)===33?(n=`!`,i++):(n=null,a===0&&c(`"!"`)),n===null&&(t.charCodeAt(i)===37?(n=`%`,i++):(n=null,a===0&&c(`"%"`)),n===null&&(t.charCodeAt(i)===42?(n=`*`,i++):(n=null,a===0&&c(`"*"`)),n===null&&(t.charCodeAt(i)===95?(n=`_`,i++):(n=null,a===0&&c(`"_"`)),n===null&&(t.charCodeAt(i)===43?(n=`+`,i++):(n=null,a===0&&c(`"+"`)),n===null&&(t.charCodeAt(i)===96?(n="`",i++):(n=null,a===0&&c('"`"')),n===null&&(t.charCodeAt(i)===39?(n=`'`,i++):(n=null,a===0&&c(`"'"`)),n===null&&(t.charCodeAt(i)===126?(n=`~`,i++):(n=null,a===0&&c(`"~"`)),n===null&&(t.charCodeAt(i)===40?(n=`(`,i++):(n=null,a===0&&c(`"("`)),n===null&&(t.charCodeAt(i)===41?(n=`)`,i++):(n=null,a===0&&c(`")"`)),n===null&&(t.charCodeAt(i)===60?(n=`<`,i++):(n=null,a===0&&c(`"<"`)),n===null&&(t.charCodeAt(i)===62?(n=`>`,i++):(n=null,a===0&&c(`">"`)),n===null&&(t.charCodeAt(i)===58?(n=`:`,i++):(n=null,a===0&&c(`":"`)),n===null&&(t.charCodeAt(i)===92?(n=`\\`,i++):(n=null,a===0&&c(`"\\\\"`)),n===null&&(n=h(),n===null&&(t.charCodeAt(i)===47?(n=`/`,i++):(n=null,a===0&&c(`"/"`)),n===null&&(t.charCodeAt(i)===91?(n=`[`,i++):(n=null,a===0&&c(`"["`)),n===null&&(t.charCodeAt(i)===93?(n=`]`,i++):(n=null,a===0&&c(`"]"`)),n===null&&(t.charCodeAt(i)===63?(n=`?`,i++):(n=null,a===0&&c(`"?"`)),n===null&&(t.charCodeAt(i)===123?(n=`{`,i++):(n=null,a===0&&c(`"{"`)),n===null&&(t.charCodeAt(i)===125?(n=`}`,i++):(n=null,a===0&&c(`"}"`)))))))))))))))))))))))));else e=null;return e!==null&&(e=(function(e){return t.substring(i,e)})(r)),e===null&&(i=r),e}function ie(){var e,n,r,o=i,s=i;return e=w(),e===null?(e=null,i=s):(t.charCodeAt(i)===42?(n=`*`,i++):(n=null,a===0&&c(`"*"`)),n===null?(e=null,i=s):(r=w(),r===null?(e=null,i=s):e=[e,n,r])),e!==null&&(e=(function(e){return`*`})(o)),e===null&&(i=o),e}function j(){var e,n,r,o=i,s=i;return e=w(),e===null?(e=null,i=s):(t.charCodeAt(i)===47?(n=`/`,i++):(n=null,a===0&&c(`"/"`)),n===null?(e=null,i=s):(r=w(),r===null?(e=null,i=s):e=[e,n,r])),e!==null&&(e=(function(e){return`/`})(o)),e===null&&(i=o),e}function M(){var e,n,r,o=i,s=i;return e=w(),e===null?(e=null,i=s):(t.charCodeAt(i)===61?(n=`=`,i++):(n=null,a===0&&c(`"="`)),n===null?(e=null,i=s):(r=w(),r===null?(e=null,i=s):e=[e,n,r])),e!==null&&(e=(function(e){return`=`})(o)),e===null&&(i=o),e}function ae(){var e,n,r,o=i,s=i;return e=w(),e===null?(e=null,i=s):(t.charCodeAt(i)===40?(n=`(`,i++):(n=null,a===0&&c(`"("`)),n===null?(e=null,i=s):(r=w(),r===null?(e=null,i=s):e=[e,n,r])),e!==null&&(e=(function(e){return`(`})(o)),e===null&&(i=o),e}function oe(){var e,n,r,o=i,s=i;return e=w(),e===null?(e=null,i=s):(t.charCodeAt(i)===41?(n=`)`,i++):(n=null,a===0&&c(`")"`)),n===null?(e=null,i=s):(r=w(),r===null?(e=null,i=s):e=[e,n,r])),e!==null&&(e=(function(e){return`)`})(o)),e===null&&(i=o),e}function se(){var e,n,r=i,o=i;return t.charCodeAt(i)===62?(e=`>`,i++):(e=null,a===0&&c(`">"`)),e===null?(e=null,i=o):(n=w(),n===null?(e=null,i=o):e=[e,n]),e!==null&&(e=(function(e){return`>`})(r)),e===null&&(i=r),e}function ce(){var e,n,r=i,o=i;return e=w(),e===null?(e=null,i=o):(t.charCodeAt(i)===60?(n=`<`,i++):(n=null,a===0&&c(`"<"`)),n===null?(e=null,i=o):e=[e,n]),e!==null&&(e=(function(e){return`<`})(r)),e===null&&(i=r),e}function N(){var e,n,r,o=i,s=i;return e=w(),e===null?(e=null,i=s):(t.charCodeAt(i)===44?(n=`,`,i++):(n=null,a===0&&c(`","`)),n===null?(e=null,i=s):(r=w(),r===null?(e=null,i=s):e=[e,n,r])),e!==null&&(e=(function(e){return`,`})(o)),e===null&&(i=o),e}function P(){var e,n,r,o=i,s=i;return e=w(),e===null?(e=null,i=s):(t.charCodeAt(i)===59?(n=`;`,i++):(n=null,a===0&&c(`";"`)),n===null?(e=null,i=s):(r=w(),r===null?(e=null,i=s):e=[e,n,r])),e!==null&&(e=(function(e){return`;`})(o)),e===null&&(i=o),e}function le(){var e,n,r,o=i,s=i;return e=w(),e===null?(e=null,i=s):(t.charCodeAt(i)===58?(n=`:`,i++):(n=null,a===0&&c(`":"`)),n===null?(e=null,i=s):(r=w(),r===null?(e=null,i=s):e=[e,n,r])),e!==null&&(e=(function(e){return`:`})(o)),e===null&&(i=o),e}function ue(){var e,t,n=i,r=i;return e=w(),e===null?(e=null,i=r):(t=h(),t===null?(e=null,i=r):e=[e,t]),e!==null&&(e=(function(e){return`"`})(n)),e===null&&(i=n),e}function de(){var e,t,n=i,r=i;return e=h(),e===null?(e=null,i=r):(t=w(),t===null?(e=null,i=r):e=[e,t]),e!==null&&(e=(function(e){return`"`})(n)),e===null&&(i=n),e}function fe(){var e,t,n,r=i;if(e=ae(),e!==null){for(t=[],n=pe(),n===null&&(n=_e(),n===null&&(n=fe()));n!==null;)t.push(n),n=pe(),n===null&&(n=_e(),n===null&&(n=fe()));t===null?(e=null,i=r):(n=oe(),n===null?(e=null,i=r):e=[e,t,n])}else e=null,i=r;return e}function pe(){var e;return/^[!-']/.test(t.charAt(i))?(e=t.charAt(i),i++):(e=null,a===0&&c(`[!-']`)),e===null&&(/^[*-[]/.test(t.charAt(i))?(e=t.charAt(i),i++):(e=null,a===0&&c(`[*-[]`)),e===null&&(/^[\]-~]/.test(t.charAt(i))?(e=t.charAt(i),i++):(e=null,a===0&&c(`[\\]-~]`)),e===null&&(e=O(),e===null&&(e=C())))),e}function me(){var e,n,r,a,o=i,s=i;if(e=w(),e!==null)if(n=h(),n!==null){for(r=[],a=ge(),a===null&&(a=_e());a!==null;)r.push(a),a=ge(),a===null&&(a=_e());r===null?(e=null,i=s):(a=h(),a===null?(e=null,i=s):e=[e,n,r,a])}else e=null,i=s;else e=null,i=s;return e!==null&&(e=(function(e){return t.substring(i,e)})(o)),e===null&&(i=o),e}function he(){var e,n,r,a,o=i,s=i;if(e=w(),e!==null)if(n=h(),n!==null){for(r=[],a=ge(),a===null&&(a=_e());a!==null;)r.push(a),a=ge(),a===null&&(a=_e());r===null?(e=null,i=s):(a=h(),a===null?(e=null,i=s):e=[e,n,r,a])}else e=null,i=s;else e=null,i=s;return e!==null&&(e=(function(e){var n=t.substring(i,e).trim();return n.substring(1,n.length-1).replace(/\\([\x00-\x09\x0b-\x0c\x0e-\x7f])/g,`$1`)})(o)),e===null&&(i=o),e}function ge(){var e=C();return e===null&&(t.charCodeAt(i)===33?(e=`!`,i++):(e=null,a===0&&c(`"!"`)),e===null&&(/^[#-[]/.test(t.charAt(i))?(e=t.charAt(i),i++):(e=null,a===0&&c(`[#-[]`)),e===null&&(/^[\]-~]/.test(t.charAt(i))?(e=t.charAt(i),i++):(e=null,a===0&&c(`[\\]-~]`)),e===null&&(e=O())))),e}function _e(){var e,n,r=i;return t.charCodeAt(i)===92?(e=`\\`,i++):(e=null,a===0&&c(`"\\\\"`)),e===null?(e=null,i=r):(/^[\0-\t]/.test(t.charAt(i))?(n=t.charAt(i),i++):(n=null,a===0&&c(`[\\0-\\t]`)),n===null&&(/^[\x0B-\f]/.test(t.charAt(i))?(n=t.charAt(i),i++):(n=null,a===0&&c(`[\\x0B-\\f]`)),n===null&&(/^[\x0E-]/.test(t.charAt(i))?(n=t.charAt(i),i++):(n=null,a===0&&c(`[\\x0E-]`)))),n===null?(e=null,i=r):e=[e,n]),e}function ve(){var e,n,r,o,s=i,l=i;return e=be(),e===null?(e=null,i=l):(t.charCodeAt(i)===58?(n=`:`,i++):(n=null,a===0&&c(`":"`)),n===null?(e=null,i=l):(r=Ce(),r=r===null?``:r,r===null?(e=null,i=l):(o=De(),o===null?(e=null,i=l):e=[e,n,r,o]))),e!==null&&(e=(function(e){try{V.uri=new Fr(V.scheme,V.user,V.host,V.port),delete V.scheme,delete V.user,delete V.host,delete V.host_type,delete V.port}catch{V=-1}})(s)),e===null&&(i=s),e}function ye(){var e,r,o,s,l,u,d=i,f=i;return e=be(),e===null?(e=null,i=f):(t.charCodeAt(i)===58?(r=`:`,i++):(r=null,a===0&&c(`":"`)),r===null?(e=null,i=f):(o=Ce(),o=o===null?``:o,o===null?(e=null,i=f):(s=De(),s===null?(e=null,i=f):(l=Re(),l===null?(e=null,i=f):(u=Ze(),u=u===null?``:u,u===null?(e=null,i=f):e=[e,r,o,s,l,u]))))),e!==null&&(e=(function(e){try{V.uri=new Fr(V.scheme,V.user,V.host,V.port,V.uri_params,V.uri_headers),delete V.scheme,delete V.user,delete V.host,delete V.host_type,delete V.port,delete V.uri_params,n===`SIP_URI`&&(V=V.uri)}catch{V=-1}})(d)),e===null&&(i=d),e}function be(){var e=xe();return e===null&&(e=Se()),e}function xe(){var e,n=i;return t.substr(i,4).toLowerCase()===`sips`?(e=t.substr(i,4),i+=4):(e=null,a===0&&c(`"sips"`)),e!==null&&(e=(function(e,t){V.scheme=t.toLowerCase()})(n,e)),e===null&&(i=n),e}function Se(){var e,n=i;return t.substr(i,3).toLowerCase()===`sip`?(e=t.substr(i,3),i+=3):(e=null,a===0&&c(`"sip"`)),e!==null&&(e=(function(e,t){V.scheme=t.toLowerCase()})(n,e)),e===null&&(i=n),e}function Ce(){var e,n,r,o=i,s=i,l;return e=we(),e===null?(e=null,i=s):(l=i,t.charCodeAt(i)===58?(n=`:`,i++):(n=null,a===0&&c(`":"`)),n===null?(n=null,i=l):(r=Ee(),r===null?(n=null,i=l):n=[n,r]),n=n===null?``:n,n===null?(e=null,i=s):(t.charCodeAt(i)===64?(r=`@`,i++):(r=null,a===0&&c(`"@"`)),r===null?(e=null,i=s):e=[e,n,r])),e!==null&&(e=(function(e){V.user=decodeURIComponent(t.substring(i-1,e))})(o)),e===null&&(i=o),e}function we(){var e,t=b();if(t===null&&(t=S(),t===null&&(t=Te())),t!==null)for(e=[];t!==null;)e.push(t),t=b(),t===null&&(t=S(),t===null&&(t=Te()));else e=null;return e}function Te(){var e;return t.charCodeAt(i)===38?(e=`&`,i++):(e=null,a===0&&c(`"&"`)),e===null&&(t.charCodeAt(i)===61?(e=`=`,i++):(e=null,a===0&&c(`"="`)),e===null&&(t.charCodeAt(i)===43?(e=`+`,i++):(e=null,a===0&&c(`"+"`)),e===null&&(t.charCodeAt(i)===36?(e=`$`,i++):(e=null,a===0&&c(`"$"`)),e===null&&(t.charCodeAt(i)===44?(e=`,`,i++):(e=null,a===0&&c(`","`)),e===null&&(t.charCodeAt(i)===59?(e=`;`,i++):(e=null,a===0&&c(`";"`)),e===null&&(t.charCodeAt(i)===63?(e=`?`,i++):(e=null,a===0&&c(`"?"`)),e===null&&(t.charCodeAt(i)===47?(e=`/`,i++):(e=null,a===0&&c(`"/"`))))))))),e}function Ee(){var e,n,r=i;for(e=[],n=b(),n===null&&(n=S(),n===null&&(t.charCodeAt(i)===38?(n=`&`,i++):(n=null,a===0&&c(`"&"`)),n===null&&(t.charCodeAt(i)===61?(n=`=`,i++):(n=null,a===0&&c(`"="`)),n===null&&(t.charCodeAt(i)===43?(n=`+`,i++):(n=null,a===0&&c(`"+"`)),n===null&&(t.charCodeAt(i)===36?(n=`$`,i++):(n=null,a===0&&c(`"$"`)),n===null&&(t.charCodeAt(i)===44?(n=`,`,i++):(n=null,a===0&&c(`","`))))))));n!==null;)e.push(n),n=b(),n===null&&(n=S(),n===null&&(t.charCodeAt(i)===38?(n=`&`,i++):(n=null,a===0&&c(`"&"`)),n===null&&(t.charCodeAt(i)===61?(n=`=`,i++):(n=null,a===0&&c(`"="`)),n===null&&(t.charCodeAt(i)===43?(n=`+`,i++):(n=null,a===0&&c(`"+"`)),n===null&&(t.charCodeAt(i)===36?(n=`$`,i++):(n=null,a===0&&c(`"$"`)),n===null&&(t.charCodeAt(i)===44?(n=`,`,i++):(n=null,a===0&&c(`","`))))))));return e!==null&&(e=(function(e){V.password=t.substring(i,e)})(r)),e===null&&(i=r),e}function De(){var e,n,r,o=i,s;return e=Oe(),e===null?(e=null,i=o):(s=i,t.charCodeAt(i)===58?(n=`:`,i++):(n=null,a===0&&c(`":"`)),n===null?(n=null,i=s):(r=Le(),r===null?(n=null,i=s):n=[n,r]),n=n===null?``:n,n===null?(e=null,i=o):e=[e,n]),e}function Oe(){var e,n=i;return e=ke(),e===null&&(e=Fe(),e===null&&(e=Me())),e!==null&&(e=(function(e){return V.host=t.substring(i,e).toLowerCase(),V.host})(n)),e===null&&(i=n),e}function ke(){var e,n,r,o=i,s=i,l;for(e=[],l=i,n=Ae(),n===null?(n=null,i=l):(t.charCodeAt(i)===46?(r=`.`,i++):(r=null,a===0&&c(`"."`)),r===null?(n=null,i=l):n=[n,r]);n!==null;)e.push(n),l=i,n=Ae(),n===null?(n=null,i=l):(t.charCodeAt(i)===46?(r=`.`,i++):(r=null,a===0&&c(`"."`)),r===null?(n=null,i=l):n=[n,r]);return e===null?(e=null,i=s):(n=je(),n===null?(e=null,i=s):(t.charCodeAt(i)===46?(r=`.`,i++):(r=null,a===0&&c(`"."`)),r=r===null?``:r,r===null?(e=null,i=s):e=[e,n,r])),e!==null&&(e=(function(e){return V.host_type=`domain`,t.substring(i,e)})(o)),e===null&&(i=o),e}function Ae(){var e,n,r,o=i;if(e=v(),e!==null){for(n=[],r=v(),r===null&&(t.charCodeAt(i)===45?(r=`-`,i++):(r=null,a===0&&c(`"-"`)),r===null&&(t.charCodeAt(i)===95?(r=`_`,i++):(r=null,a===0&&c(`"_"`))));r!==null;)n.push(r),r=v(),r===null&&(t.charCodeAt(i)===45?(r=`-`,i++):(r=null,a===0&&c(`"-"`)),r===null&&(t.charCodeAt(i)===95?(r=`_`,i++):(r=null,a===0&&c(`"_"`))));n===null?(e=null,i=o):e=[e,n]}else e=null,i=o;return e}function je(){var e,n,r,o=i;if(e=d(),e!==null){for(n=[],r=v(),r===null&&(t.charCodeAt(i)===45?(r=`-`,i++):(r=null,a===0&&c(`"-"`)),r===null&&(t.charCodeAt(i)===95?(r=`_`,i++):(r=null,a===0&&c(`"_"`))));r!==null;)n.push(r),r=v(),r===null&&(t.charCodeAt(i)===45?(r=`-`,i++):(r=null,a===0&&c(`"-"`)),r===null&&(t.charCodeAt(i)===95?(r=`_`,i++):(r=null,a===0&&c(`"_"`))));n===null?(e=null,i=o):e=[e,n]}else e=null,i=o;return e}function Me(){var e,n,r,o=i,s=i;return t.charCodeAt(i)===91?(e=`[`,i++):(e=null,a===0&&c(`"["`)),e===null?(e=null,i=s):(n=Ne(),n===null?(e=null,i=s):(t.charCodeAt(i)===93?(r=`]`,i++):(r=null,a===0&&c(`"]"`)),r===null?(e=null,i=s):e=[e,n,r])),e!==null&&(e=(function(e){return V.host_type=`IPv6`,t.substring(i,e)})(o)),e===null&&(i=o),e}function Ne(){var e,n,r,o,s,l,u,d,f,p,m,h,g,_=i,v=i,y;return e=F(),e===null?(e=null,i=v):(t.charCodeAt(i)===58?(n=`:`,i++):(n=null,a===0&&c(`":"`)),n===null?(e=null,i=v):(r=F(),r===null?(e=null,i=v):(t.charCodeAt(i)===58?(o=`:`,i++):(o=null,a===0&&c(`":"`)),o===null?(e=null,i=v):(s=F(),s===null?(e=null,i=v):(t.charCodeAt(i)===58?(l=`:`,i++):(l=null,a===0&&c(`":"`)),l===null?(e=null,i=v):(u=F(),u===null?(e=null,i=v):(t.charCodeAt(i)===58?(d=`:`,i++):(d=null,a===0&&c(`":"`)),d===null?(e=null,i=v):(f=F(),f===null?(e=null,i=v):(t.charCodeAt(i)===58?(p=`:`,i++):(p=null,a===0&&c(`":"`)),p===null?(e=null,i=v):(m=F(),m===null?(e=null,i=v):(t.charCodeAt(i)===58?(h=`:`,i++):(h=null,a===0&&c(`":"`)),h===null?(e=null,i=v):(g=Pe(),g===null?(e=null,i=v):e=[e,n,r,o,s,l,u,d,f,p,m,h,g])))))))))))),e===null&&(v=i,t.substr(i,2)===`::`?(e=`::`,i+=2):(e=null,a===0&&c(`"::"`)),e===null?(e=null,i=v):(n=F(),n===null?(e=null,i=v):(t.charCodeAt(i)===58?(r=`:`,i++):(r=null,a===0&&c(`":"`)),r===null?(e=null,i=v):(o=F(),o===null?(e=null,i=v):(t.charCodeAt(i)===58?(s=`:`,i++):(s=null,a===0&&c(`":"`)),s===null?(e=null,i=v):(l=F(),l===null?(e=null,i=v):(t.charCodeAt(i)===58?(u=`:`,i++):(u=null,a===0&&c(`":"`)),u===null?(e=null,i=v):(d=F(),d===null?(e=null,i=v):(t.charCodeAt(i)===58?(f=`:`,i++):(f=null,a===0&&c(`":"`)),f===null?(e=null,i=v):(p=F(),p===null?(e=null,i=v):(t.charCodeAt(i)===58?(m=`:`,i++):(m=null,a===0&&c(`":"`)),m===null?(e=null,i=v):(h=Pe(),h===null?(e=null,i=v):e=[e,n,r,o,s,l,u,d,f,p,m,h]))))))))))),e===null&&(v=i,t.substr(i,2)===`::`?(e=`::`,i+=2):(e=null,a===0&&c(`"::"`)),e===null?(e=null,i=v):(n=F(),n===null?(e=null,i=v):(t.charCodeAt(i)===58?(r=`:`,i++):(r=null,a===0&&c(`":"`)),r===null?(e=null,i=v):(o=F(),o===null?(e=null,i=v):(t.charCodeAt(i)===58?(s=`:`,i++):(s=null,a===0&&c(`":"`)),s===null?(e=null,i=v):(l=F(),l===null?(e=null,i=v):(t.charCodeAt(i)===58?(u=`:`,i++):(u=null,a===0&&c(`":"`)),u===null?(e=null,i=v):(d=F(),d===null?(e=null,i=v):(t.charCodeAt(i)===58?(f=`:`,i++):(f=null,a===0&&c(`":"`)),f===null?(e=null,i=v):(p=Pe(),p===null?(e=null,i=v):e=[e,n,r,o,s,l,u,d,f,p]))))))))),e===null&&(v=i,t.substr(i,2)===`::`?(e=`::`,i+=2):(e=null,a===0&&c(`"::"`)),e===null?(e=null,i=v):(n=F(),n===null?(e=null,i=v):(t.charCodeAt(i)===58?(r=`:`,i++):(r=null,a===0&&c(`":"`)),r===null?(e=null,i=v):(o=F(),o===null?(e=null,i=v):(t.charCodeAt(i)===58?(s=`:`,i++):(s=null,a===0&&c(`":"`)),s===null?(e=null,i=v):(l=F(),l===null?(e=null,i=v):(t.charCodeAt(i)===58?(u=`:`,i++):(u=null,a===0&&c(`":"`)),u===null?(e=null,i=v):(d=Pe(),d===null?(e=null,i=v):e=[e,n,r,o,s,l,u,d]))))))),e===null&&(v=i,t.substr(i,2)===`::`?(e=`::`,i+=2):(e=null,a===0&&c(`"::"`)),e===null?(e=null,i=v):(n=F(),n===null?(e=null,i=v):(t.charCodeAt(i)===58?(r=`:`,i++):(r=null,a===0&&c(`":"`)),r===null?(e=null,i=v):(o=F(),o===null?(e=null,i=v):(t.charCodeAt(i)===58?(s=`:`,i++):(s=null,a===0&&c(`":"`)),s===null?(e=null,i=v):(l=Pe(),l===null?(e=null,i=v):e=[e,n,r,o,s,l]))))),e===null&&(v=i,t.substr(i,2)===`::`?(e=`::`,i+=2):(e=null,a===0&&c(`"::"`)),e===null?(e=null,i=v):(n=F(),n===null?(e=null,i=v):(t.charCodeAt(i)===58?(r=`:`,i++):(r=null,a===0&&c(`":"`)),r===null?(e=null,i=v):(o=Pe(),o===null?(e=null,i=v):e=[e,n,r,o]))),e===null&&(v=i,t.substr(i,2)===`::`?(e=`::`,i+=2):(e=null,a===0&&c(`"::"`)),e===null?(e=null,i=v):(n=Pe(),n===null?(e=null,i=v):e=[e,n]),e===null&&(v=i,t.substr(i,2)===`::`?(e=`::`,i+=2):(e=null,a===0&&c(`"::"`)),e===null?(e=null,i=v):(n=F(),n===null?(e=null,i=v):e=[e,n]),e===null&&(v=i,e=F(),e===null?(e=null,i=v):(t.substr(i,2)===`::`?(n=`::`,i+=2):(n=null,a===0&&c(`"::"`)),n===null?(e=null,i=v):(r=F(),r===null?(e=null,i=v):(t.charCodeAt(i)===58?(o=`:`,i++):(o=null,a===0&&c(`":"`)),o===null?(e=null,i=v):(s=F(),s===null?(e=null,i=v):(t.charCodeAt(i)===58?(l=`:`,i++):(l=null,a===0&&c(`":"`)),l===null?(e=null,i=v):(u=F(),u===null?(e=null,i=v):(t.charCodeAt(i)===58?(d=`:`,i++):(d=null,a===0&&c(`":"`)),d===null?(e=null,i=v):(f=F(),f===null?(e=null,i=v):(t.charCodeAt(i)===58?(p=`:`,i++):(p=null,a===0&&c(`":"`)),p===null?(e=null,i=v):(m=Pe(),m===null?(e=null,i=v):e=[e,n,r,o,s,l,u,d,f,p,m])))))))))),e===null&&(v=i,e=F(),e===null?(e=null,i=v):(y=i,t.charCodeAt(i)===58?(n=`:`,i++):(n=null,a===0&&c(`":"`)),n===null?(n=null,i=y):(r=F(),r===null?(n=null,i=y):n=[n,r]),n=n===null?``:n,n===null?(e=null,i=v):(t.substr(i,2)===`::`?(r=`::`,i+=2):(r=null,a===0&&c(`"::"`)),r===null?(e=null,i=v):(o=F(),o===null?(e=null,i=v):(t.charCodeAt(i)===58?(s=`:`,i++):(s=null,a===0&&c(`":"`)),s===null?(e=null,i=v):(l=F(),l===null?(e=null,i=v):(t.charCodeAt(i)===58?(u=`:`,i++):(u=null,a===0&&c(`":"`)),u===null?(e=null,i=v):(d=F(),d===null?(e=null,i=v):(t.charCodeAt(i)===58?(f=`:`,i++):(f=null,a===0&&c(`":"`)),f===null?(e=null,i=v):(p=Pe(),p===null?(e=null,i=v):e=[e,n,r,o,s,l,u,d,f,p]))))))))),e===null&&(v=i,e=F(),e===null?(e=null,i=v):(y=i,t.charCodeAt(i)===58?(n=`:`,i++):(n=null,a===0&&c(`":"`)),n===null?(n=null,i=y):(r=F(),r===null?(n=null,i=y):n=[n,r]),n=n===null?``:n,n===null?(e=null,i=v):(y=i,t.charCodeAt(i)===58?(r=`:`,i++):(r=null,a===0&&c(`":"`)),r===null?(r=null,i=y):(o=F(),o===null?(r=null,i=y):r=[r,o]),r=r===null?``:r,r===null?(e=null,i=v):(t.substr(i,2)===`::`?(o=`::`,i+=2):(o=null,a===0&&c(`"::"`)),o===null?(e=null,i=v):(s=F(),s===null?(e=null,i=v):(t.charCodeAt(i)===58?(l=`:`,i++):(l=null,a===0&&c(`":"`)),l===null?(e=null,i=v):(u=F(),u===null?(e=null,i=v):(t.charCodeAt(i)===58?(d=`:`,i++):(d=null,a===0&&c(`":"`)),d===null?(e=null,i=v):(f=Pe(),f===null?(e=null,i=v):e=[e,n,r,o,s,l,u,d,f])))))))),e===null&&(v=i,e=F(),e===null?(e=null,i=v):(y=i,t.charCodeAt(i)===58?(n=`:`,i++):(n=null,a===0&&c(`":"`)),n===null?(n=null,i=y):(r=F(),r===null?(n=null,i=y):n=[n,r]),n=n===null?``:n,n===null?(e=null,i=v):(y=i,t.charCodeAt(i)===58?(r=`:`,i++):(r=null,a===0&&c(`":"`)),r===null?(r=null,i=y):(o=F(),o===null?(r=null,i=y):r=[r,o]),r=r===null?``:r,r===null?(e=null,i=v):(y=i,t.charCodeAt(i)===58?(o=`:`,i++):(o=null,a===0&&c(`":"`)),o===null?(o=null,i=y):(s=F(),s===null?(o=null,i=y):o=[o,s]),o=o===null?``:o,o===null?(e=null,i=v):(t.substr(i,2)===`::`?(s=`::`,i+=2):(s=null,a===0&&c(`"::"`)),s===null?(e=null,i=v):(l=F(),l===null?(e=null,i=v):(t.charCodeAt(i)===58?(u=`:`,i++):(u=null,a===0&&c(`":"`)),u===null?(e=null,i=v):(d=Pe(),d===null?(e=null,i=v):e=[e,n,r,o,s,l,u,d]))))))),e===null&&(v=i,e=F(),e===null?(e=null,i=v):(y=i,t.charCodeAt(i)===58?(n=`:`,i++):(n=null,a===0&&c(`":"`)),n===null?(n=null,i=y):(r=F(),r===null?(n=null,i=y):n=[n,r]),n=n===null?``:n,n===null?(e=null,i=v):(y=i,t.charCodeAt(i)===58?(r=`:`,i++):(r=null,a===0&&c(`":"`)),r===null?(r=null,i=y):(o=F(),o===null?(r=null,i=y):r=[r,o]),r=r===null?``:r,r===null?(e=null,i=v):(y=i,t.charCodeAt(i)===58?(o=`:`,i++):(o=null,a===0&&c(`":"`)),o===null?(o=null,i=y):(s=F(),s===null?(o=null,i=y):o=[o,s]),o=o===null?``:o,o===null?(e=null,i=v):(y=i,t.charCodeAt(i)===58?(s=`:`,i++):(s=null,a===0&&c(`":"`)),s===null?(s=null,i=y):(l=F(),l===null?(s=null,i=y):s=[s,l]),s=s===null?``:s,s===null?(e=null,i=v):(t.substr(i,2)===`::`?(l=`::`,i+=2):(l=null,a===0&&c(`"::"`)),l===null?(e=null,i=v):(u=Pe(),u===null?(e=null,i=v):e=[e,n,r,o,s,l,u])))))),e===null&&(v=i,e=F(),e===null?(e=null,i=v):(y=i,t.charCodeAt(i)===58?(n=`:`,i++):(n=null,a===0&&c(`":"`)),n===null?(n=null,i=y):(r=F(),r===null?(n=null,i=y):n=[n,r]),n=n===null?``:n,n===null?(e=null,i=v):(y=i,t.charCodeAt(i)===58?(r=`:`,i++):(r=null,a===0&&c(`":"`)),r===null?(r=null,i=y):(o=F(),o===null?(r=null,i=y):r=[r,o]),r=r===null?``:r,r===null?(e=null,i=v):(y=i,t.charCodeAt(i)===58?(o=`:`,i++):(o=null,a===0&&c(`":"`)),o===null?(o=null,i=y):(s=F(),s===null?(o=null,i=y):o=[o,s]),o=o===null?``:o,o===null?(e=null,i=v):(y=i,t.charCodeAt(i)===58?(s=`:`,i++):(s=null,a===0&&c(`":"`)),s===null?(s=null,i=y):(l=F(),l===null?(s=null,i=y):s=[s,l]),s=s===null?``:s,s===null?(e=null,i=v):(y=i,t.charCodeAt(i)===58?(l=`:`,i++):(l=null,a===0&&c(`":"`)),l===null?(l=null,i=y):(u=F(),u===null?(l=null,i=y):l=[l,u]),l=l===null?``:l,l===null?(e=null,i=v):(t.substr(i,2)===`::`?(u=`::`,i+=2):(u=null,a===0&&c(`"::"`)),u===null?(e=null,i=v):(d=F(),d===null?(e=null,i=v):e=[e,n,r,o,s,l,u,d]))))))),e===null&&(v=i,e=F(),e===null?(e=null,i=v):(y=i,t.charCodeAt(i)===58?(n=`:`,i++):(n=null,a===0&&c(`":"`)),n===null?(n=null,i=y):(r=F(),r===null?(n=null,i=y):n=[n,r]),n=n===null?``:n,n===null?(e=null,i=v):(y=i,t.charCodeAt(i)===58?(r=`:`,i++):(r=null,a===0&&c(`":"`)),r===null?(r=null,i=y):(o=F(),o===null?(r=null,i=y):r=[r,o]),r=r===null?``:r,r===null?(e=null,i=v):(y=i,t.charCodeAt(i)===58?(o=`:`,i++):(o=null,a===0&&c(`":"`)),o===null?(o=null,i=y):(s=F(),s===null?(o=null,i=y):o=[o,s]),o=o===null?``:o,o===null?(e=null,i=v):(y=i,t.charCodeAt(i)===58?(s=`:`,i++):(s=null,a===0&&c(`":"`)),s===null?(s=null,i=y):(l=F(),l===null?(s=null,i=y):s=[s,l]),s=s===null?``:s,s===null?(e=null,i=v):(y=i,t.charCodeAt(i)===58?(l=`:`,i++):(l=null,a===0&&c(`":"`)),l===null?(l=null,i=y):(u=F(),u===null?(l=null,i=y):l=[l,u]),l=l===null?``:l,l===null?(e=null,i=v):(y=i,t.charCodeAt(i)===58?(u=`:`,i++):(u=null,a===0&&c(`":"`)),u===null?(u=null,i=y):(d=F(),d===null?(u=null,i=y):u=[u,d]),u=u===null?``:u,u===null?(e=null,i=v):(t.substr(i,2)===`::`?(d=`::`,i+=2):(d=null,a===0&&c(`"::"`)),d===null?(e=null,i=v):e=[e,n,r,o,s,l,u,d]))))))))))))))))))))),e!==null&&(e=(function(e){return V.host_type=`IPv6`,t.substring(i,e)})(_)),e===null&&(i=_),e}function F(){var e,t,n,r,a=i;return e=f(),e===null?(e=null,i=a):(t=f(),t=t===null?``:t,t===null?(e=null,i=a):(n=f(),n=n===null?``:n,n===null?(e=null,i=a):(r=f(),r=r===null?``:r,r===null?(e=null,i=a):e=[e,t,n,r]))),e}function Pe(){var e,n,r,o=i;return e=F(),e===null?(e=null,i=o):(t.charCodeAt(i)===58?(n=`:`,i++):(n=null,a===0&&c(`":"`)),n===null?(e=null,i=o):(r=F(),r===null?(e=null,i=o):e=[e,n,r])),e===null&&(e=Fe()),e}function Fe(){var e,n,r,o,s,l,u,d=i,f=i;return e=Ie(),e===null?(e=null,i=f):(t.charCodeAt(i)===46?(n=`.`,i++):(n=null,a===0&&c(`"."`)),n===null?(e=null,i=f):(r=Ie(),r===null?(e=null,i=f):(t.charCodeAt(i)===46?(o=`.`,i++):(o=null,a===0&&c(`"."`)),o===null?(e=null,i=f):(s=Ie(),s===null?(e=null,i=f):(t.charCodeAt(i)===46?(l=`.`,i++):(l=null,a===0&&c(`"."`)),l===null?(e=null,i=f):(u=Ie(),u===null?(e=null,i=f):e=[e,n,r,o,s,l,u])))))),e!==null&&(e=(function(e){return V.host_type=`IPv4`,t.substring(i,e)})(d)),e===null&&(i=d),e}function Ie(){var e,n,r,o=i;return t.substr(i,2)===`25`?(e=`25`,i+=2):(e=null,a===0&&c(`"25"`)),e===null?(e=null,i=o):(/^[0-5]/.test(t.charAt(i))?(n=t.charAt(i),i++):(n=null,a===0&&c(`[0-5]`)),n===null?(e=null,i=o):e=[e,n]),e===null&&(o=i,t.charCodeAt(i)===50?(e=`2`,i++):(e=null,a===0&&c(`"2"`)),e===null?(e=null,i=o):(/^[0-4]/.test(t.charAt(i))?(n=t.charAt(i),i++):(n=null,a===0&&c(`[0-4]`)),n===null?(e=null,i=o):(r=u(),r===null?(e=null,i=o):e=[e,n,r])),e===null&&(o=i,t.charCodeAt(i)===49?(e=`1`,i++):(e=null,a===0&&c(`"1"`)),e===null?(e=null,i=o):(n=u(),n===null?(e=null,i=o):(r=u(),r===null?(e=null,i=o):e=[e,n,r])),e===null&&(o=i,/^[1-9]/.test(t.charAt(i))?(e=t.charAt(i),i++):(e=null,a===0&&c(`[1-9]`)),e===null?(e=null,i=o):(n=u(),n===null?(e=null,i=o):e=[e,n]),e===null&&(e=u())))),e}function Le(){var e,t,n,r,a,o=i,s=i;return e=u(),e=e===null?``:e,e===null?(e=null,i=s):(t=u(),t=t===null?``:t,t===null?(e=null,i=s):(n=u(),n=n===null?``:n,n===null?(e=null,i=s):(r=u(),r=r===null?``:r,r===null?(e=null,i=s):(a=u(),a=a===null?``:a,a===null?(e=null,i=s):e=[e,t,n,r,a])))),e!==null&&(e=(function(e,t){return t=parseInt(t.join(``)),V.port=t,t})(o,e)),e===null&&(i=o),e}function Re(){var e=[],n,r,o=i;for(t.charCodeAt(i)===59?(n=`;`,i++):(n=null,a===0&&c(`";"`)),n===null?(n=null,i=o):(r=ze(),r===null?(n=null,i=o):n=[n,r]);n!==null;)e.push(n),o=i,t.charCodeAt(i)===59?(n=`;`,i++):(n=null,a===0&&c(`";"`)),n===null?(n=null,i=o):(r=ze(),r===null?(n=null,i=o):n=[n,r]);return e}function ze(){var e=Be();return e===null&&(e=Ve(),e===null&&(e=He(),e===null&&(e=Ue(),e===null&&(e=We(),e===null&&(e=Ge(),e===null&&(e=Ke())))))),e}function Be(){var e,n,r=i,o=i;return t.substr(i,10).toLowerCase()===`transport=`?(e=t.substr(i,10),i+=10):(e=null,a===0&&c(`"transport="`)),e===null?(e=null,i=o):(t.substr(i,3).toLowerCase()===`udp`?(n=t.substr(i,3),i+=3):(n=null,a===0&&c(`"udp"`)),n===null&&(t.substr(i,3).toLowerCase()===`tcp`?(n=t.substr(i,3),i+=3):(n=null,a===0&&c(`"tcp"`)),n===null&&(t.substr(i,4).toLowerCase()===`sctp`?(n=t.substr(i,4),i+=4):(n=null,a===0&&c(`"sctp"`)),n===null&&(t.substr(i,3).toLowerCase()===`tls`?(n=t.substr(i,3),i+=3):(n=null,a===0&&c(`"tls"`)),n===null&&(n=A())))),n===null?(e=null,i=o):e=[e,n]),e!==null&&(e=(function(e,t){V.uri_params||={},V.uri_params.transport=t.toLowerCase()})(r,e[1])),e===null&&(i=r),e}function Ve(){var e,n,r=i,o=i;return t.substr(i,5).toLowerCase()===`user=`?(e=t.substr(i,5),i+=5):(e=null,a===0&&c(`"user="`)),e===null?(e=null,i=o):(t.substr(i,5).toLowerCase()===`phone`?(n=t.substr(i,5),i+=5):(n=null,a===0&&c(`"phone"`)),n===null&&(t.substr(i,2).toLowerCase()===`ip`?(n=t.substr(i,2),i+=2):(n=null,a===0&&c(`"ip"`)),n===null&&(n=A())),n===null?(e=null,i=o):e=[e,n]),e!==null&&(e=(function(e,t){V.uri_params||={},V.uri_params.user=t.toLowerCase()})(r,e[1])),e===null&&(i=r),e}function He(){var e,n,r=i,o=i;return t.substr(i,7).toLowerCase()===`method=`?(e=t.substr(i,7),i+=7):(e=null,a===0&&c(`"method="`)),e===null?(e=null,i=o):(n=jt(),n===null?(e=null,i=o):e=[e,n]),e!==null&&(e=(function(e,t){V.uri_params||={},V.uri_params.method=t})(r,e[1])),e===null&&(i=r),e}function Ue(){var e,n,r=i,o=i;return t.substr(i,4).toLowerCase()===`ttl=`?(e=t.substr(i,4),i+=4):(e=null,a===0&&c(`"ttl="`)),e===null?(e=null,i=o):(n=fr(),n===null?(e=null,i=o):e=[e,n]),e!==null&&(e=(function(e,t){V.params||={},V.params.ttl=t})(r,e[1])),e===null&&(i=r),e}function We(){var e,n,r=i,o=i;return t.substr(i,6).toLowerCase()===`maddr=`?(e=t.substr(i,6),i+=6):(e=null,a===0&&c(`"maddr="`)),e===null?(e=null,i=o):(n=Oe(),n===null?(e=null,i=o):e=[e,n]),e!==null&&(e=(function(e,t){V.uri_params||={},V.uri_params.maddr=t})(r,e[1])),e===null&&(i=r),e}function Ge(){var e,n,r,o=i,s=i,l;return t.substr(i,2).toLowerCase()===`lr`?(e=t.substr(i,2),i+=2):(e=null,a===0&&c(`"lr"`)),e===null?(e=null,i=s):(l=i,t.charCodeAt(i)===61?(n=`=`,i++):(n=null,a===0&&c(`"="`)),n===null?(n=null,i=l):(r=A(),r===null?(n=null,i=l):n=[n,r]),n=n===null?``:n,n===null?(e=null,i=s):e=[e,n]),e!==null&&(e=(function(e){V.uri_params||={},V.uri_params.lr=void 0})(o)),e===null&&(i=o),e}function Ke(){var e,n,r,o=i,s=i,l;return e=qe(),e===null?(e=null,i=s):(l=i,t.charCodeAt(i)===61?(n=`=`,i++):(n=null,a===0&&c(`"="`)),n===null?(n=null,i=l):(r=Je(),r===null?(n=null,i=l):n=[n,r]),n=n===null?``:n,n===null?(e=null,i=s):e=[e,n]),e!==null&&(e=(function(e,t,n){V.uri_params||={},n=n===void 0?void 0:n[1],V.uri_params[t.toLowerCase()]=n})(o,e[0],e[1])),e===null&&(i=o),e}function qe(){var e,t,n=i;if(t=Ye(),t!==null)for(e=[];t!==null;)e.push(t),t=Ye();else e=null;return e!==null&&(e=(function(e,t){return t.join(``)})(n,e)),e===null&&(i=n),e}function Je(){var e,t,n=i;if(t=Ye(),t!==null)for(e=[];t!==null;)e.push(t),t=Ye();else e=null;return e!==null&&(e=(function(e,t){return t.join(``)})(n,e)),e===null&&(i=n),e}function Ye(){var e=Xe();return e===null&&(e=b(),e===null&&(e=S())),e}function Xe(){var e;return t.charCodeAt(i)===91?(e=`[`,i++):(e=null,a===0&&c(`"["`)),e===null&&(t.charCodeAt(i)===93?(e=`]`,i++):(e=null,a===0&&c(`"]"`)),e===null&&(t.charCodeAt(i)===47?(e=`/`,i++):(e=null,a===0&&c(`"/"`)),e===null&&(t.charCodeAt(i)===58?(e=`:`,i++):(e=null,a===0&&c(`":"`)),e===null&&(t.charCodeAt(i)===38?(e=`&`,i++):(e=null,a===0&&c(`"&"`)),e===null&&(t.charCodeAt(i)===43?(e=`+`,i++):(e=null,a===0&&c(`"+"`)),e===null&&(t.charCodeAt(i)===36?(e=`$`,i++):(e=null,a===0&&c(`"$"`)))))))),e}function Ze(){var e,n,r,o,s,l=i,u;if(t.charCodeAt(i)===63?(e=`?`,i++):(e=null,a===0&&c(`"?"`)),e!==null)if(n=Qe(),n!==null){for(r=[],u=i,t.charCodeAt(i)===38?(o=`&`,i++):(o=null,a===0&&c(`"&"`)),o===null?(o=null,i=u):(s=Qe(),s===null?(o=null,i=u):o=[o,s]);o!==null;)r.push(o),u=i,t.charCodeAt(i)===38?(o=`&`,i++):(o=null,a===0&&c(`"&"`)),o===null?(o=null,i=u):(s=Qe(),s===null?(o=null,i=u):o=[o,s]);r===null?(e=null,i=l):e=[e,n,r]}else e=null,i=l;else e=null,i=l;return e}function Qe(){var e,n,r,o=i,s=i;return e=$e(),e===null?(e=null,i=s):(t.charCodeAt(i)===61?(n=`=`,i++):(n=null,a===0&&c(`"="`)),n===null?(e=null,i=s):(r=et(),r===null?(e=null,i=s):e=[e,n,r])),e!==null&&(e=(function(e,t,n){t=t.join(``).toLowerCase(),n=n.join(``),V.uri_headers||={},V.uri_headers[t]?V.uri_headers[t].push(n):V.uri_headers[t]=[n]})(o,e[0],e[2])),e===null&&(i=o),e}function $e(){var e,t=tt();if(t===null&&(t=b(),t===null&&(t=S())),t!==null)for(e=[];t!==null;)e.push(t),t=tt(),t===null&&(t=b(),t===null&&(t=S()));else e=null;return e}function et(){var e=[],t=tt();for(t===null&&(t=b(),t===null&&(t=S()));t!==null;)e.push(t),t=tt(),t===null&&(t=b(),t===null&&(t=S()));return e}function tt(){var e;return t.charCodeAt(i)===91?(e=`[`,i++):(e=null,a===0&&c(`"["`)),e===null&&(t.charCodeAt(i)===93?(e=`]`,i++):(e=null,a===0&&c(`"]"`)),e===null&&(t.charCodeAt(i)===47?(e=`/`,i++):(e=null,a===0&&c(`"/"`)),e===null&&(t.charCodeAt(i)===63?(e=`?`,i++):(e=null,a===0&&c(`"?"`)),e===null&&(t.charCodeAt(i)===58?(e=`:`,i++):(e=null,a===0&&c(`":"`)),e===null&&(t.charCodeAt(i)===43?(e=`+`,i++):(e=null,a===0&&c(`"+"`)),e===null&&(t.charCodeAt(i)===36?(e=`$`,i++):(e=null,a===0&&c(`"$"`)))))))),e}function nt(){var e=Mt();return e===null&&(e=rt()),e}function rt(){var e,t,n,r,a,o=i;return e=jt(),e===null?(e=null,i=o):(t=g(),t===null?(e=null,i=o):(n=it(),n===null?(e=null,i=o):(r=g(),r===null?(e=null,i=o):(a=xt(),a===null?(e=null,i=o):e=[e,t,n,r,a])))),e}function it(){var e=ye();return e===null&&(e=at()),e}function at(){var e,n,r,o=i;return e=gt(),e===null?(e=null,i=o):(t.charCodeAt(i)===58?(n=`:`,i++):(n=null,a===0&&c(`":"`)),n===null?(e=null,i=o):(r=ot(),r===null&&(r=lt()),r===null?(e=null,i=o):e=[e,n,r])),e}function ot(){var e,n,r,o=i,s;return e=st(),e===null&&(e=ct()),e===null?(e=null,i=o):(s=i,t.charCodeAt(i)===63?(n=`?`,i++):(n=null,a===0&&c(`"?"`)),n===null?(n=null,i=s):(r=bt(),r===null?(n=null,i=s):n=[n,r]),n=n===null?``:n,n===null?(e=null,i=o):e=[e,n]),e}function st(){var e,n,r,o=i;return t.substr(i,2)===`//`?(e=`//`,i+=2):(e=null,a===0&&c(`"//"`)),e===null?(e=null,i=o):(n=_t(),n===null?(e=null,i=o):(r=ct(),r=r===null?``:r,r===null?(e=null,i=o):e=[e,n,r])),e}function ct(){var e,n,r=i;return t.charCodeAt(i)===47?(e=`/`,i++):(e=null,a===0&&c(`"/"`)),e===null?(e=null,i=r):(n=ft(),n===null?(e=null,i=r):e=[e,n]),e}function lt(){var e,t,n,r=i;if(e=dt(),e!==null){for(t=[],n=ut();n!==null;)t.push(n),n=ut();t===null?(e=null,i=r):e=[e,t]}else e=null,i=r;return e}function ut(){var e=y();return e===null&&(e=b(),e===null&&(e=S())),e}function dt(){var e=b();return e===null&&(e=S(),e===null&&(t.charCodeAt(i)===59?(e=`;`,i++):(e=null,a===0&&c(`";"`)),e===null&&(t.charCodeAt(i)===63?(e=`?`,i++):(e=null,a===0&&c(`"?"`)),e===null&&(t.charCodeAt(i)===58?(e=`:`,i++):(e=null,a===0&&c(`":"`)),e===null&&(t.charCodeAt(i)===64?(e=`@`,i++):(e=null,a===0&&c(`"@"`)),e===null&&(t.charCodeAt(i)===38?(e=`&`,i++):(e=null,a===0&&c(`"&"`)),e===null&&(t.charCodeAt(i)===61?(e=`=`,i++):(e=null,a===0&&c(`"="`)),e===null&&(t.charCodeAt(i)===43?(e=`+`,i++):(e=null,a===0&&c(`"+"`)),e===null&&(t.charCodeAt(i)===36?(e=`$`,i++):(e=null,a===0&&c(`"$"`)),e===null&&(t.charCodeAt(i)===44?(e=`,`,i++):(e=null,a===0&&c(`","`)))))))))))),e}function ft(){var e,n,r,o,s=i,l;if(e=pt(),e!==null){for(n=[],l=i,t.charCodeAt(i)===47?(r=`/`,i++):(r=null,a===0&&c(`"/"`)),r===null?(r=null,i=l):(o=pt(),o===null?(r=null,i=l):r=[r,o]);r!==null;)n.push(r),l=i,t.charCodeAt(i)===47?(r=`/`,i++):(r=null,a===0&&c(`"/"`)),r===null?(r=null,i=l):(o=pt(),o===null?(r=null,i=l):r=[r,o]);n===null?(e=null,i=s):e=[e,n]}else e=null,i=s;return e}function pt(){var e,n,r,o,s=i,l;for(e=[],n=ht();n!==null;)e.push(n),n=ht();if(e!==null){for(n=[],l=i,t.charCodeAt(i)===59?(r=`;`,i++):(r=null,a===0&&c(`";"`)),r===null?(r=null,i=l):(o=mt(),o===null?(r=null,i=l):r=[r,o]);r!==null;)n.push(r),l=i,t.charCodeAt(i)===59?(r=`;`,i++):(r=null,a===0&&c(`";"`)),r===null?(r=null,i=l):(o=mt(),o===null?(r=null,i=l):r=[r,o]);n===null?(e=null,i=s):e=[e,n]}else e=null,i=s;return e}function mt(){for(var e=[],t=ht();t!==null;)e.push(t),t=ht();return e}function ht(){var e=b();return e===null&&(e=S(),e===null&&(t.charCodeAt(i)===58?(e=`:`,i++):(e=null,a===0&&c(`":"`)),e===null&&(t.charCodeAt(i)===64?(e=`@`,i++):(e=null,a===0&&c(`"@"`)),e===null&&(t.charCodeAt(i)===38?(e=`&`,i++):(e=null,a===0&&c(`"&"`)),e===null&&(t.charCodeAt(i)===61?(e=`=`,i++):(e=null,a===0&&c(`"="`)),e===null&&(t.charCodeAt(i)===43?(e=`+`,i++):(e=null,a===0&&c(`"+"`)),e===null&&(t.charCodeAt(i)===36?(e=`$`,i++):(e=null,a===0&&c(`"$"`)),e===null&&(t.charCodeAt(i)===44?(e=`,`,i++):(e=null,a===0&&c(`","`)))))))))),e}function gt(){var e,n,r,o=i,s=i;if(e=d(),e!==null){for(n=[],r=d(),r===null&&(r=u(),r===null&&(t.charCodeAt(i)===43?(r=`+`,i++):(r=null,a===0&&c(`"+"`)),r===null&&(t.charCodeAt(i)===45?(r=`-`,i++):(r=null,a===0&&c(`"-"`)),r===null&&(t.charCodeAt(i)===46?(r=`.`,i++):(r=null,a===0&&c(`"."`))))));r!==null;)n.push(r),r=d(),r===null&&(r=u(),r===null&&(t.charCodeAt(i)===43?(r=`+`,i++):(r=null,a===0&&c(`"+"`)),r===null&&(t.charCodeAt(i)===45?(r=`-`,i++):(r=null,a===0&&c(`"-"`)),r===null&&(t.charCodeAt(i)===46?(r=`.`,i++):(r=null,a===0&&c(`"."`))))));n===null?(e=null,i=s):e=[e,n]}else e=null,i=s;return e!==null&&(e=(function(e){V.scheme=t.substring(i,e)})(o)),e===null&&(i=o),e}function _t(){var e=vt();return e===null&&(e=yt()),e}function vt(){var e,n,r=i,o=i;return e=Ce(),e===null?(e=null,i=o):(t.charCodeAt(i)===64?(n=`@`,i++):(n=null,a===0&&c(`"@"`)),n===null?(e=null,i=o):e=[e,n]),e=e===null?``:e,e===null?(e=null,i=r):(n=De(),n===null?(e=null,i=r):e=[e,n]),e=e===null?``:e,e}function yt(){var e,n=b();if(n===null&&(n=S(),n===null&&(t.charCodeAt(i)===36?(n=`$`,i++):(n=null,a===0&&c(`"$"`)),n===null&&(t.charCodeAt(i)===44?(n=`,`,i++):(n=null,a===0&&c(`","`)),n===null&&(t.charCodeAt(i)===59?(n=`;`,i++):(n=null,a===0&&c(`";"`)),n===null&&(t.charCodeAt(i)===58?(n=`:`,i++):(n=null,a===0&&c(`":"`)),n===null&&(t.charCodeAt(i)===64?(n=`@`,i++):(n=null,a===0&&c(`"@"`)),n===null&&(t.charCodeAt(i)===38?(n=`&`,i++):(n=null,a===0&&c(`"&"`)),n===null&&(t.charCodeAt(i)===61?(n=`=`,i++):(n=null,a===0&&c(`"="`)),n===null&&(t.charCodeAt(i)===43?(n=`+`,i++):(n=null,a===0&&c(`"+"`))))))))))),n!==null)for(e=[];n!==null;)e.push(n),n=b(),n===null&&(n=S(),n===null&&(t.charCodeAt(i)===36?(n=`$`,i++):(n=null,a===0&&c(`"$"`)),n===null&&(t.charCodeAt(i)===44?(n=`,`,i++):(n=null,a===0&&c(`","`)),n===null&&(t.charCodeAt(i)===59?(n=`;`,i++):(n=null,a===0&&c(`";"`)),n===null&&(t.charCodeAt(i)===58?(n=`:`,i++):(n=null,a===0&&c(`":"`)),n===null&&(t.charCodeAt(i)===64?(n=`@`,i++):(n=null,a===0&&c(`"@"`)),n===null&&(t.charCodeAt(i)===38?(n=`&`,i++):(n=null,a===0&&c(`"&"`)),n===null&&(t.charCodeAt(i)===61?(n=`=`,i++):(n=null,a===0&&c(`"="`)),n===null&&(t.charCodeAt(i)===43?(n=`+`,i++):(n=null,a===0&&c(`"+"`)))))))))));else e=null;return e}function bt(){for(var e=[],t=ut();t!==null;)e.push(t),t=ut();return e}function xt(){var e,n,r,o,s,l,d=i,f=i;if(t.substr(i,3).toLowerCase()===`sip`?(e=t.substr(i,3),i+=3):(e=null,a===0&&c(`"SIP"`)),e!==null)if(t.charCodeAt(i)===47?(n=`/`,i++):(n=null,a===0&&c(`"/"`)),n!==null){if(o=u(),o!==null)for(r=[];o!==null;)r.push(o),o=u();else r=null;if(r!==null)if(t.charCodeAt(i)===46?(o=`.`,i++):(o=null,a===0&&c(`"."`)),o!==null){if(l=u(),l!==null)for(s=[];l!==null;)s.push(l),l=u();else s=null;s===null?(e=null,i=f):e=[e,n,r,o,s]}else e=null,i=f;else e=null,i=f}else e=null,i=f;else e=null,i=f;return e!==null&&(e=(function(e){V.sip_version=t.substring(i,e)})(d)),e===null&&(i=d),e}function St(){var e;return t.substr(i,6)===`INVITE`?(e=`INVITE`,i+=6):(e=null,a===0&&c(`"INVITE"`)),e}function Ct(){var e;return t.substr(i,3)===`ACK`?(e=`ACK`,i+=3):(e=null,a===0&&c(`"ACK"`)),e}function wt(){var e;return t.substr(i,7)===`OPTIONS`?(e=`OPTIONS`,i+=7):(e=null,a===0&&c(`"OPTIONS"`)),e}function Tt(){var e;return t.substr(i,3)===`BYE`?(e=`BYE`,i+=3):(e=null,a===0&&c(`"BYE"`)),e}function Et(){var e;return t.substr(i,6)===`CANCEL`?(e=`CANCEL`,i+=6):(e=null,a===0&&c(`"CANCEL"`)),e}function Dt(){var e;return t.substr(i,8)===`REGISTER`?(e=`REGISTER`,i+=8):(e=null,a===0&&c(`"REGISTER"`)),e}function Ot(){var e;return t.substr(i,9)===`SUBSCRIBE`?(e=`SUBSCRIBE`,i+=9):(e=null,a===0&&c(`"SUBSCRIBE"`)),e}function kt(){var e;return t.substr(i,6)===`NOTIFY`?(e=`NOTIFY`,i+=6):(e=null,a===0&&c(`"NOTIFY"`)),e}function At(){var e;return t.substr(i,5)===`REFER`?(e=`REFER`,i+=5):(e=null,a===0&&c(`"REFER"`)),e}function jt(){var e,n=i;return e=St(),e===null&&(e=Ct(),e===null&&(e=wt(),e===null&&(e=Tt(),e===null&&(e=Et(),e===null&&(e=Dt(),e===null&&(e=Ot(),e===null&&(e=kt(),e===null&&(e=At(),e===null&&(e=A()))))))))),e!==null&&(e=(function(e){return V.method=t.substring(i,e),V.method})(n)),e===null&&(i=n),e}function Mt(){var e,t,n,r,a,o=i;return e=xt(),e===null?(e=null,i=o):(t=g(),t===null?(e=null,i=o):(n=Nt(),n===null?(e=null,i=o):(r=g(),r===null?(e=null,i=o):(a=Ft(),a===null?(e=null,i=o):e=[e,t,n,r,a])))),e}function Nt(){var e,t=i;return e=Pt(),e!==null&&(e=(function(e,t){V.status_code=parseInt(t.join(``))})(t,e)),e===null&&(i=t),e}function Pt(){var e,t,n,r=i;return e=u(),e===null?(e=null,i=r):(t=u(),t===null?(e=null,i=r):(n=u(),n===null?(e=null,i=r):e=[e,t,n])),e}function Ft(){var e,n,r=i;for(e=[],n=y(),n===null&&(n=b(),n===null&&(n=S(),n===null&&(n=O(),n===null&&(n=k(),n===null&&(n=g(),n===null&&(n=_()))))));n!==null;)e.push(n),n=y(),n===null&&(n=b(),n===null&&(n=S(),n===null&&(n=O(),n===null&&(n=k(),n===null&&(n=g(),n===null&&(n=_()))))));return e!==null&&(e=(function(e){V.reason_phrase=t.substring(i,e)})(r)),e===null&&(i=r),e}function It(){var e,t,n,r,a=i,o;if(e=gn(),e!==null){for(t=[],o=i,n=N(),n===null?(n=null,i=o):(r=gn(),r===null?(n=null,i=o):n=[n,r]);n!==null;)t.push(n),o=i,n=N(),n===null?(n=null,i=o):(r=gn(),r===null?(n=null,i=o):n=[n,r]);t===null?(e=null,i=a):e=[e,t]}else e=null,i=a;return e}function Lt(){var e,n,r,o=i,s=i,l;return e=re(),e===null?(e=null,i=s):(l=i,t.charCodeAt(i)===64?(n=`@`,i++):(n=null,a===0&&c(`"@"`)),n===null?(n=null,i=l):(r=re(),r===null?(n=null,i=l):n=[n,r]),n=n===null?``:n,n===null?(e=null,i=s):e=[e,n]),e!==null&&(e=(function(e){V=t.substring(i,e)})(o)),e===null&&(i=o),e}function Rt(){var e,t,n,r,a=i,o,s;if(e=ie(),e===null)if(o=i,e=zt(),e!==null){for(t=[],s=i,n=N(),n===null?(n=null,i=s):(r=zt(),r===null?(n=null,i=s):n=[n,r]);n!==null;)t.push(n),s=i,n=N(),n===null?(n=null,i=s):(r=zt(),r===null?(n=null,i=s):n=[n,r]);t===null?(e=null,i=o):e=[e,t]}else e=null,i=o;return e!==null&&(e=(function(e){var t,n=V.multi_header.length;for(t=0;t<n;t++)if(V.multi_header[t].parsed===null){V=null;break}V=V===null?-1:V.multi_header})(a)),e===null&&(i=a),e}function zt(){var e,t,n,r,a=i,o=i,s;if(e=ve(),e===null&&(e=Bt()),e!==null){for(t=[],s=i,n=P(),n===null?(n=null,i=s):(r=Ht(),r===null?(n=null,i=s):n=[n,r]);n!==null;)t.push(n),s=i,n=P(),n===null?(n=null,i=s):(r=Ht(),r===null?(n=null,i=s):n=[n,r]);t===null?(e=null,i=o):e=[e,t]}else e=null,i=o;return e!==null&&(e=(function(e){var t;V.multi_header||=[];try{t=new Ir(V.uri,V.display_name,V.params),delete V.uri,delete V.display_name,delete V.params}catch{t=null}V.multi_header.push({possition:i,offset:e,parsed:t})})(a)),e===null&&(i=a),e}function Bt(){var e,t,n,r,a=i;return e=Vt(),e=e===null?``:e,e===null?(e=null,i=a):(t=ce(),t===null?(e=null,i=a):(n=ye(),n===null?(e=null,i=a):(r=se(),r===null?(e=null,i=a):e=[e,t,n,r]))),e}function Vt(){var e,t,n,r,a=i,o=i,s;if(e=A(),e!==null){for(t=[],s=i,n=C(),n===null?(n=null,i=s):(r=A(),r===null?(n=null,i=s):n=[n,r]);n!==null;)t.push(n),s=i,n=C(),n===null?(n=null,i=s):(r=A(),r===null?(n=null,i=s):n=[n,r]);t===null?(e=null,i=o):e=[e,t]}else e=null,i=o;return e===null&&(e=he()),e!==null&&(e=(function(e,t){typeof t==`string`?V.display_name=t:V.display_name=t[1].reduce(function(e,t){return e+t[0]+t[1]},t[0])})(a,e)),e===null&&(i=a),e}function Ht(){var e=Ut();return e===null&&(e=Wt(),e===null&&(e=qt())),e}function Ut(){var e,n,r,o=i,s=i;return t.substr(i,1).toLowerCase()===`q`?(e=t.substr(i,1),i++):(e=null,a===0&&c(`"q"`)),e===null?(e=null,i=s):(n=M(),n===null?(e=null,i=s):(r=Kt(),r===null?(e=null,i=s):e=[e,n,r])),e!==null&&(e=(function(e,t){V.params||={},V.params.q=t})(o,e[2])),e===null&&(i=o),e}function Wt(){var e,n,r,o=i,s=i;return t.substr(i,7).toLowerCase()===`expires`?(e=t.substr(i,7),i+=7):(e=null,a===0&&c(`"expires"`)),e===null?(e=null,i=s):(n=M(),n===null?(e=null,i=s):(r=Gt(),r===null?(e=null,i=s):e=[e,n,r])),e!==null&&(e=(function(e,t){V.params||={},V.params.expires=t})(o,e[2])),e===null&&(i=o),e}function Gt(){var e,t,n=i;if(t=u(),t!==null)for(e=[];t!==null;)e.push(t),t=u();else e=null;return e!==null&&(e=(function(e,t){return parseInt(t.join(``))})(n,e)),e===null&&(i=n),e}function Kt(){var e,n,r,o,s,l=i,d=i,f;return t.charCodeAt(i)===48?(e=`0`,i++):(e=null,a===0&&c(`"0"`)),e===null?(e=null,i=d):(f=i,t.charCodeAt(i)===46?(n=`.`,i++):(n=null,a===0&&c(`"."`)),n===null?(n=null,i=f):(r=u(),r=r===null?``:r,r===null?(n=null,i=f):(o=u(),o=o===null?``:o,o===null?(n=null,i=f):(s=u(),s=s===null?``:s,s===null?(n=null,i=f):n=[n,r,o,s]))),n=n===null?``:n,n===null?(e=null,i=d):e=[e,n]),e!==null&&(e=(function(e){return parseFloat(t.substring(i,e))})(l)),e===null&&(i=l),e}function qt(){var e,t,n,r=i,a=i,o;return e=A(),e===null?(e=null,i=a):(o=i,t=M(),t===null?(t=null,i=o):(n=Jt(),n===null?(t=null,i=o):t=[t,n]),t=t===null?``:t,t===null?(e=null,i=a):e=[e,t]),e!==null&&(e=(function(e,t,n){V.params||={},n=n===void 0?void 0:n[1],V.params[t.toLowerCase()]=n})(r,e[0],e[1])),e===null&&(i=r),e}function Jt(){var e=A();return e===null&&(e=Oe(),e===null&&(e=me())),e}function Yt(){var e,t,n,r,a=i,o;if(e=Xt(),e!==null){for(t=[],o=i,n=P(),n===null?(n=null,i=o):(r=Zt(),r===null?(n=null,i=o):n=[n,r]);n!==null;)t.push(n),o=i,n=P(),n===null?(n=null,i=o):(r=Zt(),r===null?(n=null,i=o):n=[n,r]);t===null?(e=null,i=a):e=[e,t]}else e=null,i=a;return e}function Xt(){var e;return t.substr(i,6).toLowerCase()===`render`?(e=t.substr(i,6),i+=6):(e=null,a===0&&c(`"render"`)),e===null&&(t.substr(i,7).toLowerCase()===`session`?(e=t.substr(i,7),i+=7):(e=null,a===0&&c(`"session"`)),e===null&&(t.substr(i,4).toLowerCase()===`icon`?(e=t.substr(i,4),i+=4):(e=null,a===0&&c(`"icon"`)),e===null&&(t.substr(i,5).toLowerCase()===`alert`?(e=t.substr(i,5),i+=5):(e=null,a===0&&c(`"alert"`)),e===null&&(e=A())))),e}function Zt(){var e=Qt();return e===null&&(e=qt()),e}function Qt(){var e,n,r,o=i;return t.substr(i,8).toLowerCase()===`handling`?(e=t.substr(i,8),i+=8):(e=null,a===0&&c(`"handling"`)),e===null?(e=null,i=o):(n=M(),n===null?(e=null,i=o):(t.substr(i,8).toLowerCase()===`optional`?(r=t.substr(i,8),i+=8):(r=null,a===0&&c(`"optional"`)),r===null&&(t.substr(i,8).toLowerCase()===`required`?(r=t.substr(i,8),i+=8):(r=null,a===0&&c(`"required"`)),r===null&&(r=A())),r===null?(e=null,i=o):e=[e,n,r])),e}function $t(){var e,t,n,r,a=i,o;if(e=A(),e!==null){for(t=[],o=i,n=N(),n===null?(n=null,i=o):(r=A(),r===null?(n=null,i=o):n=[n,r]);n!==null;)t.push(n),o=i,n=N(),n===null?(n=null,i=o):(r=A(),r===null?(n=null,i=o):n=[n,r]);t===null?(e=null,i=a):e=[e,t]}else e=null,i=a;return e}function en(){var e,t,n=i;if(t=u(),t!==null)for(e=[];t!==null;)e.push(t),t=u();else e=null;return e!==null&&(e=(function(e,t){V=parseInt(t.join(``))})(n,e)),e===null&&(i=n),e}function tn(){var e,n=i;return e=nn(),e!==null&&(e=(function(e){V=t.substring(i,e)})(n)),e===null&&(i=n),e}function nn(){var e,t,n,r,a,o,s=i,c;if(e=rn(),e!==null)if(t=j(),t!==null)if(n=ln(),n!==null){for(r=[],c=i,a=P(),a===null?(a=null,i=c):(o=un(),o===null?(a=null,i=c):a=[a,o]);a!==null;)r.push(a),c=i,a=P(),a===null?(a=null,i=c):(o=un(),o===null?(a=null,i=c):a=[a,o]);r===null?(e=null,i=s):e=[e,t,n,r]}else e=null,i=s;else e=null,i=s;else e=null,i=s;return e}function rn(){var e=an();return e===null&&(e=on()),e}function an(){var e;return t.substr(i,4).toLowerCase()===`text`?(e=t.substr(i,4),i+=4):(e=null,a===0&&c(`"text"`)),e===null&&(t.substr(i,5).toLowerCase()===`image`?(e=t.substr(i,5),i+=5):(e=null,a===0&&c(`"image"`)),e===null&&(t.substr(i,5).toLowerCase()===`audio`?(e=t.substr(i,5),i+=5):(e=null,a===0&&c(`"audio"`)),e===null&&(t.substr(i,5).toLowerCase()===`video`?(e=t.substr(i,5),i+=5):(e=null,a===0&&c(`"video"`)),e===null&&(t.substr(i,11).toLowerCase()===`application`?(e=t.substr(i,11),i+=11):(e=null,a===0&&c(`"application"`)),e===null&&(e=sn()))))),e}function on(){var e;return t.substr(i,7).toLowerCase()===`message`?(e=t.substr(i,7),i+=7):(e=null,a===0&&c(`"message"`)),e===null&&(t.substr(i,9).toLowerCase()===`multipart`?(e=t.substr(i,9),i+=9):(e=null,a===0&&c(`"multipart"`)),e===null&&(e=sn())),e}function sn(){var e=A();return e===null&&(e=cn()),e}function cn(){var e,n,r=i;return t.substr(i,2).toLowerCase()===`x-`?(e=t.substr(i,2),i+=2):(e=null,a===0&&c(`"x-"`)),e===null?(e=null,i=r):(n=A(),n===null?(e=null,i=r):e=[e,n]),e}function ln(){var e=sn();return e===null&&(e=A()),e}function un(){var e,t,n,r=i;return e=A(),e===null?(e=null,i=r):(t=M(),t===null?(e=null,i=r):(n=dn(),n===null?(e=null,i=r):e=[e,t,n])),e}function dn(){var e=A();return e===null&&(e=me()),e}function fn(){var e,t,n,r=i;return e=pn(),e===null?(e=null,i=r):(t=C(),t===null?(e=null,i=r):(n=jt(),n===null?(e=null,i=r):e=[e,t,n])),e}function pn(){var e,t,n=i;if(t=u(),t!==null)for(e=[];t!==null;)e.push(t),t=u();else e=null;return e!==null&&(e=(function(e,t){V.value=parseInt(t.join(``))})(n,e)),e===null&&(i=n),e}function mn(){var e,t=i;return e=Gt(),e!==null&&(e=(function(e,t){V=t})(t,e)),e===null&&(i=t),e}function hn(){var e,t,n,r,a=i,o=i,s;if(e=gn(),e!==null){for(t=[],s=i,n=P(),n===null?(n=null,i=s):(r=qt(),r===null?(n=null,i=s):n=[n,r]);n!==null;)t.push(n),s=i,n=P(),n===null?(n=null,i=s):(r=qt(),r===null?(n=null,i=s):n=[n,r]);t===null?(e=null,i=o):e=[e,t]}else e=null,i=o;return e!==null&&(e=(function(e,t){V.event=t.join(``).toLowerCase()})(a,e[0])),e===null&&(i=a),e}function gn(){var e,n,r,o,s=i,l;if(e=te(),e!==null){for(n=[],l=i,t.charCodeAt(i)===46?(r=`.`,i++):(r=null,a===0&&c(`"."`)),r===null?(r=null,i=l):(o=te(),o===null?(r=null,i=l):r=[r,o]);r!==null;)n.push(r),l=i,t.charCodeAt(i)===46?(r=`.`,i++):(r=null,a===0&&c(`"."`)),r===null?(r=null,i=l):(o=te(),o===null?(r=null,i=l):r=[r,o]);n===null?(e=null,i=s):e=[e,n]}else e=null,i=s;return e}function _n(){var e,t,n,r,a=i,o=i,s;if(e=ve(),e===null&&(e=Bt()),e!==null){for(t=[],s=i,n=P(),n===null?(n=null,i=s):(r=vn(),r===null?(n=null,i=s):n=[n,r]);n!==null;)t.push(n),s=i,n=P(),n===null?(n=null,i=s):(r=vn(),r===null?(n=null,i=s):n=[n,r]);t===null?(e=null,i=o):e=[e,t]}else e=null,i=o;return e!==null&&(e=(function(e){var t=V.tag;try{V=new Ir(V.uri,V.display_name,V.params),t&&V.setParam(`tag`,t)}catch{V=-1}})(a)),e===null&&(i=a),e}function vn(){var e=yn();return e===null&&(e=qt()),e}function yn(){var e,n,r,o=i,s=i;return t.substr(i,3).toLowerCase()===`tag`?(e=t.substr(i,3),i+=3):(e=null,a===0&&c(`"tag"`)),e===null?(e=null,i=s):(n=M(),n===null?(e=null,i=s):(r=A(),r===null?(e=null,i=s):e=[e,n,r])),e!==null&&(e=(function(e,t){V.tag=t})(o,e[2])),e===null&&(i=o),e}function bn(){var e,t,n=i;if(t=u(),t!==null)for(e=[];t!==null;)e.push(t),t=u();else e=null;return e!==null&&(e=(function(e,t){V=parseInt(t.join(``))})(n,e)),e===null&&(i=n),e}function xn(){var e,t=i;return e=Gt(),e!==null&&(e=(function(e,t){V=t})(t,e)),e===null&&(i=t),e}function Sn(){var e,t,n,r,a,o,s,c=i,l=i,u;for(e=[],t=Vt();t!==null;)e.push(t),t=Vt();if(e!==null)if(t=ce(),t!==null)if(n=ye(),n!==null)if(r=se(),r!==null){for(a=[],u=i,o=P(),o===null?(o=null,i=u):(s=qt(),s===null?(o=null,i=u):o=[o,s]);o!==null;)a.push(o),u=i,o=P(),o===null?(o=null,i=u):(s=qt(),s===null?(o=null,i=u):o=[o,s]);a===null?(e=null,i=l):e=[e,t,n,r,a]}else e=null,i=l;else e=null,i=l;else e=null,i=l;else e=null,i=l;return e!==null&&(e=(function(e){try{V=new Ir(V.uri,V.display_name,V.params)}catch{V=-1}})(c)),e===null&&(i=c),e}function Cn(){return wn()}function wn(){var e,n,r,o,s,l,u=i,d;if(t.substr(i,6).toLowerCase()===`digest`?(e=t.substr(i,6),i+=6):(e=null,a===0&&c(`"Digest"`)),e!==null)if(n=C(),n!==null)if(r=En(),r!==null){for(o=[],d=i,s=N(),s===null?(s=null,i=d):(l=En(),l===null?(s=null,i=d):s=[s,l]);s!==null;)o.push(s),d=i,s=N(),s===null?(s=null,i=d):(l=En(),l===null?(s=null,i=d):s=[s,l]);o===null?(e=null,i=u):e=[e,n,r,o]}else e=null,i=u;else e=null,i=u;else e=null,i=u;return e===null&&(e=Tn()),e}function Tn(){var e,t,n,r,a,o,s=i,c;if(e=A(),e!==null)if(t=C(),t!==null)if(n=I(),n!==null){for(r=[],c=i,a=N(),a===null?(a=null,i=c):(o=I(),o===null?(a=null,i=c):a=[a,o]);a!==null;)r.push(a),c=i,a=N(),a===null?(a=null,i=c):(o=I(),o===null?(a=null,i=c):a=[a,o]);r===null?(e=null,i=s):e=[e,t,n,r]}else e=null,i=s;else e=null,i=s;else e=null,i=s;return e}function I(){var e,t,n,r=i;return e=A(),e===null?(e=null,i=r):(t=M(),t===null?(e=null,i=r):(n=A(),n===null&&(n=me()),n===null?(e=null,i=r):e=[e,t,n])),e}function En(){var e=Dn();return e===null&&(e=kn(),e===null&&(e=An(),e===null&&(e=Mn(),e===null&&(e=Nn(),e===null&&(e=R(),e===null&&(e=z(),e===null&&(e=I()))))))),e}function Dn(){var e,n,r,o=i;return t.substr(i,5).toLowerCase()===`realm`?(e=t.substr(i,5),i+=5):(e=null,a===0&&c(`"realm"`)),e===null?(e=null,i=o):(n=M(),n===null?(e=null,i=o):(r=On(),r===null?(e=null,i=o):e=[e,n,r])),e}function On(){var e,t=i;return e=he(),e!==null&&(e=(function(e,t){V.realm=t})(t,e)),e===null&&(i=t),e}function kn(){var e,n,r,o,s,l,u,d=i,f;if(t.substr(i,6).toLowerCase()===`domain`?(e=t.substr(i,6),i+=6):(e=null,a===0&&c(`"domain"`)),e!==null)if(n=M(),n!==null)if(r=ue(),r!==null)if(o=L(),o!==null){if(s=[],f=i,u=g(),u!==null)for(l=[];u!==null;)l.push(u),u=g();else l=null;for(l===null?(l=null,i=f):(u=L(),u===null?(l=null,i=f):l=[l,u]);l!==null;){if(s.push(l),f=i,u=g(),u!==null)for(l=[];u!==null;)l.push(u),u=g();else l=null;l===null?(l=null,i=f):(u=L(),u===null?(l=null,i=f):l=[l,u])}s===null?(e=null,i=d):(l=de(),l===null?(e=null,i=d):e=[e,n,r,o,s,l])}else e=null,i=d;else e=null,i=d;else e=null,i=d;else e=null,i=d;return e}function L(){var e=at();return e===null&&(e=ct()),e}function An(){var e,n,r,o=i;return t.substr(i,5).toLowerCase()===`nonce`?(e=t.substr(i,5),i+=5):(e=null,a===0&&c(`"nonce"`)),e===null?(e=null,i=o):(n=M(),n===null?(e=null,i=o):(r=jn(),r===null?(e=null,i=o):e=[e,n,r])),e}function jn(){var e,t=i;return e=he(),e!==null&&(e=(function(e,t){V.nonce=t})(t,e)),e===null&&(i=t),e}function Mn(){var e,n,r,o=i,s=i;return t.substr(i,6).toLowerCase()===`opaque`?(e=t.substr(i,6),i+=6):(e=null,a===0&&c(`"opaque"`)),e===null?(e=null,i=s):(n=M(),n===null?(e=null,i=s):(r=he(),r===null?(e=null,i=s):e=[e,n,r])),e!==null&&(e=(function(e,t){V.opaque=t})(o,e[2])),e===null&&(i=o),e}function Nn(){var e,n,r,o=i,s;return t.substr(i,5).toLowerCase()===`stale`?(e=t.substr(i,5),i+=5):(e=null,a===0&&c(`"stale"`)),e===null?(e=null,i=o):(n=M(),n===null?(e=null,i=o):(s=i,t.substr(i,4).toLowerCase()===`true`?(r=t.substr(i,4),i+=4):(r=null,a===0&&c(`"true"`)),r!==null&&(r=(function(e){V.stale=!0})(s)),r===null&&(i=s),r===null&&(s=i,t.substr(i,5).toLowerCase()===`false`?(r=t.substr(i,5),i+=5):(r=null,a===0&&c(`"false"`)),r!==null&&(r=(function(e){V.stale=!1})(s)),r===null&&(i=s)),r===null?(e=null,i=o):e=[e,n,r])),e}function R(){var e,n,r,o=i,s=i;return t.substr(i,9).toLowerCase()===`algorithm`?(e=t.substr(i,9),i+=9):(e=null,a===0&&c(`"algorithm"`)),e===null?(e=null,i=s):(n=M(),n===null?(e=null,i=s):(t.substr(i,3).toLowerCase()===`md5`?(r=t.substr(i,3),i+=3):(r=null,a===0&&c(`"MD5"`)),r===null&&(t.substr(i,8).toLowerCase()===`md5-sess`?(r=t.substr(i,8),i+=8):(r=null,a===0&&c(`"MD5-sess"`)),r===null&&(r=A())),r===null?(e=null,i=s):e=[e,n,r])),e!==null&&(e=(function(e,t){V.algorithm=t.toUpperCase()})(o,e[2])),e===null&&(i=o),e}function z(){var e,n,r,o,s,l,u,d=i,f,p;if(t.substr(i,3).toLowerCase()===`qop`?(e=t.substr(i,3),i+=3):(e=null,a===0&&c(`"qop"`)),e!==null)if(n=M(),n!==null)if(r=ue(),r!==null){if(f=i,o=Pn(),o!==null){for(s=[],p=i,t.charCodeAt(i)===44?(l=`,`,i++):(l=null,a===0&&c(`","`)),l===null?(l=null,i=p):(u=Pn(),u===null?(l=null,i=p):l=[l,u]);l!==null;)s.push(l),p=i,t.charCodeAt(i)===44?(l=`,`,i++):(l=null,a===0&&c(`","`)),l===null?(l=null,i=p):(u=Pn(),u===null?(l=null,i=p):l=[l,u]);s===null?(o=null,i=f):o=[o,s]}else o=null,i=f;o===null?(e=null,i=d):(s=de(),s===null?(e=null,i=d):e=[e,n,r,o,s])}else e=null,i=d;else e=null,i=d;else e=null,i=d;return e}function Pn(){var e,n=i;return t.substr(i,8).toLowerCase()===`auth-int`?(e=t.substr(i,8),i+=8):(e=null,a===0&&c(`"auth-int"`)),e===null&&(t.substr(i,4).toLowerCase()===`auth`?(e=t.substr(i,4),i+=4):(e=null,a===0&&c(`"auth"`)),e===null&&(e=A())),e!==null&&(e=(function(e,t){V.qop||=[],V.qop.push(t.toLowerCase())})(n,e)),e===null&&(i=n),e}function Fn(){var e,t,n,r,a=i,o;if(e=A(),e!==null){for(t=[],o=i,n=N(),n===null?(n=null,i=o):(r=A(),r===null?(n=null,i=o):n=[n,r]);n!==null;)t.push(n),o=i,n=N(),n===null?(n=null,i=o):(r=A(),r===null?(n=null,i=o):n=[n,r]);t===null?(e=null,i=a):e=[e,t]}else e=null,i=a;return e}function In(){var e,t,n,r,a=i,o=i,s;if(e=Ln(),e!==null){for(t=[],s=i,n=N(),n===null?(n=null,i=s):(r=Ln(),r===null?(n=null,i=s):n=[n,r]);n!==null;)t.push(n),s=i,n=N(),n===null?(n=null,i=s):(r=Ln(),r===null?(n=null,i=s):n=[n,r]);t===null?(e=null,i=o):e=[e,t]}else e=null,i=o;return e!==null&&(e=(function(e){var t,n=V.multi_header.length;for(t=0;t<n;t++)if(V.multi_header[t].parsed===null){V=null;break}V=V===null?-1:V.multi_header})(a)),e===null&&(i=a),e}function Ln(){var e,t,n,r,a=i,o=i,s;if(e=Bt(),e!==null){for(t=[],s=i,n=P(),n===null?(n=null,i=s):(r=qt(),r===null?(n=null,i=s):n=[n,r]);n!==null;)t.push(n),s=i,n=P(),n===null?(n=null,i=s):(r=qt(),r===null?(n=null,i=s):n=[n,r]);t===null?(e=null,i=o):e=[e,t]}else e=null,i=o;return e!==null&&(e=(function(e){var t;V.multi_header||=[];try{t=new Ir(V.uri,V.display_name,V.params),delete V.uri,delete V.display_name,delete V.params}catch{t=null}V.multi_header.push({possition:i,offset:e,parsed:t})})(a)),e===null&&(i=a),e}function Rn(){var e,n,r,o,s=i,l=i,u;if(t.substr(i,3).toLowerCase()===`sip`?(e=t.substr(i,3),i+=3):(e=null,a===0&&c(`"SIP"`)),e===null&&(e=A()),e!==null){for(n=[],u=i,r=P(),r===null?(r=null,i=u):(o=zn(),o===null?(r=null,i=u):r=[r,o]);r!==null;)n.push(r),u=i,r=P(),r===null?(r=null,i=u):(o=zn(),o===null?(r=null,i=u):r=[r,o]);n===null?(e=null,i=l):e=[e,n]}else e=null,i=l;return e!==null&&(e=(function(e,t){if(V.protocol=t.toLowerCase(),V.params||={},V.params.text&&V.params.text[0]===`"`){var n=V.params.text;V.text=n.substring(1,n.length-1),delete V.params.text}})(s,e[0])),e===null&&(i=s),e}function zn(){var e=Bn();return e===null&&(e=qt()),e}function Bn(){var e,n,r,o,s=i,l=i;if(t.substr(i,5).toLowerCase()===`cause`?(e=t.substr(i,5),i+=5):(e=null,a===0&&c(`"cause"`)),e!==null)if(n=M(),n!==null){if(o=u(),o!==null)for(r=[];o!==null;)r.push(o),o=u();else r=null;r===null?(e=null,i=l):e=[e,n,r]}else e=null,i=l;else e=null,i=l;return e!==null&&(e=(function(e,t){V.cause=parseInt(t.join(``))})(s,e[2])),e===null&&(i=s),e}function Vn(){var e,t,n,r,a=i,o;if(e=A(),e!==null){for(t=[],o=i,n=N(),n===null?(n=null,i=o):(r=A(),r===null?(n=null,i=o):n=[n,r]);n!==null;)t.push(n),o=i,n=N(),n===null?(n=null,i=o):(r=A(),r===null?(n=null,i=o):n=[n,r]);t===null?(e=null,i=a):e=[e,t]}else e=null,i=a;return e}function Hn(){var e,t,n,r,a=i,o;if(e=Un(),e!==null){for(t=[],o=i,n=N(),n===null?(n=null,i=o):(r=Un(),r===null?(n=null,i=o):n=[n,r]);n!==null;)t.push(n),o=i,n=N(),n===null?(n=null,i=o):(r=Un(),r===null?(n=null,i=o):n=[n,r]);t===null?(e=null,i=a):e=[e,t]}else e=null,i=a;return e}function Un(){var e,t,n,r,a=i,o;if(e=Bt(),e!==null){for(t=[],o=i,n=P(),n===null?(n=null,i=o):(r=qt(),r===null?(n=null,i=o):n=[n,r]);n!==null;)t.push(n),o=i,n=P(),n===null?(n=null,i=o):(r=qt(),r===null?(n=null,i=o):n=[n,r]);t===null?(e=null,i=a):e=[e,t]}else e=null,i=a;return e}function Wn(){var e,t,n,r,a=i,o;if(e=Gn(),e!==null){for(t=[],o=i,n=P(),n===null?(n=null,i=o):(r=Kn(),r===null?(n=null,i=o):n=[n,r]);n!==null;)t.push(n),o=i,n=P(),n===null?(n=null,i=o):(r=Kn(),r===null?(n=null,i=o):n=[n,r]);t===null?(e=null,i=a):e=[e,t]}else e=null,i=a;return e}function Gn(){var e,n=i;return t.substr(i,6).toLowerCase()===`active`?(e=t.substr(i,6),i+=6):(e=null,a===0&&c(`"active"`)),e===null&&(t.substr(i,7).toLowerCase()===`pending`?(e=t.substr(i,7),i+=7):(e=null,a===0&&c(`"pending"`)),e===null&&(t.substr(i,10).toLowerCase()===`terminated`?(e=t.substr(i,10),i+=10):(e=null,a===0&&c(`"terminated"`)),e===null&&(e=A()))),e!==null&&(e=(function(e){V.state=t.substring(i,e)})(n)),e===null&&(i=n),e}function Kn(){var e,n,r,o=i,s=i;return t.substr(i,6).toLowerCase()===`reason`?(e=t.substr(i,6),i+=6):(e=null,a===0&&c(`"reason"`)),e===null?(e=null,i=s):(n=M(),n===null?(e=null,i=s):(r=qn(),r===null?(e=null,i=s):e=[e,n,r])),e!==null&&(e=(function(e,t){t!==void 0&&(V.reason=t)})(o,e[2])),e===null&&(i=o),e===null&&(o=i,s=i,t.substr(i,7).toLowerCase()===`expires`?(e=t.substr(i,7),i+=7):(e=null,a===0&&c(`"expires"`)),e===null?(e=null,i=s):(n=M(),n===null?(e=null,i=s):(r=Gt(),r===null?(e=null,i=s):e=[e,n,r])),e!==null&&(e=(function(e,t){t!==void 0&&(V.expires=t)})(o,e[2])),e===null&&(i=o),e===null&&(o=i,s=i,t.substr(i,11).toLowerCase()===`retry_after`?(e=t.substr(i,11),i+=11):(e=null,a===0&&c(`"retry_after"`)),e===null?(e=null,i=s):(n=M(),n===null?(e=null,i=s):(r=Gt(),r===null?(e=null,i=s):e=[e,n,r])),e!==null&&(e=(function(e,t){t!==void 0&&(V.retry_after=t)})(o,e[2])),e===null&&(i=o),e===null&&(e=qt()))),e}function qn(){var e;return t.substr(i,11).toLowerCase()===`deactivated`?(e=t.substr(i,11),i+=11):(e=null,a===0&&c(`"deactivated"`)),e===null&&(t.substr(i,9).toLowerCase()===`probation`?(e=t.substr(i,9),i+=9):(e=null,a===0&&c(`"probation"`)),e===null&&(t.substr(i,8).toLowerCase()===`rejected`?(e=t.substr(i,8),i+=8):(e=null,a===0&&c(`"rejected"`)),e===null&&(t.substr(i,7).toLowerCase()===`timeout`?(e=t.substr(i,7),i+=7):(e=null,a===0&&c(`"timeout"`)),e===null&&(t.substr(i,6).toLowerCase()===`giveup`?(e=t.substr(i,6),i+=6):(e=null,a===0&&c(`"giveup"`)),e===null&&(t.substr(i,10).toLowerCase()===`noresource`?(e=t.substr(i,10),i+=10):(e=null,a===0&&c(`"noresource"`)),e===null&&(t.substr(i,9).toLowerCase()===`invariant`?(e=t.substr(i,9),i+=9):(e=null,a===0&&c(`"invariant"`)),e===null&&(e=A()))))))),e}function Jn(){var e=E();return e=e===null?``:e,e}function Yn(){var e,t,n,r,a=i,o;if(e=A(),e!==null){for(t=[],o=i,n=N(),n===null?(n=null,i=o):(r=A(),r===null?(n=null,i=o):n=[n,r]);n!==null;)t.push(n),o=i,n=N(),n===null?(n=null,i=o):(r=A(),r===null?(n=null,i=o):n=[n,r]);t===null?(e=null,i=a):e=[e,t]}else e=null,i=a;return e=e===null?``:e,e}function Xn(){var e,t,n,r,a=i,o=i,s;if(e=ve(),e===null&&(e=Bt()),e!==null){for(t=[],s=i,n=P(),n===null?(n=null,i=s):(r=Zn(),r===null?(n=null,i=s):n=[n,r]);n!==null;)t.push(n),s=i,n=P(),n===null?(n=null,i=s):(r=Zn(),r===null?(n=null,i=s):n=[n,r]);t===null?(e=null,i=o):e=[e,t]}else e=null,i=o;return e!==null&&(e=(function(e){var t=V.tag;try{V=new Ir(V.uri,V.display_name,V.params),t&&V.setParam(`tag`,t)}catch{V=-1}})(a)),e===null&&(i=a),e}function Zn(){var e=yn();return e===null&&(e=qt()),e}function Qn(){var e,t,n,r,a=i,o;if(e=$n(),e!==null){for(t=[],o=i,n=N(),n===null?(n=null,i=o):(r=$n(),r===null?(n=null,i=o):n=[n,r]);n!==null;)t.push(n),o=i,n=N(),n===null?(n=null,i=o):(r=$n(),r===null?(n=null,i=o):n=[n,r]);t===null?(e=null,i=a):e=[e,t]}else e=null,i=a;return e}function $n(){var e,t,n,r,a,o,s=i,c;if(e=or(),e!==null)if(t=C(),t!==null)if(n=lr(),n!==null){for(r=[],c=i,a=P(),a===null?(a=null,i=c):(o=er(),o===null?(a=null,i=c):a=[a,o]);a!==null;)r.push(a),c=i,a=P(),a===null?(a=null,i=c):(o=er(),o===null?(a=null,i=c):a=[a,o]);r===null?(e=null,i=s):e=[e,t,n,r]}else e=null,i=s;else e=null,i=s;else e=null,i=s;return e}function er(){var e=tr();return e===null&&(e=nr(),e===null&&(e=rr(),e===null&&(e=B(),e===null&&(e=ir(),e===null&&(e=qt()))))),e}function tr(){var e,n,r,o=i,s=i;return t.substr(i,3).toLowerCase()===`ttl`?(e=t.substr(i,3),i+=3):(e=null,a===0&&c(`"ttl"`)),e===null?(e=null,i=s):(n=M(),n===null?(e=null,i=s):(r=fr(),r===null?(e=null,i=s):e=[e,n,r])),e!==null&&(e=(function(e,t){V.ttl=t})(o,e[2])),e===null&&(i=o),e}function nr(){var e,n,r,o=i,s=i;return t.substr(i,5).toLowerCase()===`maddr`?(e=t.substr(i,5),i+=5):(e=null,a===0&&c(`"maddr"`)),e===null?(e=null,i=s):(n=M(),n===null?(e=null,i=s):(r=Oe(),r===null?(e=null,i=s):e=[e,n,r])),e!==null&&(e=(function(e,t){V.maddr=t})(o,e[2])),e===null&&(i=o),e}function rr(){var e,n,r,o=i,s=i;return t.substr(i,8).toLowerCase()===`received`?(e=t.substr(i,8),i+=8):(e=null,a===0&&c(`"received"`)),e===null?(e=null,i=s):(n=M(),n===null?(e=null,i=s):(r=Fe(),r===null&&(r=Ne()),r===null?(e=null,i=s):e=[e,n,r])),e!==null&&(e=(function(e,t){V.received=t})(o,e[2])),e===null&&(i=o),e}function B(){var e,n,r,o=i,s=i;return t.substr(i,6).toLowerCase()===`branch`?(e=t.substr(i,6),i+=6):(e=null,a===0&&c(`"branch"`)),e===null?(e=null,i=s):(n=M(),n===null?(e=null,i=s):(r=A(),r===null?(e=null,i=s):e=[e,n,r])),e!==null&&(e=(function(e,t){V.branch=t})(o,e[2])),e===null&&(i=o),e}function ir(){var e,n,r,o=i,s;return t.substr(i,5).toLowerCase()===`rport`?(e=t.substr(i,5),i+=5):(e=null,a===0&&c(`"rport"`)),e===null?(e=null,i=o):(s=i,n=M(),n===null?(n=null,i=s):(r=ar(),r===null?(n=null,i=s):n=[n,r]),n=n===null?``:n,n===null?(e=null,i=o):e=[e,n]),e}function ar(){var e,t,n,r,a,o=i,s=i;return e=u(),e=e===null?``:e,e===null?(e=null,i=s):(t=u(),t=t===null?``:t,t===null?(e=null,i=s):(n=u(),n=n===null?``:n,n===null?(e=null,i=s):(r=u(),r=r===null?``:r,r===null?(e=null,i=s):(a=u(),a=a===null?``:a,a===null?(e=null,i=s):e=[e,t,n,r,a])))),e!==null&&(e=(function(e,t){V.rport=parseInt(t.join(``))})(o,e)),e===null&&(i=o),e}function or(){var e,t,n,r,a,o=i;return e=sr(),e===null?(e=null,i=o):(t=j(),t===null?(e=null,i=o):(n=A(),n===null?(e=null,i=o):(r=j(),r===null?(e=null,i=o):(a=cr(),a===null?(e=null,i=o):e=[e,t,n,r,a])))),e}function sr(){var e,n=i;return t.substr(i,3).toLowerCase()===`sip`?(e=t.substr(i,3),i+=3):(e=null,a===0&&c(`"SIP"`)),e===null&&(e=A()),e!==null&&(e=(function(e,t){V.protocol=t})(n,e)),e===null&&(i=n),e}function cr(){var e,n=i;return t.substr(i,3).toLowerCase()===`udp`?(e=t.substr(i,3),i+=3):(e=null,a===0&&c(`"UDP"`)),e===null&&(t.substr(i,3).toLowerCase()===`tcp`?(e=t.substr(i,3),i+=3):(e=null,a===0&&c(`"TCP"`)),e===null&&(t.substr(i,3).toLowerCase()===`tls`?(e=t.substr(i,3),i+=3):(e=null,a===0&&c(`"TLS"`)),e===null&&(t.substr(i,4).toLowerCase()===`sctp`?(e=t.substr(i,4),i+=4):(e=null,a===0&&c(`"SCTP"`)),e===null&&(e=A())))),e!==null&&(e=(function(e,t){V.transport=t})(n,e)),e===null&&(i=n),e}function lr(){var e,t,n,r=i,a;return e=ur(),e===null?(e=null,i=r):(a=i,t=le(),t===null?(t=null,i=a):(n=dr(),n===null?(t=null,i=a):t=[t,n]),t=t===null?``:t,t===null?(e=null,i=r):e=[e,t]),e}function ur(){var e,n=i;return e=Fe(),e===null&&(e=Me(),e===null&&(e=ke())),e!==null&&(e=(function(e){V.host=t.substring(i,e)})(n)),e===null&&(i=n),e}function dr(){var e,t,n,r,a,o=i,s=i;return e=u(),e=e===null?``:e,e===null?(e=null,i=s):(t=u(),t=t===null?``:t,t===null?(e=null,i=s):(n=u(),n=n===null?``:n,n===null?(e=null,i=s):(r=u(),r=r===null?``:r,r===null?(e=null,i=s):(a=u(),a=a===null?``:a,a===null?(e=null,i=s):e=[e,t,n,r,a])))),e!==null&&(e=(function(e,t){V.port=parseInt(t.join(``))})(o,e)),e===null&&(i=o),e}function fr(){var e,t,n,r=i,a=i;return e=u(),e===null?(e=null,i=a):(t=u(),t=t===null?``:t,t===null?(e=null,i=a):(n=u(),n=n===null?``:n,n===null?(e=null,i=a):e=[e,t,n])),e!==null&&(e=(function(e,t){return parseInt(t.join(``))})(r,e)),e===null&&(i=r),e}function pr(){return wn()}function mr(){var e,t,n,r,a=i,o;if(e=hr(),e!==null){for(t=[],o=i,n=P(),n===null?(n=null,i=o):(r=gr(),r===null?(n=null,i=o):n=[n,r]);n!==null;)t.push(n),o=i,n=P(),n===null?(n=null,i=o):(r=gr(),r===null?(n=null,i=o):n=[n,r]);t===null?(e=null,i=a):e=[e,t]}else e=null,i=a;return e}function hr(){var e,t=i;return e=Gt(),e!==null&&(e=(function(e,t){V.expires=t})(t,e)),e===null&&(i=t),e}function gr(){var e=_r();return e===null&&(e=qt()),e}function _r(){var e,n,r,o=i,s=i;return t.substr(i,9).toLowerCase()===`refresher`?(e=t.substr(i,9),i+=9):(e=null,a===0&&c(`"refresher"`)),e===null?(e=null,i=s):(n=M(),n===null?(e=null,i=s):(t.substr(i,3).toLowerCase()===`uac`?(r=t.substr(i,3),i+=3):(r=null,a===0&&c(`"uac"`)),r===null&&(t.substr(i,3).toLowerCase()===`uas`?(r=t.substr(i,3),i+=3):(r=null,a===0&&c(`"uas"`))),r===null?(e=null,i=s):e=[e,n,r])),e!==null&&(e=(function(e,t){V.refresher=t.toLowerCase()})(o,e[2])),e===null&&(i=o),e}function vr(){var e,t,n,r=i;return e=A(),e===null?(e=null,i=r):(t=T(),t===null?(e=null,i=r):(n=yr(),n===null?(e=null,i=r):e=[e,t,n])),e}function yr(){var e=[],t=D();for(t===null&&(t=k(),t===null&&(t=C()));t!==null;)e.push(t),t=D(),t===null&&(t=k(),t===null&&(t=C()));return e}function br(){for(var e=[],t=m();t!==null;)e.push(t),t=m();return e}function xr(){var e,n,r=i;return t.substr(i,5)===`uuid:`?(e=`uuid:`,i+=5):(e=null,a===0&&c(`"uuid:"`)),e===null?(e=null,i=r):(n=Sr(),n===null?(e=null,i=r):e=[e,n]),e}function Sr(){var e,n,r,o,s,l,u,d,f,p=i,m=i;return e=wr(),e===null?(e=null,i=m):(t.charCodeAt(i)===45?(n=`-`,i++):(n=null,a===0&&c(`"-"`)),n===null?(e=null,i=m):(r=Cr(),r===null?(e=null,i=m):(t.charCodeAt(i)===45?(o=`-`,i++):(o=null,a===0&&c(`"-"`)),o===null?(e=null,i=m):(s=Cr(),s===null?(e=null,i=m):(t.charCodeAt(i)===45?(l=`-`,i++):(l=null,a===0&&c(`"-"`)),l===null?(e=null,i=m):(u=Cr(),u===null?(e=null,i=m):(t.charCodeAt(i)===45?(d=`-`,i++):(d=null,a===0&&c(`"-"`)),d===null?(e=null,i=m):(f=Tr(),f===null?(e=null,i=m):e=[e,n,r,o,s,l,u,d,f])))))))),e!==null&&(e=(function(e,n){V=t.substring(i+5,e)})(p,e[0])),e===null&&(i=p),e}function Cr(){var e,t,n,r,a=i;return e=f(),e===null?(e=null,i=a):(t=f(),t===null?(e=null,i=a):(n=f(),n===null?(e=null,i=a):(r=f(),r===null?(e=null,i=a):e=[e,t,n,r]))),e}function wr(){var e,t,n=i;return e=Cr(),e===null?(e=null,i=n):(t=Cr(),t===null?(e=null,i=n):e=[e,t]),e}function Tr(){var e,t,n,r=i;return e=Cr(),e===null?(e=null,i=r):(t=Cr(),t===null?(e=null,i=r):(n=Cr(),n===null?(e=null,i=r):e=[e,t,n])),e}function Er(){var e,t,n,r,a=i,o=i,s;if(e=ve(),e===null&&(e=Bt()),e!==null){for(t=[],s=i,n=P(),n===null?(n=null,i=s):(r=qt(),r===null?(n=null,i=s):n=[n,r]);n!==null;)t.push(n),s=i,n=P(),n===null?(n=null,i=s):(r=qt(),r===null?(n=null,i=s):n=[n,r]);t===null?(e=null,i=o):e=[e,t]}else e=null,i=o;return e!==null&&(e=(function(e){try{V=new Ir(V.uri,V.display_name,V.params)}catch{V=-1}})(a)),e===null&&(i=a),e}function Dr(){var e,t,n,r,a=i,o;if(e=Or(),e!==null){for(t=[],o=i,n=P(),n===null?(n=null,i=o):(r=kr(),r===null?(n=null,i=o):n=[n,r]);n!==null;)t.push(n),o=i,n=P(),n===null?(n=null,i=o):(r=kr(),r===null?(n=null,i=o):n=[n,r]);t===null?(e=null,i=a):e=[e,t]}else e=null,i=a;return e}function Or(){var e,n,r,o=i,s=i,l;return e=re(),e===null?(e=null,i=s):(l=i,t.charCodeAt(i)===64?(n=`@`,i++):(n=null,a===0&&c(`"@"`)),n===null?(n=null,i=l):(r=re(),r===null?(n=null,i=l):n=[n,r]),n=n===null?``:n,n===null?(e=null,i=s):e=[e,n]),e!==null&&(e=(function(e){V.call_id=t.substring(i,e)})(o)),e===null&&(i=o),e}function kr(){var e=Ar();return e===null&&(e=jr(),e===null&&(e=Mr(),e===null&&(e=qt()))),e}function Ar(){var e,n,r,o=i,s=i;return t.substr(i,6)===`to-tag`?(e=`to-tag`,i+=6):(e=null,a===0&&c(`"to-tag"`)),e===null?(e=null,i=s):(n=M(),n===null?(e=null,i=s):(r=A(),r===null?(e=null,i=s):e=[e,n,r])),e!==null&&(e=(function(e,t){V.to_tag=t})(o,e[2])),e===null&&(i=o),e}function jr(){var e,n,r,o=i,s=i;return t.substr(i,8)===`from-tag`?(e=`from-tag`,i+=8):(e=null,a===0&&c(`"from-tag"`)),e===null?(e=null,i=s):(n=M(),n===null?(e=null,i=s):(r=A(),r===null?(e=null,i=s):e=[e,n,r])),e!==null&&(e=(function(e,t){V.from_tag=t})(o,e[2])),e===null&&(i=o),e}function Mr(){var e,n=i;return t.substr(i,10)===`early-only`?(e=`early-only`,i+=10):(e=null,a===0&&c(`"early-only"`)),e!==null&&(e=(function(e){V.early_only=!0})(n)),e===null&&(i=n),e}function Nr(e){e.sort();for(var t=null,n=[],r=0;r<e.length;r++)e[r]!==t&&(n.push(e[r]),t=e[r]);return n}function Pr(){for(var e=1,n=1,r=!1,a=0;a<Math.max(i,o);a++){var s=t.charAt(a);s===`
40
+ `?(r||e++,n=1,r=!1):s===`\r`||s===`\u2028`||s===`\u2029`?(e++,n=1,r=!0):(n++,r=!1)}return{line:e,column:n}}var Fr=IE(),Ir=PE(),V={};if(r[n]()===null||i!==t.length){var Lr=Math.max(i,o),Rr=Lr<t.length?t.charAt(Lr):null,zr=Pr();return new this.SyntaxError(Nr(s),Rr,Lr,zr.line,zr.column),-1}return V},toSource:function(){return this._source}};return t.SyntaxError=function(t,n,r,i,a){function o(t,n){var r,i;switch(t.length){case 0:r=`end of input`;break;case 1:r=t[0];break;default:r=t.slice(0,t.length-1).join(`, `)+` or `+t[t.length-1]}return i=n?e(n):`end of input`,`Expected `+r+` but `+i+` found.`}this.name=`SyntaxError`,this.expected=t,this.found=n,this.message=o(t,n),this.offset=r,this.line=i,this.column=a},t.SyntaxError.prototype=Error.prototype,t})()})),IE=o(((e,t)=>{var n=ME(),r=LE(),i=FE();t.exports=class e{static parse(e){if(e=i.parse(e,`SIP_URI`),e!==-1)return e}constructor(e,t,r,i,a={},o={}){if(!r)throw TypeError(`missing or invalid "host" parameter`);this._parameters={},this._headers={},this._scheme=e||n.SIP,this._user=t,this._host=r,this._port=i;for(let e in a)Object.prototype.hasOwnProperty.call(a,e)&&this.setParam(e,a[e]);for(let e in o)Object.prototype.hasOwnProperty.call(o,e)&&this.setHeader(e,o[e])}get scheme(){return this._scheme}set scheme(e){this._scheme=e.toLowerCase()}get user(){return this._user}set user(e){this._user=e}get host(){return this._host}set host(e){this._host=e.toLowerCase()}get port(){return this._port}set port(e){this._port=e===0?e:parseInt(e,10)||null}setParam(e,t){e&&(this._parameters[e.toLowerCase()]=t==null?null:t.toString())}getParam(e){if(e)return this._parameters[e.toLowerCase()]}hasParam(e){if(e)return this._parameters.hasOwnProperty(e.toLowerCase())&&!0||!1}deleteParam(e){if(e=e.toLowerCase(),this._parameters.hasOwnProperty(e)){let t=this._parameters[e];return delete this._parameters[e],t}}clearParams(){this._parameters={}}setHeader(e,t){this._headers[r.headerize(e)]=Array.isArray(t)?t:[t]}getHeader(e){if(e)return this._headers[r.headerize(e)]}hasHeader(e){if(e)return this._headers.hasOwnProperty(r.headerize(e))&&!0||!1}deleteHeader(e){if(e=r.headerize(e),this._headers.hasOwnProperty(e)){let t=this._headers[e];return delete this._headers[e],t}}clearHeaders(){this._headers={}}clone(){return new e(this._scheme,this._user,this._host,this._port,JSON.parse(JSON.stringify(this._parameters)),JSON.parse(JSON.stringify(this._headers)))}toString(){let e=[],t=`${this._scheme}:`;this._user&&(t+=`${r.escapeUser(this._user)}@`),t+=this._host,(this._port||this._port===0)&&(t+=`:${this._port}`);for(let e in this._parameters)Object.prototype.hasOwnProperty.call(this._parameters,e)&&(t+=`;${e}`,this._parameters[e]!==null&&(t+=`=${this._parameters[e]}`));for(let t in this._headers)if(Object.prototype.hasOwnProperty.call(this._headers,t))for(let n of this._headers[t])e.push(`${t}=${n}`);return e.length>0&&(t+=`?${e.join(`&`)}`),t}toAor(e){let t=`${this._scheme}:`;return this._user&&(t+=`${r.escapeUser(this._user)}@`),t+=this._host,e&&(this._port||this._port===0)&&(t+=`:${this._port}`),t}}})),LE=o((e=>{var t=ME(),n=IE(),r=FE();e.str_utf8_length=e=>unescape(encodeURIComponent(e)).length;var i=e.isFunction=e=>e===void 0?!1:Object.prototype.toString.call(e)===`[object Function]`;e.isString=e=>e===void 0?!1:Object.prototype.toString.call(e)===`[object String]`,e.isDecimal=e=>!isNaN(e)&&parseFloat(e)===parseInt(e,10),e.isEmpty=e=>e===null||e===``||e===void 0||Array.isArray(e)&&e.length===0||typeof e==`number`&&isNaN(e),e.hasMethods=function(e,...t){for(let n of t)if(i(e[n]))return!1;return!0};var a=e.createRandomToken=(e,t=32)=>{let n,r,i=``;for(n=0;n<e;n++)r=Math.random()*t|0,i+=r.toString(t);return i};e.newTag=()=>a(10),e.newUUID=()=>`xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx`.replace(/[xy]/g,e=>{let t=Math.random()*16|0;return(e===`x`?t:t&3|8).toString(16)}),e.hostType=e=>{if(e&&(e=r.parse(e,`host`),e!==-1))return e.host_type};var o=e.escapeUser=e=>encodeURIComponent(decodeURIComponent(e)).replace(/%3A/gi,`:`).replace(/%2B/gi,`+`).replace(/%3F/gi,`?`).replace(/%2F/gi,`/`);e.normalizeTarget=(e,r)=>{if(e){if(e instanceof n)return e;if(typeof e==`string`){let i=e.split(`@`),a,s;switch(i.length){case 1:if(!r)return;a=e,s=r;break;case 2:a=i[0],s=i[1];break;default:a=i.slice(0,i.length-1).join(`@`),s=i[i.length-1]}a=a.replace(/^(sips?|tel):/i,``),/^[-.()]*\+?[0-9\-.()]+$/.test(a)&&(a=a.replace(/[-.()]/g,``)),e=`${t.SIP}:${o(a)}@${s}`;let c;return(c=n.parse(e))?c:void 0}else return}},e.headerize=e=>{let t={"Call-Id":`Call-ID`,Cseq:`CSeq`,"Www-Authenticate":`WWW-Authenticate`},n=e.toLowerCase().replace(/_/g,`-`).split(`-`),r=``,i=n.length,a;for(a=0;a<i;a++)a!==0&&(r+=`-`),r+=n[a].charAt(0).toUpperCase()+n[a].substring(1);return t[r]&&(r=t[r]),r},e.sipErrorCause=e=>{for(let n in t.SIP_ERROR_CAUSES)if(t.SIP_ERROR_CAUSES[n].indexOf(e)!==-1)return t.causes[n];return t.causes.SIP_FAILURE_CODE},e.getRandomTestNetIP=()=>{function e(e,t){return Math.floor(Math.random()*(t-e+1)+e)}return`192.0.2.${e(1,254)}`},e.calculateMD5=e=>{function t(e,t){return e<<t|e>>>32-t}function n(e,t){let n=e&2147483648,r=t&2147483648,i=e&1073741824,a=t&1073741824,o=(e&1073741823)+(t&1073741823);return i&a?o^2147483648^n^r:i|a?o&1073741824?o^3221225472^n^r:o^1073741824^n^r:o^n^r}function r(e,t,n){return e&t|~e&n}function i(e,t,n){return e&n|t&~n}function a(e,t,n){return e^t^n}function o(e,t,n){return t^(e|~n)}function s(e,i,a,o,s,c,l){return e=n(e,n(n(r(i,a,o),s),l)),n(t(e,c),i)}function c(e,r,a,o,s,c,l){return e=n(e,n(n(i(r,a,o),s),l)),n(t(e,c),r)}function l(e,r,i,o,s,c,l){return e=n(e,n(n(a(r,i,o),s),l)),n(t(e,c),r)}function u(e,r,i,a,s,c,l){return e=n(e,n(n(o(r,i,a),s),l)),n(t(e,c),r)}function d(e){let t,n=e.length,r=n+8,i=((r-r%64)/64+1)*16,a=Array(i-1),o=0,s=0;for(;s<n;)t=(s-s%4)/4,o=s%4*8,a[t]=a[t]|e.charCodeAt(s)<<o,s++;return t=(s-s%4)/4,o=s%4*8,a[t]=a[t]|128<<o,a[i-2]=n<<3,a[i-1]=n>>>29,a}function f(e){let t=``,n=``,r,i;for(i=0;i<=3;i++)r=e>>>i*8&255,n=`0${r.toString(16)}`,t+=n.substr(n.length-2,2);return t}function p(e){let t=``;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);r<128?t+=String.fromCharCode(r):r>127&&r<2048?(t+=String.fromCharCode(r>>6|192),t+=String.fromCharCode(r&63|128)):(t+=String.fromCharCode(r>>12|224),t+=String.fromCharCode(r>>6&63|128),t+=String.fromCharCode(r&63|128))}return t}let m=[],h,g,_,v,y,b,x,S,C;for(e=p(e),m=d(e),b=1732584193,x=4023233417,S=2562383102,C=271733878,h=0;h<m.length;h+=16)g=b,_=x,v=S,y=C,b=s(b,x,S,C,m[h+0],7,3614090360),C=s(C,b,x,S,m[h+1],12,3905402710),S=s(S,C,b,x,m[h+2],17,606105819),x=s(x,S,C,b,m[h+3],22,3250441966),b=s(b,x,S,C,m[h+4],7,4118548399),C=s(C,b,x,S,m[h+5],12,1200080426),S=s(S,C,b,x,m[h+6],17,2821735955),x=s(x,S,C,b,m[h+7],22,4249261313),b=s(b,x,S,C,m[h+8],7,1770035416),C=s(C,b,x,S,m[h+9],12,2336552879),S=s(S,C,b,x,m[h+10],17,4294925233),x=s(x,S,C,b,m[h+11],22,2304563134),b=s(b,x,S,C,m[h+12],7,1804603682),C=s(C,b,x,S,m[h+13],12,4254626195),S=s(S,C,b,x,m[h+14],17,2792965006),x=s(x,S,C,b,m[h+15],22,1236535329),b=c(b,x,S,C,m[h+1],5,4129170786),C=c(C,b,x,S,m[h+6],9,3225465664),S=c(S,C,b,x,m[h+11],14,643717713),x=c(x,S,C,b,m[h+0],20,3921069994),b=c(b,x,S,C,m[h+5],5,3593408605),C=c(C,b,x,S,m[h+10],9,38016083),S=c(S,C,b,x,m[h+15],14,3634488961),x=c(x,S,C,b,m[h+4],20,3889429448),b=c(b,x,S,C,m[h+9],5,568446438),C=c(C,b,x,S,m[h+14],9,3275163606),S=c(S,C,b,x,m[h+3],14,4107603335),x=c(x,S,C,b,m[h+8],20,1163531501),b=c(b,x,S,C,m[h+13],5,2850285829),C=c(C,b,x,S,m[h+2],9,4243563512),S=c(S,C,b,x,m[h+7],14,1735328473),x=c(x,S,C,b,m[h+12],20,2368359562),b=l(b,x,S,C,m[h+5],4,4294588738),C=l(C,b,x,S,m[h+8],11,2272392833),S=l(S,C,b,x,m[h+11],16,1839030562),x=l(x,S,C,b,m[h+14],23,4259657740),b=l(b,x,S,C,m[h+1],4,2763975236),C=l(C,b,x,S,m[h+4],11,1272893353),S=l(S,C,b,x,m[h+7],16,4139469664),x=l(x,S,C,b,m[h+10],23,3200236656),b=l(b,x,S,C,m[h+13],4,681279174),C=l(C,b,x,S,m[h+0],11,3936430074),S=l(S,C,b,x,m[h+3],16,3572445317),x=l(x,S,C,b,m[h+6],23,76029189),b=l(b,x,S,C,m[h+9],4,3654602809),C=l(C,b,x,S,m[h+12],11,3873151461),S=l(S,C,b,x,m[h+15],16,530742520),x=l(x,S,C,b,m[h+2],23,3299628645),b=u(b,x,S,C,m[h+0],6,4096336452),C=u(C,b,x,S,m[h+7],10,1126891415),S=u(S,C,b,x,m[h+14],15,2878612391),x=u(x,S,C,b,m[h+5],21,4237533241),b=u(b,x,S,C,m[h+12],6,1700485571),C=u(C,b,x,S,m[h+3],10,2399980690),S=u(S,C,b,x,m[h+10],15,4293915773),x=u(x,S,C,b,m[h+1],21,2240044497),b=u(b,x,S,C,m[h+8],6,1873313359),C=u(C,b,x,S,m[h+15],10,4264355552),S=u(S,C,b,x,m[h+6],15,2734768916),x=u(x,S,C,b,m[h+13],21,1309151649),b=u(b,x,S,C,m[h+4],6,4149444226),C=u(C,b,x,S,m[h+11],10,3174756917),S=u(S,C,b,x,m[h+2],15,718787259),x=u(x,S,C,b,m[h+9],21,3951481745),b=n(b,g),x=n(x,_),S=n(S,v),C=n(C,y);return(f(b)+f(x)+f(S)+f(C)).toLowerCase()},e.closeMediaStream=e=>{if(e)try{let t;if(e.getTracks){t=e.getTracks();for(let e of t)e.stop()}else{t=e.getAudioTracks();for(let e of t)e.stop();t=e.getVideoTracks();for(let e of t)e.stop()}}catch{(typeof e.stop==`function`||typeof e.stop==`object`)&&e.stop()}},e.cloneArray=e=>e&&e.slice()||[],e.cloneObject=(e,t={})=>e&&Object.assign({},e)||t})),RE=o(((e,t)=>{var n=typeof Reflect==`object`?Reflect:null,r=n&&typeof n.apply==`function`?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)},i=n&&typeof n.ownKeys==`function`?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};function a(e){console&&console.warn&&console.warn(e)}var o=Number.isNaN||function(e){return e!==e};function s(){s.init.call(this)}t.exports=s,t.exports.once=y,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var c=10;function l(e){if(typeof e!=`function`)throw TypeError(`The "listener" argument must be of type Function. Received type `+typeof e)}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(e){if(typeof e!=`number`||e<0||o(e))throw RangeError(`The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received `+e+`.`);c=e}}),s.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if(typeof e!=`number`||e<0||o(e))throw RangeError(`The value of "n" is out of range. It must be a non-negative number. Received `+e+`.`);return this._maxListeners=e,this};function u(e){return e._maxListeners===void 0?s.defaultMaxListeners:e._maxListeners}s.prototype.getMaxListeners=function(){return u(this)},s.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i=e===`error`,a=this._events;if(a!==void 0)i&&=a.error===void 0;else if(!i)return!1;if(i){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var s=Error(`Unhandled error.`+(o?` (`+o.message+`)`:``));throw s.context=o,s}var c=a[e];if(c===void 0)return!1;if(typeof c==`function`)r(c,this,t);else for(var l=c.length,u=g(c,l),n=0;n<l;++n)r(u[n],this,t);return!0};function d(e,t,n,r){var i,o,s;if(l(n),o=e._events,o===void 0?(o=e._events=Object.create(null),e._eventsCount=0):(o.newListener!==void 0&&(e.emit(`newListener`,t,n.listener?n.listener:n),o=e._events),s=o[t]),s===void 0)s=o[t]=n,++e._eventsCount;else if(typeof s==`function`?s=o[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),i=u(e),i>0&&s.length>i&&!s.warned){s.warned=!0;var c=Error(`Possible EventEmitter memory leak detected. `+s.length+` `+String(t)+` listeners added. Use emitter.setMaxListeners() to increase limit`);c.name=`MaxListenersExceededWarning`,c.emitter=e,c.type=t,c.count=s.length,a(c)}return e}s.prototype.addListener=function(e,t){return d(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return d(this,e,t,!0)};function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=f.bind(r);return i.listener=n,r.wrapFn=i,i}s.prototype.once=function(e,t){return l(t),this.on(e,p(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return l(t),this.prependListener(e,p(this,e,t)),this},s.prototype.removeListener=function(e,t){var n,r,i,a,o;if(l(t),r=this._events,r===void 0||(n=r[e],n===void 0))return this;if(n===t||n.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit(`removeListener`,e,n.listener||t));else if(typeof n!=`function`){for(i=-1,a=n.length-1;a>=0;a--)if(n[a]===t||n[a].listener===t){o=n[a].listener,i=a;break}if(i<0)return this;i===0?n.shift():_(n,i),n.length===1&&(r[e]=n[0]),r.removeListener!==void 0&&this.emit(`removeListener`,e,o||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,n=this._events,r;if(n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[e]),this;if(arguments.length===0){var i=Object.keys(n),a;for(r=0;r<i.length;++r)a=i[r],a!==`removeListener`&&this.removeAllListeners(a);return this.removeAllListeners(`removeListener`),this._events=Object.create(null),this._eventsCount=0,this}if(t=n[e],typeof t==`function`)this.removeListener(e,t);else if(t!==void 0)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this};function m(e,t,n){var r=e._events;if(r===void 0)return[];var i=r[t];return i===void 0?[]:typeof i==`function`?n?[i.listener||i]:[i]:n?v(i):g(i,i.length)}s.prototype.listeners=function(e){return m(this,e,!0)},s.prototype.rawListeners=function(e){return m(this,e,!1)},s.listenerCount=function(e,t){return typeof e.listenerCount==`function`?e.listenerCount(t):h.call(e,t)},s.prototype.listenerCount=h;function h(e){var t=this._events;if(t!==void 0){var n=t[e];if(typeof n==`function`)return 1;if(n!==void 0)return n.length}return 0}s.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]};function g(e,t){for(var n=Array(t),r=0;r<t;++r)n[r]=e[r];return n}function _(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function v(e){for(var t=Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}function y(e,t){return new Promise(function(n,r){function i(n){e.removeListener(t,a),r(n)}function a(){typeof e.removeListener==`function`&&e.removeListener(`error`,i),n([].slice.call(arguments))}x(e,t,a,{once:!0}),t!==`error`&&b(e,i,{once:!0})})}function b(e,t,n){typeof e.on==`function`&&x(e,`error`,t,n)}function x(e,t,n,r){if(typeof e.on==`function`)r.once?e.once(t,n):e.on(t,n);else if(typeof e.addEventListener==`function`)e.addEventListener(t,function i(a){r.once&&e.removeEventListener(t,i),n(a)});else throw TypeError(`The "emitter" argument must be of type EventEmitter. Received type `+typeof e)}})),zE=o(((e,t)=>{var n=1e3,r=n*60,i=r*60,a=i*24,o=a*7,s=a*365.25;t.exports=function(e,t){t||={};var n=typeof e;if(n===`string`&&e.length>0)return c(e);if(n===`number`&&isFinite(e))return t.long?u(e):l(e);throw Error(`val is not a non-empty string or a valid number. val=`+JSON.stringify(e))};function c(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var c=parseFloat(t[1]);switch((t[2]||`ms`).toLowerCase()){case`years`:case`year`:case`yrs`:case`yr`:case`y`:return c*s;case`weeks`:case`week`:case`w`:return c*o;case`days`:case`day`:case`d`:return c*a;case`hours`:case`hour`:case`hrs`:case`hr`:case`h`:return c*i;case`minutes`:case`minute`:case`mins`:case`min`:case`m`:return c*r;case`seconds`:case`second`:case`secs`:case`sec`:case`s`:return c*n;case`milliseconds`:case`millisecond`:case`msecs`:case`msec`:case`ms`:return c;default:return}}}}function l(e){var t=Math.abs(e);return t>=a?Math.round(e/a)+`d`:t>=i?Math.round(e/i)+`h`:t>=r?Math.round(e/r)+`m`:t>=n?Math.round(e/n)+`s`:e+`ms`}function u(e){var t=Math.abs(e);return t>=a?d(e,t,a,`day`):t>=i?d(e,t,i,`hour`):t>=r?d(e,t,r,`minute`):t>=n?d(e,t,n,`second`):e+` ms`}function d(e,t,n,r){var i=t>=n*1.5;return Math.round(e/n)+` `+r+(i?`s`:``)}})),BE=o(((e,t)=>{function n(e){n.debug=n,n.default=n,n.coerce=c,n.disable=o,n.enable=i,n.enabled=s,n.humanize=zE(),n.destroy=l,Object.keys(e).forEach(t=>{n[t]=e[t]}),n.names=[],n.skips=[],n.formatters={};function t(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return n.colors[Math.abs(t)%n.colors.length]}n.selectColor=t;function n(e){let t,i=null,a,o;function s(...e){if(!s.enabled)return;let r=s,i=Number(new Date);r.diff=i-(t||i),r.prev=t,r.curr=i,t=i,e[0]=n.coerce(e[0]),typeof e[0]!=`string`&&e.unshift(`%O`);let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(t,i)=>{if(t===`%%`)return`%`;a++;let o=n.formatters[i];if(typeof o==`function`){let n=e[a];t=o.call(r,n),e.splice(a,1),a--}return t}),n.formatArgs.call(r,e),(r.log||n.log).apply(r,e)}return s.namespace=e,s.useColors=n.useColors(),s.color=n.selectColor(e),s.extend=r,s.destroy=n.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>i===null?(a!==n.namespaces&&(a=n.namespaces,o=n.enabled(e)),o):i,set:e=>{i=e}}),typeof n.init==`function`&&n.init(s),s}function r(e,t){let r=n(this.namespace+(t===void 0?`:`:t)+e);return r.log=this.log,r}function i(e){n.save(e),n.namespaces=e,n.names=[],n.skips=[];let t=(typeof e==`string`?e:``).trim().replace(/\s+/g,`,`).split(`,`).filter(Boolean);for(let e of t)e[0]===`-`?n.skips.push(e.slice(1)):n.names.push(e)}function a(e,t){let n=0,r=0,i=-1,a=0;for(;n<e.length;)if(r<t.length&&(t[r]===e[n]||t[r]===`*`))t[r]===`*`?(i=r,a=n,r++):(n++,r++);else if(i!==-1)r=i+1,a++,n=a;else return!1;for(;r<t.length&&t[r]===`*`;)r++;return r===t.length}function o(){let e=[...n.names,...n.skips.map(e=>`-`+e)].join(`,`);return n.enable(``),e}function s(e){for(let t of n.skips)if(a(e,t))return!1;for(let t of n.names)if(a(e,t))return!0;return!1}function c(e){return e instanceof Error?e.stack||e.message:e}function l(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}t.exports=n})),VE=o(((e,t)=>{e.formatArgs=r,e.save=i,e.load=a,e.useColors=n,e.storage=o(),e.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=`#0000CC.#0000FF.#0033CC.#0033FF.#0066CC.#0066FF.#0099CC.#0099FF.#00CC00.#00CC33.#00CC66.#00CC99.#00CCCC.#00CCFF.#3300CC.#3300FF.#3333CC.#3333FF.#3366CC.#3366FF.#3399CC.#3399FF.#33CC00.#33CC33.#33CC66.#33CC99.#33CCCC.#33CCFF.#6600CC.#6600FF.#6633CC.#6633FF.#66CC00.#66CC33.#9900CC.#9900FF.#9933CC.#9933FF.#99CC00.#99CC33.#CC0000.#CC0033.#CC0066.#CC0099.#CC00CC.#CC00FF.#CC3300.#CC3333.#CC3366.#CC3399.#CC33CC.#CC33FF.#CC6600.#CC6633.#CC9900.#CC9933.#CCCC00.#CCCC33.#FF0000.#FF0033.#FF0066.#FF0099.#FF00CC.#FF00FF.#FF3300.#FF3333.#FF3366.#FF3399.#FF33CC.#FF33FF.#FF6600.#FF6633.#FF9900.#FF9933.#FFCC00.#FFCC33`.split(`.`);function n(){if(typeof window<`u`&&window.process&&(window.process.type===`renderer`||window.process.__nwjs))return!0;if(typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<`u`&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<`u`&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<`u`&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function r(e){if(e[0]=(this.useColors?`%c`:``)+this.namespace+(this.useColors?` %c`:` `)+e[0]+(this.useColors?`%c `:` `)+`+`+t.exports.humanize(this.diff),!this.useColors)return;let n=`color: `+this.color;e.splice(1,0,n,`color: inherit`);let r=0,i=0;e[0].replace(/%[a-zA-Z%]/g,e=>{e!==`%%`&&(r++,e===`%c`&&(i=r))}),e.splice(i,0,n)}e.log=console.debug||console.log||(()=>{});function i(t){try{t?e.storage.setItem(`debug`,t):e.storage.removeItem(`debug`)}catch{}}function a(){let t;try{t=e.storage.getItem(`debug`)||e.storage.getItem(`DEBUG`)}catch{}return!t&&typeof process<`u`&&`env`in process&&(t=process.env.DEBUG),t}function o(){try{return localStorage}catch{}}t.exports=BE()(e);var{formatters:s}=t.exports;s.j=function(e){try{return JSON.stringify(e)}catch(e){return`[UnexpectedJSONParseError]: `+e.message}}})),HE=o(((e,t)=>{var n=VE(),r=`JsSIP`;t.exports=class{constructor(e){e?(this._debug=n.default(`${r}:${e}`),this._warn=n.default(`${r}:WARN:${e}`),this._error=n.default(`${r}:ERROR:${e}`)):(this._debug=n.default(r),this._warn=n.default(`${r}:WARN`),this._error=n.default(`${r}:ERROR`)),this._debug.log=console.info.bind(console),this._warn.log=console.warn.bind(console),this._error.log=console.error.bind(console)}get debug(){return this._debug}get warn(){return this._warn}get error(){return this._error}}})),UE=o(((e,t)=>{var n=t.exports={v:[{name:`version`,reg:/^(\d*)$/}],o:[{name:`origin`,reg:/^(\S*) (\d*) (\d*) (\S*) IP(\d) (\S*)/,names:[`username`,`sessionId`,`sessionVersion`,`netType`,`ipVer`,`address`],format:`%s %s %d %s IP%d %s`}],s:[{name:`name`}],i:[{name:`description`}],u:[{name:`uri`}],e:[{name:`email`}],p:[{name:`phone`}],z:[{name:`timezones`}],r:[{name:`repeats`}],t:[{name:`timing`,reg:/^(\d*) (\d*)/,names:[`start`,`stop`],format:`%d %d`}],c:[{name:`connection`,reg:/^IN IP(\d) (\S*)/,names:[`version`,`ip`],format:`IN IP%d %s`}],b:[{push:`bandwidth`,reg:/^(TIAS|AS|CT|RR|RS):(\d*)/,names:[`type`,`limit`],format:`%s:%s`}],m:[{reg:/^(\w*) (\d*) ([\w/]*)(?: (.*))?/,names:[`type`,`port`,`protocol`,`payloads`],format:`%s %d %s %s`}],a:[{push:`rtp`,reg:/^rtpmap:(\d*) ([\w\-.]*)(?:\s*\/(\d*)(?:\s*\/(\S*))?)?/,names:[`payload`,`codec`,`rate`,`encoding`],format:function(e){return e.encoding?`rtpmap:%d %s/%s/%s`:e.rate?`rtpmap:%d %s/%s`:`rtpmap:%d %s`}},{push:`fmtp`,reg:/^fmtp:(\d*) ([\S| ]*)/,names:[`payload`,`config`],format:`fmtp:%d %s`},{name:`control`,reg:/^control:(.*)/,format:`control:%s`},{name:`rtcp`,reg:/^rtcp:(\d*)(?: (\S*) IP(\d) (\S*))?/,names:[`port`,`netType`,`ipVer`,`address`],format:function(e){return e.address==null?`rtcp:%d`:`rtcp:%d %s IP%d %s`}},{push:`rtcpFbTrrInt`,reg:/^rtcp-fb:(\*|\d*) trr-int (\d*)/,names:[`payload`,`value`],format:`rtcp-fb:%s trr-int %d`},{push:`rtcpFb`,reg:/^rtcp-fb:(\*|\d*) ([\w-_]*)(?: ([\w-_]*))?/,names:[`payload`,`type`,`subtype`],format:function(e){return e.subtype==null?`rtcp-fb:%s %s`:`rtcp-fb:%s %s %s`}},{push:`ext`,reg:/^extmap:(\d+)(?:\/(\w+))?(?: (urn:ietf:params:rtp-hdrext:encrypt))? (\S*)(?: (\S*))?/,names:[`value`,`direction`,`encrypt-uri`,`uri`,`config`],format:function(e){return`extmap:%d`+(e.direction?`/%s`:`%v`)+(e[`encrypt-uri`]?` %s`:`%v`)+` %s`+(e.config?` %s`:``)}},{name:`extmapAllowMixed`,reg:/^(extmap-allow-mixed)/},{push:`crypto`,reg:/^crypto:(\d*) ([\w_]*) (\S*)(?: (\S*))?/,names:[`id`,`suite`,`config`,`sessionConfig`],format:function(e){return e.sessionConfig==null?`crypto:%d %s %s`:`crypto:%d %s %s %s`}},{name:`setup`,reg:/^setup:(\w*)/,format:`setup:%s`},{name:`connectionType`,reg:/^connection:(new|existing)/,format:`connection:%s`},{name:`mid`,reg:/^mid:([^\s]*)/,format:`mid:%s`},{name:`msid`,reg:/^msid:(.*)/,format:`msid:%s`},{name:`ptime`,reg:/^ptime:(\d*(?:\.\d*)*)/,format:`ptime:%d`},{name:`maxptime`,reg:/^maxptime:(\d*(?:\.\d*)*)/,format:`maxptime:%d`},{name:`direction`,reg:/^(sendrecv|recvonly|sendonly|inactive)/},{name:`icelite`,reg:/^(ice-lite)/},{name:`iceUfrag`,reg:/^ice-ufrag:(\S*)/,format:`ice-ufrag:%s`},{name:`icePwd`,reg:/^ice-pwd:(\S*)/,format:`ice-pwd:%s`},{name:`fingerprint`,reg:/^fingerprint:(\S*) (\S*)/,names:[`type`,`hash`],format:`fingerprint:%s %s`},{push:`candidates`,reg:/^candidate:(\S*) (\d*) (\S*) (\d*) (\S*) (\d*) typ (\S*)(?: raddr (\S*) rport (\d*))?(?: tcptype (\S*))?(?: generation (\d*))?(?: network-id (\d*))?(?: network-cost (\d*))?/,names:[`foundation`,`component`,`transport`,`priority`,`ip`,`port`,`type`,`raddr`,`rport`,`tcptype`,`generation`,`network-id`,`network-cost`],format:function(e){var t=`candidate:%s %d %s %d %s %d typ %s`;return t+=e.raddr==null?`%v%v`:` raddr %s rport %d`,t+=e.tcptype==null?`%v`:` tcptype %s`,e.generation!=null&&(t+=` generation %d`),t+=e[`network-id`]==null?`%v`:` network-id %d`,t+=e[`network-cost`]==null?`%v`:` network-cost %d`,t}},{name:`endOfCandidates`,reg:/^(end-of-candidates)/},{name:`remoteCandidates`,reg:/^remote-candidates:(.*)/,format:`remote-candidates:%s`},{name:`iceOptions`,reg:/^ice-options:(\S*)/,format:`ice-options:%s`},{push:`ssrcs`,reg:/^ssrc:(\d*) ([\w_-]*)(?::(.*))?/,names:[`id`,`attribute`,`value`],format:function(e){var t=`ssrc:%d`;return e.attribute!=null&&(t+=` %s`,e.value!=null&&(t+=`:%s`)),t}},{push:`ssrcGroups`,reg:/^ssrc-group:([\x21\x23\x24\x25\x26\x27\x2A\x2B\x2D\x2E\w]*) (.*)/,names:[`semantics`,`ssrcs`],format:`ssrc-group:%s %s`},{name:`msidSemantic`,reg:/^msid-semantic:\s?(\w*) (\S*)/,names:[`semantic`,`token`],format:`msid-semantic: %s %s`},{push:`groups`,reg:/^group:(\w*) (.*)/,names:[`type`,`mids`],format:`group:%s %s`},{name:`rtcpMux`,reg:/^(rtcp-mux)/},{name:`rtcpRsize`,reg:/^(rtcp-rsize)/},{name:`sctpmap`,reg:/^sctpmap:([\w_/]*) (\S*)(?: (\S*))?/,names:[`sctpmapNumber`,`app`,`maxMessageSize`],format:function(e){return e.maxMessageSize==null?`sctpmap:%s %s`:`sctpmap:%s %s %s`}},{name:`xGoogleFlag`,reg:/^x-google-flag:([^\s]*)/,format:`x-google-flag:%s`},{push:`rids`,reg:/^rid:([\d\w]+) (\w+)(?: ([\S| ]*))?/,names:[`id`,`direction`,`params`],format:function(e){return e.params?`rid:%s %s %s`:`rid:%s %s`}},{push:`imageattrs`,reg:RegExp(`^imageattr:(\\d+|\\*)[\\s\\t]+(send|recv)[\\s\\t]+(\\*|\\[\\S+\\](?:[\\s\\t]+\\[\\S+\\])*)(?:[\\s\\t]+(recv|send)[\\s\\t]+(\\*|\\[\\S+\\](?:[\\s\\t]+\\[\\S+\\])*))?`),names:[`pt`,`dir1`,`attrs1`,`dir2`,`attrs2`],format:function(e){return`imageattr:%s %s %s`+(e.dir2?` %s %s`:``)}},{name:`simulcast`,reg:RegExp(`^simulcast:(send|recv) ([a-zA-Z0-9\\-_~;,]+)(?:\\s?(send|recv) ([a-zA-Z0-9\\-_~;,]+))?$`),names:[`dir1`,`list1`,`dir2`,`list2`],format:function(e){return`simulcast:%s %s`+(e.dir2?` %s %s`:``)}},{name:`simulcast_03`,reg:/^simulcast:[\s\t]+([\S+\s\t]+)$/,names:[`value`],format:`simulcast: %s`},{name:`framerate`,reg:/^framerate:(\d+(?:$|\.\d+))/,format:`framerate:%s`},{name:`sourceFilter`,reg:/^source-filter: *(excl|incl) (\S*) (IP4|IP6|\*) (\S*) (.*)/,names:[`filterMode`,`netType`,`addressTypes`,`destAddress`,`srcList`],format:`source-filter: %s %s %s %s %s`},{name:`bundleOnly`,reg:/^(bundle-only)/},{name:`label`,reg:/^label:(.+)/,format:`label:%s`},{name:`sctpPort`,reg:/^sctp-port:(\d+)$/,format:`sctp-port:%s`},{name:`maxMessageSize`,reg:/^max-message-size:(\d+)$/,format:`max-message-size:%s`},{push:`tsRefClocks`,reg:/^ts-refclk:([^\s=]*)(?:=(\S*))?/,names:[`clksrc`,`clksrcExt`],format:function(e){return`ts-refclk:%s`+(e.clksrcExt==null?``:`=%s`)}},{name:`mediaClk`,reg:/^mediaclk:(?:id=(\S*))? *([^\s=]*)(?:=(\S*))?(?: *rate=(\d+)\/(\d+))?/,names:[`id`,`mediaClockName`,`mediaClockValue`,`rateNumerator`,`rateDenominator`],format:function(e){var t=`mediaclk:`;return t+=e.id==null?`%v%s`:`id=%s %s`,t+=e.mediaClockValue==null?``:`=%s`,t+=e.rateNumerator==null?``:` rate=%s`,t+=e.rateDenominator==null?``:`/%s`,t}},{name:`keywords`,reg:/^keywds:(.+)$/,format:`keywds:%s`},{name:`content`,reg:/^content:(.+)/,format:`content:%s`},{name:`bfcpFloorCtrl`,reg:/^floorctrl:(c-only|s-only|c-s)/,format:`floorctrl:%s`},{name:`bfcpConfId`,reg:/^confid:(\d+)/,format:`confid:%s`},{name:`bfcpUserId`,reg:/^userid:(\d+)/,format:`userid:%s`},{name:`bfcpFloorId`,reg:/^floorid:(.+) (?:m-stream|mstrm):(.+)/,names:[`id`,`mStream`],format:`floorid:%s mstrm:%s`},{push:`invalid`,names:[`value`]}]};Object.keys(n).forEach(function(e){n[e].forEach(function(e){e.reg||=/(.*)/,e.format||=`%s`})})})),WE=o((e=>{var t=function(e){return String(Number(e))===e?Number(e):e},n=function(e,n,r,i){if(i&&!r)n[i]=t(e[1]);else for(var a=0;a<r.length;a+=1)e[a+1]!=null&&(n[r[a]]=t(e[a+1]))},r=function(e,t,r){var i=e.name&&e.names;e.push&&!t[e.push]?t[e.push]=[]:i&&!t[e.name]&&(t[e.name]={});var a=e.push?{}:i?t[e.name]:t;n(r.match(e.reg),a,e.names,e.name),e.push&&t[e.push].push(a)},i=UE(),a=RegExp.prototype.test.bind(/^([a-z])=(.*)/);e.parse=function(e){var t={},n=[],o=t;return e.split(/(\r\n|\r|\n)/).filter(a).forEach(function(e){var t=e[0],a=e.slice(2);t===`m`&&(n.push({rtp:[],fmtp:[]}),o=n[n.length-1]);for(var s=0;s<(i[t]||[]).length;s+=1){var c=i[t][s];if(c.reg.test(a))return r(c,o,a)}}),t.media=n,t};var o=function(e,n){var r=n.split(/=(.+)/,2);return r.length===2?e[r[0]]=t(r[1]):r.length===1&&n.length>1&&(e[r[0]]=void 0),e};e.parseParams=function(e){return e.split(/;\s?/).reduce(o,{})},e.parseFmtpConfig=e.parseParams,e.parsePayloads=function(e){return e.toString().split(` `).map(Number)},e.parseRemoteCandidates=function(e){for(var n=[],r=e.split(` `).map(t),i=0;i<r.length;i+=3)n.push({component:r[i],ip:r[i+1],port:r[i+2]});return n},e.parseImageAttributes=function(e){return e.split(` `).map(function(e){return e.substring(1,e.length-1).split(`,`).reduce(o,{})})},e.parseSimulcastStreamList=function(e){return e.split(`;`).map(function(e){return e.split(`,`).map(function(e){var n,r=!1;return e[0]===`~`?(n=t(e.substring(1,e.length)),r=!0):n=t(e),{scid:n,paused:r}})})}})),GE=o(((e,t)=>{var n=UE(),r=/%[sdv%]/g,i=function(e){var t=1,n=arguments,i=n.length;return e.replace(r,function(e){if(t>=i)return e;var r=n[t];switch(t+=1,e){case`%%`:return`%`;case`%s`:return String(r);case`%d`:return Number(r);case`%v`:return``}})},a=function(e,t,n){var r=t.format instanceof Function?t.format(t.push?n:n[t.name]):t.format,a=[e+`=`+r];if(t.names)for(var o=0;o<t.names.length;o+=1){var s=t.names[o];t.name?a.push(n[t.name][s]):a.push(n[t.names[o]])}else a.push(n[t.name]);return i.apply(null,a)},o=[`v`,`o`,`s`,`i`,`u`,`e`,`p`,`c`,`b`,`t`,`r`,`z`,`a`],s=[`i`,`c`,`b`,`a`];t.exports=function(e,t){t||={},e.version??=0,e.name??=` `,e.media.forEach(function(e){e.payloads??=``});var r=t.outerOrder||o,i=t.innerOrder||s,c=[];return r.forEach(function(t){n[t].forEach(function(n){n.name in e&&e[n.name]!=null?c.push(a(t,n,e)):n.push in e&&e[n.push]!=null&&e[n.push].forEach(function(e){c.push(a(t,n,e))})})}),e.media.forEach(function(e){c.push(a(`m`,n.m[0],e)),i.forEach(function(t){n[t].forEach(function(n){n.name in e&&e[n.name]!=null?c.push(a(t,n,e)):n.push in e&&e[n.push]!=null&&e[n.push].forEach(function(e){c.push(a(t,n,e))})})})}),c.join(`\r
41
+ `)+`\r
42
+ `}})),KE=o((e=>{var t=WE(),n=GE();e.grammar=UE(),e.write=n,e.parse=t.parse,e.parseParams=t.parseParams,e.parseFmtpConfig=t.parseFmtpConfig,e.parsePayloads=t.parsePayloads,e.parseRemoteCandidates=t.parseRemoteCandidates,e.parseImageAttributes=t.parseImageAttributes,e.parseSimulcastStreamList=t.parseSimulcastStreamList})),qE=o(((e,t)=>{var n=KE(),r=HE(),i=ME(),a=LE(),o=PE(),s=FE(),c=new r(`SIPMessage`),l=class e{constructor(e,t,n,r,s,c){if(!e||!t||!n)return null;r||={},this.ua=n,this.headers={},this.method=e,this.ruri=t,this.body=c,this.extraHeaders=a.cloneArray(s),this.ua.configuration.extra_headers&&(this.extraHeaders=this.extraHeaders.concat(this.ua.configuration.extra_headers)),r.route_set?this.setHeader(`route`,r.route_set):n.configuration.use_preloaded_route&&this.setHeader(`route`,`<${n.transport.sip_uri};lr>`),this.setHeader(`via`,``),this.setHeader(`max-forwards`,i.MAX_FORWARDS);let l=r.to_uri||t,u=r.to_tag?{tag:r.to_tag}:null,d=r.to_display_name===void 0?null:r.to_display_name;this.to=new o(l,d,u),this.setHeader(`to`,this.to.toString());let f=r.from_uri||n.configuration.uri,p={tag:r.from_tag||a.newTag()},m;m=r.from_display_name===void 0?n.configuration.display_name?n.configuration.display_name:null:r.from_display_name,this.from=new o(f,m,p),this.setHeader(`from`,this.from.toString());let h=r.call_id||n.configuration.jssip_id+a.createRandomToken(15);this.call_id=h,this.setHeader(`call-id`,h);let g=r.cseq||Math.floor(Math.random()*1e4);this.cseq=g,this.setHeader(`cseq`,`${g} ${e}`)}setHeader(e,t){let n=RegExp(`^\\s*${e}\\s*:`,`i`);for(let e=0;e<this.extraHeaders.length;e++)n.test(this.extraHeaders[e])&&this.extraHeaders.splice(e,1);this.headers[a.headerize(e)]=Array.isArray(t)?t:[t]}getHeader(e){let t=this.headers[a.headerize(e)];if(t){if(t[0])return t[0]}else{let t=RegExp(`^\\s*${e}\\s*:`,`i`);for(let e of this.extraHeaders)if(t.test(e))return e.substring(e.indexOf(`:`)+1).trim()}}getHeaders(e){let t=this.headers[a.headerize(e)],n=[];if(t){for(let e of t)n.push(e);return n}else{let t=RegExp(`^\\s*${e}\\s*:`,`i`);for(let e of this.extraHeaders)t.test(e)&&n.push(e.substring(e.indexOf(`:`)+1).trim());return n}}hasHeader(e){if(this.headers[a.headerize(e)])return!0;{let t=RegExp(`^\\s*${e}\\s*:`,`i`);for(let e of this.extraHeaders)if(t.test(e))return!0}return!1}parseSDP(e){return!e&&this.sdp||(this.sdp=n.parse(this.body||``)),this.sdp}toString(){let e=`${this.method} ${this.ruri} SIP/2.0\r\n`;for(let t in this.headers)if(Object.prototype.hasOwnProperty.call(this.headers,t))for(let n of this.headers[t])e+=`${t}: ${n}\r\n`;for(let t of this.extraHeaders)e+=`${t.trim()}\r\n`;let t=[];switch(this.method){case i.REGISTER:t.push(`path`,`gruu`);break;case i.INVITE:this.ua.configuration.session_timers&&t.push(`timer`),(this.ua.contact.pub_gruu||this.ua.contact.temp_gruu)&&t.push(`gruu`),t.push(`ice`,`replaces`);break;case i.UPDATE:this.ua.configuration.session_timers&&t.push(`timer`),t.push(`ice`);break}t.push(`outbound`);let n=this.ua.configuration.user_agent||i.USER_AGENT;if(e+=`Allow: ${i.ALLOWED_METHODS}\r\n`,e+=`Supported: ${t}\r\n`,e+=`User-Agent: ${n}\r\n`,this.body){let t=a.str_utf8_length(this.body);e+=`Content-Length: ${t}\r\n\r\n`,e+=this.body}else e+=`Content-Length: 0\r
43
+ \r
44
+ `;return e}clone(){let t=new e(this.method,this.ruri,this.ua);return Object.keys(this.headers).forEach(function(e){t.headers[e]=this.headers[e].slice()},this),t.body=this.body,t.extraHeaders=a.cloneArray(this.extraHeaders),t.to=this.to,t.from=this.from,t.call_id=this.call_id,t.cseq=this.cseq,t}},u=class e extends l{constructor(e,t,n,r,a){super(i.INVITE,e,t,n,r,a),this.transaction=null}cancel(e){this.transaction.cancel(e)}clone(){let t=new e(this.ruri,this.ua);return Object.keys(this.headers).forEach(function(e){t.headers[e]=this.headers[e].slice()},this),t.body=this.body,t.extraHeaders=a.cloneArray(this.extraHeaders),t.to=this.to,t.from=this.from,t.call_id=this.call_id,t.cseq=this.cseq,t.transaction=this.transaction,t}},d=class{constructor(){this.data=null,this.headers=null,this.method=null,this.via=null,this.via_branch=null,this.call_id=null,this.cseq=null,this.from=null,this.from_tag=null,this.to=null,this.to_tag=null,this.body=null,this.sdp=null}addHeader(e,t){let n={raw:t};e=a.headerize(e),this.headers[e]?this.headers[e].push(n):this.headers[e]=[n]}getHeader(e){let t=this.headers[a.headerize(e)];if(t){if(t[0])return t[0].raw}else return}getHeaders(e){let t=this.headers[a.headerize(e)],n=[];if(!t)return[];for(let e of t)n.push(e.raw);return n}hasHeader(e){return!!this.headers[a.headerize(e)]}parseHeader(e,t=0){if(e=a.headerize(e),!this.headers[e]){c.debug(`header "${e}" not present`);return}else if(t>=this.headers[e].length){c.debug(`not so many "${e}" headers present`);return}let n=this.headers[e][t],r=n.raw;if(n.parsed)return n.parsed;let i=s.parse(r,e.replace(/-/g,`_`));if(i===-1){this.headers[e].splice(t,1),c.debug(`error parsing "${e}" header field with value "${r}"`);return}else return n.parsed=i,i}s(e,t){return this.parseHeader(e,t)}setHeader(e,t){let n={raw:t};this.headers[a.headerize(e)]=[n]}parseSDP(e){return!e&&this.sdp||(this.sdp=n.parse(this.body||``)),this.sdp}toString(){return this.data}};t.exports={OutgoingRequest:l,InitialOutgoingInviteRequest:u,IncomingRequest:class extends d{constructor(e){super(),this.ua=e,this.headers={},this.ruri=null,this.transport=null,this.server_transaction=null}reply(e,t,n,r,o,s){let c=[],l=this.getHeader(`To`);if(e||=null,t||=null,!e||e<100||e>699)throw TypeError(`Invalid status_code: ${e}`);if(t&&typeof t!=`string`&&!(t instanceof String))throw TypeError(`Invalid reason_phrase: ${t}`);t=t||i.REASON_PHRASE[e]||``,n=a.cloneArray(n),this.ua.configuration.extra_headers&&(n=n.concat(this.ua.configuration.extra_headers));let u=`SIP/2.0 ${e} ${t}\r\n`;if(this.method===i.INVITE&&e>100&&e<=200){let e=this.getHeaders(`record-route`);for(let t of e)u+=`Record-Route: ${t}\r\n`}let d=this.getHeaders(`via`);for(let e of d)u+=`Via: ${e}\r\n`;!this.to_tag&&e>100?l+=`;tag=${a.newTag()}`:this.to_tag&&!this.s(`to`).hasParam(`tag`)&&(l+=`;tag=${this.to_tag}`),u+=`To: ${l}\r\n`,u+=`From: ${this.getHeader(`From`)}\r\n`,u+=`Call-ID: ${this.call_id}\r\n`,u+=`CSeq: ${this.cseq} ${this.method}\r\n`;for(let e of n)u+=`${e.trim()}\r\n`;switch(this.method){case i.INVITE:this.ua.configuration.session_timers&&c.push(`timer`),(this.ua.contact.pub_gruu||this.ua.contact.temp_gruu)&&c.push(`gruu`),c.push(`ice`,`replaces`);break;case i.UPDATE:this.ua.configuration.session_timers&&c.push(`timer`),r&&c.push(`ice`),c.push(`replaces`)}if(c.push(`outbound`),this.method===i.OPTIONS?(u+=`Allow: ${i.ALLOWED_METHODS}\r\n`,u+=`Accept: ${i.ACCEPTED_BODY_TYPES}\r\n`):e===405?u+=`Allow: ${i.ALLOWED_METHODS}\r\n`:e===415&&(u+=`Accept: ${i.ACCEPTED_BODY_TYPES}\r\n`),u+=`Supported: ${c}\r\n`,r){let e=a.str_utf8_length(r);u+=`Content-Type: application/sdp\r
45
+ `,u+=`Content-Length: ${e}\r\n\r\n`,u+=r}else u+=`Content-Length: 0\r
46
+ \r
47
+ `;this.server_transaction.receiveResponse(e,u,o,s)}reply_sl(e=null,t=null){let n=this.getHeaders(`via`);if(!e||e<100||e>699)throw TypeError(`Invalid status_code: ${e}`);if(t&&typeof t!=`string`&&!(t instanceof String))throw TypeError(`Invalid reason_phrase: ${t}`);t=t||i.REASON_PHRASE[e]||``;let r=`SIP/2.0 ${e} ${t}\r\n`;for(let e of n)r+=`Via: ${e}\r\n`;let o=this.getHeader(`To`);if(!this.to_tag&&e>100?o+=`;tag=${a.newTag()}`:this.to_tag&&!this.s(`to`).hasParam(`tag`)&&(o+=`;tag=${this.to_tag}`),r+=`To: ${o}\r\n`,r+=`From: ${this.getHeader(`From`)}\r\n`,r+=`Call-ID: ${this.call_id}\r\n`,r+=`CSeq: ${this.cseq} ${this.method}\r\n`,this.ua.configuration.extra_headers)for(let e of this.ua.configuration.extra_headers)r+=`${e.trim()}\r\n`;r+=`Content-Length: 0\r
48
+ \r
49
+ `,this.transport.send(r)}},IncomingResponse:class extends d{constructor(){super(),this.headers={},this.status_code=null,this.reason_phrase=null}}}})),JE=o(((e,t)=>{var n=HE(),r=LE(),i=new n(`DigestAuthentication`);t.exports=class{constructor(e){this._credentials=e,this._cnonce=null,this._nc=0,this._ncHex=`00000000`,this._algorithm=null,this._realm=null,this._nonce=null,this._opaque=null,this._stale=null,this._qop=null,this._method=null,this._uri=null,this._ha1=null,this._response=null}get(e){switch(e){case`realm`:return this._realm;case`ha1`:return this._ha1;default:i.warn(`get() | cannot get "%s" parameter`,e);return}}authenticate({method:e,ruri:t,body:n},a,o=null){if(this._algorithm=a.algorithm,this._realm=a.realm,this._nonce=a.nonce,this._opaque=a.opaque,this._stale=a.stale,this._algorithm){if(this._algorithm!==`MD5`)return i.warn(`authenticate() | challenge with Digest algorithm different than "MD5", authentication aborted`),!1}else this._algorithm=`MD5`;if(!this._nonce)return i.warn(`authenticate() | challenge without Digest nonce, authentication aborted`),!1;if(!this._realm)return i.warn(`authenticate() | challenge without Digest realm, authentication aborted`),!1;if(!this._credentials.password){if(!this._credentials.ha1)return i.warn(`authenticate() | no plain SIP password nor ha1 provided, authentication aborted`),!1;if(this._credentials.realm!==this._realm)return i.warn('authenticate() | no plain SIP password, and stored `realm` does not match the given `realm`, cannot authenticate [stored:"%s", given:"%s"]',this._credentials.realm,this._realm),!1}if(a.qop)if(a.qop.indexOf(`auth-int`)>-1)this._qop=`auth-int`;else if(a.qop.indexOf(`auth`)>-1)this._qop=`auth`;else return i.warn(`authenticate() | challenge without Digest qop different than "auth" or "auth-int", authentication aborted`),!1;else this._qop=null;this._method=e,this._uri=t,this._cnonce=o||r.createRandomToken(12),this._nc+=1;let s=Number(this._nc).toString(16);this._ncHex=`00000000`.substr(0,8-s.length)+s,this._nc===4294967296&&(this._nc=1,this._ncHex=`00000001`),this._credentials.password?this._ha1=r.calculateMD5(`${this._credentials.username}:${this._realm}:${this._credentials.password}`):this._ha1=this._credentials.ha1;let c,l;return this._qop===`auth`?(c=`${this._method}:${this._uri}`,l=r.calculateMD5(c),i.debug(`authenticate() | using qop=auth [a2:"%s"]`,c),this._response=r.calculateMD5(`${this._ha1}:${this._nonce}:${this._ncHex}:${this._cnonce}:auth:${l}`)):this._qop===`auth-int`?(c=`${this._method}:${this._uri}:${r.calculateMD5(n||``)}`,l=r.calculateMD5(c),i.debug(`authenticate() | using qop=auth-int [a2:"%s"]`,c),this._response=r.calculateMD5(`${this._ha1}:${this._nonce}:${this._ncHex}:${this._cnonce}:auth-int:${l}`)):this._qop===null&&(c=`${this._method}:${this._uri}`,l=r.calculateMD5(c),i.debug(`authenticate() | using qop=null [a2:"%s"]`,c),this._response=r.calculateMD5(`${this._ha1}:${this._nonce}:${l}`)),i.debug(`authenticate() | response generated`),!0}toString(){let e=[];if(!this._response)throw Error(`response field does not exist, cannot generate Authorization header`);return e.push(`algorithm=${this._algorithm}`),e.push(`username="${this._credentials.username}"`),e.push(`realm="${this._realm}"`),e.push(`nonce="${this._nonce}"`),e.push(`uri="${this._uri}"`),e.push(`response="${this._response}"`),this._opaque&&e.push(`opaque="${this._opaque}"`),this._qop&&(e.push(`qop=${this._qop}`),e.push(`cnonce="${this._cnonce}"`),e.push(`nc=${this._ncHex}`)),`Digest ${e.join(`, `)}`}}})),YE=o(((e,t)=>{var n=500,r=4e3,i=5e3;t.exports={T1:n,T2:r,T4:i,TIMER_B:64*n,TIMER_D:0*n,TIMER_F:64*n,TIMER_H:64*n,TIMER_I:0*n,TIMER_J:0*n,TIMER_K:0*i,TIMER_L:64*n,TIMER_M:64*n,PROVISIONAL_RESPONSE_INTERVAL:6e4}})),XE=o(((e,t)=>{var n=RE().EventEmitter,r=HE(),i=ME(),a=qE(),o=YE(),s=new r(`NonInviteClientTransaction`),c=new r(`InviteClientTransaction`),l=new r(`AckClientTransaction`),u=new r(`NonInviteServerTransaction`),d=new r(`InviteServerTransaction`),f={STATUS_TRYING:1,STATUS_PROCEEDING:2,STATUS_CALLING:3,STATUS_ACCEPTED:4,STATUS_COMPLETED:5,STATUS_TERMINATED:6,STATUS_CONFIRMED:7,NON_INVITE_CLIENT:`nict`,NON_INVITE_SERVER:`nist`,INVITE_CLIENT:`ict`,INVITE_SERVER:`ist`},p=class extends n{constructor(e,t,n,r){super(),this.type=f.NON_INVITE_CLIENT,this.id=`z9hG4bK${Math.floor(Math.random()*1e7)}`,this.ua=e,this.transport=t,this.request=n,this.eventHandlers=r;let i=`SIP/2.0/${t.via_transport}`;i+=` ${e.configuration.via_host};branch=${this.id}`,this.request.setHeader(`via`,i),this.ua.newTransaction(this)}get C(){return f}stateChanged(e){this.state=e,this.emit(`stateChanged`)}send(){this.stateChanged(f.STATUS_TRYING),this.F=setTimeout(()=>{this.timer_F()},o.TIMER_F),this.transport.send(this.request)||this.onTransportError()}onTransportError(){s.debug(`transport error occurred, deleting transaction ${this.id}`),clearTimeout(this.F),clearTimeout(this.K),this.stateChanged(f.STATUS_TERMINATED),this.ua.destroyTransaction(this),this.eventHandlers.onTransportError()}timer_F(){s.debug(`Timer F expired for transaction ${this.id}`),this.stateChanged(f.STATUS_TERMINATED),this.ua.destroyTransaction(this),this.eventHandlers.onRequestTimeout()}timer_K(){this.stateChanged(f.STATUS_TERMINATED),this.ua.destroyTransaction(this)}receiveResponse(e){let t=e.status_code;if(t<200)switch(this.state){case f.STATUS_TRYING:case f.STATUS_PROCEEDING:this.stateChanged(f.STATUS_PROCEEDING),this.eventHandlers.onReceiveResponse(e);break}else switch(this.state){case f.STATUS_TRYING:case f.STATUS_PROCEEDING:this.stateChanged(f.STATUS_COMPLETED),clearTimeout(this.F),t===408?this.eventHandlers.onRequestTimeout():this.eventHandlers.onReceiveResponse(e),this.K=setTimeout(()=>{this.timer_K()},o.TIMER_K);break;case f.STATUS_COMPLETED:break}}},m=class extends n{constructor(e,t,n,r){super(),this.type=f.INVITE_CLIENT,this.id=`z9hG4bK${Math.floor(Math.random()*1e7)}`,this.ua=e,this.transport=t,this.request=n,this.eventHandlers=r,n.transaction=this;let i=`SIP/2.0/${t.via_transport}`;i+=` ${e.configuration.via_host};branch=${this.id}`,this.request.setHeader(`via`,i),this.ua.newTransaction(this)}get C(){return f}stateChanged(e){this.state=e,this.emit(`stateChanged`)}send(){this.stateChanged(f.STATUS_CALLING),this.B=setTimeout(()=>{this.timer_B()},o.TIMER_B),this.transport.send(this.request)||this.onTransportError()}onTransportError(){clearTimeout(this.B),clearTimeout(this.D),clearTimeout(this.M),this.state!==f.STATUS_ACCEPTED&&(c.debug(`transport error occurred, deleting transaction ${this.id}`),this.eventHandlers.onTransportError()),this.stateChanged(f.STATUS_TERMINATED),this.ua.destroyTransaction(this)}timer_M(){c.debug(`Timer M expired for transaction ${this.id}`),this.state===f.STATUS_ACCEPTED&&(clearTimeout(this.B),this.stateChanged(f.STATUS_TERMINATED),this.ua.destroyTransaction(this))}timer_B(){c.debug(`Timer B expired for transaction ${this.id}`),this.state===f.STATUS_CALLING&&(this.stateChanged(f.STATUS_TERMINATED),this.ua.destroyTransaction(this),this.eventHandlers.onRequestTimeout())}timer_D(){c.debug(`Timer D expired for transaction ${this.id}`),clearTimeout(this.B),this.stateChanged(f.STATUS_TERMINATED),this.ua.destroyTransaction(this)}sendACK(e){let t=new a.OutgoingRequest(i.ACK,this.request.ruri,this.ua,{route_set:this.request.getHeaders(`route`),call_id:this.request.getHeader(`call-id`),cseq:this.request.cseq});t.setHeader(`from`,this.request.getHeader(`from`)),t.setHeader(`via`,this.request.getHeader(`via`)),t.setHeader(`to`,e.getHeader(`to`)),this.D=setTimeout(()=>{this.timer_D()},o.TIMER_D),this.transport.send(t)}cancel(e){if(this.state!==f.STATUS_PROCEEDING)return;let t=new a.OutgoingRequest(i.CANCEL,this.request.ruri,this.ua,{route_set:this.request.getHeaders(`route`),call_id:this.request.getHeader(`call-id`),cseq:this.request.cseq});t.setHeader(`from`,this.request.getHeader(`from`)),t.setHeader(`via`,this.request.getHeader(`via`)),t.setHeader(`to`,this.request.getHeader(`to`)),e&&t.setHeader(`reason`,e),this.transport.send(t)}receiveResponse(e){let t=e.status_code;if(t>=100&&t<=199)switch(this.state){case f.STATUS_CALLING:this.stateChanged(f.STATUS_PROCEEDING),this.eventHandlers.onReceiveResponse(e);break;case f.STATUS_PROCEEDING:this.eventHandlers.onReceiveResponse(e);break}else if(t>=200&&t<=299)switch(this.state){case f.STATUS_CALLING:case f.STATUS_PROCEEDING:this.stateChanged(f.STATUS_ACCEPTED),this.M=setTimeout(()=>{this.timer_M()},o.TIMER_M),this.eventHandlers.onReceiveResponse(e);break;case f.STATUS_ACCEPTED:this.eventHandlers.onReceiveResponse(e);break}else if(t>=300&&t<=699)switch(this.state){case f.STATUS_CALLING:case f.STATUS_PROCEEDING:this.stateChanged(f.STATUS_COMPLETED),this.sendACK(e),this.eventHandlers.onReceiveResponse(e);break;case f.STATUS_COMPLETED:this.sendACK(e);break}}},h=class extends n{constructor(e,t,n,r){super(),this.id=`z9hG4bK${Math.floor(Math.random()*1e7)}`,this.transport=t,this.request=n,this.eventHandlers=r;let i=`SIP/2.0/${t.via_transport}`;i+=` ${e.configuration.via_host};branch=${this.id}`,this.request.setHeader(`via`,i)}get C(){return f}send(){this.transport.send(this.request)||this.onTransportError()}onTransportError(){l.debug(`transport error occurred for transaction ${this.id}`),this.eventHandlers.onTransportError()}},g=class extends n{constructor(e,t,n){super(),this.type=f.NON_INVITE_SERVER,this.id=n.via_branch,this.ua=e,this.transport=t,this.request=n,this.last_response=``,n.server_transaction=this,this.state=f.STATUS_TRYING,e.newTransaction(this)}get C(){return f}stateChanged(e){this.state=e,this.emit(`stateChanged`)}timer_J(){u.debug(`Timer J expired for transaction ${this.id}`),this.stateChanged(f.STATUS_TERMINATED),this.ua.destroyTransaction(this)}onTransportError(){this.transportError||(this.transportError=!0,u.debug(`transport error occurred, deleting transaction ${this.id}`),clearTimeout(this.J),this.stateChanged(f.STATUS_TERMINATED),this.ua.destroyTransaction(this))}receiveResponse(e,t,n,r){if(e===100)switch(this.state){case f.STATUS_TRYING:this.stateChanged(f.STATUS_PROCEEDING),this.transport.send(t)||this.onTransportError();break;case f.STATUS_PROCEEDING:this.last_response=t,this.transport.send(t)?n&&n():(this.onTransportError(),r&&r());break}else if(e>=200&&e<=699)switch(this.state){case f.STATUS_TRYING:case f.STATUS_PROCEEDING:this.stateChanged(f.STATUS_COMPLETED),this.last_response=t,this.J=setTimeout(()=>{this.timer_J()},o.TIMER_J),this.transport.send(t)?n&&n():(this.onTransportError(),r&&r());break;case f.STATUS_COMPLETED:break}}},_=class extends n{constructor(e,t,n){super(),this.type=f.INVITE_SERVER,this.id=n.via_branch,this.ua=e,this.transport=t,this.request=n,this.last_response=``,n.server_transaction=this,this.state=f.STATUS_PROCEEDING,e.newTransaction(this),this.resendProvisionalTimer=null,n.reply(100)}get C(){return f}stateChanged(e){this.state=e,this.emit(`stateChanged`)}timer_H(){d.debug(`Timer H expired for transaction ${this.id}`),this.state===f.STATUS_COMPLETED&&d.debug(`ACK not received, dialog will be terminated`),this.stateChanged(f.STATUS_TERMINATED),this.ua.destroyTransaction(this)}timer_I(){this.stateChanged(f.STATUS_TERMINATED),this.ua.destroyTransaction(this)}timer_L(){d.debug(`Timer L expired for transaction ${this.id}`),this.state===f.STATUS_ACCEPTED&&(this.stateChanged(f.STATUS_TERMINATED),this.ua.destroyTransaction(this))}onTransportError(){this.transportError||(this.transportError=!0,d.debug(`transport error occurred, deleting transaction ${this.id}`),this.resendProvisionalTimer!==null&&(clearInterval(this.resendProvisionalTimer),this.resendProvisionalTimer=null),clearTimeout(this.L),clearTimeout(this.H),clearTimeout(this.I),this.stateChanged(f.STATUS_TERMINATED),this.ua.destroyTransaction(this))}resend_provisional(){this.transport.send(this.last_response)||this.onTransportError()}receiveResponse(e,t,n,r){if(e>=100&&e<=199)switch(this.state){case f.STATUS_PROCEEDING:this.transport.send(t)||this.onTransportError(),this.last_response=t;break}if(e>100&&e<=199&&this.state===f.STATUS_PROCEEDING)this.resendProvisionalTimer===null&&(this.resendProvisionalTimer=setInterval(()=>{this.resend_provisional()},o.PROVISIONAL_RESPONSE_INTERVAL));else if(e>=200&&e<=299)switch(this.state){case f.STATUS_PROCEEDING:this.stateChanged(f.STATUS_ACCEPTED),this.last_response=t,this.L=setTimeout(()=>{this.timer_L()},o.TIMER_L),this.resendProvisionalTimer!==null&&(clearInterval(this.resendProvisionalTimer),this.resendProvisionalTimer=null);case f.STATUS_ACCEPTED:this.transport.send(t)?n&&n():(this.onTransportError(),r&&r());break}else if(e>=300&&e<=699)switch(this.state){case f.STATUS_PROCEEDING:this.resendProvisionalTimer!==null&&(clearInterval(this.resendProvisionalTimer),this.resendProvisionalTimer=null),this.transport.send(t)?(this.stateChanged(f.STATUS_COMPLETED),this.H=setTimeout(()=>{this.timer_H()},o.TIMER_H),n&&n()):(this.onTransportError(),r&&r());break}}};function v({_transactions:e},t){let n;switch(t.method){case i.INVITE:if(n=e.ist[t.via_branch],n){switch(n.state){case f.STATUS_PROCEEDING:n.transport.send(n.last_response);break;case f.STATUS_ACCEPTED:break}return!0}break;case i.ACK:if(n=e.ist[t.via_branch],n){if(n.state===f.STATUS_ACCEPTED)return!1;if(n.state===f.STATUS_COMPLETED)return n.state=f.STATUS_CONFIRMED,n.I=setTimeout(()=>{n.timer_I()},o.TIMER_I),!0}else return!1;break;case i.CANCEL:return n=e.ist[t.via_branch],n?(t.reply_sl(200),n.state!==f.STATUS_PROCEEDING):(t.reply_sl(481),!0);default:if(n=e.nist[t.via_branch],n){switch(n.state){case f.STATUS_TRYING:break;case f.STATUS_PROCEEDING:case f.STATUS_COMPLETED:n.transport.send(n.last_response);break}return!0}break}}t.exports={C:f,NonInviteClientTransaction:p,InviteClientTransaction:m,AckClientTransaction:h,NonInviteServerTransaction:g,InviteServerTransaction:_,checkTransaction:v}})),ZE=o(((e,t)=>{var n=HE(),r=ME(),i=JE(),a=XE(),o=new n(`RequestSender`),s={onRequestTimeout:()=>{},onTransportError:()=>{},onReceiveResponse:()=>{},onAuthenticated:()=>{}};t.exports=class{constructor(e,t,n){this._ua=e,this._eventHandlers=n,this._method=t.method,this._request=t,this._auth=null,this._challenged=!1,this._staled=!1;for(let e in s)Object.prototype.hasOwnProperty.call(s,e)&&(this._eventHandlers[e]||(this._eventHandlers[e]=s[e]));e.status===e.C.STATUS_USER_CLOSED&&(this._method!==r.BYE||this._method!==r.ACK)&&this._eventHandlers.onTransportError()}send(){let e={onRequestTimeout:()=>{this._eventHandlers.onRequestTimeout()},onTransportError:()=>{this._eventHandlers.onTransportError()},onReceiveResponse:e=>{this._receiveResponse(e)}};switch(this._method){case`INVITE`:this.clientTransaction=new a.InviteClientTransaction(this._ua,this._ua.transport,this._request,e);break;case`ACK`:this.clientTransaction=new a.AckClientTransaction(this._ua,this._ua.transport,this._request,e);break;default:this.clientTransaction=new a.NonInviteClientTransaction(this._ua,this._ua.transport,this._request,e)}this._ua._configuration.authorization_jwt&&this._request.setHeader(`Authorization`,this._ua._configuration.authorization_jwt),this.clientTransaction.send()}_receiveResponse(e){let t,n,r=e.status_code;if((r===401||r===407)&&(this._ua.configuration.password!==null||this._ua.configuration.ha1!==null)){if(e.status_code===401?(t=e.parseHeader(`www-authenticate`),n=`authorization`):(t=e.parseHeader(`proxy-authenticate`),n=`proxy-authorization`),!t){o.debug(`${e.status_code} with wrong or missing challenge, cannot authenticate`),this._eventHandlers.onReceiveResponse(e);return}if(!this._challenged||!this._staled&&t.stale===!0){if(this._auth||=new i({username:this._ua.configuration.authorization_user,password:this._ua.configuration.password,realm:this._ua.configuration.realm,ha1:this._ua.configuration.ha1}),!this._auth.authenticate(this._request,t)){this._eventHandlers.onReceiveResponse(e);return}this._challenged=!0,this._ua.set(`realm`,this._auth.get(`realm`)),this._ua.set(`ha1`,this._auth.get(`ha1`)),t.stale&&(this._staled=!0),this._request=this._request.clone(),this._request.cseq+=1,this._request.setHeader(`cseq`,`${this._request.cseq} ${this._method}`),this._request.setHeader(n,this._auth.toString()),this._eventHandlers.onAuthenticated(this._request),this.send()}else this._eventHandlers.onReceiveResponse(e)}else this._eventHandlers.onReceiveResponse(e)}}})),QE=o(((e,t)=>{var n=HE(),r=LE(),i=ME(),a=qE(),o=ZE(),s=new n(`Registrator`),c=10;t.exports=class{constructor(e,t){this._reg_id=1,this._ua=e,this._transport=t,this._registrar=e.configuration.registrar_server,this._expires=e.configuration.register_expires,this._call_id=r.createRandomToken(22),this._cseq=0,this._to_uri=e.configuration.uri,this._registrationTimer=null,this._registering=!1,this._registered=!1,this._contact=this._ua.contact.toString(),this._contact+=`;+sip.ice`,this._extraHeaders=[],this._extraContactParams=``,this._sipInstance=`"<urn:uuid:${this._ua.configuration.instance_id}>"`,this._contact+=`;reg-id=${this._reg_id}`,this._contact+=`;+sip.instance=${this._sipInstance}`}get registered(){return this._registered}setExtraHeaders(e){Array.isArray(e)||(e=[]),this._extraHeaders=e.slice()}setExtraContactParams(e){e instanceof Object||(e={}),this._extraContactParams=``;for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)){let n=e[t];this._extraContactParams+=`;${t}`,n&&(this._extraContactParams+=`=${n}`)}}register(){if(this._registering){s.debug(`Register request in progress...`);return}let e=r.cloneArray(this._extraHeaders),t;this._expires?(t=`${this._contact};expires=${this._expires}${this._extraContactParams}`,e.push(`Expires: ${this._expires}`)):t=`${this._contact}${this._extraContactParams}`,e.push(`Contact: ${t}`);let n=r.newTag();this._ua.configuration.register_from_tag_trail&&(typeof this._ua.configuration.register_from_tag_trail==`function`?n+=this._ua.configuration.register_from_tag_trail():n+=this._ua.configuration.register_from_tag_trail);let l=new a.OutgoingRequest(i.REGISTER,this._registrar,this._ua,{to_uri:this._to_uri,call_id:this._call_id,cseq:this._cseq+=1,from_tag:n},e),u=new o(this._ua,l,{onRequestTimeout:()=>{this._registrationFailure(null,i.causes.REQUEST_TIMEOUT)},onTransportError:()=>{this._registrationFailure(null,i.causes.CONNECTION_ERROR)},onAuthenticated:()=>{this._cseq+=1},onReceiveResponse:e=>{if(e.cseq===this._cseq)switch(this._registrationTimer!==null&&(clearTimeout(this._registrationTimer),this._registrationTimer=null),!0){case/^1[0-9]{2}$/.test(e.status_code):break;case/^2[0-9]{2}$/.test(e.status_code):{if(this._registering=!1,!e.hasHeader(`Contact`)){s.debug(`no Contact header in response to REGISTER, response ignored`);break}let t=e.headers.Contact.reduce((e,t)=>e.concat(t.parsed),[]),n=t.find(e=>this._sipInstance===e.getParam(`+sip.instance`)&&this._reg_id===parseInt(e.getParam(`reg-id`)));if(n||=t.find(e=>e.uri.user===this._ua.contact.uri.user),!n){s.debug(`no Contact header pointing to us, response ignored`);break}let r=n.getParam(`expires`);!r&&e.hasHeader(`expires`)&&(r=e.getHeader(`expires`)),r||=this._expires,r=Number(r),r<c&&(r=c);let i=r>64?r*1e3/2+Math.floor((r/2-32)*1e3*Math.random()):r*1e3-5e3;this._registrationTimer=setTimeout(()=>{this._registrationTimer=null,this._ua.listeners(`registrationExpiring`).length===0?this.register():this._ua.emit(`registrationExpiring`)},i),n.hasParam(`temp-gruu`)&&(this._ua.contact.temp_gruu=n.getParam(`temp-gruu`).replace(/"/g,``)),n.hasParam(`pub-gruu`)&&(this._ua.contact.pub_gruu=n.getParam(`pub-gruu`).replace(/"/g,``)),this._registered||(this._registered=!0,this._ua.registered({response:e}));break}case/^423$/.test(e.status_code):e.hasHeader(`min-expires`)?(this._expires=Number(e.getHeader(`min-expires`)),this._expires<c&&(this._expires=c),this._registering=!1,this.register()):(s.debug(`423 response received for REGISTER without Min-Expires`),this._registrationFailure(e,i.causes.SIP_FAILURE_CODE));break;default:{let t=r.sipErrorCause(e.status_code);this._registrationFailure(e,t)}}}});this._registering=!0,u.send()}unregister(e={}){if(!this._registered){s.debug(`already unregistered`);return}this._registered=!1,this._registrationTimer!==null&&(clearTimeout(this._registrationTimer),this._registrationTimer=null);let t=r.cloneArray(this._extraHeaders);e.all?t.push(`Contact: *${this._extraContactParams}`):t.push(`Contact: ${this._contact};expires=0${this._extraContactParams}`),t.push(`Expires: 0`);let n=new a.OutgoingRequest(i.REGISTER,this._registrar,this._ua,{to_uri:this._to_uri,call_id:this._call_id,cseq:this._cseq+=1},t);new o(this._ua,n,{onRequestTimeout:()=>{this._unregistered(null,i.causes.REQUEST_TIMEOUT)},onTransportError:()=>{this._unregistered(null,i.causes.CONNECTION_ERROR)},onAuthenticated:()=>{this._cseq+=1},onReceiveResponse:e=>{switch(!0){case/^1[0-9]{2}$/.test(e.status_code):break;case/^2[0-9]{2}$/.test(e.status_code):this._unregistered(e);break;default:{let t=r.sipErrorCause(e.status_code);this._unregistered(e,t)}}}}).send()}close(){this._registered&&this.unregister()}onTransportClosed(){this._registering=!1,this._registrationTimer!==null&&(clearTimeout(this._registrationTimer),this._registrationTimer=null),this._registered&&(this._registered=!1,this._ua.unregistered({}))}_registrationFailure(e,t){this._registering=!1,this._ua.registrationFailed({response:e||null,cause:t}),this._registered&&(this._registered=!1,this._ua.unregistered({response:e||null,cause:t}))}_unregistered(e,t){this._registering=!1,this._registered=!1,this._ua.unregistered({response:e||null,cause:t||null})}}})),$E=o(((e,t)=>{var n=ME(),r=XE(),i=ZE(),a={onRequestTimeout:()=>{},onTransportError:()=>{},onSuccessResponse:()=>{},onErrorResponse:()=>{},onAuthenticated:()=>{},onDialogError:()=>{}};t.exports=class{constructor(e,t,n){this._dialog=e,this._ua=e._ua,this._request=t,this._eventHandlers=n,this._reattempt=!1,this._reattemptTimer=null;for(let e in a)Object.prototype.hasOwnProperty.call(a,e)&&(this._eventHandlers[e]||(this._eventHandlers[e]=a[e]))}get request(){return this._request}send(){let e=new i(this._ua,this._request,{onRequestTimeout:()=>{this._eventHandlers.onRequestTimeout()},onTransportError:()=>{this._eventHandlers.onTransportError()},onAuthenticated:e=>{this._eventHandlers.onAuthenticated(e)},onReceiveResponse:e=>{this._receiveResponse(e)}});if(e.send(),(this._request.method===n.INVITE||this._request.method===n.UPDATE&&this._request.body)&&e.clientTransaction.state!==r.C.STATUS_TERMINATED){this._dialog.uac_pending_reply=!0;let t=()=>{(e.clientTransaction.state===r.C.STATUS_ACCEPTED||e.clientTransaction.state===r.C.STATUS_COMPLETED||e.clientTransaction.state===r.C.STATUS_TERMINATED)&&(e.clientTransaction.removeListener(`stateChanged`,t),this._dialog.uac_pending_reply=!1)};e.clientTransaction.on(`stateChanged`,t)}}_receiveResponse(e){e.status_code===408||e.status_code===481?this._eventHandlers.onDialogError(e):e.method===n.INVITE&&e.status_code===491?this._reattempt?this._eventHandlers.onErrorResponse(e):(this._request.cseq=this._dialog.local_seqnum+=1,this._reattemptTimer=setTimeout(()=>{this._dialog.isTerminated()||(this._reattempt=!0,this.send())},1e3)):e.status_code>=200&&e.status_code<300?this._eventHandlers.onSuccessResponse(e):e.status_code>=300&&this._eventHandlers.onErrorResponse(e)}}})),eD=o(((e,t)=>{var n=HE(),r=qE(),i=ME(),a=XE(),o=$E(),s=LE(),c=new n(`Dialog`),l={STATUS_EARLY:1,STATUS_CONFIRMED:2,STATUS_TERMINATED:3};t.exports=class{static get C(){return l}constructor(e,t,n,i=l.STATUS_CONFIRMED){if(this._owner=e,this._ua=e._ua,this._uac_pending_reply=!1,this._uas_pending_reply=!1,!t.hasHeader(`contact`))return{error:`unable to create a Dialog without Contact header field`};t instanceof r.IncomingResponse&&(i=t.status_code<200?l.STATUS_EARLY:l.STATUS_CONFIRMED);let a=t.parseHeader(`contact`);n===`UAS`?(this._id={call_id:t.call_id,local_tag:t.to_tag,remote_tag:t.from_tag,toString(){return this.call_id+this.local_tag+this.remote_tag}},this._state=i,this._remote_seqnum=t.cseq,this._local_uri=t.parseHeader(`to`).uri,this._remote_uri=t.parseHeader(`from`).uri,this._remote_target=a.uri,this._route_set=t.getHeaders(`record-route`),this._incoming_ack_seqnum=t.cseq,this._outgoing_ack_seqnum=null):n===`UAC`&&(this._id={call_id:t.call_id,local_tag:t.from_tag,remote_tag:t.to_tag,toString(){return this.call_id+this.local_tag+this.remote_tag}},this._state=i,this._local_seqnum=t.cseq,this._local_uri=t.parseHeader(`from`).uri,this._remote_uri=t.parseHeader(`to`).uri,this._remote_target=a.uri,this._route_set=t.getHeaders(`record-route`).reverse(),this._incoming_ack_seqnum=null,this._outgoing_ack_seqnum=this._local_seqnum),this._ua.newDialog(this),c.debug(`new ${n} dialog created with status ${this._state===l.STATUS_EARLY?`EARLY`:`CONFIRMED`}`)}get id(){return this._id}get local_seqnum(){return this._local_seqnum}set local_seqnum(e){this._local_seqnum=e}get owner(){return this._owner}get uac_pending_reply(){return this._uac_pending_reply}set uac_pending_reply(e){this._uac_pending_reply=e}get uas_pending_reply(){return this._uas_pending_reply}isTerminated(){return this._status===l.STATUS_TERMINATED}update(e,t){this._state=l.STATUS_CONFIRMED,c.debug(`dialog ${this._id.toString()} changed to CONFIRMED state`),t===`UAC`&&(this._route_set=e.getHeaders(`record-route`).reverse())}terminate(){c.debug(`dialog ${this._id.toString()} deleted`),this._ua.destroyDialog(this),this._state=l.STATUS_TERMINATED}sendRequest(e,t={}){let n=s.cloneArray(t.extraHeaders),r=s.cloneObject(t.eventHandlers),a=t.body||null,c=this._createRequest(e,n,a),l=r.onAuthenticated||(()=>{});return r.onAuthenticated=e=>{this._local_seqnum+=1,c.method===i.INVITE&&(this._outgoing_ack_seqnum=this._local_seqnum),l(e)},new o(this,c,r).send(),c}receiveRequest(e){this._checkInDialogRequest(e)&&(e.method===i.ACK&&this._incoming_ack_seqnum!==null?this._incoming_ack_seqnum=null:e.method===i.INVITE&&(this._incoming_ack_seqnum=e.cseq),this._owner.receiveRequest(e))}_createRequest(e,t,n){t=s.cloneArray(t),this._local_seqnum||=Math.floor(Math.random()*1e4);let a=e===i.CANCEL||e===i.ACK?this._outgoing_ack_seqnum:this._local_seqnum+=1;return e===i.INVITE&&(this._outgoing_ack_seqnum=a),new r.OutgoingRequest(e,this._remote_target,this._ua,{cseq:a,call_id:this._id.call_id,from_uri:this._local_uri,from_tag:this._id.local_tag,to_uri:this._remote_uri,to_tag:this._id.remote_tag,route_set:this._route_set},t,n)}_checkInDialogRequest(e){if(!this._remote_seqnum)this._remote_seqnum=e.cseq;else if(e.cseq<this._remote_seqnum)if(e.method===i.ACK){if(this._incoming_ack_seqnum===null||e.cseq!==this._incoming_ack_seqnum)return!1}else return e.reply(500),!1;else e.cseq>this._remote_seqnum&&(this._remote_seqnum=e.cseq);if(e.method===i.INVITE||e.method===i.UPDATE&&e.body){if(this._uac_pending_reply===!0)e.reply(491);else if(this._uas_pending_reply===!0){let t=(Math.random()*10|0)+1;return e.reply(500,null,[`Retry-After:${t}`]),!1}else{this._uas_pending_reply=!0;let t=()=>{(e.server_transaction.state===a.C.STATUS_ACCEPTED||e.server_transaction.state===a.C.STATUS_COMPLETED||e.server_transaction.state===a.C.STATUS_TERMINATED)&&(e.server_transaction.removeListener(`stateChanged`,t),this._uas_pending_reply=!1)};e.server_transaction.on(`stateChanged`,t)}e.hasHeader(`contact`)&&e.server_transaction.on(`stateChanged`,()=>{e.server_transaction.state===a.C.STATUS_ACCEPTED&&(this._remote_target=e.parseHeader(`contact`).uri)})}else e.method===i.NOTIFY&&e.hasHeader(`contact`)&&e.server_transaction.on(`stateChanged`,()=>{e.server_transaction.state===a.C.STATUS_COMPLETED&&(this._remote_target=e.parseHeader(`contact`).uri)});return!0}}})),tD=o(((e,t)=>{var n=RE().EventEmitter,r=HE(),i=ME(),a=NE(),o=LE(),s=new r(`RTCSession:DTMF`),c={MIN_DURATION:70,MAX_DURATION:6e3,DEFAULT_DURATION:100,MIN_INTER_TONE_GAP:50,DEFAULT_INTER_TONE_GAP:500};t.exports=class extends n{constructor(e){super(),this._session=e,this._direction=null,this._tone=null,this._duration=null,this._request=null}get tone(){return this._tone}get duration(){return this._duration}send(e,t={}){if(e===void 0)throw TypeError(`Not enough arguments`);if(this._direction=`outgoing`,this._session.status!==this._session.C.STATUS_CONFIRMED&&this._session.status!==this._session.C.STATUS_WAITING_FOR_ACK&&this._session.status!==this._session.C.STATUS_1XX_RECEIVED)throw new a.InvalidStateError(this._session.status);let n=o.cloneArray(t.extraHeaders);if(this.eventHandlers=o.cloneObject(t.eventHandlers),typeof e==`string`)e=e.toUpperCase();else if(typeof e==`number`)e=e.toString();else throw TypeError(`Invalid tone: ${e}`);if(e.match(/^[0-9A-DR#*]$/))this._tone=e;else throw TypeError(`Invalid tone: ${e}`);this._duration=t.duration,n.push(`Content-Type: application/dtmf-relay`);let r=`Signal=${this._tone}\r\n`;r+=`Duration=${this._duration}`,this._session.newDTMF({originator:`local`,dtmf:this,request:this._request}),this._session.sendRequest(i.INFO,{extraHeaders:n,eventHandlers:{onSuccessResponse:e=>{this.emit(`succeeded`,{originator:`remote`,response:e})},onErrorResponse:e=>{this.eventHandlers.onFailed&&this.eventHandlers.onFailed(),this.emit(`failed`,{originator:`remote`,response:e})},onRequestTimeout:()=>{this._session.onRequestTimeout()},onTransportError:()=>{this._session.onTransportError()},onDialogError:()=>{this._session.onDialogError()}},body:r})}init_incoming(e){let t=/^(Signal\s*?=\s*?)([0-9A-D#*]{1})(\s)?.*/,n=/^(Duration\s?=\s?)([0-9]{1,4})(\s)?.*/;if(this._direction=`incoming`,this._request=e,e.reply(200),e.body){let r=e.body.split(`
50
+ `);r.length>=1&&t.test(r[0])&&(this._tone=r[0].replace(t,`$2`)),r.length>=2&&n.test(r[1])&&(this._duration=parseInt(r[1].replace(n,`$2`),10))}this._duration||=c.DEFAULT_DURATION,this._tone?this._session.newDTMF({originator:`remote`,dtmf:this,request:e}):s.debug(`invalid INFO DTMF received, discarded`)}},t.exports.C=c})),nD=o(((e,t)=>{var n=RE().EventEmitter,r=ME(),i=NE(),a=LE();t.exports=class extends n{constructor(e){super(),this._session=e,this._direction=null,this._contentType=null,this._body=null}get contentType(){return this._contentType}get body(){return this._body}send(e,t,n={}){if(this._direction=`outgoing`,e===void 0)throw TypeError(`Not enough arguments`);if(this._session.status!==this._session.C.STATUS_CONFIRMED&&this._session.status!==this._session.C.STATUS_WAITING_FOR_ACK)throw new i.InvalidStateError(this._session.status);this._contentType=e,this._body=t;let o=a.cloneArray(n.extraHeaders);o.push(`Content-Type: ${e}`),this._session.newInfo({originator:`local`,info:this,request:this.request}),this._session.sendRequest(r.INFO,{extraHeaders:o,eventHandlers:{onSuccessResponse:e=>{this.emit(`succeeded`,{originator:`remote`,response:e})},onErrorResponse:e=>{this.emit(`failed`,{originator:`remote`,response:e})},onTransportError:()=>{this._session.onTransportError()},onRequestTimeout:()=>{this._session.onRequestTimeout()},onDialogError:()=>{this._session.onDialogError()}},body:t})}init_incoming(e){this._direction=`incoming`,this.request=e,e.reply(200),this._contentType=e.hasHeader(`Content-Type`)?e.getHeader(`Content-Type`).toLowerCase():void 0,this._body=e.body,this._session.newInfo({originator:`remote`,info:this,request:e})}}})),rD=o(((e,t)=>{var n=HE(),r=ME(),i=new n(`RTCSession:ReferNotifier`),a={event_type:`refer`,body_type:`message/sipfrag;version=2.0`,expires:300};t.exports=class{constructor(e,t,n){this._session=e,this._id=t,this._expires=n||a.expires,this._active=!0,this.notify(100)}notify(e,t){if(i.debug(`notify()`),this._active===!1)return;t=t||r.REASON_PHRASE[e]||``;let n;n=e>=200?`terminated;reason=noresource`:`active;expires=${this._expires}`,this._session.sendRequest(r.NOTIFY,{extraHeaders:[`Event: ${a.event_type};id=${this._id}`,`Subscription-State: ${n}`,`Content-Type: ${a.body_type}`],body:`SIP/2.0 ${e} ${t}`,eventHandlers:{onErrorResponse(){this._active=!1}}})}}})),iD=o(((e,t)=>{var n=RE().EventEmitter,r=HE(),i=ME(),a=FE(),o=LE(),s=new r(`RTCSession:ReferSubscriber`);t.exports=class extends n{constructor(e){super(),this._id=null,this._session=e}get id(){return this._id}sendRefer(e,t={}){s.debug(`sendRefer()`);let n=o.cloneArray(t.extraHeaders),r=o.cloneObject(t.eventHandlers);for(let e in r)Object.prototype.hasOwnProperty.call(r,e)&&this.on(e,r[e]);let a=null;t.replaces&&(a=t.replaces._request.call_id,a+=`;to-tag=${t.replaces._to_tag}`,a+=`;from-tag=${t.replaces._from_tag}`,a=encodeURIComponent(a));let c=`Refer-To: <${e}${a?`?Replaces=${a}`:``}>`;if(n.push(c),!n.some(e=>e.toLowerCase().startsWith(`referred-by:`))){let e=`Referred-By: <${this._session._ua._configuration.uri._scheme}:${this._session._ua._configuration.uri._user}@${this._session._ua._configuration.uri._host}>`;n.push(e)}n.push(`Contact: ${this._session.contact}`);let l=this._session.sendRequest(i.REFER,{extraHeaders:n,eventHandlers:{onSuccessResponse:e=>{this._requestSucceeded(e)},onErrorResponse:e=>{this._requestFailed(e,i.causes.REJECTED)},onTransportError:()=>{this._requestFailed(null,i.causes.CONNECTION_ERROR)},onRequestTimeout:()=>{this._requestFailed(null,i.causes.REQUEST_TIMEOUT)},onDialogError:()=>{this._requestFailed(null,i.causes.DIALOG_ERROR)},onAuthenticated:e=>{this._id=e.cseq,this.emit(`authenticated`)}}});this._id=l.cseq}receiveNotify(e){if(s.debug(`receiveNotify()`),!e.body)return;let t=a.parse(e.body.trim().split(`\r
51
+ `,1)[0],`Status_Line`);if(t===-1){s.debug(`receiveNotify() | error parsing NOTIFY body: "${e.body}"`);return}switch(!0){case/^100$/.test(t.status_code):this.emit(`trying`,{request:e,status_line:t});break;case/^1[0-9]{2}$/.test(t.status_code):this.emit(`progress`,{request:e,status_line:t});break;case/^2[0-9]{2}$/.test(t.status_code):this.emit(`accepted`,{request:e,status_line:t});break;default:this.emit(`failed`,{request:e,status_line:t});break}}_requestSucceeded(e){s.debug(`REFER succeeded`),s.debug(`emit "requestSucceeded"`),this.emit(`requestSucceeded`,{response:e})}_requestFailed(e,t){s.debug(`REFER failed`),s.debug(`emit "requestFailed"`),this.emit(`requestFailed`,{response:e||null,cause:t})}}})),aD=o(((e,t)=>{var n=RE().EventEmitter,r=KE(),i=HE(),a=ME(),o=NE(),s=XE(),c=LE(),l=YE(),u=qE(),d=eD(),f=ZE(),p=tD(),m=nD(),h=rD(),g=iD(),_=IE(),v=new i(`RTCSession`),y={STATUS_NULL:0,STATUS_INVITE_SENT:1,STATUS_1XX_RECEIVED:2,STATUS_INVITE_RECEIVED:3,STATUS_WAITING_FOR_ANSWER:4,STATUS_ANSWERED:5,STATUS_WAITING_FOR_ACK:6,STATUS_CANCELED:7,STATUS_TERMINATED:8,STATUS_CONFIRMED:9},b=[`audio`,`video`];t.exports=class e extends n{static get C(){return y}constructor(e){v.debug(`new`),super(),this._id=null,this._ua=e,this._status=y.STATUS_NULL,this._dialog=null,this._earlyDialogs={},this._contact=null,this._from_tag=null,this._to_tag=null,this._connection=null,this._connectionPromiseQueue=Promise.resolve(),this._request=null,this._is_canceled=!1,this._cancel_reason=``,this._is_confirmed=!1,this._late_sdp=!1,this._rtcOfferConstraints=null,this._rtcAnswerConstraints=null,this._localMediaStream=null,this._localMediaStreamLocallyGenerated=!1,this._rtcReady=!0,this._iceReady=!1,this._timers={ackTimer:null,expiresTimer:null,invite2xxTimer:null,userNoAnswerTimer:null},this._direction=null,this._local_identity=null,this._remote_identity=null,this._start_time=null,this._end_time=null,this._tones=null,this._audioMuted=!1,this._videoMuted=!1,this._localHold=!1,this._remoteHold=!1,this._sessionTimers={enabled:this._ua.configuration.session_timers,refreshMethod:this._ua.configuration.session_timers_refresh_method,defaultExpires:a.SESSION_EXPIRES,currentExpires:null,running:!1,refresher:!1,timer:null},this._referSubscribers={},this._data={}}get C(){return y}get causes(){return a.causes}get id(){return this._id}get connection(){return this._connection}get contact(){return this._contact}get direction(){return this._direction}get local_identity(){return this._local_identity}get remote_identity(){return this._remote_identity}get start_time(){return this._start_time}get end_time(){return this._end_time}get data(){return this._data}set data(e){this._data=e}get status(){return this._status}isInProgress(){switch(this._status){case y.STATUS_NULL:case y.STATUS_INVITE_SENT:case y.STATUS_1XX_RECEIVED:case y.STATUS_INVITE_RECEIVED:case y.STATUS_WAITING_FOR_ANSWER:return!0;default:return!1}}isEstablished(){switch(this._status){case y.STATUS_ANSWERED:case y.STATUS_WAITING_FOR_ACK:case y.STATUS_CONFIRMED:return!0;default:return!1}}isEnded(){switch(this._status){case y.STATUS_CANCELED:case y.STATUS_TERMINATED:return!0;default:return!1}}isMuted(){return{audio:this._audioMuted,video:this._videoMuted}}isOnHold(){return{local:this._localHold,remote:this._remoteHold}}connect(e,t={},n){v.debug(`connect()`);let r=e,i=c.cloneObject(t.eventHandlers),s=c.cloneArray(t.extraHeaders),l=c.cloneObject(t.mediaConstraints,{audio:!0,video:!0}),d=t.mediaStream||null,f=c.cloneObject(t.pcConfig,{iceServers:[]}),p=t.rtcConstraints||null,m=t.rtcOfferConstraints||null;if(this._rtcOfferConstraints=m,this._rtcAnswerConstraints=t.rtcAnswerConstraints||null,this._data=t.data||this._data,e===void 0)throw TypeError(`Not enough arguments`);if(this._status!==y.STATUS_NULL)throw new o.InvalidStateError(this._status);if(!window.RTCPeerConnection)throw new o.NotSupportedError(`WebRTC not supported`);if(e=this._ua.normalizeTarget(e),!e)throw TypeError(`Invalid target: ${r}`);this._sessionTimers.enabled&&c.isDecimal(t.sessionTimersExpires)&&(t.sessionTimersExpires>=a.MIN_SESSION_EXPIRES?this._sessionTimers.defaultExpires=t.sessionTimersExpires:this._sessionTimers.defaultExpires=a.SESSION_EXPIRES);for(let e in i)Object.prototype.hasOwnProperty.call(i,e)&&this.on(e,i[e]);this._from_tag=c.newTag();let h=t.anonymous||!1,g={from_tag:this._from_tag};this._contact=this._ua.contact.toString({anonymous:h,outbound:!0}),h?(g.from_display_name=`Anonymous`,g.from_uri=new _(`sip`,`anonymous`,`anonymous.invalid`),s.push(`P-Preferred-Identity: ${this._ua.configuration.uri.toString()}`),s.push(`Privacy: id`)):t.fromUserName&&(g.from_uri=new _(`sip`,t.fromUserName,this._ua.configuration.uri.host),s.push(`P-Preferred-Identity: ${this._ua.configuration.uri.toString()}`)),t.fromDisplayName&&(g.from_display_name=t.fromDisplayName),s.push(`Contact: ${this._contact}`),s.push(`Content-Type: application/sdp`),this._sessionTimers.enabled&&s.push(`Session-Expires: ${this._sessionTimers.defaultExpires}${this._ua.configuration.session_timers_force_refresher?`;refresher=uac`:``}`),this._request=new u.InitialOutgoingInviteRequest(e,this._ua,g,s),this._id=this._request.call_id+this._from_tag,this._createRTCConnection(f,p),this._direction=`outgoing`,this._local_identity=this._request.from,this._remote_identity=this._request.to,n&&n(this),this._newRTCSession(`local`,this._request),this._sendInitialRequest(l,m,d)}init_incoming(e,t){v.debug(`init_incoming()`);let n,r=e.hasHeader(`Content-Type`)?e.getHeader(`Content-Type`).toLowerCase():void 0;if(e.body&&r!==`application/sdp`){e.reply(415);return}if(this._status=y.STATUS_INVITE_RECEIVED,this._from_tag=e.from_tag,this._id=e.call_id+this._from_tag,this._request=e,this._contact=this._ua.contact.toString(),e.hasHeader(`expires`)&&(n=e.getHeader(`expires`)*1e3),e.to_tag=c.newTag(),!this._createDialog(e,`UAS`,!0)){e.reply(500,`Missing Contact header field`);return}e.body?this._late_sdp=!1:this._late_sdp=!0,this._status=y.STATUS_WAITING_FOR_ANSWER,this._timers.userNoAnswerTimer=setTimeout(()=>{e.reply(408),this._failed(`local`,null,a.causes.NO_ANSWER)},this._ua.configuration.no_answer_timeout),n&&(this._timers.expiresTimer=setTimeout(()=>{this._status===y.STATUS_WAITING_FOR_ANSWER&&(e.reply(487),this._failed(`system`,null,a.causes.EXPIRES))},n)),this._direction=`incoming`,this._local_identity=e.to,this._remote_identity=e.from,t&&t(this),this._newRTCSession(`remote`,e),this._status!==y.STATUS_TERMINATED&&(e.reply(180,null,[`Contact: ${this._contact}`]),this._progress(`local`,null))}answer(e={}){v.debug(`answer()`);let t=this._request,n=c.cloneArray(e.extraHeaders),r=c.cloneObject(e.mediaConstraints),i=e.mediaStream||null,s=c.cloneObject(e.pcConfig,{iceServers:[]}),l=e.rtcConstraints||null,u=e.rtcAnswerConstraints||null,d=c.cloneObject(e.rtcOfferConstraints),f,p=!1,m=!1,h=!1,g=!1;if(this._rtcAnswerConstraints=u,this._rtcOfferConstraints=e.rtcOfferConstraints||null,this._data=e.data||this._data,this._direction!==`incoming`)throw new o.NotSupportedError(`"answer" not supported for outgoing RTCSession`);if(this._status!==y.STATUS_WAITING_FOR_ANSWER)throw new o.InvalidStateError(this._status);if(this._sessionTimers.enabled&&c.isDecimal(e.sessionTimersExpires)&&(e.sessionTimersExpires>=a.MIN_SESSION_EXPIRES?this._sessionTimers.defaultExpires=e.sessionTimersExpires:this._sessionTimers.defaultExpires=a.SESSION_EXPIRES),this._status=y.STATUS_ANSWERED,!this._createDialog(t,`UAS`)){t.reply(500,`Error creating dialog`);return}clearTimeout(this._timers.userNoAnswerTimer),n.unshift(`Contact: ${this._contact}`);let _=t.parseSDP();Array.isArray(_.media)||(_.media=[_.media]);for(let e of _.media)e.type===`audio`&&(p=!0,(!e.direction||e.direction===`sendrecv`)&&(h=!0)),e.type===`video`&&(m=!0,(!e.direction||e.direction===`sendrecv`)&&(g=!0));if(i&&r.audio===!1){f=i.getAudioTracks();for(let e of f)i.removeTrack(e)}if(i&&r.video===!1){f=i.getVideoTracks();for(let e of f)i.removeTrack(e)}!i&&r.audio===void 0&&(r.audio=h),!i&&r.video===void 0&&(r.video=g),!i&&!p&&!d.offerToReceiveAudio&&(r.audio=!1),!i&&!m&&!d.offerToReceiveVideo&&(r.video=!1),this._createRTCConnection(s,l),Promise.resolve().then(()=>{if(i)return i;if(r.audio||r.video)return this._localMediaStreamLocallyGenerated=!0,navigator.mediaDevices.getUserMedia(r).catch(e=>{throw this._status===y.STATUS_TERMINATED?Error(`terminated`):(t.reply(480),this._failed(`local`,null,a.causes.USER_DENIED_MEDIA_ACCESS),v.warn(`emit "getusermediafailed" [error:%o]`,e),this.emit(`getusermediafailed`,e),Error(`getUserMedia() failed`))})}).then(e=>{if(this._status===y.STATUS_TERMINATED)throw Error(`terminated`);this._localMediaStream=e,e&&e.getTracks().forEach(t=>{this._connection.addTrack(t,e)})}).then(()=>{if(this._late_sdp)return;let e={originator:`remote`,type:`offer`,sdp:t.body};v.debug(`emit "sdp"`),this.emit(`sdp`,e);let n=new RTCSessionDescription({type:`offer`,sdp:e.sdp});return this._connectionPromiseQueue=this._connectionPromiseQueue.then(()=>this._connection.setRemoteDescription(n)).catch(e=>{throw t.reply(488),this._failed(`system`,null,a.causes.WEBRTC_ERROR),v.warn(`emit "peerconnection:setremotedescriptionfailed" [error:%o]`,e),this.emit(`peerconnection:setremotedescriptionfailed`,e),Error(`peerconnection.setRemoteDescription() failed`)}),this._connectionPromiseQueue}).then(()=>{if(this._status===y.STATUS_TERMINATED)throw Error(`terminated`);return this._connecting(t),this._late_sdp?this._createLocalDescription(`offer`,this._rtcOfferConstraints).catch(()=>{throw t.reply(500),Error(`_createLocalDescription() failed`)}):this._createLocalDescription(`answer`,u).catch(()=>{throw t.reply(500),Error(`_createLocalDescription() failed`)})}).then(e=>{if(this._status===y.STATUS_TERMINATED)throw Error(`terminated`);this._handleSessionTimersInIncomingRequest(t,n),t.reply(200,null,n,e,()=>{this._status=y.STATUS_WAITING_FOR_ACK,this._setInvite2xxTimer(t,e),this._setACKTimer(),this._accepted(`local`)},()=>{this._failed(`system`,null,a.causes.CONNECTION_ERROR)})}).catch(e=>{this._status!==y.STATUS_TERMINATED&&(v.warn(`answer() failed: ${e.message}`),this._failed(`system`,e.message,a.causes.INTERNAL_ERROR))})}terminate(e={}){v.debug(`terminate()`);let t=e.cause||a.causes.BYE,n=c.cloneArray(e.extraHeaders),r=e.body,i,l=e.status_code,u=e.reason_phrase;if(this._status===y.STATUS_TERMINATED)throw new o.InvalidStateError(this._status);switch(this._status){case y.STATUS_NULL:case y.STATUS_INVITE_SENT:case y.STATUS_1XX_RECEIVED:if(v.debug(`canceling session`),l&&(l<200||l>=700))throw TypeError(`Invalid status_code: ${l}`);l&&(u=u||a.REASON_PHRASE[l]||``,i=`SIP ;cause=${l} ;text="${u}"`),this._status===y.STATUS_NULL||this._status===y.STATUS_INVITE_SENT?(this._is_canceled=!0,this._cancel_reason=i):this._status===y.STATUS_1XX_RECEIVED&&this._request.cancel(i),this._status=y.STATUS_CANCELED,this._failed(`local`,null,a.causes.CANCELED);break;case y.STATUS_WAITING_FOR_ANSWER:case y.STATUS_ANSWERED:if(v.debug(`rejecting session`),l||=480,l<300||l>=700)throw TypeError(`Invalid status_code: ${l}`);this._request.reply(l,u,n,r),this._failed(`local`,null,a.causes.REJECTED);break;case y.STATUS_WAITING_FOR_ACK:case y.STATUS_CONFIRMED:if(v.debug(`terminating session`),u=e.reason_phrase||a.REASON_PHRASE[l]||``,l&&(l<200||l>=700))throw TypeError(`Invalid status_code: ${l}`);if(l&&n.push(`Reason: SIP ;cause=${l}; text="${u}"`),this._status===y.STATUS_WAITING_FOR_ACK&&this._direction===`incoming`&&this._request.server_transaction.state!==s.C.STATUS_TERMINATED){let e=this._dialog;this.receiveRequest=({method:t})=>{t===a.ACK&&(this.sendRequest(a.BYE,{extraHeaders:n,body:r}),e.terminate())},this._request.server_transaction.on(`stateChanged`,()=>{this._request.server_transaction.state===s.C.STATUS_TERMINATED&&(this.sendRequest(a.BYE,{extraHeaders:n,body:r}),e.terminate())}),this._ended(`local`,null,t),this._dialog=e,this._ua.newDialog(e)}else this.sendRequest(a.BYE,{extraHeaders:n,body:r}),this._ended(`local`,null,t)}}sendDTMF(e,t={}){v.debug(`sendDTMF() | tones: %s`,e);let n=t.duration||null,r=t.interToneGap||null,i=t.transportType||a.DTMF_TRANSPORT.INFO;if(e===void 0)throw TypeError(`Not enough arguments`);if(this._status!==y.STATUS_CONFIRMED&&this._status!==y.STATUS_WAITING_FOR_ACK&&this._status!==y.STATUS_1XX_RECEIVED)throw new o.InvalidStateError(this._status);if(i!==a.DTMF_TRANSPORT.INFO&&i!==a.DTMF_TRANSPORT.RFC2833)throw TypeError(`invalid transportType: ${i}`);if(typeof e==`number`&&(e=e.toString()),!e||typeof e!=`string`||!e.match(/^[0-9A-DR#*,]+$/i))throw TypeError(`Invalid tones: ${e}`);if(n&&!c.isDecimal(n))throw TypeError(`Invalid tone duration: ${n}`);if(n?n<p.C.MIN_DURATION?(v.debug(`"duration" value is lower than the minimum allowed, setting it to ${p.C.MIN_DURATION} milliseconds`),n=p.C.MIN_DURATION):n>p.C.MAX_DURATION?(v.debug(`"duration" value is greater than the maximum allowed, setting it to ${p.C.MAX_DURATION} milliseconds`),n=p.C.MAX_DURATION):n=Math.abs(n):n=p.C.DEFAULT_DURATION,t.duration=n,r&&!c.isDecimal(r))throw TypeError(`Invalid interToneGap: ${r}`);if(r?r<p.C.MIN_INTER_TONE_GAP?(v.debug(`"interToneGap" value is lower than the minimum allowed, setting it to ${p.C.MIN_INTER_TONE_GAP} milliseconds`),r=p.C.MIN_INTER_TONE_GAP):r=Math.abs(r):r=p.C.DEFAULT_INTER_TONE_GAP,i===a.DTMF_TRANSPORT.RFC2833){let t=this._getDTMFRTPSender();t&&(e=t.toneBuffer+e,t.insertDTMF(e,n,r));return}if(this._tones){this._tones+=e;return}this._tones=e,s.call(this);function s(){let e;if(this._status===y.STATUS_TERMINATED||!this._tones){this._tones=null;return}let i=this._tones[0];if(this._tones=this._tones.substring(1),i===`,`)e=2e3;else{let a=new p(this);t.eventHandlers={onFailed:()=>{this._tones=null}},a.send(i,t),e=n+r}setTimeout(s.bind(this),e)}}sendInfo(e,t,n={}){if(v.debug(`sendInfo()`),this._status!==y.STATUS_CONFIRMED&&this._status!==y.STATUS_WAITING_FOR_ACK&&this._status!==y.STATUS_1XX_RECEIVED)throw new o.InvalidStateError(this._status);new m(this).send(e,t,n)}mute(e={audio:!0,video:!1}){v.debug(`mute()`);let t=!1,n=!1;this._audioMuted===!1&&e.audio&&(t=!0,this._audioMuted=!0,this._toggleMuteAudio(!0)),this._videoMuted===!1&&e.video&&(n=!0,this._videoMuted=!0,this._toggleMuteVideo(!0)),(t===!0||n===!0)&&this._onmute({audio:t,video:n})}unmute(e={audio:!0,video:!0}){v.debug(`unmute()`);let t=!1,n=!1;this._audioMuted===!0&&e.audio&&(t=!0,this._audioMuted=!1,this._localHold===!1&&this._toggleMuteAudio(!1)),this._videoMuted===!0&&e.video&&(n=!0,this._videoMuted=!1,this._localHold===!1&&this._toggleMuteVideo(!1)),(t===!0||n===!0)&&this._onunmute({audio:t,video:n})}hold(e={},t){if(v.debug(`hold()`),this._status!==y.STATUS_WAITING_FOR_ACK&&this._status!==y.STATUS_CONFIRMED||this._localHold===!0||!this.isReadyToReOffer())return!1;this._localHold=!0,this._onhold(`local`);let n={succeeded:()=>{t&&t()},failed:()=>{this.terminate({cause:a.causes.WEBRTC_ERROR,status_code:500,reason_phrase:`Hold Failed`})}};return e.useUpdate?this._sendUpdate({sdpOffer:!0,eventHandlers:n,extraHeaders:e.extraHeaders}):this._sendReinvite({eventHandlers:n,extraHeaders:e.extraHeaders}),!0}unhold(e={},t){if(v.debug(`unhold()`),this._status!==y.STATUS_WAITING_FOR_ACK&&this._status!==y.STATUS_CONFIRMED||this._localHold===!1||!this.isReadyToReOffer())return!1;this._localHold=!1,this._onunhold(`local`);let n={succeeded:()=>{t&&t()},failed:()=>{this.terminate({cause:a.causes.WEBRTC_ERROR,status_code:500,reason_phrase:`Unhold Failed`})}};return e.useUpdate?this._sendUpdate({sdpOffer:!0,eventHandlers:n,extraHeaders:e.extraHeaders}):this._sendReinvite({eventHandlers:n,extraHeaders:e.extraHeaders}),!0}renegotiate(e={},t){v.debug(`renegotiate()`);let n=e.rtcOfferConstraints||null;if(this._status!==y.STATUS_WAITING_FOR_ACK&&this._status!==y.STATUS_CONFIRMED||!this.isReadyToReOffer())return!1;let r={succeeded:()=>{t&&t()},failed:()=>{this.terminate({cause:a.causes.WEBRTC_ERROR,status_code:500,reason_phrase:`Media Renegotiation Failed`})}};return this._setLocalMediaStatus(),e.useUpdate?this._sendUpdate({sdpOffer:!0,eventHandlers:r,rtcOfferConstraints:n,extraHeaders:e.extraHeaders}):this._sendReinvite({eventHandlers:r,rtcOfferConstraints:n,extraHeaders:e.extraHeaders}),!0}refer(e,t){v.debug(`refer()`);let n=e;if(this._status!==y.STATUS_WAITING_FOR_ACK&&this._status!==y.STATUS_CONFIRMED)return!1;if(e=this._ua.normalizeTarget(e),!e)throw TypeError(`Invalid target: ${n}`);let r=new g(this);r.sendRefer(e,t);let i=r.id;return this._referSubscribers[i]=r,r.on(`requestFailed`,()=>{delete this._referSubscribers[i]}),r.on(`accepted`,()=>{delete this._referSubscribers[i]}),r.on(`failed`,()=>{delete this._referSubscribers[i]}),r.on(`authenticated`,()=>{delete this._referSubscribers[i],i=r.id,this._referSubscribers[i]=r}),r}sendRequest(e,t){if(v.debug(`sendRequest()`),this._dialog)return this._dialog.sendRequest(e,t);{let n=Object.values(this._earlyDialogs);if(n.length>0)return n[0].sendRequest(e,t);v.warn(`sendRequest() | no valid early dialog found`);return}}receiveRequest(e){if(v.debug(`receiveRequest()`),e.method===a.CANCEL)(this._status===y.STATUS_WAITING_FOR_ANSWER||this._status===y.STATUS_ANSWERED)&&(this._status=y.STATUS_CANCELED,this._request.reply(487),this._failed(`remote`,e,a.causes.CANCELED));else switch(e.method){case a.ACK:if(this._status!==y.STATUS_WAITING_FOR_ACK)return;if(this._status=y.STATUS_CONFIRMED,clearTimeout(this._timers.ackTimer),clearTimeout(this._timers.invite2xxTimer),this._late_sdp){if(!e.body){this.terminate({cause:a.causes.MISSING_SDP,status_code:400});break}let t={originator:`remote`,type:`answer`,sdp:e.body};v.debug(`emit "sdp"`),this.emit(`sdp`,t);let n=new RTCSessionDescription({type:`answer`,sdp:t.sdp});this._connectionPromiseQueue=this._connectionPromiseQueue.then(()=>this._connection.setRemoteDescription(n)).then(()=>{this._is_confirmed||this._confirmed(`remote`,e)}).catch(e=>{this.terminate({cause:a.causes.BAD_MEDIA_DESCRIPTION,status_code:488}),v.warn(`emit "peerconnection:setremotedescriptionfailed" [error:%o]`,e),this.emit(`peerconnection:setremotedescriptionfailed`,e)})}else this._is_confirmed||this._confirmed(`remote`,e);break;case a.BYE:this._status===y.STATUS_CONFIRMED||this._status===y.STATUS_WAITING_FOR_ACK?(e.reply(200),this._ended(`remote`,e,a.causes.BYE)):this._status===y.STATUS_INVITE_RECEIVED||this._status===y.STATUS_WAITING_FOR_ANSWER?(e.reply(200),this._request.reply(487,`BYE Received`),this._ended(`remote`,e,a.causes.BYE)):e.reply(403,`Wrong Status`);break;case a.INVITE:this._status===y.STATUS_CONFIRMED?e.hasHeader(`replaces`)?this._receiveReplaces(e):this._receiveReinvite(e):e.reply(403,`Wrong Status`);break;case a.INFO:if(this._status===y.STATUS_1XX_RECEIVED||this._status===y.STATUS_WAITING_FOR_ANSWER||this._status===y.STATUS_ANSWERED||this._status===y.STATUS_WAITING_FOR_ACK||this._status===y.STATUS_CONFIRMED){let t=e.hasHeader(`Content-Type`)?e.getHeader(`Content-Type`).toLowerCase():void 0;t&&t.match(/^application\/dtmf-relay/i)?new p(this).init_incoming(e):t===void 0?e.reply(415):new m(this).init_incoming(e)}else e.reply(403,`Wrong Status`);break;case a.UPDATE:this._status===y.STATUS_CONFIRMED?this._receiveUpdate(e):e.reply(403,`Wrong Status`);break;case a.REFER:this._status===y.STATUS_CONFIRMED?this._receiveRefer(e):e.reply(403,`Wrong Status`);break;case a.NOTIFY:this._status===y.STATUS_CONFIRMED?this._receiveNotify(e):e.reply(403,`Wrong Status`);break;default:e.reply(501)}}onTransportError(){v.warn(`onTransportError()`),this._status!==y.STATUS_TERMINATED&&this.terminate({status_code:500,reason_phrase:a.causes.CONNECTION_ERROR,cause:a.causes.CONNECTION_ERROR})}onRequestTimeout(){v.warn(`onRequestTimeout()`),this._status!==y.STATUS_TERMINATED&&this.terminate({status_code:408,reason_phrase:a.causes.REQUEST_TIMEOUT,cause:a.causes.REQUEST_TIMEOUT})}onDialogError(){v.warn(`onDialogError()`),this._status!==y.STATUS_TERMINATED&&this.terminate({status_code:500,reason_phrase:a.causes.DIALOG_ERROR,cause:a.causes.DIALOG_ERROR})}newDTMF(e){v.debug(`newDTMF()`),this.emit(`newDTMF`,e)}newInfo(e){v.debug(`newInfo()`),this.emit(`newInfo`,e)}isReadyToReOffer(){return this._rtcReady?this._dialog?this._dialog.uac_pending_reply===!0||this._dialog.uas_pending_reply===!0?(v.debug(`isReadyToReOffer() | there is another INVITE/UPDATE transaction in progress`),!1):!0:(v.debug(`isReadyToReOffer() | session not established yet`),!1):(v.debug(`isReadyToReOffer() | internal WebRTC status not ready`),!1)}_close(){if(v.debug(`close()`),this._localMediaStream&&this._localMediaStreamLocallyGenerated&&(v.debug(`close() | closing local MediaStream`),c.closeMediaStream(this._localMediaStream)),this._status!==y.STATUS_TERMINATED){if(this._status=y.STATUS_TERMINATED,this._connection)try{this._connection.close()}catch(e){v.warn(`close() | error closing the RTCPeerConnection: %o`,e)}for(let e in this._timers)Object.prototype.hasOwnProperty.call(this._timers,e)&&clearTimeout(this._timers[e]);clearTimeout(this._sessionTimers.timer),this._dialog&&(this._dialog.terminate(),delete this._dialog);for(let e in this._earlyDialogs)Object.prototype.hasOwnProperty.call(this._earlyDialogs,e)&&(this._earlyDialogs[e].terminate(),delete this._earlyDialogs[e]);for(let e in this._referSubscribers)Object.prototype.hasOwnProperty.call(this._referSubscribers,e)&&delete this._referSubscribers[e];this._ua.destroyRTCSession(this)}}_setInvite2xxTimer(e,t){let n=l.T1;function r(){this._status===y.STATUS_WAITING_FOR_ACK&&(e.reply(200,null,[`Contact: ${this._contact}`],t),n<l.T2&&(n*=2,n>l.T2&&(n=l.T2)),this._timers.invite2xxTimer=setTimeout(r.bind(this),n))}this._timers.invite2xxTimer=setTimeout(r.bind(this),n)}_setACKTimer(){this._timers.ackTimer=setTimeout(()=>{this._status===y.STATUS_WAITING_FOR_ACK&&(v.debug(`no ACK received, terminating the session`),clearTimeout(this._timers.invite2xxTimer),this.sendRequest(a.BYE),this._ended(`remote`,null,a.causes.NO_ACK))},l.TIMER_H)}_createRTCConnection(e,t){this._connection=new RTCPeerConnection(e,t),this._connection.addEventListener(`iceconnectionstatechange`,()=>{this._connection.iceConnectionState===`failed`&&this.terminate({cause:a.causes.RTP_TIMEOUT,status_code:408,reason_phrase:a.causes.RTP_TIMEOUT})}),v.debug(`emit "peerconnection"`),this.emit(`peerconnection`,{peerconnection:this._connection})}_createLocalDescription(e,t){if(v.debug(`createLocalDescription()`),e!==`offer`&&e!==`answer`)throw Error(`createLocalDescription() | invalid type "${e}"`);let n=this._connection;return this._rtcReady=!1,Promise.resolve().then(()=>e===`offer`?n.createOffer(t).catch(e=>(v.warn(`emit "peerconnection:createofferfailed" [error:%o]`,e),this.emit(`peerconnection:createofferfailed`,e),Promise.reject(e))):n.createAnswer(t).catch(e=>(v.warn(`emit "peerconnection:createanswerfailed" [error:%o]`,e),this.emit(`peerconnection:createanswerfailed`,e),Promise.reject(e)))).then(e=>n.setLocalDescription(e).catch(e=>(this._rtcReady=!0,v.warn(`emit "peerconnection:setlocaldescriptionfailed" [error:%o]`,e),this.emit(`peerconnection:setlocaldescriptionfailed`,e),Promise.reject(e)))).then(()=>{let r=t&&t.iceRestart;if(n.iceGatheringState===`complete`&&!r||n.iceGatheringState===`gathering`&&this._iceReady){this._rtcReady=!0;let t={originator:`local`,type:e,sdp:n.localDescription.sdp};return v.debug(`emit "sdp"`),this.emit(`sdp`,t),Promise.resolve(t.sdp)}return new Promise(t=>{let r=!1,i,a;this._iceReady=!1;let o=()=>{if(r)return;n.removeEventListener(`icecandidate`,i),n.removeEventListener(`icegatheringstatechange`,a),r=!0,this._rtcReady=!0,this._iceReady=!0;let o={originator:`local`,type:e,sdp:n.localDescription.sdp};v.debug(`emit "sdp"`),this.emit(`sdp`,o),t(o.sdp)};n.addEventListener(`icecandidate`,i=e=>{let t=e.candidate;t?this.emit(`icecandidate`,{candidate:t,ready:o}):o()}),n.addEventListener(`icegatheringstatechange`,a=()=>{n.iceGatheringState===`complete`&&o()})})})}_createDialog(e,t,n){let r=t===`UAS`?e.to_tag:e.from_tag,i=t===`UAS`?e.from_tag:e.to_tag,o=e.call_id+r+i,s=this._earlyDialogs[o];if(n)return s?!0:(s=new d(this,e,t,d.C.STATUS_EARLY),s.error?(v.debug(s.error),this._failed(`remote`,e,a.causes.INTERNAL_ERROR),!1):(this._earlyDialogs[o]=s,!0));{if(this._from_tag=e.from_tag,this._to_tag=e.to_tag,s)return s.update(e,t),this._dialog=s,delete this._earlyDialogs[o],!0;let n=new d(this,e,t);return n.error?(v.debug(n.error),this._failed(`remote`,e,a.causes.INTERNAL_ERROR),!1):(this._dialog=n,!0)}}_receiveReinvite(e){v.debug(`receiveReinvite()`);let t=e.hasHeader(`Content-Type`)?e.getHeader(`Content-Type`).toLowerCase():void 0,n={request:e,callback:void 0,reject:i.bind(this)},r=!1;function i(t={}){r=!0;let n=t.status_code||403,i=t.reason_phrase||``,a=c.cloneArray(t.extraHeaders);if(this._status!==y.STATUS_CONFIRMED)return!1;if(n<300||n>=700)throw TypeError(`Invalid status_code: ${n}`);e.reply(n,i,a)}if(this.emit(`reinvite`,n),r)return;if(this._late_sdp=!1,!e.body){this._late_sdp=!0,this._remoteHold&&(this._remoteHold=!1,this._onunhold(`remote`)),this._connectionPromiseQueue=this._connectionPromiseQueue.then(()=>this._createLocalDescription(`offer`,this._rtcOfferConstraints)).then(e=>{a.call(this,e)}).catch(()=>{e.reply(500)});return}if(t!==`application/sdp`){v.debug(`invalid Content-Type`),e.reply(415);return}this._processInDialogSdpOffer(e).then(e=>{this._status!==y.STATUS_TERMINATED&&a.call(this,e)}).catch(e=>{v.warn(e)});function a(t){let r=[`Contact: ${this._contact}`];this._handleSessionTimersInIncomingRequest(e,r),this._late_sdp&&(t=this._mangleOffer(t)),e.reply(200,null,r,t,()=>{this._status=y.STATUS_WAITING_FOR_ACK,this._setInvite2xxTimer(e,t),this._setACKTimer()}),typeof n.callback==`function`&&n.callback()}}_receiveUpdate(e){v.debug(`receiveUpdate()`);let t=e.hasHeader(`Content-Type`)?e.getHeader(`Content-Type`).toLowerCase():void 0,n={request:e,callback:void 0,reject:i.bind(this)},r=!1;function i(t={}){r=!0;let n=t.status_code||403,i=t.reason_phrase||``,a=c.cloneArray(t.extraHeaders);if(this._status!==y.STATUS_CONFIRMED)return!1;if(n<300||n>=700)throw TypeError(`Invalid status_code: ${n}`);e.reply(n,i,a)}if(this.emit(`update`,n),r)return;if(!e.body){a.call(this,null);return}if(t!==`application/sdp`){v.debug(`invalid Content-Type`),e.reply(415);return}this._processInDialogSdpOffer(e).then(e=>{this._status!==y.STATUS_TERMINATED&&a.call(this,e)}).catch(e=>{v.warn(e)});function a(t){let r=[`Contact: ${this._contact}`];this._handleSessionTimersInIncomingRequest(e,r),e.reply(200,null,r,t),typeof n.callback==`function`&&n.callback()}}_processInDialogSdpOffer(e){v.debug(`_processInDialogSdpOffer()`);let t=e.parseSDP(),n=!1;for(let e of t.media){if(b.indexOf(e.type)===-1)continue;let r=e.direction||t.direction||`sendrecv`;if(r===`sendonly`||r===`inactive`)n=!0;else{n=!1;break}}let r={originator:`remote`,type:`offer`,sdp:e.body};v.debug(`emit "sdp"`),this.emit(`sdp`,r);let i=new RTCSessionDescription({type:`offer`,sdp:r.sdp});return this._connectionPromiseQueue=this._connectionPromiseQueue.then(()=>{if(this._status===y.STATUS_TERMINATED)throw Error(`terminated`);return this._connection.setRemoteDescription(i).catch(t=>{throw e.reply(488),v.warn(`emit "peerconnection:setremotedescriptionfailed" [error:%o]`,t),this.emit(`peerconnection:setremotedescriptionfailed`,t),t})}).then(()=>{if(this._status===y.STATUS_TERMINATED)throw Error(`terminated`);this._remoteHold===!0&&n===!1?(this._remoteHold=!1,this._onunhold(`remote`)):this._remoteHold===!1&&n===!0&&(this._remoteHold=!0,this._onhold(`remote`))}).then(()=>{if(this._status===y.STATUS_TERMINATED)throw Error(`terminated`);return this._createLocalDescription(`answer`,this._rtcAnswerConstraints).catch(t=>{throw e.reply(500),v.warn(`emit "peerconnection:createtelocaldescriptionfailed" [error:%o]`,t),t})}).catch(e=>{v.warn(`_processInDialogSdpOffer() failed [error: %o]`,e)}),this._connectionPromiseQueue}_receiveRefer(t){if(v.debug(`receiveRefer()`),!t.refer_to){v.debug(`no Refer-To header field present in REFER`),t.reply(400);return}if(t.refer_to.uri.scheme!==a.SIP){v.debug(`Refer-To header field points to a non-SIP URI scheme`),t.reply(416);return}t.reply(202);let n=new h(this,t.cseq);v.debug(`emit "refer"`),this.emit(`refer`,{request:t,accept:(e,t)=>{r.call(this,e,t)},reject:()=>{i.call(this)}});function r(r,i={}){if(r=typeof r==`function`?r:null,this._status!==y.STATUS_WAITING_FOR_ACK&&this._status!==y.STATUS_CONFIRMED)return!1;let a=new e(this._ua);if(a.on(`progress`,({response:e})=>{n.notify(e.status_code,e.reason_phrase)}),a.on(`accepted`,({response:e})=>{n.notify(e.status_code,e.reason_phrase)}),a.on(`_failed`,({message:e,cause:t})=>{e?n.notify(e.status_code,e.reason_phrase):n.notify(487,t)}),t.refer_to.uri.hasHeader(`replaces`)){let e=decodeURIComponent(t.refer_to.uri.getHeader(`replaces`));i.extraHeaders=c.cloneArray(i.extraHeaders),i.extraHeaders.push(`Replaces: ${e}`)}let o=t.refer_to.uri.clone();o.clearHeaders(),a.connect(o,i,r)}function i(){n.notify(603)}}_receiveNotify(e){switch(v.debug(`receiveNotify()`),e.event||e.reply(400),e.event.event){case`refer`:{let t,n;if(e.event.params&&e.event.params.id)t=e.event.params.id,n=this._referSubscribers[t];else if(Object.keys(this._referSubscribers).length===1)n=this._referSubscribers[Object.keys(this._referSubscribers)[0]];else{e.reply(400,`Missing event id parameter`);return}if(!n){e.reply(481,`Subscription does not exist`);return}n.receiveNotify(e),e.reply(200);break}default:e.reply(489)}}_receiveReplaces(t){v.debug(`receiveReplaces()`);function n(n){if(this._status!==y.STATUS_WAITING_FOR_ACK&&this._status!==y.STATUS_CONFIRMED)return!1;let r=new e(this._ua);r.on(`confirmed`,()=>{this.terminate()}),r.init_incoming(t,n)}function r(){v.debug(`Replaced INVITE rejected by the user`),t.reply(486)}this.emit(`replaces`,{request:t,accept:e=>{n.call(this,e)},reject:()=>{r.call(this)}})}_sendInitialRequest(e,t,n){let r=new f(this._ua,this._request,{onRequestTimeout:()=>{this.onRequestTimeout()},onTransportError:()=>{this.onTransportError()},onAuthenticated:e=>{this._request=e},onReceiveResponse:e=>{this._receiveInviteResponse(e)}});Promise.resolve().then(()=>{if(n)return n;if(e.audio||e.video)return this._localMediaStreamLocallyGenerated=!0,navigator.mediaDevices.getUserMedia(e).catch(e=>{throw this._status===y.STATUS_TERMINATED?Error(`terminated`):(this._failed(`local`,null,a.causes.USER_DENIED_MEDIA_ACCESS),v.warn(`emit "getusermediafailed" [error:%o]`,e),this.emit(`getusermediafailed`,e),e)})}).then(e=>{if(this._status===y.STATUS_TERMINATED)throw Error(`terminated`);return this._localMediaStream=e,e&&e.getTracks().forEach(t=>{this._connection.addTrack(t,e)}),this._connecting(this._request),this._createLocalDescription(`offer`,t).catch(e=>{throw this._failed(`local`,null,a.causes.WEBRTC_ERROR),e})}).then(e=>{if(this._is_canceled||this._status===y.STATUS_TERMINATED)throw Error(`terminated`);this._request.body=e,this._status=y.STATUS_INVITE_SENT,v.debug(`emit "sending" [request:%o]`,this._request),this.emit(`sending`,{request:this._request}),r.send()}).catch(e=>{this._status!==y.STATUS_TERMINATED&&v.warn(e)})}_getDTMFRTPSender(){let e=this._connection.getSenders().find(e=>e.track&&e.track.kind===`audio`);if(!(e&&e.dtmf)){v.warn(`sendDTMF() | no local audio track to send DTMF with`);return}return e.dtmf}_receiveInviteResponse(e){if(v.debug(`receiveInviteResponse()`),this._dialog&&e.status_code>=200&&e.status_code<=299)if(this._dialog.id.call_id===e.call_id&&this._dialog.id.local_tag===e.from_tag&&this._dialog.id.remote_tag===e.to_tag){this.sendRequest(a.ACK);return}else{let t=new d(this,e,`UAC`);if(t.error!==void 0){v.debug(t.error);return}this.sendRequest(a.ACK),this.sendRequest(a.BYE);return}if(this._is_canceled){e.status_code>=100&&e.status_code<200?this._request.cancel(this._cancel_reason):e.status_code>=200&&e.status_code<299&&this._acceptAndTerminate(e);return}if(!(this._status!==y.STATUS_INVITE_SENT&&this._status!==y.STATUS_1XX_RECEIVED))switch(!0){case/^100$/.test(e.status_code):this._status=y.STATUS_1XX_RECEIVED;break;case/^1[0-9]{2}$/.test(e.status_code):{if(!e.to_tag){v.debug(`1xx response received without to tag`);break}if(e.hasHeader(`contact`)&&!this._createDialog(e,`UAC`,!0))break;if(this._status=y.STATUS_1XX_RECEIVED,!e.body){this._progress(`remote`,e);break}let t={originator:`remote`,type:`answer`,sdp:e.body};v.debug(`emit "sdp"`),this.emit(`sdp`,t);let n=new RTCSessionDescription({type:`answer`,sdp:t.sdp});this._connectionPromiseQueue=this._connectionPromiseQueue.then(()=>this._connection.setRemoteDescription(n)).then(()=>this._progress(`remote`,e)).catch(e=>{v.warn(`emit "peerconnection:setremotedescriptionfailed" [error:%o]`,e),this.emit(`peerconnection:setremotedescriptionfailed`,e)});break}case/^2[0-9]{2}$/.test(e.status_code):{if(this._status=y.STATUS_CONFIRMED,!e.body){this._acceptAndTerminate(e,400,a.causes.MISSING_SDP),this._failed(`remote`,e,a.causes.BAD_MEDIA_DESCRIPTION);break}if(!this._createDialog(e,`UAC`))break;let t={originator:`remote`,type:`answer`,sdp:e.body};v.debug(`emit "sdp"`),this.emit(`sdp`,t);let n=new RTCSessionDescription({type:`answer`,sdp:t.sdp});this._connectionPromiseQueue=this._connectionPromiseQueue.then(()=>{if(this._connection.signalingState===`stable`)return this._connection.createOffer(this._rtcOfferConstraints).then(e=>this._connection.setLocalDescription(e)).catch(t=>{this._acceptAndTerminate(e,500,t.toString()),this._failed(`local`,e,a.causes.WEBRTC_ERROR)})}).then(()=>{this._connection.setRemoteDescription(n).then(()=>{this._handleSessionTimersInIncomingResponse(e),this._accepted(`remote`,e),this.sendRequest(a.ACK),this._confirmed(`local`,null)}).catch(t=>{this._acceptAndTerminate(e,488,`Not Acceptable Here`),this._failed(`remote`,e,a.causes.BAD_MEDIA_DESCRIPTION),v.warn(`emit "peerconnection:setremotedescriptionfailed" [error:%o]`,t),this.emit(`peerconnection:setremotedescriptionfailed`,t)})});break}default:{let t=c.sipErrorCause(e.status_code);this._failed(`remote`,e,t)}}}_sendReinvite(e={}){v.debug(`sendReinvite()`);let t=c.cloneArray(e.extraHeaders),n=c.cloneObject(e.eventHandlers),r=e.rtcOfferConstraints||this._rtcOfferConstraints||null,i=!1;t.push(`Contact: ${this._contact}`),t.push(`Content-Type: application/sdp`),this._sessionTimers.running&&t.push(`Session-Expires: ${this._sessionTimers.currentExpires};refresher=${this._sessionTimers.refresher?`uac`:`uas`}`),this._connectionPromiseQueue=this._connectionPromiseQueue.then(()=>this._createLocalDescription(`offer`,r)).then(e=>{e=this._mangleOffer(e);let n={originator:`local`,type:`offer`,sdp:e};v.debug(`emit "sdp"`),this.emit(`sdp`,n),this.sendRequest(a.INVITE,{extraHeaders:t,body:e,eventHandlers:{onSuccessResponse:e=>{o.call(this,e),i=!0},onErrorResponse:e=>{s.call(this,e)},onTransportError:()=>{this.onTransportError()},onRequestTimeout:()=>{this.onRequestTimeout()},onDialogError:()=>{this.onDialogError()}}})}).catch(()=>{s()});function o(e){if(this._status===y.STATUS_TERMINATED||(this.sendRequest(a.ACK),i))return;if(this._handleSessionTimersInIncomingResponse(e),!e.body){s.call(this);return}else if(!e.hasHeader(`Content-Type`)||e.getHeader(`Content-Type`).toLowerCase()!==`application/sdp`){s.call(this);return}let t={originator:`remote`,type:`answer`,sdp:e.body};v.debug(`emit "sdp"`),this.emit(`sdp`,t);let r=new RTCSessionDescription({type:`answer`,sdp:t.sdp});this._connectionPromiseQueue=this._connectionPromiseQueue.then(()=>this._connection.setRemoteDescription(r)).then(()=>{n.succeeded&&n.succeeded(e)}).catch(e=>{s.call(this),v.warn(`emit "peerconnection:setremotedescriptionfailed" [error:%o]`,e),this.emit(`peerconnection:setremotedescriptionfailed`,e)})}function s(e){n.failed&&n.failed(e)}}_sendUpdate(e={}){v.debug(`sendUpdate()`);let t=c.cloneArray(e.extraHeaders),n=c.cloneObject(e.eventHandlers),r=e.rtcOfferConstraints||this._rtcOfferConstraints||null,i=e.sdpOffer||!1,o=!1;t.push(`Contact: ${this._contact}`),this._sessionTimers.running&&t.push(`Session-Expires: ${this._sessionTimers.currentExpires};refresher=${this._sessionTimers.refresher?`uac`:`uas`}`),i?(t.push(`Content-Type: application/sdp`),this._connectionPromiseQueue=this._connectionPromiseQueue.then(()=>this._createLocalDescription(`offer`,r)).then(e=>{e=this._mangleOffer(e);let n={originator:`local`,type:`offer`,sdp:e};v.debug(`emit "sdp"`),this.emit(`sdp`,n),this.sendRequest(a.UPDATE,{extraHeaders:t,body:e,eventHandlers:{onSuccessResponse:e=>{s.call(this,e),o=!0},onErrorResponse:e=>{l.call(this,e)},onTransportError:()=>{this.onTransportError()},onRequestTimeout:()=>{this.onRequestTimeout()},onDialogError:()=>{this.onDialogError()}}})}).catch(()=>{l.call(this)})):this.sendRequest(a.UPDATE,{extraHeaders:t,eventHandlers:{onSuccessResponse:e=>{s.call(this,e)},onErrorResponse:e=>{l.call(this,e)},onTransportError:()=>{this.onTransportError()},onRequestTimeout:()=>{this.onRequestTimeout()},onDialogError:()=>{this.onDialogError()}}});function s(e){if(this._status!==y.STATUS_TERMINATED&&!o)if(this._handleSessionTimersInIncomingResponse(e),i){if(!e.body){l.call(this);return}else if(!e.hasHeader(`Content-Type`)||e.getHeader(`Content-Type`).toLowerCase()!==`application/sdp`){l.call(this);return}let t={originator:`remote`,type:`answer`,sdp:e.body};v.debug(`emit "sdp"`),this.emit(`sdp`,t);let r=new RTCSessionDescription({type:`answer`,sdp:t.sdp});this._connectionPromiseQueue=this._connectionPromiseQueue.then(()=>this._connection.setRemoteDescription(r)).then(()=>{n.succeeded&&n.succeeded(e)}).catch(e=>{l.call(this),v.warn(`emit "peerconnection:setremotedescriptionfailed" [error:%o]`,e),this.emit(`peerconnection:setremotedescriptionfailed`,e)})}else n.succeeded&&n.succeeded(e)}function l(e){n.failed&&n.failed(e)}}_acceptAndTerminate(e,t,n){v.debug(`acceptAndTerminate()`);let r=[];t&&(n=n||a.REASON_PHRASE[t]||``,r.push(`Reason: SIP ;cause=${t}; text="${n}"`)),(this._dialog||this._createDialog(e,`UAC`))&&(this.sendRequest(a.ACK),this.sendRequest(a.BYE,{extraHeaders:r})),this._status=y.STATUS_TERMINATED}_mangleOffer(e){if(!this._localHold&&!this._remoteHold)return e;if(e=r.parse(e),this._localHold&&!this._remoteHold){v.debug(`mangleOffer() | me on hold, mangling offer`);for(let t of e.media)b.indexOf(t.type)!==-1&&(t.direction?t.direction===`sendrecv`?t.direction=`sendonly`:t.direction===`recvonly`&&(t.direction=`inactive`):t.direction=`sendonly`)}else if(this._localHold&&this._remoteHold){v.debug(`mangleOffer() | both on hold, mangling offer`);for(let t of e.media)b.indexOf(t.type)!==-1&&(t.direction=`inactive`)}else if(this._remoteHold){v.debug(`mangleOffer() | remote on hold, mangling offer`);for(let t of e.media)b.indexOf(t.type)!==-1&&(t.direction?t.direction===`sendrecv`?t.direction=`recvonly`:t.direction===`recvonly`&&(t.direction=`inactive`):t.direction=`recvonly`)}return r.write(e)}_setLocalMediaStatus(){let e=!0,t=!0;(this._localHold||this._remoteHold)&&(e=!1,t=!1),this._audioMuted&&(e=!1),this._videoMuted&&(t=!1),this._toggleMuteAudio(!e),this._toggleMuteVideo(!t)}_handleSessionTimersInIncomingRequest(e,t){if(!this._sessionTimers.enabled)return;let n;e.session_expires&&e.session_expires>=a.MIN_SESSION_EXPIRES?(this._sessionTimers.currentExpires=e.session_expires,n=e.session_expires_refresher||`uas`):(this._sessionTimers.currentExpires=this._sessionTimers.defaultExpires,n=`uas`),t.push(`Session-Expires: ${this._sessionTimers.currentExpires};refresher=${n}`),this._sessionTimers.refresher=n===`uas`,this._runSessionTimer()}_handleSessionTimersInIncomingResponse(e){if(!this._sessionTimers.enabled)return;let t;e.session_expires&&e.session_expires>=a.MIN_SESSION_EXPIRES?(this._sessionTimers.currentExpires=e.session_expires,t=e.session_expires_refresher||`uac`):(this._sessionTimers.currentExpires=this._sessionTimers.defaultExpires,t=`uac`),this._sessionTimers.refresher=t===`uac`,this._runSessionTimer()}_runSessionTimer(){let e=this._sessionTimers.currentExpires;this._sessionTimers.running=!0,clearTimeout(this._sessionTimers.timer),this._sessionTimers.refresher?this._sessionTimers.timer=setTimeout(()=>{this._status!==y.STATUS_TERMINATED&&this.isReadyToReOffer()&&(v.debug(`runSessionTimer() | sending session refresh request`),this._sessionTimers.refreshMethod===a.UPDATE?this._sendUpdate():this._sendReinvite())},e*500):this._sessionTimers.timer=setTimeout(()=>{this._status!==y.STATUS_TERMINATED&&(v.warn(`runSessionTimer() | timer expired, terminating the session`),this.terminate({cause:a.causes.REQUEST_TIMEOUT,status_code:408,reason_phrase:`Session Timer Expired`}))},e*1100)}_toggleMuteAudio(e){let t=this._connection.getSenders().filter(e=>e.track&&e.track.kind===`audio`);for(let n of t)n.track.enabled=!e}_toggleMuteVideo(e){let t=this._connection.getSenders().filter(e=>e.track&&e.track.kind===`video`);for(let n of t)n.track.enabled=!e}_newRTCSession(e,t){v.debug(`newRTCSession()`),this._ua.newRTCSession(this,{originator:e,session:this,request:t})}_connecting(e){v.debug(`session connecting`),v.debug(`emit "connecting"`),this.emit(`connecting`,{request:e})}_progress(e,t){v.debug(`session progress`),v.debug(`emit "progress"`),this.emit(`progress`,{originator:e,response:t||null})}_accepted(e,t){v.debug(`session accepted`),this._start_time=new Date,v.debug(`emit "accepted"`),this.emit(`accepted`,{originator:e,response:t||null})}_confirmed(e,t){v.debug(`session confirmed`),this._is_confirmed=!0,v.debug(`emit "confirmed"`),this.emit(`confirmed`,{originator:e,ack:t||null})}_ended(e,t,n){v.debug(`session ended`),this._end_time=new Date,this._close(),v.debug(`emit "ended"`),this.emit(`ended`,{originator:e,message:t||null,cause:n})}_failed(e,t,n){v.debug(`session failed`),v.debug(`emit "_failed"`),this.emit(`_failed`,{originator:e,message:t||null,cause:n}),this._close(),v.debug(`emit "failed"`),this.emit(`failed`,{originator:e,message:t||null,cause:n})}_onhold(e){v.debug(`session onhold`),this._setLocalMediaStatus(),v.debug(`emit "hold"`),this.emit(`hold`,{originator:e})}_onunhold(e){v.debug(`session onunhold`),this._setLocalMediaStatus(),v.debug(`emit "unhold"`),this.emit(`unhold`,{originator:e})}_onmute({audio:e,video:t}){v.debug(`session onmute`),this._setLocalMediaStatus(),v.debug(`emit "muted"`),this.emit(`muted`,{audio:e,video:t})}_onunmute({audio:e,video:t}){v.debug(`session onunmute`),this._setLocalMediaStatus(),v.debug(`emit "unmuted"`),this.emit(`unmuted`,{audio:e,video:t})}}})),oD=o(((e,t)=>{var n=RE().EventEmitter,r=NE(),i=HE(),a=ME(),o=LE(),s=FE(),c=qE(),l=ZE(),u=eD(),d=new i(`Subscriber`),f={SUBSCRIBE_RESPONSE_TIMEOUT:0,SUBSCRIBE_TRANSPORT_ERROR:1,SUBSCRIBE_NON_OK_RESPONSE:2,SUBSCRIBE_WRONG_OK_RESPONSE:3,SUBSCRIBE_AUTHENTICATION_FAILED:4,UNSUBSCRIBE_TIMEOUT:5,FINAL_NOTIFY_RECEIVED:6,WRONG_NOTIFY_RECEIVED:7,STATE_PENDING:0,STATE_ACTIVE:1,STATE_TERMINATED:2,STATE_INIT:3,STATE_WAITING_NOTIFY:4,DEFAULT_EXPIRES_SEC:900};t.exports=class extends n{static get C(){return f}constructor(e,t,n,r,{expires:i,contentType:a,allowEvents:c,params:l,extraHeaders:u}){if(d.debug(`new`),super(),!t)throw TypeError(`Not enough arguments: Missing target`);if(!n)throw TypeError(`Not enough arguments: Missing eventName`);if(!r)throw TypeError(`Not enough arguments: Missing accept`);let p=s.parse(n,`Event`);if(p===-1)throw TypeError(`Missing Event header field`);this._ua=e,this._target=t,(!o.isDecimal(i)||i<=0)&&(i=f.DEFAULT_EXPIRES_SEC),this._expires=i,this._content_type=a,this._params=o.cloneObject(l),this._params.from_uri||(this._params.from_uri=this._ua.configuration.uri),this._params.from_tag=o.newTag(),this._params.to_tag=null,this._params.call_id=o.createRandomToken(20),this._params.cseq===void 0&&(this._params.cseq=Math.floor(Math.random()*1e4+1)),this._state=f.STATE_INIT,this._dialog=null,this._expires_timer=null,this._expires_timestamp=null,this._terminated=!1,this._event_name=p.event,this._event_id=p.params&&p.params.id;let m=this._event_name;if(this._event_id&&(m+=`;id=${this._event_id}`),this._headers=o.cloneArray(u),this._headers=this._headers.concat([`Event: ${m}`,`Expires: ${this._expires}`,`Accept: ${r}`]),!this._headers.find(e=>e.startsWith(`Contact`))){let e=`Contact: ${this._ua._contact.toString()}`;this._headers.push(e)}c&&this._headers.push(`Allow-Events: ${c}`),this._queue=[],this._data={}}get C(){return f}get state(){return this._state}get id(){return this._dialog?this._dialog.id:null}get data(){return this._data}set data(e){this._data=e}onRequestTimeout(){this._terminateDialog(f.SUBSCRIBE_RESPONSE_TIMEOUT)}onTransportError(){this._terminateDialog(f.SUBSCRIBE_TRANSPORT_ERROR)}receiveRequest(e){if(e.method!==a.NOTIFY){d.warn(`received non-NOTIFY request`),e.reply(405);return}let t=e.parseHeader(`Event`);if(!t){d.warn(`missing Event header`),e.reply(400),this._terminateDialog(f.WRONG_NOTIFY_RECEIVED);return}let n=t.event,r=t.params&&t.params.id;if(n!==this._event_name||r!==this._event_id){d.warn(`Event header does not match the one in SUBSCRIBE request`),e.reply(489),this._terminateDialog(f.WRONG_NOTIFY_RECEIVED);return}let i=e.parseHeader(`subscription-state`);if(!i){d.warn(`missing Subscription-State header`),e.reply(400),this._terminateDialog(f.WRONG_NOTIFY_RECEIVED);return}let o=this._parseSubscriptionState(i.state);if(o===void 0){d.warn(`Invalid Subscription-State header value: ${i.state}`),e.reply(400),this._terminateDialog(f.WRONG_NOTIFY_RECEIVED);return}e.reply(200);let s=this._state;if(s!==f.STATE_TERMINATED&&o!==f.STATE_TERMINATED&&(this._state=o,i.expires!==void 0)){let e=i.expires,t=new Date().getTime()+e*1e3;this._expires_timestamp-t>2e3&&(d.debug(`update sending re-SUBSCRIBE time`),this._scheduleSubscribe(e))}s!==f.STATE_PENDING&&o===f.STATE_PENDING?(d.debug(`emit "pending"`),this.emit(`pending`)):s!==f.STATE_ACTIVE&&o===f.STATE_ACTIVE&&(d.debug(`emit "active"`),this.emit(`active`));let c=e.body,l=o===f.STATE_TERMINATED;if(c){let t=e.getHeader(`content-type`);d.debug(`emit "notify"`),this.emit(`notify`,l,e,c,t)}if(l){let e=i.reason,t;i.params&&i.params[`retry-after`]!==void 0&&(t=parseInt(i.params[`retry-after`])),this._terminateDialog(f.FINAL_NOTIFY_RECEIVED,e,t)}}subscribe(e=null){d.debug(`subscribe()`),this._state===f.STATE_INIT?this._sendInitialSubscribe(e,this._headers):this._sendSubsequentSubscribe(e,this._headers)}terminate(e=null){if(d.debug(`terminate()`),this._state===f.STATE_INIT)throw new r.InvalidStateError(this._state);if(this._terminated)return;this._terminated=!0;let t=this._headers.map(e=>e.startsWith(`Expires`)?`Expires: 0`:e);this._sendSubsequentSubscribe(e,t)}_terminateDialog(e,t=void 0,n=void 0){this._state!==f.STATE_TERMINATED&&(this._state=f.STATE_TERMINATED,clearTimeout(this._expires_timer),this._dialog&&=(this._dialog.terminate(),null),d.debug(`emit "terminated" code=${e}`),this.emit(`terminated`,e,t,n))}_sendInitialSubscribe(e,t){if(e){if(!this._content_type)throw TypeError(`content_type is undefined`);t=o.cloneArray(t),t.push(`Content-Type: ${this._content_type}`)}this._state=f.STATE_WAITING_NOTIFY;let n=new c.OutgoingRequest(a.SUBSCRIBE,this._ua.normalizeTarget(this._target),this._ua,this._params,t,e);new l(this._ua,n,{onRequestTimeout:()=>{this.onRequestTimeout()},onTransportError:()=>{this.onTransportError()},onReceiveResponse:e=>{this._receiveSubscribeResponse(e)}}).send()}_sendSubsequentSubscribe(e,t){if(this._state!==f.STATE_TERMINATED){if(!this._dialog){d.debug(`enqueue subscribe`),this._queue.push({body:e,headers:o.cloneArray(t)});return}if(e){if(!this._content_type)throw TypeError(`content_type is undefined`);t=o.cloneArray(t),t.push(`Content-Type: ${this._content_type}`)}this._dialog.sendRequest(a.SUBSCRIBE,{body:e,extraHeaders:t,eventHandlers:{onRequestTimeout:()=>{this.onRequestTimeout()},onTransportError:()=>{this.onTransportError()},onSuccessResponse:e=>{this._receiveSubscribeResponse(e)},onErrorResponse:e=>{this._receiveSubscribeResponse(e)},onDialogError:e=>{this._receiveSubscribeResponse(e)}}})}}_receiveSubscribeResponse(e){if(this._state!==f.STATE_TERMINATED)if(e.status_code>=200&&e.status_code<300){if(this._dialog===null){let t=new u(this,e,`UAC`);if(t.error){d.warn(t.error),this._terminateDialog(f.SUBSCRIBE_WRONG_OK_RESPONSE);return}this._dialog=t,d.debug(`emit "accepted"`),this.emit(`accepted`);for(let e of this._queue)d.debug(`dequeue subscribe`),this._sendSubsequentSubscribe(e.body,e.headers)}let t=e.getHeader(`expires`),n=parseInt(t);(!o.isDecimal(n)||n<=0)&&(d.warn(`response without Expires header, setting a default value of ${f.DEFAULT_EXPIRES_SEC}`),n=f.DEFAULT_EXPIRES_SEC),n>0&&this._scheduleSubscribe(n)}else e.status_code===401||e.status_code===407?this._terminateDialog(f.SUBSCRIBE_AUTHENTICATION_FAILED):e.status_code>=300&&this._terminateDialog(f.SUBSCRIBE_NON_OK_RESPONSE)}_scheduleSubscribe(e){let t=e>=140?e*1e3/2+Math.floor((e/2-70)*1e3*Math.random()):e*1e3-5e3;this._expires_timestamp=new Date().getTime()+e*1e3,d.debug(`next SUBSCRIBE will be sent in ${Math.floor(t/1e3)} sec`),clearTimeout(this._expires_timer),this._expires_timer=setTimeout(()=>{this._expires_timer=null,this._sendSubsequentSubscribe(null,this._headers)},t)}_parseSubscriptionState(e){switch(e){case`pending`:return f.STATE_PENDING;case`active`:return f.STATE_ACTIVE;case`terminated`:return f.STATE_TERMINATED;case`init`:return f.STATE_INIT;case`notify_wait`:return f.STATE_WAITING_NOTIFY;default:return}}}})),sD=o(((e,t)=>{var n=RE().EventEmitter,r=NE(),i=HE(),a=ME(),o=LE(),s=eD(),c=new i(`Notifier`),l={NOTIFY_RESPONSE_TIMEOUT:0,NOTIFY_TRANSPORT_ERROR:1,NOTIFY_NON_OK_RESPONSE:2,NOTIFY_AUTHENTICATION_FAILED:3,FINAL_NOTIFY_SENT:4,UNSUBSCRIBE_RECEIVED:5,SUBSCRIPTION_EXPIRED:6,STATE_PENDING:0,STATE_ACTIVE:1,STATE_TERMINATED:2,DEFAULT_EXPIRES_SEC:900};t.exports=class e extends n{static get C(){return l}static init_incoming(t,n){try{e.checkSubscribe(t)}catch(e){c.warn(`Notifier.init_incoming: invalid request. Error: `,e.message),t.reply(405);return}n()}static checkSubscribe(e){if(!e)throw TypeError(`Not enough arguments. Missing subscribe request`);if(e.method!==a.SUBSCRIBE)throw TypeError(`Invalid method for Subscribe request`);if(!e.hasHeader(`contact`))throw TypeError(`Missing Contact header in subscribe request`);if(!e.hasHeader(`event`))throw TypeError(`Missing Event header in subscribe request`);let t=e.getHeader(`expires`);if(t){let e=parseInt(t);if(!o.isDecimal(e)||e<0)throw TypeError(`Invalid Expires header field in subscribe request`)}}constructor(t,n,r,{extraHeaders:i,allowEvents:a,pending:s,defaultExpires:u}){if(c.debug(`new`),super(),!r)throw TypeError(`Not enough arguments. Missing contentType`);e.checkSubscribe(n);let d=n.getHeader(`event`);this._ua=t,this._initial_subscribe=n,this._expires_timestamp=null,this._expires_timer=null,this._defaultExpires=u||l.DEFAULT_EXPIRES_SEC,this._state=s?l.STATE_PENDING:l.STATE_ACTIVE,this._content_type=r,this._headers=o.cloneArray(i),this._headers.push(`Event: ${d}`),this._contact=this._headers.find(e=>e.startsWith(`Contact`)),this._contact||(this._contact=`Contact: ${this._ua._contact.toString()}`,this._headers.push(this._contact)),a&&this._headers.push(`Allow-Events: ${a}`),this._target=n.from.uri.user,n.to_tag=o.newTag(),this._data={}}get C(){return l}get state(){return this._state}get id(){return this._dialog?this._dialog.id:null}get data(){return this._data}set data(e){this._data=e}receiveRequest(e){if(e.method!==a.SUBSCRIBE){e.reply(405);return}this._setExpires(e),this._dialog||=new s(this,e,`UAS`),e.reply(200,null,[`Expires: ${this._expires}`,`${this._contact}`]);let t=e.body,n=e.getHeader(`content-type`),r=this._expires===0;r||this._setExpiresTimer(),c.debug(`emit "subscribe"`),this.emit(`subscribe`,r,e,t,n),r&&this._terminateDialog(l.UNSUBSCRIBE_RECEIVED)}start(){if(c.debug(`start()`),this._state===l.STATE_TERMINATED)throw new r.InvalidStateError(this._state);this.receiveRequest(this._initial_subscribe)}setActiveState(){if(c.debug(`setActiveState()`),this._state===l.STATE_TERMINATED)throw new r.InvalidStateError(this._state);this._state===l.STATE_PENDING&&(this._state=l.STATE_ACTIVE)}notify(e=null){if(c.debug(`notify()`),this._state===l.STATE_TERMINATED)throw new r.InvalidStateError(this._state);let t=Math.floor((this._expires_timestamp-new Date().getTime())/1e3);t<=0?(this._expires_timer||c.error(`expires timer is not set`),clearTimeout(this._expires_timer),this.terminate(e,`timeout`)):this._sendNotify([`;expires=${t}`],e)}terminate(e=null,t=null,n=null){if(c.debug(`terminate()`),this._state===l.STATE_TERMINATED)return;let r=[];t&&r.push(`;reason=${t}`),n!==null&&r.push(`;retry-after=${n}`),this._sendNotify(r,e,null,`terminated`),this._terminateDialog(t===`timeout`?l.SUBSCRIPTION_EXPIRED:l.FINAL_NOTIFY_SENT)}_terminateDialog(e){this._state!==l.STATE_TERMINATED&&(this._state=l.STATE_TERMINATED,clearTimeout(this._expires_timer),this._dialog&&=(this._dialog.terminate(),null),c.debug(`emit "terminated" code=${e}`),this.emit(`terminated`,e))}_setExpires(e){e.hasHeader(`expires`)?this._expires=parseInt(e.getHeader(`expires`)):(this._expires=this._defaultExpires,c.debug(`missing Expires header field, default value set: ${this._expires}`))}_sendNotify(e,t=null,n=null,r=null){if(this._state===l.STATE_TERMINATED){c.warn(`final notify already sent`);return}let i=`Subscription-State: ${r||this._parseState()}`;for(let t of e)i+=t;let s=o.cloneArray(this._headers);s.push(i),n&&(s=s.concat(n)),t&&s.push(`Content-Type: ${this._content_type}`),this._dialog.sendRequest(a.NOTIFY,{body:t,extraHeaders:s,eventHandlers:{onRequestTimeout:()=>{this._terminateDialog(l.NOTIFY_RESPONSE_TIMEOUT)},onTransportError:()=>{this._terminateDialog(l.NOTIFY_TRANSPORT_ERROR)},onErrorResponse:e=>{e.status_code===401||e.status_code===407?this._terminateDialog(l.NOTIFY_AUTHENTICATION_FAILED):this._terminateDialog(l.NOTIFY_NON_OK_RESPONSE)},onDialogError:()=>{this._terminateDialog(l.NOTIFY_NON_OK_RESPONSE)}}})}_setExpiresTimer(){this._expires_timestamp=new Date().getTime()+this._expires*1e3,clearTimeout(this._expires_timer),this._expires_timer=setTimeout(()=>{this._state!==l.STATE_TERMINATED&&(c.debug(`emit "expired"`),this.emit(`expired`),this.terminate(null,`timeout`))},this._expires*1e3)}_parseState(){switch(this._state){case l.STATE_PENDING:return`pending`;case l.STATE_ACTIVE:return`active`;case l.STATE_TERMINATED:return`terminated`;default:throw TypeError(`wrong state value`)}}}})),cD=o(((e,t)=>{var n=RE().EventEmitter,r=HE(),i=ME(),a=qE(),o=LE(),s=ZE(),c=NE(),l=IE(),u=new r(`Message`);t.exports=class extends n{constructor(e){super(),this._ua=e,this._request=null,this._closed=!1,this._direction=null,this._local_identity=null,this._remote_identity=null,this._is_replied=!1,this._data={}}get direction(){return this._direction}get local_identity(){return this._local_identity}get remote_identity(){return this._remote_identity}send(e,t,n={}){let r=e;if(e===void 0||t===void 0)throw TypeError(`Not enough arguments`);if(e=this._ua.normalizeTarget(e),!e)throw TypeError(`Invalid target: ${r}`);let c=o.cloneArray(n.extraHeaders),u=o.cloneObject(n.eventHandlers),d=n.contentType||`text/plain`,f={};n.fromUserName&&(f.from_uri=new l(`sip`,n.fromUserName,this._ua.configuration.uri.host),c.push(`P-Preferred-Identity: ${this._ua.configuration.uri.toString()}`)),n.fromDisplayName&&(f.from_display_name=n.fromDisplayName);for(let e in u)Object.prototype.hasOwnProperty.call(u,e)&&this.on(e,u[e]);c.push(`Content-Type: ${d}`),this._request=new a.OutgoingRequest(i.MESSAGE,e,this._ua,f,c),t&&(this._request.body=t);let p=new s(this._ua,this._request,{onRequestTimeout:()=>{this._onRequestTimeout()},onTransportError:()=>{this._onTransportError()},onReceiveResponse:e=>{this._receiveResponse(e)}});this._newMessage(`local`,this._request),p.send()}init_incoming(e){this._request=e,this._newMessage(`remote`,e),this._is_replied||(this._is_replied=!0,e.reply(200)),this._close()}accept(e={}){let t=o.cloneArray(e.extraHeaders),n=e.body;if(this._direction!==`incoming`)throw new c.NotSupportedError(`"accept" not supported for outgoing Message`);if(this._is_replied)throw Error(`incoming Message already replied`);this._is_replied=!0,this._request.reply(200,null,t,n)}reject(e={}){let t=e.status_code||480,n=e.reason_phrase,r=o.cloneArray(e.extraHeaders),i=e.body;if(this._direction!==`incoming`)throw new c.NotSupportedError(`"reject" not supported for outgoing Message`);if(this._is_replied)throw Error(`incoming Message already replied`);if(t<300||t>=700)throw TypeError(`Invalid status_code: ${t}`);this._is_replied=!0,this._request.reply(t,n,r,i)}_receiveResponse(e){if(!this._closed)switch(!0){case/^1[0-9]{2}$/.test(e.status_code):break;case/^2[0-9]{2}$/.test(e.status_code):this._succeeded(`remote`,e);break;default:{let t=o.sipErrorCause(e.status_code);this._failed(`remote`,e,t);break}}}_onRequestTimeout(){this._closed||this._failed(`system`,null,i.causes.REQUEST_TIMEOUT)}_onTransportError(){this._closed||this._failed(`system`,null,i.causes.CONNECTION_ERROR)}_close(){this._closed=!0,this._ua.destroyMessage(this)}_newMessage(e,t){e===`remote`?(this._direction=`incoming`,this._local_identity=t.to,this._remote_identity=t.from):e===`local`&&(this._direction=`outgoing`,this._local_identity=t.from,this._remote_identity=t.to),this._ua.newMessage(this,{originator:e,message:this,request:t})}_failed(e,t,n){u.debug(`MESSAGE failed`),this._close(),u.debug(`emit "failed"`),this.emit(`failed`,{originator:e,response:t||null,cause:n})}_succeeded(e,t){u.debug(`MESSAGE succeeded`),this._close(),u.debug(`emit "succeeded"`),this.emit(`succeeded`,{originator:e,response:t})}}})),lD=o(((e,t)=>{var n=RE().EventEmitter,r=HE(),i=ME(),a=qE(),o=LE(),s=ZE(),c=NE(),l=new r(`Options`);t.exports=class extends n{constructor(e){super(),this._ua=e,this._request=null,this._closed=!1,this._direction=null,this._local_identity=null,this._remote_identity=null,this._is_replied=!1,this._data={}}get direction(){return this._direction}get local_identity(){return this._local_identity}get remote_identity(){return this._remote_identity}send(e,t,n={}){let r=e;if(e===void 0)throw TypeError(`A target is required for OPTIONS`);if(e=this._ua.normalizeTarget(e),!e)throw TypeError(`Invalid target: ${r}`);let c=o.cloneArray(n.extraHeaders),l=o.cloneObject(n.eventHandlers),u=n.contentType||`application/sdp`;for(let e in l)Object.prototype.hasOwnProperty.call(l,e)&&this.on(e,l[e]);c.push(`Content-Type: ${u}`),this._request=new a.OutgoingRequest(i.OPTIONS,e,this._ua,null,c),t&&(this._request.body=t);let d=new s(this._ua,this._request,{onRequestTimeout:()=>{this._onRequestTimeout()},onTransportError:()=>{this._onTransportError()},onReceiveResponse:e=>{this._receiveResponse(e)}});this._newOptions(`local`,this._request),d.send()}init_incoming(e){this._request=e,this._newOptions(`remote`,e),this._is_replied||(this._is_replied=!0,e.reply(200)),this._close()}accept(e={}){let t=o.cloneArray(e.extraHeaders),n=e.body;if(this._direction!==`incoming`)throw new c.NotSupportedError(`"accept" not supported for outgoing Options`);if(this._is_replied)throw Error(`incoming Options already replied`);this._is_replied=!0,this._request.reply(200,null,t,n)}reject(e={}){let t=e.status_code||480,n=e.reason_phrase,r=o.cloneArray(e.extraHeaders),i=e.body;if(this._direction!==`incoming`)throw new c.NotSupportedError(`"reject" not supported for outgoing Options`);if(this._is_replied)throw Error(`incoming Options already replied`);if(t<300||t>=700)throw TypeError(`Invalid status_code: ${t}`);this._is_replied=!0,this._request.reply(t,n,r,i)}_receiveResponse(e){if(!this._closed)switch(!0){case/^1[0-9]{2}$/.test(e.status_code):break;case/^2[0-9]{2}$/.test(e.status_code):this._succeeded(`remote`,e);break;default:{let t=o.sipErrorCause(e.status_code);this._failed(`remote`,e,t);break}}}_onRequestTimeout(){this._closed||this._failed(`system`,null,i.causes.REQUEST_TIMEOUT)}_onTransportError(){this._closed||this._failed(`system`,null,i.causes.CONNECTION_ERROR)}_close(){this._closed=!0,this._ua.destroyMessage(this)}_newOptions(e,t){e===`remote`?(this._direction=`incoming`,this._local_identity=t.to,this._remote_identity=t.from):e===`local`&&(this._direction=`outgoing`,this._local_identity=t.from,this._remote_identity=t.to),this._ua.newOptions(this,{originator:e,message:this,request:t})}_failed(e,t,n){l.debug(`OPTIONS failed`),this._close(),l.debug(`emit "failed"`),this.emit(`failed`,{originator:e,response:t||null,cause:n})}_succeeded(e,t){l.debug(`OPTIONS succeeded`),this._close(),l.debug(`emit "succeeded"`),this.emit(`succeeded`,{originator:e,response:t})}}})),uD=o((e=>{var t=HE(),n=LE(),r=FE(),i=new t(`Socket`);e.isSocket=e=>{if(Array.isArray(e))return!1;if(e===void 0)return i.warn(`undefined JsSIP.Socket instance`),!1;try{if(!n.isString(e.url))throw i.warn(`missing or invalid JsSIP.Socket url property`),Error(`Missing or invalid JsSIP.Socket url property`);if(!n.isString(e.via_transport))throw i.warn(`missing or invalid JsSIP.Socket via_transport property`),Error(`Missing or invalid JsSIP.Socket via_transport property`);if(r.parse(e.sip_uri,`SIP_URI`)===-1)throw i.warn(`missing or invalid JsSIP.Socket sip_uri property`),Error(`missing or invalid JsSIP.Socket sip_uri property`)}catch{return!1}try{[`connect`,`disconnect`,`send`].forEach(t=>{if(!n.isFunction(e[t]))throw i.warn(`missing or invalid JsSIP.Socket method: ${t}`),Error(`Missing or invalid JsSIP.Socket method: ${t}`)})}catch{return!1}return!0}})),dD=o(((e,t)=>{var n=HE(),r=uD(),i=ME(),a=new n(`Transport`),o={STATUS_CONNECTED:0,STATUS_CONNECTING:1,STATUS_DISCONNECTED:2,SOCKET_STATUS_READY:0,SOCKET_STATUS_ERROR:1,recovery_options:{min_interval:i.CONNECTION_RECOVERY_MIN_INTERVAL,max_interval:i.CONNECTION_RECOVERY_MAX_INTERVAL}};t.exports=class{constructor(e,t=o.recovery_options){a.debug(`new()`),this.status=o.STATUS_DISCONNECTED,this.socket=null,this.sockets=[],this.recovery_options=t,this.recover_attempts=0,this.recovery_timer=null,this.close_requested=!1;try{this.textDecoder=new TextDecoder(`utf8`)}catch(e){a.warn(`cannot use TextDecoder: ${e}`)}if(e===void 0)throw TypeError(`Invalid argument. undefined 'sockets' argument`);e instanceof Array||(e=[e]),e.forEach(function(e){if(!r.isSocket(e.socket))throw TypeError(`Invalid argument. invalid 'JsSIP.Socket' instance`);if(e.weight&&!Number(e.weight))throw TypeError(`Invalid argument. 'weight' attribute is not a number`);this.sockets.push({socket:e.socket,weight:e.weight||0,status:o.SOCKET_STATUS_READY})},this),this._getSocket()}get via_transport(){return this.socket.via_transport}get url(){return this.socket.url}get sip_uri(){return this.socket.sip_uri}connect(){if(a.debug(`connect()`),this.isConnected()){a.debug(`Transport is already connected`);return}else if(this.isConnecting()){a.debug(`Transport is connecting`);return}this.close_requested=!1,this.status=o.STATUS_CONNECTING,this.onconnecting({socket:this.socket,attempts:this.recover_attempts}),this.close_requested||(this.socket.onconnect=this._onConnect.bind(this),this.socket.ondisconnect=this._onDisconnect.bind(this),this.socket.ondata=this._onData.bind(this),this.socket.connect())}disconnect(){a.debug(`close()`),this.close_requested=!0,this.recover_attempts=0,this.status=o.STATUS_DISCONNECTED,this.recovery_timer!==null&&(clearTimeout(this.recovery_timer),this.recovery_timer=null),this.socket.onconnect=()=>{},this.socket.ondisconnect=()=>{},this.socket.ondata=()=>{},this.socket.disconnect(),this.ondisconnect({socket:this.socket,error:!1})}send(e){if(a.debug(`send()`),!this.isConnected())return a.warn(`unable to send message, transport is not connected`),!1;let t=e.toString();return a.debug(`sending message:\n\n${t}\n`),this.socket.send(t)}isConnected(){return this.status===o.STATUS_CONNECTED}isConnecting(){return this.status===o.STATUS_CONNECTING}_reconnect(){this.recover_attempts+=1;let e=Math.floor(Math.random()*2**this.recover_attempts+1);e<this.recovery_options.min_interval?e=this.recovery_options.min_interval:e>this.recovery_options.max_interval&&(e=this.recovery_options.max_interval),a.debug(`reconnection attempt: ${this.recover_attempts}. next connection attempt in ${e} seconds`),this.recovery_timer=setTimeout(()=>{!this.close_requested&&!(this.isConnected()||this.isConnecting())&&(this._getSocket(),this.connect())},e*1e3)}_getSocket(){let e=[];if(this.sockets.forEach(t=>{t.status!==o.SOCKET_STATUS_ERROR&&(e.length===0?e.push(t):t.weight>e[0].weight?e=[t]:t.weight===e[0].weight&&e.push(t))}),e.length===0){this.sockets.forEach(e=>{e.status=o.SOCKET_STATUS_READY}),this._getSocket();return}let t=Math.floor(Math.random()*e.length);this.socket=e[t].socket}_onConnect(){this.recover_attempts=0,this.status=o.STATUS_CONNECTED,this.recovery_timer!==null&&(clearTimeout(this.recovery_timer),this.recovery_timer=null),this.onconnect({socket:this})}_onDisconnect(e,t,n){this.status=o.STATUS_DISCONNECTED,this.ondisconnect({socket:this.socket,error:e,code:t,reason:n}),!this.close_requested&&(this.sockets.forEach(function(e){this.socket===e.socket&&(e.status=o.SOCKET_STATUS_ERROR)},this),this._reconnect(e))}_onData(e){if(e===`\r
52
+ \r
53
+ `){a.debug(`received message with double-CRLF Keep Alive request`);try{this.socket.send(`\r
54
+ `)}catch(e){a.warn(`error sending Keep Alive response: ${e}`)}return}if(e===`\r
55
+ `){a.debug(`received message with CRLF Keep Alive response`);return}else if(typeof e!=`string`){try{e=this.textDecoder?this.textDecoder.decode(e):String.fromCharCode.apply(null,new Uint8Array(e))}catch(e){a.debug(`received binary message failed to be converted into string: ${e}`);return}a.debug(`received binary message:\n\n${e}\n`)}else a.debug(`received text message:\n\n${e}\n`);this.ondata({transport:this,message:e})}}})),fD=o((e=>{var t=HE(),n=FE(),r=qE(),i=new t(`Parser`);e.parseMessage=(e,t)=>{let s,c,l=e.indexOf(`\r
56
+ `);if(l===-1){i.warn(`parseMessage() | no CRLF found, not a SIP message`);return}let u=e.substring(0,l),d=n.parse(u,`Request_Response`);if(d===-1){i.warn(`parseMessage() | error parsing first line of SIP message: "${u}"`);return}else d.status_code?(s=new r.IncomingResponse,s.status_code=d.status_code,s.reason_phrase=d.reason_phrase):(s=new r.IncomingRequest(t),s.method=d.method,s.ruri=d.uri);s.data=e;let f=l+2;for(;;){if(l=a(e,f),l===-2){c=f+2;break}else if(l===-1){i.warn(`parseMessage() | malformed message`);return}if(d=o(s,e,f,l),d!==!0){i.warn(`parseMessage() |`,d.error);return}f=l+2}if(s.hasHeader(`content-length`)){let t=s.getHeader(`content-length`);s.body=e.substr(c,t)}else s.body=e.substring(c);return s};function a(e,t){let n=t,r=0,i=0;if(e.substring(n,n+2).match(/(^\r\n)/))return-2;for(;r===0;){if(i=e.indexOf(`\r
57
+ `,n),i===-1)return i;!e.substring(i+2,i+4).match(/(^\r\n)/)&&e.charAt(i+2).match(/(^\s+)/)?n=i+2:r=i}return r}function o(e,t,i,a){let o,s=t.indexOf(`:`,i),c=t.substring(i,s).trim(),l=t.substring(s+1,a).trim();switch(c.toLowerCase()){case`via`:case`v`:e.addHeader(`via`,l),e.getHeaders(`via`).length===1?(o=e.parseHeader(`Via`),o&&(e.via=o,e.via_branch=o.branch)):o=0;break;case`from`:case`f`:e.setHeader(`from`,l),o=e.parseHeader(`from`),o&&(e.from=o,e.from_tag=o.getParam(`tag`));break;case`to`:case`t`:e.setHeader(`to`,l),o=e.parseHeader(`to`),o&&(e.to=o,e.to_tag=o.getParam(`tag`));break;case`record-route`:if(o=n.parse(l,`Record_Route`),o===-1)o=void 0;else for(let t of o)e.addHeader(`record-route`,l.substring(t.possition,t.offset)),e.headers[`Record-Route`][e.getHeaders(`record-route`).length-1].parsed=t.parsed;break;case`call-id`:case`i`:e.setHeader(`call-id`,l),o=e.parseHeader(`call-id`),o&&(e.call_id=l);break;case`contact`:case`m`:if(o=n.parse(l,`Contact`),o===-1)o=void 0;else for(let t of o)e.addHeader(`contact`,l.substring(t.possition,t.offset)),e.headers.Contact[e.getHeaders(`contact`).length-1].parsed=t.parsed;break;case`content-length`:case`l`:e.setHeader(`content-length`,l),o=e.parseHeader(`content-length`);break;case`content-type`:case`c`:e.setHeader(`content-type`,l),o=e.parseHeader(`content-type`);break;case`cseq`:e.setHeader(`cseq`,l),o=e.parseHeader(`cseq`),o&&(e.cseq=o.value),e instanceof r.IncomingResponse&&(e.method=o.method);break;case`max-forwards`:e.setHeader(`max-forwards`,l),o=e.parseHeader(`max-forwards`);break;case`www-authenticate`:e.setHeader(`www-authenticate`,l),o=e.parseHeader(`www-authenticate`);break;case`proxy-authenticate`:e.setHeader(`proxy-authenticate`,l),o=e.parseHeader(`proxy-authenticate`);break;case`session-expires`:case`x`:e.setHeader(`session-expires`,l),o=e.parseHeader(`session-expires`),o&&(e.session_expires=o.expires,e.session_expires_refresher=o.refresher);break;case`refer-to`:case`r`:e.setHeader(`refer-to`,l),o=e.parseHeader(`refer-to`),o&&(e.refer_to=o);break;case`replaces`:e.setHeader(`replaces`,l),o=e.parseHeader(`replaces`),o&&(e.replaces=o);break;case`event`:case`o`:e.setHeader(`event`,l),o=e.parseHeader(`event`),o&&(e.event=o);break;default:e.addHeader(c,l),o=0}return o===void 0?{error:`error parsing header "${c}"`}:!0}})),pD=o(((e,t)=>{var n=HE(),r=ME(),i=qE(),a=LE(),o=new n(`sanityCheck`),s=[y],c=[p,m,h,g],l=[_,v],u,d,f;t.exports=(e,t,n)=>{u=e,d=t,f=n;for(let e of s)if(e()===!1)return!1;if(u instanceof i.IncomingRequest){for(let e of c)if(e()===!1)return!1}else if(u instanceof i.IncomingResponse){for(let e of l)if(e()===!1)return!1}return!0};function p(){if(u.s(`to`).uri.scheme!==`sip`)return b(416),!1}function m(){if(!u.to_tag&&u.call_id.substr(0,5)===d.configuration.jssip_id)return b(482),!1}function h(){if(a.str_utf8_length(u.body)<u.getHeader(`content-length`))return b(400),!1}function g(){let e=u.from_tag,t=u.call_id,n=u.cseq,i;if(!u.to_tag){if(u.method===r.INVITE){if(d._transactions.ist[u.via_branch])return!1;for(let r in d._transactions.ist)if(Object.prototype.hasOwnProperty.call(d._transactions.ist,r)&&(i=d._transactions.ist[r],i.request.from_tag===e&&i.request.call_id===t&&i.request.cseq===n))return b(482),!1}else if(d._transactions.nist[u.via_branch])return!1;else for(let r in d._transactions.nist)if(Object.prototype.hasOwnProperty.call(d._transactions.nist,r)&&(i=d._transactions.nist[r],i.request.from_tag===e&&i.request.call_id===t&&i.request.cseq===n))return b(482),!1}}function _(){if(u.getHeaders(`via`).length>1)return o.debug(`more than one Via header field present in the response, dropping the response`),!1}function v(){if(a.str_utf8_length(u.body)<u.getHeader(`content-length`))return o.debug(`message body length is lower than the value in Content-Length header field, dropping the response`),!1}function y(){for(let e of[`from`,`to`,`call_id`,`cseq`,`via`])if(!u.hasHeader(e))return o.debug(`missing mandatory header field : ${e}, dropping the response`),!1}function b(e){let t=u.getHeaders(`via`),n,i=`SIP/2.0 ${e} ${r.REASON_PHRASE[e]}\r\n`;for(let e of t)i+=`Via: ${e}\r\n`;n=u.getHeader(`To`),u.to_tag||(n+=`;tag=${a.newTag()}`),i+=`To: ${n}\r\n`,i+=`From: ${u.getHeader(`From`)}\r\n`,i+=`Call-ID: ${u.call_id}\r\n`,i+=`CSeq: ${u.cseq} ${u.method}\r\n`,i+=`\r
58
+ `,f.send(i)}})),mD=o((e=>{var t=LE(),n=ME(),r=FE(),i=IE(),a=uD(),o=NE();e.settings={authorization_user:null,password:null,realm:null,ha1:null,authorization_jwt:null,display_name:null,uri:null,contact_uri:null,instance_id:null,use_preloaded_route:!1,session_timers:!0,session_timers_refresh_method:n.UPDATE,session_timers_force_refresher:!1,no_answer_timeout:60,register:!0,register_expires:600,register_from_tag_trail:``,registrar_server:null,sockets:null,connection_recovery_max_interval:n.CONNECTION_RECOVERY_MAX_INTERVAL,connection_recovery_min_interval:n.CONNECTION_RECOVERY_MIN_INTERVAL,extra_headers:null,via_host:`${t.createRandomToken(12)}.invalid`};var s={mandatory:{sockets(e){let t=[];if(a.isSocket(e))t.push({socket:e});else if(Array.isArray(e)&&e.length)for(let n of e)Object.prototype.hasOwnProperty.call(n,`socket`)&&a.isSocket(n.socket)?t.push(n):a.isSocket(n)&&t.push({socket:n});else return;return t},uri(e){/^sip:/i.test(e)||(e=`${n.SIP}:${e}`);let t=i.parse(e);if(t&&t.user)return t}},optional:{authorization_user(e){if(r.parse(`"${e}"`,`quoted_string`)!==-1)return e},authorization_jwt(e){if(typeof e==`string`)return e},user_agent(e){if(typeof e==`string`)return e},connection_recovery_max_interval(e){if(t.isDecimal(e)){let t=Number(e);if(t>0)return t}},connection_recovery_min_interval(e){if(t.isDecimal(e)){let t=Number(e);if(t>0)return t}},contact_uri(e){if(typeof e==`string`){let t=r.parse(e,`SIP_URI`);if(t!==-1)return t}},display_name(e){return e},instance_id(e){if(/^uuid:/i.test(e)&&(e=e.substr(5)),r.parse(e,`uuid`)!==-1)return e},no_answer_timeout(e){if(t.isDecimal(e)){let t=Number(e);if(t>0)return t}},session_timers(e){if(typeof e==`boolean`)return e},session_timers_refresh_method(e){if(typeof e==`string`&&(e=e.toUpperCase(),e===n.INVITE||e===n.UPDATE))return e},session_timers_force_refresher(e){if(typeof e==`boolean`)return e},password(e){return String(e)},realm(e){return String(e)},ha1(e){return String(e)},register(e){if(typeof e==`boolean`)return e},register_expires(e){if(t.isDecimal(e)){let t=Number(e);if(t>=0)return t}},register_from_tag_trail(e){return typeof e==`function`?e:String(e)},registrar_server(e){/^sip:/i.test(e)||(e=`${n.SIP}:${e}`);let t=i.parse(e);if(t&&!t.user)return t},use_preloaded_route(e){if(typeof e==`boolean`)return e},extra_headers(e){let t=[];if(Array.isArray(e)&&e.length)for(let n of e)typeof n==`string`&&t.push(n);else return;return t}}};e.load=(e,n)=>{for(let t in s.mandatory)if(n.hasOwnProperty(t)){let r=n[t],i=s.mandatory[t](r);if(i!==void 0)e[t]=i;else throw new o.ConfigurationError(t,r)}else throw new o.ConfigurationError(t);for(let r in s.optional)if(n.hasOwnProperty(r)){let i=n[r];if(t.isEmpty(i))continue;let a=s.optional[r](i);if(a!==void 0)e[r]=a;else throw new o.ConfigurationError(r,i)}}})),hD=o(((e,t)=>{var n=RE().EventEmitter,r=HE(),i=ME(),a=QE(),o=aD(),s=oD(),c=sD(),l=cD(),u=lD(),d=XE(),f=dD(),p=LE(),m=NE(),h=IE(),g=fD(),_=qE(),v=pD(),y=mD(),b=new r(`UA`),x={STATUS_INIT:0,STATUS_READY:1,STATUS_USER_CLOSED:2,STATUS_NOT_READY:3,CONFIGURATION_ERROR:1,NETWORK_ERROR:2};t.exports=class extends n{static get C(){return x}constructor(e){if(!e)throw TypeError(`Not enough arguments`);let t=[`password`,`ha1`,`authorization_jwt`];b.debug(`new() [configuration:%o]`,Object.entries(e).filter(([e])=>!t.includes(e))),super(),this._cache={credentials:{}},this._configuration=Object.assign({},y.settings),this._dynConfiguration={},this._dialogs={},this._applicants={},this._sessions={},this._transport=null,this._contact=null,this._status=x.STATUS_INIT,this._error=null,this._transactions={nist:{},nict:{},ist:{},ict:{}},this._data={},this._closeTimer=null;try{this._loadConfig(e)}catch(e){throw this._status=x.STATUS_NOT_READY,this._error=x.CONFIGURATION_ERROR,e}this._registrator=new a(this)}get C(){return x}get status(){return this._status}get contact(){return this._contact}get configuration(){return this._configuration}get transport(){return this._transport}start(){b.debug(`start()`),this._status===x.STATUS_INIT?this._transport.connect():this._status===x.STATUS_USER_CLOSED?(b.debug(`restarting UA`),this._closeTimer!==null&&(clearTimeout(this._closeTimer),this._closeTimer=null,this._transport.disconnect()),this._status=x.STATUS_INIT,this._transport.connect()):this._status===x.STATUS_READY?b.debug(`UA is in READY status, not restarted`):b.debug(`ERROR: connection is down, Auto-Recovery system is trying to reconnect`),this._dynConfiguration.register=this._configuration.register}register(){b.debug(`register()`),this._dynConfiguration.register=!0,this._registrator.register()}unregister(e){b.debug(`unregister()`),this._dynConfiguration.register=!1,this._registrator.unregister(e)}registrator(){return this._registrator}isRegistered(){return this._registrator.registered}isConnected(){return this._transport.isConnected()}call(e,t){b.debug(`call()`);let n=new o(this);return n.connect(e,t),n}sendMessage(e,t,n){b.debug(`sendMessage()`);let r=new l(this);return r.send(e,t,n),r}subscribe(e,t,n,r){return b.debug(`subscribe()`),new s(this,e,t,n,r)}notify(e,t,n){return b.debug(`notify()`),new c(this,e,t,n)}sendOptions(e,t,n){b.debug(`sendOptions()`);let r=new u(this);return r.send(e,t,n),r}terminateSessions(e){b.debug(`terminateSessions()`);for(let t in this._sessions)this._sessions[t].isEnded()||this._sessions[t].terminate(e)}stop(){if(b.debug(`stop()`),this._dynConfiguration={},this._status===x.STATUS_USER_CLOSED){b.debug(`UA already closed`);return}this._registrator.close();let e=Object.keys(this._sessions).length;for(let e in this._sessions)if(Object.prototype.hasOwnProperty.call(this._sessions,e)){b.debug(`closing session ${e}`);try{this._sessions[e].terminate()}catch{}}for(let e in this._applicants)if(Object.prototype.hasOwnProperty.call(this._applicants,e))try{this._applicants[e].close()}catch{}this._status=x.STATUS_USER_CLOSED,Object.keys(this._transactions.nict).length+Object.keys(this._transactions.nist).length+Object.keys(this._transactions.ict).length+Object.keys(this._transactions.ist).length===0&&e===0?this._transport.disconnect():this._closeTimer=setTimeout(()=>{this._closeTimer=null,this._transport.disconnect()},2e3)}normalizeTarget(e){return p.normalizeTarget(e,this._configuration.hostport_params)}get(e){switch(e){case`authorization_user`:return this._configuration.authorization_user;case`realm`:return this._configuration.realm;case`ha1`:return this._configuration.ha1;case`authorization_jwt`:return this._configuration.authorization_jwt;default:b.warn(`get() | cannot get "%s" parameter in runtime`,e);return}}set(e,t){switch(e){case`authorization_user`:this._configuration.authorization_user=String(t);break;case`password`:this._configuration.password=String(t);break;case`realm`:this._configuration.realm=String(t);break;case`ha1`:this._configuration.ha1=String(t),this._configuration.password=null;break;case`authorization_jwt`:this._configuration.authorization_jwt=String(t);break;case`display_name`:this._configuration.display_name=t;break;case`extra_headers`:this._configuration.extra_headers=t;break;default:return b.warn(`set() | cannot set "%s" parameter in runtime`,e),!1}return!0}newTransaction(e){this._transactions[e.type][e.id]=e,this.emit(`newTransaction`,{transaction:e})}destroyTransaction(e){delete this._transactions[e.type][e.id],this.emit(`transactionDestroyed`,{transaction:e})}newDialog(e){this._dialogs[e.id]=e}destroyDialog(e){delete this._dialogs[e.id]}newMessage(e,t){this._applicants[e]=e,this.emit(`newMessage`,t)}newOptions(e,t){this._applicants[e]=e,this.emit(`newOptions`,t)}destroyMessage(e){delete this._applicants[e]}newRTCSession(e,t){this._sessions[e.id]=e,this.emit(`newRTCSession`,t)}destroyRTCSession(e){delete this._sessions[e.id]}registered(e){this.emit(`registered`,e)}unregistered(e){this.emit(`unregistered`,e)}registrationFailed(e){this.emit(`registrationFailed`,e)}receiveRequest(e){let t=e.method;if(e.ruri.user!==this._configuration.uri.user&&e.ruri.user!==this._contact.uri.user){b.debug(`Request-URI does not point to us`),e.method!==i.ACK&&e.reply_sl(404);return}if(e.ruri.scheme===i.SIPS){e.reply_sl(416);return}if(d.checkTransaction(this,e))return;if(t===i.INVITE?new d.InviteServerTransaction(this,this._transport,e):t!==i.ACK&&t!==i.CANCEL&&new d.NonInviteServerTransaction(this,this._transport,e),t===i.OPTIONS){if(this.listeners(`newOptions`).length===0){e.reply(200);return}new u(this).init_incoming(e)}else if(t===i.MESSAGE){if(this.listeners(`newMessage`).length===0){e.reply(405);return}new l(this).init_incoming(e)}else if(t===i.SUBSCRIBE){if(this.listeners(`newSubscribe`).length===0){e.reply(405);return}}else if(t===i.INVITE&&!e.to_tag&&this.listeners(`newRTCSession`).length===0){e.reply(405);return}let n,r;if(e.to_tag)n=this._findDialog(e.call_id,e.from_tag,e.to_tag),n?n.receiveRequest(e):t===i.NOTIFY?(r=this._findSession(e),r?r.receiveRequest(e):(b.debug(`received NOTIFY request for a non existent subscription`),e.reply(481,`Subscription does not exist`))):t!==i.ACK&&e.reply(481);else switch(t){case i.INVITE:if(window.RTCPeerConnection)if(e.hasHeader(`replaces`)){let t=e.replaces;n=this._findDialog(t.call_id,t.from_tag,t.to_tag),n?(r=n.owner,r.isEnded()?e.reply(603):r.receiveRequest(e)):e.reply(481)}else r=new o(this),r.init_incoming(e);else b.warn(`INVITE received but WebRTC is not supported`),e.reply(488);break;case i.BYE:e.reply(481);break;case i.CANCEL:r=this._findSession(e),r?r.receiveRequest(e):b.debug(`received CANCEL request for a non existent session`);break;case i.ACK:break;case i.NOTIFY:this.emit(`sipEvent`,{event:e.event,request:e}),e.reply(200);break;case i.SUBSCRIBE:c.init_incoming(e,()=>{this.emit(`newSubscribe`,{event:e.event,request:e})});break;default:e.reply(405);break}}_findSession({call_id:e,from_tag:t,to_tag:n}){let r=e+t,i=this._sessions[r],a=e+n,o=this._sessions[a];return i||o||null}_findDialog(e,t,n){let r=e+t+n,i=this._dialogs[r];return i||(r=e+n+t,i=this._dialogs[r],i||null)}_loadConfig(e){y.load(this._configuration,e),this._configuration.display_name===0&&(this._configuration.display_name=`0`),this._configuration.instance_id||(this._configuration.instance_id=p.newUUID()),this._configuration.jssip_id=p.createRandomToken(5);let t=this._configuration.uri.clone();t.user=null,this._configuration.hostport_params=t.toString().replace(/^sip:/i,``);try{this._transport=new f(this._configuration.sockets,{max_interval:this._configuration.connection_recovery_max_interval,min_interval:this._configuration.connection_recovery_min_interval}),this._transport.onconnecting=S.bind(this),this._transport.onconnect=C.bind(this),this._transport.ondisconnect=w.bind(this),this._transport.ondata=T.bind(this)}catch(e){throw b.warn(e),new m.ConfigurationError(`sockets`,this._configuration.sockets)}if(delete this._configuration.sockets,this._configuration.authorization_user||(this._configuration.authorization_user=this._configuration.uri.user),!this._configuration.registrar_server){let e=this._configuration.uri.clone();e.user=null,e.clearParams(),e.clearHeaders(),this._configuration.registrar_server=e}this._configuration.no_answer_timeout*=1e3,this._configuration.contact_uri?this._configuration.via_host=this._configuration.contact_uri.host:this._configuration.contact_uri=new h(`sip`,p.createRandomToken(8),this._configuration.via_host,null,{transport:`ws`}),this._contact={pub_gruu:null,temp_gruu:null,uri:this._configuration.contact_uri,toString(e={}){let t=e.anonymous||null,n=e.outbound||null,r=`<`;return t?r+=this.temp_gruu||`sip:anonymous@anonymous.invalid;transport=ws`:r+=this.pub_gruu||this.uri.toString(),n&&(t?!this.temp_gruu:!this.pub_gruu)&&(r+=`;ob`),r+=`>`,r}};let n=[`authorization_user`,`password`,`realm`,`ha1`,`authorization_jwt`,`display_name`,`register`,`extra_headers`];for(let e in this._configuration)Object.prototype.hasOwnProperty.call(this._configuration,e)&&(n.indexOf(e)===-1?Object.defineProperty(this._configuration,e,{writable:!1,configurable:!1}):Object.defineProperty(this._configuration,e,{writable:!0,configurable:!1}));b.debug(`configuration parameters after validation:`);for(let e in this._configuration)if(Object.prototype.hasOwnProperty.call(y.settings,e))switch(e){case`uri`:case`registrar_server`:b.debug(`- ${e}: ${this._configuration[e]}`);break;case`password`:case`ha1`:case`authorization_jwt`:b.debug(`- ${e}: NOT SHOWN`);break;default:b.debug(`- ${e}: ${JSON.stringify(this._configuration[e])}`)}}};function S(e){this.emit(`connecting`,e)}function C(e){this._status!==x.STATUS_USER_CLOSED&&(this._status=x.STATUS_READY,this._error=null,this.emit(`connected`,e),this._dynConfiguration.register&&this._registrator.register())}function w(e){for(let e of[`nict`,`ict`,`nist`,`ist`])for(let t in this._transactions[e])Object.prototype.hasOwnProperty.call(this._transactions[e],t)&&this._transactions[e][t].onTransportError();this.emit(`disconnected`,e),this._registrator.onTransportClosed(),this._status!==x.STATUS_USER_CLOSED&&(this._status=x.STATUS_NOT_READY,this._error=x.NETWORK_ERROR)}function T(e){let t=e.transport,n=e.message;if(n=g.parseMessage(n,this),n&&!(this._status===x.STATUS_USER_CLOSED&&n instanceof _.IncomingRequest)&&v(n,this,t)){if(n instanceof _.IncomingRequest)n.transport=t,this.receiveRequest(n);else if(n instanceof _.IncomingResponse){let e;switch(n.method){case i.INVITE:e=this._transactions.ict[n.via_branch],e&&e.receiveResponse(n);break;case i.ACK:break;default:e=this._transactions.nict[n.via_branch],e&&e.receiveResponse(n);break}}}}})),gD=o(((e,t)=>{var n=HE(),r=FE(),i=new n(`WebSocketInterface`);t.exports=class{constructor(e){i.debug(`new() [url:"%s"]`,e),this._url=e,this._sip_uri=null,this._via_transport=null,this._ws=null;let t=r.parse(e,`absoluteURI`);if(t===-1)throw i.warn(`invalid WebSocket URI: ${e}`),TypeError(`Invalid argument: ${e}`);if(t.scheme!==`wss`&&t.scheme!==`ws`)throw i.warn(`invalid WebSocket URI scheme: ${t.scheme}`),TypeError(`Invalid argument: ${e}`);this._sip_uri=`sip:${t.host}${t.port?`:${t.port}`:``};transport=ws`,this._via_transport=t.scheme.toUpperCase()}get via_transport(){return this._via_transport}set via_transport(e){this._via_transport=e.toUpperCase()}get sip_uri(){return this._sip_uri}get url(){return this._url}connect(){if(i.debug(`connect()`),this.isConnected()){i.debug(`WebSocket ${this._url} is already connected`);return}else if(this.isConnecting()){i.debug(`WebSocket ${this._url} is connecting`);return}this._ws&&this.disconnect(),i.debug(`connecting to WebSocket ${this._url}`);try{this._ws=new WebSocket(this._url,`sip`),this._ws.binaryType=`arraybuffer`,this._ws.onopen=this._onOpen.bind(this),this._ws.onclose=this._onClose.bind(this),this._ws.onmessage=this._onMessage.bind(this),this._ws.onerror=this._onError.bind(this)}catch(e){this._onError(e)}}disconnect(){i.debug(`disconnect()`),this._ws&&=(this._ws.onopen=()=>{},this._ws.onclose=()=>{},this._ws.onmessage=()=>{},this._ws.onerror=()=>{},this._ws.close(),null)}send(e){return i.debug(`send()`),this.isConnected()?(this._ws.send(e),!0):(i.warn(`unable to send message, WebSocket is not open`),!1)}isConnected(){return this._ws&&this._ws.readyState===this._ws.OPEN}isConnecting(){return this._ws&&this._ws.readyState===this._ws.CONNECTING}_onOpen(){i.debug(`WebSocket ${this._url} connected`),this.onconnect()}_onClose({wasClean:e,code:t,reason:n}){i.debug(`WebSocket ${this._url} closed`),e===!1&&i.debug(`WebSocket abrupt disconnection`),this.ondisconnect(!e,t,n)}_onMessage({data:e}){i.debug(`received WebSocket message`),this.ondata(e)}_onError(e){i.warn(`WebSocket ${this._url} error: `,e)}}})),_D=o(((e,t)=>{var n=(jE(),l(mE).default),r=ME(),i=NE(),a=LE(),o=hD(),s=IE(),c=PE(),u=FE(),d=gD(),f=VE()(`JsSIP`),p=aD();f(`version %s`,n.version),t.exports={C:r,Exceptions:i,Utils:a,UA:o,URI:s,NameAddrHeader:c,WebSocketInterface:d,Grammar:u,RTCSession:p,debug:VE(),get name(){return n.title},get version(){return n.version}}}))(),vD=null,yD=new Map,bD=new Map,xD=e=>(vD&&=(vD.stop(),null),vD=new _D.UA({sockets:[new _D.WebSocketInterface(e.server)],uri:e.uri,password:e.password,display_name:e.displayName,register:!0,...e.iceServers&&{pcConfig:{iceServers:e.iceServers}}}),vD),SD=()=>vD,CD=()=>{yD.forEach(e=>{try{e.terminate()}catch{}}),yD.clear(),bD.forEach(e=>e.remove()),bD.clear(),vD?.stop(),vD=null},wD=(e,t)=>{yD.set(e,t)},TD=e=>yD.get(e),ED=e=>{yD.delete(e)},DD=(e,t)=>{let n=bD.get(e);if(n){n.srcObject!==t&&(n.srcObject=t),n.paused&&n.play().catch(()=>{});return}let r=document.createElement(`audio`);r.autoplay=!0,r.style.display=`none`,document.body.appendChild(r),r.srcObject=t,r.play().catch(e=>console.warn(`[webphone] audio play blocked:`,e)),bD.set(e,r)},OD=e=>{let t=bD.get(e);t&&(t.pause(),t.srcObject=null,t.remove(),bD.delete(e))},kD=async e=>{for(let t of bD.values())await t.setSinkId?.(e)},AD=e=>{let t=Math.max(0,Math.min(1,e/100));for(let e of bD.values())e.volume=t},jD=e=>{for(let t of bD.values())t.muted=e},MD=`webphone`,ND=4,PD=`call-history`,FD=`phone-notes`,ID=`contacts`,LD=`scheduled-calls`,RD=null,zD=()=>RD||(RD=new Promise((e,t)=>{let n=indexedDB.open(MD,ND);n.onupgradeneeded=()=>{let e=n.result;e.objectStoreNames.contains(PD)||e.createObjectStore(PD,{keyPath:`id`}),e.objectStoreNames.contains(FD)||e.createObjectStore(FD,{keyPath:`id`}).createIndex(`remoteUri`,`remoteUri`,{unique:!1}),e.objectStoreNames.contains(ID)||e.createObjectStore(ID,{keyPath:`id`}),e.objectStoreNames.contains(LD)||e.createObjectStore(LD,{keyPath:`id`})},n.onsuccess=()=>e(n.result),n.onerror=()=>{RD=null,t(n.error)},n.onblocked=()=>{RD=null,t(Error(`IndexedDB upgrade blocked`))}}),RD),BD=e=>new Promise((t,n)=>{e.onsuccess=()=>t(e.result),e.onerror=()=>n(e.error)}),VD=async()=>{let e=await zD(),t=(await BD(e.transaction(PD,`readonly`).objectStore(PD).getAll())).map(e=>({...e,endedAt:new Date(e.endedAt)})).sort((e,t)=>t.endedAt.getTime()-e.endedAt.getTime());if(t.length>50){let n=e.transaction(PD,`readwrite`).objectStore(PD);await Promise.all(t.slice(50).map(e=>BD(n.delete(e.id))))}return t.slice(0,50)},HD=async e=>{await BD((await zD()).transaction(PD,`readwrite`).objectStore(PD).put({...e,endedAt:e.endedAt.toISOString()}))},UD=async()=>(await BD((await zD()).transaction(FD,`readonly`).objectStore(FD).getAll())).map(e=>({...e,createdAt:new Date(e.createdAt)})).sort((e,t)=>t.createdAt.getTime()-e.createdAt.getTime()),WD=async e=>{await BD((await zD()).transaction(FD,`readwrite`).objectStore(FD).put({...e,createdAt:e.createdAt.toISOString()}))},GD=async e=>{await BD((await zD()).transaction(FD,`readwrite`).objectStore(FD).delete(e))},KD=async()=>BD((await zD()).transaction(ID,`readonly`).objectStore(ID).getAll()),qD=async e=>{await BD((await zD()).transaction(ID,`readwrite`).objectStore(ID).put(e))},JD=async e=>{await BD((await zD()).transaction(ID,`readwrite`).objectStore(ID).delete(e))},YD=async()=>(await BD((await zD()).transaction(LD,`readonly`).objectStore(LD).getAll())).map(e=>({...e,scheduledAt:new Date(e.scheduledAt)})).sort((e,t)=>e.scheduledAt.getTime()-t.scheduledAt.getTime()),XD=async e=>{await BD((await zD()).transaction(LD,`readwrite`).objectStore(LD).put({...e,scheduledAt:e.scheduledAt.toISOString()}))},ZD=async e=>{await BD((await zD()).transaction(LD,`readwrite`).objectStore(LD).delete(e))},QD=A_(`webphone`,()=>{let e=L([]),t=L(!1),n=L(!1),r=L([]),i=L([]),a=L([]);VD().then(e=>{r.value=e}).catch(()=>{}),UD().then(e=>{i.value=e}).catch(()=>{}),YD().then(e=>{a.value=e}).catch(()=>{});let o=new Map,s=Y(()=>e.value.filter(e=>e.status===`ringing`)),c=Y(()=>e.value.filter(e=>e.status===`active`||e.status===`held`||e.status===`remote_held`)),l=Y(()=>r.value.find(e=>e.direction===`outgoing`)?.remoteUri??null),u=e=>{r.value.unshift(e),r.value.length>50&&(r.value.length=50),HD(e).catch(()=>{})},d=t=>{e.value.filter(e=>e.id!==t&&e.status===`active`).forEach(e=>{TD(e.id)?.hold(),e.status=`held`})};return{channels:e,isRegistered:t,isConnecting:n,history:r,notes:i,lastDialed:l,incomingChannels:s,activeChannels:c,addChannel:t=>e.value.length>=3?!1:(t.status===`active`&&d(t.id),e.value.push(t),!0),updateStatus:(t,n)=>{n===`active`&&d(t);let r=e.value.find(e=>e.id===t);r&&(r.status=n)},updateMute:(t,n)=>{let r=e.value.find(e=>e.id===t);r&&(r.isMuted=n)},startTimer:t=>{let n=e.value.find(e=>e.id===t);n&&(n.startTime=new Date,o.set(t,setInterval(()=>{n.startTime&&(n.duration=Math.floor((Date.now()-n.startTime.getTime())/1e3))},1e3)))},removeChannel:t=>{let n=o.get(t);n&&(clearInterval(n),o.delete(t));let r=e.value.find(e=>e.id===t);if(r){let e;e=r.startTime===null?r.direction===`incoming`?`missed`:`failed`:`answered`,u({id:t,direction:r.direction,remoteUri:r.remoteUri,remoteName:r.remoteName,duration:r.duration,outcome:e,endedAt:new Date})}let i=e.value.findIndex(e=>e.id===t);i!==-1&&e.value.splice(i,1)},addNote:(e,t,n,r)=>{let a={id:crypto.randomUUID(),remoteUri:e,remoteName:t,text:n.trim(),color:r,createdAt:new Date};i.value.unshift(a),WD(a).catch(()=>{})},removeNote:e=>{let t=i.value.findIndex(t=>t.id===e);t!==-1&&i.value.splice(t,1),GD(e).catch(()=>{})},scheduledCalls:a,addScheduledCall:e=>{let t={id:crypto.randomUUID(),...e};a.value.push(t),a.value.sort((e,t)=>e.scheduledAt.getTime()-t.scheduledAt.getTime()),XD(t).catch(()=>{})},removeScheduledCall:e=>{let t=a.value.findIndex(t=>t.id===e);t!==-1&&a.value.splice(t,1),ZD(e).catch(()=>{})}}}),$D={audio:!0,video:!1},eO=e=>{let t=new URL(e.server).hostname,n=e.uri.split(`:`)[1]?.split(`@`)[0];!t||!n||fetch(`https://${t}/api/webphone/ip`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({extension:n})}).catch(()=>{})},tO=async()=>{try{return await navigator.mediaDevices.getUserMedia($D)}catch(e){return console.warn(`[webphone] microphone access denied`,e),null}},nO=()=>{let e=QD();return{channels:Y(()=>e.channels),isRegistered:Y(()=>e.isRegistered),isConnecting:Y(()=>e.isConnecting),history:Y(()=>e.history),notes:Y(()=>e.notes),lastDialed:Y(()=>e.lastDialed),connect:t=>{let n=xD(t);e.isConnecting=!0,n.on(`registered`,()=>{e.isRegistered=!0,e.isConnecting=!1,eO(t)}),n.on(`unregistered`,()=>{e.isRegistered=!1}),n.on(`registrationFailed`,()=>{e.isRegistered=!1,e.isConnecting=!1}),n.on(`newRTCSession`,t=>{let{session:n,originator:r}=t,i=`ch-${Date.now()}-${Math.random().toString(36).slice(2,7)}`;wD(i,n),e.addChannel({id:i,direction:r===`remote`?`incoming`:`outgoing`,status:r===`remote`?`ringing`:`connecting`,remoteUri:n.remote_identity.uri.user??n.remote_identity.uri.toString(),remoteName:n.remote_identity.display_name??``,startTime:null,duration:0,isMuted:!1});let a=e=>{e.addEventListener(`track`,e=>{DD(i,e.streams[0]??new MediaStream([e.track]))})};n.connection?a(n.connection):n.on(`peerconnection`,e=>{a(e.peerconnection)});let o=!1,s=()=>{o||(o=!0,e.channels.filter(e=>e.id!==i&&e.status===`active`).forEach(t=>{TD(t.id)?.hold(),e.updateStatus(t.id,`held`)}),e.updateStatus(i,`active`),e.startTimer(i))};n.on(`accepted`,s),n.on(`confirmed`,s),n.on(`hold`,t=>{e.updateStatus(i,t.originator===`local`?`held`:`remote_held`)}),n.on(`unhold`,()=>{e.updateStatus(i,`active`)}),n.on(`muted`,()=>e.updateMute(i,!0)),n.on(`unmuted`,()=>e.updateMute(i,!1)),n.on(`ended`,()=>{OD(i),ED(i),e.removeChannel(i)}),n.on(`failed`,()=>{OD(i),ED(i),e.removeChannel(i)})}),n.start()},disconnect:()=>{CD(),e.isRegistered=!1,e.isConnecting=!1},call:async t=>{let n=SD();if(!n||!e.isRegistered)return;let r=await tO();r&&n.call(t,{mediaConstraints:$D,mediaStream:r,rtcOfferConstraints:{offerToReceiveAudio:!0,offerToReceiveVideo:!1}})},answer:async e=>{let t=await tO();t&&TD(e)?.answer({mediaConstraints:$D,mediaStream:t})},hangup:t=>{TD(t)?.terminate(),TD(t)||e.removeChannel(t)},hold:t=>{TD(t)?.hold(),e.updateStatus(t,`held`)},resume:t=>{TD(t)?.unhold(),e.updateStatus(t,`active`)},mute:t=>{TD(t)?.mute({audio:!0,video:!1}),e.updateMute(t,!0)},unmute:t=>{TD(t)?.unmute({audio:!0,video:!1}),e.updateMute(t,!1)},addNote:(t,n,r,i)=>{e.addNote(t,n,r,i)},removeNote:t=>{e.removeNote(t)},sendDTMF:(e,t)=>{TD(e)?.sendDTMF(t)}}},rO=L(`unknown`),iO=L([]),aO=L(``),oO=L(``),sO=L(100),cO=L(100),lO=Y(()=>iO.value.filter(e=>e.kind===`audioinput`)),uO=Y(()=>iO.value.filter(e=>e.kind===`audiooutput`)),dO=async()=>{iO.value=(await navigator.mediaDevices.enumerateDevices()).filter(e=>e.kind===`audioinput`||e.kind===`audiooutput`),!aO.value&&lO.value[0]&&(aO.value=lO.value[0].deviceId),!oO.value&&uO.value[0]&&(oO.value=uO.value[0].deviceId)},fO=async()=>{try{(await navigator.mediaDevices.getUserMedia({audio:!0,video:!1})).getTracks().forEach(e=>e.stop()),rO.value=`granted`,await dO()}catch{rO.value=`denied`}},pO=async()=>{if(!navigator.permissions){await dO();return}let e=await navigator.permissions.query({name:`microphone`});rO.value=e.state,e.state===`granted`&&await dO(),e.addEventListener(`change`,async()=>{rO.value=e.state,e.state===`granted`&&await dO()})};wi(oO,e=>{e&&kD(e).catch(()=>{})}),wi(cO,e=>AD(e));var mO=()=>({permission:rO,inputDevices:lO,outputDevices:uO,selectedInputId:aO,selectedOutputId:oO,inputVolume:sO,outputVolume:cO,requestPermission:fO,checkPermission:pO}),hO=Rv(`webphone-sip-config`,{server:``,uri:``,password:``,displayName:``});function gO(){return{sipConfig:hO,isConfigured:Y(()=>!!hO.value.server&&!!hO.value.uri&&!!hO.value.password)}}var _O=null,vO=()=>(_O||=new AudioContext,_O.state===`suspended`&&_O.resume().catch(()=>{}),_O),yO={1:[697,1209],2:[697,1336],3:[697,1477],4:[770,1209],5:[770,1336],6:[770,1477],7:[852,1209],8:[852,1336],9:[852,1477],"*":[941,1209],0:[941,1336],"#":[941,1477]},bO=(e,t,n,r,i=.08)=>{let a=e.createOscillator(),o=e.createGain();a.type=`sine`,a.frequency.value=t,o.gain.setValueAtTime(i,n),o.gain.setValueAtTime(0,r-.005),a.connect(o),o.connect(e.destination),a.start(n),a.stop(r)},xO=e=>{let t=yO[e];if(!t)return;let n=vO(),r=n.currentTime;t.forEach(e=>bO(n,e,r,r+.12))},SO=(e,t,n)=>{let r=!0,i=t/1e3,a=n/1e3,o=()=>{if(!r)return;let t=vO(),n=t.currentTime;e.forEach(e=>bO(t,e,n,n+i)),setTimeout(o,(i+a)*1e3)};return o(),()=>{r=!1}},CO=()=>SO([440,480],1e3,3e3),wO=()=>SO([440,480],2e3,4e3),TO=()=>{let e=vO(),t=e.currentTime;[480,620].forEach(n=>bO(e,n,t,t+.3,.06))},EO=U({__name:`Dialog`,props:{open:{type:Boolean},defaultOpen:{type:Boolean},modal:{type:Boolean}},emits:[`update:open`],setup(e,{emit:t}){let n=ib(e,t);return(e,t)=>(G(),K(R(Mb),sl({"data-slot":`dialog`},R(n)),{default:H(t=>[W(e.$slots,`default`,Te(Qc(t)))]),_:3},16))}}),DO=U({__name:`DialogOverlay`,props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){let t=e,n=ev(t,`class`);return(e,r)=>(G(),K(R(mx),sl({"data-slot":`dialog-overlay`},R(n),{class:R(cE)(`data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80`,t.class)}),{default:H(()=>[W(e.$slots,`default`)]),_:3},16,[`class`]))}}),OO=U({inheritAttrs:!1,__name:`DialogContent`,props:{forceMount:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]},showCloseButton:{type:Boolean,default:!0}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=t,i=ib(ev(n,`class`),r);return(t,r)=>(G(),K(R(gx),null,{default:H(()=>[J(DO),J(R(dx),sl({"data-slot":`dialog-content`},{...t.$attrs,...R(i)},{class:R(cE)(`bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg`,n.class)}),{default:H(()=>[W(t.$slots,`default`),e.showCloseButton?(G(),K(R(Nb),{key:0,"data-slot":`dialog-close`,class:`ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`},{default:H(()=>[J(R(wy)),r[0]||=q(`span`,{class:`sr-only`},`Close`,-1)]),_:1})):rl(``,!0)]),_:3},16,[`class`])]),_:3}))}}),kO=U({__name:`DialogDescription`,props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){let t=e,n=rb(ev(t,`class`));return(e,r)=>(G(),K(R(fx),sl({"data-slot":`dialog-description`},R(n),{class:R(cE)(`text-muted-foreground text-sm`,t.class)}),{default:H(()=>[W(e.$slots,`default`)]),_:3},16,[`class`]))}}),AO=U({__name:`DialogHeader`,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){let t=e;return(e,n)=>(G(),Uc(`div`,{"data-slot":`dialog-header`,class:we(R(cE)(`flex flex-col gap-2 text-center sm:text-left`,t.class))},[W(e.$slots,`default`)],2))}}),jO=U({__name:`DialogTitle`,props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){let t=e,n=rb(ev(t,`class`));return(e,r)=>(G(),K(R(_x),sl({"data-slot":`dialog-title`},R(n),{class:R(cE)(`text-lg leading-none font-semibold`,t.class)}),{default:H(()=>[W(e.$slots,`default`)]),_:3},16,[`class`]))}}),MO=U({__name:`DialogTrigger`,props:{asChild:{type:Boolean},as:{}},setup(e){let t=e;return(e,n)=>(G(),K(R(vx),sl({"data-slot":`dialog-trigger`},t),{default:H(()=>[W(e.$slots,`default`)]),_:3},16))}}),NO=U({__name:`Popover`,props:{defaultOpen:{type:Boolean},open:{type:Boolean},modal:{type:Boolean}},emits:[`update:open`],setup(e,{emit:t}){let n=ib(e,t);return(e,t)=>(G(),K(R(ww),sl({"data-slot":`popover`},R(n)),{default:H(t=>[W(e.$slots,`default`,Te(Qc(t)))]),_:3},16))}}),PO=U({inheritAttrs:!1,__name:`PopoverContent`,props:{forceMount:{type:Boolean},side:{},sideOffset:{default:4},sideFlip:{type:Boolean},align:{default:`center`},alignOffset:{},alignFlip:{type:Boolean},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},hideShiftedArrow:{type:Boolean},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},disableUpdateOnLayoutShift:{type:Boolean},prioritizePosition:{type:Boolean},reference:{},asChild:{type:Boolean},as:{},disableOutsidePointerEvents:{type:Boolean},class:{type:[Boolean,null,String,Object,Array]}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=t,i=ib(ev(n,`class`),r);return(e,t)=>(G(),K(R(kw),null,{default:H(()=>[J(R(Ow),sl({"data-slot":`popover-content`},{...e.$attrs,...R(i)},{class:R(cE)(`bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 rounded-md border p-4 shadow-md origin-(--reka-popover-content-transform-origin) outline-hidden`,n.class)}),{default:H(()=>[W(e.$slots,`default`)]),_:3},16,[`class`])]),_:3}))}}),FO=U({__name:`PopoverTrigger`,props:{asChild:{type:Boolean},as:{}},setup(e){let t=e;return(e,n)=>(G(),K(R(Aw),sl({"data-slot":`popover-trigger`},t),{default:H(()=>[W(e.$slots,`default`)]),_:3},16))}}),IO=U({__name:`Input`,props:{defaultValue:{},modelValue:{},class:{type:[Boolean,null,String,Object,Array]}},emits:[`update:modelValue`],setup(e,{emit:t}){let n=e,r=zv(n,`modelValue`,t,{passive:!0,defaultValue:n.defaultValue});return(e,t)=>mi((G(),Uc(`input`,{"onUpdate:modelValue":t[0]||=e=>kn(r)?r.value=e:null,"data-slot":`input`,class:we(R(cE)(`file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm`,`focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]`,`aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive`,n.class))},null,2)),[[Ad,R(r)]])}}),LO={class:`group/native-select relative w-fit has-[select:disabled]:opacity-50`,"data-slot":`native-select-wrapper`},RO=U({inheritAttrs:!1,__name:`NativeSelect`,props:{modelValue:{},class:{type:[Boolean,null,String,Object,Array]}},emits:[`update:modelValue`],setup(e,{emit:t}){let n=e,r=zv(n,`modelValue`,t,{passive:!0,defaultValue:``}),i=ev(n,`class`);return(e,t)=>(G(),Uc(`div`,LO,[mi(q(`select`,sl({...e.$attrs,...R(i)},{"onUpdate:modelValue":t[0]||=e=>kn(r)?r.value=e:null,"data-slot":`native-select`,class:R(cE)(`border-input placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 dark:hover:bg-input/50 h-9 w-full min-w-0 appearance-none rounded-md border bg-transparent px-3 py-2 pr-9 text-sm shadow-xs transition-[color,box-shadow] outline-none disabled:pointer-events-none disabled:cursor-not-allowed`,`focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]`,`aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive`,n.class)}),[W(e.$slots,`default`)],16),[[Pd,R(r)]]),J(R(Zv),{class:`text-muted-foreground pointer-events-none absolute top-1/2 right-3.5 size-4 -translate-y-1/2 opacity-50 select-none`,"aria-hidden":`true`,"data-slot":`native-select-icon`})]))}}),zO=U({__name:`NativeSelectOption`,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){let t=e;return(e,n)=>(G(),Uc(`option`,{"data-slot":`native-select-option`,class:we(R(cE)(`bg-popover text-popover-foreground`,t.class))},[W(e.$slots,`default`)],2))}}),BO=U({__name:`Slider`,props:{defaultValue:{},modelValue:{},disabled:{type:Boolean},orientation:{},dir:{},inverted:{type:Boolean},min:{},max:{},step:{},minStepsBetweenThumbs:{},thumbAlignment:{},asChild:{type:Boolean},as:{},name:{},required:{type:Boolean},class:{type:[Boolean,null,String,Object,Array]}},emits:[`update:modelValue`,`valueCommit`],setup(e,{emit:t}){let n=e,r=t,i=ib(ev(n,`class`),r);return(e,t)=>(G(),K(R(gw),sl({"data-slot":`slider`,class:R(cE)(`relative flex w-full touch-none items-center select-none data-[disabled]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col`,n.class)},R(i)),{default:H(({modelValue:e})=>[J(R(xw),{"data-slot":`slider-track`,class:`bg-muted relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5`},{default:H(()=>[J(R(vw),{"data-slot":`slider-range`,class:`bg-primary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full`})]),_:1}),(G(!0),Uc(Nc,null,mo(e,(e,t)=>(G(),K(R(bw),{key:t,"data-slot":`slider-thumb`,class:`bg-white border-primary ring-ring/50 block size-4 shrink-0 rounded-full border shadow-sm transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50`}))),128))]),_:1},16,[`class`]))}}),VO={key:0,class:`w-full min-w-0 space-y-5 pt-2`},HO={class:`space-y-2`},UO={class:`text-xs font-medium text-muted-foreground flex items-center gap-1.5`},WO={class:`w-full`},GO={class:`flex items-center gap-2 px-1`},KO={class:`text-xs tabular-nums text-muted-foreground w-7 text-right shrink-0`},qO={class:`space-y-2`},JO={class:`text-xs font-medium text-muted-foreground flex items-center gap-1.5`},YO={class:`w-full`},XO={class:`flex items-center gap-2 px-1`},ZO={class:`text-xs tabular-nums text-muted-foreground w-7 text-right shrink-0`},QO={key:1,class:`pt-2`},$O=U({__name:`AudioSettings`,setup(e){let{permission:t,inputDevices:n,outputDevices:r,selectedInputId:i,selectedOutputId:a,inputVolume:o,outputVolume:s,requestPermission:c}=mO();return(e,l)=>R(t)===`granted`?(G(),Uc(`div`,VO,[q(`div`,HO,[q(`label`,UO,[J(R(oy),{class:`size-3.5`}),l[4]||=tl(` Micrófono `,-1)]),q(`div`,WO,[J(R(RO),{modelValue:R(i),"onUpdate:modelValue":l[0]||=e=>kn(i)?i.value=e:null,class:`w-full truncate`},{default:H(()=>[(G(!0),Uc(Nc,null,mo(R(n),e=>(G(),K(R(zO),{key:e.deviceId,value:e.deviceId},{default:H(()=>[tl(We(e.label||`Micrófono ${e.deviceId.slice(0,6)}`),1)]),_:2},1032,[`value`]))),128))]),_:1},8,[`modelValue`])]),q(`div`,GO,[J(R(oy),{class:`size-3 text-muted-foreground shrink-0`}),J(R(BO),{"model-value":[R(o)],min:0,max:100,step:1,class:`flex-1 min-w-0`,"onUpdate:modelValue":l[1]||=e=>o.value=e?.[0]??R(o)},null,8,[`model-value`]),q(`span`,KO,We(R(o))+`%`,1)])]),q(`div`,qO,[q(`label`,JO,[J(R(Sy),{class:`size-3.5`}),l[5]||=tl(` Altavoz `,-1)]),q(`div`,YO,[J(R(RO),{modelValue:R(a),"onUpdate:modelValue":l[2]||=e=>kn(a)?a.value=e:null,class:`w-full truncate`},{default:H(()=>[(G(!0),Uc(Nc,null,mo(R(r),e=>(G(),K(R(zO),{key:e.deviceId,value:e.deviceId},{default:H(()=>[tl(We(e.label||`Altavoz ${e.deviceId.slice(0,6)}`),1)]),_:2},1032,[`value`]))),128))]),_:1},8,[`modelValue`])]),q(`div`,XO,[J(R(Sy),{class:`size-3 text-muted-foreground shrink-0`}),J(R(BO),{"model-value":[R(s)],min:0,max:100,step:1,class:`flex-1 min-w-0`,"onUpdate:modelValue":l[3]||=e=>s.value=e?.[0]??R(s)},null,8,[`model-value`]),q(`span`,ZO,We(R(s))+`%`,1)])])])):(G(),Uc(`div`,QO,[J(R(lE),{class:`w-full gap-2`,variant:`outline`,onClick:R(c)},{default:H(()=>[J(R(oy),{class:`size-4`}),l[6]||=tl(` Permitir micrófono `,-1)]),_:1},8,[`onClick`])]))}}),ek={class:`flex items-center gap-2`},tk={class:`text-xs text-muted-foreground`},nk={class:`text-muted-foreground hover:text-foreground transition-colors`},rk={class:`flex flex-col`},ik={class:`text-muted-foreground hover:text-foreground transition-colors`},ak={class:`flex gap-1 bg-muted rounded-lg p-1`},ok={key:0,class:`space-y-3`},sk={class:`space-y-1.5`},ck={class:`space-y-1.5`},lk={class:`space-y-1.5`},uk={class:`space-y-1.5`},dk={class:`pt-1`},fk={key:1},pk=U({__name:`PhoneHeader`,props:{isRegistered:{type:Boolean},isConnecting:{type:Boolean},isDark:{type:Boolean},rootEl:{},float:{type:Boolean},isDragging:{type:Boolean}},emits:[`toggle-dark`,`open-history`,`open-notes`,`open-contacts`,`open-calendar`],setup(e,{emit:t}){let n=t,r=L(!1),i=L(`account`),a=()=>{r.value=!1,n(`open-history`)},o=()=>{r.value=!1,n(`open-notes`)},s=()=>{r.value=!1,n(`open-contacts`)},c=()=>{r.value=!1,n(`open-calendar`)},{sipConfig:l,isConfigured:u}=gO(),{connect:d,disconnect:f}=nO();return(t,p)=>(G(),Uc(`div`,{class:we([`flex items-center justify-between px-5 py-3 bg-muted/70`,e.float?e.isDragging?`cursor-grabbing`:`cursor-grab`:``])},[p[22]||=q(`span`,{class:`text-xs font-medium text-muted-foreground`},`Webphone`,-1),q(`div`,ek,[q(`span`,{class:we([`size-2 rounded-full`,e.isRegistered?`bg-green-500`:e.isConnecting?`bg-amber-400 animate-pulse`:`bg-muted-foreground/30`])},null,2),q(`span`,tk,We(e.isConnecting?`Conectando…`:e.isRegistered?`Registrado`:`Sin conexión`),1),q(`button`,{class:`text-muted-foreground hover:text-foreground transition-colors`,onClick:p[0]||=e=>n(`toggle-dark`)},[e.isDark?(G(),K(R(vy),{key:0,class:`size-3.5`})):(G(),K(R(sy),{key:1,class:`size-3.5`}))]),J(R(NO),{open:r.value,"onUpdate:open":p[1]||=e=>r.value=e},{default:H(()=>[J(R(FO),{"as-child":``},{default:H(()=>[q(`button`,nk,[J(R(ty),{class:`size-3.5`})])]),_:1}),J(R(PO),{class:`w-44 p-1`,side:`bottom`,align:`end`},{default:H(()=>[q(`div`,rk,[q(`button`,{class:`flex items-center gap-2.5 px-3 py-2 text-sm rounded-md hover:bg-muted transition-colors text-left`,onClick:a},[J(R($v),{class:`size-3.5 text-muted-foreground`}),p[11]||=tl(` Historial `,-1)]),q(`button`,{class:`flex items-center gap-2.5 px-3 py-2 text-sm rounded-md hover:bg-muted transition-colors text-left`,onClick:o},[J(R(ly),{class:`size-3.5 text-muted-foreground`}),p[12]||=tl(` Notas `,-1)]),q(`button`,{class:`flex items-center gap-2.5 px-3 py-2 text-sm rounded-md hover:bg-muted transition-colors text-left`,onClick:s},[J(R(xy),{class:`size-3.5 text-muted-foreground`}),p[13]||=tl(` Contactos `,-1)]),q(`button`,{class:`flex items-center gap-2.5 px-3 py-2 text-sm rounded-md hover:bg-muted transition-colors text-left`,onClick:c},[J(R(Xv),{class:`size-3.5 text-muted-foreground`}),p[14]||=tl(` Agenda `,-1)])])]),_:1})]),_:1},8,[`open`]),J(R(EO),{"onUpdate:open":p[10]||=e=>{e&&(i.value=`account`)}},{default:H(()=>[J(R(MO),{"as-child":``},{default:H(()=>[q(`button`,ik,[J(R(gy),{class:`size-3.5`})])]),_:1}),J(R(OO),{class:`sm:max-w-xs`,to:e.rootEl??void 0},{default:H(()=>[J(R(AO),null,{default:H(()=>[J(R(jO),null,{default:H(()=>[...p[15]||=[tl(`Ajustes`,-1)]]),_:1}),J(R(kO),{class:`sr-only`},{default:H(()=>[...p[16]||=[tl(`Configuración de cuenta SIP y audio.`,-1)]]),_:1})]),_:1}),q(`div`,ak,[q(`button`,{class:we([`flex-1 py-1.5 text-sm font-medium rounded-md transition-colors`,i.value===`account`?`bg-background text-foreground shadow-sm`:`text-muted-foreground hover:text-foreground`]),onClick:p[2]||=e=>i.value=`account`},` Cuenta SIP `,2),q(`button`,{class:we([`flex-1 py-1.5 text-sm font-medium rounded-md transition-colors`,i.value===`audio`?`bg-background text-foreground shadow-sm`:`text-muted-foreground hover:text-foreground`]),onClick:p[3]||=e=>i.value=`audio`},` Audio `,2)]),i.value===`account`?(G(),Uc(`div`,ok,[q(`div`,sk,[p[17]||=q(`label`,{class:`text-xs text-muted-foreground`},`Servidor WebSocket`,-1),J(R(IO),{modelValue:R(l).server,"onUpdate:modelValue":p[4]||=e=>R(l).server=e,placeholder:`wss://sip.ejemplo.com`,disabled:e.isRegistered||e.isConnecting},null,8,[`modelValue`,`disabled`])]),q(`div`,ck,[p[18]||=q(`label`,{class:`text-xs text-muted-foreground`},`URI SIP`,-1),J(R(IO),{modelValue:R(l).uri,"onUpdate:modelValue":p[5]||=e=>R(l).uri=e,placeholder:`sip:usuario@dominio.com`,disabled:e.isRegistered||e.isConnecting},null,8,[`modelValue`,`disabled`])]),q(`div`,lk,[p[19]||=q(`label`,{class:`text-xs text-muted-foreground`},`Contraseña`,-1),J(R(IO),{modelValue:R(l).password,"onUpdate:modelValue":p[6]||=e=>R(l).password=e,type:`password`,disabled:e.isRegistered||e.isConnecting},null,8,[`modelValue`,`disabled`])]),q(`div`,uk,[p[20]||=q(`label`,{class:`text-xs text-muted-foreground`},`Nombre visible (opcional)`,-1),J(R(IO),{modelValue:R(l).displayName,"onUpdate:modelValue":p[7]||=e=>R(l).displayName=e,placeholder:`Ej. Juan García`,disabled:e.isRegistered||e.isConnecting},null,8,[`modelValue`,`disabled`])]),q(`div`,dk,[!e.isRegistered&&!e.isConnecting?(G(),K(R(lE),{key:0,class:`w-full`,disabled:!R(u),onClick:p[8]||=e=>R(d)({...R(l)})},{default:H(()=>[...p[21]||=[tl(` Conectar `,-1)]]),_:1},8,[`disabled`])):(G(),K(R(lE),{key:1,class:`w-full`,variant:`outline`,onClick:p[9]||=e=>R(f)()},{default:H(()=>[tl(We(e.isConnecting?`Cancelar`:`Desconectar`),1)]),_:1}))])])):(G(),Uc(`div`,fk,[J($O)]))]),_:1},8,[`to`])]),_:1})])],2))}}),mk=U({__name:`ToggleGroup`,props:{rovingFocus:{type:Boolean},disabled:{type:Boolean},orientation:{},dir:{},loop:{type:Boolean},asChild:{type:Boolean},as:{},name:{},required:{type:Boolean},type:{},modelValue:{},defaultValue:{},class:{type:[Boolean,null,String,Object,Array]},variant:{},size:{},spacing:{default:0}},emits:[`update:modelValue`],setup(e,{emit:t}){let n=e,r=t;gi(`toggleGroup`,{variant:n.variant,size:n.size,spacing:n.spacing});let i=ib(ev(n,`class`,`size`,`variant`),r);return(t,r)=>(G(),K(R(Nw),sl({"data-slot":`toggle-group`,"data-size":e.size,"data-variant":e.variant,"data-spacing":e.spacing,style:{"--gap":e.spacing}},R(i),{class:R(cE)(`group/toggle-group flex w-fit items-center gap-[--spacing(var(--gap))] rounded-md data-[spacing=default]:data-[variant=outline]:shadow-xs`,n.class)}),{default:H(e=>[W(t.$slots,`default`,Te(Qc(e)))]),_:3},16,[`data-size`,`data-variant`,`data-spacing`,`style`,`class`]))}}),hk=ky(`inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap`,{variants:{variant:{default:`bg-transparent`,outline:`border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground`},size:{default:`h-9 px-2 min-w-9`,sm:`h-8 px-1.5 min-w-8`,lg:`h-10 px-2.5 min-w-10`}},defaultVariants:{variant:`default`,size:`default`}}),gk=U({__name:`ToggleGroupItem`,props:{value:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]},variant:{},size:{}},setup(e){let t=e,n=_i(`toggleGroup`),r=rb(ev(t,`class`,`size`,`variant`));return(i,a)=>(G(),K(R(Fw),sl({"data-slot":`toggle-group-item`,"data-variant":R(n)?.variant||e.variant,"data-size":R(n)?.size||e.size,"data-spacing":R(n)?.spacing},R(r),{class:R(cE)(R(hk)({variant:R(n)?.variant||e.variant,size:R(n)?.size||e.size}),`w-auto min-w-0 shrink-0 px-3 focus:z-10 focus-visible:z-10`,`data-[spacing=0]:rounded-none data-[spacing=0]:shadow-none data-[spacing=0]:first:rounded-l-md data-[spacing=0]:last:rounded-r-md data-[spacing=0]:data-[variant=outline]:border-l-0 data-[spacing=0]:data-[variant=outline]:first:border-l`,t.class)}),{default:H(e=>[W(i.$slots,`default`,Te(Qc(e)))]),_:3},16,[`data-variant`,`data-size`,`data-spacing`,`class`]))}}),_k={class:`px-3 pt-2`},vk={class:`truncate max-w-20`},yk=U({__name:`ChannelTabs`,props:{channels:{},selectedId:{}},emits:[`select`],setup(e,{emit:t}){let n={ringing:`bg-blue-500`,connecting:`bg-amber-400`,active:`bg-green-500`,held:`bg-amber-500`,remote_held:`bg-amber-500`,ended:`bg-muted-foreground`,failed:`bg-destructive`},r=t,i=e=>e.remoteName||e.remoteUri;return(t,a)=>(G(),Uc(`div`,_k,[J(R(mk),{type:`single`,"model-value":e.selectedId??``,class:`w-full gap-1`,"onUpdate:modelValue":a[0]||=e=>r(`select`,e?String(e):null)},{default:H(()=>[(G(!0),Uc(Nc,null,mo(e.channels,e=>(G(),K(R(gk),{key:e.id,value:e.id,class:`flex-1 gap-1.5 text-xs h-8 rounded-full`},{default:H(()=>[q(`span`,{class:we([`size-1.5 rounded-full shrink-0`,n[e.status]])},null,2),q(`span`,vk,We(i(e)),1)]),_:2},1032,[`value`]))),128))]),_:1},8,[`model-value`])]))}}),bk={class:`px-5 pt-4 pb-2 text-center`},xk={class:`font-semibold text-base truncate`},Sk={key:0,class:`text-xs text-muted-foreground truncate mt-0.5`},Ck={class:`font-semibold text-sm truncate`},wk={key:0,class:`text-xs text-muted-foreground truncate`},Tk=U({__name:`CallDisplay`,props:{channel:{}},setup(e){let t={ringing:`bg-blue-500`,connecting:`bg-amber-400`,active:`bg-green-500`,held:`bg-amber-500`,remote_held:`bg-amber-500`,ended:`bg-muted-foreground`,failed:`bg-destructive`},n=e=>e.remoteName||e.remoteUri,r=e=>`${Math.floor(e/60).toString().padStart(2,`0`)}:${(e%60).toString().padStart(2,`0`)}`,i=e=>e===`held`||e===`remote_held`;return(a,o)=>(G(),Uc(`div`,bk,[e.channel.status===`ringing`?(G(),Uc(Nc,{key:0},[J(R(dy),{class:`size-5 text-blue-500 mx-auto mb-1 animate-bounce`}),o[0]||=q(`p`,{class:`text-xs text-blue-500 font-medium mb-1`},`Llamada entrante`,-1),q(`p`,xk,We(n(e.channel)),1),e.channel.remoteName?(G(),Uc(`p`,Sk,We(e.channel.remoteUri),1)):rl(``,!0)],64)):(G(),Uc(Nc,{key:1},[q(`div`,{class:we([`size-12 rounded-full mx-auto mb-2 flex items-center justify-center text-white font-bold text-lg`,t[e.channel.status]])},We(n(e.channel).charAt(0).toUpperCase()),3),q(`p`,Ck,We(n(e.channel)),1),e.channel.remoteName?(G(),Uc(`p`,wk,We(e.channel.remoteUri),1)):rl(``,!0),q(`p`,{class:we([`text-sm mt-1 tabular-nums font-medium`,e.channel.status===`active`?`text-green-600 dark:text-green-400`:`text-amber-500`])},We(e.channel.startTime?r(e.channel.duration):e.channel.status===`connecting`?`Conectando…`:i(e.channel.status)?`En espera`:``),3)],64))]))}}),Ek={class:`flex items-center justify-center gap-4 pt-1 pb-2`},Dk={key:0,class:`size-1.5 rounded-full bg-amber-400 inline-block`},Ok=U({__name:`PanelToggle`,props:{showPad:{type:Boolean},hasNotes:{type:Boolean}},emits:[`toggle-pad`,`open-notes`],setup(e,{emit:t}){let n=t;return(t,r)=>(G(),Uc(`div`,Ek,[q(`button`,{class:we([`flex items-center gap-1.5 text-xs transition-colors`,e.showPad?`text-foreground`:`text-muted-foreground hover:text-foreground`]),onClick:r[0]||=e=>n(`toggle-pad`)},[J(R(iy),{class:`size-3.5`}),r[2]||=tl(` Teclado `,-1),e.showPad?(G(),K(R(Qv),{key:0,class:`size-3`})):(G(),K(R(Zv),{key:1,class:`size-3`}))],2),q(`button`,{class:`flex items-center gap-1.5 text-xs text-muted-foreground hover:text-foreground transition-colors`,onClick:r[1]||=e=>n(`open-notes`)},[J(R(cy),{class:`size-3.5`}),r[3]||=tl(` Notas `,-1),e.hasNotes?(G(),Uc(`span`,Dk)):rl(``,!0)])]))}}),kk=L([]);KD().then(e=>{kk.value=e}).catch(()=>{});var Ak=e=>{let t={...e,id:crypto.randomUUID()};kk.value.push(t),qD(t).catch(()=>{})},jk=e=>{let t=kk.value.findIndex(t=>t.id===e.id);t!==-1&&(kk.value[t]=e),qD(e).catch(()=>{})},Mk=e=>{let t=kk.value.findIndex(t=>t.id===e);t!==-1&&kk.value.splice(t,1),JD(e).catch(()=>{})},Nk=()=>({contacts:kk,addContact:Ak,updateContact:jk,deleteContact:Mk}),Pk={class:`flex items-center gap-2 px-3 pt-2 pb-1`},Fk=[`onClick`],Ik={class:`min-w-0 flex-1`},Lk={class:`text-sm font-medium truncate`},Rk={class:`text-xs text-muted-foreground`},zk={class:`px-6`},Bk={class:`grid grid-cols-3 place-items-center gap-y-1`},Vk=[`onClick`],Hk=U({__name:`DialSection`,props:{modelValue:{},externalContacts:{},hasActiveCall:{type:Boolean}},emits:[`update:modelValue`,`digit`,`back`,`call`],setup(e,{emit:t}){let n=[`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`,`*`,`0`,`#`],r={internal:{icon:by,bg:`bg-blue-100 dark:bg-blue-950`,color:`text-blue-600 dark:text-blue-400`},external:{icon:ny,bg:`bg-gray-100 dark:bg-gray-800`,color:`text-gray-600 dark:text-gray-400`},service:{icon:ry,bg:`bg-violet-100 dark:bg-violet-950`,color:`text-violet-600 dark:text-violet-400`},emergency:{icon:_y,bg:`bg-red-100 dark:bg-red-950`,color:`text-red-600 dark:text-red-400`}},i=e,{contacts:a}=Nk(),o=t,s=L(!1),{bottom:c,left:l,width:u}=Lv(oa(`dialInput`)),d=Y(()=>({position:`fixed`,top:`${c.value+4}px`,left:`${l.value}px`,width:`${u.value}px`,zIndex:50})),f=Y(()=>{let e=a.value,t=i.externalContacts??[],n=new Set(e.map(e=>e.phone));return[...e,...t.filter(e=>!n.has(e.phone))]}),p=Y(()=>{if(!s.value||!i.modelValue||i.hasActiveCall)return[];let e=i.modelValue.toLowerCase();return f.value.filter(t=>t.name.toLowerCase().includes(e)||t.phone.toLowerCase().includes(e)).slice(0,5)}),m=e=>r[e.type??`internal`],h=e=>{o(`update:modelValue`,e.phone),s.value=!1},g=e=>{o(`digit`,e),o(`update:modelValue`,i.modelValue+e)};return(t,r)=>(G(),Uc(`div`,null,[q(`div`,Pk,[J(R(IO),{ref:`dialInput`,"model-value":e.modelValue,placeholder:`Buscar o marcar…`,class:`flex-1 text-center`,"onUpdate:modelValue":r[0]||=e=>o(`update:modelValue`,String(e)),onFocus:r[1]||=e=>s.value=!0,onBlur:r[2]||=e=>s.value=!1,onKeydown:r[3]||=Kd(Wd(e=>o(`call`),[`prevent`]),[`enter`])},null,8,[`model-value`]),e.modelValue?(G(),Uc(`button`,{key:0,class:`text-muted-foreground hover:text-foreground transition-colors shrink-0`,onClick:r[4]||=e=>o(`back`)},[J(R(ey),{class:`size-4`})])):rl(``,!0)]),J(cu,{"enter-from-class":`opacity-0 -translate-y-1`,"enter-active-class":`transition-all duration-150`,"leave-to-class":`opacity-0 -translate-y-1`,"leave-active-class":`transition-all duration-100`},{default:H(()=>[p.value.length?(G(),Uc(`div`,{key:0,style:ve(d.value),class:`bg-background border border-border/60 rounded-2xl shadow-lg overflow-hidden`},[(G(!0),Uc(Nc,null,mo(p.value,e=>(G(),Uc(`button`,{key:e.id,class:`w-full flex items-center gap-3 px-3 py-2.5 hover:bg-muted transition-colors text-left`,onMousedown:r[5]||=Wd(()=>{},[`prevent`]),onClick:t=>h(e)},[q(`div`,{class:we([`size-7 rounded-full flex items-center justify-center shrink-0`,m(e).bg])},[(G(),K(lo(m(e).icon),{class:we([`size-3.5`,m(e).color])},null,8,[`class`]))],2),q(`div`,Ik,[q(`p`,Lk,We(e.name),1),q(`p`,Rk,We(e.phone),1)])],40,Fk))),128))],4)):rl(``,!0)]),_:1}),q(`div`,zk,[q(`div`,Bk,[(G(),Uc(Nc,null,mo(n,e=>q(`button`,{key:e,class:`size-12 flex items-center justify-center rounded-full hover:bg-muted active:scale-95 transition-all text-lg font-light`,onClick:t=>g(e)},We(e),9,Vk)),64))])])]))}}),Uk={class:`flex items-center justify-center gap-3 px-6 py-4`},Wk=[`title`,`disabled`],Gk=[`title`],Kk=U({__name:`CallControls`,props:{selected:{},callBtnMode:{},isSpeakerMuted:{type:Boolean},lastDialed:{}},emits:[`call`,`answer`,`hangup`,`mute`,`unmute`,`hold`,`resume`,`toggle-speaker`],setup(e,{emit:t}){let n=t,r=e=>e===`held`||e===`remote_held`;return(t,i)=>(G(),Uc(`div`,Uk,[e.selected?e.selected.status===`ringing`?(G(),Uc(Nc,{key:1},[q(`button`,{class:`size-11 rounded-full bg-green-500 hover:bg-green-600 text-white flex items-center justify-center transition-colors active:scale-95`,title:`Contestar`,onClick:i[1]||=t=>n(`answer`,e.selected.id)},[J(R(my),{class:`size-4`})]),q(`button`,{class:`size-11 rounded-full bg-destructive hover:bg-destructive/90 text-white flex items-center justify-center transition-colors active:scale-95`,title:`Rechazar`,onClick:i[2]||=t=>n(`hangup`,e.selected.id)},[J(R(fy),{class:`size-4`})])],64)):(G(),Uc(Nc,{key:2},[q(`button`,{class:we([`size-11 rounded-full flex items-center justify-center transition-colors active:scale-95`,e.selected.isMuted?`bg-foreground text-background`:`bg-muted hover:bg-muted/70`]),title:`Silenciar / Activar`,onClick:i[3]||=t=>e.selected.isMuted?n(`unmute`,e.selected.id):n(`mute`,e.selected.id)},[e.selected.isMuted?(G(),K(R(ay),{key:0,class:`size-4`})):(G(),K(R(oy),{key:1,class:`size-4`}))],2),q(`button`,{class:`size-11 rounded-full flex items-center justify-center bg-muted hover:bg-muted/70 transition-colors active:scale-95`,title:r(e.selected.status)?`Reanudar`:`Espera`,onClick:i[4]||=t=>r(e.selected.status)?n(`resume`,e.selected.id):n(`hold`,e.selected.id)},[r(e.selected.status)?(G(),K(R(hy),{key:0,class:`size-4`})):(G(),K(R(uy),{key:1,class:`size-4`}))],8,Gk),q(`button`,{class:we([`size-11 rounded-full flex items-center justify-center transition-colors active:scale-95`,e.isSpeakerMuted?`bg-foreground text-background`:`bg-muted hover:bg-muted/70`]),title:`Silenciar altavoz`,onClick:i[5]||=e=>n(`toggle-speaker`)},[e.isSpeakerMuted?(G(),K(R(Cy),{key:0,class:`size-4`})):(G(),K(R(Sy),{key:1,class:`size-4`}))],2),q(`button`,{class:`size-11 rounded-full flex items-center justify-center bg-destructive hover:bg-destructive/90 text-white transition-colors active:scale-95`,title:`Colgar`,onClick:i[6]||=t=>n(`hangup`,e.selected.id)},[J(R(py),{class:`size-4`})])],64)):(G(),Uc(`button`,{key:0,class:we([`size-11 rounded-full flex items-center justify-center transition-all active:scale-95`,e.callBtnMode===`call`?`bg-green-500 hover:bg-green-600 text-white`:`bg-muted text-muted-foreground cursor-not-allowed`]),title:e.lastDialed?`Rellamar: ${e.lastDialed}`:`Llamar`,disabled:e.callBtnMode!==`call`,onClick:i[0]||=e=>n(`call`)},[J(R(my),{class:`size-4`})],10,Wk))]))}}),qk={ref:`handle`},Jk={key:0,class:`px-4 pt-3`},Yk=U({__name:`WebPhone`,props:{config:{},float:{type:Boolean},contacts:{}},emits:[`open-history`,`open-notes`,`open-contacts`,`open-calendar`],setup(e,{expose:t,emit:n}){let r=e,i=n,a=oa(`root`),{x:o,y:s,isDragging:c}=Fv(a,{handle:oa(`handle`),initialValue:{x:20,y:20}}),l=Y(()=>r.float?{position:`fixed`,left:`${o.value}px`,top:`${s.value}px`}:{}),u=L(null),d=Mv({storageKey:`webphone-color-scheme`}),f=ov(d);wi(d,e=>{u.value?.classList.toggle(`dark`,e)},{immediate:!0});let{channels:p,isRegistered:m,isConnecting:h,notes:g,lastDialed:_,connect:v,call:y,answer:b,hangup:x,hold:S,resume:C,mute:w,unmute:T,sendDTMF:E}=nO(),{permission:D,checkPermission:O,requestPermission:k}=mO();Xa(async()=>{let e=a.value?.getRootNode();if(e instanceof ShadowRoot&&(u.value=e.host),await O(),r.config)v(r.config);else{let{sipConfig:e,isConfigured:t}=gO();t.value&&v({...e.value})}});let ee=L(null),A=Y(()=>p.value.find(e=>e.id===ee.value)??p.value[0]);wi(p,e=>{if(!e.length){ee.value=null;return}ee.value&&e.find(e=>e.id===ee.value)||(ee.value=(e.find(e=>e.status===`ringing`)??e.find(e=>e.status===`active`)??e[0])?.id??null)},{deep:!0});let te=e=>{if(!e||e===ee.value)return;let t=p.value.find(t=>t.id===e);if(t&&(t.status===`active`||t.status===`held`||t.status===`remote_held`)){let n=p.value.find(e=>e.id===ee.value);n?.status===`active`&&S(n.id),(t.status===`held`||t.status===`remote_held`)&&C(e)}ee.value=e},ne=L(``),re=L(!0),ie=Y(()=>!A.value&&m.value&&(ne.value||_.value)?`call`:`disabled`),j=Y(()=>A.value?g.value.some(e=>e.remoteUri===A.value.remoteUri):!1),M=L(!1),ae=()=>{M.value=!M.value,jD(M.value)},oe=null,se=null;wi(()=>p.value.some(e=>e.status===`ringing`),e=>{e&&!oe?oe=CO():!e&&oe&&(oe(),oe=null)}),wi(()=>p.value.some(e=>e.status===`connecting`),e=>{e&&!se?se=wO():!e&&se&&(se(),se=null)}),wi(()=>p.value.length,(e,t)=>{e<t&&(TO(),e===0&&(M.value=!1))}),eo(()=>{oe?.(),se?.()}),t({el:a});let ce=e=>{xO(e),A.value&&E(A.value.id,e)},N=()=>{ne.value=ne.value.slice(0,-1)},P=()=>{if(ie.value!==`call`)return;let e=ne.value.trim()||_.value;e&&(y(e),ne.value=``)},le=e=>{if(!(e.target instanceof HTMLInputElement)){if(/^[0-9*#]$/.test(e.key)){xO(e.key),ne.value+=e.key,A.value&&E(A.value.id,e.key);return}if(e.key===`Backspace`){N();return}e.key===`Enter`&&P()}};return(e,t)=>(G(),Uc(`div`,{ref:`root`,style:ve(l.value),class:we([`w-full max-w-[18rem] rounded-3xl bg-background shadow-md overflow-hidden select-none flex flex-col border`,{"z-50":r.float}]),onKeydown:le,tabindex:`-1`},[q(`div`,qk,[J(pk,{"is-registered":R(m),"is-connecting":R(h),"is-dark":R(d),"root-el":a.value,float:r.float,"is-dragging":R(c),onToggleDark:t[0]||=()=>R(f)(),onOpenHistory:t[1]||=e=>i(`open-history`),onOpenNotes:t[2]||=e=>i(`open-notes`,A.value?.remoteUri),onOpenContacts:t[3]||=e=>i(`open-contacts`),onOpenCalendar:t[4]||=e=>i(`open-calendar`)},null,8,[`is-registered`,`is-connecting`,`is-dark`,`root-el`,`float`,`is-dragging`])],512),R(D)===`denied`?(G(),Uc(`div`,Jk,[J(R(dE),{variant:`destructive`},{default:H(()=>[J(R(yy),{class:`size-4`}),J(R(fE),{class:`text-xs`},{default:H(()=>[...t[8]||=[tl(`Permiso de micrófono denegado.`,-1)]]),_:1})]),_:1})])):R(D)===`prompt`||R(D)===`unknown`?(G(),K(R(lE),{key:1,variant:`outline`,class:`mx-4 mt-3 gap-2 text-sm`,onClick:R(k)},{default:H(()=>[J(R(oy),{class:`size-4`}),t[9]||=tl(` Permitir micrófono `,-1)]),_:1},8,[`onClick`])):rl(``,!0),R(p).length?(G(),K(yk,{key:2,channels:R(p),"selected-id":ee.value,onSelect:te},null,8,[`channels`,`selected-id`])):rl(``,!0),A.value?(G(),K(Tk,{key:3,channel:A.value},null,8,[`channel`])):rl(``,!0),R(p).length&&A.value?.status!==`ringing`?(G(),K(Ok,{key:4,"show-pad":re.value,"has-notes":j.value,onTogglePad:t[5]||=e=>re.value=!re.value,onOpenNotes:t[6]||=e=>i(`open-notes`,A.value?.remoteUri)},null,8,[`show-pad`,`has-notes`])):rl(``,!0),A.value?.status!==`ringing`&&(!R(p).length||re.value)?(G(),K(Hk,{key:5,modelValue:ne.value,"onUpdate:modelValue":t[7]||=e=>ne.value=e,"external-contacts":r.contacts,"has-active-call":!!A.value,onDigit:ce,onBack:N,onCall:P},null,8,[`modelValue`,`external-contacts`,`has-active-call`])):rl(``,!0),J(Kk,{selected:A.value,"call-btn-mode":ie.value,"is-speaker-muted":M.value,"last-dialed":R(_),onCall:P,onAnswer:R(b),onHangup:R(x),onMute:R(w),onUnmute:R(T),onHold:R(S),onResume:R(C),onToggleSpeaker:ae},null,8,[`selected`,`call-btn-mode`,`is-speaker-muted`,`last-dialed`,`onAnswer`,`onHangup`,`onMute`,`onUnmute`,`onHold`,`onResume`])],38))}}),Xk=`@import "https://fonts.googleapis.com/css2?family=Raleway:wght@400;500;600;700&display=swap";@layer components;@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial;--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0}}}@layer theme{:root,:host{--font-sans:"Raleway", ui-sans-serif, system-ui, sans-serif;--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-100:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-red-800:oklch(44.4% .177 26.899);--color-red-950:oklch(25.8% .092 26.042);--color-orange-100:oklch(95.4% .038 75.164);--color-orange-200:oklch(90.1% .076 70.697);--color-orange-900:oklch(40.8% .123 38.172);--color-orange-950:oklch(26.6% .079 36.259);--color-amber-400:oklch(82.8% .189 84.429);--color-amber-500:oklch(76.9% .188 70.08);--color-yellow-100:oklch(97.3% .071 103.193);--color-yellow-200:oklch(94.5% .129 101.54);--color-yellow-900:oklch(42.1% .095 57.708);--color-yellow-950:oklch(28.6% .066 53.813);--color-green-100:oklch(96.2% .044 156.743);--color-green-200:oklch(92.5% .084 155.995);--color-green-400:oklch(79.2% .209 151.711);--color-green-500:oklch(72.3% .219 149.579);--color-green-600:oklch(62.7% .194 149.214);--color-green-900:oklch(39.3% .095 152.535);--color-green-950:oklch(26.6% .065 152.934);--color-blue-50:oklch(97% .014 254.604);--color-blue-100:oklch(93.2% .032 255.585);--color-blue-200:oklch(88.2% .059 254.128);--color-blue-400:oklch(70.7% .165 254.624);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-700:oklch(48.8% .243 264.376);--color-blue-800:oklch(42.4% .199 265.638);--color-blue-900:oklch(37.9% .146 265.522);--color-blue-950:oklch(28.2% .091 267.935);--color-violet-50:oklch(96.9% .016 293.756);--color-violet-100:oklch(94.3% .029 294.588);--color-violet-200:oklch(89.4% .057 293.283);--color-violet-400:oklch(70.2% .183 293.541);--color-violet-600:oklch(54.1% .281 293.009);--color-violet-700:oklch(49.1% .27 292.581);--color-violet-800:oklch(43.2% .232 292.759);--color-violet-950:oklch(28.3% .141 291.089);--color-purple-100:oklch(94.6% .033 307.174);--color-purple-200:oklch(90.2% .063 306.703);--color-purple-900:oklch(38.1% .176 304.987);--color-purple-950:oklch(29.1% .149 302.717);--color-pink-100:oklch(94.8% .028 342.258);--color-pink-200:oklch(89.9% .061 343.231);--color-pink-900:oklch(40.8% .153 2.432);--color-pink-950:oklch(28.4% .109 3.907);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-800:oklch(27.8% .033 256.848);--color-gray-900:oklch(21% .034 264.665);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-xs:20rem;--container-lg:32rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height:calc(1.5 / 1);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--font-weight-light:300;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-tight:-.025em;--tracking-wider:.05em;--tracking-widest:.1em;--leading-relaxed:1.625;--radius-xs:.125rem;--radius-2xl:1rem;--radius-3xl:1.5rem;--ease-in:cubic-bezier(.4, 0, 1, 1);--ease-out:cubic-bezier(0, 0, .2, 1);--animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--animate-bounce:bounce 1s infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:"Raleway", ui-sans-serif, system-ui, sans-serif;--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*{border-color:var(--border);outline-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){*{outline-color:color-mix(in oklab, var(--ring) 50%, transparent)}}body{background-color:var(--background);color:var(--foreground)}}@layer utilities{.\\@container\\/card-header{container:card-header/inline-size}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:calc(var(--spacing) * 0)}.inset-x-0{inset-inline:calc(var(--spacing) * 0)}.top-0{top:calc(var(--spacing) * 0)}.top-1\\/2{top:50%}.top-2{top:calc(var(--spacing) * 2)}.top-4{top:calc(var(--spacing) * 4)}.top-\\[50\\%\\]{top:50%}.right-0{right:calc(var(--spacing) * 0)}.right-2{right:calc(var(--spacing) * 2)}.right-3\\.5{right:calc(var(--spacing) * 3.5)}.right-4{right:calc(var(--spacing) * 4)}.bottom-0\\.5{bottom:calc(var(--spacing) * .5)}.left-1\\/2{left:50%}.left-3{left:calc(var(--spacing) * 3)}.left-\\[50\\%\\]{left:50%}.z-40{z-index:40}.z-50{z-index:50}.col-start-2{grid-column-start:2}.row-span-2{grid-row:span 2/span 2}.row-start-1{grid-row-start:1}.-mx-1{margin-inline:calc(var(--spacing) * -1)}.mx-4{margin-inline:calc(var(--spacing) * 4)}.mx-auto{margin-inline:auto}.my-1{margin-block:calc(var(--spacing) * 1)}.my-8{margin-block:calc(var(--spacing) * 8)}.mt-0\\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:calc(var(--spacing) * 1)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mb-1{margin-bottom:calc(var(--spacing) * 1)}.mb-1\\.5{margin-bottom:calc(var(--spacing) * 1.5)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.ml-2{margin-left:calc(var(--spacing) * 2)}.ml-5{margin-left:calc(var(--spacing) * 5)}.ml-auto{margin-left:auto}.line-clamp-1{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-6{-webkit-line-clamp:6;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.field-sizing-content{field-sizing:content}.size-1{width:calc(var(--spacing) * 1);height:calc(var(--spacing) * 1)}.size-1\\.5{width:calc(var(--spacing) * 1.5);height:calc(var(--spacing) * 1.5)}.size-2{width:calc(var(--spacing) * 2);height:calc(var(--spacing) * 2)}.size-3{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.size-3\\.5{width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.size-7{width:calc(var(--spacing) * 7);height:calc(var(--spacing) * 7)}.size-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.size-9{width:calc(var(--spacing) * 9);height:calc(var(--spacing) * 9)}.size-10{width:calc(var(--spacing) * 10);height:calc(var(--spacing) * 10)}.size-11{width:calc(var(--spacing) * 11);height:calc(var(--spacing) * 11)}.size-12{width:calc(var(--spacing) * 12);height:calc(var(--spacing) * 12)}.h-4{height:calc(var(--spacing) * 4)}.h-7{height:calc(var(--spacing) * 7)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-10{height:calc(var(--spacing) * 10)}.h-20{height:calc(var(--spacing) * 20)}.h-\\[var\\(--reka-select-trigger-height\\)\\]{height:var(--reka-select-trigger-height)}.h-full{height:100%}.h-px{height:1px}.max-h-\\(--reka-select-content-available-height\\){max-height:var(--reka-select-content-available-height)}.max-h-36{max-height:calc(var(--spacing) * 36)}.max-h-52{max-height:calc(var(--spacing) * 52)}.max-h-64{max-height:calc(var(--spacing) * 64)}.max-h-\\[300px\\]{max-height:300px}.min-h-0{min-height:calc(var(--spacing) * 0)}.min-h-4{min-height:calc(var(--spacing) * 4)}.min-h-16{min-height:calc(var(--spacing) * 16)}.min-h-24{min-height:calc(var(--spacing) * 24)}.min-h-screen{min-height:100vh}.w-4{width:calc(var(--spacing) * 4)}.w-7{width:calc(var(--spacing) * 7)}.w-10{width:calc(var(--spacing) * 10)}.w-24{width:calc(var(--spacing) * 24)}.w-44{width:calc(var(--spacing) * 44)}.w-72{width:calc(var(--spacing) * 72)}.w-80{width:calc(var(--spacing) * 80)}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.max-w-20{max-width:calc(var(--spacing) * 20)}.max-w-\\[18rem\\]{max-width:18rem}.max-w-\\[calc\\(100\\%-2rem\\)\\]{max-width:calc(100% - 2rem)}.max-w-lg{max-width:var(--container-lg)}.min-w-0{min-width:calc(var(--spacing) * 0)}.min-w-8{min-width:calc(var(--spacing) * 8)}.min-w-9{min-width:calc(var(--spacing) * 9)}.min-w-10{min-width:calc(var(--spacing) * 10)}.min-w-\\[8rem\\]{min-width:8rem}.min-w-\\[var\\(--reka-select-trigger-width\\)\\]{min-width:var(--reka-select-trigger-width)}.flex-1{flex:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.border-collapse{border-collapse:collapse}.origin-\\(--reka-popover-content-transform-origin\\){transform-origin:var(--reka-popover-content-transform-origin)}.-translate-x-1\\/2{--tw-translate-x:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-x-2{--tw-translate-x:calc(var(--spacing) * -2);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-\\[-50\\%\\]{--tw-translate-x:-50%;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-full{--tw-translate-x:100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-1{--tw-translate-y:calc(var(--spacing) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-1\\/2{--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-\\[-50\\%\\]{--tw-translate-y:-50%;translate:var(--tw-translate-x) var(--tw-translate-y)}.scale-110{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x) var(--tw-scale-y)}.animate-bounce{animation:var(--animate-bounce)}.animate-pulse{animation:var(--animate-pulse)}.cursor-default{cursor:default}.cursor-grab{cursor:grab}.cursor-grabbing{cursor:grabbing}.cursor-not-allowed{cursor:not-allowed}.touch-none{touch-action:none}.resize-none{resize:none}.scroll-my-1{scroll-margin-block:calc(var(--spacing) * 1)}.scroll-py-1{scroll-padding-block:calc(var(--spacing) * 1)}.appearance-none{appearance:none}.auto-rows-min{grid-auto-rows:min-content}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-\\[0_1fr\\]{grid-template-columns:0 1fr}.grid-rows-\\[auto_auto\\]{grid-template-rows:auto auto}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.place-items-center{place-items:center}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-0{gap:calc(var(--spacing) * 0)}.gap-1{gap:calc(var(--spacing) * 1)}.gap-1\\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2\\.5{gap:calc(var(--spacing) * 2.5)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-\\[--spacing\\(var\\(--gap\\)\\)\\]{gap:calc(var(--spacing) * var(--gap))}:where(.space-y-0\\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * .5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * .5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1\\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1.5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-x-1>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing) * 1) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing) * 1) * calc(1 - var(--tw-space-x-reverse)))}.gap-y-0\\.5{row-gap:calc(var(--spacing) * .5)}.gap-y-1{row-gap:calc(var(--spacing) * 1)}.gap-y-2{row-gap:calc(var(--spacing) * 2)}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px * var(--tw-divide-y-reverse));border-bottom-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-border\\/50>:not(:last-child)){border-color:var(--border)}@supports (color:color-mix(in lab, red, red)){:where(.divide-border\\/50>:not(:last-child)){border-color:color-mix(in oklab, var(--border) 50%, transparent)}}.self-start{align-self:flex-start}.justify-self-end{justify-self:flex-end}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-3xl{border-radius:var(--radius-3xl)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-xl{border-radius:calc(var(--radius) + 4px)}.rounded-xs{border-radius:var(--radius-xs)}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-blue-200{border-color:var(--color-blue-200)}.border-border,.border-border\\/60{border-color:var(--border)}@supports (color:color-mix(in lab, red, red)){.border-border\\/60{border-color:color-mix(in oklab, var(--border) 60%, transparent)}}.border-foreground{border-color:var(--foreground)}.border-gray-200{border-color:var(--color-gray-200)}.border-input{border-color:var(--input)}.border-primary{border-color:var(--primary)}.border-red-200{border-color:var(--color-red-200)}.border-transparent{border-color:#0000}.border-violet-200{border-color:var(--color-violet-200)}.bg-amber-400{background-color:var(--color-amber-400)}.bg-amber-500{background-color:var(--color-amber-500)}.bg-background{background-color:var(--background)}.bg-black\\/80{background-color:#000c}@supports (color:color-mix(in lab, red, red)){.bg-black\\/80{background-color:color-mix(in oklab, var(--color-black) 80%, transparent)}}.bg-blue-50{background-color:var(--color-blue-50)}.bg-blue-100{background-color:var(--color-blue-100)}.bg-blue-200{background-color:var(--color-blue-200)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-border{background-color:var(--border)}.bg-card{background-color:var(--card)}.bg-destructive{background-color:var(--destructive)}.bg-foreground{background-color:var(--foreground)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-green-100{background-color:var(--color-green-100)}.bg-green-200{background-color:var(--color-green-200)}.bg-green-500{background-color:var(--color-green-500)}.bg-muted{background-color:var(--muted)}.bg-muted-foreground,.bg-muted-foreground\\/30{background-color:var(--muted-foreground)}@supports (color:color-mix(in lab, red, red)){.bg-muted-foreground\\/30{background-color:color-mix(in oklab, var(--muted-foreground) 30%, transparent)}}.bg-muted\\/30{background-color:var(--muted)}@supports (color:color-mix(in lab, red, red)){.bg-muted\\/30{background-color:color-mix(in oklab, var(--muted) 30%, transparent)}}.bg-muted\\/40{background-color:var(--muted)}@supports (color:color-mix(in lab, red, red)){.bg-muted\\/40{background-color:color-mix(in oklab, var(--muted) 40%, transparent)}}.bg-muted\\/50{background-color:var(--muted)}@supports (color:color-mix(in lab, red, red)){.bg-muted\\/50{background-color:color-mix(in oklab, var(--muted) 50%, transparent)}}.bg-muted\\/60{background-color:var(--muted)}@supports (color:color-mix(in lab, red, red)){.bg-muted\\/60{background-color:color-mix(in oklab, var(--muted) 60%, transparent)}}.bg-muted\\/70{background-color:var(--muted)}@supports (color:color-mix(in lab, red, red)){.bg-muted\\/70{background-color:color-mix(in oklab, var(--muted) 70%, transparent)}}.bg-orange-100{background-color:var(--color-orange-100)}.bg-orange-200{background-color:var(--color-orange-200)}.bg-pink-100{background-color:var(--color-pink-100)}.bg-pink-200{background-color:var(--color-pink-200)}.bg-popover{background-color:var(--popover)}.bg-primary{background-color:var(--primary)}.bg-purple-100{background-color:var(--color-purple-100)}.bg-purple-200{background-color:var(--color-purple-200)}.bg-red-50{background-color:var(--color-red-50)}.bg-red-100{background-color:var(--color-red-100)}.bg-secondary{background-color:var(--secondary)}.bg-transparent{background-color:#0000}.bg-violet-50{background-color:var(--color-violet-50)}.bg-violet-100{background-color:var(--color-violet-100)}.bg-white{background-color:var(--color-white)}.bg-yellow-100{background-color:var(--color-yellow-100)}.bg-yellow-200{background-color:var(--color-yellow-200)}.p-0{padding:calc(var(--spacing) * 0)}.p-0\\.5{padding:calc(var(--spacing) * .5)}.p-1{padding:calc(var(--spacing) * 1)}.p-2\\.5{padding:calc(var(--spacing) * 2.5)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-6{padding:calc(var(--spacing) * 6)}.px-1{padding-inline:calc(var(--spacing) * 1)}.px-1\\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.px-6{padding-inline:calc(var(--spacing) * 6)}.px-8{padding-inline:calc(var(--spacing) * 8)}.py-0\\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:calc(var(--spacing) * 1)}.py-1\\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-5{padding-block:calc(var(--spacing) * 5)}.py-6{padding-block:calc(var(--spacing) * 6)}.py-8{padding-block:calc(var(--spacing) * 8)}.pt-0{padding-top:calc(var(--spacing) * 0)}.pt-1{padding-top:calc(var(--spacing) * 1)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pr-6{padding-right:calc(var(--spacing) * 6)}.pr-8{padding-right:calc(var(--spacing) * 8)}.pr-9{padding-right:calc(var(--spacing) * 9)}.pb-1{padding-bottom:calc(var(--spacing) * 1)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.pl-2{padding-left:calc(var(--spacing) * 2)}.pl-8{padding-left:calc(var(--spacing) * 8)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[0\\.8rem\\]{font-size:.8rem}.text-\\[10px\\]{font-size:10px}.leading-none{--tw-leading:1;line-height:1}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-light{--tw-font-weight:var(--font-weight-light);font-weight:var(--font-weight-light)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.tracking-widest{--tw-tracking:var(--tracking-widest);letter-spacing:var(--tracking-widest)}.wrap-break-word{overflow-wrap:break-word}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.text-amber-400{color:var(--color-amber-400)}.text-amber-500{color:var(--color-amber-500)}.text-background{color:var(--background)}.text-blue-500{color:var(--color-blue-500)}.text-blue-600{color:var(--color-blue-600)}.text-blue-700{color:var(--color-blue-700)}.text-card-foreground{color:var(--card-foreground)}.text-current\\/40{color:currentColor}@supports (color:color-mix(in lab, red, red)){.text-current\\/40{color:color-mix(in oklab, currentcolor 40%, transparent)}}.text-destructive{color:var(--destructive)}.text-foreground{color:var(--foreground)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-green-500{color:var(--color-green-500)}.text-green-600{color:var(--color-green-600)}.text-muted-foreground,.text-muted-foreground\\/40{color:var(--muted-foreground)}@supports (color:color-mix(in lab, red, red)){.text-muted-foreground\\/40{color:color-mix(in oklab, var(--muted-foreground) 40%, transparent)}}.text-muted-foreground\\/50{color:var(--muted-foreground)}@supports (color:color-mix(in lab, red, red)){.text-muted-foreground\\/50{color:color-mix(in oklab, var(--muted-foreground) 50%, transparent)}}.text-muted-foreground\\/60{color:var(--muted-foreground)}@supports (color:color-mix(in lab, red, red)){.text-muted-foreground\\/60{color:color-mix(in oklab, var(--muted-foreground) 60%, transparent)}}.text-popover-foreground{color:var(--popover-foreground)}.text-primary{color:var(--primary)}.text-primary-foreground{color:var(--primary-foreground)}.text-red-500{color:var(--color-red-500)}.text-red-600{color:var(--color-red-600)}.text-red-700{color:var(--color-red-700)}.text-secondary-foreground{color:var(--secondary-foreground)}.text-transparent{color:#0000}.text-violet-600{color:var(--color-violet-600)}.text-violet-700{color:var(--color-violet-700)}.text-white{color:var(--color-white)}.capitalize{text-transform:capitalize}.uppercase{text-transform:uppercase}.italic{font-style:italic}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-ring\\/50{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){.ring-ring\\/50{--tw-ring-color:color-mix(in oklab, var(--ring) 50%, transparent)}}.ring-offset-background{--tw-ring-offset-color:var(--background)}.outline-hidden{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.outline-hidden{outline-offset:2px;outline:2px solid #0000}}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[color\\,box-shadow\\]{transition-property:color,box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.ease-in{--tw-ease:var(--ease-in);transition-timing-function:var(--ease-in)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}@media (hover:hover){.group-hover\\:opacity-100:is(:where(.group):hover *){opacity:1}}.selection\\:bg-primary ::selection{background-color:var(--primary)}.selection\\:bg-primary::selection{background-color:var(--primary)}.selection\\:text-primary-foreground ::selection{color:var(--primary-foreground)}.selection\\:text-primary-foreground::selection{color:var(--primary-foreground)}.file\\:inline-flex::file-selector-button{display:inline-flex}.file\\:h-7::file-selector-button{height:calc(var(--spacing) * 7)}.file\\:border-0::file-selector-button{border-style:var(--tw-border-style);border-width:0}.file\\:bg-transparent::file-selector-button{background-color:#0000}.file\\:text-sm::file-selector-button{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.file\\:font-medium::file-selector-button{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.file\\:text-foreground::file-selector-button{color:var(--foreground)}.placeholder\\:text-muted-foreground::placeholder{color:var(--muted-foreground)}.focus-within\\:relative:focus-within{position:relative}.focus-within\\:z-20:focus-within{z-index:20}@media (hover:hover){.hover\\:bg-accent:hover{background-color:var(--accent)}.hover\\:bg-destructive\\/90:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-destructive\\/90:hover{background-color:color-mix(in oklab, var(--destructive) 90%, transparent)}}.hover\\:bg-green-600:hover{background-color:var(--color-green-600)}.hover\\:bg-muted:hover,.hover\\:bg-muted\\/40:hover{background-color:var(--muted)}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-muted\\/40:hover{background-color:color-mix(in oklab, var(--muted) 40%, transparent)}}.hover\\:bg-muted\\/70:hover{background-color:var(--muted)}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-muted\\/70:hover{background-color:color-mix(in oklab, var(--muted) 70%, transparent)}}.hover\\:bg-primary\\/90:hover{background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-primary\\/90:hover{background-color:color-mix(in oklab, var(--primary) 90%, transparent)}}.hover\\:bg-secondary:hover,.hover\\:bg-secondary\\/80:hover{background-color:var(--secondary)}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-secondary\\/80:hover{background-color:color-mix(in oklab, var(--secondary) 80%, transparent)}}.hover\\:text-accent-foreground:hover{color:var(--accent-foreground)}.hover\\:text-amber-400:hover{color:var(--color-amber-400)}.hover\\:text-destructive:hover{color:var(--destructive)}.hover\\:text-foreground:hover{color:var(--foreground)}.hover\\:text-green-500:hover{color:var(--color-green-500)}.hover\\:text-muted-foreground:hover{color:var(--muted-foreground)}.hover\\:text-red-500:hover{color:var(--color-red-500)}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-90:hover{opacity:.9}.hover\\:opacity-100:hover{opacity:1}.hover\\:ring-4:hover{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}}.focus\\:z-10:focus{z-index:10}.focus\\:bg-accent:focus{background-color:var(--accent)}.focus\\:text-accent-foreground:focus{color:var(--accent-foreground)}.focus\\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus\\:ring-ring:focus{--tw-ring-color:var(--ring)}.focus\\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.focus\\:outline-hidden:focus{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.focus\\:outline-hidden:focus{outline-offset:2px;outline:2px solid #0000}}.focus-visible\\:z-10:focus-visible{z-index:10}.focus-visible\\:border-ring:focus-visible{border-color:var(--ring)}.focus-visible\\:ring-4:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-visible\\:ring-\\[3px\\]:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-visible\\:ring-destructive\\/20:focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.focus-visible\\:ring-destructive\\/20:focus-visible{--tw-ring-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.focus-visible\\:ring-ring\\/50:focus-visible{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){.focus-visible\\:ring-ring\\/50:focus-visible{--tw-ring-color:color-mix(in oklab, var(--ring) 50%, transparent)}}.focus-visible\\:outline-hidden:focus-visible{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.focus-visible\\:outline-hidden:focus-visible{outline-offset:2px;outline:2px solid #0000}}.active\\:scale-95:active{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-50:disabled{opacity:.5}.has-data-\\[slot\\=card-action\\]\\:grid-cols-\\[1fr_auto\\]:has([data-slot=card-action]){grid-template-columns:1fr auto}.has-\\[select\\:disabled\\]\\:opacity-50:has(:is(select:disabled)){opacity:.5}.has-\\[\\>svg\\]\\:grid-cols-\\[calc\\(var\\(--spacing\\)\\*4\\)_1fr\\]:has(>svg){grid-template-columns:calc(var(--spacing) * 4) 1fr}.has-\\[\\>svg\\]\\:gap-x-3:has(>svg){column-gap:calc(var(--spacing) * 3)}.has-\\[\\>svg\\]\\:px-2\\.5:has(>svg){padding-inline:calc(var(--spacing) * 2.5)}.has-\\[\\>svg\\]\\:px-3:has(>svg){padding-inline:calc(var(--spacing) * 3)}.has-\\[\\>svg\\]\\:px-4:has(>svg){padding-inline:calc(var(--spacing) * 4)}.aria-invalid\\:border-destructive[aria-invalid=true]{border-color:var(--destructive)}.aria-invalid\\:ring-destructive\\/20[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.aria-invalid\\:ring-destructive\\/20[aria-invalid=true]{--tw-ring-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.data-disabled\\:text-muted-foreground[data-disabled]{color:var(--muted-foreground)}.data-disabled\\:opacity-40[data-disabled]{opacity:.4}.data-outside-view\\:text-muted-foreground[data-outside-view]{color:var(--muted-foreground)}.data-outside-view\\:opacity-40[data-outside-view]{opacity:.4}.data-selected\\:bg-primary[data-selected]{background-color:var(--primary)}.data-selected\\:text-primary-foreground[data-selected]{color:var(--primary-foreground)}.data-unavailable\\:line-through[data-unavailable]{text-decoration-line:line-through}.data-\\[disabled\\]\\:pointer-events-none[data-disabled]{pointer-events:none}.data-\\[disabled\\]\\:opacity-50[data-disabled]{opacity:.5}.data-\\[highlighted\\]\\:bg-accent[data-highlighted]{background-color:var(--accent)}.data-\\[highlighted\\]\\:text-accent-foreground[data-highlighted]{color:var(--accent-foreground)}.data-\\[orientation\\=horizontal\\]\\:h-1\\.5[data-orientation=horizontal]{height:calc(var(--spacing) * 1.5)}.data-\\[orientation\\=horizontal\\]\\:h-full[data-orientation=horizontal]{height:100%}.data-\\[orientation\\=horizontal\\]\\:h-px[data-orientation=horizontal]{height:1px}.data-\\[orientation\\=horizontal\\]\\:w-full[data-orientation=horizontal]{width:100%}.data-\\[orientation\\=vertical\\]\\:h-full[data-orientation=vertical]{height:100%}.data-\\[orientation\\=vertical\\]\\:min-h-44[data-orientation=vertical]{min-height:calc(var(--spacing) * 44)}.data-\\[orientation\\=vertical\\]\\:w-1\\.5[data-orientation=vertical]{width:calc(var(--spacing) * 1.5)}.data-\\[orientation\\=vertical\\]\\:w-auto[data-orientation=vertical]{width:auto}.data-\\[orientation\\=vertical\\]\\:w-full[data-orientation=vertical]{width:100%}.data-\\[orientation\\=vertical\\]\\:w-px[data-orientation=vertical]{width:1px}.data-\\[orientation\\=vertical\\]\\:flex-col[data-orientation=vertical]{flex-direction:column}.data-\\[placeholder\\]\\:text-muted-foreground[data-placeholder]{color:var(--muted-foreground)}.data-\\[side\\=bottom\\]\\:translate-y-1[data-side=bottom]{--tw-translate-y:calc(var(--spacing) * 1);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:calc(2*var(--spacing)*-1)}.data-\\[side\\=left\\]\\:-translate-x-1[data-side=left]{--tw-translate-x:calc(var(--spacing) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x:calc(2*var(--spacing))}.data-\\[side\\=right\\]\\:translate-x-1[data-side=right]{--tw-translate-x:calc(var(--spacing) * 1);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x:calc(2*var(--spacing)*-1)}.data-\\[side\\=top\\]\\:-translate-y-1[data-side=top]{--tw-translate-y:calc(var(--spacing) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:calc(2*var(--spacing))}.data-\\[size\\=default\\]\\:h-9[data-size=default]{height:calc(var(--spacing) * 9)}.data-\\[size\\=sm\\]\\:h-8[data-size=sm]{height:calc(var(--spacing) * 8)}:is(.\\*\\:data-\\[slot\\=alert-description\\]\\:text-destructive\\/90>*)[data-slot=alert-description]{color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){:is(.\\*\\:data-\\[slot\\=alert-description\\]\\:text-destructive\\/90>*)[data-slot=alert-description]{color:color-mix(in oklab, var(--destructive) 90%, transparent)}}:is(.\\*\\*\\:data-\\[slot\\=native-select-icon\\]\\:right-1 *)[data-slot=native-select-icon]{right:calc(var(--spacing) * 1)}:is(.\\*\\:data-\\[slot\\=select-value\\]\\:line-clamp-1>*)[data-slot=select-value]{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}:is(.\\*\\:data-\\[slot\\=select-value\\]\\:flex>*)[data-slot=select-value]{display:flex}:is(.\\*\\:data-\\[slot\\=select-value\\]\\:items-center>*)[data-slot=select-value]{align-items:center}:is(.\\*\\:data-\\[slot\\=select-value\\]\\:gap-2>*)[data-slot=select-value]{gap:calc(var(--spacing) * 2)}.data-\\[spacing\\=0\\]\\:rounded-none[data-spacing="0"]{border-radius:0}.data-\\[spacing\\=0\\]\\:shadow-none[data-spacing="0"]{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.data-\\[spacing\\=0\\]\\:first\\:rounded-l-md[data-spacing="0"]:first-child{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.data-\\[spacing\\=0\\]\\:last\\:rounded-r-md[data-spacing="0"]:last-child{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.data-\\[state\\=closed\\]\\:animate-out[data-state=closed]{animation:exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\\[state\\=closed\\]\\:fade-out-0[data-state=closed]{--tw-exit-opacity:0}.data-\\[state\\=closed\\]\\:zoom-out-95[data-state=closed]{--tw-exit-scale:.95}.data-\\[state\\=on\\]\\:bg-accent[data-state=on]{background-color:var(--accent)}.data-\\[state\\=on\\]\\:text-accent-foreground[data-state=on]{color:var(--accent-foreground)}.data-\\[state\\=open\\]\\:animate-in[data-state=open]{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\\[state\\=open\\]\\:bg-accent[data-state=open]{background-color:var(--accent)}.data-\\[state\\=open\\]\\:text-muted-foreground[data-state=open]{color:var(--muted-foreground)}.data-\\[state\\=open\\]\\:fade-in-0[data-state=open]{--tw-enter-opacity:0}.data-\\[state\\=open\\]\\:zoom-in-95[data-state=open]{--tw-enter-scale:.95}.data-\\[spacing\\=0\\]\\:data-\\[variant\\=outline\\]\\:border-l-0[data-spacing="0"][data-variant=outline]{border-left-style:var(--tw-border-style);border-left-width:0}.data-\\[spacing\\=0\\]\\:data-\\[variant\\=outline\\]\\:first\\:border-l[data-spacing="0"][data-variant=outline]:first-child{border-left-style:var(--tw-border-style);border-left-width:1px}.data-\\[spacing\\=default\\]\\:data-\\[variant\\=outline\\]\\:shadow-xs[data-spacing=default][data-variant=outline]{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}@media (width>=40rem){.sm\\:w-96{width:calc(var(--spacing) * 96)}.sm\\:max-w-lg{max-width:var(--container-lg)}.sm\\:max-w-xs{max-width:var(--container-xs)}.sm\\:flex-row{flex-direction:row}.sm\\:justify-end{justify-content:flex-end}.sm\\:gap-x-4{column-gap:calc(var(--spacing) * 4)}.sm\\:gap-y-0{row-gap:calc(var(--spacing) * 0)}.sm\\:rounded-lg{border-radius:var(--radius)}.sm\\:text-left{text-align:left}}@media (width>=48rem){.md\\:w-full{width:100%}.md\\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}}.dark\\:border-blue-800:is(.dark *){border-color:var(--color-blue-800)}.dark\\:border-gray-700:is(.dark *){border-color:var(--color-gray-700)}.dark\\:border-input:is(.dark *){border-color:var(--input)}.dark\\:border-red-800:is(.dark *){border-color:var(--color-red-800)}.dark\\:border-violet-800:is(.dark *){border-color:var(--color-violet-800)}.dark\\:bg-blue-900\\/70:is(.dark *){background-color:#1c398eb3}@supports (color:color-mix(in lab, red, red)){.dark\\:bg-blue-900\\/70:is(.dark *){background-color:color-mix(in oklab, var(--color-blue-900) 70%, transparent)}}.dark\\:bg-blue-950:is(.dark *){background-color:var(--color-blue-950)}.dark\\:bg-blue-950\\/80:is(.dark *){background-color:#162456cc}@supports (color:color-mix(in lab, red, red)){.dark\\:bg-blue-950\\/80:is(.dark *){background-color:color-mix(in oklab, var(--color-blue-950) 80%, transparent)}}.dark\\:bg-destructive\\/60:is(.dark *){background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\\:bg-destructive\\/60:is(.dark *){background-color:color-mix(in oklab, var(--destructive) 60%, transparent)}}.dark\\:bg-gray-800:is(.dark *){background-color:var(--color-gray-800)}.dark\\:bg-gray-900:is(.dark *){background-color:var(--color-gray-900)}.dark\\:bg-green-900\\/70:is(.dark *){background-color:#0d542bb3}@supports (color:color-mix(in lab, red, red)){.dark\\:bg-green-900\\/70:is(.dark *){background-color:color-mix(in oklab, var(--color-green-900) 70%, transparent)}}.dark\\:bg-green-950\\/80:is(.dark *){background-color:#032e15cc}@supports (color:color-mix(in lab, red, red)){.dark\\:bg-green-950\\/80:is(.dark *){background-color:color-mix(in oklab, var(--color-green-950) 80%, transparent)}}.dark\\:bg-input\\/30:is(.dark *){background-color:var(--input)}@supports (color:color-mix(in lab, red, red)){.dark\\:bg-input\\/30:is(.dark *){background-color:color-mix(in oklab, var(--input) 30%, transparent)}}.dark\\:bg-orange-900\\/70:is(.dark *){background-color:#7e2a0cb3}@supports (color:color-mix(in lab, red, red)){.dark\\:bg-orange-900\\/70:is(.dark *){background-color:color-mix(in oklab, var(--color-orange-900) 70%, transparent)}}.dark\\:bg-orange-950\\/80:is(.dark *){background-color:#441306cc}@supports (color:color-mix(in lab, red, red)){.dark\\:bg-orange-950\\/80:is(.dark *){background-color:color-mix(in oklab, var(--color-orange-950) 80%, transparent)}}.dark\\:bg-pink-900\\/70:is(.dark *){background-color:#861043b3}@supports (color:color-mix(in lab, red, red)){.dark\\:bg-pink-900\\/70:is(.dark *){background-color:color-mix(in oklab, var(--color-pink-900) 70%, transparent)}}.dark\\:bg-pink-950\\/80:is(.dark *){background-color:#510424cc}@supports (color:color-mix(in lab, red, red)){.dark\\:bg-pink-950\\/80:is(.dark *){background-color:color-mix(in oklab, var(--color-pink-950) 80%, transparent)}}.dark\\:bg-purple-900\\/70:is(.dark *){background-color:#59168bb3}@supports (color:color-mix(in lab, red, red)){.dark\\:bg-purple-900\\/70:is(.dark *){background-color:color-mix(in oklab, var(--color-purple-900) 70%, transparent)}}.dark\\:bg-purple-950\\/80:is(.dark *){background-color:#3c0366cc}@supports (color:color-mix(in lab, red, red)){.dark\\:bg-purple-950\\/80:is(.dark *){background-color:color-mix(in oklab, var(--color-purple-950) 80%, transparent)}}.dark\\:bg-red-950:is(.dark *){background-color:var(--color-red-950)}.dark\\:bg-violet-950:is(.dark *){background-color:var(--color-violet-950)}.dark\\:bg-yellow-900\\/70:is(.dark *){background-color:#733e0ab3}@supports (color:color-mix(in lab, red, red)){.dark\\:bg-yellow-900\\/70:is(.dark *){background-color:color-mix(in oklab, var(--color-yellow-900) 70%, transparent)}}.dark\\:bg-yellow-950\\/80:is(.dark *){background-color:#432004cc}@supports (color:color-mix(in lab, red, red)){.dark\\:bg-yellow-950\\/80:is(.dark *){background-color:color-mix(in oklab, var(--color-yellow-950) 80%, transparent)}}.dark\\:text-blue-400:is(.dark *){color:var(--color-blue-400)}.dark\\:text-gray-400:is(.dark *){color:var(--color-gray-400)}.dark\\:text-green-400:is(.dark *){color:var(--color-green-400)}.dark\\:text-red-400:is(.dark *){color:var(--color-red-400)}.dark\\:text-violet-400:is(.dark *){color:var(--color-violet-400)}@media (hover:hover){.dark\\:hover\\:bg-accent\\/50:is(.dark *):hover{background-color:var(--accent)}@supports (color:color-mix(in lab, red, red)){.dark\\:hover\\:bg-accent\\/50:is(.dark *):hover{background-color:color-mix(in oklab, var(--accent) 50%, transparent)}}.dark\\:hover\\:bg-input\\/50:is(.dark *):hover{background-color:var(--input)}@supports (color:color-mix(in lab, red, red)){.dark\\:hover\\:bg-input\\/50:is(.dark *):hover{background-color:color-mix(in oklab, var(--input) 50%, transparent)}}}.dark\\:focus-visible\\:ring-destructive\\/40:is(.dark *):focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\\:focus-visible\\:ring-destructive\\/40:is(.dark *):focus-visible{--tw-ring-color:color-mix(in oklab, var(--destructive) 40%, transparent)}}.dark\\:aria-invalid\\:ring-destructive\\/40:is(.dark *)[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\\:aria-invalid\\:ring-destructive\\/40:is(.dark *)[aria-invalid=true]{--tw-ring-color:color-mix(in oklab, var(--destructive) 40%, transparent)}}.\\[\\&_p\\]\\:leading-relaxed p{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.\\[\\&_svg\\]\\:pointer-events-none svg{pointer-events:none}.\\[\\&_svg\\]\\:shrink-0 svg{flex-shrink:0}.\\[\\&_svg\\:not\\(\\[class\\*\\=\\'size-\\'\\]\\)\\]\\:size-4 svg:not([class*=size-]),.\\[\\&_svg\\:not\\(\\[class\\*\\=\\\\\\'size-\\\\\\'\\]\\)\\]\\:size-4 svg:not([class*="'size-'"]){width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.\\[\\&_svg\\:not\\(\\[class\\*\\=\\\\\\'text-\\\\\\'\\]\\)\\]\\:text-muted-foreground svg:not([class*="'text-'"]){color:var(--muted-foreground)}.\\[\\&\\:\\:-webkit-calendar-picker-indicator\\]\\:hidden::-webkit-calendar-picker-indicator{display:none}.\\[\\&\\:\\:-webkit-calendar-picker-indicator\\]\\:appearance-none::-webkit-calendar-picker-indicator{appearance:none}.\\[\\.border-b\\]\\:pb-6.border-b{padding-bottom:calc(var(--spacing) * 6)}.\\[\\.border-t\\]\\:pt-6.border-t{padding-top:calc(var(--spacing) * 6)}:is(.\\*\\:\\[span\\]\\:last\\:flex>*):is(span):last-child{display:flex}:is(.\\*\\:\\[span\\]\\:last\\:items-center>*):is(span):last-child{align-items:center}:is(.\\*\\:\\[span\\]\\:last\\:gap-2>*):is(span):last-child{gap:calc(var(--spacing) * 2)}.\\[\\&\\>svg\\]\\:pointer-events-none>svg{pointer-events:none}.\\[\\&\\>svg\\]\\:size-3>svg{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.\\[\\&\\>svg\\]\\:size-4>svg{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.\\[\\&\\>svg\\]\\:translate-y-0\\.5>svg{--tw-translate-y:calc(var(--spacing) * .5);translate:var(--tw-translate-x) var(--tw-translate-y)}.\\[\\&\\>svg\\]\\:text-current>svg{color:currentColor}.\\[\\&\\[data-today\\]\\:not\\(\\[data-selected\\]\\)\\]\\:bg-accent[data-today]:not([data-selected]){background-color:var(--accent)}.\\[\\&\\[data-today\\]\\:not\\(\\[data-selected\\]\\)\\]\\:text-accent-foreground[data-today]:not([data-selected]){color:var(--accent-foreground)}@media (hover:hover){a.\\[a\\&\\]\\:hover\\:bg-accent:hover{background-color:var(--accent)}a.\\[a\\&\\]\\:hover\\:bg-destructive\\/90:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){a.\\[a\\&\\]\\:hover\\:bg-destructive\\/90:hover{background-color:color-mix(in oklab, var(--destructive) 90%, transparent)}}a.\\[a\\&\\]\\:hover\\:bg-primary\\/90:hover{background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){a.\\[a\\&\\]\\:hover\\:bg-primary\\/90:hover{background-color:color-mix(in oklab, var(--primary) 90%, transparent)}}a.\\[a\\&\\]\\:hover\\:bg-secondary\\/90:hover{background-color:var(--secondary)}@supports (color:color-mix(in lab, red, red)){a.\\[a\\&\\]\\:hover\\:bg-secondary\\/90:hover{background-color:color-mix(in oklab, var(--secondary) 90%, transparent)}}a.\\[a\\&\\]\\:hover\\:text-accent-foreground:hover{color:var(--accent-foreground)}}}@property --tw-animation-delay{syntax:"*";inherits:false;initial-value:0s}@property --tw-animation-direction{syntax:"*";inherits:false;initial-value:normal}@property --tw-animation-duration{syntax:"*";inherits:false}@property --tw-animation-fill-mode{syntax:"*";inherits:false;initial-value:none}@property --tw-animation-iteration-count{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-translate-y{syntax:"*";inherits:false;initial-value:0}:root{--radius:.625rem;--background:oklch(100% 0 0);--foreground:oklch(14.5% 0 0);--card:oklch(100% 0 0);--card-foreground:oklch(14.5% 0 0);--popover:oklch(100% 0 0);--popover-foreground:oklch(14.5% 0 0);--primary:oklch(20.5% 0 0);--primary-foreground:oklch(98.5% 0 0);--secondary:oklch(97% 0 0);--secondary-foreground:oklch(20.5% 0 0);--muted:oklch(97% 0 0);--muted-foreground:oklch(55.6% 0 0);--accent:oklch(97% 0 0);--accent-foreground:oklch(20.5% 0 0);--destructive:oklch(57.7% .245 27.325);--border:oklch(92.2% 0 0);--input:oklch(92.2% 0 0);--ring:oklch(70.8% 0 0);--chart-1:oklch(64.6% .222 41.116);--chart-2:oklch(60% .118 184.704);--chart-3:oklch(39.8% .07 227.392);--chart-4:oklch(82.8% .189 84.429);--chart-5:oklch(76.9% .188 70.08);--sidebar:oklch(98.5% 0 0);--sidebar-foreground:oklch(14.5% 0 0);--sidebar-primary:oklch(20.5% 0 0);--sidebar-primary-foreground:oklch(98.5% 0 0);--sidebar-accent:oklch(97% 0 0);--sidebar-accent-foreground:oklch(20.5% 0 0);--sidebar-border:oklch(92.2% 0 0);--sidebar-ring:oklch(70.8% 0 0)}.dark{--background:oklch(14.5% 0 0);--foreground:oklch(98.5% 0 0);--card:oklch(20.5% 0 0);--card-foreground:oklch(98.5% 0 0);--popover:oklch(20.5% 0 0);--popover-foreground:oklch(98.5% 0 0);--primary:oklch(92.2% 0 0);--primary-foreground:oklch(20.5% 0 0);--secondary:oklch(26.9% 0 0);--secondary-foreground:oklch(98.5% 0 0);--muted:oklch(26.9% 0 0);--muted-foreground:oklch(70.8% 0 0);--accent:oklch(26.9% 0 0);--accent-foreground:oklch(98.5% 0 0);--destructive:oklch(70.4% .191 22.216);--border:oklch(100% 0 0/.1);--input:oklch(100% 0 0/.15);--ring:oklch(55.6% 0 0);--chart-1:oklch(48.8% .243 264.376);--chart-2:oklch(69.6% .17 162.48);--chart-3:oklch(76.9% .188 70.08);--chart-4:oklch(62.7% .265 303.9);--chart-5:oklch(64.5% .246 16.439);--sidebar:oklch(20.5% 0 0);--sidebar-foreground:oklch(98.5% 0 0);--sidebar-primary:oklch(48.8% .243 264.376);--sidebar-primary-foreground:oklch(98.5% 0 0);--sidebar-accent:oklch(26.9% 0 0);--sidebar-accent-foreground:oklch(98.5% 0 0);--sidebar-border:oklch(100% 0 0/.1);--sidebar-ring:oklch(55.6% 0 0)}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@keyframes pulse{50%{opacity:.5}}@keyframes bounce{0%,to{animation-timing-function:cubic-bezier(.8,0,1,1);transform:translateY(-25%)}50%{animation-timing-function:cubic-bezier(0,0,.2,1);transform:none}}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0)scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1))rotate(var(--tw-enter-rotate,0));filter:blur(var(--tw-enter-blur,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0)scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1))rotate(var(--tw-exit-rotate,0));filter:blur(var(--tw-exit-blur,0))}}`,Zk=h_(),Qk=cd(Yk,{styles:[(e=>e.replace(/:root\s*\{/g,`:host {`).replace(/\.dark\s*\{/g,`:host(.dark) {`).replace(/:is\(\.dark \*\)/g,`:is(:host(.dark) *)`))(Xk)],configureApp(e){e.use(Zk)}});return customElements.define(`web-phone`,Qk),e.WebPhoneElement=Qk,e})({});