Changeset 3445642
- Timestamp:
- 01/23/2026 02:43:34 PM (7 weeks ago)
- Location:
- podlove-podcasting-plugin-for-wordpress
- Files:
-
- 12 edited
- 1 copied
-
tags/4.3.3 (copied) (copied from podlove-podcasting-plugin-for-wordpress/trunk)
-
tags/4.3.3/client/dist/client.js (modified) (8 diffs)
-
tags/4.3.3/lib/modules/contributors/rest_api.php (modified) (1 diff)
-
tags/4.3.3/lib/template/episode.php (modified) (2 diffs)
-
tags/4.3.3/podlove.php (modified) (1 diff)
-
tags/4.3.3/readme.txt (modified) (2 diffs)
-
tags/4.3.3/vendor/composer/installed.php (modified) (2 diffs)
-
trunk/client/dist/client.js (modified) (8 diffs)
-
trunk/lib/modules/contributors/rest_api.php (modified) (1 diff)
-
trunk/lib/template/episode.php (modified) (2 diffs)
-
trunk/podlove.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/vendor/composer/installed.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
podlove-podcasting-plugin-for-wordpress/tags/4.3.3/client/dist/client.js
r3380427 r3445642 1 (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function mm(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o<r.length;o++)n[r[o]]=!0;return o=>!!n[o]}const GI="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt",XI=mm(GI);function oo(e){if(Je(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=ln(r)?QI(r):oo(r);if(o)for(const i in o)t[i]=o[i]}return t}else{if(ln(e))return e;if(Kt(e))return e}}const YI=/;(?![^(]*\))/g,JI=/:([^]+)/,ZI=/\/\*.*?\*\//gs;function QI(e){const t={};return e.replace(ZI,"").split(YI).forEach(n=>{if(n){const r=n.split(JI);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function gt(e){let t="";if(ln(e))t=e;else if(Je(e))for(let n=0;n<e.length;n++){const r=gt(e[n]);r&&(t+=r+" ")}else if(Kt(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function eP(e){if(!e)return null;let{class:t,style:n}=e;return t&&!ln(t)&&(e.class=gt(t)),n&&(e.style=oo(n)),e}const L=e=>ln(e)?e:e==null?"":Je(e)||Kt(e)&&(e.toString===jb||!nt(e.toString))?JSON.stringify(e,Db,2):String(e),Db=(e,t)=>t&&t.__v_isRef?Db(e,t.value):Bi(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o])=>(n[`${r} =>`]=o,n),{})}:Bb(t)?{[`Set(${t.size})`]:[...t.values()]}:Kt(t)&&!Je(t)&&!Vb(t)?String(t):t,jt={},Ui=[],So=()=>{},tP=()=>!1,nP=/^on[^a-z]/,ld=e=>nP.test(e),Ub=e=>e.startsWith("onUpdate:"),kn=Object.assign,gm=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},rP=Object.prototype.hasOwnProperty,Et=(e,t)=>rP.call(e,t),Je=Array.isArray,Bi=e=>Ra(e)==="[object Map]",Bb=e=>Ra(e)==="[object Set]",oP=e=>Ra(e)==="[object RegExp]",nt=e=>typeof e=="function",ln=e=>typeof e=="string",vm=e=>typeof e=="symbol",Kt=e=>e!==null&&typeof e=="object",ym=e=>Kt(e)&&nt(e.then)&&nt(e.catch),jb=Object.prototype.toString,Ra=e=>jb.call(e),sP=e=>Ra(e).slice(8,-1),Vb=e=>Ra(e)==="[object Object]",_m=e=>ln(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Kl=mm(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ad=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},iP=/-(\w)/g,so=ad(e=>e.replace(iP,(t,n)=>n?n.toUpperCase():"")),lP=/\B([A-Z])/g,ud=ad(e=>e.replace(lP,"-$1").toLowerCase()),cd=ad(e=>e.charAt(0).toUpperCase()+e.slice(1)),Gl=ad(e=>e?`on${cd(e)}`:""),qi=(e,t)=>!Object.is(e,t),Xl=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Oc=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},aP=e=>{const t=parseFloat(e);return isNaN(t)?e:t},uP=e=>{const t=ln(e)?Number(e):NaN;return isNaN(t)?e:t};let g1;const cP=()=>g1||(g1=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let gr;class bm{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=gr,!t&&gr&&(this.index=(gr.scopes||(gr.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=gr;try{return gr=this,t()}finally{gr=n}}}on(){gr=this}off(){gr=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0,this._active=!1}}}function dP(e){return new bm(e)}function Hb(e,t=gr){t&&t.active&&t.effects.push(e)}function zb(){return gr}function Wb(e){gr&&gr.cleanups.push(e)}const wm=e=>{const t=new Set(e);return t.w=0,t.n=0,t},qb=e=>(e.w&bs)>0,Kb=e=>(e.n&bs)>0,fP=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=bs},pP=e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const o=t[r];qb(o)&&!Kb(o)?o.delete(e):t[n++]=o,o.w&=~bs,o.n&=~bs}t.length=n}},Ac=new WeakMap;let Hl=0,bs=1;const ch=30;let Zr;const Zs=Symbol(""),dh=Symbol("");class La{constructor(t,n=null,r){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,Hb(this,r)}run(){if(!this.active)return this.fn();let t=Zr,n=vs;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=Zr,Zr=this,vs=!0,bs=1<<++Hl,Hl<=ch?fP(this):v1(this),this.fn()}finally{Hl<=ch&&pP(this),bs=1<<--Hl,Zr=this.parent,vs=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Zr===this?this.deferStop=!0:this.active&&(v1(this),this.onStop&&this.onStop(),this.active=!1)}}function v1(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}function hP(e,t){e.effect&&(e=e.effect.fn);const n=new La(e);t&&(kn(n,t),t.scope&&Hb(n,t.scope)),(!t||!t.lazy)&&n.run();const r=n.run.bind(n);return r.effect=n,r}function mP(e){e.effect.stop()}let vs=!0;const Gb=[];function cl(){Gb.push(vs),vs=!1}function dl(){const e=Gb.pop();vs=e===void 0?!0:e}function ir(e,t,n){if(vs&&Zr){let r=Ac.get(e);r||Ac.set(e,r=new Map);let o=r.get(n);o||r.set(n,o=wm()),Xb(o)}}function Xb(e,t){let n=!1;Hl<=ch?Kb(e)||(e.n|=bs,n=!qb(e)):n=!e.has(Zr),n&&(e.add(Zr),Zr.deps.push(e))}function Ko(e,t,n,r,o,i){const l=Ac.get(e);if(!l)return;let a=[];if(t==="clear")a=[...l.values()];else if(n==="length"&&Je(e)){const c=Number(r);l.forEach((d,p)=>{(p==="length"||p>=c)&&a.push(d)})}else switch(n!==void 0&&a.push(l.get(n)),t){case"add":Je(e)?_m(n)&&a.push(l.get("length")):(a.push(l.get(Zs)),Bi(e)&&a.push(l.get(dh)));break;case"delete":Je(e)||(a.push(l.get(Zs)),Bi(e)&&a.push(l.get(dh)));break;case"set":Bi(e)&&a.push(l.get(Zs));break}if(a.length===1)a[0]&&fh(a[0]);else{const c=[];for(const d of a)d&&c.push(...d);fh(wm(c))}}function fh(e,t){const n=Je(e)?e:[...e];for(const r of n)r.computed&&y1(r);for(const r of n)r.computed||y1(r)}function y1(e,t){(e!==Zr||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function gP(e,t){var n;return(n=Ac.get(e))===null||n===void 0?void 0:n.get(t)}const vP=mm("__proto__,__v_isRef,__isVue"),Yb=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(vm)),yP=dd(),_P=dd(!1,!0),bP=dd(!0),wP=dd(!0,!0),_1=SP();function SP(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=He(this);for(let i=0,l=this.length;i<l;i++)ir(r,"get",i+"");const o=r[t](...n);return o===-1||o===!1?r[t](...n.map(He)):o}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){cl();const r=He(this)[t].apply(this,n);return dl(),r}}),e}function EP(e){const t=He(this);return ir(t,"has",e),t.hasOwnProperty(e)}function dd(e=!1,t=!1){return function(r,o,i){if(o==="__v_isReactive")return!e;if(o==="__v_isReadonly")return e;if(o==="__v_isShallow")return t;if(o==="__v_raw"&&i===(e?t?rw:nw:t?tw:ew).get(r))return r;const l=Je(r);if(!e){if(l&&Et(_1,o))return Reflect.get(_1,o,i);if(o==="hasOwnProperty")return EP}const a=Reflect.get(r,o,i);return(vm(o)?Yb.has(o):vP(o))||(e||ir(r,"get",o),t)?a:pn(a)?l&&_m(o)?a:a.value:Kt(a)?e?Em(a):Ts(a):a}}const $P=Jb(),xP=Jb(!0);function Jb(e=!1){return function(n,r,o,i){let l=n[r];if(li(l)&&pn(l)&&!pn(o))return!1;if(!e&&(!ca(o)&&!li(o)&&(l=He(l),o=He(o)),!Je(n)&&pn(l)&&!pn(o)))return l.value=o,!0;const a=Je(n)&&_m(r)?Number(r)<n.length:Et(n,r),c=Reflect.set(n,r,o,i);return n===He(i)&&(a?qi(o,l)&&Ko(n,"set",r,o):Ko(n,"add",r,o)),c}}function TP(e,t){const n=Et(e,t);e[t];const r=Reflect.deleteProperty(e,t);return r&&n&&Ko(e,"delete",t,void 0),r}function CP(e,t){const n=Reflect.has(e,t);return(!vm(t)||!Yb.has(t))&&ir(e,"has",t),n}function OP(e){return ir(e,"iterate",Je(e)?"length":Zs),Reflect.ownKeys(e)}const Zb={get:yP,set:$P,deleteProperty:TP,has:CP,ownKeys:OP},Qb={get:bP,set(e,t){return!0},deleteProperty(e,t){return!0}},AP=kn({},Zb,{get:_P,set:xP}),kP=kn({},Qb,{get:wP}),Sm=e=>e,fd=e=>Reflect.getPrototypeOf(e);function Wu(e,t,n=!1,r=!1){e=e.__v_raw;const o=He(e),i=He(t);n||(t!==i&&ir(o,"get",t),ir(o,"get",i));const{has:l}=fd(o),a=r?Sm:n?Tm:da;if(l.call(o,t))return a(e.get(t));if(l.call(o,i))return a(e.get(i));e!==o&&e.get(t)}function qu(e,t=!1){const n=this.__v_raw,r=He(n),o=He(e);return t||(e!==o&&ir(r,"has",e),ir(r,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function Ku(e,t=!1){return e=e.__v_raw,!t&&ir(He(e),"iterate",Zs),Reflect.get(e,"size",e)}function b1(e){e=He(e);const t=He(this);return fd(t).has.call(t,e)||(t.add(e),Ko(t,"add",e,e)),this}function w1(e,t){t=He(t);const n=He(this),{has:r,get:o}=fd(n);let i=r.call(n,e);i||(e=He(e),i=r.call(n,e));const l=o.call(n,e);return n.set(e,t),i?qi(t,l)&&Ko(n,"set",e,t):Ko(n,"add",e,t),this}function S1(e){const t=He(this),{has:n,get:r}=fd(t);let o=n.call(t,e);o||(e=He(e),o=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return o&&Ko(t,"delete",e,void 0),i}function E1(){const e=He(this),t=e.size!==0,n=e.clear();return t&&Ko(e,"clear",void 0,void 0),n}function Gu(e,t){return function(r,o){const i=this,l=i.__v_raw,a=He(l),c=t?Sm:e?Tm:da;return!e&&ir(a,"iterate",Zs),l.forEach((d,p)=>r.call(o,c(d),c(p),i))}}function Xu(e,t,n){return function(...r){const o=this.__v_raw,i=He(o),l=Bi(i),a=e==="entries"||e===Symbol.iterator&&l,c=e==="keys"&&l,d=o[e](...r),p=n?Sm:t?Tm:da;return!t&&ir(i,"iterate",c?dh:Zs),{next(){const{value:h,done:v}=d.next();return v?{value:h,done:v}:{value:a?[p(h[0]),p(h[1])]:p(h),done:v}},[Symbol.iterator](){return this}}}}function ls(e){return function(...t){return e==="delete"?!1:this}}function IP(){const e={get(i){return Wu(this,i)},get size(){return Ku(this)},has:qu,add:b1,set:w1,delete:S1,clear:E1,forEach:Gu(!1,!1)},t={get(i){return Wu(this,i,!1,!0)},get size(){return Ku(this)},has:qu,add:b1,set:w1,delete:S1,clear:E1,forEach:Gu(!1,!0)},n={get(i){return Wu(this,i,!0)},get size(){return Ku(this,!0)},has(i){return qu.call(this,i,!0)},add:ls("add"),set:ls("set"),delete:ls("delete"),clear:ls("clear"),forEach:Gu(!0,!1)},r={get(i){return Wu(this,i,!0,!0)},get size(){return Ku(this,!0)},has(i){return qu.call(this,i,!0)},add:ls("add"),set:ls("set"),delete:ls("delete"),clear:ls("clear"),forEach:Gu(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Xu(i,!1,!1),n[i]=Xu(i,!0,!1),t[i]=Xu(i,!1,!0),r[i]=Xu(i,!0,!0)}),[e,n,t,r]}const[PP,RP,LP,FP]=IP();function pd(e,t){const n=t?e?FP:LP:e?RP:PP;return(r,o,i)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(Et(n,o)&&o in r?n:r,o,i)}const NP={get:pd(!1,!1)},MP={get:pd(!1,!0)},DP={get:pd(!0,!1)},UP={get:pd(!0,!0)},ew=new WeakMap,tw=new WeakMap,nw=new WeakMap,rw=new WeakMap;function BP(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function jP(e){return e.__v_skip||!Object.isExtensible(e)?0:BP(sP(e))}function Ts(e){return li(e)?e:hd(e,!1,Zb,NP,ew)}function ow(e){return hd(e,!1,AP,MP,tw)}function Em(e){return hd(e,!0,Qb,DP,nw)}function VP(e){return hd(e,!0,kP,UP,rw)}function hd(e,t,n,r,o){if(!Kt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=o.get(e);if(i)return i;const l=jP(e);if(l===0)return e;const a=new Proxy(e,l===2?r:n);return o.set(e,a),a}function Qs(e){return li(e)?Qs(e.__v_raw):!!(e&&e.__v_isReactive)}function li(e){return!!(e&&e.__v_isReadonly)}function ca(e){return!!(e&&e.__v_isShallow)}function $m(e){return Qs(e)||li(e)}function He(e){const t=e&&e.__v_raw;return t?He(t):e}function xm(e){return Oc(e,"__v_skip",!0),e}const da=e=>Kt(e)?Ts(e):e,Tm=e=>Kt(e)?Em(e):e;function Cm(e){vs&&Zr&&(e=He(e),Xb(e.dep||(e.dep=wm())))}function md(e,t){e=He(e);const n=e.dep;n&&fh(n)}function pn(e){return!!(e&&e.__v_isRef===!0)}function $e(e){return sw(e,!1)}function gd(e){return sw(e,!0)}function sw(e,t){return pn(e)?e:new HP(e,t)}class HP{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:He(t),this._value=n?t:da(t)}get value(){return Cm(this),this._value}set value(t){const n=this.__v_isShallow||ca(t)||li(t);t=n?t:He(t),qi(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:da(t),md(this))}}function ph(e){md(e)}function vn(e){return pn(e)?e.value:e}const zP={get:(e,t,n)=>vn(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return pn(o)&&!pn(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function Om(e){return Qs(e)?e:new Proxy(e,zP)}class WP{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:r}=t(()=>Cm(this),()=>md(this));this._get=n,this._set=r}get value(){return this._get()}set value(t){this._set(t)}}function qP(e){return new WP(e)}function Am(e){const t=Je(e)?new Array(e.length):{};for(const n in e)t[n]=iw(e,n);return t}class KP{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return gP(He(this._object),this._key)}}function iw(e,t,n){const r=e[t];return pn(r)?r:new KP(e,t,n)}var lw;class GP{constructor(t,n,r,o){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[lw]=!1,this._dirty=!0,this.effect=new La(t,()=>{this._dirty||(this._dirty=!0,md(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=r}get value(){const t=He(this);return Cm(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}lw="__v_isReadonly";function XP(e,t,n=!1){let r,o;const i=nt(e);return i?(r=e,o=So):(r=e.get,o=e.set),new GP(r,o,i||!o,n)}function YP(e,...t){}function JP(e,t){}function zo(e,t,n,r){let o;try{o=r?e(...r):e()}catch(i){pi(i,t,n)}return o}function br(e,t,n,r){if(nt(e)){const i=zo(e,t,n,r);return i&&ym(i)&&i.catch(l=>{pi(l,t,n)}),i}const o=[];for(let i=0;i<e.length;i++)o.push(br(e[i],t,n,r));return o}function pi(e,t,n,r=!0){const o=t?t.vnode:null;if(t){let i=t.parent;const l=t.proxy,a=n;for(;i;){const d=i.ec;if(d){for(let p=0;p<d.length;p++)if(d[p](e,l,a)===!1)return}i=i.parent}const c=t.appContext.config.errorHandler;if(c){zo(c,null,10,[e,l,a]);return}}ZP(e,n,o,r)}function ZP(e,t,n,r=!0){console.error(e)}let fa=!1,hh=!1;const Nn=[];let wo=0;const ji=[];let Uo=null,Ws=0;const aw=Promise.resolve();let km=null;function sn(e){const t=km||aw;return e?t.then(this?e.bind(this):e):t}function QP(e){let t=wo+1,n=Nn.length;for(;t<n;){const r=t+n>>>1;pa(Nn[r])<e?t=r+1:n=r}return t}function vd(e){(!Nn.length||!Nn.includes(e,fa&&e.allowRecurse?wo+1:wo))&&(e.id==null?Nn.push(e):Nn.splice(QP(e.id),0,e),uw())}function uw(){!fa&&!hh&&(hh=!0,km=aw.then(cw))}function eR(e){const t=Nn.indexOf(e);t>wo&&Nn.splice(t,1)}function Im(e){Je(e)?ji.push(...e):(!Uo||!Uo.includes(e,e.allowRecurse?Ws+1:Ws))&&ji.push(e),uw()}function $1(e,t=fa?wo+1:0){for(;t<Nn.length;t++){const n=Nn[t];n&&n.pre&&(Nn.splice(t,1),t--,n())}}function kc(e){if(ji.length){const t=[...new Set(ji)];if(ji.length=0,Uo){Uo.push(...t);return}for(Uo=t,Uo.sort((n,r)=>pa(n)-pa(r)),Ws=0;Ws<Uo.length;Ws++)Uo[Ws]();Uo=null,Ws=0}}const pa=e=>e.id==null?1/0:e.id,tR=(e,t)=>{const n=pa(e)-pa(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function cw(e){hh=!1,fa=!0,Nn.sort(tR);try{for(wo=0;wo<Nn.length;wo++){const t=Nn[wo];t&&t.active!==!1&&zo(t,null,14)}}finally{wo=0,Nn.length=0,kc(),fa=!1,km=null,(Nn.length||ji.length)&&cw()}}let Mi,Yu=[];function dw(e,t){var n,r;Mi=e,Mi?(Mi.enabled=!0,Yu.forEach(({event:o,args:i})=>Mi.emit(o,...i)),Yu=[]):typeof window<"u"&&window.HTMLElement&&!(!((r=(n=window.navigator)===null||n===void 0?void 0:n.userAgent)===null||r===void 0)&&r.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(i=>{dw(i,t)}),setTimeout(()=>{Mi||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Yu=[])},3e3)):Yu=[]}function nR(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||jt;let o=n;const i=t.startsWith("update:"),l=i&&t.slice(7);if(l&&l in r){const p=`${l==="modelValue"?"model":l}Modifiers`,{number:h,trim:v}=r[p]||jt;v&&(o=n.map(y=>ln(y)?y.trim():y)),h&&(o=n.map(aP))}let a,c=r[a=Gl(t)]||r[a=Gl(so(t))];!c&&i&&(c=r[a=Gl(ud(t))]),c&&br(c,e,6,o);const d=r[a+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,br(d,e,6,o)}}function fw(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(o!==void 0)return o;const i=e.emits;let l={},a=!1;if(!nt(e)){const c=d=>{const p=fw(d,t,!0);p&&(a=!0,kn(l,p))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!i&&!a?(Kt(e)&&r.set(e,null),null):(Je(i)?i.forEach(c=>l[c]=null):kn(l,i),Kt(e)&&r.set(e,l),l)}function yd(e,t){return!e||!ld(t)?!1:(t=t.slice(2).replace(/Once$/,""),Et(e,t[0].toLowerCase()+t.slice(1))||Et(e,ud(t))||Et(e,t))}let An=null,_d=null;function ha(e){const t=An;return An=e,_d=e&&e.type.__scopeId||null,t}function rR(e){_d=e}function oR(){_d=null}const sR=e=>_e;function _e(e,t=An,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&wh(-1);const i=ha(t);let l;try{l=e(...o)}finally{ha(i),r._d&&wh(1)}return l};return r._n=!0,r._c=!0,r._d=!0,r}function mc(e){const{type:t,vnode:n,proxy:r,withProxy:o,props:i,propsOptions:[l],slots:a,attrs:c,emit:d,render:p,renderCache:h,data:v,setupState:y,ctx:b,inheritAttrs:S}=e;let T,C;const w=ha(e);try{if(n.shapeFlag&4){const O=o||r;T=vr(p.call(O,O,h,i,y,v,b)),C=c}else{const O=t;T=vr(O.length>1?O(i,{attrs:c,slots:a,emit:d}):O(i,null)),C=t.props?c:lR(c)}}catch(O){Zl.length=0,pi(O,e,1),T=z(Un)}let E=T;if(C&&S!==!1){const O=Object.keys(C),{shapeFlag:$}=E;O.length&&$&7&&(l&&O.some(Ub)&&(C=aR(C,l)),E=jr(E,C))}return n.dirs&&(E=jr(E),E.dirs=E.dirs?E.dirs.concat(n.dirs):n.dirs),n.transition&&(E.transition=n.transition),T=E,ha(w),T}function iR(e){let t;for(let n=0;n<e.length;n++){const r=e[n];if(ws(r)){if(r.type!==Un||r.children==="v-if"){if(t)return;t=r}}else return}return t}const lR=e=>{let t;for(const n in e)(n==="class"||n==="style"||ld(n))&&((t||(t={}))[n]=e[n]);return t},aR=(e,t)=>{const n={};for(const r in e)(!Ub(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function uR(e,t,n){const{props:r,children:o,component:i}=e,{props:l,children:a,patchFlag:c}=t,d=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?x1(r,l,d):!!l;if(c&8){const p=t.dynamicProps;for(let h=0;h<p.length;h++){const v=p[h];if(l[v]!==r[v]&&!yd(d,v))return!0}}}else return(o||a)&&(!a||!a.$stable)?!0:r===l?!1:r?l?x1(r,l,d):!0:!!l;return!1}function x1(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let o=0;o<r.length;o++){const i=r[o];if(t[i]!==e[i]&&!yd(n,i))return!0}return!1}function Pm({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const pw=e=>e.__isSuspense,cR={name:"Suspense",__isSuspense:!0,process(e,t,n,r,o,i,l,a,c,d){e==null?fR(t,n,r,o,i,l,a,c,d):pR(e,t,n,r,o,l,a,c,d)},hydrate:hR,create:Rm,normalize:mR},dR=cR;function ma(e,t){const n=e.props&&e.props[t];nt(n)&&n()}function fR(e,t,n,r,o,i,l,a,c){const{p:d,o:{createElement:p}}=c,h=p("div"),v=e.suspense=Rm(e,o,r,t,h,n,i,l,a,c);d(null,v.pendingBranch=e.ssContent,h,null,r,v,i,l),v.deps>0?(ma(e,"onPending"),ma(e,"onFallback"),d(null,e.ssFallback,t,n,r,null,i,l),Vi(v,e.ssFallback)):v.resolve()}function pR(e,t,n,r,o,i,l,a,{p:c,um:d,o:{createElement:p}}){const h=t.suspense=e.suspense;h.vnode=t,t.el=e.el;const v=t.ssContent,y=t.ssFallback,{activeBranch:b,pendingBranch:S,isInFallback:T,isHydrating:C}=h;if(S)h.pendingBranch=v,Qr(v,S)?(c(S,v,h.hiddenContainer,null,o,h,i,l,a),h.deps<=0?h.resolve():T&&(c(b,y,n,r,o,null,i,l,a),Vi(h,y))):(h.pendingId++,C?(h.isHydrating=!1,h.activeBranch=S):d(S,o,h),h.deps=0,h.effects.length=0,h.hiddenContainer=p("div"),T?(c(null,v,h.hiddenContainer,null,o,h,i,l,a),h.deps<=0?h.resolve():(c(b,y,n,r,o,null,i,l,a),Vi(h,y))):b&&Qr(v,b)?(c(b,v,n,r,o,h,i,l,a),h.resolve(!0)):(c(null,v,h.hiddenContainer,null,o,h,i,l,a),h.deps<=0&&h.resolve()));else if(b&&Qr(v,b))c(b,v,n,r,o,h,i,l,a),Vi(h,v);else if(ma(t,"onPending"),h.pendingBranch=v,h.pendingId++,c(null,v,h.hiddenContainer,null,o,h,i,l,a),h.deps<=0)h.resolve();else{const{timeout:w,pendingId:E}=h;w>0?setTimeout(()=>{h.pendingId===E&&h.fallback(y)},w):w===0&&h.fallback(y)}}function Rm(e,t,n,r,o,i,l,a,c,d,p=!1){const{p:h,m:v,um:y,n:b,o:{parentNode:S,remove:T}}=d,C=e.props?uP(e.props.timeout):void 0,w={vnode:e,parent:t,parentComponent:n,isSVG:l,container:r,hiddenContainer:o,anchor:i,deps:0,pendingId:0,timeout:typeof C=="number"?C:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:p,isUnmounted:!1,effects:[],resolve(E=!1){const{vnode:O,activeBranch:$,pendingBranch:P,pendingId:R,effects:k,parentComponent:W,container:U}=w;if(w.isHydrating)w.isHydrating=!1;else if(!E){const X=$&&P.transition&&P.transition.mode==="out-in";X&&($.transition.afterLeave=()=>{R===w.pendingId&&v(P,U,ne,0)});let{anchor:ne}=w;$&&(ne=b($),y($,W,w,!0)),X||v(P,U,ne,0)}Vi(w,P),w.pendingBranch=null,w.isInFallback=!1;let j=w.parent,G=!1;for(;j;){if(j.pendingBranch){j.effects.push(...k),G=!0;break}j=j.parent}G||Im(k),w.effects=[],ma(O,"onResolve")},fallback(E){if(!w.pendingBranch)return;const{vnode:O,activeBranch:$,parentComponent:P,container:R,isSVG:k}=w;ma(O,"onFallback");const W=b($),U=()=>{w.isInFallback&&(h(null,E,R,W,P,null,k,a,c),Vi(w,E))},j=E.transition&&E.transition.mode==="out-in";j&&($.transition.afterLeave=U),w.isInFallback=!0,y($,P,null,!0),j||U()},move(E,O,$){w.activeBranch&&v(w.activeBranch,E,O,$),w.container=E},next(){return w.activeBranch&&b(w.activeBranch)},registerDep(E,O){const $=!!w.pendingBranch;$&&w.deps++;const P=E.vnode.el;E.asyncDep.catch(R=>{pi(R,E,0)}).then(R=>{if(E.isUnmounted||w.isUnmounted||w.pendingId!==E.suspenseId)return;E.asyncResolved=!0;const{vnode:k}=E;Sh(E,R,!1),P&&(k.el=P);const W=!P&&E.subTree.el;O(E,k,S(P||E.subTree.el),P?null:b(E.subTree),w,l,c),W&&T(W),Pm(E,k.el),$&&--w.deps===0&&w.resolve()})},unmount(E,O){w.isUnmounted=!0,w.activeBranch&&y(w.activeBranch,n,E,O),w.pendingBranch&&y(w.pendingBranch,n,E,O)}};return w}function hR(e,t,n,r,o,i,l,a,c){const d=t.suspense=Rm(t,r,n,e.parentNode,document.createElement("div"),null,o,i,l,a,!0),p=c(e,d.pendingBranch=t.ssContent,n,d,i,l);return d.deps===0&&d.resolve(),p}function mR(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=T1(r?n.default:n),e.ssFallback=r?T1(n.fallback):z(Un)}function T1(e){let t;if(nt(e)){const n=ci&&e._c;n&&(e._d=!1,I()),e=e(),n&&(e._d=!0,t=er,Hw())}return Je(e)&&(e=iR(e)),e=vr(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function hw(e,t){t&&t.pendingBranch?Je(e)?t.effects.push(...e):t.effects.push(e):Im(e)}function Vi(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e,o=n.el=t.el;r&&r.subTree===n&&(r.vnode.el=o,Pm(r,o))}function Qt(e,t){if(Jt){let n=Jt.provides;const r=Jt.parent&&Jt.parent.provides;r===n&&(n=Jt.provides=Object.create(r)),n[e]=t}}function Ft(e,t,n=!1){const r=Jt||An;if(r){const o=r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&nt(t)?t.call(r.proxy):t}}function Vt(e,t){return Fa(e,null,t)}function mw(e,t){return Fa(e,null,{flush:"post"})}function gR(e,t){return Fa(e,null,{flush:"sync"})}const Ju={};function Ut(e,t,n){return Fa(e,t,n)}function Fa(e,t,{immediate:n,deep:r,flush:o,onTrack:i,onTrigger:l}=jt){const a=zb()===(Jt==null?void 0:Jt.scope)?Jt:null;let c,d=!1,p=!1;if(pn(e)?(c=()=>e.value,d=ca(e)):Qs(e)?(c=()=>e,r=!0):Je(e)?(p=!0,d=e.some(E=>Qs(E)||ca(E)),c=()=>e.map(E=>{if(pn(E))return E.value;if(Qs(E))return Gs(E);if(nt(E))return zo(E,a,2)})):nt(e)?t?c=()=>zo(e,a,2):c=()=>{if(!(a&&a.isUnmounted))return h&&h(),br(e,a,3,[v])}:c=So,t&&r){const E=c;c=()=>Gs(E())}let h,v=E=>{h=C.onStop=()=>{zo(E,a,4)}},y;if(Gi)if(v=So,t?n&&br(t,a,3,[c(),p?[]:void 0,v]):c(),o==="sync"){const E=r2();y=E.__watcherHandles||(E.__watcherHandles=[])}else return So;let b=p?new Array(e.length).fill(Ju):Ju;const S=()=>{if(C.active)if(t){const E=C.run();(r||d||(p?E.some((O,$)=>qi(O,b[$])):qi(E,b)))&&(h&&h(),br(t,a,3,[E,b===Ju?void 0:p&&b[0]===Ju?[]:b,v]),b=E)}else C.run()};S.allowRecurse=!!t;let T;o==="sync"?T=S:o==="post"?T=()=>Cn(S,a&&a.suspense):(S.pre=!0,a&&(S.id=a.uid),T=()=>vd(S));const C=new La(c,T);t?n?S():b=C.run():o==="post"?Cn(C.run.bind(C),a&&a.suspense):C.run();const w=()=>{C.stop(),a&&a.scope&&gm(a.scope.effects,C)};return y&&y.push(w),w}function vR(e,t,n){const r=this.proxy,o=ln(e)?e.includes(".")?gw(r,e):()=>r[e]:e.bind(r,r);let i;nt(t)?i=t:(i=t.handler,n=t);const l=Jt;Ss(this);const a=Fa(o,i.bind(r),n);return l?Ss(l):ys(),a}function gw(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o<n.length&&r;o++)r=r[n[o]];return r}}function Gs(e,t){if(!Kt(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),pn(e))Gs(e.value,t);else if(Je(e))for(let n=0;n<e.length;n++)Gs(e[n],t);else if(Bb(e)||Bi(e))e.forEach(n=>{Gs(n,t)});else if(Vb(e))for(const n in e)Gs(e[n],t);return e}function Lm(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return wt(()=>{e.isMounted=!0}),hi(()=>{e.isUnmounting=!0}),e}const Rr=[Function,Array],yR={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Rr,onEnter:Rr,onAfterEnter:Rr,onEnterCancelled:Rr,onBeforeLeave:Rr,onLeave:Rr,onAfterLeave:Rr,onLeaveCancelled:Rr,onBeforeAppear:Rr,onAppear:Rr,onAfterAppear:Rr,onAppearCancelled:Rr},setup(e,{slots:t}){const n=Jo(),r=Lm();let o;return()=>{const i=t.default&&bd(t.default(),!0);if(!i||!i.length)return;let l=i[0];if(i.length>1){for(const S of i)if(S.type!==Un){l=S;break}}const a=He(e),{mode:c}=a;if(r.isLeaving)return Op(l);const d=C1(l);if(!d)return Op(l);const p=Ki(d,a,r,n);ai(d,p);const h=n.subTree,v=h&&C1(h);let y=!1;const{getTransitionKey:b}=d.type;if(b){const S=b();o===void 0?o=S:S!==o&&(o=S,y=!0)}if(v&&v.type!==Un&&(!Qr(d,v)||y)){const S=Ki(v,a,r,n);if(ai(v,S),c==="out-in")return r.isLeaving=!0,S.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},Op(l);c==="in-out"&&d.type!==Un&&(S.delayLeave=(T,C,w)=>{const E=vw(r,v);E[String(v.key)]=v,T._leaveCb=()=>{C(),T._leaveCb=void 0,delete p.delayedLeave},p.delayedLeave=w})}return l}}},Fm=yR;function vw(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Ki(e,t,n,r){const{appear:o,mode:i,persisted:l=!1,onBeforeEnter:a,onEnter:c,onAfterEnter:d,onEnterCancelled:p,onBeforeLeave:h,onLeave:v,onAfterLeave:y,onLeaveCancelled:b,onBeforeAppear:S,onAppear:T,onAfterAppear:C,onAppearCancelled:w}=t,E=String(e.key),O=vw(n,e),$=(k,W)=>{k&&br(k,r,9,W)},P=(k,W)=>{const U=W[1];$(k,W),Je(k)?k.every(j=>j.length<=1)&&U():k.length<=1&&U()},R={mode:i,persisted:l,beforeEnter(k){let W=a;if(!n.isMounted)if(o)W=S||a;else return;k._leaveCb&&k._leaveCb(!0);const U=O[E];U&&Qr(e,U)&&U.el._leaveCb&&U.el._leaveCb(),$(W,[k])},enter(k){let W=c,U=d,j=p;if(!n.isMounted)if(o)W=T||c,U=C||d,j=w||p;else return;let G=!1;const X=k._enterCb=ne=>{G||(G=!0,ne?$(j,[k]):$(U,[k]),R.delayedLeave&&R.delayedLeave(),k._enterCb=void 0)};W?P(W,[k,X]):X()},leave(k,W){const U=String(e.key);if(k._enterCb&&k._enterCb(!0),n.isUnmounting)return W();$(h,[k]);let j=!1;const G=k._leaveCb=X=>{j||(j=!0,W(),X?$(b,[k]):$(y,[k]),k._leaveCb=void 0,O[U]===e&&delete O[U])};O[U]=e,v?P(v,[k,G]):G()},clone(k){return Ki(k,t,n,r)}};return R}function Op(e){if(Na(e))return e=jr(e),e.children=null,e}function C1(e){return Na(e)?e.children?e.children[0]:void 0:e}function ai(e,t){e.shapeFlag&6&&e.component?ai(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 bd(e,t=!1,n){let r=[],o=0;for(let i=0;i<e.length;i++){let l=e[i];const a=n==null?l.key:String(n)+String(l.key!=null?l.key:i);l.type===Me?(l.patchFlag&128&&o++,r=r.concat(bd(l.children,t,a))):(t||l.type!==Un)&&r.push(a!=null?jr(l,{key:a}):l)}if(o>1)for(let i=0;i<r.length;i++)r[i].patchFlag=-2;return r}function ge(e){return nt(e)?{setup:e,name:e.name}:e}const ei=e=>!!e.type.__asyncLoader;function _R(e){nt(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:o=200,timeout:i,suspensible:l=!0,onError:a}=e;let c=null,d,p=0;const h=()=>(p++,c=null,v()),v=()=>{let y;return c||(y=c=t().catch(b=>{if(b=b instanceof Error?b:new Error(String(b)),a)return new Promise((S,T)=>{a(b,()=>S(h()),()=>T(b),p+1)});throw b}).then(b=>y!==c&&c?c:(b&&(b.__esModule||b[Symbol.toStringTag]==="Module")&&(b=b.default),d=b,b)))};return ge({name:"AsyncComponentWrapper",__asyncLoader:v,get __asyncResolved(){return d},setup(){const y=Jt;if(d)return()=>Ap(d,y);const b=w=>{c=null,pi(w,y,13,!r)};if(l&&y.suspense||Gi)return v().then(w=>()=>Ap(w,y)).catch(w=>(b(w),()=>r?z(r,{error:w}):null));const S=$e(!1),T=$e(),C=$e(!!o);return o&&setTimeout(()=>{C.value=!1},o),i!=null&&setTimeout(()=>{if(!S.value&&!T.value){const w=new Error(`Async component timed out after ${i}ms.`);b(w),T.value=w}},i),v().then(()=>{S.value=!0,y.parent&&Na(y.parent.vnode)&&vd(y.parent.update)}).catch(w=>{b(w),T.value=w}),()=>{if(S.value&&d)return Ap(d,y);if(T.value&&r)return z(r,{error:T.value});if(n&&!C.value)return z(n)}}})}function Ap(e,t){const{ref:n,props:r,children:o,ce:i}=t.vnode,l=z(e,r,o);return l.ref=n,l.ce=i,delete t.vnode.ce,l}const Na=e=>e.type.__isKeepAlive,bR={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Jo(),r=n.ctx;if(!r.renderer)return()=>{const w=t.default&&t.default();return w&&w.length===1?w[0]:w};const o=new Map,i=new Set;let l=null;const a=n.suspense,{renderer:{p:c,m:d,um:p,o:{createElement:h}}}=r,v=h("div");r.activate=(w,E,O,$,P)=>{const R=w.component;d(w,E,O,0,a),c(R.vnode,w,E,O,R,a,$,w.slotScopeIds,P),Cn(()=>{R.isDeactivated=!1,R.a&&Xl(R.a);const k=w.props&&w.props.onVnodeMounted;k&&Qn(k,R.parent,w)},a)},r.deactivate=w=>{const E=w.component;d(w,v,null,1,a),Cn(()=>{E.da&&Xl(E.da);const O=w.props&&w.props.onVnodeUnmounted;O&&Qn(O,E.parent,w),E.isDeactivated=!0},a)};function y(w){kp(w),p(w,n,a,!0)}function b(w){o.forEach((E,O)=>{const $=$h(E.type);$&&(!w||!w($))&&S(O)})}function S(w){const E=o.get(w);!l||!Qr(E,l)?y(E):l&&kp(l),o.delete(w),i.delete(w)}Ut(()=>[e.include,e.exclude],([w,E])=>{w&&b(O=>zl(w,O)),E&&b(O=>!zl(E,O))},{flush:"post",deep:!0});let T=null;const C=()=>{T!=null&&o.set(T,Ip(n.subTree))};return wt(C),Sd(C),hi(()=>{o.forEach(w=>{const{subTree:E,suspense:O}=n,$=Ip(E);if(w.type===$.type&&w.key===$.key){kp($);const P=$.component.da;P&&Cn(P,O);return}y(w)})}),()=>{if(T=null,!t.default)return null;const w=t.default(),E=w[0];if(w.length>1)return l=null,w;if(!ws(E)||!(E.shapeFlag&4)&&!(E.shapeFlag&128))return l=null,E;let O=Ip(E);const $=O.type,P=$h(ei(O)?O.type.__asyncResolved||{}:$),{include:R,exclude:k,max:W}=e;if(R&&(!P||!zl(R,P))||k&&P&&zl(k,P))return l=O,E;const U=O.key==null?$:O.key,j=o.get(U);return O.el&&(O=jr(O),E.shapeFlag&128&&(E.ssContent=O)),T=U,j?(O.el=j.el,O.component=j.component,O.transition&&ai(O,O.transition),O.shapeFlag|=512,i.delete(U),i.add(U)):(i.add(U),W&&i.size>parseInt(W,10)&&S(i.values().next().value)),O.shapeFlag|=256,l=O,pw(E.type)?E:O}}},wR=bR;function zl(e,t){return Je(e)?e.some(n=>zl(n,t)):ln(e)?e.split(",").includes(t):oP(e)?e.test(t):!1}function yw(e,t){bw(e,"a",t)}function _w(e,t){bw(e,"da",t)}function bw(e,t,n=Jt){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(wd(t,r,n),n){let o=n.parent;for(;o&&o.parent;)Na(o.parent.vnode)&&SR(r,t,n,o),o=o.parent}}function SR(e,t,n,r){const o=wd(t,e,r,!0);en(()=>{gm(r[t],o)},n)}function kp(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Ip(e){return e.shapeFlag&128?e.ssContent:e}function wd(e,t,n=Jt,r=!1){if(n){const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...l)=>{if(n.isUnmounted)return;cl(),Ss(n);const a=br(t,n,e,l);return ys(),dl(),a});return r?o.unshift(i):o.push(i),i}}const Yo=e=>(t,n=Jt)=>(!Gi||e==="sp")&&wd(e,(...r)=>t(...r),n),ww=Yo("bm"),wt=Yo("m"),Sw=Yo("bu"),Sd=Yo("u"),hi=Yo("bum"),en=Yo("um"),Ew=Yo("sp"),$w=Yo("rtg"),xw=Yo("rtc");function Tw(e,t=Jt){wd("ec",e,t)}function Cw(e,t){const n=An;if(n===null)return e;const r=$d(n)||n.proxy,o=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[l,a,c,d=jt]=t[i];l&&(nt(l)&&(l={mounted:l,updated:l}),l.deep&&Gs(a),o.push({dir:l,instance:r,value:a,oldValue:void 0,arg:c,modifiers:d}))}return e}function bo(e,t,n,r){const o=e.dirs,i=t&&t.dirs;for(let l=0;l<o.length;l++){const a=o[l];i&&(a.oldValue=i[l].value);let c=a.dir[r];c&&(cl(),br(c,n,8,[e.el,a,e,t]),dl())}}const Nm="components",ER="directives";function q(e,t){return Mm(Nm,e,!0,t)||e}const Ow=Symbol();function $R(e){return ln(e)?Mm(Nm,e,!1)||e:e||Ow}function xR(e){return Mm(ER,e)}function Mm(e,t,n=!0,r=!1){const o=An||Jt;if(o){const i=o.type;if(e===Nm){const a=$h(i,!1);if(a&&(a===t||a===so(t)||a===cd(so(t))))return i}const l=O1(o[e]||i[e],t)||O1(o.appContext[e],t);return!l&&r?i:l}}function O1(e,t){return e&&(e[t]||e[so(t)]||e[cd(so(t))])}function Ot(e,t,n,r){let o;const i=n&&n[r];if(Je(e)||ln(e)){o=new Array(e.length);for(let l=0,a=e.length;l<a;l++)o[l]=t(e[l],l,void 0,i&&i[l])}else if(typeof e=="number"){o=new Array(e);for(let l=0;l<e;l++)o[l]=t(l+1,l,void 0,i&&i[l])}else if(Kt(e))if(e[Symbol.iterator])o=Array.from(e,(l,a)=>t(l,a,void 0,i&&i[a]));else{const l=Object.keys(e);o=new Array(l.length);for(let a=0,c=l.length;a<c;a++){const d=l[a];o[a]=t(e[d],d,a,i&&i[a])}}else o=[];return n&&(n[r]=o),o}function Aw(e,t){for(let n=0;n<t.length;n++){const r=t[n];if(Je(r))for(let o=0;o<r.length;o++)e[r[o].name]=r[o].fn;else r&&(e[r.name]=r.key?(...o)=>{const i=r.fn(...o);return i&&(i.key=r.key),i}:r.fn)}return e}function yn(e,t,n={},r,o){if(An.isCE||An.parent&&ei(An.parent)&&An.parent.isCE)return t!=="default"&&(n.name=t),z("slot",n,r&&r());let i=e[t];i&&i._c&&(i._d=!1),I();const l=i&&kw(i(n)),a=Ye(Me,{key:n.key||l&&l.key||`_${t}`},l||(r?r():[]),l&&e._===1?64:-2);return!o&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),i&&i._c&&(i._d=!0),a}function kw(e){return e.some(t=>ws(t)?!(t.type===Un||t.type===Me&&!kw(t.children)):!0)?e:null}function TR(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:Gl(r)]=e[r];return n}const mh=e=>e?Xw(e)?$d(e)||e.proxy:mh(e.parent):null,Yl=kn(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>mh(e.parent),$root:e=>mh(e.root),$emit:e=>e.emit,$options:e=>Dm(e),$forceUpdate:e=>e.f||(e.f=()=>vd(e.update)),$nextTick:e=>e.n||(e.n=sn.bind(e.proxy)),$watch:e=>vR.bind(e)}),Pp=(e,t)=>e!==jt&&!e.__isScriptSetup&&Et(e,t),gh={get({_:e},t){const{ctx:n,setupState:r,data:o,props:i,accessCache:l,type:a,appContext:c}=e;let d;if(t[0]!=="$"){const y=l[t];if(y!==void 0)switch(y){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return i[t]}else{if(Pp(r,t))return l[t]=1,r[t];if(o!==jt&&Et(o,t))return l[t]=2,o[t];if((d=e.propsOptions[0])&&Et(d,t))return l[t]=3,i[t];if(n!==jt&&Et(n,t))return l[t]=4,n[t];vh&&(l[t]=0)}}const p=Yl[t];let h,v;if(p)return t==="$attrs"&&ir(e,"get",t),p(e);if((h=a.__cssModules)&&(h=h[t]))return h;if(n!==jt&&Et(n,t))return l[t]=4,n[t];if(v=c.config.globalProperties,Et(v,t))return v[t]},set({_:e},t,n){const{data:r,setupState:o,ctx:i}=e;return Pp(o,t)?(o[t]=n,!0):r!==jt&&Et(r,t)?(r[t]=n,!0):Et(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:i}},l){let a;return!!n[l]||e!==jt&&Et(e,l)||Pp(t,l)||(a=i[0])&&Et(a,l)||Et(r,l)||Et(Yl,l)||Et(o.config.globalProperties,l)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Et(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},CR=kn({},gh,{get(e,t){if(t!==Symbol.unscopables)return gh.get(e,t,e)},has(e,t){return t[0]!=="_"&&!XI(t)}});let vh=!0;function OR(e){const t=Dm(e),n=e.proxy,r=e.ctx;vh=!1,t.beforeCreate&&A1(t.beforeCreate,e,"bc");const{data:o,computed:i,methods:l,watch:a,provide:c,inject:d,created:p,beforeMount:h,mounted:v,beforeUpdate:y,updated:b,activated:S,deactivated:T,beforeDestroy:C,beforeUnmount:w,destroyed:E,unmounted:O,render:$,renderTracked:P,renderTriggered:R,errorCaptured:k,serverPrefetch:W,expose:U,inheritAttrs:j,components:G,directives:X,filters:ne}=t;if(d&&AR(d,r,null,e.appContext.config.unwrapInjectedRef),l)for(const ke in l){const Ie=l[ke];nt(Ie)&&(r[ke]=Ie.bind(n))}if(o){const ke=o.call(n,n);Kt(ke)&&(e.data=Ts(ke))}if(vh=!0,i)for(const ke in i){const Ie=i[ke],Qe=nt(Ie)?Ie.bind(n,n):nt(Ie.get)?Ie.get.bind(n,n):So,ht=!nt(Ie)&&nt(Ie.set)?Ie.set.bind(n):So,De=fe({get:Qe,set:ht});Object.defineProperty(r,ke,{enumerable:!0,configurable:!0,get:()=>De.value,set:Xe=>De.value=Xe})}if(a)for(const ke in a)Iw(a[ke],r,n,ke);if(c){const ke=nt(c)?c.call(n):c;Reflect.ownKeys(ke).forEach(Ie=>{Qt(Ie,ke[Ie])})}p&&A1(p,e,"c");function Ee(ke,Ie){Je(Ie)?Ie.forEach(Qe=>ke(Qe.bind(n))):Ie&&ke(Ie.bind(n))}if(Ee(ww,h),Ee(wt,v),Ee(Sw,y),Ee(Sd,b),Ee(yw,S),Ee(_w,T),Ee(Tw,k),Ee(xw,P),Ee($w,R),Ee(hi,w),Ee(en,O),Ee(Ew,W),Je(U))if(U.length){const ke=e.exposed||(e.exposed={});U.forEach(Ie=>{Object.defineProperty(ke,Ie,{get:()=>n[Ie],set:Qe=>n[Ie]=Qe})})}else e.exposed||(e.exposed={});$&&e.render===So&&(e.render=$),j!=null&&(e.inheritAttrs=j),G&&(e.components=G),X&&(e.directives=X)}function AR(e,t,n=So,r=!1){Je(e)&&(e=yh(e));for(const o in e){const i=e[o];let l;Kt(i)?"default"in i?l=Ft(i.from||o,i.default,!0):l=Ft(i.from||o):l=Ft(i),pn(l)&&r?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>l.value,set:a=>l.value=a}):t[o]=l}}function A1(e,t,n){br(Je(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Iw(e,t,n,r){const o=r.includes(".")?gw(n,r):()=>n[r];if(ln(e)){const i=t[e];nt(i)&&Ut(o,i)}else if(nt(e))Ut(o,e.bind(n));else if(Kt(e))if(Je(e))e.forEach(i=>Iw(i,t,n,r));else{const i=nt(e.handler)?e.handler.bind(n):t[e.handler];nt(i)&&Ut(o,i,e)}}function Dm(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:l}}=e.appContext,a=i.get(t);let c;return a?c=a:!o.length&&!n&&!r?c=t:(c={},o.length&&o.forEach(d=>Ic(c,d,l,!0)),Ic(c,t,l)),Kt(t)&&i.set(t,c),c}function Ic(e,t,n,r=!1){const{mixins:o,extends:i}=t;i&&Ic(e,i,n,!0),o&&o.forEach(l=>Ic(e,l,n,!0));for(const l in t)if(!(r&&l==="expose")){const a=kR[l]||n&&n[l];e[l]=a?a(e[l],t[l]):t[l]}return e}const kR={data:k1,props:zs,emits:zs,methods:zs,computed:zs,beforeCreate:qn,created:qn,beforeMount:qn,mounted:qn,beforeUpdate:qn,updated:qn,beforeDestroy:qn,beforeUnmount:qn,destroyed:qn,unmounted:qn,activated:qn,deactivated:qn,errorCaptured:qn,serverPrefetch:qn,components:zs,directives:zs,watch:PR,provide:k1,inject:IR};function k1(e,t){return t?e?function(){return kn(nt(e)?e.call(this,this):e,nt(t)?t.call(this,this):t)}:t:e}function IR(e,t){return zs(yh(e),yh(t))}function yh(e){if(Je(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function qn(e,t){return e?[...new Set([].concat(e,t))]:t}function zs(e,t){return e?kn(kn(Object.create(null),e),t):t}function PR(e,t){if(!e)return t;if(!t)return e;const n=kn(Object.create(null),e);for(const r in t)n[r]=qn(e[r],t[r]);return n}function RR(e,t,n,r=!1){const o={},i={};Oc(i,Ed,1),e.propsDefaults=Object.create(null),Pw(e,t,o,i);for(const l in e.propsOptions[0])l in o||(o[l]=void 0);n?e.props=r?o:ow(o):e.type.props?e.props=o:e.props=i,e.attrs=i}function LR(e,t,n,r){const{props:o,attrs:i,vnode:{patchFlag:l}}=e,a=He(o),[c]=e.propsOptions;let d=!1;if((r||l>0)&&!(l&16)){if(l&8){const p=e.vnode.dynamicProps;for(let h=0;h<p.length;h++){let v=p[h];if(yd(e.emitsOptions,v))continue;const y=t[v];if(c)if(Et(i,v))y!==i[v]&&(i[v]=y,d=!0);else{const b=so(v);o[b]=_h(c,a,b,y,e,!1)}else y!==i[v]&&(i[v]=y,d=!0)}}}else{Pw(e,t,o,i)&&(d=!0);let p;for(const h in a)(!t||!Et(t,h)&&((p=ud(h))===h||!Et(t,p)))&&(c?n&&(n[h]!==void 0||n[p]!==void 0)&&(o[h]=_h(c,a,h,void 0,e,!0)):delete o[h]);if(i!==a)for(const h in i)(!t||!Et(t,h))&&(delete i[h],d=!0)}d&&Ko(e,"set","$attrs")}function Pw(e,t,n,r){const[o,i]=e.propsOptions;let l=!1,a;if(t)for(let c in t){if(Kl(c))continue;const d=t[c];let p;o&&Et(o,p=so(c))?!i||!i.includes(p)?n[p]=d:(a||(a={}))[p]=d:yd(e.emitsOptions,c)||(!(c in r)||d!==r[c])&&(r[c]=d,l=!0)}if(i){const c=He(n),d=a||jt;for(let p=0;p<i.length;p++){const h=i[p];n[h]=_h(o,c,h,d[h],e,!Et(d,h))}}return l}function _h(e,t,n,r,o,i){const l=e[n];if(l!=null){const a=Et(l,"default");if(a&&r===void 0){const c=l.default;if(l.type!==Function&&nt(c)){const{propsDefaults:d}=o;n in d?r=d[n]:(Ss(o),r=d[n]=c.call(null,t),ys())}else r=c}l[0]&&(i&&!a?r=!1:l[1]&&(r===""||r===ud(n))&&(r=!0))}return r}function Rw(e,t,n=!1){const r=t.propsCache,o=r.get(e);if(o)return o;const i=e.props,l={},a=[];let c=!1;if(!nt(e)){const p=h=>{c=!0;const[v,y]=Rw(h,t,!0);kn(l,v),y&&a.push(...y)};!n&&t.mixins.length&&t.mixins.forEach(p),e.extends&&p(e.extends),e.mixins&&e.mixins.forEach(p)}if(!i&&!c)return Kt(e)&&r.set(e,Ui),Ui;if(Je(i))for(let p=0;p<i.length;p++){const h=so(i[p]);I1(h)&&(l[h]=jt)}else if(i)for(const p in i){const h=so(p);if(I1(h)){const v=i[p],y=l[h]=Je(v)||nt(v)?{type:v}:Object.assign({},v);if(y){const b=L1(Boolean,y.type),S=L1(String,y.type);y[0]=b>-1,y[1]=S<0||b<S,(b>-1||Et(y,"default"))&&a.push(h)}}}const d=[l,a];return Kt(e)&&r.set(e,d),d}function I1(e){return e[0]!=="$"}function P1(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function R1(e,t){return P1(e)===P1(t)}function L1(e,t){return Je(t)?t.findIndex(n=>R1(n,e)):nt(t)&&R1(t,e)?0:-1}const Lw=e=>e[0]==="_"||e==="$stable",Um=e=>Je(e)?e.map(vr):[vr(e)],FR=(e,t,n)=>{if(t._n)return t;const r=_e((...o)=>Um(t(...o)),n);return r._c=!1,r},Fw=(e,t,n)=>{const r=e._ctx;for(const o in e){if(Lw(o))continue;const i=e[o];if(nt(i))t[o]=FR(o,i,r);else if(i!=null){const l=Um(i);t[o]=()=>l}}},Nw=(e,t)=>{const n=Um(t);e.slots.default=()=>n},NR=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=He(t),Oc(t,"_",n)):Fw(t,e.slots={})}else e.slots={},t&&Nw(e,t);Oc(e.slots,Ed,1)},MR=(e,t,n)=>{const{vnode:r,slots:o}=e;let i=!0,l=jt;if(r.shapeFlag&32){const a=t._;a?n&&a===1?i=!1:(kn(o,t),!n&&a===1&&delete o._):(i=!t.$stable,Fw(t,o)),l=t}else t&&(Nw(e,t),l={default:1});if(i)for(const a in o)!Lw(a)&&!(a in l)&&delete o[a]};function Mw(){return{app:null,config:{isNativeTag:tP,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}}let DR=0;function UR(e,t){return function(r,o=null){nt(r)||(r=Object.assign({},r)),o!=null&&!Kt(o)&&(o=null);const i=Mw(),l=new Set;let a=!1;const c=i.app={_uid:DR++,_component:r,_props:o,_container:null,_context:i,_instance:null,version:s2,get config(){return i.config},set config(d){},use(d,...p){return l.has(d)||(d&&nt(d.install)?(l.add(d),d.install(c,...p)):nt(d)&&(l.add(d),d(c,...p))),c},mixin(d){return i.mixins.includes(d)||i.mixins.push(d),c},component(d,p){return p?(i.components[d]=p,c):i.components[d]},directive(d,p){return p?(i.directives[d]=p,c):i.directives[d]},mount(d,p,h){if(!a){const v=z(r,o);return v.appContext=i,p&&t?t(v,d):e(v,d,h),a=!0,c._container=d,d.__vue_app__=c,$d(v.component)||v.component.proxy}},unmount(){a&&(e(null,c._container),delete c._container.__vue_app__)},provide(d,p){return i.provides[d]=p,c}};return c}}function Pc(e,t,n,r,o=!1){if(Je(e)){e.forEach((v,y)=>Pc(v,t&&(Je(t)?t[y]:t),n,r,o));return}if(ei(r)&&!o)return;const i=r.shapeFlag&4?$d(r.component)||r.component.proxy:r.el,l=o?null:i,{i:a,r:c}=e,d=t&&t.r,p=a.refs===jt?a.refs={}:a.refs,h=a.setupState;if(d!=null&&d!==c&&(ln(d)?(p[d]=null,Et(h,d)&&(h[d]=null)):pn(d)&&(d.value=null)),nt(c))zo(c,a,12,[l,p]);else{const v=ln(c),y=pn(c);if(v||y){const b=()=>{if(e.f){const S=v?Et(h,c)?h[c]:p[c]:c.value;o?Je(S)&&gm(S,i):Je(S)?S.includes(i)||S.push(i):v?(p[c]=[i],Et(h,c)&&(h[c]=p[c])):(c.value=[i],e.k&&(p[e.k]=c.value))}else v?(p[c]=l,Et(h,c)&&(h[c]=l)):y&&(c.value=l,e.k&&(p[e.k]=l))};l?(b.id=-1,Cn(b,n)):b()}}}let as=!1;const Zu=e=>/svg/.test(e.namespaceURI)&&e.tagName!=="foreignObject",Qu=e=>e.nodeType===8;function BR(e){const{mt:t,p:n,o:{patchProp:r,createText:o,nextSibling:i,parentNode:l,remove:a,insert:c,createComment:d}}=e,p=(C,w)=>{if(!w.hasChildNodes()){n(null,C,w),kc(),w._vnode=C;return}as=!1,h(w.firstChild,C,null,null,null),kc(),w._vnode=C,as&&console.error("Hydration completed but contains mismatches.")},h=(C,w,E,O,$,P=!1)=>{const R=Qu(C)&&C.data==="[",k=()=>S(C,w,E,O,$,R),{type:W,ref:U,shapeFlag:j,patchFlag:G}=w;let X=C.nodeType;w.el=C,G===-2&&(P=!1,w.dynamicChildren=null);let ne=null;switch(W){case ui:X!==3?w.children===""?(c(w.el=o(""),l(C),C),ne=C):ne=k():(C.data!==w.children&&(as=!0,C.data=w.children),ne=i(C));break;case Un:X!==8||R?ne=k():ne=i(C);break;case ti:if(R&&(C=i(C),X=C.nodeType),X===1||X===3){ne=C;const xe=!w.children.length;for(let Ee=0;Ee<w.staticCount;Ee++)xe&&(w.children+=ne.nodeType===1?ne.outerHTML:ne.data),Ee===w.staticCount-1&&(w.anchor=ne),ne=i(ne);return R?i(ne):ne}else k();break;case Me:R?ne=b(C,w,E,O,$,P):ne=k();break;default:if(j&1)X!==1||w.type.toLowerCase()!==C.tagName.toLowerCase()?ne=k():ne=v(C,w,E,O,$,P);else if(j&6){w.slotScopeIds=$;const xe=l(C);if(t(w,xe,null,E,O,Zu(xe),P),ne=R?T(C):i(C),ne&&Qu(ne)&&ne.data==="teleport end"&&(ne=i(ne)),ei(w)){let Ee;R?(Ee=z(Me),Ee.anchor=ne?ne.previousSibling:xe.lastChild):Ee=C.nodeType===3?Be(""):z("div"),Ee.el=C,w.component.subTree=Ee}}else j&64?X!==8?ne=k():ne=w.type.hydrate(C,w,E,O,$,P,e,y):j&128&&(ne=w.type.hydrate(C,w,E,O,Zu(l(C)),$,P,e,h))}return U!=null&&Pc(U,null,O,w),ne},v=(C,w,E,O,$,P)=>{P=P||!!w.dynamicChildren;const{type:R,props:k,patchFlag:W,shapeFlag:U,dirs:j}=w,G=R==="input"&&j||R==="option";if(G||W!==-1){if(j&&bo(w,null,E,"created"),k)if(G||!P||W&48)for(const ne in k)(G&&ne.endsWith("value")||ld(ne)&&!Kl(ne))&&r(C,ne,null,k[ne],!1,void 0,E);else k.onClick&&r(C,"onClick",null,k.onClick,!1,void 0,E);let X;if((X=k&&k.onVnodeBeforeMount)&&Qn(X,E,w),j&&bo(w,null,E,"beforeMount"),((X=k&&k.onVnodeMounted)||j)&&hw(()=>{X&&Qn(X,E,w),j&&bo(w,null,E,"mounted")},O),U&16&&!(k&&(k.innerHTML||k.textContent))){let ne=y(C.firstChild,w,C,E,O,$,P);for(;ne;){as=!0;const xe=ne;ne=ne.nextSibling,a(xe)}}else U&8&&C.textContent!==w.children&&(as=!0,C.textContent=w.children)}return C.nextSibling},y=(C,w,E,O,$,P,R)=>{R=R||!!w.dynamicChildren;const k=w.children,W=k.length;for(let U=0;U<W;U++){const j=R?k[U]:k[U]=vr(k[U]);if(C)C=h(C,j,O,$,P,R);else{if(j.type===ui&&!j.children)continue;as=!0,n(null,j,E,null,O,$,Zu(E),P)}}return C},b=(C,w,E,O,$,P)=>{const{slotScopeIds:R}=w;R&&($=$?$.concat(R):R);const k=l(C),W=y(i(C),w,k,E,O,$,P);return W&&Qu(W)&&W.data==="]"?i(w.anchor=W):(as=!0,c(w.anchor=d("]"),k,W),W)},S=(C,w,E,O,$,P)=>{if(as=!0,w.el=null,P){const W=T(C);for(;;){const U=i(C);if(U&&U!==W)a(U);else break}}const R=i(C),k=l(C);return a(C),n(null,w,k,R,E,O,Zu(k),$),R},T=C=>{let w=0;for(;C;)if(C=i(C),C&&Qu(C)&&(C.data==="["&&w++,C.data==="]")){if(w===0)return i(C);w--}return C};return[p,h]}const Cn=hw;function Dw(e){return Bw(e)}function Uw(e){return Bw(e,BR)}function Bw(e,t){const n=cP();n.__VUE__=!0;const{insert:r,remove:o,patchProp:i,createElement:l,createText:a,createComment:c,setText:d,setElementText:p,parentNode:h,nextSibling:v,setScopeId:y=So,insertStaticContent:b}=e,S=(M,V,Z,ue=null,le=null,ye=null,Oe=!1,we=null,Se=!!V.dynamicChildren)=>{if(M===V)return;M&&!Qr(M,V)&&(ue=We(M),Xe(M,le,ye,!0),M=null),V.patchFlag===-2&&(Se=!1,V.dynamicChildren=null);const{type:ae,ref:Fe,shapeFlag:Pe}=V;switch(ae){case ui:T(M,V,Z,ue);break;case Un:C(M,V,Z,ue);break;case ti:M==null&&w(V,Z,ue,Oe);break;case Me:G(M,V,Z,ue,le,ye,Oe,we,Se);break;default:Pe&1?$(M,V,Z,ue,le,ye,Oe,we,Se):Pe&6?X(M,V,Z,ue,le,ye,Oe,we,Se):(Pe&64||Pe&128)&&ae.process(M,V,Z,ue,le,ye,Oe,we,Se,rt)}Fe!=null&&le&&Pc(Fe,M&&M.ref,ye,V||M,!V)},T=(M,V,Z,ue)=>{if(M==null)r(V.el=a(V.children),Z,ue);else{const le=V.el=M.el;V.children!==M.children&&d(le,V.children)}},C=(M,V,Z,ue)=>{M==null?r(V.el=c(V.children||""),Z,ue):V.el=M.el},w=(M,V,Z,ue)=>{[M.el,M.anchor]=b(M.children,V,Z,ue,M.el,M.anchor)},E=({el:M,anchor:V},Z,ue)=>{let le;for(;M&&M!==V;)le=v(M),r(M,Z,ue),M=le;r(V,Z,ue)},O=({el:M,anchor:V})=>{let Z;for(;M&&M!==V;)Z=v(M),o(M),M=Z;o(V)},$=(M,V,Z,ue,le,ye,Oe,we,Se)=>{Oe=Oe||V.type==="svg",M==null?P(V,Z,ue,le,ye,Oe,we,Se):W(M,V,le,ye,Oe,we,Se)},P=(M,V,Z,ue,le,ye,Oe,we)=>{let Se,ae;const{type:Fe,props:Pe,shapeFlag:je,transition:ze,dirs:st}=M;if(Se=M.el=l(M.type,ye,Pe&&Pe.is,Pe),je&8?p(Se,M.children):je&16&&k(M.children,Se,null,ue,le,ye&&Fe!=="foreignObject",Oe,we),st&&bo(M,null,ue,"created"),R(Se,M,M.scopeId,Oe,ue),Pe){for(const ft in Pe)ft!=="value"&&!Kl(ft)&&i(Se,ft,null,Pe[ft],ye,M.children,ue,le,Ce);"value"in Pe&&i(Se,"value",null,Pe.value),(ae=Pe.onVnodeBeforeMount)&&Qn(ae,ue,M)}st&&bo(M,null,ue,"beforeMount");const yt=(!le||le&&!le.pendingBranch)&&ze&&!ze.persisted;yt&&ze.beforeEnter(Se),r(Se,V,Z),((ae=Pe&&Pe.onVnodeMounted)||yt||st)&&Cn(()=>{ae&&Qn(ae,ue,M),yt&&ze.enter(Se),st&&bo(M,null,ue,"mounted")},le)},R=(M,V,Z,ue,le)=>{if(Z&&y(M,Z),ue)for(let ye=0;ye<ue.length;ye++)y(M,ue[ye]);if(le){let ye=le.subTree;if(V===ye){const Oe=le.vnode;R(M,Oe,Oe.scopeId,Oe.slotScopeIds,le.parent)}}},k=(M,V,Z,ue,le,ye,Oe,we,Se=0)=>{for(let ae=Se;ae<M.length;ae++){const Fe=M[ae]=we?ps(M[ae]):vr(M[ae]);S(null,Fe,V,Z,ue,le,ye,Oe,we)}},W=(M,V,Z,ue,le,ye,Oe)=>{const we=V.el=M.el;let{patchFlag:Se,dynamicChildren:ae,dirs:Fe}=V;Se|=M.patchFlag&16;const Pe=M.props||jt,je=V.props||jt;let ze;Z&&Bs(Z,!1),(ze=je.onVnodeBeforeUpdate)&&Qn(ze,Z,V,M),Fe&&bo(V,M,Z,"beforeUpdate"),Z&&Bs(Z,!0);const st=le&&V.type!=="foreignObject";if(ae?U(M.dynamicChildren,ae,we,Z,ue,st,ye):Oe||Ie(M,V,we,null,Z,ue,st,ye,!1),Se>0){if(Se&16)j(we,V,Pe,je,Z,ue,le);else if(Se&2&&Pe.class!==je.class&&i(we,"class",null,je.class,le),Se&4&&i(we,"style",Pe.style,je.style,le),Se&8){const yt=V.dynamicProps;for(let ft=0;ft<yt.length;ft++){const Ht=yt[ft],Vn=Pe[Ht],mo=je[Ht];(mo!==Vn||Ht==="value")&&i(we,Ht,Vn,mo,le,M.children,Z,ue,Ce)}}Se&1&&M.children!==V.children&&p(we,V.children)}else!Oe&&ae==null&&j(we,V,Pe,je,Z,ue,le);((ze=je.onVnodeUpdated)||Fe)&&Cn(()=>{ze&&Qn(ze,Z,V,M),Fe&&bo(V,M,Z,"updated")},ue)},U=(M,V,Z,ue,le,ye,Oe)=>{for(let we=0;we<V.length;we++){const Se=M[we],ae=V[we],Fe=Se.el&&(Se.type===Me||!Qr(Se,ae)||Se.shapeFlag&70)?h(Se.el):Z;S(Se,ae,Fe,null,ue,le,ye,Oe,!0)}},j=(M,V,Z,ue,le,ye,Oe)=>{if(Z!==ue){if(Z!==jt)for(const we in Z)!Kl(we)&&!(we in ue)&&i(M,we,Z[we],null,Oe,V.children,le,ye,Ce);for(const we in ue){if(Kl(we))continue;const Se=ue[we],ae=Z[we];Se!==ae&&we!=="value"&&i(M,we,ae,Se,Oe,V.children,le,ye,Ce)}"value"in ue&&i(M,"value",Z.value,ue.value)}},G=(M,V,Z,ue,le,ye,Oe,we,Se)=>{const ae=V.el=M?M.el:a(""),Fe=V.anchor=M?M.anchor:a("");let{patchFlag:Pe,dynamicChildren:je,slotScopeIds:ze}=V;ze&&(we=we?we.concat(ze):ze),M==null?(r(ae,Z,ue),r(Fe,Z,ue),k(V.children,Z,Fe,le,ye,Oe,we,Se)):Pe>0&&Pe&64&&je&&M.dynamicChildren?(U(M.dynamicChildren,je,Z,le,ye,Oe,we),(V.key!=null||le&&V===le.subTree)&&Bm(M,V,!0)):Ie(M,V,Z,Fe,le,ye,Oe,we,Se)},X=(M,V,Z,ue,le,ye,Oe,we,Se)=>{V.slotScopeIds=we,M==null?V.shapeFlag&512?le.ctx.activate(V,Z,ue,Oe,Se):ne(V,Z,ue,le,ye,Oe,Se):xe(M,V,Se)},ne=(M,V,Z,ue,le,ye,Oe)=>{const we=M.component=Gw(M,ue,le);if(Na(M)&&(we.ctx.renderer=rt),Yw(we),we.asyncDep){if(le&&le.registerDep(we,Ee),!M.el){const Se=we.subTree=z(Un);C(null,Se,V,Z)}return}Ee(we,M,V,Z,le,ye,Oe)},xe=(M,V,Z)=>{const ue=V.component=M.component;if(uR(M,V,Z))if(ue.asyncDep&&!ue.asyncResolved){ke(ue,V,Z);return}else ue.next=V,eR(ue.update),ue.update();else V.el=M.el,ue.vnode=V},Ee=(M,V,Z,ue,le,ye,Oe)=>{const we=()=>{if(M.isMounted){let{next:Fe,bu:Pe,u:je,parent:ze,vnode:st}=M,yt=Fe,ft;Bs(M,!1),Fe?(Fe.el=st.el,ke(M,Fe,Oe)):Fe=st,Pe&&Xl(Pe),(ft=Fe.props&&Fe.props.onVnodeBeforeUpdate)&&Qn(ft,ze,Fe,st),Bs(M,!0);const Ht=mc(M),Vn=M.subTree;M.subTree=Ht,S(Vn,Ht,h(Vn.el),We(Vn),M,le,ye),Fe.el=Ht.el,yt===null&&Pm(M,Ht.el),je&&Cn(je,le),(ft=Fe.props&&Fe.props.onVnodeUpdated)&&Cn(()=>Qn(ft,ze,Fe,st),le)}else{let Fe;const{el:Pe,props:je}=V,{bm:ze,m:st,parent:yt}=M,ft=ei(V);if(Bs(M,!1),ze&&Xl(ze),!ft&&(Fe=je&&je.onVnodeBeforeMount)&&Qn(Fe,yt,V),Bs(M,!0),Pe&&an){const Ht=()=>{M.subTree=mc(M),an(Pe,M.subTree,M,le,null)};ft?V.type.__asyncLoader().then(()=>!M.isUnmounted&&Ht()):Ht()}else{const Ht=M.subTree=mc(M);S(null,Ht,Z,ue,M,le,ye),V.el=Ht.el}if(st&&Cn(st,le),!ft&&(Fe=je&&je.onVnodeMounted)){const Ht=V;Cn(()=>Qn(Fe,yt,Ht),le)}(V.shapeFlag&256||yt&&ei(yt.vnode)&&yt.vnode.shapeFlag&256)&&M.a&&Cn(M.a,le),M.isMounted=!0,V=Z=ue=null}},Se=M.effect=new La(we,()=>vd(ae),M.scope),ae=M.update=()=>Se.run();ae.id=M.uid,Bs(M,!0),ae()},ke=(M,V,Z)=>{V.component=M;const ue=M.vnode.props;M.vnode=V,M.next=null,LR(M,V.props,ue,Z),MR(M,V.children,Z),cl(),$1(),dl()},Ie=(M,V,Z,ue,le,ye,Oe,we,Se=!1)=>{const ae=M&&M.children,Fe=M?M.shapeFlag:0,Pe=V.children,{patchFlag:je,shapeFlag:ze}=V;if(je>0){if(je&128){ht(ae,Pe,Z,ue,le,ye,Oe,we,Se);return}else if(je&256){Qe(ae,Pe,Z,ue,le,ye,Oe,we,Se);return}}ze&8?(Fe&16&&Ce(ae,le,ye),Pe!==ae&&p(Z,Pe)):Fe&16?ze&16?ht(ae,Pe,Z,ue,le,ye,Oe,we,Se):Ce(ae,le,ye,!0):(Fe&8&&p(Z,""),ze&16&&k(Pe,Z,ue,le,ye,Oe,we,Se))},Qe=(M,V,Z,ue,le,ye,Oe,we,Se)=>{M=M||Ui,V=V||Ui;const ae=M.length,Fe=V.length,Pe=Math.min(ae,Fe);let je;for(je=0;je<Pe;je++){const ze=V[je]=Se?ps(V[je]):vr(V[je]);S(M[je],ze,Z,null,le,ye,Oe,we,Se)}ae>Fe?Ce(M,le,ye,!0,!1,Pe):k(V,Z,ue,le,ye,Oe,we,Se,Pe)},ht=(M,V,Z,ue,le,ye,Oe,we,Se)=>{let ae=0;const Fe=V.length;let Pe=M.length-1,je=Fe-1;for(;ae<=Pe&&ae<=je;){const ze=M[ae],st=V[ae]=Se?ps(V[ae]):vr(V[ae]);if(Qr(ze,st))S(ze,st,Z,null,le,ye,Oe,we,Se);else break;ae++}for(;ae<=Pe&&ae<=je;){const ze=M[Pe],st=V[je]=Se?ps(V[je]):vr(V[je]);if(Qr(ze,st))S(ze,st,Z,null,le,ye,Oe,we,Se);else break;Pe--,je--}if(ae>Pe){if(ae<=je){const ze=je+1,st=ze<Fe?V[ze].el:ue;for(;ae<=je;)S(null,V[ae]=Se?ps(V[ae]):vr(V[ae]),Z,st,le,ye,Oe,we,Se),ae++}}else if(ae>je)for(;ae<=Pe;)Xe(M[ae],le,ye,!0),ae++;else{const ze=ae,st=ae,yt=new Map;for(ae=st;ae<=je;ae++){const Sn=V[ae]=Se?ps(V[ae]):vr(V[ae]);Sn.key!=null&&yt.set(Sn.key,ae)}let ft,Ht=0;const Vn=je-st+1;let mo=!1,_i=0;const Oo=new Array(Vn);for(ae=0;ae<Vn;ae++)Oo[ae]=0;for(ae=ze;ae<=Pe;ae++){const Sn=M[ae];if(Ht>=Vn){Xe(Sn,le,ye,!0);continue}let Gn;if(Sn.key!=null)Gn=yt.get(Sn.key);else for(ft=st;ft<=je;ft++)if(Oo[ft-st]===0&&Qr(Sn,V[ft])){Gn=ft;break}Gn===void 0?Xe(Sn,le,ye,!0):(Oo[Gn-st]=ae+1,Gn>=_i?_i=Gn:mo=!0,S(Sn,V[Gn],Z,null,le,ye,Oe,we,Se),Ht++)}const bi=mo?jR(Oo):Ui;for(ft=bi.length-1,ae=Vn-1;ae>=0;ae--){const Sn=st+ae,Gn=V[Sn],wi=Sn+1<Fe?V[Sn+1].el:ue;Oo[ae]===0?S(null,Gn,Z,wi,le,ye,Oe,we,Se):mo&&(ft<0||ae!==bi[ft]?De(Gn,Z,wi,2):ft--)}}},De=(M,V,Z,ue,le=null)=>{const{el:ye,type:Oe,transition:we,children:Se,shapeFlag:ae}=M;if(ae&6){De(M.component.subTree,V,Z,ue);return}if(ae&128){M.suspense.move(V,Z,ue);return}if(ae&64){Oe.move(M,V,Z,rt);return}if(Oe===Me){r(ye,V,Z);for(let Pe=0;Pe<Se.length;Pe++)De(Se[Pe],V,Z,ue);r(M.anchor,V,Z);return}if(Oe===ti){E(M,V,Z);return}if(ue!==2&&ae&1&&we)if(ue===0)we.beforeEnter(ye),r(ye,V,Z),Cn(()=>we.enter(ye),le);else{const{leave:Pe,delayLeave:je,afterLeave:ze}=we,st=()=>r(ye,V,Z),yt=()=>{Pe(ye,()=>{st(),ze&&ze()})};je?je(ye,st,yt):yt()}else r(ye,V,Z)},Xe=(M,V,Z,ue=!1,le=!1)=>{const{type:ye,props:Oe,ref:we,children:Se,dynamicChildren:ae,shapeFlag:Fe,patchFlag:Pe,dirs:je}=M;if(we!=null&&Pc(we,null,Z,M,!0),Fe&256){V.ctx.deactivate(M);return}const ze=Fe&1&&je,st=!ei(M);let yt;if(st&&(yt=Oe&&Oe.onVnodeBeforeUnmount)&&Qn(yt,V,M),Fe&6)ve(M.component,Z,ue);else{if(Fe&128){M.suspense.unmount(Z,ue);return}ze&&bo(M,null,V,"beforeUnmount"),Fe&64?M.type.remove(M,V,Z,le,rt,ue):ae&&(ye!==Me||Pe>0&&Pe&64)?Ce(ae,V,Z,!1,!0):(ye===Me&&Pe&384||!le&&Fe&16)&&Ce(Se,V,Z),ue&&Q(M)}(st&&(yt=Oe&&Oe.onVnodeUnmounted)||ze)&&Cn(()=>{yt&&Qn(yt,V,M),ze&&bo(M,null,V,"unmounted")},Z)},Q=M=>{const{type:V,el:Z,anchor:ue,transition:le}=M;if(V===Me){ce(Z,ue);return}if(V===ti){O(M);return}const ye=()=>{o(Z),le&&!le.persisted&&le.afterLeave&&le.afterLeave()};if(M.shapeFlag&1&&le&&!le.persisted){const{leave:Oe,delayLeave:we}=le,Se=()=>Oe(Z,ye);we?we(M.el,ye,Se):Se()}else ye()},ce=(M,V)=>{let Z;for(;M!==V;)Z=v(M),o(M),M=Z;o(V)},ve=(M,V,Z)=>{const{bum:ue,scope:le,update:ye,subTree:Oe,um:we}=M;ue&&Xl(ue),le.stop(),ye&&(ye.active=!1,Xe(Oe,M,V,Z)),we&&Cn(we,V),Cn(()=>{M.isUnmounted=!0},V),V&&V.pendingBranch&&!V.isUnmounted&&M.asyncDep&&!M.asyncResolved&&M.suspenseId===V.pendingId&&(V.deps--,V.deps===0&&V.resolve())},Ce=(M,V,Z,ue=!1,le=!1,ye=0)=>{for(let Oe=ye;Oe<M.length;Oe++)Xe(M[Oe],V,Z,ue,le)},We=M=>M.shapeFlag&6?We(M.component.subTree):M.shapeFlag&128?M.suspense.next():v(M.anchor||M.el),Ve=(M,V,Z)=>{M==null?V._vnode&&Xe(V._vnode,null,null,!0):S(V._vnode||null,M,V,null,null,null,Z),$1(),kc(),V._vnode=M},rt={p:S,um:Xe,m:De,r:Q,mt:ne,mc:k,pc:Ie,pbc:U,n:We,o:e};let wn,an;return t&&([wn,an]=t(rt)),{render:Ve,hydrate:wn,createApp:UR(Ve,wn)}}function Bs({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Bm(e,t,n=!1){const r=e.children,o=t.children;if(Je(r)&&Je(o))for(let i=0;i<r.length;i++){const l=r[i];let a=o[i];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=o[i]=ps(o[i]),a.el=l.el),n||Bm(l,a)),a.type===ui&&(a.el=l.el)}}function jR(e){const t=e.slice(),n=[0];let r,o,i,l,a;const c=e.length;for(r=0;r<c;r++){const d=e[r];if(d!==0){if(o=n[n.length-1],e[o]<d){t[r]=o,n.push(r);continue}for(i=0,l=n.length-1;i<l;)a=i+l>>1,e[n[a]]<d?i=a+1:l=a;d<e[n[i]]&&(i>0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,l=n[i-1];i-- >0;)n[i]=l,l=t[l];return n}const VR=e=>e.__isTeleport,Jl=e=>e&&(e.disabled||e.disabled===""),F1=e=>typeof SVGElement<"u"&&e instanceof SVGElement,bh=(e,t)=>{const n=e&&e.to;return ln(n)?t?t(n):null:n},HR={__isTeleport:!0,process(e,t,n,r,o,i,l,a,c,d){const{mc:p,pc:h,pbc:v,o:{insert:y,querySelector:b,createText:S,createComment:T}}=d,C=Jl(t.props);let{shapeFlag:w,children:E,dynamicChildren:O}=t;if(e==null){const $=t.el=S(""),P=t.anchor=S("");y($,n,r),y(P,n,r);const R=t.target=bh(t.props,b),k=t.targetAnchor=S("");R&&(y(k,R),l=l||F1(R));const W=(U,j)=>{w&16&&p(E,U,j,o,i,l,a,c)};C?W(n,P):R&&W(R,k)}else{t.el=e.el;const $=t.anchor=e.anchor,P=t.target=e.target,R=t.targetAnchor=e.targetAnchor,k=Jl(e.props),W=k?n:P,U=k?$:R;if(l=l||F1(P),O?(v(e.dynamicChildren,O,W,o,i,l,a),Bm(e,t,!0)):c||h(e,t,W,U,o,i,l,a,!1),C)k||ec(t,n,$,d,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const j=t.target=bh(t.props,b);j&&ec(t,j,null,d,0)}else k&&ec(t,P,R,d,1)}Vw(t)},remove(e,t,n,r,{um:o,o:{remove:i}},l){const{shapeFlag:a,children:c,anchor:d,targetAnchor:p,target:h,props:v}=e;if(h&&i(p),(l||!Jl(v))&&(i(d),a&16))for(let y=0;y<c.length;y++){const b=c[y];o(b,t,n,!0,!!b.dynamicChildren)}},move:ec,hydrate:zR};function ec(e,t,n,{o:{insert:r},m:o},i=2){i===0&&r(e.targetAnchor,t,n);const{el:l,anchor:a,shapeFlag:c,children:d,props:p}=e,h=i===2;if(h&&r(l,t,n),(!h||Jl(p))&&c&16)for(let v=0;v<d.length;v++)o(d[v],t,n,2);h&&r(a,t,n)}function zR(e,t,n,r,o,i,{o:{nextSibling:l,parentNode:a,querySelector:c}},d){const p=t.target=bh(t.props,c);if(p){const h=p._lpa||p.firstChild;if(t.shapeFlag&16)if(Jl(t.props))t.anchor=d(l(e),t,a(e),n,r,o,i),t.targetAnchor=h;else{t.anchor=l(e);let v=h;for(;v;)if(v=l(v),v&&v.nodeType===8&&v.data==="teleport anchor"){t.targetAnchor=v,p._lpa=t.targetAnchor&&l(t.targetAnchor);break}d(h,t,p,n,r,o,i)}Vw(t)}return t.anchor&&l(t.anchor)}const jw=HR;function Vw(e){const t=e.ctx;if(t&&t.ut){let n=e.children[0].el;for(;n!==e.targetAnchor;)n.nodeType===1&&n.setAttribute("data-v-owner",t.uid),n=n.nextSibling;t.ut()}}const Me=Symbol(void 0),ui=Symbol(void 0),Un=Symbol(void 0),ti=Symbol(void 0),Zl=[];let er=null;function I(e=!1){Zl.push(er=e?null:[])}function Hw(){Zl.pop(),er=Zl[Zl.length-1]||null}let ci=1;function wh(e){ci+=e}function zw(e){return e.dynamicChildren=ci>0?er||Ui:null,Hw(),ci>0&&er&&er.push(e),e}function F(e,t,n,r,o,i){return zw(m(e,t,n,r,o,i,!0))}function Ye(e,t,n,r,o){return zw(z(e,t,n,r,o,!0))}function ws(e){return e?e.__v_isVNode===!0:!1}function Qr(e,t){return e.type===t.type&&e.key===t.key}function WR(e){}const Ed="__vInternal",Ww=({key:e})=>e??null,gc=({ref:e,ref_key:t,ref_for:n})=>e!=null?ln(e)||pn(e)||nt(e)?{i:An,r:e,k:t,f:!!n}:e:null;function m(e,t=null,n=null,r=0,o=null,i=e===Me?0:1,l=!1,a=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ww(t),ref:t&&gc(t),scopeId:_d,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:An};return a?(jm(c,n),i&128&&e.normalize(c)):n&&(c.shapeFlag|=ln(n)?8:16),ci>0&&!l&&er&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&&er.push(c),c}const z=qR;function qR(e,t=null,n=null,r=0,o=null,i=!1){if((!e||e===Ow)&&(e=Un),ws(e)){const a=jr(e,t,!0);return n&&jm(a,n),ci>0&&!i&&er&&(a.shapeFlag&6?er[er.indexOf(e)]=a:er.push(a)),a.patchFlag|=-2,a}if(QR(e)&&(e=e.__vccOpts),t){t=qw(t);let{class:a,style:c}=t;a&&!ln(a)&&(t.class=gt(a)),Kt(c)&&($m(c)&&!Je(c)&&(c=kn({},c)),t.style=oo(c))}const l=ln(e)?1:pw(e)?128:VR(e)?64:Kt(e)?4:nt(e)?2:0;return m(e,t,n,r,o,l,i,!0)}function qw(e){return e?$m(e)||Ed in e?kn({},e):e:null}function jr(e,t,n=!1){const{props:r,ref:o,patchFlag:i,children:l}=e,a=t?Kw(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&Ww(a),ref:t&&t.ref?n&&o?Je(o)?o.concat(gc(t)):[o,gc(t)]:gc(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Me?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&jr(e.ssContent),ssFallback:e.ssFallback&&jr(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Be(e=" ",t=0){return z(ui,null,e,t)}function KR(e,t){const n=z(ti,null,e);return n.staticCount=t,n}function Te(e="",t=!1){return t?(I(),Ye(Un,null,e)):z(Un,null,e)}function vr(e){return e==null||typeof e=="boolean"?z(Un):Je(e)?z(Me,null,e.slice()):typeof e=="object"?ps(e):z(ui,null,String(e))}function ps(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:jr(e)}function jm(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Je(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),jm(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(Ed in t)?t._ctx=An:o===3&&An&&(An.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else nt(t)?(t={default:t,_ctx:An},n=32):(t=String(t),r&64?(n=16,t=[Be(t)]):n=8);e.children=t,e.shapeFlag|=n}function Kw(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const o in r)if(o==="class")t.class!==r.class&&(t.class=gt([t.class,r.class]));else if(o==="style")t.style=oo([t.style,r.style]);else if(ld(o)){const i=t[o],l=r[o];l&&i!==l&&!(Je(i)&&i.includes(l))&&(t[o]=i?[].concat(i,l):l)}else o!==""&&(t[o]=r[o])}return t}function Qn(e,t,n,r=null){br(e,t,7,[n,r])}const GR=Mw();let XR=0;function Gw(e,t,n){const r=e.type,o=(t?t.appContext:e.appContext)||GR,i={uid:XR++,vnode:e,type:r,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,scope:new bm(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Rw(r,o),emitsOptions:fw(r,o),emit:null,emitted:null,propsDefaults:jt,inheritAttrs:r.inheritAttrs,ctx:jt,data:jt,props:jt,attrs:jt,slots:jt,refs:jt,setupState:jt,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 i.ctx={_:i},i.root=t?t.root:i,i.emit=nR.bind(null,i),e.ce&&e.ce(i),i}let Jt=null;const Jo=()=>Jt||An,Ss=e=>{Jt=e,e.scope.on()},ys=()=>{Jt&&Jt.scope.off(),Jt=null};function Xw(e){return e.vnode.shapeFlag&4}let Gi=!1;function Yw(e,t=!1){Gi=t;const{props:n,children:r}=e.vnode,o=Xw(e);RR(e,n,o,t),NR(e,r);const i=o?YR(e,t):void 0;return Gi=!1,i}function YR(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=xm(new Proxy(e.ctx,gh));const{setup:r}=n;if(r){const o=e.setupContext=r.length>1?Qw(e):null;Ss(e),cl();const i=zo(r,e,0,[e.props,o]);if(dl(),ys(),ym(i)){if(i.then(ys,ys),t)return i.then(l=>{Sh(e,l,t)}).catch(l=>{pi(l,e,0)});e.asyncDep=i}else Sh(e,i,t)}else Zw(e,t)}function Sh(e,t,n){nt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Kt(t)&&(e.setupState=Om(t)),Zw(e,n)}let Rc,Eh;function Jw(e){Rc=e,Eh=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,CR))}}const JR=()=>!Rc;function Zw(e,t,n){const r=e.type;if(!e.render){if(!t&&Rc&&!r.render){const o=r.template||Dm(e).template;if(o){const{isCustomElement:i,compilerOptions:l}=e.appContext.config,{delimiters:a,compilerOptions:c}=r,d=kn(kn({isCustomElement:i,delimiters:a},l),c);r.render=Rc(o,d)}}e.render=r.render||So,Eh&&Eh(e)}Ss(e),cl(),OR(e),dl(),ys()}function ZR(e){return new Proxy(e.attrs,{get(t,n){return ir(e,"get","$attrs"),t[n]}})}function Qw(e){const t=r=>{e.exposed=r||{}};let n;return{get attrs(){return n||(n=ZR(e))},slots:e.slots,emit:e.emit,expose:t}}function $d(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Om(xm(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Yl)return Yl[n](e)},has(t,n){return n in t||n in Yl}}))}function $h(e,t=!0){return nt(e)?e.displayName||e.name:e.name||t&&e.__name}function QR(e){return nt(e)&&"__vccOpts"in e}const fe=(e,t)=>XP(e,t,Gi);function eL(){return null}function tL(){return null}function nL(e){}function rL(e,t){return null}function e2(){return t2().slots}function oL(){return t2().attrs}function t2(){const e=Jo();return e.setupContext||(e.setupContext=Qw(e))}function sL(e,t){const n=Je(e)?e.reduce((r,o)=>(r[o]={},r),{}):e;for(const r in t){const o=n[r];o?Je(o)||nt(o)?n[r]={type:o,default:t[r]}:o.default=t[r]:o===null&&(n[r]={default:t[r]})}return n}function iL(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function lL(e){const t=Jo();let n=e();return ys(),ym(n)&&(n=n.catch(r=>{throw Ss(t),r})),[n,()=>Ss(t)]}function pt(e,t,n){const r=arguments.length;return r===2?Kt(t)&&!Je(t)?ws(t)?z(e,null,[t]):z(e,t):z(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&ws(n)&&(n=[n]),z(e,t,n))}const n2=Symbol(""),r2=()=>Ft(n2);function aL(){}function uL(e,t,n,r){const o=n[r];if(o&&o2(o,e))return o;const i=t();return i.memo=e.slice(),n[r]=i}function o2(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r<n.length;r++)if(qi(n[r],t[r]))return!1;return ci>0&&er&&er.push(e),!0}const s2="3.2.47",cL={createComponentInstance:Gw,setupComponent:Yw,renderComponentRoot:mc,setCurrentRenderingInstance:ha,isVNode:ws,normalizeVNode:vr},dL=cL,fL=null,pL=null;function hL(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o<r.length;o++)n[r[o]]=!0;return o=>!!n[o]}const mL="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",gL=hL(mL);function i2(e){return!!e||e===""}function vL(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Es(e[r],t[r]);return n}function Es(e,t){if(e===t)return!0;let n=N1(e),r=N1(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=M1(e),r=M1(t),n||r)return e===t;if(n=lr(e),r=lr(t),n||r)return n&&r?vL(e,t):!1;if(n=xh(e),r=xh(t),n||r){if(!n||!r)return!1;const o=Object.keys(e).length,i=Object.keys(t).length;if(o!==i)return!1;for(const l in e){const a=e.hasOwnProperty(l),c=t.hasOwnProperty(l);if(a&&!c||!a&&c||!Es(e[l],t[l]))return!1}}return String(e)===String(t)}function xd(e,t){return e.findIndex(n=>Es(n,t))}const Rp={},yL=/^on[^a-z]/,_L=e=>yL.test(e),bL=e=>e.startsWith("onUpdate:"),Ma=Object.assign,lr=Array.isArray,Da=e=>a2(e)==="[object Set]",N1=e=>a2(e)==="[object Date]",l2=e=>typeof e=="function",ga=e=>typeof e=="string",M1=e=>typeof e=="symbol",xh=e=>e!==null&&typeof e=="object",wL=Object.prototype.toString,a2=e=>wL.call(e),Vm=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},SL=/-(\w)/g,Lp=Vm(e=>e.replace(SL,(t,n)=>n?n.toUpperCase():"")),EL=/\B([A-Z])/g,hs=Vm(e=>e.replace(EL,"-$1").toLowerCase()),$L=Vm(e=>e.charAt(0).toUpperCase()+e.slice(1)),xL=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Th=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Ch=e=>{const t=ga(e)?Number(e):NaN;return isNaN(t)?e:t},TL="http://www.w3.org/2000/svg",qs=typeof document<"u"?document:null,D1=qs&&qs.createElement("template"),CL={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t?qs.createElementNS(TL,e):qs.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>qs.createTextNode(e),createComment:e=>qs.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>qs.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,i){const l=n?n.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===i||!(o=o.nextSibling)););else{D1.innerHTML=r?`<svg>${e}</svg>`:e;const a=D1.content;if(r){const c=a.firstChild;for(;c.firstChild;)a.appendChild(c.firstChild);a.removeChild(c)}t.insertBefore(a,n)}return[l?l.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function OL(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function AL(e,t,n){const r=e.style,o=ga(n);if(n&&!o){if(t&&!ga(t))for(const i in t)n[i]==null&&Oh(r,i,"");for(const i in n)Oh(r,i,n[i])}else{const i=r.display;o?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=i)}}const U1=/\s*!important$/;function Oh(e,t,n){if(lr(n))n.forEach(r=>Oh(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=kL(e,t);U1.test(n)?e.setProperty(hs(r),n.replace(U1,""),"important"):e[r]=n}}const B1=["Webkit","Moz","ms"],Fp={};function kL(e,t){const n=Fp[t];if(n)return n;let r=so(t);if(r!=="filter"&&r in e)return Fp[t]=r;r=$L(r);for(let o=0;o<B1.length;o++){const i=B1[o]+r;if(i in e)return Fp[t]=i}return t}const j1="http://www.w3.org/1999/xlink";function IL(e,t,n,r,o){if(r&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(j1,t.slice(6,t.length)):e.setAttributeNS(j1,t,n);else{const i=gL(t);n==null||i&&!i2(n)?e.removeAttribute(t):e.setAttribute(t,i?"":n)}}function PL(e,t,n,r,o,i,l){if(t==="innerHTML"||t==="textContent"){r&&l(r,o,i),e[t]=n??"";return}if(t==="value"&&e.tagName!=="PROGRESS"&&!e.tagName.includes("-")){e._value=n;const c=n??"";(e.value!==c||e.tagName==="OPTION")&&(e.value=c),n==null&&e.removeAttribute(t);return}let a=!1;if(n===""||n==null){const c=typeof e[t];c==="boolean"?n=i2(n):n==null&&c==="string"?(n="",a=!0):c==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(t)}function jo(e,t,n,r){e.addEventListener(t,n,r)}function RL(e,t,n,r){e.removeEventListener(t,n,r)}function LL(e,t,n,r,o=null){const i=e._vei||(e._vei={}),l=i[t];if(r&&l)l.value=r;else{const[a,c]=FL(t);if(r){const d=i[t]=DL(r,o);jo(e,a,d,c)}else l&&(RL(e,a,l,c),i[t]=void 0)}}const V1=/(?:Once|Passive|Capture)$/;function FL(e){let t;if(V1.test(e)){t={};let r;for(;r=e.match(V1);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):hs(e.slice(2)),t]}let Np=0;const NL=Promise.resolve(),ML=()=>Np||(NL.then(()=>Np=0),Np=Date.now());function DL(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;br(UL(r,n.value),t,5,[r])};return n.value=e,n.attached=ML(),n}function UL(e,t){if(lr(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>o=>!o._stopped&&r&&r(o))}else return t}const H1=/^on[a-z]/,BL=(e,t,n,r,o=!1,i,l,a,c)=>{t==="class"?OL(e,r,o):t==="style"?AL(e,n,r):_L(t)?bL(t)||LL(e,t,n,r,l):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):jL(e,t,r,o))?PL(e,t,r,i,l,a,c):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),IL(e,t,r,o))};function jL(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&H1.test(t)&&l2(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||H1.test(t)&&ga(n)?!1:t in e}function u2(e,t){const n=ge(e);class r extends Td{constructor(i){super(n,i,t)}}return r.def=n,r}const VL=e=>u2(e,T2),HL=typeof HTMLElement<"u"?HTMLElement:class{};class Td extends HL{constructor(t,n={},r){super(),this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&r?r(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,sn(()=>{this._connected||(Ih(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let r=0;r<this.attributes.length;r++)this._setAttr(this.attributes[r].name);new MutationObserver(r=>{for(const o of r)this._setAttr(o.attributeName)}).observe(this,{attributes:!0});const t=(r,o=!1)=>{const{props:i,styles:l}=r;let a;if(i&&!lr(i))for(const c in i){const d=i[c];(d===Number||d&&d.type===Number)&&(c in this._props&&(this._props[c]=Ch(this._props[c])),(a||(a=Object.create(null)))[Lp(c)]=!0)}this._numberProps=a,o&&this._resolveProps(r),this._applyStyles(l),this._update()},n=this._def.__asyncLoader;n?n().then(r=>t(r,!0)):t(this._def)}_resolveProps(t){const{props:n}=t,r=lr(n)?n:Object.keys(n||{});for(const o of Object.keys(this))o[0]!=="_"&&r.includes(o)&&this._setProp(o,this[o],!0,!1);for(const o of r.map(Lp))Object.defineProperty(this,o,{get(){return this._getProp(o)},set(i){this._setProp(o,i)}})}_setAttr(t){let n=this.getAttribute(t);const r=Lp(t);this._numberProps&&this._numberProps[r]&&(n=Ch(n)),this._setProp(r,n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,r=!0,o=!0){n!==this._props[t]&&(this._props[t]=n,o&&this._instance&&this._update(),r&&(n===!0?this.setAttribute(hs(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(hs(t),n+""):n||this.removeAttribute(hs(t))))}_update(){Ih(this._createVNode(),this.shadowRoot)}_createVNode(){const t=z(this._def,Ma({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0;const r=(i,l)=>{this.dispatchEvent(new CustomEvent(i,{detail:l}))};n.emit=(i,...l)=>{r(i,l),hs(i)!==i&&r(hs(i),l)};let o=this;for(;o=o&&(o.parentNode||o.host);)if(o instanceof Td){n.parent=o._instance,n.provides=o._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(n=>{const r=document.createElement("style");r.textContent=n,this.shadowRoot.appendChild(r)})}}function zL(e="$style"){{const t=Jo();if(!t)return Rp;const n=t.type.__cssModules;if(!n)return Rp;const r=n[e];return r||Rp}}function c2(e){const t=Jo();if(!t)return;const n=t.ut=(o=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(i=>kh(i,o))},r=()=>{const o=e(t.proxy);Ah(t.subTree,o),n(o)};mw(r),wt(()=>{const o=new MutationObserver(r);o.observe(t.subTree.el.parentNode,{childList:!0}),en(()=>o.disconnect())})}function Ah(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{Ah(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)kh(e.el,t);else if(e.type===Me)e.children.forEach(n=>Ah(n,t));else if(e.type===ti){let{el:n,anchor:r}=e;for(;n&&(kh(n,t),n!==r);)n=n.nextSibling}}function kh(e,t){if(e.nodeType===1){const n=e.style;for(const r in t)n.setProperty(`--${r}`,t[r])}}const us="transition",Il="animation",Cs=(e,{slots:t})=>pt(Fm,f2(e),t);Cs.displayName="Transition";const d2={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},WL=Cs.props=Ma({},Fm.props,d2),js=(e,t=[])=>{lr(e)?e.forEach(n=>n(...t)):e&&e(...t)},z1=e=>e?lr(e)?e.some(t=>t.length>1):e.length>1:!1;function f2(e){const t={};for(const G in e)G in d2||(t[G]=e[G]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:i=`${n}-enter-from`,enterActiveClass:l=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:c=i,appearActiveClass:d=l,appearToClass:p=a,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:v=`${n}-leave-active`,leaveToClass:y=`${n}-leave-to`}=e,b=qL(o),S=b&&b[0],T=b&&b[1],{onBeforeEnter:C,onEnter:w,onEnterCancelled:E,onLeave:O,onLeaveCancelled:$,onBeforeAppear:P=C,onAppear:R=w,onAppearCancelled:k=E}=t,W=(G,X,ne)=>{fs(G,X?p:a),fs(G,X?d:l),ne&&ne()},U=(G,X)=>{G._isLeaving=!1,fs(G,h),fs(G,y),fs(G,v),X&&X()},j=G=>(X,ne)=>{const xe=G?R:w,Ee=()=>W(X,G,ne);js(xe,[X,Ee]),W1(()=>{fs(X,G?c:i),Do(X,G?p:a),z1(xe)||q1(X,r,S,Ee)})};return Ma(t,{onBeforeEnter(G){js(C,[G]),Do(G,i),Do(G,l)},onBeforeAppear(G){js(P,[G]),Do(G,c),Do(G,d)},onEnter:j(!1),onAppear:j(!0),onLeave(G,X){G._isLeaving=!0;const ne=()=>U(G,X);Do(G,h),h2(),Do(G,v),W1(()=>{G._isLeaving&&(fs(G,h),Do(G,y),z1(O)||q1(G,r,T,ne))}),js(O,[G,ne])},onEnterCancelled(G){W(G,!1),js(E,[G])},onAppearCancelled(G){W(G,!0),js(k,[G])},onLeaveCancelled(G){U(G),js($,[G])}})}function qL(e){if(e==null)return null;if(xh(e))return[Mp(e.enter),Mp(e.leave)];{const t=Mp(e);return[t,t]}}function Mp(e){return Ch(e)}function Do(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function fs(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function W1(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let KL=0;function q1(e,t,n,r){const o=e._endId=++KL,i=()=>{o===e._endId&&r()};if(n)return setTimeout(i,n);const{type:l,timeout:a,propCount:c}=p2(e,t);if(!l)return r();const d=l+"end";let p=0;const h=()=>{e.removeEventListener(d,v),i()},v=y=>{y.target===e&&++p>=c&&h()};setTimeout(()=>{p<c&&h()},a+1),e.addEventListener(d,v)}function p2(e,t){const n=window.getComputedStyle(e),r=b=>(n[b]||"").split(", "),o=r(`${us}Delay`),i=r(`${us}Duration`),l=K1(o,i),a=r(`${Il}Delay`),c=r(`${Il}Duration`),d=K1(a,c);let p=null,h=0,v=0;t===us?l>0&&(p=us,h=l,v=i.length):t===Il?d>0&&(p=Il,h=d,v=c.length):(h=Math.max(l,d),p=h>0?l>d?us:Il:null,v=p?p===us?i.length:c.length:0);const y=p===us&&/\b(transform|all)(,|$)/.test(r(`${us}Property`).toString());return{type:p,timeout:h,propCount:v,hasTransform:y}}function K1(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>G1(n)+G1(e[r])))}function G1(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function h2(){return document.body.offsetHeight}const m2=new WeakMap,g2=new WeakMap,v2={name:"TransitionGroup",props:Ma({},WL,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Jo(),r=Lm();let o,i;return Sd(()=>{if(!o.length)return;const l=e.moveClass||`${e.name||"v"}-move`;if(!QL(o[0].el,n.vnode.el,l))return;o.forEach(YL),o.forEach(JL);const a=o.filter(ZL);h2(),a.forEach(c=>{const d=c.el,p=d.style;Do(d,l),p.transform=p.webkitTransform=p.transitionDuration="";const h=d._moveCb=v=>{v&&v.target!==d||(!v||/transform$/.test(v.propertyName))&&(d.removeEventListener("transitionend",h),d._moveCb=null,fs(d,l))};d.addEventListener("transitionend",h)})}),()=>{const l=He(e),a=f2(l);let c=l.tag||Me;o=i,i=t.default?bd(t.default()):[];for(let d=0;d<i.length;d++){const p=i[d];p.key!=null&&ai(p,Ki(p,a,r,n))}if(o)for(let d=0;d<o.length;d++){const p=o[d];ai(p,Ki(p,a,r,n)),m2.set(p,p.el.getBoundingClientRect())}return z(c,null,i)}}},GL=e=>delete e.mode;v2.props;const XL=v2;function YL(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function JL(e){g2.set(e,e.el.getBoundingClientRect())}function ZL(e){const t=m2.get(e),n=g2.get(e),r=t.left-n.left,o=t.top-n.top;if(r||o){const i=e.el.style;return i.transform=i.webkitTransform=`translate(${r}px,${o}px)`,i.transitionDuration="0s",e}}function QL(e,t,n){const r=e.cloneNode();e._vtc&&e._vtc.forEach(l=>{l.split(/\s+/).forEach(a=>a&&r.classList.remove(a))}),n.split(/\s+/).forEach(l=>l&&r.classList.add(l)),r.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(r);const{hasTransform:i}=p2(r);return o.removeChild(r),i}const $s=e=>{const t=e.props["onUpdate:modelValue"]||!1;return lr(t)?n=>xL(t,n):t};function e6(e){e.target.composing=!0}function X1(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Lc={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e._assign=$s(o);const i=r||o.props&&o.props.type==="number";jo(e,t?"change":"input",l=>{if(l.target.composing)return;let a=e.value;n&&(a=a.trim()),i&&(a=Th(a)),e._assign(a)}),n&&jo(e,"change",()=>{e.value=e.value.trim()}),t||(jo(e,"compositionstart",e6),jo(e,"compositionend",X1),jo(e,"change",X1))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:o}},i){if(e._assign=$s(i),e.composing||document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===t||(o||e.type==="number")&&Th(e.value)===t))return;const l=t??"";e.value!==l&&(e.value=l)}},Hm={deep:!0,created(e,t,n){e._assign=$s(n),jo(e,"change",()=>{const r=e._modelValue,o=Xi(e),i=e.checked,l=e._assign;if(lr(r)){const a=xd(r,o),c=a!==-1;if(i&&!c)l(r.concat(o));else if(!i&&c){const d=[...r];d.splice(a,1),l(d)}}else if(Da(r)){const a=new Set(r);i?a.add(o):a.delete(o),l(a)}else l(_2(e,i))})},mounted:Y1,beforeUpdate(e,t,n){e._assign=$s(n),Y1(e,t,n)}};function Y1(e,{value:t,oldValue:n},r){e._modelValue=t,lr(t)?e.checked=xd(t,r.props.value)>-1:Da(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=Es(t,_2(e,!0)))}const zm={created(e,{value:t},n){e.checked=Es(t,n.props.value),e._assign=$s(n),jo(e,"change",()=>{e._assign(Xi(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e._assign=$s(r),t!==n&&(e.checked=Es(t,r.props.value))}},y2={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const o=Da(t);jo(e,"change",()=>{const i=Array.prototype.filter.call(e.options,l=>l.selected).map(l=>n?Th(Xi(l)):Xi(l));e._assign(e.multiple?o?new Set(i):i:i[0])}),e._assign=$s(r)},mounted(e,{value:t}){J1(e,t)},beforeUpdate(e,t,n){e._assign=$s(n)},updated(e,{value:t}){J1(e,t)}};function J1(e,t){const n=e.multiple;if(!(n&&!lr(t)&&!Da(t))){for(let r=0,o=e.options.length;r<o;r++){const i=e.options[r],l=Xi(i);if(n)lr(t)?i.selected=xd(t,l)>-1:i.selected=t.has(l);else if(Es(Xi(i),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Xi(e){return"_value"in e?e._value:e.value}function _2(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const b2={created(e,t,n){tc(e,t,n,null,"created")},mounted(e,t,n){tc(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){tc(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){tc(e,t,n,r,"updated")}};function w2(e,t){switch(e){case"SELECT":return y2;case"TEXTAREA":return Lc;default:switch(t){case"checkbox":return Hm;case"radio":return zm;default:return Lc}}}function tc(e,t,n,r,o){const l=w2(e.tagName,n.props&&n.props.type)[o];l&&l(e,t,n,r)}function t6(){Lc.getSSRProps=({value:e})=>({value:e}),zm.getSSRProps=({value:e},t)=>{if(t.props&&Es(t.props.value,e))return{checked:!0}},Hm.getSSRProps=({value:e},t)=>{if(lr(e)){if(t.props&&xd(e,t.props.value)>-1)return{checked:!0}}else if(Da(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},b2.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=w2(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const n6=["ctrl","shift","alt","meta"],r6={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)=>n6.some(n=>e[`${n}Key`]&&!t.includes(n))},va=(e,t)=>(n,...r)=>{for(let o=0;o<t.length;o++){const i=r6[t[o]];if(i&&i(n,t))return}return e(n,...r)},o6={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},S2=(e,t)=>n=>{if(!("key"in n))return;const r=hs(n.key);if(t.some(o=>o===r||o6[o]===r))return e(n)},Wm={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Pl(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),Pl(e,!0),r.enter(e)):r.leave(e,()=>{Pl(e,!1)}):Pl(e,t))},beforeUnmount(e,{value:t}){Pl(e,t)}};function Pl(e,t){e.style.display=t?e._vod:"none"}function s6(){Wm.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const E2=Ma({patchProp:BL},CL);let Ql,Z1=!1;function $2(){return Ql||(Ql=Dw(E2))}function x2(){return Ql=Z1?Ql:Uw(E2),Z1=!0,Ql}const Ih=(...e)=>{$2().render(...e)},T2=(...e)=>{x2().hydrate(...e)},C2=(...e)=>{const t=$2().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=O2(r);if(!o)return;const i=t._component;!l2(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.innerHTML="";const l=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),l},t},i6=(...e)=>{const t=x2().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=O2(r);if(o)return n(o,!0,o instanceof SVGElement)},t};function O2(e){return ga(e)?document.querySelector(e):e}let Q1=!1;const l6=()=>{Q1||(Q1=!0,t6(),s6())},a6=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:Fm,Comment:Un,EffectScope:bm,Fragment:Me,KeepAlive:wR,ReactiveEffect:La,Static:ti,Suspense:dR,Teleport:jw,Text:ui,Transition:Cs,TransitionGroup:XL,VueElement:Td,assertNumber:JP,callWithAsyncErrorHandling:br,callWithErrorHandling:zo,camelize:so,capitalize:cd,cloneVNode:jr,compatUtils:pL,computed:fe,createApp:C2,createBlock:Ye,createCommentVNode:Te,createElementBlock:F,createElementVNode:m,createHydrationRenderer:Uw,createPropsRestProxy:iL,createRenderer:Dw,createSSRApp:i6,createSlots:Aw,createStaticVNode:KR,createTextVNode:Be,createVNode:z,customRef:qP,defineAsyncComponent:_R,defineComponent:ge,defineCustomElement:u2,defineEmits:tL,defineExpose:nL,defineProps:eL,defineSSRCustomElement:VL,get devtools(){return Mi},effect:hP,effectScope:dP,getCurrentInstance:Jo,getCurrentScope:zb,getTransitionRawChildren:bd,guardReactiveProps:qw,h:pt,handleError:pi,hydrate:T2,initCustomFormatter:aL,initDirectivesForSSR:l6,inject:Ft,isMemoSame:o2,isProxy:$m,isReactive:Qs,isReadonly:li,isRef:pn,isRuntimeOnly:JR,isShallow:ca,isVNode:ws,markRaw:xm,mergeDefaults:sL,mergeProps:Kw,nextTick:sn,normalizeClass:gt,normalizeProps:eP,normalizeStyle:oo,onActivated:yw,onBeforeMount:ww,onBeforeUnmount:hi,onBeforeUpdate:Sw,onDeactivated:_w,onErrorCaptured:Tw,onMounted:wt,onRenderTracked:xw,onRenderTriggered:$w,onScopeDispose:Wb,onServerPrefetch:Ew,onUnmounted:en,onUpdated:Sd,openBlock:I,popScopeId:oR,provide:Qt,proxyRefs:Om,pushScopeId:rR,queuePostFlushCb:Im,reactive:Ts,readonly:Em,ref:$e,registerRuntimeCompiler:Jw,render:Ih,renderList:Ot,renderSlot:yn,resolveComponent:q,resolveDirective:xR,resolveDynamicComponent:$R,resolveFilter:fL,resolveTransitionHooks:Ki,setBlockTracking:wh,setDevtoolsHook:dw,setTransitionHooks:ai,shallowReactive:ow,shallowReadonly:VP,shallowRef:gd,ssrContextKey:n2,ssrUtils:dL,stop:mP,toDisplayString:L,toHandlerKey:Gl,toHandlers:TR,toRaw:He,toRef:iw,toRefs:Am,transformVNodeArgs:WR,triggerRef:ph,unref:vn,useAttrs:oL,useCssModule:zL,useCssVars:c2,useSSRContext:r2,useSlots:e2,useTransitionState:Lm,vModelCheckbox:Hm,vModelDynamic:b2,vModelRadio:zm,vModelSelect:y2,vModelText:Lc,vShow:Wm,version:s2,warn:YP,watch:Ut,watchEffect:Vt,watchPostEffect:mw,watchSyncEffect:gR,withAsyncContext:lL,withCtx:_e,withDefaults:rL,withDirectives:Cw,withKeys:S2,withMemo:uL,withModifiers:va,withScopeId:sR},Symbol.toStringTag,{value:"Module"}));function uo(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o<r.length;o++)n[r[o]]=!0;return t?o=>!!n[o.toLowerCase()]:o=>!!n[o]}const u6=/;(?![^(]*\))/g,c6=/:([^]+)/,d6=/\/\*.*?\*\//gs;function f6(e){const t={};return e.replace(d6,"").split(u6).forEach(n=>{if(n){const r=n.split(c6);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}const p6="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",h6="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",m6="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",g6=uo(p6),v6=uo(h6),y6=uo(m6),_6={},Fc=()=>{},Dp=()=>!1,b6=/^on[^a-z]/,A2=e=>b6.test(e),Wo=Object.assign,Yi=Array.isArray,_n=e=>typeof e=="string",qm=e=>typeof e=="symbol",w6=e=>e!==null&&typeof e=="object",e_=uo(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),S6=uo("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),Cd=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},E6=/-(\w)/g,Od=Cd(e=>e.replace(E6,(t,n)=>n?n.toUpperCase():"")),$6=/\B([A-Z])/g,x6=Cd(e=>e.replace($6,"-$1").toLowerCase()),Km=Cd(e=>e.charAt(0).toUpperCase()+e.slice(1)),T6=Cd(e=>e?`on${Km(e)}`:"");function Gm(e){throw e}function k2(e){}function Wt(e,t,n,r){const o=e,i=new SyntaxError(String(o));return i.code=e,i.loc=t,i}const ya=Symbol(""),ea=Symbol(""),Xm=Symbol(""),Nc=Symbol(""),I2=Symbol(""),di=Symbol(""),P2=Symbol(""),R2=Symbol(""),Ym=Symbol(""),Jm=Symbol(""),Ua=Symbol(""),Zm=Symbol(""),L2=Symbol(""),Qm=Symbol(""),Mc=Symbol(""),eg=Symbol(""),tg=Symbol(""),ng=Symbol(""),rg=Symbol(""),F2=Symbol(""),N2=Symbol(""),Ad=Symbol(""),Dc=Symbol(""),og=Symbol(""),sg=Symbol(""),_a=Symbol(""),Ba=Symbol(""),ig=Symbol(""),Ph=Symbol(""),C6=Symbol(""),Rh=Symbol(""),Uc=Symbol(""),O6=Symbol(""),A6=Symbol(""),lg=Symbol(""),k6=Symbol(""),I6=Symbol(""),ag=Symbol(""),M2=Symbol(""),Ji={[ya]:"Fragment",[ea]:"Teleport",[Xm]:"Suspense",[Nc]:"KeepAlive",[I2]:"BaseTransition",[di]:"openBlock",[P2]:"createBlock",[R2]:"createElementBlock",[Ym]:"createVNode",[Jm]:"createElementVNode",[Ua]:"createCommentVNode",[Zm]:"createTextVNode",[L2]:"createStaticVNode",[Qm]:"resolveComponent",[Mc]:"resolveDynamicComponent",[eg]:"resolveDirective",[tg]:"resolveFilter",[ng]:"withDirectives",[rg]:"renderList",[F2]:"renderSlot",[N2]:"createSlots",[Ad]:"toDisplayString",[Dc]:"mergeProps",[og]:"normalizeClass",[sg]:"normalizeStyle",[_a]:"normalizeProps",[Ba]:"guardReactiveProps",[ig]:"toHandlers",[Ph]:"camelize",[C6]:"capitalize",[Rh]:"toHandlerKey",[Uc]:"setBlockTracking",[O6]:"pushScopeId",[A6]:"popScopeId",[lg]:"withCtx",[k6]:"unref",[I6]:"isRef",[ag]:"withMemo",[M2]:"isMemoSame"};function P6(e){Object.getOwnPropertySymbols(e).forEach(t=>{Ji[t]=e[t]})}const $r={source:"",start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}};function R6(e,t=$r){return{type:0,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:t}}function ba(e,t,n,r,o,i,l,a=!1,c=!1,d=!1,p=$r){return e&&(a?(e.helper(di),e.helper(el(e.inSSR,d))):e.helper(Qi(e.inSSR,d)),l&&e.helper(ng)),{type:13,tag:t,props:n,children:r,patchFlag:o,dynamicProps:i,directives:l,isBlock:a,disableTracking:c,isComponent:d,loc:p}}function ja(e,t=$r){return{type:17,loc:t,elements:e}}function Fr(e,t=$r){return{type:15,loc:t,properties:e}}function Zt(e,t){return{type:16,loc:$r,key:_n(e)?dt(e,!0):e,value:t}}function dt(e,t=!1,n=$r,r=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:r}}function no(e,t=$r){return{type:8,loc:t,children:e}}function on(e,t=[],n=$r){return{type:14,loc:n,callee:e,arguments:t}}function Zi(e,t=void 0,n=!1,r=!1,o=$r){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:o}}function Lh(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:$r}}function L6(e,t,n=!1){return{type:20,index:e,value:t,isVNode:n,loc:$r}}function F6(e){return{type:21,body:e,loc:$r}}const tr=e=>e.type===4&&e.isStatic,Di=(e,t)=>e===t||e===x6(t);function D2(e){if(Di(e,"Teleport"))return ea;if(Di(e,"Suspense"))return Xm;if(Di(e,"KeepAlive"))return Nc;if(Di(e,"BaseTransition"))return I2}const N6=/^\d|[^\$\w]/,ug=e=>!N6.test(e),M6=/[A-Za-z_$\xA0-\uFFFF]/,D6=/[\.\?\w$\xA0-\uFFFF]/,U6=/\s+[.[]\s*|\s*[.[]\s+/g,B6=e=>{e=e.trim().replace(U6,l=>l.trim());let t=0,n=[],r=0,o=0,i=null;for(let l=0;l<e.length;l++){const a=e.charAt(l);switch(t){case 0:if(a==="[")n.push(t),t=1,r++;else if(a==="(")n.push(t),t=2,o++;else if(!(l===0?M6:D6).test(a))return!1;break;case 1:a==="'"||a==='"'||a==="`"?(n.push(t),t=3,i=a):a==="["?r++:a==="]"&&(--r||(t=n.pop()));break;case 2:if(a==="'"||a==='"'||a==="`")n.push(t),t=3,i=a;else if(a==="(")o++;else if(a===")"){if(l===e.length-1)return!1;--o||(t=n.pop())}break;case 3:a===i&&(t=n.pop(),i=null);break}}return!r&&!o},U2=B6;function B2(e,t,n){const o={source:e.source.slice(t,t+n),start:Bc(e.start,e.source,t),end:e.end};return n!=null&&(o.end=Bc(e.start,e.source,t+n)),o}function Bc(e,t,n=t.length){return jc(Wo({},e),t,n)}function jc(e,t,n=t.length){let r=0,o=-1;for(let i=0;i<n;i++)t.charCodeAt(i)===10&&(r++,o=i);return e.offset+=n,e.line+=r,e.column=o===-1?e.column+n:n-o,e}function Lr(e,t,n=!1){for(let r=0;r<e.props.length;r++){const o=e.props[r];if(o.type===7&&(n||o.exp)&&(_n(t)?o.name===t:t.test(o.name)))return o}}function kd(e,t,n=!1,r=!1){for(let o=0;o<e.props.length;o++){const i=e.props[o];if(i.type===6){if(n)continue;if(i.name===t&&(i.value||r))return i}else if(i.name==="bind"&&(i.exp||r)&&Xs(i.arg,t))return i}}function Xs(e,t){return!!(e&&tr(e)&&e.content===t)}function j6(e){return e.props.some(t=>t.type===7&&t.name==="bind"&&(!t.arg||t.arg.type!==4||!t.arg.isStatic))}function Up(e){return e.type===5||e.type===2}function V6(e){return e.type===7&&e.name==="slot"}function Vc(e){return e.type===1&&e.tagType===3}function Hc(e){return e.type===1&&e.tagType===2}function Qi(e,t){return e||t?Ym:Jm}function el(e,t){return e||t?P2:R2}const H6=new Set([_a,Ba]);function j2(e,t=[]){if(e&&!_n(e)&&e.type===14){const n=e.callee;if(!_n(n)&&H6.has(n))return j2(e.arguments[0],t.concat(e))}return[e,t]}function zc(e,t,n){let r,o=e.type===13?e.props:e.arguments[2],i=[],l;if(o&&!_n(o)&&o.type===14){const a=j2(o);o=a[0],i=a[1],l=i[i.length-1]}if(o==null||_n(o))r=Fr([t]);else if(o.type===14){const a=o.arguments[0];!_n(a)&&a.type===15?t_(t,a)||a.properties.unshift(t):o.callee===ig?r=on(n.helper(Dc),[Fr([t]),o]):o.arguments.unshift(Fr([t])),!r&&(r=o)}else o.type===15?(t_(t,o)||o.properties.unshift(t),r=o):(r=on(n.helper(Dc),[Fr([t]),o]),l&&l.callee===Ba&&(l=i[i.length-2]));e.type===13?l?l.arguments[0]=r:e.props=r:l?l.arguments[0]=r:e.arguments[2]=r}function t_(e,t){let n=!1;if(e.key.type===4){const r=e.key.content;n=t.properties.some(o=>o.key.type===4&&o.key.content===r)}return n}function wa(e,t){return`_${t}_${e.replace(/[^\w]/g,(n,r)=>n==="-"?"_":e.charCodeAt(r).toString())}`}function z6(e){return e.type===14&&e.callee===ag?e.arguments[1].returns:e}function cg(e,{helper:t,removeHelper:n,inSSR:r}){e.isBlock||(e.isBlock=!0,n(Qi(r,e.isComponent)),t(di),t(el(r,e.isComponent)))}function n_(e,t){const n=t.options?t.options.compatConfig:t.compatConfig,r=n&&n[e];return e==="MODE"?r||3:r}function ni(e,t){const n=n_("MODE",t),r=n_(e,t);return n===3?r===!0:r!==!1}function Sa(e,t,n,...r){return ni(e,t)}const W6=/&(gt|lt|amp|apos|quot);/g,q6={gt:">",lt:"<",amp:"&",apos:"'",quot:'"'},r_={delimiters:["{{","}}"],getNamespace:()=>0,getTextMode:()=>0,isVoidTag:Dp,isPreTag:Dp,isCustomElement:Dp,decodeEntities:e=>e.replace(W6,(t,n)=>q6[n]),onError:Gm,onWarn:k2,comments:!1};function K6(e,t={}){const n=G6(e,t),r=wr(n);return R6(dg(n,0,[]),Vr(n,r))}function G6(e,t){const n=Wo({},r_);let r;for(r in t)n[r]=t[r]===void 0?r_[r]:t[r];return{options:n,column:1,line:1,offset:0,originalSource:e,source:e,inPre:!1,inVPre:!1,onWarn:n.onWarn}}function dg(e,t,n){const r=Id(n),o=r?r.ns:0,i=[];for(;!rF(e,t,n);){const a=e.source;let c;if(t===0||t===1){if(!e.inVPre&&Dn(a,e.options.delimiters[0]))c=tF(e,t);else if(t===0&&a[0]==="<")if(a.length===1)Pt(e,5,1);else if(a[1]==="!")Dn(a,"<!--")?c=Y6(e):Dn(a,"<!DOCTYPE")?c=Rl(e):Dn(a,"<![CDATA[")?o!==0?c=X6(e,n):(Pt(e,1),c=Rl(e)):(Pt(e,11),c=Rl(e));else if(a[1]==="/")if(a.length===2)Pt(e,5,2);else if(a[2]===">"){Pt(e,14,2),hn(e,3);continue}else if(/[a-z]/i.test(a[2])){Pt(e,23),Fh(e,1,r);continue}else Pt(e,12,2),c=Rl(e);else/[a-z]/i.test(a[1])?(c=J6(e,n),ni("COMPILER_NATIVE_TEMPLATE",e)&&c&&c.tag==="template"&&!c.props.some(d=>d.type===7&&V2(d.name))&&(c=c.children)):a[1]==="?"?(Pt(e,21,1),c=Rl(e)):Pt(e,12,1)}if(c||(c=nF(e,t)),Yi(c))for(let d=0;d<c.length;d++)o_(i,c[d]);else o_(i,c)}let l=!1;if(t!==2&&t!==1){const a=e.options.whitespace!=="preserve";for(let c=0;c<i.length;c++){const d=i[c];if(d.type===2)if(e.inPre)d.content=d.content.replace(/\r\n/g,`2 `);else if(/[^\t\r\n\f ]/.test(d.content))a&&(d.content=d.content.replace(/[\t\r\n\f ]+/g," "));else{const p=i[c-1],h=i[c+1];!p||!h||a&&(p.type===3&&h.type===3||p.type===3&&h.type===1||p.type===1&&h.type===3||p.type===1&&h.type===1&&/[\r\n]/.test(d.content))?(l=!0,i[c]=null):d.content=" "}else d.type===3&&!e.options.comments&&(l=!0,i[c]=null)}if(e.inPre&&r&&e.options.isPreTag(r.tag)){const c=i[0];c&&c.type===2&&(c.content=c.content.replace(/^\r?\n/,""))}}return l?i.filter(Boolean):i}function o_(e,t){if(t.type===2){const n=Id(e);if(n&&n.type===2&&n.loc.end.offset===t.loc.start.offset){n.content+=t.content,n.loc.end=t.loc.end,n.loc.source+=t.loc.source;return}}e.push(t)}function X6(e,t){hn(e,9);const n=dg(e,3,t);return e.source.length===0?Pt(e,6):hn(e,3),n}function Y6(e){const t=wr(e);let n;const r=/--(\!)?>/.exec(e.source);if(!r)n=e.source.slice(4),hn(e,e.source.length),Pt(e,7);else{r.index<=3&&Pt(e,0),r[1]&&Pt(e,10),n=e.source.slice(4,r.index);const o=e.source.slice(0,r.index);let i=1,l=0;for(;(l=o.indexOf("<!--",i))!==-1;)hn(e,l-i+1),l+4<o.length&&Pt(e,16),i=l+1;hn(e,r.index+r[0].length-i+1)}return{type:3,content:n,loc:Vr(e,t)}}function Rl(e){const t=wr(e),n=e.source[1]==="?"?1:2;let r;const o=e.source.indexOf(">");return o===-1?(r=e.source.slice(n),hn(e,e.source.length)):(r=e.source.slice(n,o),hn(e,o+1)),{type:3,content:r,loc:Vr(e,t)}}function J6(e,t){const n=e.inPre,r=e.inVPre,o=Id(t),i=Fh(e,0,o),l=e.inPre&&!n,a=e.inVPre&&!r;if(i.isSelfClosing||e.options.isVoidTag(i.tag))return l&&(e.inPre=!1),a&&(e.inVPre=!1),i;t.push(i);const c=e.options.getTextMode(i,o),d=dg(e,c,t);t.pop();{const p=i.props.find(h=>h.type===6&&h.name==="inline-template");if(p&&Sa("COMPILER_INLINE_TEMPLATE",e,p.loc)){const h=Vr(e,i.loc.end);p.value={type:2,content:h.source,loc:h}}}if(i.children=d,Nh(e.source,i.tag))Fh(e,1,o);else if(Pt(e,24,0,i.loc.start),e.source.length===0&&i.tag.toLowerCase()==="script"){const p=d[0];p&&Dn(p.loc.source,"<!--")&&Pt(e,8)}return i.loc=Vr(e,i.loc.start),l&&(e.inPre=!1),a&&(e.inVPre=!1),i}const V2=uo("if,else,else-if,for,slot");function Fh(e,t,n){const r=wr(e),o=/^<\/?([a-z][^\t\r\n\f />]*)/i.exec(e.source),i=o[1],l=e.options.getNamespace(i,n);hn(e,o[0].length),Ea(e);const a=wr(e),c=e.source;e.options.isPreTag(i)&&(e.inPre=!0);let d=s_(e,t);t===0&&!e.inVPre&&d.some(v=>v.type===7&&v.name==="pre")&&(e.inVPre=!0,Wo(e,a),e.source=c,d=s_(e,t).filter(v=>v.name!=="v-pre"));let p=!1;if(e.source.length===0?Pt(e,9):(p=Dn(e.source,"/>"),t===1&&p&&Pt(e,4),hn(e,p?2:1)),t===1)return;let h=0;return e.inVPre||(i==="slot"?h=2:i==="template"?d.some(v=>v.type===7&&V2(v.name))&&(h=3):Z6(i,d,e)&&(h=1)),{type:1,ns:l,tag:i,tagType:h,props:d,isSelfClosing:p,children:[],loc:Vr(e,r),codegenNode:void 0}}function Z6(e,t,n){const r=n.options;if(r.isCustomElement(e))return!1;if(e==="component"||/^[A-Z]/.test(e)||D2(e)||r.isBuiltInComponent&&r.isBuiltInComponent(e)||r.isNativeTag&&!r.isNativeTag(e))return!0;for(let o=0;o<t.length;o++){const i=t[o];if(i.type===6){if(i.name==="is"&&i.value){if(i.value.content.startsWith("vue:"))return!0;if(Sa("COMPILER_IS_ON_ELEMENT",n,i.loc))return!0}}else{if(i.name==="is")return!0;if(i.name==="bind"&&Xs(i.arg,"is")&&Sa("COMPILER_IS_ON_ELEMENT",n,i.loc))return!0}}}function s_(e,t){const n=[],r=new Set;for(;e.source.length>0&&!Dn(e.source,">")&&!Dn(e.source,"/>");){if(Dn(e.source,"/")){Pt(e,22),hn(e,1),Ea(e);continue}t===1&&Pt(e,3);const o=Q6(e,r);o.type===6&&o.value&&o.name==="class"&&(o.value.content=o.value.content.replace(/\s+/g," ").trim()),t===0&&n.push(o),/^[^\t\r\n\f />]/.test(e.source)&&Pt(e,15),Ea(e)}return n}function Q6(e,t){const n=wr(e),o=/^[^\t\r\n\f />][^\t\r\n\f />=]*/.exec(e.source)[0];t.has(o)&&Pt(e,2),t.add(o),o[0]==="="&&Pt(e,19);{const a=/["'<]/g;let c;for(;c=a.exec(o);)Pt(e,17,c.index)}hn(e,o.length);let i;/^[\t\r\n\f ]*=/.test(e.source)&&(Ea(e),hn(e,1),Ea(e),i=eF(e),i||Pt(e,13));const l=Vr(e,n);if(!e.inVPre&&/^(v-[A-Za-z0-9-]|:|\.|@|#)/.test(o)){const a=/(?:^v-([a-z0-9-]+))?(?:(?::|^\.|^@|^#)(\[[^\]]+\]|[^\.]+))?(.+)?$/i.exec(o);let c=Dn(o,"."),d=a[1]||(c||Dn(o,":")?"bind":Dn(o,"@")?"on":"slot"),p;if(a[2]){const v=d==="slot",y=o.lastIndexOf(a[2]),b=Vr(e,i_(e,n,y),i_(e,n,y+a[2].length+(v&&a[3]||"").length));let S=a[2],T=!0;S.startsWith("[")?(T=!1,S.endsWith("]")?S=S.slice(1,S.length-1):(Pt(e,27),S=S.slice(1))):v&&(S+=a[3]||""),p={type:4,content:S,isStatic:T,constType:T?3:0,loc:b}}if(i&&i.isQuoted){const v=i.loc;v.start.offset++,v.start.column++,v.end=Bc(v.start,i.content),v.source=v.source.slice(1,-1)}const h=a[3]?a[3].slice(1).split("."):[];return c&&h.push("prop"),d==="bind"&&p&&h.includes("sync")&&Sa("COMPILER_V_BIND_SYNC",e,l,p.loc.source)&&(d="model",h.splice(h.indexOf("sync"),1)),{type:7,name:d,exp:i&&{type:4,content:i.content,isStatic:!1,constType:0,loc:i.loc},arg:p,modifiers:h,loc:l}}return!e.inVPre&&Dn(o,"v-")&&Pt(e,26),{type:6,name:o,value:i&&{type:2,content:i.content,loc:i.loc},loc:l}}function eF(e){const t=wr(e);let n;const r=e.source[0],o=r==='"'||r==="'";if(o){hn(e,1);const i=e.source.indexOf(r);i===-1?n=ta(e,e.source.length,4):(n=ta(e,i,4),hn(e,1))}else{const i=/^[^\t\r\n\f >]+/.exec(e.source);if(!i)return;const l=/["'<=`]/g;let a;for(;a=l.exec(i[0]);)Pt(e,18,a.index);n=ta(e,i[0].length,4)}return{content:n,isQuoted:o,loc:Vr(e,t)}}function tF(e,t){const[n,r]=e.options.delimiters,o=e.source.indexOf(r,n.length);if(o===-1){Pt(e,25);return}const i=wr(e);hn(e,n.length);const l=wr(e),a=wr(e),c=o-n.length,d=e.source.slice(0,c),p=ta(e,c,t),h=p.trim(),v=p.indexOf(h);v>0&&jc(l,d,v);const y=c-(p.length-h.length-v);return jc(a,d,y),hn(e,r.length),{type:5,content:{type:4,isStatic:!1,constType:0,content:h,loc:Vr(e,l,a)},loc:Vr(e,i)}}function nF(e,t){const n=t===3?["]]>"]:["<",e.options.delimiters[0]];let r=e.source.length;for(let l=0;l<n.length;l++){const a=e.source.indexOf(n[l],1);a!==-1&&r>a&&(r=a)}const o=wr(e);return{type:2,content:ta(e,r,t),loc:Vr(e,o)}}function ta(e,t,n){const r=e.source.slice(0,t);return hn(e,t),n===2||n===3||!r.includes("&")?r:e.options.decodeEntities(r,n===4)}function wr(e){const{column:t,line:n,offset:r}=e;return{column:t,line:n,offset:r}}function Vr(e,t,n){return n=n||wr(e),{start:t,end:n,source:e.originalSource.slice(t.offset,n.offset)}}function Id(e){return e[e.length-1]}function Dn(e,t){return e.startsWith(t)}function hn(e,t){const{source:n}=e;jc(e,n,t),e.source=n.slice(t)}function Ea(e){const t=/^[\t\r\n\f ]+/.exec(e.source);t&&hn(e,t[0].length)}function i_(e,t,n){return Bc(t,e.originalSource.slice(t.offset,n),n)}function Pt(e,t,n,r=wr(e)){n&&(r.offset+=n,r.column+=n),e.options.onError(Wt(t,{start:r,end:r,source:""}))}function rF(e,t,n){const r=e.source;switch(t){case 0:if(Dn(r,"</")){for(let o=n.length-1;o>=0;--o)if(Nh(r,n[o].tag))return!0}break;case 1:case 2:{const o=Id(n);if(o&&Nh(r,o.tag))return!0;break}case 3:if(Dn(r,"]]>"))return!0;break}return!r}function Nh(e,t){return Dn(e,"</")&&e.slice(2,2+t.length).toLowerCase()===t.toLowerCase()&&/[\t\r\n\f />]/.test(e[2+t.length]||">")}function oF(e,t){vc(e,t,H2(e,e.children[0]))}function H2(e,t){const{children:n}=e;return n.length===1&&t.type===1&&!Hc(t)}function vc(e,t,n=!1){const{children:r}=e,o=r.length;let i=0;for(let l=0;l<r.length;l++){const a=r[l];if(a.type===1&&a.tagType===0){const c=n?0:Nr(a,t);if(c>0){if(c>=2){a.codegenNode.patchFlag="-1",a.codegenNode=t.hoist(a.codegenNode),i++;continue}}else{const d=a.codegenNode;if(d.type===13){const p=K2(d);if((!p||p===512||p===1)&&W2(a,t)>=2){const h=q2(a);h&&(d.props=t.hoist(h))}d.dynamicProps&&(d.dynamicProps=t.hoist(d.dynamicProps))}}}if(a.type===1){const c=a.tagType===1;c&&t.scopes.vSlot++,vc(a,t),c&&t.scopes.vSlot--}else if(a.type===11)vc(a,t,a.children.length===1);else if(a.type===9)for(let c=0;c<a.branches.length;c++)vc(a.branches[c],t,a.branches[c].children.length===1)}i&&t.transformHoist&&t.transformHoist(r,t,e),i&&i===o&&e.type===1&&e.tagType===0&&e.codegenNode&&e.codegenNode.type===13&&Yi(e.codegenNode.children)&&(e.codegenNode.children=t.hoist(ja(e.codegenNode.children)))}function Nr(e,t){const{constantCache:n}=t;switch(e.type){case 1:if(e.tagType!==0)return 0;const r=n.get(e);if(r!==void 0)return r;const o=e.codegenNode;if(o.type!==13||o.isBlock&&e.tag!=="svg"&&e.tag!=="foreignObject")return 0;if(K2(o))return n.set(e,0),0;{let a=3;const c=W2(e,t);if(c===0)return n.set(e,0),0;c<a&&(a=c);for(let d=0;d<e.children.length;d++){const p=Nr(e.children[d],t);if(p===0)return n.set(e,0),0;p<a&&(a=p)}if(a>1)for(let d=0;d<e.props.length;d++){const p=e.props[d];if(p.type===7&&p.name==="bind"&&p.exp){const h=Nr(p.exp,t);if(h===0)return n.set(e,0),0;h<a&&(a=h)}}if(o.isBlock){for(let d=0;d<e.props.length;d++)if(e.props[d].type===7)return n.set(e,0),0;t.removeHelper(di),t.removeHelper(el(t.inSSR,o.isComponent)),o.isBlock=!1,t.helper(Qi(t.inSSR,o.isComponent))}return n.set(e,a),a}case 2:case 3:return 3;case 9:case 11:case 10:return 0;case 5:case 12:return Nr(e.content,t);case 4:return e.constType;case 8:let l=3;for(let a=0;a<e.children.length;a++){const c=e.children[a];if(_n(c)||qm(c))continue;const d=Nr(c,t);if(d===0)return 0;d<l&&(l=d)}return l;default:return 0}}const sF=new Set([og,sg,_a,Ba]);function z2(e,t){if(e.type===14&&!_n(e.callee)&&sF.has(e.callee)){const n=e.arguments[0];if(n.type===4)return Nr(n,t);if(n.type===14)return z2(n,t)}return 0}function W2(e,t){let n=3;const r=q2(e);if(r&&r.type===15){const{properties:o}=r;for(let i=0;i<o.length;i++){const{key:l,value:a}=o[i],c=Nr(l,t);if(c===0)return c;c<n&&(n=c);let d;if(a.type===4?d=Nr(a,t):a.type===14?d=z2(a,t):d=0,d===0)return d;d<n&&(n=d)}}return n}function q2(e){const t=e.codegenNode;if(t.type===13)return t.props}function K2(e){const t=e.patchFlag;return t?parseInt(t,10):void 0}function iF(e,{filename:t="",prefixIdentifiers:n=!1,hoistStatic:r=!1,cacheHandlers:o=!1,nodeTransforms:i=[],directiveTransforms:l={},transformHoist:a=null,isBuiltInComponent:c=Fc,isCustomElement:d=Fc,expressionPlugins:p=[],scopeId:h=null,slotted:v=!0,ssr:y=!1,inSSR:b=!1,ssrCssVars:S="",bindingMetadata:T=_6,inline:C=!1,isTS:w=!1,onError:E=Gm,onWarn:O=k2,compatConfig:$}){const P=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),R={selfName:P&&Km(Od(P[1])),prefixIdentifiers:n,hoistStatic:r,cacheHandlers:o,nodeTransforms:i,directiveTransforms:l,transformHoist:a,isBuiltInComponent:c,isCustomElement:d,expressionPlugins:p,scopeId:h,slotted:v,ssr:y,inSSR:b,ssrCssVars:S,bindingMetadata:T,inline:C,isTS:w,onError:E,onWarn:O,compatConfig:$,root:e,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],constantCache:new Map,temps:0,cached:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,currentNode:e,childIndex:0,inVOnce:!1,helper(k){const W=R.helpers.get(k)||0;return R.helpers.set(k,W+1),k},removeHelper(k){const W=R.helpers.get(k);if(W){const U=W-1;U?R.helpers.set(k,U):R.helpers.delete(k)}},helperString(k){return`_${Ji[R.helper(k)]}`},replaceNode(k){R.parent.children[R.childIndex]=R.currentNode=k},removeNode(k){const W=R.parent.children,U=k?W.indexOf(k):R.currentNode?R.childIndex:-1;!k||k===R.currentNode?(R.currentNode=null,R.onNodeRemoved()):R.childIndex>U&&(R.childIndex--,R.onNodeRemoved()),R.parent.children.splice(U,1)},onNodeRemoved:()=>{},addIdentifiers(k){},removeIdentifiers(k){},hoist(k){_n(k)&&(k=dt(k)),R.hoists.push(k);const W=dt(`_hoisted_${R.hoists.length}`,!1,k.loc,2);return W.hoisted=k,W},cache(k,W=!1){return L6(R.cached++,k,W)}};return R.filters=new Set,R}function lF(e,t){const n=iF(e,t);Pd(e,n),t.hoistStatic&&oF(e,n),t.ssr||aF(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.filters=[...n.filters]}function aF(e,t){const{helper:n}=t,{children:r}=e;if(r.length===1){const o=r[0];if(H2(e,o)&&o.codegenNode){const i=o.codegenNode;i.type===13&&cg(i,t),e.codegenNode=i}else e.codegenNode=o}else if(r.length>1){let o=64;e.codegenNode=ba(t,n(ya),void 0,e.children,o+"",void 0,void 0,!0,void 0,!1)}}function uF(e,t){let n=0;const r=()=>{n--};for(;n<e.children.length;n++){const o=e.children[n];_n(o)||(t.parent=e,t.childIndex=n,t.onNodeRemoved=r,Pd(o,t))}}function Pd(e,t){t.currentNode=e;const{nodeTransforms:n}=t,r=[];for(let i=0;i<n.length;i++){const l=n[i](e,t);if(l&&(Yi(l)?r.push(...l):r.push(l)),t.currentNode)e=t.currentNode;else return}switch(e.type){case 3:t.ssr||t.helper(Ua);break;case 5:t.ssr||t.helper(Ad);break;case 9:for(let i=0;i<e.branches.length;i++)Pd(e.branches[i],t);break;case 10:case 11:case 1:case 0:uF(e,t);break}t.currentNode=e;let o=r.length;for(;o--;)r[o]()}function G2(e,t){const n=_n(e)?r=>r===e:r=>e.test(r);return(r,o)=>{if(r.type===1){const{props:i}=r;if(r.tagType===3&&i.some(V6))return;const l=[];for(let a=0;a<i.length;a++){const c=i[a];if(c.type===7&&n(c.name)){i.splice(a,1),a--;const d=t(r,c,o);d&&l.push(d)}}return l}}}const Rd="/*#__PURE__*/",X2=e=>`${Ji[e]}: _${Ji[e]}`;function cF(e,{mode:t="function",prefixIdentifiers:n=t==="module",sourceMap:r=!1,filename:o="template.vue.html",scopeId:i=null,optimizeImports:l=!1,runtimeGlobalName:a="Vue",runtimeModuleName:c="vue",ssrRuntimeModuleName:d="vue/server-renderer",ssr:p=!1,isTS:h=!1,inSSR:v=!1}){const y={mode:t,prefixIdentifiers:n,sourceMap:r,filename:o,scopeId:i,optimizeImports:l,runtimeGlobalName:a,runtimeModuleName:c,ssrRuntimeModuleName:d,ssr:p,isTS:h,inSSR:v,source:e.loc.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(S){return`_${Ji[S]}`},push(S,T){y.code+=S},indent(){b(++y.indentLevel)},deindent(S=!1){S?--y.indentLevel:b(--y.indentLevel)},newline(){b(y.indentLevel)}};function b(S){y.push(`3 `+" ".repeat(S))}return y}function dF(e,t={}){const n=cF(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:r,push:o,prefixIdentifiers:i,indent:l,deindent:a,newline:c,scopeId:d,ssr:p}=n,h=Array.from(e.helpers),v=h.length>0,y=!i&&r!=="module";fF(e,n);const S=p?"ssrRender":"render",C=(p?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ");if(o(`function ${S}(${C}) {`),l(),y&&(o("with (_ctx) {"),l(),v&&(o(`const { ${h.map( X2).join(", ")} } = _Vue`),o(`4 `),c())),e.components.length&&( Bp(e.components,"component",n),(e.directives.length||e.temps>0)&&c()),e.directives.length&&(Bp(e.directives,"directive",n),e.temps>0&&c()),e.filters&&e.filters.length&&(c(),Bp(e.filters,"filter",n),c()),e.temps>0){o("let ");for(let w=0;w<e.temps;w++)o(`${w>0?", ":""}_temp${w}`)}return(e.components.length||e.directives.length||e.temps)&&(o(`1 (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function gm(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o<r.length;o++)n[r[o]]=!0;return o=>!!n[o]}const GI="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt",XI=gm(GI);function so(e){if(Je(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=ln(r)?QI(r):so(r);if(o)for(const i in o)t[i]=o[i]}return t}else{if(ln(e))return e;if(Kt(e))return e}}const YI=/;(?![^(]*\))/g,JI=/:([^]+)/,ZI=/\/\*.*?\*\//gs;function QI(e){const t={};return e.replace(ZI,"").split(YI).forEach(n=>{if(n){const r=n.split(JI);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function gt(e){let t="";if(ln(e))t=e;else if(Je(e))for(let n=0;n<e.length;n++){const r=gt(e[n]);r&&(t+=r+" ")}else if(Kt(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function eP(e){if(!e)return null;let{class:t,style:n}=e;return t&&!ln(t)&&(e.class=gt(t)),n&&(e.style=so(n)),e}const L=e=>ln(e)?e:e==null?"":Je(e)||Kt(e)&&(e.toString===Bb||!nt(e.toString))?JSON.stringify(e,Mb,2):String(e),Mb=(e,t)=>t&&t.__v_isRef?Mb(e,t.value):Bi(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o])=>(n[`${r} =>`]=o,n),{})}:Ub(t)?{[`Set(${t.size})`]:[...t.values()]}:Kt(t)&&!Je(t)&&!jb(t)?String(t):t,jt={},Ui=[],Eo=()=>{},tP=()=>!1,nP=/^on[^a-z]/,ld=e=>nP.test(e),Db=e=>e.startsWith("onUpdate:"),kn=Object.assign,vm=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},rP=Object.prototype.hasOwnProperty,Et=(e,t)=>rP.call(e,t),Je=Array.isArray,Bi=e=>Ra(e)==="[object Map]",Ub=e=>Ra(e)==="[object Set]",oP=e=>Ra(e)==="[object RegExp]",nt=e=>typeof e=="function",ln=e=>typeof e=="string",ym=e=>typeof e=="symbol",Kt=e=>e!==null&&typeof e=="object",_m=e=>Kt(e)&&nt(e.then)&&nt(e.catch),Bb=Object.prototype.toString,Ra=e=>Bb.call(e),sP=e=>Ra(e).slice(8,-1),jb=e=>Ra(e)==="[object Object]",bm=e=>ln(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Kl=gm(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ad=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},iP=/-(\w)/g,io=ad(e=>e.replace(iP,(t,n)=>n?n.toUpperCase():"")),lP=/\B([A-Z])/g,ud=ad(e=>e.replace(lP,"-$1").toLowerCase()),cd=ad(e=>e.charAt(0).toUpperCase()+e.slice(1)),Gl=ad(e=>e?`on${cd(e)}`:""),qi=(e,t)=>!Object.is(e,t),Xl=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Oc=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},aP=e=>{const t=parseFloat(e);return isNaN(t)?e:t},uP=e=>{const t=ln(e)?Number(e):NaN;return isNaN(t)?e:t};let m_;const cP=()=>m_||(m_=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let vr;class wm{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=vr,!t&&vr&&(this.index=(vr.scopes||(vr.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=vr;try{return vr=this,t()}finally{vr=n}}}on(){vr=this}off(){vr=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0,this._active=!1}}}function dP(e){return new wm(e)}function Vb(e,t=vr){t&&t.active&&t.effects.push(e)}function Hb(){return vr}function zb(e){vr&&vr.cleanups.push(e)}const Sm=e=>{const t=new Set(e);return t.w=0,t.n=0,t},Wb=e=>(e.w&bs)>0,qb=e=>(e.n&bs)>0,fP=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=bs},pP=e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const o=t[r];Wb(o)&&!qb(o)?o.delete(e):t[n++]=o,o.w&=~bs,o.n&=~bs}t.length=n}},Ac=new WeakMap;let Hl=0,bs=1;const dh=30;let Qr;const Zs=Symbol(""),fh=Symbol("");class La{constructor(t,n=null,r){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,Vb(this,r)}run(){if(!this.active)return this.fn();let t=Qr,n=vs;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=Qr,Qr=this,vs=!0,bs=1<<++Hl,Hl<=dh?fP(this):g_(this),this.fn()}finally{Hl<=dh&&pP(this),bs=1<<--Hl,Qr=this.parent,vs=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Qr===this?this.deferStop=!0:this.active&&(g_(this),this.onStop&&this.onStop(),this.active=!1)}}function g_(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}function hP(e,t){e.effect&&(e=e.effect.fn);const n=new La(e);t&&(kn(n,t),t.scope&&Vb(n,t.scope)),(!t||!t.lazy)&&n.run();const r=n.run.bind(n);return r.effect=n,r}function mP(e){e.effect.stop()}let vs=!0;const Kb=[];function cl(){Kb.push(vs),vs=!1}function dl(){const e=Kb.pop();vs=e===void 0?!0:e}function lr(e,t,n){if(vs&&Qr){let r=Ac.get(e);r||Ac.set(e,r=new Map);let o=r.get(n);o||r.set(n,o=Sm()),Gb(o)}}function Gb(e,t){let n=!1;Hl<=dh?qb(e)||(e.n|=bs,n=!Wb(e)):n=!e.has(Qr),n&&(e.add(Qr),Qr.deps.push(e))}function Ko(e,t,n,r,o,i){const l=Ac.get(e);if(!l)return;let a=[];if(t==="clear")a=[...l.values()];else if(n==="length"&&Je(e)){const c=Number(r);l.forEach((d,p)=>{(p==="length"||p>=c)&&a.push(d)})}else switch(n!==void 0&&a.push(l.get(n)),t){case"add":Je(e)?bm(n)&&a.push(l.get("length")):(a.push(l.get(Zs)),Bi(e)&&a.push(l.get(fh)));break;case"delete":Je(e)||(a.push(l.get(Zs)),Bi(e)&&a.push(l.get(fh)));break;case"set":Bi(e)&&a.push(l.get(Zs));break}if(a.length===1)a[0]&&ph(a[0]);else{const c=[];for(const d of a)d&&c.push(...d);ph(Sm(c))}}function ph(e,t){const n=Je(e)?e:[...e];for(const r of n)r.computed&&v_(r);for(const r of n)r.computed||v_(r)}function v_(e,t){(e!==Qr||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function gP(e,t){var n;return(n=Ac.get(e))===null||n===void 0?void 0:n.get(t)}const vP=gm("__proto__,__v_isRef,__isVue"),Xb=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ym)),yP=dd(),_P=dd(!1,!0),bP=dd(!0),wP=dd(!0,!0),y_=SP();function SP(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=He(this);for(let i=0,l=this.length;i<l;i++)lr(r,"get",i+"");const o=r[t](...n);return o===-1||o===!1?r[t](...n.map(He)):o}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){cl();const r=He(this)[t].apply(this,n);return dl(),r}}),e}function EP(e){const t=He(this);return lr(t,"has",e),t.hasOwnProperty(e)}function dd(e=!1,t=!1){return function(r,o,i){if(o==="__v_isReactive")return!e;if(o==="__v_isReadonly")return e;if(o==="__v_isShallow")return t;if(o==="__v_raw"&&i===(e?t?nw:tw:t?ew:Qb).get(r))return r;const l=Je(r);if(!e){if(l&&Et(y_,o))return Reflect.get(y_,o,i);if(o==="hasOwnProperty")return EP}const a=Reflect.get(r,o,i);return(ym(o)?Xb.has(o):vP(o))||(e||lr(r,"get",o),t)?a:pn(a)?l&&bm(o)?a:a.value:Kt(a)?e?$m(a):Ts(a):a}}const $P=Yb(),xP=Yb(!0);function Yb(e=!1){return function(n,r,o,i){let l=n[r];if(li(l)&&pn(l)&&!pn(o))return!1;if(!e&&(!ca(o)&&!li(o)&&(l=He(l),o=He(o)),!Je(n)&&pn(l)&&!pn(o)))return l.value=o,!0;const a=Je(n)&&bm(r)?Number(r)<n.length:Et(n,r),c=Reflect.set(n,r,o,i);return n===He(i)&&(a?qi(o,l)&&Ko(n,"set",r,o):Ko(n,"add",r,o)),c}}function TP(e,t){const n=Et(e,t);e[t];const r=Reflect.deleteProperty(e,t);return r&&n&&Ko(e,"delete",t,void 0),r}function CP(e,t){const n=Reflect.has(e,t);return(!ym(t)||!Xb.has(t))&&lr(e,"has",t),n}function OP(e){return lr(e,"iterate",Je(e)?"length":Zs),Reflect.ownKeys(e)}const Jb={get:yP,set:$P,deleteProperty:TP,has:CP,ownKeys:OP},Zb={get:bP,set(e,t){return!0},deleteProperty(e,t){return!0}},AP=kn({},Jb,{get:_P,set:xP}),kP=kn({},Zb,{get:wP}),Em=e=>e,fd=e=>Reflect.getPrototypeOf(e);function Wu(e,t,n=!1,r=!1){e=e.__v_raw;const o=He(e),i=He(t);n||(t!==i&&lr(o,"get",t),lr(o,"get",i));const{has:l}=fd(o),a=r?Em:n?Cm:da;if(l.call(o,t))return a(e.get(t));if(l.call(o,i))return a(e.get(i));e!==o&&e.get(t)}function qu(e,t=!1){const n=this.__v_raw,r=He(n),o=He(e);return t||(e!==o&&lr(r,"has",e),lr(r,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function Ku(e,t=!1){return e=e.__v_raw,!t&&lr(He(e),"iterate",Zs),Reflect.get(e,"size",e)}function __(e){e=He(e);const t=He(this);return fd(t).has.call(t,e)||(t.add(e),Ko(t,"add",e,e)),this}function b_(e,t){t=He(t);const n=He(this),{has:r,get:o}=fd(n);let i=r.call(n,e);i||(e=He(e),i=r.call(n,e));const l=o.call(n,e);return n.set(e,t),i?qi(t,l)&&Ko(n,"set",e,t):Ko(n,"add",e,t),this}function w_(e){const t=He(this),{has:n,get:r}=fd(t);let o=n.call(t,e);o||(e=He(e),o=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return o&&Ko(t,"delete",e,void 0),i}function S_(){const e=He(this),t=e.size!==0,n=e.clear();return t&&Ko(e,"clear",void 0,void 0),n}function Gu(e,t){return function(r,o){const i=this,l=i.__v_raw,a=He(l),c=t?Em:e?Cm:da;return!e&&lr(a,"iterate",Zs),l.forEach((d,p)=>r.call(o,c(d),c(p),i))}}function Xu(e,t,n){return function(...r){const o=this.__v_raw,i=He(o),l=Bi(i),a=e==="entries"||e===Symbol.iterator&&l,c=e==="keys"&&l,d=o[e](...r),p=n?Em:t?Cm:da;return!t&&lr(i,"iterate",c?fh:Zs),{next(){const{value:h,done:v}=d.next();return v?{value:h,done:v}:{value:a?[p(h[0]),p(h[1])]:p(h),done:v}},[Symbol.iterator](){return this}}}}function ls(e){return function(...t){return e==="delete"?!1:this}}function IP(){const e={get(i){return Wu(this,i)},get size(){return Ku(this)},has:qu,add:__,set:b_,delete:w_,clear:S_,forEach:Gu(!1,!1)},t={get(i){return Wu(this,i,!1,!0)},get size(){return Ku(this)},has:qu,add:__,set:b_,delete:w_,clear:S_,forEach:Gu(!1,!0)},n={get(i){return Wu(this,i,!0)},get size(){return Ku(this,!0)},has(i){return qu.call(this,i,!0)},add:ls("add"),set:ls("set"),delete:ls("delete"),clear:ls("clear"),forEach:Gu(!0,!1)},r={get(i){return Wu(this,i,!0,!0)},get size(){return Ku(this,!0)},has(i){return qu.call(this,i,!0)},add:ls("add"),set:ls("set"),delete:ls("delete"),clear:ls("clear"),forEach:Gu(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Xu(i,!1,!1),n[i]=Xu(i,!0,!1),t[i]=Xu(i,!1,!0),r[i]=Xu(i,!0,!0)}),[e,n,t,r]}const[PP,RP,LP,FP]=IP();function pd(e,t){const n=t?e?FP:LP:e?RP:PP;return(r,o,i)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(Et(n,o)&&o in r?n:r,o,i)}const NP={get:pd(!1,!1)},MP={get:pd(!1,!0)},DP={get:pd(!0,!1)},UP={get:pd(!0,!0)},Qb=new WeakMap,ew=new WeakMap,tw=new WeakMap,nw=new WeakMap;function BP(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function jP(e){return e.__v_skip||!Object.isExtensible(e)?0:BP(sP(e))}function Ts(e){return li(e)?e:hd(e,!1,Jb,NP,Qb)}function rw(e){return hd(e,!1,AP,MP,ew)}function $m(e){return hd(e,!0,Zb,DP,tw)}function VP(e){return hd(e,!0,kP,UP,nw)}function hd(e,t,n,r,o){if(!Kt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=o.get(e);if(i)return i;const l=jP(e);if(l===0)return e;const a=new Proxy(e,l===2?r:n);return o.set(e,a),a}function Qs(e){return li(e)?Qs(e.__v_raw):!!(e&&e.__v_isReactive)}function li(e){return!!(e&&e.__v_isReadonly)}function ca(e){return!!(e&&e.__v_isShallow)}function xm(e){return Qs(e)||li(e)}function He(e){const t=e&&e.__v_raw;return t?He(t):e}function Tm(e){return Oc(e,"__v_skip",!0),e}const da=e=>Kt(e)?Ts(e):e,Cm=e=>Kt(e)?$m(e):e;function Om(e){vs&&Qr&&(e=He(e),Gb(e.dep||(e.dep=Sm())))}function md(e,t){e=He(e);const n=e.dep;n&&ph(n)}function pn(e){return!!(e&&e.__v_isRef===!0)}function $e(e){return ow(e,!1)}function gd(e){return ow(e,!0)}function ow(e,t){return pn(e)?e:new HP(e,t)}class HP{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:He(t),this._value=n?t:da(t)}get value(){return Om(this),this._value}set value(t){const n=this.__v_isShallow||ca(t)||li(t);t=n?t:He(t),qi(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:da(t),md(this))}}function hh(e){md(e)}function vn(e){return pn(e)?e.value:e}const zP={get:(e,t,n)=>vn(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return pn(o)&&!pn(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function Am(e){return Qs(e)?e:new Proxy(e,zP)}class WP{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:r}=t(()=>Om(this),()=>md(this));this._get=n,this._set=r}get value(){return this._get()}set value(t){this._set(t)}}function qP(e){return new WP(e)}function km(e){const t=Je(e)?new Array(e.length):{};for(const n in e)t[n]=sw(e,n);return t}class KP{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return gP(He(this._object),this._key)}}function sw(e,t,n){const r=e[t];return pn(r)?r:new KP(e,t,n)}var iw;class GP{constructor(t,n,r,o){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[iw]=!1,this._dirty=!0,this.effect=new La(t,()=>{this._dirty||(this._dirty=!0,md(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=r}get value(){const t=He(this);return Om(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}iw="__v_isReadonly";function XP(e,t,n=!1){let r,o;const i=nt(e);return i?(r=e,o=Eo):(r=e.get,o=e.set),new GP(r,o,i||!o,n)}function YP(e,...t){}function JP(e,t){}function zo(e,t,n,r){let o;try{o=r?e(...r):e()}catch(i){pi(i,t,n)}return o}function wr(e,t,n,r){if(nt(e)){const i=zo(e,t,n,r);return i&&_m(i)&&i.catch(l=>{pi(l,t,n)}),i}const o=[];for(let i=0;i<e.length;i++)o.push(wr(e[i],t,n,r));return o}function pi(e,t,n,r=!0){const o=t?t.vnode:null;if(t){let i=t.parent;const l=t.proxy,a=n;for(;i;){const d=i.ec;if(d){for(let p=0;p<d.length;p++)if(d[p](e,l,a)===!1)return}i=i.parent}const c=t.appContext.config.errorHandler;if(c){zo(c,null,10,[e,l,a]);return}}ZP(e,n,o,r)}function ZP(e,t,n,r=!0){console.error(e)}let fa=!1,mh=!1;const Nn=[];let So=0;const ji=[];let Bo=null,Ws=0;const lw=Promise.resolve();let Im=null;function sn(e){const t=Im||lw;return e?t.then(this?e.bind(this):e):t}function QP(e){let t=So+1,n=Nn.length;for(;t<n;){const r=t+n>>>1;pa(Nn[r])<e?t=r+1:n=r}return t}function vd(e){(!Nn.length||!Nn.includes(e,fa&&e.allowRecurse?So+1:So))&&(e.id==null?Nn.push(e):Nn.splice(QP(e.id),0,e),aw())}function aw(){!fa&&!mh&&(mh=!0,Im=lw.then(uw))}function eR(e){const t=Nn.indexOf(e);t>So&&Nn.splice(t,1)}function Pm(e){Je(e)?ji.push(...e):(!Bo||!Bo.includes(e,e.allowRecurse?Ws+1:Ws))&&ji.push(e),aw()}function E_(e,t=fa?So+1:0){for(;t<Nn.length;t++){const n=Nn[t];n&&n.pre&&(Nn.splice(t,1),t--,n())}}function kc(e){if(ji.length){const t=[...new Set(ji)];if(ji.length=0,Bo){Bo.push(...t);return}for(Bo=t,Bo.sort((n,r)=>pa(n)-pa(r)),Ws=0;Ws<Bo.length;Ws++)Bo[Ws]();Bo=null,Ws=0}}const pa=e=>e.id==null?1/0:e.id,tR=(e,t)=>{const n=pa(e)-pa(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function uw(e){mh=!1,fa=!0,Nn.sort(tR);try{for(So=0;So<Nn.length;So++){const t=Nn[So];t&&t.active!==!1&&zo(t,null,14)}}finally{So=0,Nn.length=0,kc(),fa=!1,Im=null,(Nn.length||ji.length)&&uw()}}let Mi,Yu=[];function cw(e,t){var n,r;Mi=e,Mi?(Mi.enabled=!0,Yu.forEach(({event:o,args:i})=>Mi.emit(o,...i)),Yu=[]):typeof window<"u"&&window.HTMLElement&&!(!((r=(n=window.navigator)===null||n===void 0?void 0:n.userAgent)===null||r===void 0)&&r.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(i=>{cw(i,t)}),setTimeout(()=>{Mi||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Yu=[])},3e3)):Yu=[]}function nR(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||jt;let o=n;const i=t.startsWith("update:"),l=i&&t.slice(7);if(l&&l in r){const p=`${l==="modelValue"?"model":l}Modifiers`,{number:h,trim:v}=r[p]||jt;v&&(o=n.map(y=>ln(y)?y.trim():y)),h&&(o=n.map(aP))}let a,c=r[a=Gl(t)]||r[a=Gl(io(t))];!c&&i&&(c=r[a=Gl(ud(t))]),c&&wr(c,e,6,o);const d=r[a+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,wr(d,e,6,o)}}function dw(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(o!==void 0)return o;const i=e.emits;let l={},a=!1;if(!nt(e)){const c=d=>{const p=dw(d,t,!0);p&&(a=!0,kn(l,p))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!i&&!a?(Kt(e)&&r.set(e,null),null):(Je(i)?i.forEach(c=>l[c]=null):kn(l,i),Kt(e)&&r.set(e,l),l)}function yd(e,t){return!e||!ld(t)?!1:(t=t.slice(2).replace(/Once$/,""),Et(e,t[0].toLowerCase()+t.slice(1))||Et(e,ud(t))||Et(e,t))}let An=null,_d=null;function ha(e){const t=An;return An=e,_d=e&&e.type.__scopeId||null,t}function rR(e){_d=e}function oR(){_d=null}const sR=e=>_e;function _e(e,t=An,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&Sh(-1);const i=ha(t);let l;try{l=e(...o)}finally{ha(i),r._d&&Sh(1)}return l};return r._n=!0,r._c=!0,r._d=!0,r}function mc(e){const{type:t,vnode:n,proxy:r,withProxy:o,props:i,propsOptions:[l],slots:a,attrs:c,emit:d,render:p,renderCache:h,data:v,setupState:y,ctx:b,inheritAttrs:S}=e;let T,C;const w=ha(e);try{if(n.shapeFlag&4){const O=o||r;T=yr(p.call(O,O,h,i,y,v,b)),C=c}else{const O=t;T=yr(O.length>1?O(i,{attrs:c,slots:a,emit:d}):O(i,null)),C=t.props?c:lR(c)}}catch(O){Zl.length=0,pi(O,e,1),T=z(Un)}let E=T;if(C&&S!==!1){const O=Object.keys(C),{shapeFlag:$}=E;O.length&&$&7&&(l&&O.some(Db)&&(C=aR(C,l)),E=Vr(E,C))}return n.dirs&&(E=Vr(E),E.dirs=E.dirs?E.dirs.concat(n.dirs):n.dirs),n.transition&&(E.transition=n.transition),T=E,ha(w),T}function iR(e){let t;for(let n=0;n<e.length;n++){const r=e[n];if(ws(r)){if(r.type!==Un||r.children==="v-if"){if(t)return;t=r}}else return}return t}const lR=e=>{let t;for(const n in e)(n==="class"||n==="style"||ld(n))&&((t||(t={}))[n]=e[n]);return t},aR=(e,t)=>{const n={};for(const r in e)(!Db(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function uR(e,t,n){const{props:r,children:o,component:i}=e,{props:l,children:a,patchFlag:c}=t,d=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?$_(r,l,d):!!l;if(c&8){const p=t.dynamicProps;for(let h=0;h<p.length;h++){const v=p[h];if(l[v]!==r[v]&&!yd(d,v))return!0}}}else return(o||a)&&(!a||!a.$stable)?!0:r===l?!1:r?l?$_(r,l,d):!0:!!l;return!1}function $_(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let o=0;o<r.length;o++){const i=r[o];if(t[i]!==e[i]&&!yd(n,i))return!0}return!1}function Rm({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const fw=e=>e.__isSuspense,cR={name:"Suspense",__isSuspense:!0,process(e,t,n,r,o,i,l,a,c,d){e==null?fR(t,n,r,o,i,l,a,c,d):pR(e,t,n,r,o,l,a,c,d)},hydrate:hR,create:Lm,normalize:mR},dR=cR;function ma(e,t){const n=e.props&&e.props[t];nt(n)&&n()}function fR(e,t,n,r,o,i,l,a,c){const{p:d,o:{createElement:p}}=c,h=p("div"),v=e.suspense=Lm(e,o,r,t,h,n,i,l,a,c);d(null,v.pendingBranch=e.ssContent,h,null,r,v,i,l),v.deps>0?(ma(e,"onPending"),ma(e,"onFallback"),d(null,e.ssFallback,t,n,r,null,i,l),Vi(v,e.ssFallback)):v.resolve()}function pR(e,t,n,r,o,i,l,a,{p:c,um:d,o:{createElement:p}}){const h=t.suspense=e.suspense;h.vnode=t,t.el=e.el;const v=t.ssContent,y=t.ssFallback,{activeBranch:b,pendingBranch:S,isInFallback:T,isHydrating:C}=h;if(S)h.pendingBranch=v,eo(v,S)?(c(S,v,h.hiddenContainer,null,o,h,i,l,a),h.deps<=0?h.resolve():T&&(c(b,y,n,r,o,null,i,l,a),Vi(h,y))):(h.pendingId++,C?(h.isHydrating=!1,h.activeBranch=S):d(S,o,h),h.deps=0,h.effects.length=0,h.hiddenContainer=p("div"),T?(c(null,v,h.hiddenContainer,null,o,h,i,l,a),h.deps<=0?h.resolve():(c(b,y,n,r,o,null,i,l,a),Vi(h,y))):b&&eo(v,b)?(c(b,v,n,r,o,h,i,l,a),h.resolve(!0)):(c(null,v,h.hiddenContainer,null,o,h,i,l,a),h.deps<=0&&h.resolve()));else if(b&&eo(v,b))c(b,v,n,r,o,h,i,l,a),Vi(h,v);else if(ma(t,"onPending"),h.pendingBranch=v,h.pendingId++,c(null,v,h.hiddenContainer,null,o,h,i,l,a),h.deps<=0)h.resolve();else{const{timeout:w,pendingId:E}=h;w>0?setTimeout(()=>{h.pendingId===E&&h.fallback(y)},w):w===0&&h.fallback(y)}}function Lm(e,t,n,r,o,i,l,a,c,d,p=!1){const{p:h,m:v,um:y,n:b,o:{parentNode:S,remove:T}}=d,C=e.props?uP(e.props.timeout):void 0,w={vnode:e,parent:t,parentComponent:n,isSVG:l,container:r,hiddenContainer:o,anchor:i,deps:0,pendingId:0,timeout:typeof C=="number"?C:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:p,isUnmounted:!1,effects:[],resolve(E=!1){const{vnode:O,activeBranch:$,pendingBranch:P,pendingId:R,effects:k,parentComponent:W,container:U}=w;if(w.isHydrating)w.isHydrating=!1;else if(!E){const X=$&&P.transition&&P.transition.mode==="out-in";X&&($.transition.afterLeave=()=>{R===w.pendingId&&v(P,U,ne,0)});let{anchor:ne}=w;$&&(ne=b($),y($,W,w,!0)),X||v(P,U,ne,0)}Vi(w,P),w.pendingBranch=null,w.isInFallback=!1;let j=w.parent,G=!1;for(;j;){if(j.pendingBranch){j.effects.push(...k),G=!0;break}j=j.parent}G||Pm(k),w.effects=[],ma(O,"onResolve")},fallback(E){if(!w.pendingBranch)return;const{vnode:O,activeBranch:$,parentComponent:P,container:R,isSVG:k}=w;ma(O,"onFallback");const W=b($),U=()=>{w.isInFallback&&(h(null,E,R,W,P,null,k,a,c),Vi(w,E))},j=E.transition&&E.transition.mode==="out-in";j&&($.transition.afterLeave=U),w.isInFallback=!0,y($,P,null,!0),j||U()},move(E,O,$){w.activeBranch&&v(w.activeBranch,E,O,$),w.container=E},next(){return w.activeBranch&&b(w.activeBranch)},registerDep(E,O){const $=!!w.pendingBranch;$&&w.deps++;const P=E.vnode.el;E.asyncDep.catch(R=>{pi(R,E,0)}).then(R=>{if(E.isUnmounted||w.isUnmounted||w.pendingId!==E.suspenseId)return;E.asyncResolved=!0;const{vnode:k}=E;Eh(E,R,!1),P&&(k.el=P);const W=!P&&E.subTree.el;O(E,k,S(P||E.subTree.el),P?null:b(E.subTree),w,l,c),W&&T(W),Rm(E,k.el),$&&--w.deps===0&&w.resolve()})},unmount(E,O){w.isUnmounted=!0,w.activeBranch&&y(w.activeBranch,n,E,O),w.pendingBranch&&y(w.pendingBranch,n,E,O)}};return w}function hR(e,t,n,r,o,i,l,a,c){const d=t.suspense=Lm(t,r,n,e.parentNode,document.createElement("div"),null,o,i,l,a,!0),p=c(e,d.pendingBranch=t.ssContent,n,d,i,l);return d.deps===0&&d.resolve(),p}function mR(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=x_(r?n.default:n),e.ssFallback=r?x_(n.fallback):z(Un)}function x_(e){let t;if(nt(e)){const n=ci&&e._c;n&&(e._d=!1,I()),e=e(),n&&(e._d=!0,t=tr,Vw())}return Je(e)&&(e=iR(e)),e=yr(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function pw(e,t){t&&t.pendingBranch?Je(e)?t.effects.push(...e):t.effects.push(e):Pm(e)}function Vi(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e,o=n.el=t.el;r&&r.subTree===n&&(r.vnode.el=o,Rm(r,o))}function Qt(e,t){if(Jt){let n=Jt.provides;const r=Jt.parent&&Jt.parent.provides;r===n&&(n=Jt.provides=Object.create(r)),n[e]=t}}function Ft(e,t,n=!1){const r=Jt||An;if(r){const o=r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&nt(t)?t.call(r.proxy):t}}function Vt(e,t){return Fa(e,null,t)}function hw(e,t){return Fa(e,null,{flush:"post"})}function gR(e,t){return Fa(e,null,{flush:"sync"})}const Ju={};function Ut(e,t,n){return Fa(e,t,n)}function Fa(e,t,{immediate:n,deep:r,flush:o,onTrack:i,onTrigger:l}=jt){const a=Hb()===(Jt==null?void 0:Jt.scope)?Jt:null;let c,d=!1,p=!1;if(pn(e)?(c=()=>e.value,d=ca(e)):Qs(e)?(c=()=>e,r=!0):Je(e)?(p=!0,d=e.some(E=>Qs(E)||ca(E)),c=()=>e.map(E=>{if(pn(E))return E.value;if(Qs(E))return Gs(E);if(nt(E))return zo(E,a,2)})):nt(e)?t?c=()=>zo(e,a,2):c=()=>{if(!(a&&a.isUnmounted))return h&&h(),wr(e,a,3,[v])}:c=Eo,t&&r){const E=c;c=()=>Gs(E())}let h,v=E=>{h=C.onStop=()=>{zo(E,a,4)}},y;if(Gi)if(v=Eo,t?n&&wr(t,a,3,[c(),p?[]:void 0,v]):c(),o==="sync"){const E=n2();y=E.__watcherHandles||(E.__watcherHandles=[])}else return Eo;let b=p?new Array(e.length).fill(Ju):Ju;const S=()=>{if(C.active)if(t){const E=C.run();(r||d||(p?E.some((O,$)=>qi(O,b[$])):qi(E,b)))&&(h&&h(),wr(t,a,3,[E,b===Ju?void 0:p&&b[0]===Ju?[]:b,v]),b=E)}else C.run()};S.allowRecurse=!!t;let T;o==="sync"?T=S:o==="post"?T=()=>Cn(S,a&&a.suspense):(S.pre=!0,a&&(S.id=a.uid),T=()=>vd(S));const C=new La(c,T);t?n?S():b=C.run():o==="post"?Cn(C.run.bind(C),a&&a.suspense):C.run();const w=()=>{C.stop(),a&&a.scope&&vm(a.scope.effects,C)};return y&&y.push(w),w}function vR(e,t,n){const r=this.proxy,o=ln(e)?e.includes(".")?mw(r,e):()=>r[e]:e.bind(r,r);let i;nt(t)?i=t:(i=t.handler,n=t);const l=Jt;Ss(this);const a=Fa(o,i.bind(r),n);return l?Ss(l):ys(),a}function mw(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o<n.length&&r;o++)r=r[n[o]];return r}}function Gs(e,t){if(!Kt(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),pn(e))Gs(e.value,t);else if(Je(e))for(let n=0;n<e.length;n++)Gs(e[n],t);else if(Ub(e)||Bi(e))e.forEach(n=>{Gs(n,t)});else if(jb(e))for(const n in e)Gs(e[n],t);return e}function Fm(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return wt(()=>{e.isMounted=!0}),hi(()=>{e.isUnmounting=!0}),e}const Lr=[Function,Array],yR={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Lr,onEnter:Lr,onAfterEnter:Lr,onEnterCancelled:Lr,onBeforeLeave:Lr,onLeave:Lr,onAfterLeave:Lr,onLeaveCancelled:Lr,onBeforeAppear:Lr,onAppear:Lr,onAfterAppear:Lr,onAppearCancelled:Lr},setup(e,{slots:t}){const n=Jo(),r=Fm();let o;return()=>{const i=t.default&&bd(t.default(),!0);if(!i||!i.length)return;let l=i[0];if(i.length>1){for(const S of i)if(S.type!==Un){l=S;break}}const a=He(e),{mode:c}=a;if(r.isLeaving)return Ap(l);const d=T_(l);if(!d)return Ap(l);const p=Ki(d,a,r,n);ai(d,p);const h=n.subTree,v=h&&T_(h);let y=!1;const{getTransitionKey:b}=d.type;if(b){const S=b();o===void 0?o=S:S!==o&&(o=S,y=!0)}if(v&&v.type!==Un&&(!eo(d,v)||y)){const S=Ki(v,a,r,n);if(ai(v,S),c==="out-in")return r.isLeaving=!0,S.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},Ap(l);c==="in-out"&&d.type!==Un&&(S.delayLeave=(T,C,w)=>{const E=gw(r,v);E[String(v.key)]=v,T._leaveCb=()=>{C(),T._leaveCb=void 0,delete p.delayedLeave},p.delayedLeave=w})}return l}}},Nm=yR;function gw(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Ki(e,t,n,r){const{appear:o,mode:i,persisted:l=!1,onBeforeEnter:a,onEnter:c,onAfterEnter:d,onEnterCancelled:p,onBeforeLeave:h,onLeave:v,onAfterLeave:y,onLeaveCancelled:b,onBeforeAppear:S,onAppear:T,onAfterAppear:C,onAppearCancelled:w}=t,E=String(e.key),O=gw(n,e),$=(k,W)=>{k&&wr(k,r,9,W)},P=(k,W)=>{const U=W[1];$(k,W),Je(k)?k.every(j=>j.length<=1)&&U():k.length<=1&&U()},R={mode:i,persisted:l,beforeEnter(k){let W=a;if(!n.isMounted)if(o)W=S||a;else return;k._leaveCb&&k._leaveCb(!0);const U=O[E];U&&eo(e,U)&&U.el._leaveCb&&U.el._leaveCb(),$(W,[k])},enter(k){let W=c,U=d,j=p;if(!n.isMounted)if(o)W=T||c,U=C||d,j=w||p;else return;let G=!1;const X=k._enterCb=ne=>{G||(G=!0,ne?$(j,[k]):$(U,[k]),R.delayedLeave&&R.delayedLeave(),k._enterCb=void 0)};W?P(W,[k,X]):X()},leave(k,W){const U=String(e.key);if(k._enterCb&&k._enterCb(!0),n.isUnmounting)return W();$(h,[k]);let j=!1;const G=k._leaveCb=X=>{j||(j=!0,W(),X?$(b,[k]):$(y,[k]),k._leaveCb=void 0,O[U]===e&&delete O[U])};O[U]=e,v?P(v,[k,G]):G()},clone(k){return Ki(k,t,n,r)}};return R}function Ap(e){if(Na(e))return e=Vr(e),e.children=null,e}function T_(e){return Na(e)?e.children?e.children[0]:void 0:e}function ai(e,t){e.shapeFlag&6&&e.component?ai(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 bd(e,t=!1,n){let r=[],o=0;for(let i=0;i<e.length;i++){let l=e[i];const a=n==null?l.key:String(n)+String(l.key!=null?l.key:i);l.type===Me?(l.patchFlag&128&&o++,r=r.concat(bd(l.children,t,a))):(t||l.type!==Un)&&r.push(a!=null?Vr(l,{key:a}):l)}if(o>1)for(let i=0;i<r.length;i++)r[i].patchFlag=-2;return r}function ge(e){return nt(e)?{setup:e,name:e.name}:e}const ei=e=>!!e.type.__asyncLoader;function _R(e){nt(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:o=200,timeout:i,suspensible:l=!0,onError:a}=e;let c=null,d,p=0;const h=()=>(p++,c=null,v()),v=()=>{let y;return c||(y=c=t().catch(b=>{if(b=b instanceof Error?b:new Error(String(b)),a)return new Promise((S,T)=>{a(b,()=>S(h()),()=>T(b),p+1)});throw b}).then(b=>y!==c&&c?c:(b&&(b.__esModule||b[Symbol.toStringTag]==="Module")&&(b=b.default),d=b,b)))};return ge({name:"AsyncComponentWrapper",__asyncLoader:v,get __asyncResolved(){return d},setup(){const y=Jt;if(d)return()=>kp(d,y);const b=w=>{c=null,pi(w,y,13,!r)};if(l&&y.suspense||Gi)return v().then(w=>()=>kp(w,y)).catch(w=>(b(w),()=>r?z(r,{error:w}):null));const S=$e(!1),T=$e(),C=$e(!!o);return o&&setTimeout(()=>{C.value=!1},o),i!=null&&setTimeout(()=>{if(!S.value&&!T.value){const w=new Error(`Async component timed out after ${i}ms.`);b(w),T.value=w}},i),v().then(()=>{S.value=!0,y.parent&&Na(y.parent.vnode)&&vd(y.parent.update)}).catch(w=>{b(w),T.value=w}),()=>{if(S.value&&d)return kp(d,y);if(T.value&&r)return z(r,{error:T.value});if(n&&!C.value)return z(n)}}})}function kp(e,t){const{ref:n,props:r,children:o,ce:i}=t.vnode,l=z(e,r,o);return l.ref=n,l.ce=i,delete t.vnode.ce,l}const Na=e=>e.type.__isKeepAlive,bR={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Jo(),r=n.ctx;if(!r.renderer)return()=>{const w=t.default&&t.default();return w&&w.length===1?w[0]:w};const o=new Map,i=new Set;let l=null;const a=n.suspense,{renderer:{p:c,m:d,um:p,o:{createElement:h}}}=r,v=h("div");r.activate=(w,E,O,$,P)=>{const R=w.component;d(w,E,O,0,a),c(R.vnode,w,E,O,R,a,$,w.slotScopeIds,P),Cn(()=>{R.isDeactivated=!1,R.a&&Xl(R.a);const k=w.props&&w.props.onVnodeMounted;k&&er(k,R.parent,w)},a)},r.deactivate=w=>{const E=w.component;d(w,v,null,1,a),Cn(()=>{E.da&&Xl(E.da);const O=w.props&&w.props.onVnodeUnmounted;O&&er(O,E.parent,w),E.isDeactivated=!0},a)};function y(w){Ip(w),p(w,n,a,!0)}function b(w){o.forEach((E,O)=>{const $=xh(E.type);$&&(!w||!w($))&&S(O)})}function S(w){const E=o.get(w);!l||!eo(E,l)?y(E):l&&Ip(l),o.delete(w),i.delete(w)}Ut(()=>[e.include,e.exclude],([w,E])=>{w&&b(O=>zl(w,O)),E&&b(O=>!zl(E,O))},{flush:"post",deep:!0});let T=null;const C=()=>{T!=null&&o.set(T,Pp(n.subTree))};return wt(C),Sd(C),hi(()=>{o.forEach(w=>{const{subTree:E,suspense:O}=n,$=Pp(E);if(w.type===$.type&&w.key===$.key){Ip($);const P=$.component.da;P&&Cn(P,O);return}y(w)})}),()=>{if(T=null,!t.default)return null;const w=t.default(),E=w[0];if(w.length>1)return l=null,w;if(!ws(E)||!(E.shapeFlag&4)&&!(E.shapeFlag&128))return l=null,E;let O=Pp(E);const $=O.type,P=xh(ei(O)?O.type.__asyncResolved||{}:$),{include:R,exclude:k,max:W}=e;if(R&&(!P||!zl(R,P))||k&&P&&zl(k,P))return l=O,E;const U=O.key==null?$:O.key,j=o.get(U);return O.el&&(O=Vr(O),E.shapeFlag&128&&(E.ssContent=O)),T=U,j?(O.el=j.el,O.component=j.component,O.transition&&ai(O,O.transition),O.shapeFlag|=512,i.delete(U),i.add(U)):(i.add(U),W&&i.size>parseInt(W,10)&&S(i.values().next().value)),O.shapeFlag|=256,l=O,fw(E.type)?E:O}}},wR=bR;function zl(e,t){return Je(e)?e.some(n=>zl(n,t)):ln(e)?e.split(",").includes(t):oP(e)?e.test(t):!1}function vw(e,t){_w(e,"a",t)}function yw(e,t){_w(e,"da",t)}function _w(e,t,n=Jt){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(wd(t,r,n),n){let o=n.parent;for(;o&&o.parent;)Na(o.parent.vnode)&&SR(r,t,n,o),o=o.parent}}function SR(e,t,n,r){const o=wd(t,e,r,!0);en(()=>{vm(r[t],o)},n)}function Ip(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Pp(e){return e.shapeFlag&128?e.ssContent:e}function wd(e,t,n=Jt,r=!1){if(n){const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...l)=>{if(n.isUnmounted)return;cl(),Ss(n);const a=wr(t,n,e,l);return ys(),dl(),a});return r?o.unshift(i):o.push(i),i}}const Yo=e=>(t,n=Jt)=>(!Gi||e==="sp")&&wd(e,(...r)=>t(...r),n),bw=Yo("bm"),wt=Yo("m"),ww=Yo("bu"),Sd=Yo("u"),hi=Yo("bum"),en=Yo("um"),Sw=Yo("sp"),Ew=Yo("rtg"),$w=Yo("rtc");function xw(e,t=Jt){wd("ec",e,t)}function Tw(e,t){const n=An;if(n===null)return e;const r=$d(n)||n.proxy,o=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[l,a,c,d=jt]=t[i];l&&(nt(l)&&(l={mounted:l,updated:l}),l.deep&&Gs(a),o.push({dir:l,instance:r,value:a,oldValue:void 0,arg:c,modifiers:d}))}return e}function wo(e,t,n,r){const o=e.dirs,i=t&&t.dirs;for(let l=0;l<o.length;l++){const a=o[l];i&&(a.oldValue=i[l].value);let c=a.dir[r];c&&(cl(),wr(c,n,8,[e.el,a,e,t]),dl())}}const Mm="components",ER="directives";function q(e,t){return Dm(Mm,e,!0,t)||e}const Cw=Symbol();function $R(e){return ln(e)?Dm(Mm,e,!1)||e:e||Cw}function xR(e){return Dm(ER,e)}function Dm(e,t,n=!0,r=!1){const o=An||Jt;if(o){const i=o.type;if(e===Mm){const a=xh(i,!1);if(a&&(a===t||a===io(t)||a===cd(io(t))))return i}const l=C_(o[e]||i[e],t)||C_(o.appContext[e],t);return!l&&r?i:l}}function C_(e,t){return e&&(e[t]||e[io(t)]||e[cd(io(t))])}function Ot(e,t,n,r){let o;const i=n&&n[r];if(Je(e)||ln(e)){o=new Array(e.length);for(let l=0,a=e.length;l<a;l++)o[l]=t(e[l],l,void 0,i&&i[l])}else if(typeof e=="number"){o=new Array(e);for(let l=0;l<e;l++)o[l]=t(l+1,l,void 0,i&&i[l])}else if(Kt(e))if(e[Symbol.iterator])o=Array.from(e,(l,a)=>t(l,a,void 0,i&&i[a]));else{const l=Object.keys(e);o=new Array(l.length);for(let a=0,c=l.length;a<c;a++){const d=l[a];o[a]=t(e[d],d,a,i&&i[a])}}else o=[];return n&&(n[r]=o),o}function Ow(e,t){for(let n=0;n<t.length;n++){const r=t[n];if(Je(r))for(let o=0;o<r.length;o++)e[r[o].name]=r[o].fn;else r&&(e[r.name]=r.key?(...o)=>{const i=r.fn(...o);return i&&(i.key=r.key),i}:r.fn)}return e}function yn(e,t,n={},r,o){if(An.isCE||An.parent&&ei(An.parent)&&An.parent.isCE)return t!=="default"&&(n.name=t),z("slot",n,r&&r());let i=e[t];i&&i._c&&(i._d=!1),I();const l=i&&Aw(i(n)),a=Ye(Me,{key:n.key||l&&l.key||`_${t}`},l||(r?r():[]),l&&e._===1?64:-2);return!o&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),i&&i._c&&(i._d=!0),a}function Aw(e){return e.some(t=>ws(t)?!(t.type===Un||t.type===Me&&!Aw(t.children)):!0)?e:null}function TR(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:Gl(r)]=e[r];return n}const gh=e=>e?Gw(e)?$d(e)||e.proxy:gh(e.parent):null,Yl=kn(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>gh(e.parent),$root:e=>gh(e.root),$emit:e=>e.emit,$options:e=>Um(e),$forceUpdate:e=>e.f||(e.f=()=>vd(e.update)),$nextTick:e=>e.n||(e.n=sn.bind(e.proxy)),$watch:e=>vR.bind(e)}),Rp=(e,t)=>e!==jt&&!e.__isScriptSetup&&Et(e,t),vh={get({_:e},t){const{ctx:n,setupState:r,data:o,props:i,accessCache:l,type:a,appContext:c}=e;let d;if(t[0]!=="$"){const y=l[t];if(y!==void 0)switch(y){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return i[t]}else{if(Rp(r,t))return l[t]=1,r[t];if(o!==jt&&Et(o,t))return l[t]=2,o[t];if((d=e.propsOptions[0])&&Et(d,t))return l[t]=3,i[t];if(n!==jt&&Et(n,t))return l[t]=4,n[t];yh&&(l[t]=0)}}const p=Yl[t];let h,v;if(p)return t==="$attrs"&&lr(e,"get",t),p(e);if((h=a.__cssModules)&&(h=h[t]))return h;if(n!==jt&&Et(n,t))return l[t]=4,n[t];if(v=c.config.globalProperties,Et(v,t))return v[t]},set({_:e},t,n){const{data:r,setupState:o,ctx:i}=e;return Rp(o,t)?(o[t]=n,!0):r!==jt&&Et(r,t)?(r[t]=n,!0):Et(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:i}},l){let a;return!!n[l]||e!==jt&&Et(e,l)||Rp(t,l)||(a=i[0])&&Et(a,l)||Et(r,l)||Et(Yl,l)||Et(o.config.globalProperties,l)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Et(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},CR=kn({},vh,{get(e,t){if(t!==Symbol.unscopables)return vh.get(e,t,e)},has(e,t){return t[0]!=="_"&&!XI(t)}});let yh=!0;function OR(e){const t=Um(e),n=e.proxy,r=e.ctx;yh=!1,t.beforeCreate&&O_(t.beforeCreate,e,"bc");const{data:o,computed:i,methods:l,watch:a,provide:c,inject:d,created:p,beforeMount:h,mounted:v,beforeUpdate:y,updated:b,activated:S,deactivated:T,beforeDestroy:C,beforeUnmount:w,destroyed:E,unmounted:O,render:$,renderTracked:P,renderTriggered:R,errorCaptured:k,serverPrefetch:W,expose:U,inheritAttrs:j,components:G,directives:X,filters:ne}=t;if(d&&AR(d,r,null,e.appContext.config.unwrapInjectedRef),l)for(const ke in l){const Ie=l[ke];nt(Ie)&&(r[ke]=Ie.bind(n))}if(o){const ke=o.call(n,n);Kt(ke)&&(e.data=Ts(ke))}if(yh=!0,i)for(const ke in i){const Ie=i[ke],Qe=nt(Ie)?Ie.bind(n,n):nt(Ie.get)?Ie.get.bind(n,n):Eo,ht=!nt(Ie)&&nt(Ie.set)?Ie.set.bind(n):Eo,De=fe({get:Qe,set:ht});Object.defineProperty(r,ke,{enumerable:!0,configurable:!0,get:()=>De.value,set:Xe=>De.value=Xe})}if(a)for(const ke in a)kw(a[ke],r,n,ke);if(c){const ke=nt(c)?c.call(n):c;Reflect.ownKeys(ke).forEach(Ie=>{Qt(Ie,ke[Ie])})}p&&O_(p,e,"c");function Ee(ke,Ie){Je(Ie)?Ie.forEach(Qe=>ke(Qe.bind(n))):Ie&&ke(Ie.bind(n))}if(Ee(bw,h),Ee(wt,v),Ee(ww,y),Ee(Sd,b),Ee(vw,S),Ee(yw,T),Ee(xw,k),Ee($w,P),Ee(Ew,R),Ee(hi,w),Ee(en,O),Ee(Sw,W),Je(U))if(U.length){const ke=e.exposed||(e.exposed={});U.forEach(Ie=>{Object.defineProperty(ke,Ie,{get:()=>n[Ie],set:Qe=>n[Ie]=Qe})})}else e.exposed||(e.exposed={});$&&e.render===Eo&&(e.render=$),j!=null&&(e.inheritAttrs=j),G&&(e.components=G),X&&(e.directives=X)}function AR(e,t,n=Eo,r=!1){Je(e)&&(e=_h(e));for(const o in e){const i=e[o];let l;Kt(i)?"default"in i?l=Ft(i.from||o,i.default,!0):l=Ft(i.from||o):l=Ft(i),pn(l)&&r?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>l.value,set:a=>l.value=a}):t[o]=l}}function O_(e,t,n){wr(Je(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function kw(e,t,n,r){const o=r.includes(".")?mw(n,r):()=>n[r];if(ln(e)){const i=t[e];nt(i)&&Ut(o,i)}else if(nt(e))Ut(o,e.bind(n));else if(Kt(e))if(Je(e))e.forEach(i=>kw(i,t,n,r));else{const i=nt(e.handler)?e.handler.bind(n):t[e.handler];nt(i)&&Ut(o,i,e)}}function Um(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:l}}=e.appContext,a=i.get(t);let c;return a?c=a:!o.length&&!n&&!r?c=t:(c={},o.length&&o.forEach(d=>Ic(c,d,l,!0)),Ic(c,t,l)),Kt(t)&&i.set(t,c),c}function Ic(e,t,n,r=!1){const{mixins:o,extends:i}=t;i&&Ic(e,i,n,!0),o&&o.forEach(l=>Ic(e,l,n,!0));for(const l in t)if(!(r&&l==="expose")){const a=kR[l]||n&&n[l];e[l]=a?a(e[l],t[l]):t[l]}return e}const kR={data:A_,props:zs,emits:zs,methods:zs,computed:zs,beforeCreate:qn,created:qn,beforeMount:qn,mounted:qn,beforeUpdate:qn,updated:qn,beforeDestroy:qn,beforeUnmount:qn,destroyed:qn,unmounted:qn,activated:qn,deactivated:qn,errorCaptured:qn,serverPrefetch:qn,components:zs,directives:zs,watch:PR,provide:A_,inject:IR};function A_(e,t){return t?e?function(){return kn(nt(e)?e.call(this,this):e,nt(t)?t.call(this,this):t)}:t:e}function IR(e,t){return zs(_h(e),_h(t))}function _h(e){if(Je(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function qn(e,t){return e?[...new Set([].concat(e,t))]:t}function zs(e,t){return e?kn(kn(Object.create(null),e),t):t}function PR(e,t){if(!e)return t;if(!t)return e;const n=kn(Object.create(null),e);for(const r in t)n[r]=qn(e[r],t[r]);return n}function RR(e,t,n,r=!1){const o={},i={};Oc(i,Ed,1),e.propsDefaults=Object.create(null),Iw(e,t,o,i);for(const l in e.propsOptions[0])l in o||(o[l]=void 0);n?e.props=r?o:rw(o):e.type.props?e.props=o:e.props=i,e.attrs=i}function LR(e,t,n,r){const{props:o,attrs:i,vnode:{patchFlag:l}}=e,a=He(o),[c]=e.propsOptions;let d=!1;if((r||l>0)&&!(l&16)){if(l&8){const p=e.vnode.dynamicProps;for(let h=0;h<p.length;h++){let v=p[h];if(yd(e.emitsOptions,v))continue;const y=t[v];if(c)if(Et(i,v))y!==i[v]&&(i[v]=y,d=!0);else{const b=io(v);o[b]=bh(c,a,b,y,e,!1)}else y!==i[v]&&(i[v]=y,d=!0)}}}else{Iw(e,t,o,i)&&(d=!0);let p;for(const h in a)(!t||!Et(t,h)&&((p=ud(h))===h||!Et(t,p)))&&(c?n&&(n[h]!==void 0||n[p]!==void 0)&&(o[h]=bh(c,a,h,void 0,e,!0)):delete o[h]);if(i!==a)for(const h in i)(!t||!Et(t,h))&&(delete i[h],d=!0)}d&&Ko(e,"set","$attrs")}function Iw(e,t,n,r){const[o,i]=e.propsOptions;let l=!1,a;if(t)for(let c in t){if(Kl(c))continue;const d=t[c];let p;o&&Et(o,p=io(c))?!i||!i.includes(p)?n[p]=d:(a||(a={}))[p]=d:yd(e.emitsOptions,c)||(!(c in r)||d!==r[c])&&(r[c]=d,l=!0)}if(i){const c=He(n),d=a||jt;for(let p=0;p<i.length;p++){const h=i[p];n[h]=bh(o,c,h,d[h],e,!Et(d,h))}}return l}function bh(e,t,n,r,o,i){const l=e[n];if(l!=null){const a=Et(l,"default");if(a&&r===void 0){const c=l.default;if(l.type!==Function&&nt(c)){const{propsDefaults:d}=o;n in d?r=d[n]:(Ss(o),r=d[n]=c.call(null,t),ys())}else r=c}l[0]&&(i&&!a?r=!1:l[1]&&(r===""||r===ud(n))&&(r=!0))}return r}function Pw(e,t,n=!1){const r=t.propsCache,o=r.get(e);if(o)return o;const i=e.props,l={},a=[];let c=!1;if(!nt(e)){const p=h=>{c=!0;const[v,y]=Pw(h,t,!0);kn(l,v),y&&a.push(...y)};!n&&t.mixins.length&&t.mixins.forEach(p),e.extends&&p(e.extends),e.mixins&&e.mixins.forEach(p)}if(!i&&!c)return Kt(e)&&r.set(e,Ui),Ui;if(Je(i))for(let p=0;p<i.length;p++){const h=io(i[p]);k_(h)&&(l[h]=jt)}else if(i)for(const p in i){const h=io(p);if(k_(h)){const v=i[p],y=l[h]=Je(v)||nt(v)?{type:v}:Object.assign({},v);if(y){const b=R_(Boolean,y.type),S=R_(String,y.type);y[0]=b>-1,y[1]=S<0||b<S,(b>-1||Et(y,"default"))&&a.push(h)}}}const d=[l,a];return Kt(e)&&r.set(e,d),d}function k_(e){return e[0]!=="$"}function I_(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function P_(e,t){return I_(e)===I_(t)}function R_(e,t){return Je(t)?t.findIndex(n=>P_(n,e)):nt(t)&&P_(t,e)?0:-1}const Rw=e=>e[0]==="_"||e==="$stable",Bm=e=>Je(e)?e.map(yr):[yr(e)],FR=(e,t,n)=>{if(t._n)return t;const r=_e((...o)=>Bm(t(...o)),n);return r._c=!1,r},Lw=(e,t,n)=>{const r=e._ctx;for(const o in e){if(Rw(o))continue;const i=e[o];if(nt(i))t[o]=FR(o,i,r);else if(i!=null){const l=Bm(i);t[o]=()=>l}}},Fw=(e,t)=>{const n=Bm(t);e.slots.default=()=>n},NR=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=He(t),Oc(t,"_",n)):Lw(t,e.slots={})}else e.slots={},t&&Fw(e,t);Oc(e.slots,Ed,1)},MR=(e,t,n)=>{const{vnode:r,slots:o}=e;let i=!0,l=jt;if(r.shapeFlag&32){const a=t._;a?n&&a===1?i=!1:(kn(o,t),!n&&a===1&&delete o._):(i=!t.$stable,Lw(t,o)),l=t}else t&&(Fw(e,t),l={default:1});if(i)for(const a in o)!Rw(a)&&!(a in l)&&delete o[a]};function Nw(){return{app:null,config:{isNativeTag:tP,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}}let DR=0;function UR(e,t){return function(r,o=null){nt(r)||(r=Object.assign({},r)),o!=null&&!Kt(o)&&(o=null);const i=Nw(),l=new Set;let a=!1;const c=i.app={_uid:DR++,_component:r,_props:o,_container:null,_context:i,_instance:null,version:o2,get config(){return i.config},set config(d){},use(d,...p){return l.has(d)||(d&&nt(d.install)?(l.add(d),d.install(c,...p)):nt(d)&&(l.add(d),d(c,...p))),c},mixin(d){return i.mixins.includes(d)||i.mixins.push(d),c},component(d,p){return p?(i.components[d]=p,c):i.components[d]},directive(d,p){return p?(i.directives[d]=p,c):i.directives[d]},mount(d,p,h){if(!a){const v=z(r,o);return v.appContext=i,p&&t?t(v,d):e(v,d,h),a=!0,c._container=d,d.__vue_app__=c,$d(v.component)||v.component.proxy}},unmount(){a&&(e(null,c._container),delete c._container.__vue_app__)},provide(d,p){return i.provides[d]=p,c}};return c}}function Pc(e,t,n,r,o=!1){if(Je(e)){e.forEach((v,y)=>Pc(v,t&&(Je(t)?t[y]:t),n,r,o));return}if(ei(r)&&!o)return;const i=r.shapeFlag&4?$d(r.component)||r.component.proxy:r.el,l=o?null:i,{i:a,r:c}=e,d=t&&t.r,p=a.refs===jt?a.refs={}:a.refs,h=a.setupState;if(d!=null&&d!==c&&(ln(d)?(p[d]=null,Et(h,d)&&(h[d]=null)):pn(d)&&(d.value=null)),nt(c))zo(c,a,12,[l,p]);else{const v=ln(c),y=pn(c);if(v||y){const b=()=>{if(e.f){const S=v?Et(h,c)?h[c]:p[c]:c.value;o?Je(S)&&vm(S,i):Je(S)?S.includes(i)||S.push(i):v?(p[c]=[i],Et(h,c)&&(h[c]=p[c])):(c.value=[i],e.k&&(p[e.k]=c.value))}else v?(p[c]=l,Et(h,c)&&(h[c]=l)):y&&(c.value=l,e.k&&(p[e.k]=l))};l?(b.id=-1,Cn(b,n)):b()}}}let as=!1;const Zu=e=>/svg/.test(e.namespaceURI)&&e.tagName!=="foreignObject",Qu=e=>e.nodeType===8;function BR(e){const{mt:t,p:n,o:{patchProp:r,createText:o,nextSibling:i,parentNode:l,remove:a,insert:c,createComment:d}}=e,p=(C,w)=>{if(!w.hasChildNodes()){n(null,C,w),kc(),w._vnode=C;return}as=!1,h(w.firstChild,C,null,null,null),kc(),w._vnode=C,as&&console.error("Hydration completed but contains mismatches.")},h=(C,w,E,O,$,P=!1)=>{const R=Qu(C)&&C.data==="[",k=()=>S(C,w,E,O,$,R),{type:W,ref:U,shapeFlag:j,patchFlag:G}=w;let X=C.nodeType;w.el=C,G===-2&&(P=!1,w.dynamicChildren=null);let ne=null;switch(W){case ui:X!==3?w.children===""?(c(w.el=o(""),l(C),C),ne=C):ne=k():(C.data!==w.children&&(as=!0,C.data=w.children),ne=i(C));break;case Un:X!==8||R?ne=k():ne=i(C);break;case ti:if(R&&(C=i(C),X=C.nodeType),X===1||X===3){ne=C;const xe=!w.children.length;for(let Ee=0;Ee<w.staticCount;Ee++)xe&&(w.children+=ne.nodeType===1?ne.outerHTML:ne.data),Ee===w.staticCount-1&&(w.anchor=ne),ne=i(ne);return R?i(ne):ne}else k();break;case Me:R?ne=b(C,w,E,O,$,P):ne=k();break;default:if(j&1)X!==1||w.type.toLowerCase()!==C.tagName.toLowerCase()?ne=k():ne=v(C,w,E,O,$,P);else if(j&6){w.slotScopeIds=$;const xe=l(C);if(t(w,xe,null,E,O,Zu(xe),P),ne=R?T(C):i(C),ne&&Qu(ne)&&ne.data==="teleport end"&&(ne=i(ne)),ei(w)){let Ee;R?(Ee=z(Me),Ee.anchor=ne?ne.previousSibling:xe.lastChild):Ee=C.nodeType===3?Be(""):z("div"),Ee.el=C,w.component.subTree=Ee}}else j&64?X!==8?ne=k():ne=w.type.hydrate(C,w,E,O,$,P,e,y):j&128&&(ne=w.type.hydrate(C,w,E,O,Zu(l(C)),$,P,e,h))}return U!=null&&Pc(U,null,O,w),ne},v=(C,w,E,O,$,P)=>{P=P||!!w.dynamicChildren;const{type:R,props:k,patchFlag:W,shapeFlag:U,dirs:j}=w,G=R==="input"&&j||R==="option";if(G||W!==-1){if(j&&wo(w,null,E,"created"),k)if(G||!P||W&48)for(const ne in k)(G&&ne.endsWith("value")||ld(ne)&&!Kl(ne))&&r(C,ne,null,k[ne],!1,void 0,E);else k.onClick&&r(C,"onClick",null,k.onClick,!1,void 0,E);let X;if((X=k&&k.onVnodeBeforeMount)&&er(X,E,w),j&&wo(w,null,E,"beforeMount"),((X=k&&k.onVnodeMounted)||j)&&pw(()=>{X&&er(X,E,w),j&&wo(w,null,E,"mounted")},O),U&16&&!(k&&(k.innerHTML||k.textContent))){let ne=y(C.firstChild,w,C,E,O,$,P);for(;ne;){as=!0;const xe=ne;ne=ne.nextSibling,a(xe)}}else U&8&&C.textContent!==w.children&&(as=!0,C.textContent=w.children)}return C.nextSibling},y=(C,w,E,O,$,P,R)=>{R=R||!!w.dynamicChildren;const k=w.children,W=k.length;for(let U=0;U<W;U++){const j=R?k[U]:k[U]=yr(k[U]);if(C)C=h(C,j,O,$,P,R);else{if(j.type===ui&&!j.children)continue;as=!0,n(null,j,E,null,O,$,Zu(E),P)}}return C},b=(C,w,E,O,$,P)=>{const{slotScopeIds:R}=w;R&&($=$?$.concat(R):R);const k=l(C),W=y(i(C),w,k,E,O,$,P);return W&&Qu(W)&&W.data==="]"?i(w.anchor=W):(as=!0,c(w.anchor=d("]"),k,W),W)},S=(C,w,E,O,$,P)=>{if(as=!0,w.el=null,P){const W=T(C);for(;;){const U=i(C);if(U&&U!==W)a(U);else break}}const R=i(C),k=l(C);return a(C),n(null,w,k,R,E,O,Zu(k),$),R},T=C=>{let w=0;for(;C;)if(C=i(C),C&&Qu(C)&&(C.data==="["&&w++,C.data==="]")){if(w===0)return i(C);w--}return C};return[p,h]}const Cn=pw;function Mw(e){return Uw(e)}function Dw(e){return Uw(e,BR)}function Uw(e,t){const n=cP();n.__VUE__=!0;const{insert:r,remove:o,patchProp:i,createElement:l,createText:a,createComment:c,setText:d,setElementText:p,parentNode:h,nextSibling:v,setScopeId:y=Eo,insertStaticContent:b}=e,S=(M,V,Z,ue=null,le=null,ye=null,Oe=!1,we=null,Se=!!V.dynamicChildren)=>{if(M===V)return;M&&!eo(M,V)&&(ue=We(M),Xe(M,le,ye,!0),M=null),V.patchFlag===-2&&(Se=!1,V.dynamicChildren=null);const{type:ae,ref:Fe,shapeFlag:Pe}=V;switch(ae){case ui:T(M,V,Z,ue);break;case Un:C(M,V,Z,ue);break;case ti:M==null&&w(V,Z,ue,Oe);break;case Me:G(M,V,Z,ue,le,ye,Oe,we,Se);break;default:Pe&1?$(M,V,Z,ue,le,ye,Oe,we,Se):Pe&6?X(M,V,Z,ue,le,ye,Oe,we,Se):(Pe&64||Pe&128)&&ae.process(M,V,Z,ue,le,ye,Oe,we,Se,rt)}Fe!=null&&le&&Pc(Fe,M&&M.ref,ye,V||M,!V)},T=(M,V,Z,ue)=>{if(M==null)r(V.el=a(V.children),Z,ue);else{const le=V.el=M.el;V.children!==M.children&&d(le,V.children)}},C=(M,V,Z,ue)=>{M==null?r(V.el=c(V.children||""),Z,ue):V.el=M.el},w=(M,V,Z,ue)=>{[M.el,M.anchor]=b(M.children,V,Z,ue,M.el,M.anchor)},E=({el:M,anchor:V},Z,ue)=>{let le;for(;M&&M!==V;)le=v(M),r(M,Z,ue),M=le;r(V,Z,ue)},O=({el:M,anchor:V})=>{let Z;for(;M&&M!==V;)Z=v(M),o(M),M=Z;o(V)},$=(M,V,Z,ue,le,ye,Oe,we,Se)=>{Oe=Oe||V.type==="svg",M==null?P(V,Z,ue,le,ye,Oe,we,Se):W(M,V,le,ye,Oe,we,Se)},P=(M,V,Z,ue,le,ye,Oe,we)=>{let Se,ae;const{type:Fe,props:Pe,shapeFlag:je,transition:ze,dirs:st}=M;if(Se=M.el=l(M.type,ye,Pe&&Pe.is,Pe),je&8?p(Se,M.children):je&16&&k(M.children,Se,null,ue,le,ye&&Fe!=="foreignObject",Oe,we),st&&wo(M,null,ue,"created"),R(Se,M,M.scopeId,Oe,ue),Pe){for(const ft in Pe)ft!=="value"&&!Kl(ft)&&i(Se,ft,null,Pe[ft],ye,M.children,ue,le,Ce);"value"in Pe&&i(Se,"value",null,Pe.value),(ae=Pe.onVnodeBeforeMount)&&er(ae,ue,M)}st&&wo(M,null,ue,"beforeMount");const yt=(!le||le&&!le.pendingBranch)&&ze&&!ze.persisted;yt&&ze.beforeEnter(Se),r(Se,V,Z),((ae=Pe&&Pe.onVnodeMounted)||yt||st)&&Cn(()=>{ae&&er(ae,ue,M),yt&&ze.enter(Se),st&&wo(M,null,ue,"mounted")},le)},R=(M,V,Z,ue,le)=>{if(Z&&y(M,Z),ue)for(let ye=0;ye<ue.length;ye++)y(M,ue[ye]);if(le){let ye=le.subTree;if(V===ye){const Oe=le.vnode;R(M,Oe,Oe.scopeId,Oe.slotScopeIds,le.parent)}}},k=(M,V,Z,ue,le,ye,Oe,we,Se=0)=>{for(let ae=Se;ae<M.length;ae++){const Fe=M[ae]=we?ps(M[ae]):yr(M[ae]);S(null,Fe,V,Z,ue,le,ye,Oe,we)}},W=(M,V,Z,ue,le,ye,Oe)=>{const we=V.el=M.el;let{patchFlag:Se,dynamicChildren:ae,dirs:Fe}=V;Se|=M.patchFlag&16;const Pe=M.props||jt,je=V.props||jt;let ze;Z&&Bs(Z,!1),(ze=je.onVnodeBeforeUpdate)&&er(ze,Z,V,M),Fe&&wo(V,M,Z,"beforeUpdate"),Z&&Bs(Z,!0);const st=le&&V.type!=="foreignObject";if(ae?U(M.dynamicChildren,ae,we,Z,ue,st,ye):Oe||Ie(M,V,we,null,Z,ue,st,ye,!1),Se>0){if(Se&16)j(we,V,Pe,je,Z,ue,le);else if(Se&2&&Pe.class!==je.class&&i(we,"class",null,je.class,le),Se&4&&i(we,"style",Pe.style,je.style,le),Se&8){const yt=V.dynamicProps;for(let ft=0;ft<yt.length;ft++){const Ht=yt[ft],Vn=Pe[Ht],go=je[Ht];(go!==Vn||Ht==="value")&&i(we,Ht,Vn,go,le,M.children,Z,ue,Ce)}}Se&1&&M.children!==V.children&&p(we,V.children)}else!Oe&&ae==null&&j(we,V,Pe,je,Z,ue,le);((ze=je.onVnodeUpdated)||Fe)&&Cn(()=>{ze&&er(ze,Z,V,M),Fe&&wo(V,M,Z,"updated")},ue)},U=(M,V,Z,ue,le,ye,Oe)=>{for(let we=0;we<V.length;we++){const Se=M[we],ae=V[we],Fe=Se.el&&(Se.type===Me||!eo(Se,ae)||Se.shapeFlag&70)?h(Se.el):Z;S(Se,ae,Fe,null,ue,le,ye,Oe,!0)}},j=(M,V,Z,ue,le,ye,Oe)=>{if(Z!==ue){if(Z!==jt)for(const we in Z)!Kl(we)&&!(we in ue)&&i(M,we,Z[we],null,Oe,V.children,le,ye,Ce);for(const we in ue){if(Kl(we))continue;const Se=ue[we],ae=Z[we];Se!==ae&&we!=="value"&&i(M,we,ae,Se,Oe,V.children,le,ye,Ce)}"value"in ue&&i(M,"value",Z.value,ue.value)}},G=(M,V,Z,ue,le,ye,Oe,we,Se)=>{const ae=V.el=M?M.el:a(""),Fe=V.anchor=M?M.anchor:a("");let{patchFlag:Pe,dynamicChildren:je,slotScopeIds:ze}=V;ze&&(we=we?we.concat(ze):ze),M==null?(r(ae,Z,ue),r(Fe,Z,ue),k(V.children,Z,Fe,le,ye,Oe,we,Se)):Pe>0&&Pe&64&&je&&M.dynamicChildren?(U(M.dynamicChildren,je,Z,le,ye,Oe,we),(V.key!=null||le&&V===le.subTree)&&jm(M,V,!0)):Ie(M,V,Z,Fe,le,ye,Oe,we,Se)},X=(M,V,Z,ue,le,ye,Oe,we,Se)=>{V.slotScopeIds=we,M==null?V.shapeFlag&512?le.ctx.activate(V,Z,ue,Oe,Se):ne(V,Z,ue,le,ye,Oe,Se):xe(M,V,Se)},ne=(M,V,Z,ue,le,ye,Oe)=>{const we=M.component=Kw(M,ue,le);if(Na(M)&&(we.ctx.renderer=rt),Xw(we),we.asyncDep){if(le&&le.registerDep(we,Ee),!M.el){const Se=we.subTree=z(Un);C(null,Se,V,Z)}return}Ee(we,M,V,Z,le,ye,Oe)},xe=(M,V,Z)=>{const ue=V.component=M.component;if(uR(M,V,Z))if(ue.asyncDep&&!ue.asyncResolved){ke(ue,V,Z);return}else ue.next=V,eR(ue.update),ue.update();else V.el=M.el,ue.vnode=V},Ee=(M,V,Z,ue,le,ye,Oe)=>{const we=()=>{if(M.isMounted){let{next:Fe,bu:Pe,u:je,parent:ze,vnode:st}=M,yt=Fe,ft;Bs(M,!1),Fe?(Fe.el=st.el,ke(M,Fe,Oe)):Fe=st,Pe&&Xl(Pe),(ft=Fe.props&&Fe.props.onVnodeBeforeUpdate)&&er(ft,ze,Fe,st),Bs(M,!0);const Ht=mc(M),Vn=M.subTree;M.subTree=Ht,S(Vn,Ht,h(Vn.el),We(Vn),M,le,ye),Fe.el=Ht.el,yt===null&&Rm(M,Ht.el),je&&Cn(je,le),(ft=Fe.props&&Fe.props.onVnodeUpdated)&&Cn(()=>er(ft,ze,Fe,st),le)}else{let Fe;const{el:Pe,props:je}=V,{bm:ze,m:st,parent:yt}=M,ft=ei(V);if(Bs(M,!1),ze&&Xl(ze),!ft&&(Fe=je&&je.onVnodeBeforeMount)&&er(Fe,yt,V),Bs(M,!0),Pe&&an){const Ht=()=>{M.subTree=mc(M),an(Pe,M.subTree,M,le,null)};ft?V.type.__asyncLoader().then(()=>!M.isUnmounted&&Ht()):Ht()}else{const Ht=M.subTree=mc(M);S(null,Ht,Z,ue,M,le,ye),V.el=Ht.el}if(st&&Cn(st,le),!ft&&(Fe=je&&je.onVnodeMounted)){const Ht=V;Cn(()=>er(Fe,yt,Ht),le)}(V.shapeFlag&256||yt&&ei(yt.vnode)&&yt.vnode.shapeFlag&256)&&M.a&&Cn(M.a,le),M.isMounted=!0,V=Z=ue=null}},Se=M.effect=new La(we,()=>vd(ae),M.scope),ae=M.update=()=>Se.run();ae.id=M.uid,Bs(M,!0),ae()},ke=(M,V,Z)=>{V.component=M;const ue=M.vnode.props;M.vnode=V,M.next=null,LR(M,V.props,ue,Z),MR(M,V.children,Z),cl(),E_(),dl()},Ie=(M,V,Z,ue,le,ye,Oe,we,Se=!1)=>{const ae=M&&M.children,Fe=M?M.shapeFlag:0,Pe=V.children,{patchFlag:je,shapeFlag:ze}=V;if(je>0){if(je&128){ht(ae,Pe,Z,ue,le,ye,Oe,we,Se);return}else if(je&256){Qe(ae,Pe,Z,ue,le,ye,Oe,we,Se);return}}ze&8?(Fe&16&&Ce(ae,le,ye),Pe!==ae&&p(Z,Pe)):Fe&16?ze&16?ht(ae,Pe,Z,ue,le,ye,Oe,we,Se):Ce(ae,le,ye,!0):(Fe&8&&p(Z,""),ze&16&&k(Pe,Z,ue,le,ye,Oe,we,Se))},Qe=(M,V,Z,ue,le,ye,Oe,we,Se)=>{M=M||Ui,V=V||Ui;const ae=M.length,Fe=V.length,Pe=Math.min(ae,Fe);let je;for(je=0;je<Pe;je++){const ze=V[je]=Se?ps(V[je]):yr(V[je]);S(M[je],ze,Z,null,le,ye,Oe,we,Se)}ae>Fe?Ce(M,le,ye,!0,!1,Pe):k(V,Z,ue,le,ye,Oe,we,Se,Pe)},ht=(M,V,Z,ue,le,ye,Oe,we,Se)=>{let ae=0;const Fe=V.length;let Pe=M.length-1,je=Fe-1;for(;ae<=Pe&&ae<=je;){const ze=M[ae],st=V[ae]=Se?ps(V[ae]):yr(V[ae]);if(eo(ze,st))S(ze,st,Z,null,le,ye,Oe,we,Se);else break;ae++}for(;ae<=Pe&&ae<=je;){const ze=M[Pe],st=V[je]=Se?ps(V[je]):yr(V[je]);if(eo(ze,st))S(ze,st,Z,null,le,ye,Oe,we,Se);else break;Pe--,je--}if(ae>Pe){if(ae<=je){const ze=je+1,st=ze<Fe?V[ze].el:ue;for(;ae<=je;)S(null,V[ae]=Se?ps(V[ae]):yr(V[ae]),Z,st,le,ye,Oe,we,Se),ae++}}else if(ae>je)for(;ae<=Pe;)Xe(M[ae],le,ye,!0),ae++;else{const ze=ae,st=ae,yt=new Map;for(ae=st;ae<=je;ae++){const Sn=V[ae]=Se?ps(V[ae]):yr(V[ae]);Sn.key!=null&&yt.set(Sn.key,ae)}let ft,Ht=0;const Vn=je-st+1;let go=!1,_i=0;const Ao=new Array(Vn);for(ae=0;ae<Vn;ae++)Ao[ae]=0;for(ae=ze;ae<=Pe;ae++){const Sn=M[ae];if(Ht>=Vn){Xe(Sn,le,ye,!0);continue}let Xn;if(Sn.key!=null)Xn=yt.get(Sn.key);else for(ft=st;ft<=je;ft++)if(Ao[ft-st]===0&&eo(Sn,V[ft])){Xn=ft;break}Xn===void 0?Xe(Sn,le,ye,!0):(Ao[Xn-st]=ae+1,Xn>=_i?_i=Xn:go=!0,S(Sn,V[Xn],Z,null,le,ye,Oe,we,Se),Ht++)}const bi=go?jR(Ao):Ui;for(ft=bi.length-1,ae=Vn-1;ae>=0;ae--){const Sn=st+ae,Xn=V[Sn],wi=Sn+1<Fe?V[Sn+1].el:ue;Ao[ae]===0?S(null,Xn,Z,wi,le,ye,Oe,we,Se):go&&(ft<0||ae!==bi[ft]?De(Xn,Z,wi,2):ft--)}}},De=(M,V,Z,ue,le=null)=>{const{el:ye,type:Oe,transition:we,children:Se,shapeFlag:ae}=M;if(ae&6){De(M.component.subTree,V,Z,ue);return}if(ae&128){M.suspense.move(V,Z,ue);return}if(ae&64){Oe.move(M,V,Z,rt);return}if(Oe===Me){r(ye,V,Z);for(let Pe=0;Pe<Se.length;Pe++)De(Se[Pe],V,Z,ue);r(M.anchor,V,Z);return}if(Oe===ti){E(M,V,Z);return}if(ue!==2&&ae&1&&we)if(ue===0)we.beforeEnter(ye),r(ye,V,Z),Cn(()=>we.enter(ye),le);else{const{leave:Pe,delayLeave:je,afterLeave:ze}=we,st=()=>r(ye,V,Z),yt=()=>{Pe(ye,()=>{st(),ze&&ze()})};je?je(ye,st,yt):yt()}else r(ye,V,Z)},Xe=(M,V,Z,ue=!1,le=!1)=>{const{type:ye,props:Oe,ref:we,children:Se,dynamicChildren:ae,shapeFlag:Fe,patchFlag:Pe,dirs:je}=M;if(we!=null&&Pc(we,null,Z,M,!0),Fe&256){V.ctx.deactivate(M);return}const ze=Fe&1&&je,st=!ei(M);let yt;if(st&&(yt=Oe&&Oe.onVnodeBeforeUnmount)&&er(yt,V,M),Fe&6)ve(M.component,Z,ue);else{if(Fe&128){M.suspense.unmount(Z,ue);return}ze&&wo(M,null,V,"beforeUnmount"),Fe&64?M.type.remove(M,V,Z,le,rt,ue):ae&&(ye!==Me||Pe>0&&Pe&64)?Ce(ae,V,Z,!1,!0):(ye===Me&&Pe&384||!le&&Fe&16)&&Ce(Se,V,Z),ue&&Q(M)}(st&&(yt=Oe&&Oe.onVnodeUnmounted)||ze)&&Cn(()=>{yt&&er(yt,V,M),ze&&wo(M,null,V,"unmounted")},Z)},Q=M=>{const{type:V,el:Z,anchor:ue,transition:le}=M;if(V===Me){ce(Z,ue);return}if(V===ti){O(M);return}const ye=()=>{o(Z),le&&!le.persisted&&le.afterLeave&&le.afterLeave()};if(M.shapeFlag&1&&le&&!le.persisted){const{leave:Oe,delayLeave:we}=le,Se=()=>Oe(Z,ye);we?we(M.el,ye,Se):Se()}else ye()},ce=(M,V)=>{let Z;for(;M!==V;)Z=v(M),o(M),M=Z;o(V)},ve=(M,V,Z)=>{const{bum:ue,scope:le,update:ye,subTree:Oe,um:we}=M;ue&&Xl(ue),le.stop(),ye&&(ye.active=!1,Xe(Oe,M,V,Z)),we&&Cn(we,V),Cn(()=>{M.isUnmounted=!0},V),V&&V.pendingBranch&&!V.isUnmounted&&M.asyncDep&&!M.asyncResolved&&M.suspenseId===V.pendingId&&(V.deps--,V.deps===0&&V.resolve())},Ce=(M,V,Z,ue=!1,le=!1,ye=0)=>{for(let Oe=ye;Oe<M.length;Oe++)Xe(M[Oe],V,Z,ue,le)},We=M=>M.shapeFlag&6?We(M.component.subTree):M.shapeFlag&128?M.suspense.next():v(M.anchor||M.el),Ve=(M,V,Z)=>{M==null?V._vnode&&Xe(V._vnode,null,null,!0):S(V._vnode||null,M,V,null,null,null,Z),E_(),kc(),V._vnode=M},rt={p:S,um:Xe,m:De,r:Q,mt:ne,mc:k,pc:Ie,pbc:U,n:We,o:e};let wn,an;return t&&([wn,an]=t(rt)),{render:Ve,hydrate:wn,createApp:UR(Ve,wn)}}function Bs({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function jm(e,t,n=!1){const r=e.children,o=t.children;if(Je(r)&&Je(o))for(let i=0;i<r.length;i++){const l=r[i];let a=o[i];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=o[i]=ps(o[i]),a.el=l.el),n||jm(l,a)),a.type===ui&&(a.el=l.el)}}function jR(e){const t=e.slice(),n=[0];let r,o,i,l,a;const c=e.length;for(r=0;r<c;r++){const d=e[r];if(d!==0){if(o=n[n.length-1],e[o]<d){t[r]=o,n.push(r);continue}for(i=0,l=n.length-1;i<l;)a=i+l>>1,e[n[a]]<d?i=a+1:l=a;d<e[n[i]]&&(i>0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,l=n[i-1];i-- >0;)n[i]=l,l=t[l];return n}const VR=e=>e.__isTeleport,Jl=e=>e&&(e.disabled||e.disabled===""),L_=e=>typeof SVGElement<"u"&&e instanceof SVGElement,wh=(e,t)=>{const n=e&&e.to;return ln(n)?t?t(n):null:n},HR={__isTeleport:!0,process(e,t,n,r,o,i,l,a,c,d){const{mc:p,pc:h,pbc:v,o:{insert:y,querySelector:b,createText:S,createComment:T}}=d,C=Jl(t.props);let{shapeFlag:w,children:E,dynamicChildren:O}=t;if(e==null){const $=t.el=S(""),P=t.anchor=S("");y($,n,r),y(P,n,r);const R=t.target=wh(t.props,b),k=t.targetAnchor=S("");R&&(y(k,R),l=l||L_(R));const W=(U,j)=>{w&16&&p(E,U,j,o,i,l,a,c)};C?W(n,P):R&&W(R,k)}else{t.el=e.el;const $=t.anchor=e.anchor,P=t.target=e.target,R=t.targetAnchor=e.targetAnchor,k=Jl(e.props),W=k?n:P,U=k?$:R;if(l=l||L_(P),O?(v(e.dynamicChildren,O,W,o,i,l,a),jm(e,t,!0)):c||h(e,t,W,U,o,i,l,a,!1),C)k||ec(t,n,$,d,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const j=t.target=wh(t.props,b);j&&ec(t,j,null,d,0)}else k&&ec(t,P,R,d,1)}jw(t)},remove(e,t,n,r,{um:o,o:{remove:i}},l){const{shapeFlag:a,children:c,anchor:d,targetAnchor:p,target:h,props:v}=e;if(h&&i(p),(l||!Jl(v))&&(i(d),a&16))for(let y=0;y<c.length;y++){const b=c[y];o(b,t,n,!0,!!b.dynamicChildren)}},move:ec,hydrate:zR};function ec(e,t,n,{o:{insert:r},m:o},i=2){i===0&&r(e.targetAnchor,t,n);const{el:l,anchor:a,shapeFlag:c,children:d,props:p}=e,h=i===2;if(h&&r(l,t,n),(!h||Jl(p))&&c&16)for(let v=0;v<d.length;v++)o(d[v],t,n,2);h&&r(a,t,n)}function zR(e,t,n,r,o,i,{o:{nextSibling:l,parentNode:a,querySelector:c}},d){const p=t.target=wh(t.props,c);if(p){const h=p._lpa||p.firstChild;if(t.shapeFlag&16)if(Jl(t.props))t.anchor=d(l(e),t,a(e),n,r,o,i),t.targetAnchor=h;else{t.anchor=l(e);let v=h;for(;v;)if(v=l(v),v&&v.nodeType===8&&v.data==="teleport anchor"){t.targetAnchor=v,p._lpa=t.targetAnchor&&l(t.targetAnchor);break}d(h,t,p,n,r,o,i)}jw(t)}return t.anchor&&l(t.anchor)}const Bw=HR;function jw(e){const t=e.ctx;if(t&&t.ut){let n=e.children[0].el;for(;n!==e.targetAnchor;)n.nodeType===1&&n.setAttribute("data-v-owner",t.uid),n=n.nextSibling;t.ut()}}const Me=Symbol(void 0),ui=Symbol(void 0),Un=Symbol(void 0),ti=Symbol(void 0),Zl=[];let tr=null;function I(e=!1){Zl.push(tr=e?null:[])}function Vw(){Zl.pop(),tr=Zl[Zl.length-1]||null}let ci=1;function Sh(e){ci+=e}function Hw(e){return e.dynamicChildren=ci>0?tr||Ui:null,Vw(),ci>0&&tr&&tr.push(e),e}function F(e,t,n,r,o,i){return Hw(m(e,t,n,r,o,i,!0))}function Ye(e,t,n,r,o){return Hw(z(e,t,n,r,o,!0))}function ws(e){return e?e.__v_isVNode===!0:!1}function eo(e,t){return e.type===t.type&&e.key===t.key}function WR(e){}const Ed="__vInternal",zw=({key:e})=>e??null,gc=({ref:e,ref_key:t,ref_for:n})=>e!=null?ln(e)||pn(e)||nt(e)?{i:An,r:e,k:t,f:!!n}:e:null;function m(e,t=null,n=null,r=0,o=null,i=e===Me?0:1,l=!1,a=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&zw(t),ref:t&&gc(t),scopeId:_d,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:An};return a?(Vm(c,n),i&128&&e.normalize(c)):n&&(c.shapeFlag|=ln(n)?8:16),ci>0&&!l&&tr&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&&tr.push(c),c}const z=qR;function qR(e,t=null,n=null,r=0,o=null,i=!1){if((!e||e===Cw)&&(e=Un),ws(e)){const a=Vr(e,t,!0);return n&&Vm(a,n),ci>0&&!i&&tr&&(a.shapeFlag&6?tr[tr.indexOf(e)]=a:tr.push(a)),a.patchFlag|=-2,a}if(QR(e)&&(e=e.__vccOpts),t){t=Ww(t);let{class:a,style:c}=t;a&&!ln(a)&&(t.class=gt(a)),Kt(c)&&(xm(c)&&!Je(c)&&(c=kn({},c)),t.style=so(c))}const l=ln(e)?1:fw(e)?128:VR(e)?64:Kt(e)?4:nt(e)?2:0;return m(e,t,n,r,o,l,i,!0)}function Ww(e){return e?xm(e)||Ed in e?kn({},e):e:null}function Vr(e,t,n=!1){const{props:r,ref:o,patchFlag:i,children:l}=e,a=t?qw(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&zw(a),ref:t&&t.ref?n&&o?Je(o)?o.concat(gc(t)):[o,gc(t)]:gc(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Me?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Vr(e.ssContent),ssFallback:e.ssFallback&&Vr(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Be(e=" ",t=0){return z(ui,null,e,t)}function KR(e,t){const n=z(ti,null,e);return n.staticCount=t,n}function Te(e="",t=!1){return t?(I(),Ye(Un,null,e)):z(Un,null,e)}function yr(e){return e==null||typeof e=="boolean"?z(Un):Je(e)?z(Me,null,e.slice()):typeof e=="object"?ps(e):z(ui,null,String(e))}function ps(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Vr(e)}function Vm(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Je(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),Vm(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(Ed in t)?t._ctx=An:o===3&&An&&(An.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else nt(t)?(t={default:t,_ctx:An},n=32):(t=String(t),r&64?(n=16,t=[Be(t)]):n=8);e.children=t,e.shapeFlag|=n}function qw(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const o in r)if(o==="class")t.class!==r.class&&(t.class=gt([t.class,r.class]));else if(o==="style")t.style=so([t.style,r.style]);else if(ld(o)){const i=t[o],l=r[o];l&&i!==l&&!(Je(i)&&i.includes(l))&&(t[o]=i?[].concat(i,l):l)}else o!==""&&(t[o]=r[o])}return t}function er(e,t,n,r=null){wr(e,t,7,[n,r])}const GR=Nw();let XR=0;function Kw(e,t,n){const r=e.type,o=(t?t.appContext:e.appContext)||GR,i={uid:XR++,vnode:e,type:r,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,scope:new wm(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Pw(r,o),emitsOptions:dw(r,o),emit:null,emitted:null,propsDefaults:jt,inheritAttrs:r.inheritAttrs,ctx:jt,data:jt,props:jt,attrs:jt,slots:jt,refs:jt,setupState:jt,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 i.ctx={_:i},i.root=t?t.root:i,i.emit=nR.bind(null,i),e.ce&&e.ce(i),i}let Jt=null;const Jo=()=>Jt||An,Ss=e=>{Jt=e,e.scope.on()},ys=()=>{Jt&&Jt.scope.off(),Jt=null};function Gw(e){return e.vnode.shapeFlag&4}let Gi=!1;function Xw(e,t=!1){Gi=t;const{props:n,children:r}=e.vnode,o=Gw(e);RR(e,n,o,t),NR(e,r);const i=o?YR(e,t):void 0;return Gi=!1,i}function YR(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Tm(new Proxy(e.ctx,vh));const{setup:r}=n;if(r){const o=e.setupContext=r.length>1?Zw(e):null;Ss(e),cl();const i=zo(r,e,0,[e.props,o]);if(dl(),ys(),_m(i)){if(i.then(ys,ys),t)return i.then(l=>{Eh(e,l,t)}).catch(l=>{pi(l,e,0)});e.asyncDep=i}else Eh(e,i,t)}else Jw(e,t)}function Eh(e,t,n){nt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Kt(t)&&(e.setupState=Am(t)),Jw(e,n)}let Rc,$h;function Yw(e){Rc=e,$h=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,CR))}}const JR=()=>!Rc;function Jw(e,t,n){const r=e.type;if(!e.render){if(!t&&Rc&&!r.render){const o=r.template||Um(e).template;if(o){const{isCustomElement:i,compilerOptions:l}=e.appContext.config,{delimiters:a,compilerOptions:c}=r,d=kn(kn({isCustomElement:i,delimiters:a},l),c);r.render=Rc(o,d)}}e.render=r.render||Eo,$h&&$h(e)}Ss(e),cl(),OR(e),dl(),ys()}function ZR(e){return new Proxy(e.attrs,{get(t,n){return lr(e,"get","$attrs"),t[n]}})}function Zw(e){const t=r=>{e.exposed=r||{}};let n;return{get attrs(){return n||(n=ZR(e))},slots:e.slots,emit:e.emit,expose:t}}function $d(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Am(Tm(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Yl)return Yl[n](e)},has(t,n){return n in t||n in Yl}}))}function xh(e,t=!0){return nt(e)?e.displayName||e.name:e.name||t&&e.__name}function QR(e){return nt(e)&&"__vccOpts"in e}const fe=(e,t)=>XP(e,t,Gi);function eL(){return null}function tL(){return null}function nL(e){}function rL(e,t){return null}function Qw(){return e2().slots}function oL(){return e2().attrs}function e2(){const e=Jo();return e.setupContext||(e.setupContext=Zw(e))}function sL(e,t){const n=Je(e)?e.reduce((r,o)=>(r[o]={},r),{}):e;for(const r in t){const o=n[r];o?Je(o)||nt(o)?n[r]={type:o,default:t[r]}:o.default=t[r]:o===null&&(n[r]={default:t[r]})}return n}function iL(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function lL(e){const t=Jo();let n=e();return ys(),_m(n)&&(n=n.catch(r=>{throw Ss(t),r})),[n,()=>Ss(t)]}function pt(e,t,n){const r=arguments.length;return r===2?Kt(t)&&!Je(t)?ws(t)?z(e,null,[t]):z(e,t):z(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&ws(n)&&(n=[n]),z(e,t,n))}const t2=Symbol(""),n2=()=>Ft(t2);function aL(){}function uL(e,t,n,r){const o=n[r];if(o&&r2(o,e))return o;const i=t();return i.memo=e.slice(),n[r]=i}function r2(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r<n.length;r++)if(qi(n[r],t[r]))return!1;return ci>0&&tr&&tr.push(e),!0}const o2="3.2.47",cL={createComponentInstance:Kw,setupComponent:Xw,renderComponentRoot:mc,setCurrentRenderingInstance:ha,isVNode:ws,normalizeVNode:yr},dL=cL,fL=null,pL=null;function hL(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o<r.length;o++)n[r[o]]=!0;return o=>!!n[o]}const mL="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",gL=hL(mL);function s2(e){return!!e||e===""}function vL(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Es(e[r],t[r]);return n}function Es(e,t){if(e===t)return!0;let n=F_(e),r=F_(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=N_(e),r=N_(t),n||r)return e===t;if(n=ar(e),r=ar(t),n||r)return n&&r?vL(e,t):!1;if(n=Th(e),r=Th(t),n||r){if(!n||!r)return!1;const o=Object.keys(e).length,i=Object.keys(t).length;if(o!==i)return!1;for(const l in e){const a=e.hasOwnProperty(l),c=t.hasOwnProperty(l);if(a&&!c||!a&&c||!Es(e[l],t[l]))return!1}}return String(e)===String(t)}function xd(e,t){return e.findIndex(n=>Es(n,t))}const Lp={},yL=/^on[^a-z]/,_L=e=>yL.test(e),bL=e=>e.startsWith("onUpdate:"),Ma=Object.assign,ar=Array.isArray,Da=e=>l2(e)==="[object Set]",F_=e=>l2(e)==="[object Date]",i2=e=>typeof e=="function",ga=e=>typeof e=="string",N_=e=>typeof e=="symbol",Th=e=>e!==null&&typeof e=="object",wL=Object.prototype.toString,l2=e=>wL.call(e),Hm=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},SL=/-(\w)/g,Fp=Hm(e=>e.replace(SL,(t,n)=>n?n.toUpperCase():"")),EL=/\B([A-Z])/g,hs=Hm(e=>e.replace(EL,"-$1").toLowerCase()),$L=Hm(e=>e.charAt(0).toUpperCase()+e.slice(1)),xL=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Ch=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Oh=e=>{const t=ga(e)?Number(e):NaN;return isNaN(t)?e:t},TL="http://www.w3.org/2000/svg",qs=typeof document<"u"?document:null,M_=qs&&qs.createElement("template"),CL={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t?qs.createElementNS(TL,e):qs.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>qs.createTextNode(e),createComment:e=>qs.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>qs.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,i){const l=n?n.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===i||!(o=o.nextSibling)););else{M_.innerHTML=r?`<svg>${e}</svg>`:e;const a=M_.content;if(r){const c=a.firstChild;for(;c.firstChild;)a.appendChild(c.firstChild);a.removeChild(c)}t.insertBefore(a,n)}return[l?l.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function OL(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function AL(e,t,n){const r=e.style,o=ga(n);if(n&&!o){if(t&&!ga(t))for(const i in t)n[i]==null&&Ah(r,i,"");for(const i in n)Ah(r,i,n[i])}else{const i=r.display;o?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=i)}}const D_=/\s*!important$/;function Ah(e,t,n){if(ar(n))n.forEach(r=>Ah(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=kL(e,t);D_.test(n)?e.setProperty(hs(r),n.replace(D_,""),"important"):e[r]=n}}const U_=["Webkit","Moz","ms"],Np={};function kL(e,t){const n=Np[t];if(n)return n;let r=io(t);if(r!=="filter"&&r in e)return Np[t]=r;r=$L(r);for(let o=0;o<U_.length;o++){const i=U_[o]+r;if(i in e)return Np[t]=i}return t}const B_="http://www.w3.org/1999/xlink";function IL(e,t,n,r,o){if(r&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(B_,t.slice(6,t.length)):e.setAttributeNS(B_,t,n);else{const i=gL(t);n==null||i&&!s2(n)?e.removeAttribute(t):e.setAttribute(t,i?"":n)}}function PL(e,t,n,r,o,i,l){if(t==="innerHTML"||t==="textContent"){r&&l(r,o,i),e[t]=n??"";return}if(t==="value"&&e.tagName!=="PROGRESS"&&!e.tagName.includes("-")){e._value=n;const c=n??"";(e.value!==c||e.tagName==="OPTION")&&(e.value=c),n==null&&e.removeAttribute(t);return}let a=!1;if(n===""||n==null){const c=typeof e[t];c==="boolean"?n=s2(n):n==null&&c==="string"?(n="",a=!0):c==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(t)}function jo(e,t,n,r){e.addEventListener(t,n,r)}function RL(e,t,n,r){e.removeEventListener(t,n,r)}function LL(e,t,n,r,o=null){const i=e._vei||(e._vei={}),l=i[t];if(r&&l)l.value=r;else{const[a,c]=FL(t);if(r){const d=i[t]=DL(r,o);jo(e,a,d,c)}else l&&(RL(e,a,l,c),i[t]=void 0)}}const j_=/(?:Once|Passive|Capture)$/;function FL(e){let t;if(j_.test(e)){t={};let r;for(;r=e.match(j_);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):hs(e.slice(2)),t]}let Mp=0;const NL=Promise.resolve(),ML=()=>Mp||(NL.then(()=>Mp=0),Mp=Date.now());function DL(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;wr(UL(r,n.value),t,5,[r])};return n.value=e,n.attached=ML(),n}function UL(e,t){if(ar(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>o=>!o._stopped&&r&&r(o))}else return t}const V_=/^on[a-z]/,BL=(e,t,n,r,o=!1,i,l,a,c)=>{t==="class"?OL(e,r,o):t==="style"?AL(e,n,r):_L(t)?bL(t)||LL(e,t,n,r,l):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):jL(e,t,r,o))?PL(e,t,r,i,l,a,c):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),IL(e,t,r,o))};function jL(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&V_.test(t)&&i2(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||V_.test(t)&&ga(n)?!1:t in e}function a2(e,t){const n=ge(e);class r extends Td{constructor(i){super(n,i,t)}}return r.def=n,r}const VL=e=>a2(e,x2),HL=typeof HTMLElement<"u"?HTMLElement:class{};class Td extends HL{constructor(t,n={},r){super(),this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&r?r(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,sn(()=>{this._connected||(Ph(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let r=0;r<this.attributes.length;r++)this._setAttr(this.attributes[r].name);new MutationObserver(r=>{for(const o of r)this._setAttr(o.attributeName)}).observe(this,{attributes:!0});const t=(r,o=!1)=>{const{props:i,styles:l}=r;let a;if(i&&!ar(i))for(const c in i){const d=i[c];(d===Number||d&&d.type===Number)&&(c in this._props&&(this._props[c]=Oh(this._props[c])),(a||(a=Object.create(null)))[Fp(c)]=!0)}this._numberProps=a,o&&this._resolveProps(r),this._applyStyles(l),this._update()},n=this._def.__asyncLoader;n?n().then(r=>t(r,!0)):t(this._def)}_resolveProps(t){const{props:n}=t,r=ar(n)?n:Object.keys(n||{});for(const o of Object.keys(this))o[0]!=="_"&&r.includes(o)&&this._setProp(o,this[o],!0,!1);for(const o of r.map(Fp))Object.defineProperty(this,o,{get(){return this._getProp(o)},set(i){this._setProp(o,i)}})}_setAttr(t){let n=this.getAttribute(t);const r=Fp(t);this._numberProps&&this._numberProps[r]&&(n=Oh(n)),this._setProp(r,n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,r=!0,o=!0){n!==this._props[t]&&(this._props[t]=n,o&&this._instance&&this._update(),r&&(n===!0?this.setAttribute(hs(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(hs(t),n+""):n||this.removeAttribute(hs(t))))}_update(){Ph(this._createVNode(),this.shadowRoot)}_createVNode(){const t=z(this._def,Ma({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0;const r=(i,l)=>{this.dispatchEvent(new CustomEvent(i,{detail:l}))};n.emit=(i,...l)=>{r(i,l),hs(i)!==i&&r(hs(i),l)};let o=this;for(;o=o&&(o.parentNode||o.host);)if(o instanceof Td){n.parent=o._instance,n.provides=o._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(n=>{const r=document.createElement("style");r.textContent=n,this.shadowRoot.appendChild(r)})}}function zL(e="$style"){{const t=Jo();if(!t)return Lp;const n=t.type.__cssModules;if(!n)return Lp;const r=n[e];return r||Lp}}function u2(e){const t=Jo();if(!t)return;const n=t.ut=(o=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(i=>Ih(i,o))},r=()=>{const o=e(t.proxy);kh(t.subTree,o),n(o)};hw(r),wt(()=>{const o=new MutationObserver(r);o.observe(t.subTree.el.parentNode,{childList:!0}),en(()=>o.disconnect())})}function kh(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{kh(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)Ih(e.el,t);else if(e.type===Me)e.children.forEach(n=>kh(n,t));else if(e.type===ti){let{el:n,anchor:r}=e;for(;n&&(Ih(n,t),n!==r);)n=n.nextSibling}}function Ih(e,t){if(e.nodeType===1){const n=e.style;for(const r in t)n.setProperty(`--${r}`,t[r])}}const us="transition",Il="animation",Cs=(e,{slots:t})=>pt(Nm,d2(e),t);Cs.displayName="Transition";const c2={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},WL=Cs.props=Ma({},Nm.props,c2),js=(e,t=[])=>{ar(e)?e.forEach(n=>n(...t)):e&&e(...t)},H_=e=>e?ar(e)?e.some(t=>t.length>1):e.length>1:!1;function d2(e){const t={};for(const G in e)G in c2||(t[G]=e[G]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:i=`${n}-enter-from`,enterActiveClass:l=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:c=i,appearActiveClass:d=l,appearToClass:p=a,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:v=`${n}-leave-active`,leaveToClass:y=`${n}-leave-to`}=e,b=qL(o),S=b&&b[0],T=b&&b[1],{onBeforeEnter:C,onEnter:w,onEnterCancelled:E,onLeave:O,onLeaveCancelled:$,onBeforeAppear:P=C,onAppear:R=w,onAppearCancelled:k=E}=t,W=(G,X,ne)=>{fs(G,X?p:a),fs(G,X?d:l),ne&&ne()},U=(G,X)=>{G._isLeaving=!1,fs(G,h),fs(G,y),fs(G,v),X&&X()},j=G=>(X,ne)=>{const xe=G?R:w,Ee=()=>W(X,G,ne);js(xe,[X,Ee]),z_(()=>{fs(X,G?c:i),Uo(X,G?p:a),H_(xe)||W_(X,r,S,Ee)})};return Ma(t,{onBeforeEnter(G){js(C,[G]),Uo(G,i),Uo(G,l)},onBeforeAppear(G){js(P,[G]),Uo(G,c),Uo(G,d)},onEnter:j(!1),onAppear:j(!0),onLeave(G,X){G._isLeaving=!0;const ne=()=>U(G,X);Uo(G,h),p2(),Uo(G,v),z_(()=>{G._isLeaving&&(fs(G,h),Uo(G,y),H_(O)||W_(G,r,T,ne))}),js(O,[G,ne])},onEnterCancelled(G){W(G,!1),js(E,[G])},onAppearCancelled(G){W(G,!0),js(k,[G])},onLeaveCancelled(G){U(G),js($,[G])}})}function qL(e){if(e==null)return null;if(Th(e))return[Dp(e.enter),Dp(e.leave)];{const t=Dp(e);return[t,t]}}function Dp(e){return Oh(e)}function Uo(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function fs(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function z_(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let KL=0;function W_(e,t,n,r){const o=e._endId=++KL,i=()=>{o===e._endId&&r()};if(n)return setTimeout(i,n);const{type:l,timeout:a,propCount:c}=f2(e,t);if(!l)return r();const d=l+"end";let p=0;const h=()=>{e.removeEventListener(d,v),i()},v=y=>{y.target===e&&++p>=c&&h()};setTimeout(()=>{p<c&&h()},a+1),e.addEventListener(d,v)}function f2(e,t){const n=window.getComputedStyle(e),r=b=>(n[b]||"").split(", "),o=r(`${us}Delay`),i=r(`${us}Duration`),l=q_(o,i),a=r(`${Il}Delay`),c=r(`${Il}Duration`),d=q_(a,c);let p=null,h=0,v=0;t===us?l>0&&(p=us,h=l,v=i.length):t===Il?d>0&&(p=Il,h=d,v=c.length):(h=Math.max(l,d),p=h>0?l>d?us:Il:null,v=p?p===us?i.length:c.length:0);const y=p===us&&/\b(transform|all)(,|$)/.test(r(`${us}Property`).toString());return{type:p,timeout:h,propCount:v,hasTransform:y}}function q_(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>K_(n)+K_(e[r])))}function K_(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function p2(){return document.body.offsetHeight}const h2=new WeakMap,m2=new WeakMap,g2={name:"TransitionGroup",props:Ma({},WL,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Jo(),r=Fm();let o,i;return Sd(()=>{if(!o.length)return;const l=e.moveClass||`${e.name||"v"}-move`;if(!QL(o[0].el,n.vnode.el,l))return;o.forEach(YL),o.forEach(JL);const a=o.filter(ZL);p2(),a.forEach(c=>{const d=c.el,p=d.style;Uo(d,l),p.transform=p.webkitTransform=p.transitionDuration="";const h=d._moveCb=v=>{v&&v.target!==d||(!v||/transform$/.test(v.propertyName))&&(d.removeEventListener("transitionend",h),d._moveCb=null,fs(d,l))};d.addEventListener("transitionend",h)})}),()=>{const l=He(e),a=d2(l);let c=l.tag||Me;o=i,i=t.default?bd(t.default()):[];for(let d=0;d<i.length;d++){const p=i[d];p.key!=null&&ai(p,Ki(p,a,r,n))}if(o)for(let d=0;d<o.length;d++){const p=o[d];ai(p,Ki(p,a,r,n)),h2.set(p,p.el.getBoundingClientRect())}return z(c,null,i)}}},GL=e=>delete e.mode;g2.props;const XL=g2;function YL(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function JL(e){m2.set(e,e.el.getBoundingClientRect())}function ZL(e){const t=h2.get(e),n=m2.get(e),r=t.left-n.left,o=t.top-n.top;if(r||o){const i=e.el.style;return i.transform=i.webkitTransform=`translate(${r}px,${o}px)`,i.transitionDuration="0s",e}}function QL(e,t,n){const r=e.cloneNode();e._vtc&&e._vtc.forEach(l=>{l.split(/\s+/).forEach(a=>a&&r.classList.remove(a))}),n.split(/\s+/).forEach(l=>l&&r.classList.add(l)),r.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(r);const{hasTransform:i}=f2(r);return o.removeChild(r),i}const $s=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ar(t)?n=>xL(t,n):t};function e6(e){e.target.composing=!0}function G_(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Lc={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e._assign=$s(o);const i=r||o.props&&o.props.type==="number";jo(e,t?"change":"input",l=>{if(l.target.composing)return;let a=e.value;n&&(a=a.trim()),i&&(a=Ch(a)),e._assign(a)}),n&&jo(e,"change",()=>{e.value=e.value.trim()}),t||(jo(e,"compositionstart",e6),jo(e,"compositionend",G_),jo(e,"change",G_))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:o}},i){if(e._assign=$s(i),e.composing||document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===t||(o||e.type==="number")&&Ch(e.value)===t))return;const l=t??"";e.value!==l&&(e.value=l)}},zm={deep:!0,created(e,t,n){e._assign=$s(n),jo(e,"change",()=>{const r=e._modelValue,o=Xi(e),i=e.checked,l=e._assign;if(ar(r)){const a=xd(r,o),c=a!==-1;if(i&&!c)l(r.concat(o));else if(!i&&c){const d=[...r];d.splice(a,1),l(d)}}else if(Da(r)){const a=new Set(r);i?a.add(o):a.delete(o),l(a)}else l(y2(e,i))})},mounted:X_,beforeUpdate(e,t,n){e._assign=$s(n),X_(e,t,n)}};function X_(e,{value:t,oldValue:n},r){e._modelValue=t,ar(t)?e.checked=xd(t,r.props.value)>-1:Da(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=Es(t,y2(e,!0)))}const Wm={created(e,{value:t},n){e.checked=Es(t,n.props.value),e._assign=$s(n),jo(e,"change",()=>{e._assign(Xi(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e._assign=$s(r),t!==n&&(e.checked=Es(t,r.props.value))}},v2={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const o=Da(t);jo(e,"change",()=>{const i=Array.prototype.filter.call(e.options,l=>l.selected).map(l=>n?Ch(Xi(l)):Xi(l));e._assign(e.multiple?o?new Set(i):i:i[0])}),e._assign=$s(r)},mounted(e,{value:t}){Y_(e,t)},beforeUpdate(e,t,n){e._assign=$s(n)},updated(e,{value:t}){Y_(e,t)}};function Y_(e,t){const n=e.multiple;if(!(n&&!ar(t)&&!Da(t))){for(let r=0,o=e.options.length;r<o;r++){const i=e.options[r],l=Xi(i);if(n)ar(t)?i.selected=xd(t,l)>-1:i.selected=t.has(l);else if(Es(Xi(i),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Xi(e){return"_value"in e?e._value:e.value}function y2(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const _2={created(e,t,n){tc(e,t,n,null,"created")},mounted(e,t,n){tc(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){tc(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){tc(e,t,n,r,"updated")}};function b2(e,t){switch(e){case"SELECT":return v2;case"TEXTAREA":return Lc;default:switch(t){case"checkbox":return zm;case"radio":return Wm;default:return Lc}}}function tc(e,t,n,r,o){const l=b2(e.tagName,n.props&&n.props.type)[o];l&&l(e,t,n,r)}function t6(){Lc.getSSRProps=({value:e})=>({value:e}),Wm.getSSRProps=({value:e},t)=>{if(t.props&&Es(t.props.value,e))return{checked:!0}},zm.getSSRProps=({value:e},t)=>{if(ar(e)){if(t.props&&xd(e,t.props.value)>-1)return{checked:!0}}else if(Da(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},_2.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=b2(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const n6=["ctrl","shift","alt","meta"],r6={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)=>n6.some(n=>e[`${n}Key`]&&!t.includes(n))},va=(e,t)=>(n,...r)=>{for(let o=0;o<t.length;o++){const i=r6[t[o]];if(i&&i(n,t))return}return e(n,...r)},o6={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},w2=(e,t)=>n=>{if(!("key"in n))return;const r=hs(n.key);if(t.some(o=>o===r||o6[o]===r))return e(n)},qm={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Pl(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),Pl(e,!0),r.enter(e)):r.leave(e,()=>{Pl(e,!1)}):Pl(e,t))},beforeUnmount(e,{value:t}){Pl(e,t)}};function Pl(e,t){e.style.display=t?e._vod:"none"}function s6(){qm.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const S2=Ma({patchProp:BL},CL);let Ql,J_=!1;function E2(){return Ql||(Ql=Mw(S2))}function $2(){return Ql=J_?Ql:Dw(S2),J_=!0,Ql}const Ph=(...e)=>{E2().render(...e)},x2=(...e)=>{$2().hydrate(...e)},T2=(...e)=>{const t=E2().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=C2(r);if(!o)return;const i=t._component;!i2(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.innerHTML="";const l=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),l},t},i6=(...e)=>{const t=$2().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=C2(r);if(o)return n(o,!0,o instanceof SVGElement)},t};function C2(e){return ga(e)?document.querySelector(e):e}let Z_=!1;const l6=()=>{Z_||(Z_=!0,t6(),s6())},a6=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:Nm,Comment:Un,EffectScope:wm,Fragment:Me,KeepAlive:wR,ReactiveEffect:La,Static:ti,Suspense:dR,Teleport:Bw,Text:ui,Transition:Cs,TransitionGroup:XL,VueElement:Td,assertNumber:JP,callWithAsyncErrorHandling:wr,callWithErrorHandling:zo,camelize:io,capitalize:cd,cloneVNode:Vr,compatUtils:pL,computed:fe,createApp:T2,createBlock:Ye,createCommentVNode:Te,createElementBlock:F,createElementVNode:m,createHydrationRenderer:Dw,createPropsRestProxy:iL,createRenderer:Mw,createSSRApp:i6,createSlots:Ow,createStaticVNode:KR,createTextVNode:Be,createVNode:z,customRef:qP,defineAsyncComponent:_R,defineComponent:ge,defineCustomElement:a2,defineEmits:tL,defineExpose:nL,defineProps:eL,defineSSRCustomElement:VL,get devtools(){return Mi},effect:hP,effectScope:dP,getCurrentInstance:Jo,getCurrentScope:Hb,getTransitionRawChildren:bd,guardReactiveProps:Ww,h:pt,handleError:pi,hydrate:x2,initCustomFormatter:aL,initDirectivesForSSR:l6,inject:Ft,isMemoSame:r2,isProxy:xm,isReactive:Qs,isReadonly:li,isRef:pn,isRuntimeOnly:JR,isShallow:ca,isVNode:ws,markRaw:Tm,mergeDefaults:sL,mergeProps:qw,nextTick:sn,normalizeClass:gt,normalizeProps:eP,normalizeStyle:so,onActivated:vw,onBeforeMount:bw,onBeforeUnmount:hi,onBeforeUpdate:ww,onDeactivated:yw,onErrorCaptured:xw,onMounted:wt,onRenderTracked:$w,onRenderTriggered:Ew,onScopeDispose:zb,onServerPrefetch:Sw,onUnmounted:en,onUpdated:Sd,openBlock:I,popScopeId:oR,provide:Qt,proxyRefs:Am,pushScopeId:rR,queuePostFlushCb:Pm,reactive:Ts,readonly:$m,ref:$e,registerRuntimeCompiler:Yw,render:Ph,renderList:Ot,renderSlot:yn,resolveComponent:q,resolveDirective:xR,resolveDynamicComponent:$R,resolveFilter:fL,resolveTransitionHooks:Ki,setBlockTracking:Sh,setDevtoolsHook:cw,setTransitionHooks:ai,shallowReactive:rw,shallowReadonly:VP,shallowRef:gd,ssrContextKey:t2,ssrUtils:dL,stop:mP,toDisplayString:L,toHandlerKey:Gl,toHandlers:TR,toRaw:He,toRef:sw,toRefs:km,transformVNodeArgs:WR,triggerRef:hh,unref:vn,useAttrs:oL,useCssModule:zL,useCssVars:u2,useSSRContext:n2,useSlots:Qw,useTransitionState:Fm,vModelCheckbox:zm,vModelDynamic:_2,vModelRadio:Wm,vModelSelect:v2,vModelText:Lc,vShow:qm,version:o2,warn:YP,watch:Ut,watchEffect:Vt,watchPostEffect:hw,watchSyncEffect:gR,withAsyncContext:lL,withCtx:_e,withDefaults:rL,withDirectives:Tw,withKeys:w2,withMemo:uL,withModifiers:va,withScopeId:sR},Symbol.toStringTag,{value:"Module"}));function co(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o<r.length;o++)n[r[o]]=!0;return t?o=>!!n[o.toLowerCase()]:o=>!!n[o]}const u6=/;(?![^(]*\))/g,c6=/:([^]+)/,d6=/\/\*.*?\*\//gs;function f6(e){const t={};return e.replace(d6,"").split(u6).forEach(n=>{if(n){const r=n.split(c6);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}const p6="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",h6="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",m6="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",g6=co(p6),v6=co(h6),y6=co(m6),_6={},Fc=()=>{},Up=()=>!1,b6=/^on[^a-z]/,O2=e=>b6.test(e),Wo=Object.assign,Yi=Array.isArray,_n=e=>typeof e=="string",Km=e=>typeof e=="symbol",w6=e=>e!==null&&typeof e=="object",Q_=co(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),S6=co("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),Cd=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},E6=/-(\w)/g,Od=Cd(e=>e.replace(E6,(t,n)=>n?n.toUpperCase():"")),$6=/\B([A-Z])/g,x6=Cd(e=>e.replace($6,"-$1").toLowerCase()),Gm=Cd(e=>e.charAt(0).toUpperCase()+e.slice(1)),T6=Cd(e=>e?`on${Gm(e)}`:"");function Xm(e){throw e}function A2(e){}function Wt(e,t,n,r){const o=e,i=new SyntaxError(String(o));return i.code=e,i.loc=t,i}const ya=Symbol(""),ea=Symbol(""),Ym=Symbol(""),Nc=Symbol(""),k2=Symbol(""),di=Symbol(""),I2=Symbol(""),P2=Symbol(""),Jm=Symbol(""),Zm=Symbol(""),Ua=Symbol(""),Qm=Symbol(""),R2=Symbol(""),eg=Symbol(""),Mc=Symbol(""),tg=Symbol(""),ng=Symbol(""),rg=Symbol(""),og=Symbol(""),L2=Symbol(""),F2=Symbol(""),Ad=Symbol(""),Dc=Symbol(""),sg=Symbol(""),ig=Symbol(""),_a=Symbol(""),Ba=Symbol(""),lg=Symbol(""),Rh=Symbol(""),C6=Symbol(""),Lh=Symbol(""),Uc=Symbol(""),O6=Symbol(""),A6=Symbol(""),ag=Symbol(""),k6=Symbol(""),I6=Symbol(""),ug=Symbol(""),N2=Symbol(""),Ji={[ya]:"Fragment",[ea]:"Teleport",[Ym]:"Suspense",[Nc]:"KeepAlive",[k2]:"BaseTransition",[di]:"openBlock",[I2]:"createBlock",[P2]:"createElementBlock",[Jm]:"createVNode",[Zm]:"createElementVNode",[Ua]:"createCommentVNode",[Qm]:"createTextVNode",[R2]:"createStaticVNode",[eg]:"resolveComponent",[Mc]:"resolveDynamicComponent",[tg]:"resolveDirective",[ng]:"resolveFilter",[rg]:"withDirectives",[og]:"renderList",[L2]:"renderSlot",[F2]:"createSlots",[Ad]:"toDisplayString",[Dc]:"mergeProps",[sg]:"normalizeClass",[ig]:"normalizeStyle",[_a]:"normalizeProps",[Ba]:"guardReactiveProps",[lg]:"toHandlers",[Rh]:"camelize",[C6]:"capitalize",[Lh]:"toHandlerKey",[Uc]:"setBlockTracking",[O6]:"pushScopeId",[A6]:"popScopeId",[ag]:"withCtx",[k6]:"unref",[I6]:"isRef",[ug]:"withMemo",[N2]:"isMemoSame"};function P6(e){Object.getOwnPropertySymbols(e).forEach(t=>{Ji[t]=e[t]})}const xr={source:"",start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}};function R6(e,t=xr){return{type:0,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:t}}function ba(e,t,n,r,o,i,l,a=!1,c=!1,d=!1,p=xr){return e&&(a?(e.helper(di),e.helper(el(e.inSSR,d))):e.helper(Qi(e.inSSR,d)),l&&e.helper(rg)),{type:13,tag:t,props:n,children:r,patchFlag:o,dynamicProps:i,directives:l,isBlock:a,disableTracking:c,isComponent:d,loc:p}}function ja(e,t=xr){return{type:17,loc:t,elements:e}}function Nr(e,t=xr){return{type:15,loc:t,properties:e}}function Zt(e,t){return{type:16,loc:xr,key:_n(e)?dt(e,!0):e,value:t}}function dt(e,t=!1,n=xr,r=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:r}}function ro(e,t=xr){return{type:8,loc:t,children:e}}function on(e,t=[],n=xr){return{type:14,loc:n,callee:e,arguments:t}}function Zi(e,t=void 0,n=!1,r=!1,o=xr){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:o}}function Fh(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:xr}}function L6(e,t,n=!1){return{type:20,index:e,value:t,isVNode:n,loc:xr}}function F6(e){return{type:21,body:e,loc:xr}}const nr=e=>e.type===4&&e.isStatic,Di=(e,t)=>e===t||e===x6(t);function M2(e){if(Di(e,"Teleport"))return ea;if(Di(e,"Suspense"))return Ym;if(Di(e,"KeepAlive"))return Nc;if(Di(e,"BaseTransition"))return k2}const N6=/^\d|[^\$\w]/,cg=e=>!N6.test(e),M6=/[A-Za-z_$\xA0-\uFFFF]/,D6=/[\.\?\w$\xA0-\uFFFF]/,U6=/\s+[.[]\s*|\s*[.[]\s+/g,B6=e=>{e=e.trim().replace(U6,l=>l.trim());let t=0,n=[],r=0,o=0,i=null;for(let l=0;l<e.length;l++){const a=e.charAt(l);switch(t){case 0:if(a==="[")n.push(t),t=1,r++;else if(a==="(")n.push(t),t=2,o++;else if(!(l===0?M6:D6).test(a))return!1;break;case 1:a==="'"||a==='"'||a==="`"?(n.push(t),t=3,i=a):a==="["?r++:a==="]"&&(--r||(t=n.pop()));break;case 2:if(a==="'"||a==='"'||a==="`")n.push(t),t=3,i=a;else if(a==="(")o++;else if(a===")"){if(l===e.length-1)return!1;--o||(t=n.pop())}break;case 3:a===i&&(t=n.pop(),i=null);break}}return!r&&!o},D2=B6;function U2(e,t,n){const o={source:e.source.slice(t,t+n),start:Bc(e.start,e.source,t),end:e.end};return n!=null&&(o.end=Bc(e.start,e.source,t+n)),o}function Bc(e,t,n=t.length){return jc(Wo({},e),t,n)}function jc(e,t,n=t.length){let r=0,o=-1;for(let i=0;i<n;i++)t.charCodeAt(i)===10&&(r++,o=i);return e.offset+=n,e.line+=r,e.column=o===-1?e.column+n:n-o,e}function Fr(e,t,n=!1){for(let r=0;r<e.props.length;r++){const o=e.props[r];if(o.type===7&&(n||o.exp)&&(_n(t)?o.name===t:t.test(o.name)))return o}}function kd(e,t,n=!1,r=!1){for(let o=0;o<e.props.length;o++){const i=e.props[o];if(i.type===6){if(n)continue;if(i.name===t&&(i.value||r))return i}else if(i.name==="bind"&&(i.exp||r)&&Xs(i.arg,t))return i}}function Xs(e,t){return!!(e&&nr(e)&&e.content===t)}function j6(e){return e.props.some(t=>t.type===7&&t.name==="bind"&&(!t.arg||t.arg.type!==4||!t.arg.isStatic))}function Bp(e){return e.type===5||e.type===2}function V6(e){return e.type===7&&e.name==="slot"}function Vc(e){return e.type===1&&e.tagType===3}function Hc(e){return e.type===1&&e.tagType===2}function Qi(e,t){return e||t?Jm:Zm}function el(e,t){return e||t?I2:P2}const H6=new Set([_a,Ba]);function B2(e,t=[]){if(e&&!_n(e)&&e.type===14){const n=e.callee;if(!_n(n)&&H6.has(n))return B2(e.arguments[0],t.concat(e))}return[e,t]}function zc(e,t,n){let r,o=e.type===13?e.props:e.arguments[2],i=[],l;if(o&&!_n(o)&&o.type===14){const a=B2(o);o=a[0],i=a[1],l=i[i.length-1]}if(o==null||_n(o))r=Nr([t]);else if(o.type===14){const a=o.arguments[0];!_n(a)&&a.type===15?e1(t,a)||a.properties.unshift(t):o.callee===lg?r=on(n.helper(Dc),[Nr([t]),o]):o.arguments.unshift(Nr([t])),!r&&(r=o)}else o.type===15?(e1(t,o)||o.properties.unshift(t),r=o):(r=on(n.helper(Dc),[Nr([t]),o]),l&&l.callee===Ba&&(l=i[i.length-2]));e.type===13?l?l.arguments[0]=r:e.props=r:l?l.arguments[0]=r:e.arguments[2]=r}function e1(e,t){let n=!1;if(e.key.type===4){const r=e.key.content;n=t.properties.some(o=>o.key.type===4&&o.key.content===r)}return n}function wa(e,t){return`_${t}_${e.replace(/[^\w]/g,(n,r)=>n==="-"?"_":e.charCodeAt(r).toString())}`}function z6(e){return e.type===14&&e.callee===ug?e.arguments[1].returns:e}function dg(e,{helper:t,removeHelper:n,inSSR:r}){e.isBlock||(e.isBlock=!0,n(Qi(r,e.isComponent)),t(di),t(el(r,e.isComponent)))}function t1(e,t){const n=t.options?t.options.compatConfig:t.compatConfig,r=n&&n[e];return e==="MODE"?r||3:r}function ni(e,t){const n=t1("MODE",t),r=t1(e,t);return n===3?r===!0:r!==!1}function Sa(e,t,n,...r){return ni(e,t)}const W6=/&(gt|lt|amp|apos|quot);/g,q6={gt:">",lt:"<",amp:"&",apos:"'",quot:'"'},n1={delimiters:["{{","}}"],getNamespace:()=>0,getTextMode:()=>0,isVoidTag:Up,isPreTag:Up,isCustomElement:Up,decodeEntities:e=>e.replace(W6,(t,n)=>q6[n]),onError:Xm,onWarn:A2,comments:!1};function K6(e,t={}){const n=G6(e,t),r=Sr(n);return R6(fg(n,0,[]),Hr(n,r))}function G6(e,t){const n=Wo({},n1);let r;for(r in t)n[r]=t[r]===void 0?n1[r]:t[r];return{options:n,column:1,line:1,offset:0,originalSource:e,source:e,inPre:!1,inVPre:!1,onWarn:n.onWarn}}function fg(e,t,n){const r=Id(n),o=r?r.ns:0,i=[];for(;!rF(e,t,n);){const a=e.source;let c;if(t===0||t===1){if(!e.inVPre&&Dn(a,e.options.delimiters[0]))c=tF(e,t);else if(t===0&&a[0]==="<")if(a.length===1)Pt(e,5,1);else if(a[1]==="!")Dn(a,"<!--")?c=Y6(e):Dn(a,"<!DOCTYPE")?c=Rl(e):Dn(a,"<![CDATA[")?o!==0?c=X6(e,n):(Pt(e,1),c=Rl(e)):(Pt(e,11),c=Rl(e));else if(a[1]==="/")if(a.length===2)Pt(e,5,2);else if(a[2]===">"){Pt(e,14,2),hn(e,3);continue}else if(/[a-z]/i.test(a[2])){Pt(e,23),Nh(e,1,r);continue}else Pt(e,12,2),c=Rl(e);else/[a-z]/i.test(a[1])?(c=J6(e,n),ni("COMPILER_NATIVE_TEMPLATE",e)&&c&&c.tag==="template"&&!c.props.some(d=>d.type===7&&j2(d.name))&&(c=c.children)):a[1]==="?"?(Pt(e,21,1),c=Rl(e)):Pt(e,12,1)}if(c||(c=nF(e,t)),Yi(c))for(let d=0;d<c.length;d++)r1(i,c[d]);else r1(i,c)}let l=!1;if(t!==2&&t!==1){const a=e.options.whitespace!=="preserve";for(let c=0;c<i.length;c++){const d=i[c];if(d.type===2)if(e.inPre)d.content=d.content.replace(/\r\n/g,` 2 `);else if(/[^\t\r\n\f ]/.test(d.content))a&&(d.content=d.content.replace(/[\t\r\n\f ]+/g," "));else{const p=i[c-1],h=i[c+1];!p||!h||a&&(p.type===3&&h.type===3||p.type===3&&h.type===1||p.type===1&&h.type===3||p.type===1&&h.type===1&&/[\r\n]/.test(d.content))?(l=!0,i[c]=null):d.content=" "}else d.type===3&&!e.options.comments&&(l=!0,i[c]=null)}if(e.inPre&&r&&e.options.isPreTag(r.tag)){const c=i[0];c&&c.type===2&&(c.content=c.content.replace(/^\r?\n/,""))}}return l?i.filter(Boolean):i}function r1(e,t){if(t.type===2){const n=Id(e);if(n&&n.type===2&&n.loc.end.offset===t.loc.start.offset){n.content+=t.content,n.loc.end=t.loc.end,n.loc.source+=t.loc.source;return}}e.push(t)}function X6(e,t){hn(e,9);const n=fg(e,3,t);return e.source.length===0?Pt(e,6):hn(e,3),n}function Y6(e){const t=Sr(e);let n;const r=/--(\!)?>/.exec(e.source);if(!r)n=e.source.slice(4),hn(e,e.source.length),Pt(e,7);else{r.index<=3&&Pt(e,0),r[1]&&Pt(e,10),n=e.source.slice(4,r.index);const o=e.source.slice(0,r.index);let i=1,l=0;for(;(l=o.indexOf("<!--",i))!==-1;)hn(e,l-i+1),l+4<o.length&&Pt(e,16),i=l+1;hn(e,r.index+r[0].length-i+1)}return{type:3,content:n,loc:Hr(e,t)}}function Rl(e){const t=Sr(e),n=e.source[1]==="?"?1:2;let r;const o=e.source.indexOf(">");return o===-1?(r=e.source.slice(n),hn(e,e.source.length)):(r=e.source.slice(n,o),hn(e,o+1)),{type:3,content:r,loc:Hr(e,t)}}function J6(e,t){const n=e.inPre,r=e.inVPre,o=Id(t),i=Nh(e,0,o),l=e.inPre&&!n,a=e.inVPre&&!r;if(i.isSelfClosing||e.options.isVoidTag(i.tag))return l&&(e.inPre=!1),a&&(e.inVPre=!1),i;t.push(i);const c=e.options.getTextMode(i,o),d=fg(e,c,t);t.pop();{const p=i.props.find(h=>h.type===6&&h.name==="inline-template");if(p&&Sa("COMPILER_INLINE_TEMPLATE",e,p.loc)){const h=Hr(e,i.loc.end);p.value={type:2,content:h.source,loc:h}}}if(i.children=d,Mh(e.source,i.tag))Nh(e,1,o);else if(Pt(e,24,0,i.loc.start),e.source.length===0&&i.tag.toLowerCase()==="script"){const p=d[0];p&&Dn(p.loc.source,"<!--")&&Pt(e,8)}return i.loc=Hr(e,i.loc.start),l&&(e.inPre=!1),a&&(e.inVPre=!1),i}const j2=co("if,else,else-if,for,slot");function Nh(e,t,n){const r=Sr(e),o=/^<\/?([a-z][^\t\r\n\f />]*)/i.exec(e.source),i=o[1],l=e.options.getNamespace(i,n);hn(e,o[0].length),Ea(e);const a=Sr(e),c=e.source;e.options.isPreTag(i)&&(e.inPre=!0);let d=o1(e,t);t===0&&!e.inVPre&&d.some(v=>v.type===7&&v.name==="pre")&&(e.inVPre=!0,Wo(e,a),e.source=c,d=o1(e,t).filter(v=>v.name!=="v-pre"));let p=!1;if(e.source.length===0?Pt(e,9):(p=Dn(e.source,"/>"),t===1&&p&&Pt(e,4),hn(e,p?2:1)),t===1)return;let h=0;return e.inVPre||(i==="slot"?h=2:i==="template"?d.some(v=>v.type===7&&j2(v.name))&&(h=3):Z6(i,d,e)&&(h=1)),{type:1,ns:l,tag:i,tagType:h,props:d,isSelfClosing:p,children:[],loc:Hr(e,r),codegenNode:void 0}}function Z6(e,t,n){const r=n.options;if(r.isCustomElement(e))return!1;if(e==="component"||/^[A-Z]/.test(e)||M2(e)||r.isBuiltInComponent&&r.isBuiltInComponent(e)||r.isNativeTag&&!r.isNativeTag(e))return!0;for(let o=0;o<t.length;o++){const i=t[o];if(i.type===6){if(i.name==="is"&&i.value){if(i.value.content.startsWith("vue:"))return!0;if(Sa("COMPILER_IS_ON_ELEMENT",n,i.loc))return!0}}else{if(i.name==="is")return!0;if(i.name==="bind"&&Xs(i.arg,"is")&&Sa("COMPILER_IS_ON_ELEMENT",n,i.loc))return!0}}}function o1(e,t){const n=[],r=new Set;for(;e.source.length>0&&!Dn(e.source,">")&&!Dn(e.source,"/>");){if(Dn(e.source,"/")){Pt(e,22),hn(e,1),Ea(e);continue}t===1&&Pt(e,3);const o=Q6(e,r);o.type===6&&o.value&&o.name==="class"&&(o.value.content=o.value.content.replace(/\s+/g," ").trim()),t===0&&n.push(o),/^[^\t\r\n\f />]/.test(e.source)&&Pt(e,15),Ea(e)}return n}function Q6(e,t){const n=Sr(e),o=/^[^\t\r\n\f />][^\t\r\n\f />=]*/.exec(e.source)[0];t.has(o)&&Pt(e,2),t.add(o),o[0]==="="&&Pt(e,19);{const a=/["'<]/g;let c;for(;c=a.exec(o);)Pt(e,17,c.index)}hn(e,o.length);let i;/^[\t\r\n\f ]*=/.test(e.source)&&(Ea(e),hn(e,1),Ea(e),i=eF(e),i||Pt(e,13));const l=Hr(e,n);if(!e.inVPre&&/^(v-[A-Za-z0-9-]|:|\.|@|#)/.test(o)){const a=/(?:^v-([a-z0-9-]+))?(?:(?::|^\.|^@|^#)(\[[^\]]+\]|[^\.]+))?(.+)?$/i.exec(o);let c=Dn(o,"."),d=a[1]||(c||Dn(o,":")?"bind":Dn(o,"@")?"on":"slot"),p;if(a[2]){const v=d==="slot",y=o.lastIndexOf(a[2]),b=Hr(e,s1(e,n,y),s1(e,n,y+a[2].length+(v&&a[3]||"").length));let S=a[2],T=!0;S.startsWith("[")?(T=!1,S.endsWith("]")?S=S.slice(1,S.length-1):(Pt(e,27),S=S.slice(1))):v&&(S+=a[3]||""),p={type:4,content:S,isStatic:T,constType:T?3:0,loc:b}}if(i&&i.isQuoted){const v=i.loc;v.start.offset++,v.start.column++,v.end=Bc(v.start,i.content),v.source=v.source.slice(1,-1)}const h=a[3]?a[3].slice(1).split("."):[];return c&&h.push("prop"),d==="bind"&&p&&h.includes("sync")&&Sa("COMPILER_V_BIND_SYNC",e,l,p.loc.source)&&(d="model",h.splice(h.indexOf("sync"),1)),{type:7,name:d,exp:i&&{type:4,content:i.content,isStatic:!1,constType:0,loc:i.loc},arg:p,modifiers:h,loc:l}}return!e.inVPre&&Dn(o,"v-")&&Pt(e,26),{type:6,name:o,value:i&&{type:2,content:i.content,loc:i.loc},loc:l}}function eF(e){const t=Sr(e);let n;const r=e.source[0],o=r==='"'||r==="'";if(o){hn(e,1);const i=e.source.indexOf(r);i===-1?n=ta(e,e.source.length,4):(n=ta(e,i,4),hn(e,1))}else{const i=/^[^\t\r\n\f >]+/.exec(e.source);if(!i)return;const l=/["'<=`]/g;let a;for(;a=l.exec(i[0]);)Pt(e,18,a.index);n=ta(e,i[0].length,4)}return{content:n,isQuoted:o,loc:Hr(e,t)}}function tF(e,t){const[n,r]=e.options.delimiters,o=e.source.indexOf(r,n.length);if(o===-1){Pt(e,25);return}const i=Sr(e);hn(e,n.length);const l=Sr(e),a=Sr(e),c=o-n.length,d=e.source.slice(0,c),p=ta(e,c,t),h=p.trim(),v=p.indexOf(h);v>0&&jc(l,d,v);const y=c-(p.length-h.length-v);return jc(a,d,y),hn(e,r.length),{type:5,content:{type:4,isStatic:!1,constType:0,content:h,loc:Hr(e,l,a)},loc:Hr(e,i)}}function nF(e,t){const n=t===3?["]]>"]:["<",e.options.delimiters[0]];let r=e.source.length;for(let l=0;l<n.length;l++){const a=e.source.indexOf(n[l],1);a!==-1&&r>a&&(r=a)}const o=Sr(e);return{type:2,content:ta(e,r,t),loc:Hr(e,o)}}function ta(e,t,n){const r=e.source.slice(0,t);return hn(e,t),n===2||n===3||!r.includes("&")?r:e.options.decodeEntities(r,n===4)}function Sr(e){const{column:t,line:n,offset:r}=e;return{column:t,line:n,offset:r}}function Hr(e,t,n){return n=n||Sr(e),{start:t,end:n,source:e.originalSource.slice(t.offset,n.offset)}}function Id(e){return e[e.length-1]}function Dn(e,t){return e.startsWith(t)}function hn(e,t){const{source:n}=e;jc(e,n,t),e.source=n.slice(t)}function Ea(e){const t=/^[\t\r\n\f ]+/.exec(e.source);t&&hn(e,t[0].length)}function s1(e,t,n){return Bc(t,e.originalSource.slice(t.offset,n),n)}function Pt(e,t,n,r=Sr(e)){n&&(r.offset+=n,r.column+=n),e.options.onError(Wt(t,{start:r,end:r,source:""}))}function rF(e,t,n){const r=e.source;switch(t){case 0:if(Dn(r,"</")){for(let o=n.length-1;o>=0;--o)if(Mh(r,n[o].tag))return!0}break;case 1:case 2:{const o=Id(n);if(o&&Mh(r,o.tag))return!0;break}case 3:if(Dn(r,"]]>"))return!0;break}return!r}function Mh(e,t){return Dn(e,"</")&&e.slice(2,2+t.length).toLowerCase()===t.toLowerCase()&&/[\t\r\n\f />]/.test(e[2+t.length]||">")}function oF(e,t){vc(e,t,V2(e,e.children[0]))}function V2(e,t){const{children:n}=e;return n.length===1&&t.type===1&&!Hc(t)}function vc(e,t,n=!1){const{children:r}=e,o=r.length;let i=0;for(let l=0;l<r.length;l++){const a=r[l];if(a.type===1&&a.tagType===0){const c=n?0:Mr(a,t);if(c>0){if(c>=2){a.codegenNode.patchFlag="-1",a.codegenNode=t.hoist(a.codegenNode),i++;continue}}else{const d=a.codegenNode;if(d.type===13){const p=q2(d);if((!p||p===512||p===1)&&z2(a,t)>=2){const h=W2(a);h&&(d.props=t.hoist(h))}d.dynamicProps&&(d.dynamicProps=t.hoist(d.dynamicProps))}}}if(a.type===1){const c=a.tagType===1;c&&t.scopes.vSlot++,vc(a,t),c&&t.scopes.vSlot--}else if(a.type===11)vc(a,t,a.children.length===1);else if(a.type===9)for(let c=0;c<a.branches.length;c++)vc(a.branches[c],t,a.branches[c].children.length===1)}i&&t.transformHoist&&t.transformHoist(r,t,e),i&&i===o&&e.type===1&&e.tagType===0&&e.codegenNode&&e.codegenNode.type===13&&Yi(e.codegenNode.children)&&(e.codegenNode.children=t.hoist(ja(e.codegenNode.children)))}function Mr(e,t){const{constantCache:n}=t;switch(e.type){case 1:if(e.tagType!==0)return 0;const r=n.get(e);if(r!==void 0)return r;const o=e.codegenNode;if(o.type!==13||o.isBlock&&e.tag!=="svg"&&e.tag!=="foreignObject")return 0;if(q2(o))return n.set(e,0),0;{let a=3;const c=z2(e,t);if(c===0)return n.set(e,0),0;c<a&&(a=c);for(let d=0;d<e.children.length;d++){const p=Mr(e.children[d],t);if(p===0)return n.set(e,0),0;p<a&&(a=p)}if(a>1)for(let d=0;d<e.props.length;d++){const p=e.props[d];if(p.type===7&&p.name==="bind"&&p.exp){const h=Mr(p.exp,t);if(h===0)return n.set(e,0),0;h<a&&(a=h)}}if(o.isBlock){for(let d=0;d<e.props.length;d++)if(e.props[d].type===7)return n.set(e,0),0;t.removeHelper(di),t.removeHelper(el(t.inSSR,o.isComponent)),o.isBlock=!1,t.helper(Qi(t.inSSR,o.isComponent))}return n.set(e,a),a}case 2:case 3:return 3;case 9:case 11:case 10:return 0;case 5:case 12:return Mr(e.content,t);case 4:return e.constType;case 8:let l=3;for(let a=0;a<e.children.length;a++){const c=e.children[a];if(_n(c)||Km(c))continue;const d=Mr(c,t);if(d===0)return 0;d<l&&(l=d)}return l;default:return 0}}const sF=new Set([sg,ig,_a,Ba]);function H2(e,t){if(e.type===14&&!_n(e.callee)&&sF.has(e.callee)){const n=e.arguments[0];if(n.type===4)return Mr(n,t);if(n.type===14)return H2(n,t)}return 0}function z2(e,t){let n=3;const r=W2(e);if(r&&r.type===15){const{properties:o}=r;for(let i=0;i<o.length;i++){const{key:l,value:a}=o[i],c=Mr(l,t);if(c===0)return c;c<n&&(n=c);let d;if(a.type===4?d=Mr(a,t):a.type===14?d=H2(a,t):d=0,d===0)return d;d<n&&(n=d)}}return n}function W2(e){const t=e.codegenNode;if(t.type===13)return t.props}function q2(e){const t=e.patchFlag;return t?parseInt(t,10):void 0}function iF(e,{filename:t="",prefixIdentifiers:n=!1,hoistStatic:r=!1,cacheHandlers:o=!1,nodeTransforms:i=[],directiveTransforms:l={},transformHoist:a=null,isBuiltInComponent:c=Fc,isCustomElement:d=Fc,expressionPlugins:p=[],scopeId:h=null,slotted:v=!0,ssr:y=!1,inSSR:b=!1,ssrCssVars:S="",bindingMetadata:T=_6,inline:C=!1,isTS:w=!1,onError:E=Xm,onWarn:O=A2,compatConfig:$}){const P=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),R={selfName:P&&Gm(Od(P[1])),prefixIdentifiers:n,hoistStatic:r,cacheHandlers:o,nodeTransforms:i,directiveTransforms:l,transformHoist:a,isBuiltInComponent:c,isCustomElement:d,expressionPlugins:p,scopeId:h,slotted:v,ssr:y,inSSR:b,ssrCssVars:S,bindingMetadata:T,inline:C,isTS:w,onError:E,onWarn:O,compatConfig:$,root:e,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],constantCache:new Map,temps:0,cached:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,currentNode:e,childIndex:0,inVOnce:!1,helper(k){const W=R.helpers.get(k)||0;return R.helpers.set(k,W+1),k},removeHelper(k){const W=R.helpers.get(k);if(W){const U=W-1;U?R.helpers.set(k,U):R.helpers.delete(k)}},helperString(k){return`_${Ji[R.helper(k)]}`},replaceNode(k){R.parent.children[R.childIndex]=R.currentNode=k},removeNode(k){const W=R.parent.children,U=k?W.indexOf(k):R.currentNode?R.childIndex:-1;!k||k===R.currentNode?(R.currentNode=null,R.onNodeRemoved()):R.childIndex>U&&(R.childIndex--,R.onNodeRemoved()),R.parent.children.splice(U,1)},onNodeRemoved:()=>{},addIdentifiers(k){},removeIdentifiers(k){},hoist(k){_n(k)&&(k=dt(k)),R.hoists.push(k);const W=dt(`_hoisted_${R.hoists.length}`,!1,k.loc,2);return W.hoisted=k,W},cache(k,W=!1){return L6(R.cached++,k,W)}};return R.filters=new Set,R}function lF(e,t){const n=iF(e,t);Pd(e,n),t.hoistStatic&&oF(e,n),t.ssr||aF(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.filters=[...n.filters]}function aF(e,t){const{helper:n}=t,{children:r}=e;if(r.length===1){const o=r[0];if(V2(e,o)&&o.codegenNode){const i=o.codegenNode;i.type===13&&dg(i,t),e.codegenNode=i}else e.codegenNode=o}else if(r.length>1){let o=64;e.codegenNode=ba(t,n(ya),void 0,e.children,o+"",void 0,void 0,!0,void 0,!1)}}function uF(e,t){let n=0;const r=()=>{n--};for(;n<e.children.length;n++){const o=e.children[n];_n(o)||(t.parent=e,t.childIndex=n,t.onNodeRemoved=r,Pd(o,t))}}function Pd(e,t){t.currentNode=e;const{nodeTransforms:n}=t,r=[];for(let i=0;i<n.length;i++){const l=n[i](e,t);if(l&&(Yi(l)?r.push(...l):r.push(l)),t.currentNode)e=t.currentNode;else return}switch(e.type){case 3:t.ssr||t.helper(Ua);break;case 5:t.ssr||t.helper(Ad);break;case 9:for(let i=0;i<e.branches.length;i++)Pd(e.branches[i],t);break;case 10:case 11:case 1:case 0:uF(e,t);break}t.currentNode=e;let o=r.length;for(;o--;)r[o]()}function K2(e,t){const n=_n(e)?r=>r===e:r=>e.test(r);return(r,o)=>{if(r.type===1){const{props:i}=r;if(r.tagType===3&&i.some(V6))return;const l=[];for(let a=0;a<i.length;a++){const c=i[a];if(c.type===7&&n(c.name)){i.splice(a,1),a--;const d=t(r,c,o);d&&l.push(d)}}return l}}}const Rd="/*#__PURE__*/",G2=e=>`${Ji[e]}: _${Ji[e]}`;function cF(e,{mode:t="function",prefixIdentifiers:n=t==="module",sourceMap:r=!1,filename:o="template.vue.html",scopeId:i=null,optimizeImports:l=!1,runtimeGlobalName:a="Vue",runtimeModuleName:c="vue",ssrRuntimeModuleName:d="vue/server-renderer",ssr:p=!1,isTS:h=!1,inSSR:v=!1}){const y={mode:t,prefixIdentifiers:n,sourceMap:r,filename:o,scopeId:i,optimizeImports:l,runtimeGlobalName:a,runtimeModuleName:c,ssrRuntimeModuleName:d,ssr:p,isTS:h,inSSR:v,source:e.loc.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(S){return`_${Ji[S]}`},push(S,T){y.code+=S},indent(){b(++y.indentLevel)},deindent(S=!1){S?--y.indentLevel:b(--y.indentLevel)},newline(){b(y.indentLevel)}};function b(S){y.push(` 3 `+" ".repeat(S))}return y}function dF(e,t={}){const n=cF(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:r,push:o,prefixIdentifiers:i,indent:l,deindent:a,newline:c,scopeId:d,ssr:p}=n,h=Array.from(e.helpers),v=h.length>0,y=!i&&r!=="module";fF(e,n);const S=p?"ssrRender":"render",C=(p?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ");if(o(`function ${S}(${C}) {`),l(),y&&(o("with (_ctx) {"),l(),v&&(o(`const { ${h.map(G2).join(", ")} } = _Vue`),o(` 4 `),c())),e.components.length&&(jp(e.components,"component",n),(e.directives.length||e.temps>0)&&c()),e.directives.length&&(jp(e.directives,"directive",n),e.temps>0&&c()),e.filters&&e.filters.length&&(c(),jp(e.filters,"filter",n),c()),e.temps>0){o("let ");for(let w=0;w<e.temps;w++)o(`${w>0?", ":""}_temp${w}`)}return(e.components.length||e.directives.length||e.temps)&&(o(` 5 5 `),c()),p||o("return "),e.codegenNode?Bn(e.codegenNode,n):o("null"),y&&(a(),o("}")),a(),o("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}function fF(e,t){const{ssr:n,prefixIdentifiers:r,push:o,newline:i,runtimeModuleName:l,runtimeGlobalName:a,ssrRuntimeModuleName:c}=t,d=a,p=Array.from(e.helpers);if(p.length>0&&(o(`const _Vue = ${d} 6 `),e.hoists.length)){const h=[ Ym,Jm,Ua,Zm,L2].filter(v=>p.includes(v)).map(X2).join(", ");o(`const { ${h} } = _Vue7 `)}pF(e.hoists,t),i(),o("return ")}function Bp(e,t,{helper:n,push:r,newline:o,isTS:i}){const l=n(t==="filter"?tg:t==="component"?Qm:eg);for(let a=0;a<e.length;a++){let c=e[a];const d=c.endsWith("__self");d&&(c=c.slice(0,-6)),r(`const ${wa(c,t)} = ${l}(${JSON.stringify(c)}${d?", true":""})${i?"!":""}`),a<e.length-1&&o()}}function pF(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:r,helper:o,scopeId:i,mode:l}=t;r();for(let a=0;a<e.length;a++){const c=e[a];c&&(n(`const _hoisted_${a+1} = `),Bn(c,t),r())}t.pure=!1}function fg(e,t){const n=e.length>3||!1;t.push("["),n&&t.indent(),Va(e,t,n),n&&t.deindent(),t.push("]")}function Va(e,t,n=!1,r=!0){const{push:o,newline:i}=t;for(let l=0;l<e.length;l++){const a=e[l];_n(a)?o(a):Yi(a)?fg(a,t):Bn(a,t),l<e.length-1&&(n?(r&&o(","),i()):r&&o(", "))}}function Bn(e,t){if(_n(e)){t.push(e);return}if(qm(e)){t.push(t.helper(e));return}switch(e.type){case 1:case 9:case 11:Bn(e.codegenNode,t);break;case 2:hF(e,t);break;case 4:Y2(e,t);break;case 5:mF(e,t);break;case 12:Bn(e.codegenNode,t);break;case 8:J2(e,t);break;case 3:vF(e,t);break;case 13:yF(e,t);break;case 14:bF(e,t);break;case 15:wF(e,t);break;case 17:SF(e,t);break;case 18:EF(e,t);break;case 19:$F(e,t);break;case 20:xF(e,t);break;case 21:Va(e.body,t,!0,!1);break}}function hF(e,t){t.push(JSON.stringify(e.content),e)}function Y2(e,t){const{content:n,isStatic:r}=e;t.push(r?JSON.stringify(n):n,e)}function mF(e,t){const{push:n,helper:r,pure:o}=t;o&&n(Rd),n(`${r(Ad)}(`),Bn(e.content,t),n(")")}function J2(e,t){for(let n=0;n<e.children.length;n++){const r=e.children[n];_n(r)?t.push(r):Bn(r,t)}}function gF(e,t){const{push:n}=t;if(e.type===8)n("["),J2(e,t),n("]");else if(e.isStatic){const r=ug(e.content)?e.content:JSON.stringify(e.content);n(r,e)}else n(`[${e.content}]`,e)}function vF(e,t){const{push:n,helper:r,pure:o}=t;o&&n(Rd),n(`${r(Ua)}(${JSON.stringify(e.content)})`,e)}function yF(e,t){const{push:n,helper:r,pure:o}=t,{tag:i,props:l,children:a,patchFlag:c,dynamicProps:d,directives:p,isBlock:h,disableTracking:v,isComponent:y}=e;p&&n(r(ng)+"("),h&&n(`(${r(di)}(${v?"true":""}), `),o&&n(Rd);const b=h?el(t.inSSR,y):Qi(t.inSSR,y);n(r(b)+"(",e),Va(_F([i,l,a,c,d]),t),n(")"),h&&n(")"),p&&(n(", "),Bn(p,t),n(")"))}function _F(e){let t=e.length;for(;t--&&e[t]==null;);return e.slice(0,t+1).map(n=>n||"null")}function bF(e,t){const{push:n,helper:r,pure:o}=t,i=_n(e.callee)?e.callee:r(e.callee);o&&n(Rd),n(i+"(",e),Va(e.arguments,t),n(")")}function wF(e,t){const{push:n,indent:r,deindent:o,newline:i}=t,{properties:l}=e;if(!l.length){n("{}",e);return}const a=l.length>1||!1;n(a?"{":"{ "),a&&r();for(let c=0;c<l.length;c++){const{key:d,value:p}=l[c];gF(d,t),n(": "),Bn(p,t),c<l.length-1&&(n(","),i())}a&&o(),n(a?"}":" }")}function SF(e,t){fg(e.elements,t)}function EF(e,t){const{push:n,indent:r,deindent:o}=t,{params:i,returns:l,body:a,newline:c,isSlot:d}=e;d&&n(`_${Ji[lg]}(`),n("(",e),Yi(i)?Va(i,t):i&&Bn(i,t),n(") => "),(c||a)&&(n("{"),r()),l?(c&&n("return "),Yi(l)?fg(l,t):Bn(l,t)):a&&Bn(a,t),(c||a)&&(o(),n("}")),d&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}function $F(e,t){const{test:n,consequent:r,alternate:o,newline:i}=e,{push:l,indent:a,deindent:c,newline:d}=t;if(n.type===4){const h=!ug(n.content);h&&l("("),Y2(n,t),h&&l(")")}else l("("),Bn(n,t),l(")");i&&a(),t.indentLevel++,i||l(" "),l("? "),Bn(r,t),t.indentLevel--,i&&d(),i||l(" "),l(": ");const p=o.type===19;p||t.indentLevel++,Bn(o,t),p||t.indentLevel--,i&&c(!0)}function xF(e,t){const{push:n,helper:r,indent:o,deindent:i,newline:l}=t;n(`_cache[${e.index}] || (`),e.isVNode&&(o(),n(`${r(Uc)}(-1),`),l()),n(`_cache[${e.index}] = `),Bn(e.value,t),e.isVNode&&(n(","),l(),n(`${r(Uc)}(1),`),l(),n(`_cache[${e.index}]`),i()),n(")")}new RegExp("\\b"+"arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b")+"\\b");const TF=G2(/^(if|else|else-if)$/,(e,t,n)=>CF(e,t,n,(r,o,i)=>{const l=n.parent.children;let a=l.indexOf(r),c=0;for(;a-->=0;){const d=l[a];d&&d.type===9&&(c+=d.branches.length)}return()=>{if(i)r.codegenNode=a_(o,c,n);else{const d=OF(r.codegenNode);d.alternate=a_(o,c+r.branches.length-1,n)}}}));function CF(e,t,n,r){if(t.name!=="else"&&(!t.exp||!t.exp.content.trim())){const o=t.exp?t.exp.loc:e.loc;n.onError(Wt(28,t.loc)),t.exp=dt("true",!1,o)}if(t.name==="if"){const o=l_(e,t),i={type:9,loc:e.loc,branches:[o]};if(n.replaceNode(i),r)return r(i,o,!0)}else{const o=n.parent.children;let i=o.indexOf(e);for(;i-->=-1;){const l=o[i];if(l&&l.type===3){n.removeNode(l);continue}if(l&&l.type===2&&!l.content.trim().length){n.removeNode(l);continue}if(l&&l.type===9){t.name==="else-if"&&l.branches[l.branches.length-1].condition===void 0&&n.onError(Wt(30,e.loc)),n.removeNode();const a=l_(e,t);l.branches.push(a);const c=r&&r(l,a,!1);Pd(a,n),c&&c(),n.currentNode=null}else n.onError(Wt(30,e.loc));break}}}function l_(e,t){const n=e.tagType===3;return{type:10,loc:e.loc,condition:t.name==="else"?void 0:t.exp,children:n&&!Lr(e,"for")?e.children:[e],userKey:kd(e,"key"),isTemplateIf:n}}function a_(e,t,n){return e.condition?Lh(e.condition,u_(e,t,n),on(n.helper(Ua),['""',"true"])):u_(e,t,n)}function u_(e,t,n){const{helper:r}=n,o=Zt("key",dt(`${t}`,!1,$r,2)),{children:i}=e,l=i[0];if(i.length!==1||l.type!==1)if(i.length===1&&l.type===11){const c=l.codegenNode;return zc(c,o,n),c}else return ba(n,r(ya),Fr([o]),i,64+"",void 0,void 0,!0,!1,!1,e.loc);else{const c=l.codegenNode,d=z6(c);return d.type===13&&cg(d,n),zc(d,o,n),c}}function OF(e){for(;;)if(e.type===19)if(e.alternate.type===19)e=e.alternate;else return e;else e.type===20&&(e=e.value)}const AF=G2("for",(e,t,n)=>{const{helper:r,removeHelper:o}=n;return kF(e,t,n,i=>{const l=on(r(rg),[i.source]),a=Vc(e),c=Lr(e,"memo"),d=kd(e,"key"),p=d&&(d.type===6?dt(d.value.content,!0):d.exp),h=d?Zt("key",p):null,v=i.source.type===4&&i.source.constType>0,y=v?64:d?128:256;return i.codegenNode=ba(n,r(ya),void 0,l,y+"",void 0,void 0,!0,!v,!1,e.loc),()=>{let b;const{children:S}=i,T=S.length!==1||S[0].type!==1,C=Hc(e)?e:a&&e.children.length===1&&Hc(e.children[0])?e.children[0]:null;if(C?(b=C.codegenNode,a&&h&&zc(b,h,n)):T?b=ba(n,r(ya),h?Fr([h]):void 0,e.children,"64",void 0,void 0,!0,void 0,!1):(b=S[0].codegenNode,a&&h&&zc(b,h,n),b.isBlock!==!v&&(b.isBlock?(o(di),o(el(n.inSSR,b.isComponent))):o(Qi(n.inSSR,b.isComponent))),b.isBlock=!v,b.isBlock?(r(di),r(el(n.inSSR,b.isComponent))):r(Qi(n.inSSR,b.isComponent))),c){const w=Zi(Mh(i.parseResult,[dt("_cached")]));w.body=F6([no(["const _memo = (",c.exp,")"]),no(["if (_cached",...p?[" && _cached.key === ",p]:[],` && ${n.helperString(M2)}(_cached, _memo)) return _cached`]),no(["const _item = ",b]),dt("_item.memo = _memo"),dt("return _item")]),l.arguments.push(w,dt("_cache"),dt(String(n.cached++)))}else l.arguments.push(Zi(Mh(i.parseResult),b,!0))}})});function kF(e,t,n,r){if(!t.exp){n.onError(Wt(31,t.loc));return}const o=Z2(t.exp);if(!o){n.onError(Wt(32,t.loc));return}const{addIdentifiers:i,removeIdentifiers:l,scopes:a}=n,{source:c,value:d,key:p,index:h}=o,v={type:11,loc:t.loc,source:c,valueAlias:d,keyAlias:p,objectIndexAlias:h,parseResult:o,children:Vc(e)?e.children:[e]};n.replaceNode(v),a.vFor++;const y=r&&r(v);return()=>{a.vFor--,y&&y()}}const IF=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,c_=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,PF=/^\(|\)$/g;function Z2(e,t){const n=e.loc,r=e.content,o=r.match(IF);if(!o)return;const[,i,l]=o,a={source:nc(n,l.trim(),r.indexOf(l,i.length)),value:void 0,key:void 0,index:void 0};let c=i.trim().replace(PF,"").trim();const d=i.indexOf(c),p=c.match(c_);if(p){c=c.replace(c_,"").trim();const h=p[1].trim();let v;if(h&&(v=r.indexOf(h,d+c.length),a.key=nc(n,h,v)),p[2]){const y=p[2].trim();y&&(a.index=nc(n,y,r.indexOf(y,a.key?v+h.length:d+c.length)))}}return c&&(a.value=nc(n,c,d)),a}function nc(e,t,n){return dt(t,!1,B2(e,n,t.length))}function Mh({value:e,key:t,index:n},r=[]){return RF([e,t,n,...r])}function RF(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((n,r)=>n||dt("_".repeat(r+1),!1))}const d_=dt("undefined",!1),LF=(e,t)=>{if(e.type===1&&(e.tagType===1||e.tagType===3)){const n=Lr(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},FF=(e,t,n)=>Zi(e,t,!1,!0,t.length?t[0].loc:n);function NF(e,t,n=FF){t.helper(lg);const{children:r,loc:o}=e,i=[],l=[];let a=t.scopes.vSlot>0||t.scopes.vFor>0;const c=Lr(e,"slot",!0);if(c){const{arg:T,exp:C}=c;T&&!tr(T)&&(a=!0),i.push(Zt(T||dt("default",!0),n(C,r,o)))}let d=!1,p=!1;const h=[],v=new Set;let y=0;for(let T=0;T<r.length;T++){const C=r[T];let w;if(!Vc(C)||!(w=Lr(C,"slot",!0))){C.type!==3&&h.push(C);continue}if(c){t.onError(Wt(37,w.loc));break}d=!0;const{children:E,loc:O}=C,{arg:$=dt("default",!0),exp:P,loc:R}=w;let k;tr($)?k=$?$.content:"default":a=!0;const W=n(P,E,O);let U,j,G;if(U=Lr(C,"if"))a=!0,l.push(Lh(U.exp,rc($,W,y++),d_));else if(j=Lr(C,/^else(-if)?$/,!0)){let X=T,ne;for(;X--&&(ne=r[X],ne.type===3););if(ne&&Vc(ne)&&Lr(ne,"if")){r.splice(T,1),T--;let xe=l[l.length-1];for(;xe.alternate.type===19;)xe=xe.alternate;xe.alternate=j.exp?Lh(j.exp,rc($,W,y++),d_):rc($,W,y++)}else t.onError(Wt(30,j.loc))}else if(G=Lr(C,"for")){a=!0;const X=G.parseResult||Z2(G.exp);X?l.push(on(t.helper(rg),[X.source,Zi(Mh(X),rc($,W),!0)])):t.onError(Wt(32,G.loc))}else{if(k){if(v.has(k)){t.onError(Wt(38,R));continue}v.add(k),k==="default"&&(p=!0)}i.push(Zt($,W))}}if(!c){const T=(C,w)=>{const E=n(C,w,o);return t.compatConfig&&(E.isNonScopedSlot=!0),Zt("default",E)};d?h.length&&h.some(C=>Q2(C))&&(p?t.onError(Wt(39,h[0].loc)):i.push(T(void 0,h))):i.push(T(void 0,r))}const b=a?2:yc(e.children)?3:1;let S=Fr(i.concat(Zt("_",dt(b+"",!1))),o);return l.length&&(S=on(t.helper(N2),[S,ja(l)])),{slots:S,hasDynamicSlots:a}}function rc(e,t,n){const r=[Zt("name",e),Zt("fn",t)];return n!=null&&r.push(Zt("key",dt(String(n),!0))),Fr(r)}function yc(e){for(let t=0;t<e.length;t++){const n=e[t];switch(n.type){case 1:if(n.tagType===2||yc(n.children))return!0;break;case 9:if(yc(n.branches))return!0;break;case 10:case 11:if(yc(n.children))return!0;break}}return!1}function Q2(e){return e.type!==2&&e.type!==12?!0:e.type===2?!!e.content.trim():Q2(e.content)}const eS=new WeakMap,MF=(e,t)=>function(){if(e=t.currentNode,!(e.type===1&&(e.tagType===0||e.tagType===1)))return;const{tag:r,props:o}=e,i=e.tagType===1;let l=i?DF(e,t):`"${r}"`;const a=w6(l)&&l.callee===Mc;let c,d,p,h=0,v,y,b,S=a||l===ea||l===Xm||!i&&(r==="svg"||r==="foreignObject");if(o.length>0){const T=tS(e,t,void 0,i,a);c=T.props,h=T.patchFlag,y=T.dynamicPropNames;const C=T.directives;b=C&&C.length?ja(C.map(w=>BF(w,t))):void 0,T.shouldUseBlock&&(S=!0)}if(e.children.length>0)if(l===Nc&&(S=!0,h|=1024),i&&l!==ea&&l!==Nc){const{slots:C,hasDynamicSlots:w}=NF(e,t);d=C,w&&(h|=1024)}else if(e.children.length===1&&l!==ea){const C=e.children[0],w=C.type,E=w===5||w===8;E&&Nr(C,t)===0&&(h|=1),E||w===2?d=C:d=e.children}else d=e.children;h!==0&&(p=String(h),y&&y.length&&(v=jF(y))),e.codegenNode=ba(t,l,c,d,p,v,b,!!S,!1,i,e.loc)};function DF(e,t,n=!1){let{tag:r}=e;const o=Dh(r),i=kd(e,"is");if(i)if(o||ni("COMPILER_IS_ON_ELEMENT",t)){const c=i.type===6?i.value&&dt(i.value.content,!0):i.exp;if(c)return on(t.helper(Mc),[c])}else i.type===6&&i.value.content.startsWith("vue:")&&(r=i.value.content.slice(4));const l=!o&&Lr(e,"is");if(l&&l.exp)return on(t.helper(Mc),[l.exp]);const a=D2(r)||t.isBuiltInComponent(r);return a?(n||t.helper(a),a):(t.helper(Qm),t.components.add(r),wa(r,"component"))}function tS(e,t,n=e.props,r,o,i=!1){const{tag:l,loc:a,children:c}=e;let d=[];const p=[],h=[],v=c.length>0;let y=!1,b=0,S=!1,T=!1,C=!1,w=!1,E=!1,O=!1;const $=[],P=W=>{d.length&&(p.push(Fr(f_(d),a)),d=[]),W&&p.push(W)},R=({key:W,value:U})=>{if(tr(W)){const j=W.content,G=A2(j);if(G&&(!r||o)&&j.toLowerCase()!=="onclick"&&j!=="onUpdate:modelValue"&&!e_(j)&&(w=!0),G&&e_(j)&&(O=!0),U.type===20||(U.type===4||U.type===8)&&Nr(U,t)>0)return;j==="ref"?S=!0:j==="class"?T=!0:j==="style"?C=!0:j!=="key"&&!$.includes(j)&&$.push(j),r&&(j==="class"||j==="style")&&!$.includes(j)&&$.push(j)}else E=!0};for(let W=0;W<n.length;W++){const U=n[W];if(U.type===6){const{loc:j,name:G,value:X}=U;let ne=!0;if(G==="ref"&&(S=!0,t.scopes.vFor>0&&d.push(Zt(dt("ref_for",!0),dt("true")))),G==="is"&&(Dh(l)||X&&X.content.startsWith("vue:")||ni("COMPILER_IS_ON_ELEMENT",t)))continue;d.push(Zt(dt(G,!0,B2(j,0,G.length)),dt(X?X.content:"",ne,X?X.loc:j)))}else{const{name:j,arg:G,exp:X,loc:ne}=U,xe=j==="bind",Ee=j==="on";if(j==="slot"){r||t.onError(Wt(40,ne));continue}if(j==="once"||j==="memo"||j==="is"||xe&&Xs(G,"is")&&(Dh(l)||ni("COMPILER_IS_ON_ELEMENT",t))||Ee&&i)continue;if((xe&&Xs(G,"key")||Ee&&v&&Xs(G,"vue:before-update"))&&(y=!0),xe&&Xs(G,"ref")&&t.scopes.vFor>0&&d.push(Zt(dt("ref_for",!0),dt("true"))),!G&&(xe||Ee)){if(E=!0,X)if(xe){if(P(),ni("COMPILER_V_BIND_OBJECT_ORDER",t)){p.unshift(X);continue}p.push(X)}else P({type:14,loc:ne,callee:t.helper(ig),arguments:r?[X]:[X,"true"]});else t.onError(Wt(xe?34:35,ne));continue}const ke=t.directiveTransforms[j];if(ke){const{props:Ie,needRuntime:Qe}=ke(U,e,t);!i&&Ie.forEach(R),Ee&&G&&!tr(G)?P(Fr(Ie,a)):d.push(...Ie),Qe&&(h.push(U),qm(Qe)&&eS.set(U,Qe))}else S6(j)||(h.push(U),v&&(y=!0))}}let k;if(p.length?(P(),p.length>1?k=on(t.helper(Dc),p,a):k=p[0]):d.length&&(k=Fr(f_(d),a)),E?b|=16:(T&&!r&&(b|=2),C&&!r&&(b|=4),$.length&&(b|=8),w&&(b|=32)),!y&&(b===0||b===32)&&(S||O||h.length>0)&&(b|=512),!t.inSSR&&k)switch(k.type){case 15:let W=-1,U=-1,j=!1;for(let ne=0;ne<k.properties.length;ne++){const xe=k.properties[ne].key;tr(xe)?xe.content==="class"?W=ne:xe.content==="style"&&(U=ne):xe.isHandlerKey||(j=!0)}const G=k.properties[W],X=k.properties[U];j?k=on(t.helper(_a),[k]):(G&&!tr(G.value)&&(G.value=on(t.helper(og),[G.value])),X&&(C||X.value.type===4&&X.value.content.trim()[0]==="["||X.value.type===17)&&(X.value=on(t.helper(sg),[X.value])));break;case 14:break;default:k=on(t.helper(_a),[on(t.helper(Ba),[k])]);break}return{props:k,directives:h,patchFlag:b,dynamicPropNames:$,shouldUseBlock:y}}function f_(e){const t=new Map,n=[];for(let r=0;r<e.length;r++){const o=e[r];if(o.key.type===8||!o.key.isStatic){n.push(o);continue}const i=o.key.content,l=t.get(i);l?(i==="style"||i==="class"||A2(i))&&UF(l,o):(t.set(i,o),n.push(o))}return n}function UF(e,t){e.value.type===17?e.value.elements.push(t.value):e.value=ja([e.value,t.value],e.loc)}function BF(e,t){const n=[],r=eS.get(e);r?n.push(t.helperString(r)):(t.helper(eg),t.directives.add(e.name),n.push(wa(e.name,"directive")));const{loc:o}=e;if(e.exp&&n.push(e.exp),e.arg&&(e.exp||n.push("void 0"),n.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));const i=dt("true",!1,o);n.push(Fr(e.modifiers.map(l=>Zt(l,i)),o))}return ja(n,e.loc)}function jF(e){let t="[";for(let n=0,r=e.length;n<r;n++)t+=JSON.stringify(e[n]),n<r-1&&(t+=", ");return t+"]"}function Dh(e){return e==="component"||e==="Component"}const VF=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},HF=/-(\w)/g,p_=VF(e=>e.replace(HF,(t,n)=>n?n.toUpperCase():"")),zF=(e,t)=>{if(Hc(e)){const{children:n,loc:r}=e,{slotName:o,slotProps:i}=WF(e,t),l=[t.prefixIdentifiers?"_ctx.$slots":"$slots",o,"{}","undefined","true"];let a=2;i&&(l[2]=i,a=3),n.length&&(l[3]=Zi([],n,!1,!1,r),a=4),t.scopeId&&!t.slotted&&(a=5),l.splice(a),e.codegenNode=on(t.helper(F2),l,r)}};function WF(e,t){let n='"default"',r;const o=[];for(let i=0;i<e.props.length;i++){const l=e.props[i];l.type===6?l.value&&(l.name==="name"?n=JSON.stringify(l.value.content):(l.name=p_(l.name),o.push(l))):l.name==="bind"&&Xs(l.arg,"name")?l.exp&&(n=l.exp):(l.name==="bind"&&l.arg&&tr(l.arg)&&(l.arg.content=p_(l.arg.content)),o.push(l))}if(o.length>0){const{props:i,directives:l}=tS(e,t,o,!1,!1);r=i,l.length&&t.onError(Wt(36,l[0].loc))}return{slotName:n,slotProps:r}}const qF=/^\s*([\w$_]+|(async\s*)?\([^)]*?\))\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,nS=(e,t,n,r)=>{const{loc:o,modifiers:i,arg:l}=e;!e.exp&&!i.length&&n.onError(Wt(35,o));let a;if(l.type===4)if(l.isStatic){let h=l.content;h.startsWith("vue:")&&(h=`vnode-${h.slice(4)}`);const v=t.tagType!==0||h.startsWith("vnode")||!/[A-Z]/.test(h)?T6(Od(h)):`on:${h}`;a=dt(v,!0,l.loc)}else a=no([`${n.helperString(Rh)}(`,l,")"]);else a=l,a.children.unshift(`${n.helperString(Rh)}(`),a.children.push(")");let c=e.exp;c&&!c.content.trim()&&(c=void 0);let d=n.cacheHandlers&&!c&&!n.inVOnce;if(c){const h=U2(c.content),v=!(h||qF.test(c.content)),y=c.content.includes(";");(v||d&&h)&&(c=no([`${v?"$event":"(...args)"} => ${y?"{":"("}`,c,y?"}":")"]))}let p={props:[Zt(a,c||dt("() => {}",!1,o))]};return r&&(p=r(p)),d&&(p.props[0].value=n.cache(p.props[0].value)),p.props.forEach(h=>h.key.isHandlerKey=!0),p},KF=(e,t,n)=>{const{exp:r,modifiers:o,loc:i}=e,l=e.arg;return l.type!==4?(l.children.unshift("("),l.children.push(') || ""')):l.isStatic||(l.content=`${l.content} || ""`),o.includes("camel")&&(l.type===4?l.isStatic?l.content=Od(l.content):l.content=`${n.helperString(Ph)}(${l.content})`:(l.children.unshift(`${n.helperString(Ph)}(`),l.children.push(")"))),n.inSSR||(o.includes("prop")&&h_(l,"."),o.includes("attr")&&h_(l,"^")),!r||r.type===4&&!r.content.trim()?(n.onError(Wt(34,i)),{props:[Zt(l,dt("",!0,i))]}):{props:[Zt(l,r)]}},h_=(e,t)=>{e.type===4?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},GF=(e,t)=>{if(e.type===0||e.type===1||e.type===11||e.type===10)return()=>{const n=e.children;let r,o=!1;for(let i=0;i<n.length;i++){const l=n[i];if(Up(l)){o=!0;for(let a=i+1;a<n.length;a++){const c=n[a];if(Up(c))r||(r=n[i]=no([l],l.loc)),r.children.push(" + ",c),n.splice(a,1),a--;else{r=void 0;break}}}}if(!(!o||n.length===1&&(e.type===0||e.type===1&&e.tagType===0&&!e.props.find(i=>i.type===7&&!t.directiveTransforms[i.name])&&e.tag!=="template")))for(let i=0;i<n.length;i++){const l=n[i];if(Up(l)||l.type===8){const a=[];(l.type!==2||l.content!==" ")&&a.push(l),!t.ssr&&Nr(l,t)===0&&a.push("1"),n[i]={type:12,content:l,loc:l.loc,codegenNode:on(t.helper(Zm),a)}}}}},m_=new WeakSet,XF=(e,t)=>{if(e.type===1&&Lr(e,"once",!0))return m_.has(e)||t.inVOnce?void 0:(m_.add(e),t.inVOnce=!0,t.helper(Uc),()=>{t.inVOnce=!1;const n=t.currentNode;n.codegenNode&&(n.codegenNode=t.cache(n.codegenNode,!0))})},rS=(e,t,n)=>{const{exp:r,arg:o}=e;if(!r)return n.onError(Wt(41,e.loc)),oc();const i=r.loc.source,l=r.type===4?r.content:i,a=n.bindingMetadata[i];if(a==="props"||a==="props-aliased")return n.onError(Wt(44,r.loc)),oc();if(!l.trim()||!U2(l)&&!!1)return n.onError(Wt(42,r.loc)),oc();const d=o||dt("modelValue",!0),p=o?tr(o)?`onUpdate:${Od(o.content)}`:no(['"onUpdate:" + ',o]):"onUpdate:modelValue";let h;const v=n.isTS?"($event: any)":"$event";h=no([`${v} => ((`,r,") = $event)"]);const y=[Zt(d,e.exp),Zt(p,h)];if(e.modifiers.length&&t.tagType===1){const b=e.modifiers.map(T=>(ug(T)?T:JSON.stringify(T))+": true").join(", "),S=o?tr(o)?`${o.content}Modifiers`:no([o,' + "Modifiers"']):"modelModifiers";y.push(Zt(S,dt(`{ ${b} }`,!1,e.loc,2)))}return oc(y)};function oc(e=[]){return{props:e}}const YF=/[\w).+\-_$\]]/,JF=(e,t)=>{ni("COMPILER_FILTER",t)&&(e.type===5&&Wc(e.content,t),e.type===1&&e.props.forEach(n=>{n.type===7&&n.name!=="for"&&n.exp&&Wc(n.exp,t)}))};function Wc(e,t){if(e.type===4)g_(e,t);else for(let n=0;n<e.children.length;n++){const r=e.children[n];typeof r=="object"&&(r.type===4?g_(r,t):r.type===8?Wc(e,t):r.type===5&&Wc(r.content,t))}}function g_(e,t){const n=e.content;let r=!1,o=!1,i=!1,l=!1,a=0,c=0,d=0,p=0,h,v,y,b,S=[];for(y=0;y<n.length;y++)if(v=h,h=n.charCodeAt(y),r)h===39&&v!==92&&(r=!1);else if(o)h===34&&v!==92&&(o=!1);else if(i)h===96&&v!==92&&(i=!1);else if(l)h===47&&v!==92&&(l=!1);else if(h===124&&n.charCodeAt(y+1)!==124&&n.charCodeAt(y-1)!==124&&!a&&!c&&!d)b===void 0?(p=y+1,b=n.slice(0,y).trim()):T();else{switch(h){case 34:o=!0;break;case 39:r=!0;break;case 96:i=!0;break;case 40:d++;break;case 41:d--;break;case 91:c++;break;case 93:c--;break;case 123:a++;break;case 125:a--;break}if(h===47){let C=y-1,w;for(;C>=0&&(w=n.charAt(C),w===" ");C--);(!w||!YF.test(w))&&(l=!0)}}b===void 0?b=n.slice(0,y).trim():p!==0&&T();function T(){S.push(n.slice(p,y).trim()),p=y+1}if(S.length){for(y=0;y<S.length;y++)b=ZF(b,S[y],t);e.content=b}}function ZF(e,t,n){n.helper(tg);const r=t.indexOf("(");if(r<0)return n.filters.add(t),`${wa(t,"filter")}(${e})`;{const o=t.slice(0,r),i=t.slice(r+1);return n.filters.add(o),`${wa(o,"filter")}(${e}${i!==")"?","+i:i}`}}const v_=new WeakSet,QF=(e,t)=>{if(e.type===1){const n=Lr(e,"memo");return!n||v_.has(e)?void 0:(v_.add(e),()=>{const r=e.codegenNode||t.currentNode.codegenNode;r&&r.type===13&&(e.tagType!==1&&cg(r,t),e.codegenNode=on(t.helper(ag),[n.exp,Zi(void 0,r),"_cache",String(t.cached++)]))})}};function e7(e){return[[XF,TF,QF,AF,JF,zF,MF,LF,GF],{on:nS,bind:KF,model:rS}]}function t7(e,t={}){const n=t.onError||Gm,r=t.mode==="module";t.prefixIdentifiers===!0?n(Wt(47)):r&&n(Wt(48));const o=!1;t.cacheHandlers&&n(Wt(49)),t.scopeId&&!r&&n(Wt(50));const i=_n(e)?K6(e,t):e,[l,a]=e7();return lF(i,Wo({},t,{prefixIdentifiers:o,nodeTransforms:[...l,...t.nodeTransforms||[]],directiveTransforms:Wo({},a,t.directiveTransforms||{})})),dF(i,Wo({},t,{prefixIdentifiers:o}))}const n7=()=>({props:[]}),oS=Symbol(""),sS=Symbol(""),iS=Symbol(""),lS=Symbol(""),Uh=Symbol(""),aS=Symbol(""),uS=Symbol(""),cS=Symbol(""),dS=Symbol(""),fS=Symbol("");P6({[oS]:"vModelRadio",[sS]:"vModelCheckbox",[iS]:"vModelText",[lS]:"vModelSelect",[Uh]:"vModelDynamic",[aS]:"withModifiers",[uS]:"withKeys",[cS]:"vShow",[dS]:"Transition",[fS]:"TransitionGroup"});let Ni;function r7(e,t=!1){return Ni||(Ni=document.createElement("div")),t?(Ni.innerHTML=`<div foo="${e.replace(/"/g,""")}">`,Ni.children[0].getAttribute("foo")):(Ni.innerHTML=e,Ni.textContent)}const o7=uo("style,iframe,script,noscript",!0),s7={isVoidTag:y6,isNativeTag:e=>g6(e)||v6(e),isPreTag:e=>e==="pre",decodeEntities:r7,isBuiltInComponent:e=>{if(Di(e,"Transition"))return dS;if(Di(e,"TransitionGroup"))return fS},getNamespace(e,t){let n=t?t.ns:0;if(t&&n===2)if(t.tag==="annotation-xml"){if(e==="svg")return 1;t.props.some(r=>r.type===6&&r.name==="encoding"&&r.value!=null&&(r.value.content==="text/html"||r.value.content==="application/xhtml+xml"))&&(n=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&e!=="mglyph"&&e!=="malignmark"&&(n=0);else t&&n===1&&(t.tag==="foreignObject"||t.tag==="desc"||t.tag==="title")&&(n=0);if(n===0){if(e==="svg")return 1;if(e==="math")return 2}return n},getTextMode({tag:e,ns:t}){if(t===0){if(e==="textarea"||e==="title")return 1;if(o7(e))return 2}return 0}},i7=e=>{e.type===1&&e.props.forEach((t,n)=>{t.type===6&&t.name==="style"&&t.value&&(e.props[n]={type:7,name:"bind",arg:dt("style",!0,t.loc),exp:l7(t.value.content,t.loc),modifiers:[],loc:t.loc})})},l7=(e,t)=>{const n=f6(e);return dt(JSON.stringify(n),!1,t,3)};function qo(e,t){return Wt(e,t)}const a7=(e,t,n)=>{const{exp:r,loc:o}=e;return r||n.onError(qo(51,o)),t.children.length&&(n.onError(qo(52,o)),t.children.length=0),{props:[Zt(dt("innerHTML",!0,o),r||dt("",!0))]}},u7=(e,t,n)=>{const{exp:r,loc:o}=e;return r||n.onError(qo(53,o)),t.children.length&&(n.onError(qo(54,o)),t.children.length=0),{props:[Zt(dt("textContent",!0),r?Nr(r,n)>0?r:on(n.helperString(Ad),[r],o):dt("",!0))]}},c7=(e,t,n)=>{const r=rS(e,t,n);if(!r.props.length||t.tagType===1)return r;e.arg&&n.onError(qo(56,e.arg.loc));const{tag:o}=t,i=n.isCustomElement(o);if(o==="input"||o==="textarea"||o==="select"||i){let l=iS,a=!1;if(o==="input"||i){const c=kd(t,"type");if(c){if(c.type===7)l=Uh;else if(c.value)switch(c.value.content){case"radio":l=oS;break;case"checkbox":l=sS;break;case"file":a=!0,n.onError(qo(57,e.loc));break}}else j6(t)&&(l=Uh)}else o==="select"&&(l=lS);a||(r.needRuntime=n.helper(l))}else n.onError(qo(55,e.loc));return r.props=r.props.filter(l=>!(l.key.type===4&&l.key.content==="modelValue")),r},d7=uo("passive,once,capture"),f7=uo("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),p7=uo("left,right"),pS=uo("onkeyup,onkeydown,onkeypress",!0),h7=(e,t,n,r)=>{const o=[],i=[],l=[];for(let a=0;a<t.length;a++){const c=t[a];c==="native"&&Sa("COMPILER_V_ON_NATIVE",n)||d7(c)?l.push(c):p7(c)?tr(e)?pS(e.content)?o.push(c):i.push(c):(o.push(c),i.push(c)):f7(c)?i.push(c):o.push(c)}return{keyModifiers:o,nonKeyModifiers:i,eventOptionModifiers:l}},y_=(e,t)=>tr(e)&&e.content.toLowerCase()==="onclick"?dt(t,!0):e.type!==4?no(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,m7=(e,t,n)=>nS(e,t,n,r=>{const{modifiers:o}=e;if(!o.length)return r;let{key:i,value:l}=r.props[0];const{keyModifiers:a,nonKeyModifiers:c,eventOptionModifiers:d}=h7(i,o,n,e.loc);if(c.includes("right")&&(i=y_(i,"onContextmenu")),c.includes("middle")&&(i=y_(i,"onMouseup")),c.length&&(l=on(n.helper(aS),[l,JSON.stringify(c)])),a.length&&(!tr(i)||pS(i.content))&&(l=on(n.helper(uS),[l,JSON.stringify(a)])),d.length){const p=d.map(Km).join("");i=tr(i)?dt(`${i.content}${p}`,!0):no(["(",i,`) + "${p}"`])}return{props:[Zt(i,l)]}}),g7=(e,t,n)=>{const{exp:r,loc:o}=e;return r||n.onError(qo(59,o)),{props:[],needRuntime:n.helper(cS)}},v7=(e,t)=>{e.type===1&&e.tagType===0&&(e.tag==="script"||e.tag==="style")&&(t.onError(qo(61,e.loc)),t.removeNode())},y7=[i7],_7={cloak:n7,html:a7,text:u7,model:c7,on:m7,show:g7};function b7(e,t={}){return t7(e,Wo({},s7,t,{nodeTransforms:[v7,...y7,...t.nodeTransforms||[]],directiveTransforms:Wo({},_7,t.directiveTransforms||{}),transformHoist:null}))}const __=Object.create(null);function w7(e,t){if(!_n(e))if(e.nodeType)e=e.innerHTML;else return Fc;const n=e,r=__[n];if(r)return r;if(e[0]==="#"){const a=document.querySelector(e);e=a?a.innerHTML:""}const o=Wo({hoistStatic:!0,onError:void 0,onWarn:Fc},t);!o.isCustomElement&&typeof customElements<"u"&&(o.isCustomElement=a=>!!customElements.get(a));const{code:i}=b7(e,o),l=new Function("Vue",i)(a6);return l._rc=!0,__[n]=l}Jw(w7);function $a(e){"@babel/helpers - typeof";return $a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$a(e)}function S7(e,t){if($a(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if($a(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function E7(e){var t=S7(e,"string");return $a(t)=="symbol"?t:String(t)}function $7(e,t,n){return t=E7(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function w_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?b_(Object(n),!0).forEach(function(r){$7(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Fn(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var S_=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),jp=function(){return Math.random().toString(36).substring(7).split("").join(".")},qc={INIT:"@@redux/INIT"+jp(),REPLACE:"@@redux/REPLACE"+jp(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+jp()}};function x7(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function pg(e,t,n){var r;if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(Fn(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Fn(1));return n(pg)(e,t)}if(typeof e!="function")throw new Error(Fn(2));var o=e,i=t,l=[],a=l,c=!1;function d(){a===l&&(a=l.slice())}function p(){if(c)throw new Error(Fn(3));return i}function h(S){if(typeof S!="function")throw new Error(Fn(4));if(c)throw new Error(Fn(5));var T=!0;return d(),a.push(S),function(){if(T){if(c)throw new Error(Fn(6));T=!1,d();var w=a.indexOf(S);a.splice(w,1),l=null}}}function v(S){if(!x7(S))throw new Error(Fn(7));if(typeof S.type>"u")throw new Error(Fn(8));if(c)throw new Error(Fn(9));try{c=!0,i=o(i,S)}finally{c=!1}for(var T=l=a,C=0;C<T.length;C++){var w=T[C];w()}return S}function y(S){if(typeof S!="function")throw new Error(Fn(10));o=S,v({type:qc.REPLACE})}function b(){var S,T=h;return S={subscribe:function(w){if(typeof w!="object"||w===null)throw new Error(Fn(11));function E(){w.next&&w.next(p())}E();var O=T(E);return{unsubscribe:O}}},S[S_]=function(){return this},S}return v({type:qc.INIT}),r={dispatch:v,subscribe:h,getState:p,replaceReducer:y},r[S_]=b,r}function T7(e){Object.keys(e).forEach(function(t){var n=e[t],r=n(void 0,{type:qc.INIT});if(typeof r>"u")throw new Error(Fn(12));if(typeof n(void 0,{type:qc.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Fn(13))})}function hS(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];typeof e[o]=="function"&&(n[o]=e[o])}var i=Object.keys(n),l;try{T7(n)}catch(a){l=a}return function(c,d){if(c===void 0&&(c={}),l)throw l;for(var p=!1,h={},v=0;v<i.length;v++){var y=i[v],b=n[y],S=c[y],T=b(S,d);if(typeof T>"u")throw d&&d.type,new Error(Fn(14));h[y]=T,p=p||T!==S}return p=p||i.length!==Object.keys(c).length,p?h:c}}function mS(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.length===0?function(r){return r}:t.length===1?t[0]:t.reduce(function(r,o){return function(){return r(o.apply(void 0,arguments))}})}function C7(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){return function(){var o=r.apply(void 0,arguments),i=function(){throw new Error(Fn(15))},l={getState:o.getState,dispatch:function(){return i.apply(void 0,arguments)}},a=t.map(function(c){return c(l)});return i=mS.apply(void 0,a)(o.dispatch),w_(w_({},o),{},{dispatch:i})}}}function O7(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(r,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const Bh=Symbol("ReduxStore"),E_=Symbol("ReduxActions"),A7=(e,t)=>{if(!e)throw new Error("[redux-vuex]: store is not defined");t?t.provide(Bh,e):Qt(Bh,e)},k7=(e,t)=>{!e||(t?t.provide(E_,e):Qt(E_,e))},Ze=()=>Ft(Bh)||(console.warn("[redux-vuex]: couldn't find a store, make sure you have provided it"),pg(hS({})));function I7(e){A7(e.store,e.app),k7(e.actions,e.app)}/*!6 `),e.hoists.length)){const h=[Jm,Zm,Ua,Qm,R2].filter(v=>p.includes(v)).map(G2).join(", ");o(`const { ${h} } = _Vue 7 `)}pF(e.hoists,t),i(),o("return ")}function jp(e,t,{helper:n,push:r,newline:o,isTS:i}){const l=n(t==="filter"?ng:t==="component"?eg:tg);for(let a=0;a<e.length;a++){let c=e[a];const d=c.endsWith("__self");d&&(c=c.slice(0,-6)),r(`const ${wa(c,t)} = ${l}(${JSON.stringify(c)}${d?", true":""})${i?"!":""}`),a<e.length-1&&o()}}function pF(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:r,helper:o,scopeId:i,mode:l}=t;r();for(let a=0;a<e.length;a++){const c=e[a];c&&(n(`const _hoisted_${a+1} = `),Bn(c,t),r())}t.pure=!1}function pg(e,t){const n=e.length>3||!1;t.push("["),n&&t.indent(),Va(e,t,n),n&&t.deindent(),t.push("]")}function Va(e,t,n=!1,r=!0){const{push:o,newline:i}=t;for(let l=0;l<e.length;l++){const a=e[l];_n(a)?o(a):Yi(a)?pg(a,t):Bn(a,t),l<e.length-1&&(n?(r&&o(","),i()):r&&o(", "))}}function Bn(e,t){if(_n(e)){t.push(e);return}if(Km(e)){t.push(t.helper(e));return}switch(e.type){case 1:case 9:case 11:Bn(e.codegenNode,t);break;case 2:hF(e,t);break;case 4:X2(e,t);break;case 5:mF(e,t);break;case 12:Bn(e.codegenNode,t);break;case 8:Y2(e,t);break;case 3:vF(e,t);break;case 13:yF(e,t);break;case 14:bF(e,t);break;case 15:wF(e,t);break;case 17:SF(e,t);break;case 18:EF(e,t);break;case 19:$F(e,t);break;case 20:xF(e,t);break;case 21:Va(e.body,t,!0,!1);break}}function hF(e,t){t.push(JSON.stringify(e.content),e)}function X2(e,t){const{content:n,isStatic:r}=e;t.push(r?JSON.stringify(n):n,e)}function mF(e,t){const{push:n,helper:r,pure:o}=t;o&&n(Rd),n(`${r(Ad)}(`),Bn(e.content,t),n(")")}function Y2(e,t){for(let n=0;n<e.children.length;n++){const r=e.children[n];_n(r)?t.push(r):Bn(r,t)}}function gF(e,t){const{push:n}=t;if(e.type===8)n("["),Y2(e,t),n("]");else if(e.isStatic){const r=cg(e.content)?e.content:JSON.stringify(e.content);n(r,e)}else n(`[${e.content}]`,e)}function vF(e,t){const{push:n,helper:r,pure:o}=t;o&&n(Rd),n(`${r(Ua)}(${JSON.stringify(e.content)})`,e)}function yF(e,t){const{push:n,helper:r,pure:o}=t,{tag:i,props:l,children:a,patchFlag:c,dynamicProps:d,directives:p,isBlock:h,disableTracking:v,isComponent:y}=e;p&&n(r(rg)+"("),h&&n(`(${r(di)}(${v?"true":""}), `),o&&n(Rd);const b=h?el(t.inSSR,y):Qi(t.inSSR,y);n(r(b)+"(",e),Va(_F([i,l,a,c,d]),t),n(")"),h&&n(")"),p&&(n(", "),Bn(p,t),n(")"))}function _F(e){let t=e.length;for(;t--&&e[t]==null;);return e.slice(0,t+1).map(n=>n||"null")}function bF(e,t){const{push:n,helper:r,pure:o}=t,i=_n(e.callee)?e.callee:r(e.callee);o&&n(Rd),n(i+"(",e),Va(e.arguments,t),n(")")}function wF(e,t){const{push:n,indent:r,deindent:o,newline:i}=t,{properties:l}=e;if(!l.length){n("{}",e);return}const a=l.length>1||!1;n(a?"{":"{ "),a&&r();for(let c=0;c<l.length;c++){const{key:d,value:p}=l[c];gF(d,t),n(": "),Bn(p,t),c<l.length-1&&(n(","),i())}a&&o(),n(a?"}":" }")}function SF(e,t){pg(e.elements,t)}function EF(e,t){const{push:n,indent:r,deindent:o}=t,{params:i,returns:l,body:a,newline:c,isSlot:d}=e;d&&n(`_${Ji[ag]}(`),n("(",e),Yi(i)?Va(i,t):i&&Bn(i,t),n(") => "),(c||a)&&(n("{"),r()),l?(c&&n("return "),Yi(l)?pg(l,t):Bn(l,t)):a&&Bn(a,t),(c||a)&&(o(),n("}")),d&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}function $F(e,t){const{test:n,consequent:r,alternate:o,newline:i}=e,{push:l,indent:a,deindent:c,newline:d}=t;if(n.type===4){const h=!cg(n.content);h&&l("("),X2(n,t),h&&l(")")}else l("("),Bn(n,t),l(")");i&&a(),t.indentLevel++,i||l(" "),l("? "),Bn(r,t),t.indentLevel--,i&&d(),i||l(" "),l(": ");const p=o.type===19;p||t.indentLevel++,Bn(o,t),p||t.indentLevel--,i&&c(!0)}function xF(e,t){const{push:n,helper:r,indent:o,deindent:i,newline:l}=t;n(`_cache[${e.index}] || (`),e.isVNode&&(o(),n(`${r(Uc)}(-1),`),l()),n(`_cache[${e.index}] = `),Bn(e.value,t),e.isVNode&&(n(","),l(),n(`${r(Uc)}(1),`),l(),n(`_cache[${e.index}]`),i()),n(")")}new RegExp("\\b"+"arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b")+"\\b");const TF=K2(/^(if|else|else-if)$/,(e,t,n)=>CF(e,t,n,(r,o,i)=>{const l=n.parent.children;let a=l.indexOf(r),c=0;for(;a-->=0;){const d=l[a];d&&d.type===9&&(c+=d.branches.length)}return()=>{if(i)r.codegenNode=l1(o,c,n);else{const d=OF(r.codegenNode);d.alternate=l1(o,c+r.branches.length-1,n)}}}));function CF(e,t,n,r){if(t.name!=="else"&&(!t.exp||!t.exp.content.trim())){const o=t.exp?t.exp.loc:e.loc;n.onError(Wt(28,t.loc)),t.exp=dt("true",!1,o)}if(t.name==="if"){const o=i1(e,t),i={type:9,loc:e.loc,branches:[o]};if(n.replaceNode(i),r)return r(i,o,!0)}else{const o=n.parent.children;let i=o.indexOf(e);for(;i-->=-1;){const l=o[i];if(l&&l.type===3){n.removeNode(l);continue}if(l&&l.type===2&&!l.content.trim().length){n.removeNode(l);continue}if(l&&l.type===9){t.name==="else-if"&&l.branches[l.branches.length-1].condition===void 0&&n.onError(Wt(30,e.loc)),n.removeNode();const a=i1(e,t);l.branches.push(a);const c=r&&r(l,a,!1);Pd(a,n),c&&c(),n.currentNode=null}else n.onError(Wt(30,e.loc));break}}}function i1(e,t){const n=e.tagType===3;return{type:10,loc:e.loc,condition:t.name==="else"?void 0:t.exp,children:n&&!Fr(e,"for")?e.children:[e],userKey:kd(e,"key"),isTemplateIf:n}}function l1(e,t,n){return e.condition?Fh(e.condition,a1(e,t,n),on(n.helper(Ua),['""',"true"])):a1(e,t,n)}function a1(e,t,n){const{helper:r}=n,o=Zt("key",dt(`${t}`,!1,xr,2)),{children:i}=e,l=i[0];if(i.length!==1||l.type!==1)if(i.length===1&&l.type===11){const c=l.codegenNode;return zc(c,o,n),c}else return ba(n,r(ya),Nr([o]),i,64+"",void 0,void 0,!0,!1,!1,e.loc);else{const c=l.codegenNode,d=z6(c);return d.type===13&&dg(d,n),zc(d,o,n),c}}function OF(e){for(;;)if(e.type===19)if(e.alternate.type===19)e=e.alternate;else return e;else e.type===20&&(e=e.value)}const AF=K2("for",(e,t,n)=>{const{helper:r,removeHelper:o}=n;return kF(e,t,n,i=>{const l=on(r(og),[i.source]),a=Vc(e),c=Fr(e,"memo"),d=kd(e,"key"),p=d&&(d.type===6?dt(d.value.content,!0):d.exp),h=d?Zt("key",p):null,v=i.source.type===4&&i.source.constType>0,y=v?64:d?128:256;return i.codegenNode=ba(n,r(ya),void 0,l,y+"",void 0,void 0,!0,!v,!1,e.loc),()=>{let b;const{children:S}=i,T=S.length!==1||S[0].type!==1,C=Hc(e)?e:a&&e.children.length===1&&Hc(e.children[0])?e.children[0]:null;if(C?(b=C.codegenNode,a&&h&&zc(b,h,n)):T?b=ba(n,r(ya),h?Nr([h]):void 0,e.children,"64",void 0,void 0,!0,void 0,!1):(b=S[0].codegenNode,a&&h&&zc(b,h,n),b.isBlock!==!v&&(b.isBlock?(o(di),o(el(n.inSSR,b.isComponent))):o(Qi(n.inSSR,b.isComponent))),b.isBlock=!v,b.isBlock?(r(di),r(el(n.inSSR,b.isComponent))):r(Qi(n.inSSR,b.isComponent))),c){const w=Zi(Dh(i.parseResult,[dt("_cached")]));w.body=F6([ro(["const _memo = (",c.exp,")"]),ro(["if (_cached",...p?[" && _cached.key === ",p]:[],` && ${n.helperString(N2)}(_cached, _memo)) return _cached`]),ro(["const _item = ",b]),dt("_item.memo = _memo"),dt("return _item")]),l.arguments.push(w,dt("_cache"),dt(String(n.cached++)))}else l.arguments.push(Zi(Dh(i.parseResult),b,!0))}})});function kF(e,t,n,r){if(!t.exp){n.onError(Wt(31,t.loc));return}const o=J2(t.exp);if(!o){n.onError(Wt(32,t.loc));return}const{addIdentifiers:i,removeIdentifiers:l,scopes:a}=n,{source:c,value:d,key:p,index:h}=o,v={type:11,loc:t.loc,source:c,valueAlias:d,keyAlias:p,objectIndexAlias:h,parseResult:o,children:Vc(e)?e.children:[e]};n.replaceNode(v),a.vFor++;const y=r&&r(v);return()=>{a.vFor--,y&&y()}}const IF=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,u1=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,PF=/^\(|\)$/g;function J2(e,t){const n=e.loc,r=e.content,o=r.match(IF);if(!o)return;const[,i,l]=o,a={source:nc(n,l.trim(),r.indexOf(l,i.length)),value:void 0,key:void 0,index:void 0};let c=i.trim().replace(PF,"").trim();const d=i.indexOf(c),p=c.match(u1);if(p){c=c.replace(u1,"").trim();const h=p[1].trim();let v;if(h&&(v=r.indexOf(h,d+c.length),a.key=nc(n,h,v)),p[2]){const y=p[2].trim();y&&(a.index=nc(n,y,r.indexOf(y,a.key?v+h.length:d+c.length)))}}return c&&(a.value=nc(n,c,d)),a}function nc(e,t,n){return dt(t,!1,U2(e,n,t.length))}function Dh({value:e,key:t,index:n},r=[]){return RF([e,t,n,...r])}function RF(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((n,r)=>n||dt("_".repeat(r+1),!1))}const c1=dt("undefined",!1),LF=(e,t)=>{if(e.type===1&&(e.tagType===1||e.tagType===3)){const n=Fr(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},FF=(e,t,n)=>Zi(e,t,!1,!0,t.length?t[0].loc:n);function NF(e,t,n=FF){t.helper(ag);const{children:r,loc:o}=e,i=[],l=[];let a=t.scopes.vSlot>0||t.scopes.vFor>0;const c=Fr(e,"slot",!0);if(c){const{arg:T,exp:C}=c;T&&!nr(T)&&(a=!0),i.push(Zt(T||dt("default",!0),n(C,r,o)))}let d=!1,p=!1;const h=[],v=new Set;let y=0;for(let T=0;T<r.length;T++){const C=r[T];let w;if(!Vc(C)||!(w=Fr(C,"slot",!0))){C.type!==3&&h.push(C);continue}if(c){t.onError(Wt(37,w.loc));break}d=!0;const{children:E,loc:O}=C,{arg:$=dt("default",!0),exp:P,loc:R}=w;let k;nr($)?k=$?$.content:"default":a=!0;const W=n(P,E,O);let U,j,G;if(U=Fr(C,"if"))a=!0,l.push(Fh(U.exp,rc($,W,y++),c1));else if(j=Fr(C,/^else(-if)?$/,!0)){let X=T,ne;for(;X--&&(ne=r[X],ne.type===3););if(ne&&Vc(ne)&&Fr(ne,"if")){r.splice(T,1),T--;let xe=l[l.length-1];for(;xe.alternate.type===19;)xe=xe.alternate;xe.alternate=j.exp?Fh(j.exp,rc($,W,y++),c1):rc($,W,y++)}else t.onError(Wt(30,j.loc))}else if(G=Fr(C,"for")){a=!0;const X=G.parseResult||J2(G.exp);X?l.push(on(t.helper(og),[X.source,Zi(Dh(X),rc($,W),!0)])):t.onError(Wt(32,G.loc))}else{if(k){if(v.has(k)){t.onError(Wt(38,R));continue}v.add(k),k==="default"&&(p=!0)}i.push(Zt($,W))}}if(!c){const T=(C,w)=>{const E=n(C,w,o);return t.compatConfig&&(E.isNonScopedSlot=!0),Zt("default",E)};d?h.length&&h.some(C=>Z2(C))&&(p?t.onError(Wt(39,h[0].loc)):i.push(T(void 0,h))):i.push(T(void 0,r))}const b=a?2:yc(e.children)?3:1;let S=Nr(i.concat(Zt("_",dt(b+"",!1))),o);return l.length&&(S=on(t.helper(F2),[S,ja(l)])),{slots:S,hasDynamicSlots:a}}function rc(e,t,n){const r=[Zt("name",e),Zt("fn",t)];return n!=null&&r.push(Zt("key",dt(String(n),!0))),Nr(r)}function yc(e){for(let t=0;t<e.length;t++){const n=e[t];switch(n.type){case 1:if(n.tagType===2||yc(n.children))return!0;break;case 9:if(yc(n.branches))return!0;break;case 10:case 11:if(yc(n.children))return!0;break}}return!1}function Z2(e){return e.type!==2&&e.type!==12?!0:e.type===2?!!e.content.trim():Z2(e.content)}const Q2=new WeakMap,MF=(e,t)=>function(){if(e=t.currentNode,!(e.type===1&&(e.tagType===0||e.tagType===1)))return;const{tag:r,props:o}=e,i=e.tagType===1;let l=i?DF(e,t):`"${r}"`;const a=w6(l)&&l.callee===Mc;let c,d,p,h=0,v,y,b,S=a||l===ea||l===Ym||!i&&(r==="svg"||r==="foreignObject");if(o.length>0){const T=eS(e,t,void 0,i,a);c=T.props,h=T.patchFlag,y=T.dynamicPropNames;const C=T.directives;b=C&&C.length?ja(C.map(w=>BF(w,t))):void 0,T.shouldUseBlock&&(S=!0)}if(e.children.length>0)if(l===Nc&&(S=!0,h|=1024),i&&l!==ea&&l!==Nc){const{slots:C,hasDynamicSlots:w}=NF(e,t);d=C,w&&(h|=1024)}else if(e.children.length===1&&l!==ea){const C=e.children[0],w=C.type,E=w===5||w===8;E&&Mr(C,t)===0&&(h|=1),E||w===2?d=C:d=e.children}else d=e.children;h!==0&&(p=String(h),y&&y.length&&(v=jF(y))),e.codegenNode=ba(t,l,c,d,p,v,b,!!S,!1,i,e.loc)};function DF(e,t,n=!1){let{tag:r}=e;const o=Uh(r),i=kd(e,"is");if(i)if(o||ni("COMPILER_IS_ON_ELEMENT",t)){const c=i.type===6?i.value&&dt(i.value.content,!0):i.exp;if(c)return on(t.helper(Mc),[c])}else i.type===6&&i.value.content.startsWith("vue:")&&(r=i.value.content.slice(4));const l=!o&&Fr(e,"is");if(l&&l.exp)return on(t.helper(Mc),[l.exp]);const a=M2(r)||t.isBuiltInComponent(r);return a?(n||t.helper(a),a):(t.helper(eg),t.components.add(r),wa(r,"component"))}function eS(e,t,n=e.props,r,o,i=!1){const{tag:l,loc:a,children:c}=e;let d=[];const p=[],h=[],v=c.length>0;let y=!1,b=0,S=!1,T=!1,C=!1,w=!1,E=!1,O=!1;const $=[],P=W=>{d.length&&(p.push(Nr(d1(d),a)),d=[]),W&&p.push(W)},R=({key:W,value:U})=>{if(nr(W)){const j=W.content,G=O2(j);if(G&&(!r||o)&&j.toLowerCase()!=="onclick"&&j!=="onUpdate:modelValue"&&!Q_(j)&&(w=!0),G&&Q_(j)&&(O=!0),U.type===20||(U.type===4||U.type===8)&&Mr(U,t)>0)return;j==="ref"?S=!0:j==="class"?T=!0:j==="style"?C=!0:j!=="key"&&!$.includes(j)&&$.push(j),r&&(j==="class"||j==="style")&&!$.includes(j)&&$.push(j)}else E=!0};for(let W=0;W<n.length;W++){const U=n[W];if(U.type===6){const{loc:j,name:G,value:X}=U;let ne=!0;if(G==="ref"&&(S=!0,t.scopes.vFor>0&&d.push(Zt(dt("ref_for",!0),dt("true")))),G==="is"&&(Uh(l)||X&&X.content.startsWith("vue:")||ni("COMPILER_IS_ON_ELEMENT",t)))continue;d.push(Zt(dt(G,!0,U2(j,0,G.length)),dt(X?X.content:"",ne,X?X.loc:j)))}else{const{name:j,arg:G,exp:X,loc:ne}=U,xe=j==="bind",Ee=j==="on";if(j==="slot"){r||t.onError(Wt(40,ne));continue}if(j==="once"||j==="memo"||j==="is"||xe&&Xs(G,"is")&&(Uh(l)||ni("COMPILER_IS_ON_ELEMENT",t))||Ee&&i)continue;if((xe&&Xs(G,"key")||Ee&&v&&Xs(G,"vue:before-update"))&&(y=!0),xe&&Xs(G,"ref")&&t.scopes.vFor>0&&d.push(Zt(dt("ref_for",!0),dt("true"))),!G&&(xe||Ee)){if(E=!0,X)if(xe){if(P(),ni("COMPILER_V_BIND_OBJECT_ORDER",t)){p.unshift(X);continue}p.push(X)}else P({type:14,loc:ne,callee:t.helper(lg),arguments:r?[X]:[X,"true"]});else t.onError(Wt(xe?34:35,ne));continue}const ke=t.directiveTransforms[j];if(ke){const{props:Ie,needRuntime:Qe}=ke(U,e,t);!i&&Ie.forEach(R),Ee&&G&&!nr(G)?P(Nr(Ie,a)):d.push(...Ie),Qe&&(h.push(U),Km(Qe)&&Q2.set(U,Qe))}else S6(j)||(h.push(U),v&&(y=!0))}}let k;if(p.length?(P(),p.length>1?k=on(t.helper(Dc),p,a):k=p[0]):d.length&&(k=Nr(d1(d),a)),E?b|=16:(T&&!r&&(b|=2),C&&!r&&(b|=4),$.length&&(b|=8),w&&(b|=32)),!y&&(b===0||b===32)&&(S||O||h.length>0)&&(b|=512),!t.inSSR&&k)switch(k.type){case 15:let W=-1,U=-1,j=!1;for(let ne=0;ne<k.properties.length;ne++){const xe=k.properties[ne].key;nr(xe)?xe.content==="class"?W=ne:xe.content==="style"&&(U=ne):xe.isHandlerKey||(j=!0)}const G=k.properties[W],X=k.properties[U];j?k=on(t.helper(_a),[k]):(G&&!nr(G.value)&&(G.value=on(t.helper(sg),[G.value])),X&&(C||X.value.type===4&&X.value.content.trim()[0]==="["||X.value.type===17)&&(X.value=on(t.helper(ig),[X.value])));break;case 14:break;default:k=on(t.helper(_a),[on(t.helper(Ba),[k])]);break}return{props:k,directives:h,patchFlag:b,dynamicPropNames:$,shouldUseBlock:y}}function d1(e){const t=new Map,n=[];for(let r=0;r<e.length;r++){const o=e[r];if(o.key.type===8||!o.key.isStatic){n.push(o);continue}const i=o.key.content,l=t.get(i);l?(i==="style"||i==="class"||O2(i))&&UF(l,o):(t.set(i,o),n.push(o))}return n}function UF(e,t){e.value.type===17?e.value.elements.push(t.value):e.value=ja([e.value,t.value],e.loc)}function BF(e,t){const n=[],r=Q2.get(e);r?n.push(t.helperString(r)):(t.helper(tg),t.directives.add(e.name),n.push(wa(e.name,"directive")));const{loc:o}=e;if(e.exp&&n.push(e.exp),e.arg&&(e.exp||n.push("void 0"),n.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));const i=dt("true",!1,o);n.push(Nr(e.modifiers.map(l=>Zt(l,i)),o))}return ja(n,e.loc)}function jF(e){let t="[";for(let n=0,r=e.length;n<r;n++)t+=JSON.stringify(e[n]),n<r-1&&(t+=", ");return t+"]"}function Uh(e){return e==="component"||e==="Component"}const VF=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},HF=/-(\w)/g,f1=VF(e=>e.replace(HF,(t,n)=>n?n.toUpperCase():"")),zF=(e,t)=>{if(Hc(e)){const{children:n,loc:r}=e,{slotName:o,slotProps:i}=WF(e,t),l=[t.prefixIdentifiers?"_ctx.$slots":"$slots",o,"{}","undefined","true"];let a=2;i&&(l[2]=i,a=3),n.length&&(l[3]=Zi([],n,!1,!1,r),a=4),t.scopeId&&!t.slotted&&(a=5),l.splice(a),e.codegenNode=on(t.helper(L2),l,r)}};function WF(e,t){let n='"default"',r;const o=[];for(let i=0;i<e.props.length;i++){const l=e.props[i];l.type===6?l.value&&(l.name==="name"?n=JSON.stringify(l.value.content):(l.name=f1(l.name),o.push(l))):l.name==="bind"&&Xs(l.arg,"name")?l.exp&&(n=l.exp):(l.name==="bind"&&l.arg&&nr(l.arg)&&(l.arg.content=f1(l.arg.content)),o.push(l))}if(o.length>0){const{props:i,directives:l}=eS(e,t,o,!1,!1);r=i,l.length&&t.onError(Wt(36,l[0].loc))}return{slotName:n,slotProps:r}}const qF=/^\s*([\w$_]+|(async\s*)?\([^)]*?\))\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,tS=(e,t,n,r)=>{const{loc:o,modifiers:i,arg:l}=e;!e.exp&&!i.length&&n.onError(Wt(35,o));let a;if(l.type===4)if(l.isStatic){let h=l.content;h.startsWith("vue:")&&(h=`vnode-${h.slice(4)}`);const v=t.tagType!==0||h.startsWith("vnode")||!/[A-Z]/.test(h)?T6(Od(h)):`on:${h}`;a=dt(v,!0,l.loc)}else a=ro([`${n.helperString(Lh)}(`,l,")"]);else a=l,a.children.unshift(`${n.helperString(Lh)}(`),a.children.push(")");let c=e.exp;c&&!c.content.trim()&&(c=void 0);let d=n.cacheHandlers&&!c&&!n.inVOnce;if(c){const h=D2(c.content),v=!(h||qF.test(c.content)),y=c.content.includes(";");(v||d&&h)&&(c=ro([`${v?"$event":"(...args)"} => ${y?"{":"("}`,c,y?"}":")"]))}let p={props:[Zt(a,c||dt("() => {}",!1,o))]};return r&&(p=r(p)),d&&(p.props[0].value=n.cache(p.props[0].value)),p.props.forEach(h=>h.key.isHandlerKey=!0),p},KF=(e,t,n)=>{const{exp:r,modifiers:o,loc:i}=e,l=e.arg;return l.type!==4?(l.children.unshift("("),l.children.push(') || ""')):l.isStatic||(l.content=`${l.content} || ""`),o.includes("camel")&&(l.type===4?l.isStatic?l.content=Od(l.content):l.content=`${n.helperString(Rh)}(${l.content})`:(l.children.unshift(`${n.helperString(Rh)}(`),l.children.push(")"))),n.inSSR||(o.includes("prop")&&p1(l,"."),o.includes("attr")&&p1(l,"^")),!r||r.type===4&&!r.content.trim()?(n.onError(Wt(34,i)),{props:[Zt(l,dt("",!0,i))]}):{props:[Zt(l,r)]}},p1=(e,t)=>{e.type===4?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},GF=(e,t)=>{if(e.type===0||e.type===1||e.type===11||e.type===10)return()=>{const n=e.children;let r,o=!1;for(let i=0;i<n.length;i++){const l=n[i];if(Bp(l)){o=!0;for(let a=i+1;a<n.length;a++){const c=n[a];if(Bp(c))r||(r=n[i]=ro([l],l.loc)),r.children.push(" + ",c),n.splice(a,1),a--;else{r=void 0;break}}}}if(!(!o||n.length===1&&(e.type===0||e.type===1&&e.tagType===0&&!e.props.find(i=>i.type===7&&!t.directiveTransforms[i.name])&&e.tag!=="template")))for(let i=0;i<n.length;i++){const l=n[i];if(Bp(l)||l.type===8){const a=[];(l.type!==2||l.content!==" ")&&a.push(l),!t.ssr&&Mr(l,t)===0&&a.push("1"),n[i]={type:12,content:l,loc:l.loc,codegenNode:on(t.helper(Qm),a)}}}}},h1=new WeakSet,XF=(e,t)=>{if(e.type===1&&Fr(e,"once",!0))return h1.has(e)||t.inVOnce?void 0:(h1.add(e),t.inVOnce=!0,t.helper(Uc),()=>{t.inVOnce=!1;const n=t.currentNode;n.codegenNode&&(n.codegenNode=t.cache(n.codegenNode,!0))})},nS=(e,t,n)=>{const{exp:r,arg:o}=e;if(!r)return n.onError(Wt(41,e.loc)),oc();const i=r.loc.source,l=r.type===4?r.content:i,a=n.bindingMetadata[i];if(a==="props"||a==="props-aliased")return n.onError(Wt(44,r.loc)),oc();if(!l.trim()||!D2(l)&&!!1)return n.onError(Wt(42,r.loc)),oc();const d=o||dt("modelValue",!0),p=o?nr(o)?`onUpdate:${Od(o.content)}`:ro(['"onUpdate:" + ',o]):"onUpdate:modelValue";let h;const v=n.isTS?"($event: any)":"$event";h=ro([`${v} => ((`,r,") = $event)"]);const y=[Zt(d,e.exp),Zt(p,h)];if(e.modifiers.length&&t.tagType===1){const b=e.modifiers.map(T=>(cg(T)?T:JSON.stringify(T))+": true").join(", "),S=o?nr(o)?`${o.content}Modifiers`:ro([o,' + "Modifiers"']):"modelModifiers";y.push(Zt(S,dt(`{ ${b} }`,!1,e.loc,2)))}return oc(y)};function oc(e=[]){return{props:e}}const YF=/[\w).+\-_$\]]/,JF=(e,t)=>{ni("COMPILER_FILTER",t)&&(e.type===5&&Wc(e.content,t),e.type===1&&e.props.forEach(n=>{n.type===7&&n.name!=="for"&&n.exp&&Wc(n.exp,t)}))};function Wc(e,t){if(e.type===4)m1(e,t);else for(let n=0;n<e.children.length;n++){const r=e.children[n];typeof r=="object"&&(r.type===4?m1(r,t):r.type===8?Wc(e,t):r.type===5&&Wc(r.content,t))}}function m1(e,t){const n=e.content;let r=!1,o=!1,i=!1,l=!1,a=0,c=0,d=0,p=0,h,v,y,b,S=[];for(y=0;y<n.length;y++)if(v=h,h=n.charCodeAt(y),r)h===39&&v!==92&&(r=!1);else if(o)h===34&&v!==92&&(o=!1);else if(i)h===96&&v!==92&&(i=!1);else if(l)h===47&&v!==92&&(l=!1);else if(h===124&&n.charCodeAt(y+1)!==124&&n.charCodeAt(y-1)!==124&&!a&&!c&&!d)b===void 0?(p=y+1,b=n.slice(0,y).trim()):T();else{switch(h){case 34:o=!0;break;case 39:r=!0;break;case 96:i=!0;break;case 40:d++;break;case 41:d--;break;case 91:c++;break;case 93:c--;break;case 123:a++;break;case 125:a--;break}if(h===47){let C=y-1,w;for(;C>=0&&(w=n.charAt(C),w===" ");C--);(!w||!YF.test(w))&&(l=!0)}}b===void 0?b=n.slice(0,y).trim():p!==0&&T();function T(){S.push(n.slice(p,y).trim()),p=y+1}if(S.length){for(y=0;y<S.length;y++)b=ZF(b,S[y],t);e.content=b}}function ZF(e,t,n){n.helper(ng);const r=t.indexOf("(");if(r<0)return n.filters.add(t),`${wa(t,"filter")}(${e})`;{const o=t.slice(0,r),i=t.slice(r+1);return n.filters.add(o),`${wa(o,"filter")}(${e}${i!==")"?","+i:i}`}}const g1=new WeakSet,QF=(e,t)=>{if(e.type===1){const n=Fr(e,"memo");return!n||g1.has(e)?void 0:(g1.add(e),()=>{const r=e.codegenNode||t.currentNode.codegenNode;r&&r.type===13&&(e.tagType!==1&&dg(r,t),e.codegenNode=on(t.helper(ug),[n.exp,Zi(void 0,r),"_cache",String(t.cached++)]))})}};function e7(e){return[[XF,TF,QF,AF,JF,zF,MF,LF,GF],{on:tS,bind:KF,model:nS}]}function t7(e,t={}){const n=t.onError||Xm,r=t.mode==="module";t.prefixIdentifiers===!0?n(Wt(47)):r&&n(Wt(48));const o=!1;t.cacheHandlers&&n(Wt(49)),t.scopeId&&!r&&n(Wt(50));const i=_n(e)?K6(e,t):e,[l,a]=e7();return lF(i,Wo({},t,{prefixIdentifiers:o,nodeTransforms:[...l,...t.nodeTransforms||[]],directiveTransforms:Wo({},a,t.directiveTransforms||{})})),dF(i,Wo({},t,{prefixIdentifiers:o}))}const n7=()=>({props:[]}),rS=Symbol(""),oS=Symbol(""),sS=Symbol(""),iS=Symbol(""),Bh=Symbol(""),lS=Symbol(""),aS=Symbol(""),uS=Symbol(""),cS=Symbol(""),dS=Symbol("");P6({[rS]:"vModelRadio",[oS]:"vModelCheckbox",[sS]:"vModelText",[iS]:"vModelSelect",[Bh]:"vModelDynamic",[lS]:"withModifiers",[aS]:"withKeys",[uS]:"vShow",[cS]:"Transition",[dS]:"TransitionGroup"});let Ni;function r7(e,t=!1){return Ni||(Ni=document.createElement("div")),t?(Ni.innerHTML=`<div foo="${e.replace(/"/g,""")}">`,Ni.children[0].getAttribute("foo")):(Ni.innerHTML=e,Ni.textContent)}const o7=co("style,iframe,script,noscript",!0),s7={isVoidTag:y6,isNativeTag:e=>g6(e)||v6(e),isPreTag:e=>e==="pre",decodeEntities:r7,isBuiltInComponent:e=>{if(Di(e,"Transition"))return cS;if(Di(e,"TransitionGroup"))return dS},getNamespace(e,t){let n=t?t.ns:0;if(t&&n===2)if(t.tag==="annotation-xml"){if(e==="svg")return 1;t.props.some(r=>r.type===6&&r.name==="encoding"&&r.value!=null&&(r.value.content==="text/html"||r.value.content==="application/xhtml+xml"))&&(n=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&e!=="mglyph"&&e!=="malignmark"&&(n=0);else t&&n===1&&(t.tag==="foreignObject"||t.tag==="desc"||t.tag==="title")&&(n=0);if(n===0){if(e==="svg")return 1;if(e==="math")return 2}return n},getTextMode({tag:e,ns:t}){if(t===0){if(e==="textarea"||e==="title")return 1;if(o7(e))return 2}return 0}},i7=e=>{e.type===1&&e.props.forEach((t,n)=>{t.type===6&&t.name==="style"&&t.value&&(e.props[n]={type:7,name:"bind",arg:dt("style",!0,t.loc),exp:l7(t.value.content,t.loc),modifiers:[],loc:t.loc})})},l7=(e,t)=>{const n=f6(e);return dt(JSON.stringify(n),!1,t,3)};function qo(e,t){return Wt(e,t)}const a7=(e,t,n)=>{const{exp:r,loc:o}=e;return r||n.onError(qo(51,o)),t.children.length&&(n.onError(qo(52,o)),t.children.length=0),{props:[Zt(dt("innerHTML",!0,o),r||dt("",!0))]}},u7=(e,t,n)=>{const{exp:r,loc:o}=e;return r||n.onError(qo(53,o)),t.children.length&&(n.onError(qo(54,o)),t.children.length=0),{props:[Zt(dt("textContent",!0),r?Mr(r,n)>0?r:on(n.helperString(Ad),[r],o):dt("",!0))]}},c7=(e,t,n)=>{const r=nS(e,t,n);if(!r.props.length||t.tagType===1)return r;e.arg&&n.onError(qo(56,e.arg.loc));const{tag:o}=t,i=n.isCustomElement(o);if(o==="input"||o==="textarea"||o==="select"||i){let l=sS,a=!1;if(o==="input"||i){const c=kd(t,"type");if(c){if(c.type===7)l=Bh;else if(c.value)switch(c.value.content){case"radio":l=rS;break;case"checkbox":l=oS;break;case"file":a=!0,n.onError(qo(57,e.loc));break}}else j6(t)&&(l=Bh)}else o==="select"&&(l=iS);a||(r.needRuntime=n.helper(l))}else n.onError(qo(55,e.loc));return r.props=r.props.filter(l=>!(l.key.type===4&&l.key.content==="modelValue")),r},d7=co("passive,once,capture"),f7=co("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),p7=co("left,right"),fS=co("onkeyup,onkeydown,onkeypress",!0),h7=(e,t,n,r)=>{const o=[],i=[],l=[];for(let a=0;a<t.length;a++){const c=t[a];c==="native"&&Sa("COMPILER_V_ON_NATIVE",n)||d7(c)?l.push(c):p7(c)?nr(e)?fS(e.content)?o.push(c):i.push(c):(o.push(c),i.push(c)):f7(c)?i.push(c):o.push(c)}return{keyModifiers:o,nonKeyModifiers:i,eventOptionModifiers:l}},v1=(e,t)=>nr(e)&&e.content.toLowerCase()==="onclick"?dt(t,!0):e.type!==4?ro(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,m7=(e,t,n)=>tS(e,t,n,r=>{const{modifiers:o}=e;if(!o.length)return r;let{key:i,value:l}=r.props[0];const{keyModifiers:a,nonKeyModifiers:c,eventOptionModifiers:d}=h7(i,o,n,e.loc);if(c.includes("right")&&(i=v1(i,"onContextmenu")),c.includes("middle")&&(i=v1(i,"onMouseup")),c.length&&(l=on(n.helper(lS),[l,JSON.stringify(c)])),a.length&&(!nr(i)||fS(i.content))&&(l=on(n.helper(aS),[l,JSON.stringify(a)])),d.length){const p=d.map(Gm).join("");i=nr(i)?dt(`${i.content}${p}`,!0):ro(["(",i,`) + "${p}"`])}return{props:[Zt(i,l)]}}),g7=(e,t,n)=>{const{exp:r,loc:o}=e;return r||n.onError(qo(59,o)),{props:[],needRuntime:n.helper(uS)}},v7=(e,t)=>{e.type===1&&e.tagType===0&&(e.tag==="script"||e.tag==="style")&&(t.onError(qo(61,e.loc)),t.removeNode())},y7=[i7],_7={cloak:n7,html:a7,text:u7,model:c7,on:m7,show:g7};function b7(e,t={}){return t7(e,Wo({},s7,t,{nodeTransforms:[v7,...y7,...t.nodeTransforms||[]],directiveTransforms:Wo({},_7,t.directiveTransforms||{}),transformHoist:null}))}const y1=Object.create(null);function w7(e,t){if(!_n(e))if(e.nodeType)e=e.innerHTML;else return Fc;const n=e,r=y1[n];if(r)return r;if(e[0]==="#"){const a=document.querySelector(e);e=a?a.innerHTML:""}const o=Wo({hoistStatic:!0,onError:void 0,onWarn:Fc},t);!o.isCustomElement&&typeof customElements<"u"&&(o.isCustomElement=a=>!!customElements.get(a));const{code:i}=b7(e,o),l=new Function("Vue",i)(a6);return l._rc=!0,y1[n]=l}Yw(w7);function $a(e){"@babel/helpers - typeof";return $a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$a(e)}function S7(e,t){if($a(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if($a(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function E7(e){var t=S7(e,"string");return $a(t)=="symbol"?t:String(t)}function $7(e,t,n){return t=E7(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function b1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_1(Object(n),!0).forEach(function(r){$7(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Fn(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var w1=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Vp=function(){return Math.random().toString(36).substring(7).split("").join(".")},qc={INIT:"@@redux/INIT"+Vp(),REPLACE:"@@redux/REPLACE"+Vp(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Vp()}};function x7(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function hg(e,t,n){var r;if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(Fn(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Fn(1));return n(hg)(e,t)}if(typeof e!="function")throw new Error(Fn(2));var o=e,i=t,l=[],a=l,c=!1;function d(){a===l&&(a=l.slice())}function p(){if(c)throw new Error(Fn(3));return i}function h(S){if(typeof S!="function")throw new Error(Fn(4));if(c)throw new Error(Fn(5));var T=!0;return d(),a.push(S),function(){if(T){if(c)throw new Error(Fn(6));T=!1,d();var w=a.indexOf(S);a.splice(w,1),l=null}}}function v(S){if(!x7(S))throw new Error(Fn(7));if(typeof S.type>"u")throw new Error(Fn(8));if(c)throw new Error(Fn(9));try{c=!0,i=o(i,S)}finally{c=!1}for(var T=l=a,C=0;C<T.length;C++){var w=T[C];w()}return S}function y(S){if(typeof S!="function")throw new Error(Fn(10));o=S,v({type:qc.REPLACE})}function b(){var S,T=h;return S={subscribe:function(w){if(typeof w!="object"||w===null)throw new Error(Fn(11));function E(){w.next&&w.next(p())}E();var O=T(E);return{unsubscribe:O}}},S[w1]=function(){return this},S}return v({type:qc.INIT}),r={dispatch:v,subscribe:h,getState:p,replaceReducer:y},r[w1]=b,r}function T7(e){Object.keys(e).forEach(function(t){var n=e[t],r=n(void 0,{type:qc.INIT});if(typeof r>"u")throw new Error(Fn(12));if(typeof n(void 0,{type:qc.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Fn(13))})}function pS(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];typeof e[o]=="function"&&(n[o]=e[o])}var i=Object.keys(n),l;try{T7(n)}catch(a){l=a}return function(c,d){if(c===void 0&&(c={}),l)throw l;for(var p=!1,h={},v=0;v<i.length;v++){var y=i[v],b=n[y],S=c[y],T=b(S,d);if(typeof T>"u")throw d&&d.type,new Error(Fn(14));h[y]=T,p=p||T!==S}return p=p||i.length!==Object.keys(c).length,p?h:c}}function hS(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.length===0?function(r){return r}:t.length===1?t[0]:t.reduce(function(r,o){return function(){return r(o.apply(void 0,arguments))}})}function C7(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){return function(){var o=r.apply(void 0,arguments),i=function(){throw new Error(Fn(15))},l={getState:o.getState,dispatch:function(){return i.apply(void 0,arguments)}},a=t.map(function(c){return c(l)});return i=hS.apply(void 0,a)(o.dispatch),b1(b1({},o),{},{dispatch:i})}}}function O7(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(r,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const jh=Symbol("ReduxStore"),S1=Symbol("ReduxActions"),A7=(e,t)=>{if(!e)throw new Error("[redux-vuex]: store is not defined");t?t.provide(jh,e):Qt(jh,e)},k7=(e,t)=>{!e||(t?t.provide(S1,e):Qt(S1,e))},Ze=()=>Ft(jh)||(console.warn("[redux-vuex]: couldn't find a store, make sure you have provided it"),hg(pS({})));function I7(e){A7(e.store,e.app),k7(e.actions,e.app)}/*! 8 8 * isobject <https://github.com/jonschlinkert/isobject> 9 9 * … … 15 15 * Copyright (c) 2014-2018, Jon Schlinkert. 16 16 * Released under the MIT License. 17 */const gS=P7;var $_=function(e,t,n){if(gS(n)||(n={default:n}),!T_(e))return typeof n.default<"u"?n.default:e;typeof t=="number"&&(t=String(t));const r=Array.isArray(t),o=typeof t=="string",i=n.separator||".",l=n.joinChar||(typeof i=="string"?i:".");if(!o&&!r)return e;if(o&&t in e)return Vp(t,e,n)?e[t]:n.default;let a=r?t:R7(t,i,n),c=a.length,d=0;do{let p=a[d];for(typeof p=="number"&&(p=String(p));p&&p.slice(-1)==="\\";)p=x_([p.slice(0,-1),a[++d]||""],l,n);if(p in e){if(!Vp(p,e,n))return n.default;e=e[p]}else{let h=!1,v=d+1;for(;v<c;)if(p=x_([p,a[v++]],l,n),h=p in e){if(!Vp(p,e,n))return n.default;e=e[p],d=v-1;break}if(!h)return n.default}}while(++d<c&&T_(e));return d===c?e:n.default};function x_(e,t,n){return typeof n.join=="function"?n.join(e):e[0]+t+e[1]}function R7(e,t,n){return typeof n.split=="function"?n.split(e):e.split(t)}function Vp(e,t,n){return typeof n.isValid=="function"?n.isValid(e,t):!0}function T_(e){return gS(e)||Array.isArray(e)||typeof e=="function"}const L7=O7({__proto__:null,default:$_},[$_]),F7=e=>{const[t]=e;if(!Array.isArray(t)&&typeof t=="object")return Object.keys(t).reduce((r,o)=>{const i=t[o];return{...r,[o]:i}},{});const n=e;return[].concat.apply([],n).reduce((r,o)=>({...r,[o]:o}),{})},C_=(e,t)=>Object.keys(e).reduce((n,r)=>{const o=e[r];return{...n,[r]:t(r,o)}},{});function ut(...e){const t=c=>d=>L7(d,c),n=Ze(),r=F7(e),o=C_(r,(c,d)=>typeof d=="string"?t(d):d),i=Ts(C_(r,c=>$e(c))),l=()=>{Object.keys(r).forEach(c=>{i[c]=o[c].call(null,n.getState())})};l();const a=n.subscribe(l);return en(a),i}var co=function(t){return"@@redux-saga/"+t},vS=co("CANCEL_PROMISE"),yS=co("CHANNEL_END"),_S=co("IO"),O_=co("MATCH"),bS=co("MULTICAST"),wS=co("SAGA_ACTION"),SS=co("SELF_CANCELLATION"),N7=co("TASK"),Hi=co("TASK_CANCEL"),ES=co("TERMINATE"),M7=co("LOCATION");function xa(){return xa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xa.apply(this,arguments)}function D7(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var $S=function(t){return t==null},_c=function(t){return t!=null},Kn=function(t){return typeof t=="function"},hg=function(t){return typeof t=="string"},Os=Array.isArray,Ld=function(t){return t&&Kn(t.then)},mg=function(t){return t&&Kn(t.next)&&Kn(t.throw)},A_=function e(t){return t&&(hg(t)||TS(t)||Kn(t)||Os(t)&&t.every(e))},Fd=function(t){return t&&Kn(t.take)&&Kn(t.close)},xS=function(t){return Kn(t)&&t.hasOwnProperty("toString")},TS=function(t){return!!t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype},U7=function(t){return Fd(t)&&t[bS]},B7=2147483647;function j7(e,t){t===void 0&&(t=!0);var n,r=new Promise(function(o){n=setTimeout(o,Math.min(B7,e),t)});return r[vS]=function(){clearTimeout(n)},r}var V7=function(t){return function(){return t}},CS=V7(!0),On=function(){},OS=function(t){return t},gg=function(t,n){xa(t,n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(n).forEach(function(r){t[r]=n[r]})},H7=function(t,n){var r;return(r=[]).concat.apply(r,n.map(t))};function Nd(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}function AS(e){var t=!1;return function(){t||(t=!0,e())}}var z7=function(t){throw t},W7=function(t){return{value:t,done:!0}};function jh(e,t,n){t===void 0&&(t=z7),n===void 0&&(n="iterator");var r={meta:{name:n},next:e,throw:t,return:W7,isSagaIterator:!0};return typeof Symbol<"u"&&(r[Symbol.iterator]=function(){return r}),r}function q7(e,t){var n=t.sagaStack;console.error(e),console.error(n)}var kS=function(t){return Array.apply(null,new Array(t))},K7=function(t){return function(n){return t(Object.defineProperty(n,wS,{value:!0}))}},IS=function(t){return t===ES},PS=function(t){return t===Hi},RS=function(t){return IS(t)||PS(t)};function LS(e,t){var n=Object.keys(e),r=n.length,o=0,i,l=Os(e)?kS(r):{},a={};function c(){o===r&&(i=!0,t(l))}return n.forEach(function(d){var p=function(v,y){i||(y||RS(v)?(t.cancel(),t(v,y)):(l[d]=v,o++,c()))};p.cancel=On,a[d]=p}),t.cancel=function(){i||(i=!0,n.forEach(function(d){return a[d].cancel()}))},a}function vg(e){return{name:e.name||"anonymous",location:FS(e)}}function FS(e){return e[M7]}function G7(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.length===0?function(r){return r}:t.length===1?t[0]:t.reduce(function(r,o){return function(){return r(o.apply(void 0,arguments))}})}var X7="Channel's Buffer overflow!",Y7=1,NS=3,MS=4,J7={isEmpty:CS,put:On,take:On};function DS(e,t){e===void 0&&(e=10);var n=new Array(e),r=0,o=0,i=0,l=function(p){n[o]=p,o=(o+1)%e,r++},a=function(){if(r!=0){var p=n[i];return n[i]=null,r--,i=(i+1)%e,p}},c=function(){for(var p=[];r;)p.push(a());return p};return{isEmpty:function(){return r==0},put:function(p){if(r<e)l(p);else{var h;switch(t){case Y7:throw new Error(X7);case NS:n[o]=p,o=(o+1)%e,i=o;break;case MS:h=2*e,n=c(),r=n.length,o=n.length,i=0,n.length=h,e=h,l(p);break}}},take:a,flush:c}}var Z7=function(){return J7},Q7=function(t){return DS(t,NS)},eN=function(t){return DS(t,MS)},bc="TAKE",US="PUT",BS="ALL",jS="RACE",VS="CALL",tN="CPS",yg="FORK",nN="JOIN",HS="CANCEL",zS="SELECT",WS="ACTION_CHANNEL",qS="CANCELLED",rN="FLUSH",oN="GET_CONTEXT",sN="SET_CONTEXT",Sr=function(t,n){var r;return r={},r[_S]=!0,r.combinator=!1,r.type=t,r.payload=n,r},iN=function(t){return Sr(yg,xa({},t.payload,{detached:!0}))};function ro(e,t){if(e===void 0&&(e="*"),A_(e))return _c(t)&&console.warn("take(pattern) takes one argument but two were provided. Consider passing an array for listening to several action types"),Sr(bc,{pattern:e});if(U7(e)&&_c(t)&&A_(t))return Sr(bc,{channel:e,pattern:t});if(Fd(e))return _c(t)&&console.warn("take(channel) takes one argument but two were provided. Second argument is ignored."),Sr(bc,{channel:e})}function te(e,t){return $S(t)&&(t=e,e=void 0),Sr(US,{channel:e,action:t})}function KS(e){var t=Sr(BS,e);return t.combinator=!0,t}function Vh(e){var t=Sr(jS,e);return t.combinator=!0,t}function GS(e,t){var n=null,r;return Kn(e)?r=e:(Os(e)?(n=e[0],r=e[1]):(n=e.context,r=e.fn),n&&hg(r)&&Kn(n[r])&&(r=n[r])),{context:n,fn:r,args:t}}function $t(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Sr(VS,GS(e,n))}function St(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Sr(yg,GS(e,n))}function lN(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return iN(St.apply(void 0,[e].concat(n)))}function aN(e){return e===void 0&&(e=SS),Sr(HS,e)}function be(e){e===void 0&&(e=OS);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Sr(zS,{selector:e,args:n})}function uN(e,t){return Sr(WS,{pattern:e,buffer:t})}function cN(){return Sr(qS,{})}var Md=$t.bind(null,j7);function dN(){var e={};return e.promise=new Promise(function(t,n){e.resolve=t,e.reject=n}),e}var XS=[],Dd=0;function fN(e){try{_g(),e()}finally{ZS()}}function YS(e){XS.push(e),Dd||(_g(),QS())}function JS(e){try{return _g(),e()}finally{QS()}}function _g(){Dd++}function ZS(){Dd--}function QS(){ZS();for(var e;!Dd&&(e=XS.shift())!==void 0;)fN(e)}var pN=function(t){return function(n){return t.some(function(r){return bg(r)(n)})}},hN=function(t){return function(n){return t(n)}},k_=function(t){return function(n){return n.type===String(t)}},mN=function(t){return function(n){return n.type===t}},eE=function(){return CS};function bg(e){var t=e==="*"?eE:hg(e)?k_:Os(e)?pN:xS(e)?k_:Kn(e)?hN:TS(e)?mN:null;if(t===null)throw new Error("invalid pattern: "+e);return t(e)}var zi={type:yS},Ud=function(t){return t&&t.type===yS};function wg(e){e===void 0&&(e=eN());var t=!1,n=[];function r(a){if(!t){if(n.length===0)return e.put(a);var c=n.shift();c(a)}}function o(a){t&&e.isEmpty()?a(zi):e.isEmpty()?(n.push(a),a.cancel=function(){Nd(n,a)}):a(e.take())}function i(a){if(t&&e.isEmpty()){a(zi);return}a(e.flush())}function l(){if(!t){t=!0;var a=n;n=[];for(var c=0,d=a.length;c<d;c++){var p=a[c];p(zi)}}}return{take:o,put:r,flush:i,close:l}}function tE(e,t){t===void 0&&(t=Z7());var n=!1,r,o=wg(t),i=function(){n||(n=!0,Kn(r)&&r(),o.close())};return r=e(function(l){if(Ud(l)){i();return}o.put(l)}),r=AS(r),n&&r(),{take:o.take,flush:o.flush,close:i}}function gN(){var e,t=!1,n=[],r=n,o=function(){r===n&&(r=n.slice())},i=function(){t=!0;var a=n=r;r=[],a.forEach(function(c){c(zi)})};return e={},e[bS]=!0,e.put=function(a){if(!t){if(Ud(a)){i();return}for(var c=n=r,d=0,p=c.length;d<p;d++){var h=c[d];h[O_](a)&&(h.cancel(),h(a))}}},e.take=function(a,c){if(c===void 0&&(c=eE),t){a(zi);return}a[O_]=c,o(),r.push(a),a.cancel=AS(function(){o(),Nd(r,a)})},e.close=i,e}function nE(){var e=gN(),t=e.put;return e.put=function(n){if(n[wS]){t(n);return}YS(function(){t(n)})},e}var Ks=0,Vo=1,wc=2,rE=3;function Sg(e,t){var n=e[vS];Kn(n)&&(t.cancel=n),e.then(t,function(r){t(r,!0)})}var Ha=0,oE=function(){return++Ha},xn;function vN(e,t){return e.isSagaIterator?{name:e.meta.name}:vg(t)}function yN(e){var t=e.context,n=e.fn,r=e.args;try{var o=n.apply(t,r);if(mg(o))return o;var i=!1,l=function(c){return i?{value:c,done:!0}:(i=!0,{value:o,done:!Ld(o)})};return jh(l)}catch(a){return jh(function(){throw a})}}function _N(e,t,n){var r=t.channel,o=t.action,i=t.resolve;YS(function(){var l;try{l=(r?r.put:e.dispatch)(o)}catch(a){n(a,!0);return}i&&Ld(l)?Sg(l,n):n(l)})}function bN(e,t,n){var r=t.channel,o=r===void 0?e.channel:r,i=t.pattern,l=t.maybe,a=function(d){if(d instanceof Error){n(d,!0);return}if(Ud(d)&&!l){n(ES);return}n(d)};try{o.take(a,_c(i)?bg(i):null)}catch(c){n(c,!0);return}n.cancel=a.cancel}function wN(e,t,n,r){var o=t.context,i=t.fn,l=t.args,a=r.task;try{var c=i.apply(o,l);if(Ld(c)){Sg(c,n);return}if(mg(c)){Bd(e,c,a.context,Ha,vg(i),!1,n);return}n(c)}catch(d){n(d,!0)}}function SN(e,t,n){var r=t.context,o=t.fn,i=t.args;try{var l=function(c,d){$S(c)?n(d):n(c,!0)};o.apply(r,i.concat(l)),l.cancel&&(n.cancel=l.cancel)}catch(a){n(a,!0)}}function EN(e,t,n,r){var o=t.context,i=t.fn,l=t.args,a=t.detached,c=r.task,d=yN({context:o,fn:i,args:l}),p=vN(d,i);JS(function(){var h=Bd(e,d,c.context,Ha,p,a,void 0);a?n(h):h.isRunning()?(c.queue.addTask(h),n(h)):h.isAborted()?c.queue.abort(h.error()):n(h)})}function $N(e,t,n,r){var o=r.task,i=function(c,d){if(c.isRunning()){var p={task:o,cb:d};d.cancel=function(){c.isRunning()&&Nd(c.joiners,p)},c.joiners.push(p)}else c.isAborted()?d(c.error(),!0):d(c.result())};if(Os(t)){if(t.length===0){n([]);return}var l=LS(t,n);t.forEach(function(a,c){i(a,l[c])})}else i(t,n)}function Hp(e){e.isRunning()&&e.cancel()}function xN(e,t,n,r){var o=r.task;t===SS?Hp(o):Os(t)?t.forEach(Hp):Hp(t),n()}function TN(e,t,n,r){var o=r.digestEffect,i=Ha,l=Object.keys(t);if(l.length===0){n(Os(t)?[]:{});return}var a=LS(t,n);l.forEach(function(c){o(t[c],i,a[c],c)})}function CN(e,t,n,r){var o=r.digestEffect,i=Ha,l=Object.keys(t),a=Os(t)?kS(l.length):{},c={},d=!1;l.forEach(function(p){var h=function(y,b){d||(b||RS(y)?(n.cancel(),n(y,b)):(n.cancel(),d=!0,a[p]=y,n(a)))};h.cancel=On,c[p]=h}),n.cancel=function(){d||(d=!0,l.forEach(function(p){return c[p].cancel()}))},l.forEach(function(p){d||o(t[p],i,c[p],p)})}function ON(e,t,n){var r=t.selector,o=t.args;try{var i=r.apply(void 0,[e.getState()].concat(o));n(i)}catch(l){n(l,!0)}}function AN(e,t,n){var r=t.pattern,o=t.buffer,i=wg(o),l=bg(r),a=function d(p){Ud(p)||e.channel.take(d,l),i.put(p)},c=i.close;i.close=function(){a.cancel(),c()},e.channel.take(a,l),n(i)}function kN(e,t,n,r){var o=r.task;n(o.isCancelled())}function IN(e,t,n){t.flush(n)}function PN(e,t,n,r){var o=r.task;n(o.context[t])}function RN(e,t,n,r){var o=r.task;gg(o.context,t),n()}var LN=(xn={},xn[bc]=bN,xn[US]=_N,xn[BS]=TN,xn[jS]=CN,xn[VS]=wN,xn[tN]=SN,xn[yg]=EN,xn[nN]=$N,xn[HS]=xN,xn[zS]=ON,xn[WS]=AN,xn[qS]=kN,xn[rN]=IN,xn[oN]=PN,xn[sN]=RN,xn);function FN(e,t,n){var r=[],o,i=!1;c(e);var l=function(){return r};function a(p){t(),d(),n(p,!0)}function c(p){r.push(p),p.cont=function(h,v){i||(Nd(r,p),p.cont=On,v?a(h):(p===e&&(o=h),r.length||(i=!0,n(o))))}}function d(){i||(i=!0,r.forEach(function(p){p.cont=On,p.cancel()}),r=[])}return{addTask:c,cancelAll:d,abort:a,getTasks:l}}function sE(e,t){return e+"?"+t}function NN(e){var t=FS(e);if(t){var n=t.code,r=t.fileName,o=t.lineNumber,i=n+" "+sE(r,o);return i}return""}function I_(e){var t=e.name,n=e.location;return n?t+" "+sE(n.fileName,n.lineNumber):t}function MN(e){var t=H7(function(n){return n.cancelledTasks},e);return t.length?["Tasks cancelled due to error:"].concat(t).join(`18 `):""}var Eg=null,na=[],DN=function(t){t.crashedEffect=Eg,na.push(t)},iE=function(){Eg=null,na.length=0},UN=function(t){Eg=t},BN=function(){var t=na[0],n=na.slice(1),r=t.crashedEffect?NN(t.crashedEffect):null,o="The above error occurred in task "+I_(t.meta)+(r?`19 when executing effect `+r:"");return[o].concat(n.map(function(i){return" created by "+ I_(i.meta)}),[MN(na)]).join(`20 `)};function jN(e,t,n,r,o,i,l){var a;l===void 0&&(l=On);var c=Ks,d,p,h=null,v=[],y=Object.create(n),b=FN(t,function(){v.push.apply(v,b.getTasks().map(function($){return $.meta.name}))},T);function S(){c===Ks&&(c=Vo,b.cancelAll(),T(Hi,!1))}function T(O,$){if(!$)O===Hi?c=Vo:c!==Vo&&(c= rE),d=O,h&&h.resolve(O);else{if(c=wc,DN({meta:o,cancelledTasks:v}),E.isRoot){var P=BN();iE(),e.onError(O,{sagaStack:P})}p=O,h&&h.reject(O)}E.cont(O,$),E.joiners.forEach(function(R){R.cb(O,$)}),E.joiners=null}function C(O){gg(y,O)}function w(){return h||(h=dN(),c===wc?h.reject(p):c!==Ks&&h.resolve(d)),h.promise}var E=(a={},a[N7]=!0,a.id=r,a.meta=o,a.isRoot=i,a.context=y,a.joiners=[],a.queue=b,a.cancel=S,a.cont=l,a.end=T,a.setContext=C,a.toPromise=w,a.isRunning=function(){return c===Ks},a.isCancelled=function(){return c===Vo||c===Ks&&t.status===Vo},a.isAborted=function(){return c===wc},a.result=function(){return d},a.error=function(){return p},a);return E}function Bd(e,t,n,r,o,i,l){var a=e.finalizeRunEffect(y);v.cancel=On;var c={meta:o,cancel:h,status:Ks},d=jN(e,c,n,r,o,i,l),p={task:d,digestEffect:b};function h(){c.status===Ks&&(c.status=Vo,v(Hi))}return l&&(l.cancel=d.cancel),v(),d;function v(S,T){try{var C;T?(C=t.throw(S),iE()):PS(S)?(c.status=Vo,v.cancel(),C=Kn(t.return)?t.return(Hi):{done:!0,value:Hi}):IS(S)?C=Kn(t.return)?t.return():{done:!0}:C=t.next(S),C.done?(c.status!==Vo&&(c.status=rE),c.cont(C.value)):b(C.value,r,v)}catch(w){if(c.status===Vo)throw w;c.status=wc,c.cont(w,!0)}}function y(S,T,C){if(Ld(S))Sg(S,C);else if(mg(S))Bd(e,S,d.context,T,o,!1,C);else if(S&&S[_S]){var w=LN[S.type];w(e,S.payload,C,p)}else C(S)}function b(S,T,C,w){w===void 0&&(w="");var E=oE();e.sagaMonitor&&e.sagaMonitor.effectTriggered({effectId:E,parentEffectId:T,label:w,effect:S});var O;function $(P,R){O||(O=!0,C.cancel=On,e.sagaMonitor&&(R?e.sagaMonitor.effectRejected(E,P):e.sagaMonitor.effectResolved(E,P)),R&&UN(S),C(P,R))}$.cancel=On,C.cancel=function(){O||(O=!0,$.cancel(),$.cancel=On,e.sagaMonitor&&e.sagaMonitor.effectCancelled(E))},a(S,E,$)}}function VN(e,t){for(var n=e.channel,r=n===void 0?nE():n,o=e.dispatch,i=e.getState,l=e.context,a=l===void 0?{}:l,c=e.sagaMonitor,d=e.effectMiddlewares,p=e.onError,h=p===void 0?q7:p,v=arguments.length,y=new Array(v>2?v-2:0),b=2;b<v;b++)y[b-2]=arguments[b];var S=t.apply(void 0,y),T=oE();c&&(c.rootSagaStarted=c.rootSagaStarted||On,c.effectTriggered=c.effectTriggered||On,c.effectResolved=c.effectResolved||On,c.effectRejected=c.effectRejected||On,c.effectCancelled=c.effectCancelled||On,c.actionDispatched=c.actionDispatched||On,c.rootSagaStarted({effectId:T,saga:t,args:y}));var C;if(d){var w=G7.apply(void 0,d);C=function($){return function(P,R,k){var W=function(j){return $(j,R,k)};return w(W)(P)}}}else C=OS;var E={channel:r,dispatch:K7(o),getState:i,sagaMonitor:c,onError:h,finalizeRunEffect:C};return JS(function(){var O=Bd(E,S,a,T,vg(t),!0,void 0);return c&&c.effectResolved(T,O),O})}function HN(e){var t={},n=t.context,r=n===void 0?{}:n,o=t.channel,i=o===void 0?nE():o,l=t.sagaMonitor,a=D7(t,["context","channel","sagaMonitor"]),c;function d(p){var h=p.getState,v=p.dispatch;return c=VN.bind(null,xa({},a,{context:r,channel:i,dispatch:v,getState:h,sagaMonitor:l})),function(y){return function(b){l&&l.actionDispatched&&l.actionDispatched(b);var S=y(b);return i.put(b),S}}}return d.run=function(){return c.apply(void 0,arguments)},d.setContext=function(p){gg(r,p)},d}var Kc="NOT_FOUND";function zN(e){var t;return{get:function(r){return t&&e(t.key,r)?t.value:Kc},put:function(r,o){t={key:r,value:o}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function WN(e,t){var n=[];function r(a){var c=n.findIndex(function(p){return t(a,p.key)});if(c>-1){var d=n[c];return c>0&&(n.splice(c,1),n.unshift(d)),d.value}return Kc}function o(a,c){r(a)===Kc&&(n.unshift({key:a,value:c}),n.length>e&&n.pop())}function i(){return n}function l(){n=[]}return{get:r,put:o,getEntries:i,clear:l}}var qN=function(t,n){return t===n};function KN(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;for(var o=n.length,i=0;i<o;i++)if(!e(n[i],r[i]))return!1;return!0}}function GN(e,t){var n=typeof t=="object"?t:{equalityCheck:t},r=n.equalityCheck,o=r===void 0?qN:r,i=n.maxSize,l=i===void 0?1:i,a=n.resultEqualityCheck,c=KN(o),d=l===1?zN(c):WN(l,c);function p(){var h=d.get(arguments);if(h===Kc){if(h=e.apply(null,arguments),a){var v=d.getEntries(),y=v.find(function(b){return a(b.value,h)});y&&(h=y.value)}d.put(arguments,h)}return h}return p.clearCache=function(){return d.clear()},p}function XN(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every(function(r){return typeof r=="function"})){var n=t.map(function(r){return typeof r=="function"?"function "+(r.name||"unnamed")+"()":typeof r}).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+n+"]")}return t}function YN(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=function(){for(var l=arguments.length,a=new Array(l),c=0;c<l;c++)a[c]=arguments[c];var d=0,p,h={memoizeOptions:void 0},v=a.pop();if(typeof v=="object"&&(h=v,v=a.pop()),typeof v!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof v+"]");var y=h,b=y.memoizeOptions,S=b===void 0?n:b,T=Array.isArray(S)?S:[S],C=XN(a),w=e.apply(void 0,[function(){return d++,v.apply(null,arguments)}].concat(T)),E=e(function(){for(var O=[],$=C.length,P=0;P<$;P++)O.push(C[P].apply(null,arguments));return p=w.apply(null,O),p});return Object.assign(E,{resultFunc:v,memoizedResultFunc:w,dependencies:C,lastResult:function(){return p},recomputations:function(){return d},resetRecomputations:function(){return d=0}}),E};return o}var he=YN(GN),Ll=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function JN(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ZN=function(e,t,n,r,o,i,l,a){if(!e){var c;if(t===void 0)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var d=[n,r,o,i,l,a],p=0;c=new Error(t.replace(/%s/g,function(){return d[p++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}},QN=ZN;const Gc=JN(QN),Xc=function(e){return typeof e=="function"},P_=function(e){return e.toString()};var eM="/",Sc="||";const ra=function(e){return e},R_=function(e){return e===null};function oe(e,t,n){t===void 0&&(t=ra),Gc(Xc(t)||R_(t),"Expected payloadCreator to be a function, undefined or null");var r=R_(t)||t===ra?ra:function(a){for(var c=arguments.length,d=new Array(c>1?c-1:0),p=1;p<c;p++)d[p-1]=arguments[p];return a instanceof Error?a:t.apply(void 0,[a].concat(d))},o=Xc(n),i=e.toString(),l=function(){var c=r.apply(void 0,arguments),d={type:e};return c instanceof Error&&(d.error=!0),c!==void 0&&(d.payload=c),o&&(d.meta=n.apply(void 0,arguments)),d};return l.toString=function(){return i},l}const $g=function(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t},tM=function(e){return e==null},jd=function(e){return typeof Map<"u"&&e instanceof Map};function xg(e){if(jd(e))return Array.from(e.keys());if(typeof Reflect<"u"&&typeof Reflect.ownKeys=="function")return Reflect.ownKeys(e);var t=Object.getOwnPropertyNames(e);return typeof Object.getOwnPropertySymbols=="function"&&(t=t.concat(Object.getOwnPropertySymbols(e))),t}function lE(e,t){return jd(t)?t.get(e):t[e]}const nM=function(e){return function t(n,r,o,i){var l=r===void 0?{}:r,a=l.namespace,c=a===void 0?eM:a,d=l.prefix;o===void 0&&(o={}),i===void 0&&(i="");function p(v){var y;if(!i)return v;var b=v.toString().split(Sc),S=i.split(Sc);return(y=[]).concat.apply(y,S.map(function(T){return b.map(function(C){return""+T+c+C})})).join(Sc)}function h(v){return i||!d||d&&new RegExp("^"+d+c).test(v)?v:""+d+c+v}return xg(n).forEach(function(v){var y=h(p(v)),b=lE(v,n);e(b)?t(b,{namespace:c,prefix:d},o,y):o[y]=b}),o}},rM=function(e){return e===void 0};function oM(e,t,n){t===void 0&&(t=ra);var r=P_(e).split(Sc);Gc(!rM(n),"defaultState for reducer handling "+r.join(", ")+" should be defined"),Gc(Xc(t)||$g(t),"Expected reducer to be a function or object with next and throw reducers");var o=Xc(t)?[t,t]:[t.next,t.throw].map(function(a){return tM(a)?ra:a}),i=o[0],l=o[1];return function(a,c){a===void 0&&(a=n);var d=c.type;return!d||r.indexOf(P_(d))===-1?a:(c.error===!0?l:i)(a,c)}}const sM=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=typeof t[t.length-1]!="function"&&t.pop(),o=t;if(typeof r>"u")throw new TypeError("The initial state may not be undefined. If you do not want to set a value for this reducer, you can use null instead of undefined.");return function(i,l){for(var a=arguments.length,c=Array(a>2?a-2:0),d=2;d<a;d++)c[d-2]=arguments[d];var p=typeof i>"u",h=typeof l>"u";return p&&h&&r?r:o.reduce(function(v,y){return y.apply(void 0,[v,l].concat(c))},p&&!h&&r?r:i)}};function iM(e){var t=xg(e),n=t.every(function(r){return r==="next"||r==="throw"});return t.length&&t.length<=2&&n}const lM=nM(function(e){return($g(e)||jd(e))&&!iM(e)});function bn(e,t,n){n===void 0&&(n={}),Gc($g(e)||jd(e),"Expected handlers to be a plain object.");var r=lM(e,n),o=xg(r).map(function(l){return oM(l,lE(l,r),t)}),i=sM.apply(void 0,o.concat([t]));return function(l,a){return l===void 0&&(l=t),i(l,a)}}const Wr="podlove/publisher/INIT",aM="podlove/publisher/READY",uM="podlove/publisher/SAVE",cM="podlove/publisher/ERROR",dM=oe(Wr),fM=oe(uM);oe(cM);const pM=oe(aM),hM={saved:!1,changes:!1,bootstrapped:!1},mM=bn({[Wr]:e=>({...e,bootstrapped:!0})},hM),gM={bootstrapped:e=>e.bootstrapped};var Yc={exports:{}};/**17 */const mS=P7;var E1=function(e,t,n){if(mS(n)||(n={default:n}),!x1(e))return typeof n.default<"u"?n.default:e;typeof t=="number"&&(t=String(t));const r=Array.isArray(t),o=typeof t=="string",i=n.separator||".",l=n.joinChar||(typeof i=="string"?i:".");if(!o&&!r)return e;if(o&&t in e)return Hp(t,e,n)?e[t]:n.default;let a=r?t:R7(t,i,n),c=a.length,d=0;do{let p=a[d];for(typeof p=="number"&&(p=String(p));p&&p.slice(-1)==="\\";)p=$1([p.slice(0,-1),a[++d]||""],l,n);if(p in e){if(!Hp(p,e,n))return n.default;e=e[p]}else{let h=!1,v=d+1;for(;v<c;)if(p=$1([p,a[v++]],l,n),h=p in e){if(!Hp(p,e,n))return n.default;e=e[p],d=v-1;break}if(!h)return n.default}}while(++d<c&&x1(e));return d===c?e:n.default};function $1(e,t,n){return typeof n.join=="function"?n.join(e):e[0]+t+e[1]}function R7(e,t,n){return typeof n.split=="function"?n.split(e):e.split(t)}function Hp(e,t,n){return typeof n.isValid=="function"?n.isValid(e,t):!0}function x1(e){return mS(e)||Array.isArray(e)||typeof e=="function"}const L7=O7({__proto__:null,default:E1},[E1]),F7=e=>{const[t]=e;if(!Array.isArray(t)&&typeof t=="object")return Object.keys(t).reduce((r,o)=>{const i=t[o];return{...r,[o]:i}},{});const n=e;return[].concat.apply([],n).reduce((r,o)=>({...r,[o]:o}),{})},T1=(e,t)=>Object.keys(e).reduce((n,r)=>{const o=e[r];return{...n,[r]:t(r,o)}},{});function ut(...e){const t=c=>d=>L7(d,c),n=Ze(),r=F7(e),o=T1(r,(c,d)=>typeof d=="string"?t(d):d),i=Ts(T1(r,c=>$e(c))),l=()=>{Object.keys(r).forEach(c=>{i[c]=o[c].call(null,n.getState())})};l();const a=n.subscribe(l);return en(a),i}var fo=function(t){return"@@redux-saga/"+t},gS=fo("CANCEL_PROMISE"),vS=fo("CHANNEL_END"),yS=fo("IO"),C1=fo("MATCH"),_S=fo("MULTICAST"),bS=fo("SAGA_ACTION"),wS=fo("SELF_CANCELLATION"),N7=fo("TASK"),Hi=fo("TASK_CANCEL"),SS=fo("TERMINATE"),M7=fo("LOCATION");function xa(){return xa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xa.apply(this,arguments)}function D7(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var ES=function(t){return t==null},_c=function(t){return t!=null},Gn=function(t){return typeof t=="function"},mg=function(t){return typeof t=="string"},Os=Array.isArray,Ld=function(t){return t&&Gn(t.then)},gg=function(t){return t&&Gn(t.next)&&Gn(t.throw)},O1=function e(t){return t&&(mg(t)||xS(t)||Gn(t)||Os(t)&&t.every(e))},Fd=function(t){return t&&Gn(t.take)&&Gn(t.close)},$S=function(t){return Gn(t)&&t.hasOwnProperty("toString")},xS=function(t){return!!t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype},U7=function(t){return Fd(t)&&t[_S]},B7=2147483647;function j7(e,t){t===void 0&&(t=!0);var n,r=new Promise(function(o){n=setTimeout(o,Math.min(B7,e),t)});return r[gS]=function(){clearTimeout(n)},r}var V7=function(t){return function(){return t}},TS=V7(!0),On=function(){},CS=function(t){return t},vg=function(t,n){xa(t,n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(n).forEach(function(r){t[r]=n[r]})},H7=function(t,n){var r;return(r=[]).concat.apply(r,n.map(t))};function Nd(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}function OS(e){var t=!1;return function(){t||(t=!0,e())}}var z7=function(t){throw t},W7=function(t){return{value:t,done:!0}};function Vh(e,t,n){t===void 0&&(t=z7),n===void 0&&(n="iterator");var r={meta:{name:n},next:e,throw:t,return:W7,isSagaIterator:!0};return typeof Symbol<"u"&&(r[Symbol.iterator]=function(){return r}),r}function q7(e,t){var n=t.sagaStack;console.error(e),console.error(n)}var AS=function(t){return Array.apply(null,new Array(t))},K7=function(t){return function(n){return t(Object.defineProperty(n,bS,{value:!0}))}},kS=function(t){return t===SS},IS=function(t){return t===Hi},PS=function(t){return kS(t)||IS(t)};function RS(e,t){var n=Object.keys(e),r=n.length,o=0,i,l=Os(e)?AS(r):{},a={};function c(){o===r&&(i=!0,t(l))}return n.forEach(function(d){var p=function(v,y){i||(y||PS(v)?(t.cancel(),t(v,y)):(l[d]=v,o++,c()))};p.cancel=On,a[d]=p}),t.cancel=function(){i||(i=!0,n.forEach(function(d){return a[d].cancel()}))},a}function yg(e){return{name:e.name||"anonymous",location:LS(e)}}function LS(e){return e[M7]}function G7(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.length===0?function(r){return r}:t.length===1?t[0]:t.reduce(function(r,o){return function(){return r(o.apply(void 0,arguments))}})}var X7="Channel's Buffer overflow!",Y7=1,FS=3,NS=4,J7={isEmpty:TS,put:On,take:On};function MS(e,t){e===void 0&&(e=10);var n=new Array(e),r=0,o=0,i=0,l=function(p){n[o]=p,o=(o+1)%e,r++},a=function(){if(r!=0){var p=n[i];return n[i]=null,r--,i=(i+1)%e,p}},c=function(){for(var p=[];r;)p.push(a());return p};return{isEmpty:function(){return r==0},put:function(p){if(r<e)l(p);else{var h;switch(t){case Y7:throw new Error(X7);case FS:n[o]=p,o=(o+1)%e,i=o;break;case NS:h=2*e,n=c(),r=n.length,o=n.length,i=0,n.length=h,e=h,l(p);break}}},take:a,flush:c}}var Z7=function(){return J7},Q7=function(t){return MS(t,FS)},eN=function(t){return MS(t,NS)},bc="TAKE",DS="PUT",US="ALL",BS="RACE",jS="CALL",tN="CPS",_g="FORK",nN="JOIN",VS="CANCEL",HS="SELECT",zS="ACTION_CHANNEL",WS="CANCELLED",rN="FLUSH",oN="GET_CONTEXT",sN="SET_CONTEXT",Er=function(t,n){var r;return r={},r[yS]=!0,r.combinator=!1,r.type=t,r.payload=n,r},iN=function(t){return Er(_g,xa({},t.payload,{detached:!0}))};function oo(e,t){if(e===void 0&&(e="*"),O1(e))return _c(t)&&console.warn("take(pattern) takes one argument but two were provided. Consider passing an array for listening to several action types"),Er(bc,{pattern:e});if(U7(e)&&_c(t)&&O1(t))return Er(bc,{channel:e,pattern:t});if(Fd(e))return _c(t)&&console.warn("take(channel) takes one argument but two were provided. Second argument is ignored."),Er(bc,{channel:e})}function te(e,t){return ES(t)&&(t=e,e=void 0),Er(DS,{channel:e,action:t})}function qS(e){var t=Er(US,e);return t.combinator=!0,t}function Hh(e){var t=Er(BS,e);return t.combinator=!0,t}function KS(e,t){var n=null,r;return Gn(e)?r=e:(Os(e)?(n=e[0],r=e[1]):(n=e.context,r=e.fn),n&&mg(r)&&Gn(n[r])&&(r=n[r])),{context:n,fn:r,args:t}}function $t(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Er(jS,KS(e,n))}function St(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Er(_g,KS(e,n))}function lN(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return iN(St.apply(void 0,[e].concat(n)))}function aN(e){return e===void 0&&(e=wS),Er(VS,e)}function be(e){e===void 0&&(e=CS);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Er(HS,{selector:e,args:n})}function uN(e,t){return Er(zS,{pattern:e,buffer:t})}function cN(){return Er(WS,{})}var Md=$t.bind(null,j7);function dN(){var e={};return e.promise=new Promise(function(t,n){e.resolve=t,e.reject=n}),e}var GS=[],Dd=0;function fN(e){try{bg(),e()}finally{JS()}}function XS(e){GS.push(e),Dd||(bg(),ZS())}function YS(e){try{return bg(),e()}finally{ZS()}}function bg(){Dd++}function JS(){Dd--}function ZS(){JS();for(var e;!Dd&&(e=GS.shift())!==void 0;)fN(e)}var pN=function(t){return function(n){return t.some(function(r){return wg(r)(n)})}},hN=function(t){return function(n){return t(n)}},A1=function(t){return function(n){return n.type===String(t)}},mN=function(t){return function(n){return n.type===t}},QS=function(){return TS};function wg(e){var t=e==="*"?QS:mg(e)?A1:Os(e)?pN:$S(e)?A1:Gn(e)?hN:xS(e)?mN:null;if(t===null)throw new Error("invalid pattern: "+e);return t(e)}var zi={type:vS},Ud=function(t){return t&&t.type===vS};function Sg(e){e===void 0&&(e=eN());var t=!1,n=[];function r(a){if(!t){if(n.length===0)return e.put(a);var c=n.shift();c(a)}}function o(a){t&&e.isEmpty()?a(zi):e.isEmpty()?(n.push(a),a.cancel=function(){Nd(n,a)}):a(e.take())}function i(a){if(t&&e.isEmpty()){a(zi);return}a(e.flush())}function l(){if(!t){t=!0;var a=n;n=[];for(var c=0,d=a.length;c<d;c++){var p=a[c];p(zi)}}}return{take:o,put:r,flush:i,close:l}}function eE(e,t){t===void 0&&(t=Z7());var n=!1,r,o=Sg(t),i=function(){n||(n=!0,Gn(r)&&r(),o.close())};return r=e(function(l){if(Ud(l)){i();return}o.put(l)}),r=OS(r),n&&r(),{take:o.take,flush:o.flush,close:i}}function gN(){var e,t=!1,n=[],r=n,o=function(){r===n&&(r=n.slice())},i=function(){t=!0;var a=n=r;r=[],a.forEach(function(c){c(zi)})};return e={},e[_S]=!0,e.put=function(a){if(!t){if(Ud(a)){i();return}for(var c=n=r,d=0,p=c.length;d<p;d++){var h=c[d];h[C1](a)&&(h.cancel(),h(a))}}},e.take=function(a,c){if(c===void 0&&(c=QS),t){a(zi);return}a[C1]=c,o(),r.push(a),a.cancel=OS(function(){o(),Nd(r,a)})},e.close=i,e}function tE(){var e=gN(),t=e.put;return e.put=function(n){if(n[bS]){t(n);return}XS(function(){t(n)})},e}var Ks=0,Vo=1,wc=2,nE=3;function Eg(e,t){var n=e[gS];Gn(n)&&(t.cancel=n),e.then(t,function(r){t(r,!0)})}var Ha=0,rE=function(){return++Ha},xn;function vN(e,t){return e.isSagaIterator?{name:e.meta.name}:yg(t)}function yN(e){var t=e.context,n=e.fn,r=e.args;try{var o=n.apply(t,r);if(gg(o))return o;var i=!1,l=function(c){return i?{value:c,done:!0}:(i=!0,{value:o,done:!Ld(o)})};return Vh(l)}catch(a){return Vh(function(){throw a})}}function _N(e,t,n){var r=t.channel,o=t.action,i=t.resolve;XS(function(){var l;try{l=(r?r.put:e.dispatch)(o)}catch(a){n(a,!0);return}i&&Ld(l)?Eg(l,n):n(l)})}function bN(e,t,n){var r=t.channel,o=r===void 0?e.channel:r,i=t.pattern,l=t.maybe,a=function(d){if(d instanceof Error){n(d,!0);return}if(Ud(d)&&!l){n(SS);return}n(d)};try{o.take(a,_c(i)?wg(i):null)}catch(c){n(c,!0);return}n.cancel=a.cancel}function wN(e,t,n,r){var o=t.context,i=t.fn,l=t.args,a=r.task;try{var c=i.apply(o,l);if(Ld(c)){Eg(c,n);return}if(gg(c)){Bd(e,c,a.context,Ha,yg(i),!1,n);return}n(c)}catch(d){n(d,!0)}}function SN(e,t,n){var r=t.context,o=t.fn,i=t.args;try{var l=function(c,d){ES(c)?n(d):n(c,!0)};o.apply(r,i.concat(l)),l.cancel&&(n.cancel=l.cancel)}catch(a){n(a,!0)}}function EN(e,t,n,r){var o=t.context,i=t.fn,l=t.args,a=t.detached,c=r.task,d=yN({context:o,fn:i,args:l}),p=vN(d,i);YS(function(){var h=Bd(e,d,c.context,Ha,p,a,void 0);a?n(h):h.isRunning()?(c.queue.addTask(h),n(h)):h.isAborted()?c.queue.abort(h.error()):n(h)})}function $N(e,t,n,r){var o=r.task,i=function(c,d){if(c.isRunning()){var p={task:o,cb:d};d.cancel=function(){c.isRunning()&&Nd(c.joiners,p)},c.joiners.push(p)}else c.isAborted()?d(c.error(),!0):d(c.result())};if(Os(t)){if(t.length===0){n([]);return}var l=RS(t,n);t.forEach(function(a,c){i(a,l[c])})}else i(t,n)}function zp(e){e.isRunning()&&e.cancel()}function xN(e,t,n,r){var o=r.task;t===wS?zp(o):Os(t)?t.forEach(zp):zp(t),n()}function TN(e,t,n,r){var o=r.digestEffect,i=Ha,l=Object.keys(t);if(l.length===0){n(Os(t)?[]:{});return}var a=RS(t,n);l.forEach(function(c){o(t[c],i,a[c],c)})}function CN(e,t,n,r){var o=r.digestEffect,i=Ha,l=Object.keys(t),a=Os(t)?AS(l.length):{},c={},d=!1;l.forEach(function(p){var h=function(y,b){d||(b||PS(y)?(n.cancel(),n(y,b)):(n.cancel(),d=!0,a[p]=y,n(a)))};h.cancel=On,c[p]=h}),n.cancel=function(){d||(d=!0,l.forEach(function(p){return c[p].cancel()}))},l.forEach(function(p){d||o(t[p],i,c[p],p)})}function ON(e,t,n){var r=t.selector,o=t.args;try{var i=r.apply(void 0,[e.getState()].concat(o));n(i)}catch(l){n(l,!0)}}function AN(e,t,n){var r=t.pattern,o=t.buffer,i=Sg(o),l=wg(r),a=function d(p){Ud(p)||e.channel.take(d,l),i.put(p)},c=i.close;i.close=function(){a.cancel(),c()},e.channel.take(a,l),n(i)}function kN(e,t,n,r){var o=r.task;n(o.isCancelled())}function IN(e,t,n){t.flush(n)}function PN(e,t,n,r){var o=r.task;n(o.context[t])}function RN(e,t,n,r){var o=r.task;vg(o.context,t),n()}var LN=(xn={},xn[bc]=bN,xn[DS]=_N,xn[US]=TN,xn[BS]=CN,xn[jS]=wN,xn[tN]=SN,xn[_g]=EN,xn[nN]=$N,xn[VS]=xN,xn[HS]=ON,xn[zS]=AN,xn[WS]=kN,xn[rN]=IN,xn[oN]=PN,xn[sN]=RN,xn);function FN(e,t,n){var r=[],o,i=!1;c(e);var l=function(){return r};function a(p){t(),d(),n(p,!0)}function c(p){r.push(p),p.cont=function(h,v){i||(Nd(r,p),p.cont=On,v?a(h):(p===e&&(o=h),r.length||(i=!0,n(o))))}}function d(){i||(i=!0,r.forEach(function(p){p.cont=On,p.cancel()}),r=[])}return{addTask:c,cancelAll:d,abort:a,getTasks:l}}function oE(e,t){return e+"?"+t}function NN(e){var t=LS(e);if(t){var n=t.code,r=t.fileName,o=t.lineNumber,i=n+" "+oE(r,o);return i}return""}function k1(e){var t=e.name,n=e.location;return n?t+" "+oE(n.fileName,n.lineNumber):t}function MN(e){var t=H7(function(n){return n.cancelledTasks},e);return t.length?["Tasks cancelled due to error:"].concat(t).join(` 18 `):""}var $g=null,na=[],DN=function(t){t.crashedEffect=$g,na.push(t)},sE=function(){$g=null,na.length=0},UN=function(t){$g=t},BN=function(){var t=na[0],n=na.slice(1),r=t.crashedEffect?NN(t.crashedEffect):null,o="The above error occurred in task "+k1(t.meta)+(r?` 19 when executing effect `+r:"");return[o].concat(n.map(function(i){return" created by "+k1(i.meta)}),[MN(na)]).join(` 20 `)};function jN(e,t,n,r,o,i,l){var a;l===void 0&&(l=On);var c=Ks,d,p,h=null,v=[],y=Object.create(n),b=FN(t,function(){v.push.apply(v,b.getTasks().map(function($){return $.meta.name}))},T);function S(){c===Ks&&(c=Vo,b.cancelAll(),T(Hi,!1))}function T(O,$){if(!$)O===Hi?c=Vo:c!==Vo&&(c=nE),d=O,h&&h.resolve(O);else{if(c=wc,DN({meta:o,cancelledTasks:v}),E.isRoot){var P=BN();sE(),e.onError(O,{sagaStack:P})}p=O,h&&h.reject(O)}E.cont(O,$),E.joiners.forEach(function(R){R.cb(O,$)}),E.joiners=null}function C(O){vg(y,O)}function w(){return h||(h=dN(),c===wc?h.reject(p):c!==Ks&&h.resolve(d)),h.promise}var E=(a={},a[N7]=!0,a.id=r,a.meta=o,a.isRoot=i,a.context=y,a.joiners=[],a.queue=b,a.cancel=S,a.cont=l,a.end=T,a.setContext=C,a.toPromise=w,a.isRunning=function(){return c===Ks},a.isCancelled=function(){return c===Vo||c===Ks&&t.status===Vo},a.isAborted=function(){return c===wc},a.result=function(){return d},a.error=function(){return p},a);return E}function Bd(e,t,n,r,o,i,l){var a=e.finalizeRunEffect(y);v.cancel=On;var c={meta:o,cancel:h,status:Ks},d=jN(e,c,n,r,o,i,l),p={task:d,digestEffect:b};function h(){c.status===Ks&&(c.status=Vo,v(Hi))}return l&&(l.cancel=d.cancel),v(),d;function v(S,T){try{var C;T?(C=t.throw(S),sE()):IS(S)?(c.status=Vo,v.cancel(),C=Gn(t.return)?t.return(Hi):{done:!0,value:Hi}):kS(S)?C=Gn(t.return)?t.return():{done:!0}:C=t.next(S),C.done?(c.status!==Vo&&(c.status=nE),c.cont(C.value)):b(C.value,r,v)}catch(w){if(c.status===Vo)throw w;c.status=wc,c.cont(w,!0)}}function y(S,T,C){if(Ld(S))Eg(S,C);else if(gg(S))Bd(e,S,d.context,T,o,!1,C);else if(S&&S[yS]){var w=LN[S.type];w(e,S.payload,C,p)}else C(S)}function b(S,T,C,w){w===void 0&&(w="");var E=rE();e.sagaMonitor&&e.sagaMonitor.effectTriggered({effectId:E,parentEffectId:T,label:w,effect:S});var O;function $(P,R){O||(O=!0,C.cancel=On,e.sagaMonitor&&(R?e.sagaMonitor.effectRejected(E,P):e.sagaMonitor.effectResolved(E,P)),R&&UN(S),C(P,R))}$.cancel=On,C.cancel=function(){O||(O=!0,$.cancel(),$.cancel=On,e.sagaMonitor&&e.sagaMonitor.effectCancelled(E))},a(S,E,$)}}function VN(e,t){for(var n=e.channel,r=n===void 0?tE():n,o=e.dispatch,i=e.getState,l=e.context,a=l===void 0?{}:l,c=e.sagaMonitor,d=e.effectMiddlewares,p=e.onError,h=p===void 0?q7:p,v=arguments.length,y=new Array(v>2?v-2:0),b=2;b<v;b++)y[b-2]=arguments[b];var S=t.apply(void 0,y),T=rE();c&&(c.rootSagaStarted=c.rootSagaStarted||On,c.effectTriggered=c.effectTriggered||On,c.effectResolved=c.effectResolved||On,c.effectRejected=c.effectRejected||On,c.effectCancelled=c.effectCancelled||On,c.actionDispatched=c.actionDispatched||On,c.rootSagaStarted({effectId:T,saga:t,args:y}));var C;if(d){var w=G7.apply(void 0,d);C=function($){return function(P,R,k){var W=function(j){return $(j,R,k)};return w(W)(P)}}}else C=CS;var E={channel:r,dispatch:K7(o),getState:i,sagaMonitor:c,onError:h,finalizeRunEffect:C};return YS(function(){var O=Bd(E,S,a,T,yg(t),!0,void 0);return c&&c.effectResolved(T,O),O})}function HN(e){var t={},n=t.context,r=n===void 0?{}:n,o=t.channel,i=o===void 0?tE():o,l=t.sagaMonitor,a=D7(t,["context","channel","sagaMonitor"]),c;function d(p){var h=p.getState,v=p.dispatch;return c=VN.bind(null,xa({},a,{context:r,channel:i,dispatch:v,getState:h,sagaMonitor:l})),function(y){return function(b){l&&l.actionDispatched&&l.actionDispatched(b);var S=y(b);return i.put(b),S}}}return d.run=function(){return c.apply(void 0,arguments)},d.setContext=function(p){vg(r,p)},d}var Kc="NOT_FOUND";function zN(e){var t;return{get:function(r){return t&&e(t.key,r)?t.value:Kc},put:function(r,o){t={key:r,value:o}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function WN(e,t){var n=[];function r(a){var c=n.findIndex(function(p){return t(a,p.key)});if(c>-1){var d=n[c];return c>0&&(n.splice(c,1),n.unshift(d)),d.value}return Kc}function o(a,c){r(a)===Kc&&(n.unshift({key:a,value:c}),n.length>e&&n.pop())}function i(){return n}function l(){n=[]}return{get:r,put:o,getEntries:i,clear:l}}var qN=function(t,n){return t===n};function KN(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;for(var o=n.length,i=0;i<o;i++)if(!e(n[i],r[i]))return!1;return!0}}function GN(e,t){var n=typeof t=="object"?t:{equalityCheck:t},r=n.equalityCheck,o=r===void 0?qN:r,i=n.maxSize,l=i===void 0?1:i,a=n.resultEqualityCheck,c=KN(o),d=l===1?zN(c):WN(l,c);function p(){var h=d.get(arguments);if(h===Kc){if(h=e.apply(null,arguments),a){var v=d.getEntries(),y=v.find(function(b){return a(b.value,h)});y&&(h=y.value)}d.put(arguments,h)}return h}return p.clearCache=function(){return d.clear()},p}function XN(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every(function(r){return typeof r=="function"})){var n=t.map(function(r){return typeof r=="function"?"function "+(r.name||"unnamed")+"()":typeof r}).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+n+"]")}return t}function YN(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=function(){for(var l=arguments.length,a=new Array(l),c=0;c<l;c++)a[c]=arguments[c];var d=0,p,h={memoizeOptions:void 0},v=a.pop();if(typeof v=="object"&&(h=v,v=a.pop()),typeof v!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof v+"]");var y=h,b=y.memoizeOptions,S=b===void 0?n:b,T=Array.isArray(S)?S:[S],C=XN(a),w=e.apply(void 0,[function(){return d++,v.apply(null,arguments)}].concat(T)),E=e(function(){for(var O=[],$=C.length,P=0;P<$;P++)O.push(C[P].apply(null,arguments));return p=w.apply(null,O),p});return Object.assign(E,{resultFunc:v,memoizedResultFunc:w,dependencies:C,lastResult:function(){return p},recomputations:function(){return d},resetRecomputations:function(){return d=0}}),E};return o}var he=YN(GN),Ll=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function JN(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ZN=function(e,t,n,r,o,i,l,a){if(!e){var c;if(t===void 0)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var d=[n,r,o,i,l,a],p=0;c=new Error(t.replace(/%s/g,function(){return d[p++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}},QN=ZN;const Gc=JN(QN),Xc=function(e){return typeof e=="function"},I1=function(e){return e.toString()};var eM="/",Sc="||";const ra=function(e){return e},P1=function(e){return e===null};function oe(e,t,n){t===void 0&&(t=ra),Gc(Xc(t)||P1(t),"Expected payloadCreator to be a function, undefined or null");var r=P1(t)||t===ra?ra:function(a){for(var c=arguments.length,d=new Array(c>1?c-1:0),p=1;p<c;p++)d[p-1]=arguments[p];return a instanceof Error?a:t.apply(void 0,[a].concat(d))},o=Xc(n),i=e.toString(),l=function(){var c=r.apply(void 0,arguments),d={type:e};return c instanceof Error&&(d.error=!0),c!==void 0&&(d.payload=c),o&&(d.meta=n.apply(void 0,arguments)),d};return l.toString=function(){return i},l}const xg=function(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t},tM=function(e){return e==null},jd=function(e){return typeof Map<"u"&&e instanceof Map};function Tg(e){if(jd(e))return Array.from(e.keys());if(typeof Reflect<"u"&&typeof Reflect.ownKeys=="function")return Reflect.ownKeys(e);var t=Object.getOwnPropertyNames(e);return typeof Object.getOwnPropertySymbols=="function"&&(t=t.concat(Object.getOwnPropertySymbols(e))),t}function iE(e,t){return jd(t)?t.get(e):t[e]}const nM=function(e){return function t(n,r,o,i){var l=r===void 0?{}:r,a=l.namespace,c=a===void 0?eM:a,d=l.prefix;o===void 0&&(o={}),i===void 0&&(i="");function p(v){var y;if(!i)return v;var b=v.toString().split(Sc),S=i.split(Sc);return(y=[]).concat.apply(y,S.map(function(T){return b.map(function(C){return""+T+c+C})})).join(Sc)}function h(v){return i||!d||d&&new RegExp("^"+d+c).test(v)?v:""+d+c+v}return Tg(n).forEach(function(v){var y=h(p(v)),b=iE(v,n);e(b)?t(b,{namespace:c,prefix:d},o,y):o[y]=b}),o}},rM=function(e){return e===void 0};function oM(e,t,n){t===void 0&&(t=ra);var r=I1(e).split(Sc);Gc(!rM(n),"defaultState for reducer handling "+r.join(", ")+" should be defined"),Gc(Xc(t)||xg(t),"Expected reducer to be a function or object with next and throw reducers");var o=Xc(t)?[t,t]:[t.next,t.throw].map(function(a){return tM(a)?ra:a}),i=o[0],l=o[1];return function(a,c){a===void 0&&(a=n);var d=c.type;return!d||r.indexOf(I1(d))===-1?a:(c.error===!0?l:i)(a,c)}}const sM=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=typeof t[t.length-1]!="function"&&t.pop(),o=t;if(typeof r>"u")throw new TypeError("The initial state may not be undefined. If you do not want to set a value for this reducer, you can use null instead of undefined.");return function(i,l){for(var a=arguments.length,c=Array(a>2?a-2:0),d=2;d<a;d++)c[d-2]=arguments[d];var p=typeof i>"u",h=typeof l>"u";return p&&h&&r?r:o.reduce(function(v,y){return y.apply(void 0,[v,l].concat(c))},p&&!h&&r?r:i)}};function iM(e){var t=Tg(e),n=t.every(function(r){return r==="next"||r==="throw"});return t.length&&t.length<=2&&n}const lM=nM(function(e){return(xg(e)||jd(e))&&!iM(e)});function bn(e,t,n){n===void 0&&(n={}),Gc(xg(e)||jd(e),"Expected handlers to be a plain object.");var r=lM(e,n),o=Tg(r).map(function(l){return oM(l,iE(l,r),t)}),i=sM.apply(void 0,o.concat([t]));return function(l,a){return l===void 0&&(l=t),i(l,a)}}const qr="podlove/publisher/INIT",aM="podlove/publisher/READY",uM="podlove/publisher/SAVE",cM="podlove/publisher/ERROR",dM=oe(qr),fM=oe(uM);oe(cM);const pM=oe(aM),hM={saved:!1,changes:!1,bootstrapped:!1},mM=bn({[qr]:e=>({...e,bootstrapped:!0})},hM),gM={bootstrapped:e=>e.bootstrapped};var Yc={exports:{}};/** 21 21 * @license 22 22 * Lodash <https://lodash.com/> … … 25 25 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE> 26 26 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors 27 */Yc.exports;(function(e,t){(function(){var n,r="4.17.21",o=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",a="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",d=500,p="__lodash_placeholder__",h=1,v=2,y=4,b=1,S=2,T=1,C=2,w=4,E=8,O=16,$=32,P=64,R=128,k=256,W=512,U=30,j="...",G=800,X=16,ne=1,xe=2,Ee=3,ke=1/0,Ie=9007199254740991,Qe=17976931348623157e292,ht=NaN,De=4294967295,Xe=De-1,Q=De>>>1,ce=[["ary",R],["bind",T],["bindKey",C],["curry",E],["curryRight",O],["flip",W],["partial",$],["partialRight",P],["rearg",k]],ve="[object Arguments]",Ce="[object Array]",We="[object AsyncFunction]",Ve="[object Boolean]",rt="[object Date]",wn="[object DOMException]",an="[object Error]",M="[object Function]",V="[object GeneratorFunction]",Z="[object Map]",ue="[object Number]",le="[object Null]",ye="[object Object]",Oe="[object Promise]",we="[object Proxy]",Se="[object RegExp]",ae="[object Set]",Fe="[object String]",Pe="[object Symbol]",je="[object Undefined]",ze="[object WeakMap]",st="[object WeakSet]",yt="[object ArrayBuffer]",ft="[object DataView]",Ht="[object Float32Array]",Vn="[object Float64Array]", mo="[object Int8Array]",_i="[object Int16Array]",Oo="[object Int32Array]",bi="[object Uint8Array]",Sn="[object Uint8ClampedArray]",Gn="[object Uint16Array]",wi="[object Uint32Array]",mC=/\b__p \+= '';/g,gC=/\b(__p \+=) '' \+/g,vC=/(__e\(.*?\)|\b__t\)) \+\n'';/g,jv=/&(?:amp|lt|gt|quot|#39);/g,Vv=/[&<>"']/g,yC=RegExp(jv.source),_C=RegExp(Vv.source),bC=/<%-([\s\S]+?)%>/g,wC=/<%([\s\S]+?)%>/g,Hv=/<%=([\s\S]+?)%>/g,SC=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,EC=/^\w*$/,$C=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,gf=/[\\^$.*+?()[\]{}|]/g,xC=RegExp(gf.source),vf=/^\s+/,TC=/\s/,CC=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,OC=/\{\n\/\* \[wrapped with (.+)\] \*/,AC=/,? & /,kC=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,IC=/[()=,{}\[\]\/\s]/,PC=/\\(\\)?/g,RC=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,zv=/\w*$/,LC=/^[-+]0x[0-9a-f]+$/i,FC=/^0b[01]+$/i,NC=/^\[object .+?Constructor\]$/,MC=/^0o[0-7]+$/i,DC=/^(?:0|[1-9]\d*)$/,UC=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ru=/($^)/,BC=/['\n\r\u2028\u2029\\]/g,ou="\\ud800-\\udfff",jC="\\u0300-\\u036f",VC="\\ufe20-\\ufe2f",HC="\\u20d0-\\u20ff",Wv=jC+VC+HC,qv="\\u2700-\\u27bf",Kv="a-z\\xdf-\\xf6\\xf8-\\xff",zC="\\xac\\xb1\\xd7\\xf7",WC="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",qC="\\u2000-\\u206f",KC=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Gv="A-Z\\xc0-\\xd6\\xd8-\\xde",Xv="\\ufe0e\\ufe0f",Yv=zC+WC+qC+KC,yf="['’]",GC="["+ou+"]",Jv="["+Yv+"]",su="["+Wv+"]",Zv="\\d+",XC="["+qv+"]",Qv="["+Kv+"]",e0="[^"+ou+Yv+Zv+qv+Kv+Gv+"]",_f="\\ud83c[\\udffb-\\udfff]",YC="(?:"+su+"|"+_f+")",t0="[^"+ou+"]",bf="(?:\\ud83c[\\udde6-\\uddff]){2}",wf="[\\ud800-\\udbff][\\udc00-\\udfff]",Si="["+Gv+"]",n0="\\u200d",r0="(?:"+Qv+"|"+e0+")",JC="(?:"+Si+"|"+e0+")",o0="(?:"+yf+"(?:d|ll|m|re|s|t|ve))?",s0="(?:"+yf+"(?:D|LL|M|RE|S|T|VE))?",i0=YC+"?",l0="["+Xv+"]?",ZC="(?:"+n0+"(?:"+[t0,bf,wf].join("|")+")"+l0+i0+")*",QC="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",e5="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",a0=l0+i0+ZC,t5="(?:"+[XC,bf,wf].join("|")+")"+a0,n5="(?:"+[t0+su+"?",su,bf,wf,GC].join("|")+")",r5=RegExp(yf,"g"),o5=RegExp(su,"g"),Sf=RegExp(_f+"(?="+_f+")|"+n5+a0,"g"),s5=RegExp([Si+"?"+Qv+"+"+o0+"(?="+[Jv,Si,"$"].join("|")+")",JC+"+"+s0+"(?="+[Jv,Si+r0,"$"].join("|")+")",Si+"?"+r0+"+"+o0,Si+"+"+s0,e5,QC,Zv,t5].join("|"),"g"),i5=RegExp("["+n0+ou+Wv+Xv+"]"),l5=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,a5=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],u5=-1,Bt={};Bt[Ht]=Bt[Vn]=Bt[mo]=Bt[_i]=Bt[Oo]=Bt[bi]=Bt[Sn]=Bt[Gn]=Bt[wi]=!0,Bt[ve]=Bt[Ce]=Bt[yt]=Bt[Ve]=Bt[ft]=Bt[rt]=Bt[an]=Bt[M]=Bt[Z]=Bt[ue]=Bt[ye]=Bt[Se]=Bt[ae]=Bt[Fe]=Bt[ze]=!1;var Nt={};Nt[ve]=Nt[Ce]=Nt[yt]=Nt[ft]=Nt[Ve]=Nt[rt]=Nt[Ht]=Nt[Vn]=Nt[mo]=Nt[_i]=Nt[Oo]=Nt[Z]=Nt[ue]=Nt[ye]=Nt[Se]=Nt[ae]=Nt[Fe]=Nt[Pe]=Nt[bi]=Nt[Sn]=Nt[Gn]=Nt[wi]=!0,Nt[an]=Nt[M]=Nt[ze]=!1;var c5={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},d5={"&":"&","<":"<",">":">",'"':""","'":"'"},f5={"&":"&","<":"<",">":">",""":'"',"'":"'"},p5={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},h5=parseFloat,m5=parseInt,u0=typeof Ll=="object"&&Ll&&Ll.Object===Object&&Ll,g5=typeof self=="object"&&self&&self.Object===Object&&self,En=u0||g5||Function("return this")(),Ef=t&&!t.nodeType&&t,Is=Ef&&!0&&e&&!e.nodeType&&e,c0=Is&&Is.exports===Ef,$f=c0&&u0.process,xr=function(){try{var H=Is&&Is.require&&Is.require("util").types;return H||$f&&$f.binding&&$f.binding("util")}catch{}}(),d0=xr&&xr.isArrayBuffer,f0=xr&&xr.isDate,p0=xr&&xr.isMap,h0=xr&&xr.isRegExp,m0=xr&&xr.isSet,g0=xr&&xr.isTypedArray;function cr(H,re,J){switch(J.length){case 0:return H.call(re);case 1:return H.call(re,J[0]);case 2:return H.call(re,J[0],J[1]);case 3:return H.call(re,J[0],J[1],J[2])}return H.apply(re,J)}function v5(H,re,J,Re){for(var et=-1,Tt=H==null?0:H.length;++et<Tt;){var un=H[et];re(Re,un,J(un),H)}return Re}function Tr(H,re){for(var J=-1,Re=H==null?0:H.length;++J<Re&&re(H[J],J,H)!==!1;);return H}function y5(H,re){for(var J=H==null?0:H.length;J--&&re(H[J],J,H)!==!1;);return H}function v0(H,re){for(var J=-1,Re=H==null?0:H.length;++J<Re;)if(!re(H[J],J,H))return!1;return!0}function Zo(H,re){for(var J=-1,Re=H==null?0:H.length,et=0,Tt=[];++J<Re;){var un=H[J];re(un,J,H)&&(Tt[et++]=un)}return Tt}function iu(H,re){var J=H==null?0:H.length;return!!J&&Ei(H,re,0)>-1}function xf(H,re,J){for(var Re=-1,et=H==null?0:H.length;++Re<et;)if(J(re,H[Re]))return!0;return!1}function zt(H,re){for(var J=-1,Re=H==null?0:H.length,et=Array(Re);++J<Re;)et[J]=re(H[J],J,H);return et}function Qo(H,re){for(var J=-1,Re=re.length,et=H.length;++J<Re;)H[et+J]=re[J];return H}function Tf(H,re,J,Re){var et=-1,Tt=H==null?0:H.length;for(Re&&Tt&&(J=H[++et]);++et<Tt;)J=re(J,H[et],et,H);return J}function _5(H,re,J,Re){var et=H==null?0:H.length;for(Re&&et&&(J=H[--et]);et--;)J=re(J,H[et],et,H);return J}function Cf(H,re){for(var J=-1,Re=H==null?0:H.length;++J<Re;)if(re(H[J],J,H))return!0;return!1}var b5=Of("length");function w5(H){return H.split("")}function S5(H){return H.match(kC)||[]}function y0(H,re,J){var Re;return J(H,function(et,Tt,un){if(re(et,Tt,un))return Re=Tt,!1}),Re}function lu(H,re,J,Re){for(var et=H.length,Tt=J+(Re?1:-1);Re?Tt--:++Tt<et;)if(re(H[Tt],Tt,H))return Tt;return-1}function Ei(H,re,J){return re===re?L5(H,re,J):lu(H,_0,J)}function E5(H,re,J,Re){for(var et=J-1,Tt=H.length;++et<Tt;)if(Re(H[et],re))return et;return-1}function _0(H){return H!==H}function b0(H,re){var J=H==null?0:H.length;return J?kf(H,re)/J:ht}function Of(H){return function(re){return re==null?n:re[H]}}function Af(H){return function(re){return H==null?n:H[re]}}function w0(H,re,J,Re,et){return et(H,function(Tt,un,Rt){J=Re?(Re=!1,Tt):re(J,Tt,un,Rt)}),J}function $5(H,re){var J=H.length;for(H.sort(re);J--;)H[J]=H[J].value;return H}function kf(H,re){for(var J,Re=-1,et=H.length;++Re<et;){var Tt=re(H[Re]);Tt!==n&&(J=J===n?Tt:J+Tt)}return J}function If(H,re){for(var J=-1,Re=Array(H);++J<H;)Re[J]=re(J);return Re}function x5(H,re){return zt(re,function(J){return[J,H[J]]})}function S0(H){return H&&H.slice(0,T0(H)+1).replace(vf,"")}function dr(H){return function(re){return H(re)}}function Pf(H,re){return zt(re,function(J){return H[J]})}function gl(H,re){return H.has(re)}function E0(H,re){for(var J=-1,Re=H.length;++J<Re&&Ei(re,H[J],0)>-1;);return J}function $0(H,re){for(var J=H.length;J--&&Ei(re,H[J],0)>-1;);return J}function T5(H,re){for(var J=H.length,Re=0;J--;)H[J]===re&&++Re;return Re}var C5=Af(c5),O5=Af(d5);function A5(H){return"\\"+p5[H]}function k5(H,re){return H==null?n:H[re]}function $i(H){return i5.test(H)}function I5(H){return l5.test(H)}function P5(H){for(var re,J=[];!(re=H.next()).done;)J.push(re.value);return J}function Rf(H){var re=-1,J=Array(H.size);return H.forEach(function(Re,et){J[++re]=[et,Re]}),J}function x0(H,re){return function(J){return H(re(J))}}function es(H,re){for(var J=-1,Re=H.length,et=0,Tt=[];++J<Re;){var un=H[J];(un===re||un===p)&&(H[J]=p,Tt[et++]=J)}return Tt}function au(H){var re=-1,J=Array(H.size);return H.forEach(function(Re){J[++re]=Re}),J}function R5(H){var re=-1,J=Array(H.size);return H.forEach(function(Re){J[++re]=[Re,Re]}),J}function L5(H,re,J){for(var Re=J-1,et=H.length;++Re<et;)if(H[Re]===re)return Re;return-1}function F5(H,re,J){for(var Re=J+1;Re--;)if(H[Re]===re)return Re;return Re}function xi(H){return $i(H)?M5(H):b5(H)}function Gr(H){return $i(H)?D5(H):w5(H)}function T0(H){for(var re=H.length;re--&&TC.test(H.charAt(re)););return re}var N5=Af(f5);function M5(H){for(var re=Sf.lastIndex=0;Sf.test(H);)++re;return re}function D5(H){return H.match(Sf)||[]}function U5(H){return H.match(s5)||[]}var B5=function H(re){re=re==null?En:Ti.defaults(En.Object(),re,Ti.pick(En,a5));var J=re.Array,Re=re.Date,et=re.Error,Tt=re.Function,un=re.Math,Rt=re.Object,Lf=re.RegExp,j5=re.String,Cr=re.TypeError,uu=J.prototype,V5=Tt.prototype,Ci=Rt.prototype,cu=re["__core-js_shared__"],du=V5.toString,It=Ci.hasOwnProperty,H5=0,C0=function(){var s=/[^.]+$/.exec(cu&&cu.keys&&cu.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""}(),fu=Ci.toString,z5=du.call(Rt),W5=En._,q5=Lf("^"+du.call(It).replace(gf,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),pu=c0?re.Buffer:n,ts=re.Symbol,hu=re.Uint8Array,O0=pu?pu.allocUnsafe:n,mu=x0(Rt.getPrototypeOf,Rt),A0=Rt.create,k0=Ci.propertyIsEnumerable,gu=uu.splice,I0=ts?ts.isConcatSpreadable:n,vl=ts?ts.iterator:n,Ps=ts?ts.toStringTag:n,vu=function(){try{var s=Ms(Rt,"defineProperty");return s({},"",{}),s}catch{}}(),K5=re.clearTimeout!==En.clearTimeout&&re.clearTimeout,G5=Re&&Re.now!==En.Date.now&&Re.now,X5=re.setTimeout!==En.setTimeout&&re.setTimeout,yu=un.ceil,_u=un.floor,Ff=Rt.getOwnPropertySymbols,Y5=pu?pu.isBuffer:n,P0=re.isFinite,J5=uu.join,Z5=x0(Rt.keys,Rt),cn=un.max,Rn=un.min,Q5=Re.now,e3=re.parseInt,R0=un.random,t3=uu.reverse,Nf=Ms(re,"DataView"),yl=Ms(re,"Map"),Mf=Ms(re,"Promise"),Oi=Ms(re,"Set"),_l=Ms(re,"WeakMap"),bl=Ms(Rt,"create"),bu=_l&&new _l,Ai={},n3=Ds(Nf),r3=Ds(yl),o3=Ds(Mf),s3=Ds(Oi),i3=Ds(_l),wu=ts?ts.prototype:n,wl=wu?wu.valueOf:n,L0=wu?wu.toString:n;function x(s){if(Yt(s)&&!tt(s)&&!(s instanceof vt)){if(s instanceof Or)return s;if(It.call(s,"__wrapped__"))return Fy(s)}return new Or(s)}var ki=function(){function s(){}return function(u){if(!Gt(u))return{};if(A0)return A0(u);s.prototype=u;var f=new s;return s.prototype=n,f}}();function Su(){}function Or(s,u){this.__wrapped__=s,this.__actions__=[],this.__chain__=!!u,this.__index__=0,this.__values__=n}x.templateSettings={escape:bC,evaluate:wC,interpolate:Hv,variable:"",imports:{_:x}},x.prototype=Su.prototype,x.prototype.constructor=x,Or.prototype=ki(Su.prototype),Or.prototype.constructor=Or;function vt(s){this.__wrapped__=s,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=De,this.__views__=[]}function l3(){var s=new vt(this.__wrapped__);return s.__actions__=Xn(this.__actions__),s.__dir__=this.__dir__,s.__filtered__=this.__filtered__,s.__iteratees__=Xn(this.__iteratees__),s.__takeCount__=this.__takeCount__,s.__views__=Xn(this.__views__),s}function a3(){if(this.__filtered__){var s=new vt(this);s.__dir__=-1,s.__filtered__=!0}else s=this.clone(),s.__dir__*=-1;return s}function u3(){var s=this.__wrapped__.value(),u=this.__dir__,f=tt(s),g=u<0,_=f?s.length:0,A=wO(0,_,this.__views__),N=A.start,D=A.end,K=D-N,se=g?D:N-1,ie=this.__iteratees__,pe=ie.length,Ae=0,Ue=Rn(K,this.__takeCount__);if(!f||!g&&_==K&&Ue==K)return oy(s,this.__actions__);var Ke=[];e:for(;K--&&Ae<Ue;){se+=u;for(var lt=-1,Ge=s[se];++lt<pe;){var mt=ie[lt],_t=mt.iteratee,hr=mt.type,Wn=_t(Ge);if(hr==xe)Ge=Wn;else if(!Wn){if(hr==ne)continue e;break e}}Ke[Ae++]=Ge}return Ke}vt.prototype=ki(Su.prototype),vt.prototype.constructor=vt;function Rs(s){var u=-1,f=s==null?0:s.length;for(this.clear();++u<f;){var g=s[u];this.set(g[0],g[1])}}function c3(){this.__data__=bl?bl(null):{},this.size=0}function d3(s){var u=this.has(s)&&delete this.__data__[s];return this.size-=u?1:0,u}function f3(s){var u=this.__data__;if(bl){var f=u[s];return f===c?n:f}return It.call(u,s)?u[s]:n}function p3(s){var u=this.__data__;return bl?u[s]!==n:It.call(u,s)}function h3(s,u){var f=this.__data__;return this.size+=this.has(s)?0:1,f[s]=bl&&u===n?c:u,this}Rs.prototype.clear=c3,Rs.prototype.delete=d3,Rs.prototype.get=f3,Rs.prototype.has=p3,Rs.prototype.set=h3;function Ao(s){var u=-1,f=s==null?0:s.length;for(this.clear();++u<f;){var g=s[u];this.set(g[0],g[1])}}function m3(){this.__data__=[],this.size=0}function g3(s){var u=this.__data__,f=Eu(u,s);if(f<0)return!1;var g=u.length-1;return f==g?u.pop():gu.call(u,f,1),--this.size,!0}function v3(s){var u=this.__data__,f=Eu(u,s);return f<0?n:u[f][1]}function y3(s){return Eu(this.__data__,s)>-1}function _3(s,u){var f=this.__data__,g=Eu(f,s);return g<0?(++this.size,f.push([s,u])):f[g][1]=u,this}Ao.prototype.clear=m3,Ao.prototype.delete=g3,Ao.prototype.get=v3,Ao.prototype.has=y3,Ao.prototype.set=_3;function ko(s){var u=-1,f=s==null?0:s.length;for(this.clear();++u<f;){var g=s[u];this.set(g[0],g[1])}}function b3(){this.size=0,this.__data__={hash:new Rs,map:new(yl||Ao),string:new Rs}}function w3(s){var u=Fu(this,s).delete(s);return this.size-=u?1:0,u}function S3(s){return Fu(this,s).get(s)}function E3(s){return Fu(this,s).has(s)}function $3(s,u){var f=Fu(this,s),g=f.size;return f.set(s,u),this.size+=f.size==g?0:1,this}ko.prototype.clear=b3,ko.prototype.delete=w3,ko.prototype.get=S3,ko.prototype.has=E3,ko.prototype.set=$3;function Ls(s){var u=-1,f=s==null?0:s.length;for(this.__data__=new ko;++u<f;)this.add(s[u])}function x3(s){return this.__data__.set(s,c),this}function T3(s){return this.__data__.has(s)}Ls.prototype.add=Ls.prototype.push=x3,Ls.prototype.has=T3;function Xr(s){var u=this.__data__=new Ao(s);this.size=u.size}function C3(){this.__data__=new Ao,this.size=0}function O3(s){var u=this.__data__,f=u.delete(s);return this.size=u.size,f}function A3(s){return this.__data__.get(s)}function k3(s){return this.__data__.has(s)}function I3(s,u){var f=this.__data__;if(f instanceof Ao){var g=f.__data__;if(!yl||g.length<o-1)return g.push([s,u]),this.size=++f.size,this;f=this.__data__=new ko(g)}return f.set(s,u),this.size=f.size,this}Xr.prototype.clear=C3,Xr.prototype.delete=O3,Xr.prototype.get=A3,Xr.prototype.has=k3,Xr.prototype.set=I3;function F0(s,u){var f=tt(s),g=!f&&Us(s),_=!f&&!g&&is(s),A=!f&&!g&&!_&&Li(s),N=f||g||_||A,D=N?If(s.length,j5):[],K=D.length;for(var se in s)(u||It.call(s,se))&&!(N&&(se=="length"||_&&(se=="offset"||se=="parent")||A&&(se=="buffer"||se=="byteLength"||se=="byteOffset")||Lo(se,K)))&&D.push(se);return D}function N0(s){var u=s.length;return u?s[Gf(0,u-1)]:n}function P3(s,u){return Nu(Xn(s),Fs(u,0,s.length))}function R3(s){return Nu(Xn(s))}function Df(s,u,f){(f!==n&&!Yr(s[u],f)||f===n&&!(u in s))&&Io(s,u,f)}function Sl(s,u,f){var g=s[u];(!(It.call(s,u)&&Yr(g,f))||f===n&&!(u in s))&&Io(s,u,f)}function Eu(s,u){for(var f=s.length;f--;)if(Yr(s[f][0],u))return f;return-1}function L3(s,u,f,g){return ns(s,function(_,A,N){u(g,_,f(_),N)}),g}function M0(s,u){return s&&vo(u,mn(u),s)}function F3(s,u){return s&&vo(u,Jn(u),s)}function Io(s,u,f){u=="__proto__"&&vu?vu(s,u,{configurable:!0,enumerable:!0,value:f,writable:!0}):s[u]=f}function Uf(s,u){for(var f=-1,g=u.length,_=J(g),A=s==null;++f<g;)_[f]=A?n:_p(s,u[f]);return _}function Fs(s,u,f){return s===s&&(f!==n&&(s=s<=f?s:f),u!==n&&(s=s>=u?s:u)),s}function Ar(s,u,f,g,_,A){var N,D=u&h,K=u&v,se=u&y;if(f&&(N=_?f(s,g,_,A):f(s)),N!==n)return N;if(!Gt(s))return s;var ie=tt(s);if(ie){if(N=EO(s),!D)return Xn(s,N)}else{var pe=Ln(s),Ae=pe==M||pe==V;if(is(s))return ly(s,D);if(pe==ye||pe==ve||Ae&&!_){if(N=K||Ae?{}:Ty(s),!D)return K?fO(s,F3(N,s)):dO(s,M0(N,s))}else{if(!Nt[pe])return _?s:{};N=$O(s,pe,D)}}A||(A=new Xr);var Ue=A.get(s);if(Ue)return Ue;A.set(s,N),t1(s)?s.forEach(function(Ge){N.add(Ar(Ge,u,f,Ge,s,A))}):Qy(s)&&s.forEach(function(Ge,mt){N.set(mt,Ar(Ge,u,f,mt,s,A))});var Ke=se?K?sp:op:K?Jn:mn,lt=ie?n:Ke(s);return Tr(lt||s,function(Ge,mt){lt&&(mt=Ge,Ge=s[mt]),Sl(N,mt,Ar(Ge,u,f,mt,s,A))}),N}function N3(s){var u=mn(s);return function(f){return D0(f,s,u)}}function D0(s,u,f){var g=f.length;if(s==null)return!g;for(s=Rt(s);g--;){var _=f[g],A=u[_],N=s[_];if(N===n&&!(_ in s)||!A(N))return!1}return!0}function U0(s,u,f){if(typeof s!="function")throw new Cr(l);return Al(function(){s.apply(n,f)},u)}function El(s,u,f,g){var _=-1,A=iu,N=!0,D=s.length,K=[],se=u.length;if(!D)return K;f&&(u=zt(u,dr(f))),g?(A=xf,N=!1):u.length>=o&&(A=gl,N=!1,u=new Ls(u));e:for(;++_<D;){var ie=s[_],pe=f==null?ie:f(ie);if(ie=g||ie!==0?ie:0,N&&pe===pe){for(var Ae=se;Ae--;)if(u[Ae]===pe)continue e;K.push(ie)}else A(u,pe,g)||K.push(ie)}return K}var ns=fy(go),B0=fy(jf,!0);function M3(s,u){var f=!0;return ns(s,function(g,_,A){return f=!!u(g,_,A),f}),f}function $u(s,u,f){for(var g=-1,_=s.length;++g<_;){var A=s[g],N=u(A);if(N!=null&&(D===n?N===N&&!pr(N):f(N,D)))var D=N,K=A}return K}function D3(s,u,f,g){var _=s.length;for(f=it(f),f<0&&(f=-f>_?0:_+f),g=g===n||g>_?_:it(g),g<0&&(g+=_),g=f>g?0:r1(g);f<g;)s[f++]=u;return s}function j0(s,u){var f=[];return ns(s,function(g,_,A){u(g,_,A)&&f.push(g)}),f}function $n(s,u,f,g,_){var A=-1,N=s.length;for(f||(f=TO),_||(_=[]);++A<N;){var D=s[A];u>0&&f(D)?u>1?$n(D,u-1,f,g,_):Qo(_,D):g||(_[_.length]=D)}return _}var Bf=py(),V0=py(!0);function go(s,u){return s&&Bf(s,u,mn)}function jf(s,u){return s&&V0(s,u,mn)}function xu(s,u){return Zo(u,function(f){return Fo(s[f])})}function Ns(s,u){u=os(u,s);for(var f=0,g=u.length;s!=null&&f<g;)s=s[yo(u[f++])];return f&&f==g?s:n}function H0(s,u,f){var g=u(s);return tt(s)?g:Qo(g,f(s))}function Hn(s){return s==null?s===n?je:le:Ps&&Ps in Rt(s)?bO(s):RO(s)}function Vf(s,u){return s>u}function U3(s,u){return s!=null&&It.call(s,u)}function B3(s,u){return s!=null&&u in Rt(s)}function j3(s,u,f){return s>=Rn(u,f)&&s<cn(u,f)}function Hf(s,u,f){for(var g=f?xf:iu,_=s[0].length,A=s.length,N=A,D=J(A),K=1/0,se=[];N--;){var ie=s[N];N&&u&&(ie=zt(ie,dr(u))),K=Rn(ie.length,K),D[N]=!f&&(u||_>=120&&ie.length>=120)?new Ls(N&&ie):n}ie=s[0];var pe=-1,Ae=D[0];e:for(;++pe<_&&se.length<K;){var Ue=ie[pe],Ke=u?u(Ue):Ue;if(Ue=f||Ue!==0?Ue:0,!(Ae?gl(Ae,Ke):g(se,Ke,f))){for(N=A;--N;){var lt=D[N];if(!(lt?gl(lt,Ke):g(s[N],Ke,f)))continue e}Ae&&Ae.push(Ke),se.push(Ue)}}return se}function V3(s,u,f,g){return go(s,function(_,A,N){u(g,f(_),A,N)}),g}function $l(s,u,f){u=os(u,s),s=ky(s,u);var g=s==null?s:s[yo(Ir(u))];return g==null?n:cr(g,s,f)}function z0(s){return Yt(s)&&Hn(s)==ve}function H3(s){return Yt(s)&&Hn(s)==yt}function z3(s){return Yt(s)&&Hn(s)==rt}function xl(s,u,f,g,_){return s===u?!0:s==null||u==null||!Yt(s)&&!Yt(u)?s!==s&&u!==u:W3(s,u,f,g,xl,_)}function W3(s,u,f,g,_,A){var N=tt(s),D=tt(u),K=N?Ce:Ln(s),se=D?Ce:Ln(u);K=K==ve?ye:K,se=se==ve?ye:se;var ie=K==ye,pe=se==ye,Ae=K==se;if(Ae&&is(s)){if(!is(u))return!1;N=!0,ie=!1}if(Ae&&!ie)return A||(A=new Xr),N||Li(s)?Ey(s,u,f,g,_,A):yO(s,u,K,f,g,_,A);if(!(f&b)){var Ue=ie&&It.call(s,"__wrapped__"),Ke=pe&&It.call(u,"__wrapped__");if(Ue||Ke){var lt=Ue?s.value():s,Ge=Ke?u.value():u;return A||(A=new Xr),_(lt,Ge,f,g,A)}}return Ae?(A||(A=new Xr),_O(s,u,f,g,_,A)):!1}function q3(s){return Yt(s)&&Ln(s)==Z}function zf(s,u,f,g){var _=f.length,A=_,N=!g;if(s==null)return!A;for(s=Rt(s);_--;){var D=f[_];if(N&&D[2]?D[1]!==s[D[0]]:!(D[0]in s))return!1}for(;++_<A;){D=f[_];var K=D[0],se=s[K],ie=D[1];if(N&&D[2]){if(se===n&&!(K in s))return!1}else{var pe=new Xr;if(g)var Ae=g(se,ie,K,s,u,pe);if(!(Ae===n?xl(ie,se,b|S,g,pe):Ae))return!1}}return!0}function W0(s){if(!Gt(s)||OO(s))return!1;var u=Fo(s)?q5:NC;return u.test(Ds(s))}function K3(s){return Yt(s)&&Hn(s)==Se}function G3(s){return Yt(s)&&Ln(s)==ae}function X3(s){return Yt(s)&&Vu(s.length)&&!!Bt[Hn(s)]}function q0(s){return typeof s=="function"?s:s==null?Zn:typeof s=="object"?tt(s)?X0(s[0],s[1]):G0(s):h1(s)}function Wf(s){if(!Ol(s))return Z5(s);var u=[];for(var f in Rt(s))It.call(s,f)&&f!="constructor"&&u.push(f);return u}function Y3(s){if(!Gt(s))return PO(s);var u=Ol(s),f=[];for(var g in s)g=="constructor"&&(u||!It.call(s,g))||f.push(g);return f}function qf(s,u){return s<u}function K0(s,u){var f=-1,g=Yn(s)?J(s.length):[];return ns(s,function(_,A,N){g[++f]=u(_,A,N)}),g}function G0(s){var u=lp(s);return u.length==1&&u[0][2]?Oy(u[0][0],u[0][1]):function(f){return f===s||zf(f,s,u)}}function X0(s,u){return up(s)&&Cy(u)?Oy(yo(s),u):function(f){var g=_p(f,s);return g===n&&g===u?bp(f,s):xl(u,g,b|S)}}function Tu(s,u,f,g,_){s!==u&&Bf(u,function(A,N){if(_||(_=new Xr),Gt(A))J3(s,u,N,f,Tu,g,_);else{var D=g?g(dp(s,N),A,N+"",s,u,_):n;D===n&&(D=A),Df(s,N,D)}},Jn)}function J3(s,u,f,g,_,A,N){var D=dp(s,f),K=dp(u,f),se=N.get(K);if(se){Df(s,f,se);return}var ie=A?A(D,K,f+"",s,u,N):n,pe=ie===n;if(pe){var Ae=tt(K),Ue=!Ae&&is(K),Ke=!Ae&&!Ue&&Li(K);ie=K,Ae||Ue||Ke?tt(D)?ie=D:tn(D)?ie=Xn(D):Ue?(pe=!1,ie=ly(K,!0)):Ke?(pe=!1,ie=ay(K,!0)):ie=[]:kl(K)||Us(K)?(ie=D,Us(D)?ie=o1(D):(!Gt(D)||Fo(D))&&(ie=Ty(K))):pe=!1}pe&&(N.set(K,ie),_(ie,K,g,A,N),N.delete(K)),Df(s,f,ie)}function Y0(s,u){var f=s.length;if(f)return u+=u<0?f:0,Lo(u,f)?s[u]:n}function J0(s,u,f){u.length?u=zt(u,function(A){return tt(A)?function(N){return Ns(N,A.length===1?A[0]:A)}:A}):u=[Zn];var g=-1;u=zt(u,dr(qe()));var _=K0(s,function(A,N,D){var K=zt(u,function(se){return se(A)});return{criteria:K,index:++g,value:A}});return $5(_,function(A,N){return cO(A,N,f)})}function Z3(s,u){return Z0(s,u,function(f,g){return bp(s,g)})}function Z0(s,u,f){for(var g=-1,_=u.length,A={};++g<_;){var N=u[g],D=Ns(s,N);f(D,N)&&Tl(A,os(N,s),D)}return A}function Q3(s){return function(u){return Ns(u,s)}}function Kf(s,u,f,g){var _=g?E5:Ei,A=-1,N=u.length,D=s;for(s===u&&(u=Xn(u)),f&&(D=zt(s,dr(f)));++A<N;)for(var K=0,se=u[A],ie=f?f(se):se;(K=_(D,ie,K,g))>-1;)D!==s&&gu.call(D,K,1),gu.call(s,K,1);return s}function Q0(s,u){for(var f=s?u.length:0,g=f-1;f--;){var _=u[f];if(f==g||_!==A){var A=_;Lo(_)?gu.call(s,_,1):Jf(s,_)}}return s}function Gf(s,u){return s+_u(R0()*(u-s+1))}function eO(s,u,f,g){for(var _=-1,A=cn(yu((u-s)/(f||1)),0),N=J(A);A--;)N[g?A:++_]=s,s+=f;return N}function Xf(s,u){var f="";if(!s||u<1||u>Ie)return f;do u%2&&(f+=s),u=_u(u/2),u&&(s+=s);while(u);return f}function ct(s,u){return fp(Ay(s,u,Zn),s+"")}function tO(s){return N0(Fi(s))}function nO(s,u){var f=Fi(s);return Nu(f,Fs(u,0,f.length))}function Tl(s,u,f,g){if(!Gt(s))return s;u=os(u,s);for(var _=-1,A=u.length,N=A-1,D=s;D!=null&&++_<A;){var K=yo(u[_]),se=f;if(K==="__proto__"||K==="constructor"||K==="prototype")return s;if(_!=N){var ie=D[K];se=g?g(ie,K,D):n,se===n&&(se=Gt(ie)?ie:Lo(u[_+1])?[]:{})}Sl(D,K,se),D=D[K]}return s}var ey=bu?function(s,u){return bu.set(s,u),s}:Zn,rO=vu?function(s,u){return vu(s,"toString",{configurable:!0,enumerable:!1,value:Sp(u),writable:!0})}:Zn;function oO(s){return Nu(Fi(s))}function kr(s,u,f){var g=-1,_=s.length;u<0&&(u=-u>_?0:_+u),f=f>_?_:f,f<0&&(f+=_),_=u>f?0:f-u>>>0,u>>>=0;for(var A=J(_);++g<_;)A[g]=s[g+u];return A}function sO(s,u){var f;return ns(s,function(g,_,A){return f=u(g,_,A),!f}),!!f}function Cu(s,u,f){var g=0,_=s==null?g:s.length;if(typeof u=="number"&&u===u&&_<=Q){for(;g<_;){var A=g+_>>>1,N=s[A];N!==null&&!pr(N)&&(f?N<=u:N<u)?g=A+1:_=A}return _}return Yf(s,u,Zn,f)}function Yf(s,u,f,g){var _=0,A=s==null?0:s.length;if(A===0)return 0;u=f(u);for(var N=u!==u,D=u===null,K=pr(u),se=u===n;_<A;){var ie=_u((_+A)/2),pe=f(s[ie]),Ae=pe!==n,Ue=pe===null,Ke=pe===pe,lt=pr(pe);if(N)var Ge=g||Ke;else se?Ge=Ke&&(g||Ae):D?Ge=Ke&&Ae&&(g||!Ue):K?Ge=Ke&&Ae&&!Ue&&(g||!lt):Ue||lt?Ge=!1:Ge=g?pe<=u:pe<u;Ge?_=ie+1:A=ie}return Rn(A,Xe)}function ty(s,u){for(var f=-1,g=s.length,_=0,A=[];++f<g;){var N=s[f],D=u?u(N):N;if(!f||!Yr(D,K)){var K=D;A[_++]=N===0?0:N}}return A}function ny(s){return typeof s=="number"?s:pr(s)?ht:+s}function fr(s){if(typeof s=="string")return s;if(tt(s))return zt(s,fr)+"";if(pr(s))return L0?L0.call(s):"";var u=s+"";return u=="0"&&1/s==-ke?"-0":u}function rs(s,u,f){var g=-1,_=iu,A=s.length,N=!0,D=[],K=D;if(f)N=!1,_=xf;else if(A>=o){var se=u?null:gO(s);if(se)return au(se);N=!1,_=gl,K=new Ls}else K=u?[]:D;e:for(;++g<A;){var ie=s[g],pe=u?u(ie):ie;if(ie=f||ie!==0?ie:0,N&&pe===pe){for(var Ae=K.length;Ae--;)if(K[Ae]===pe)continue e;u&&K.push(pe),D.push(ie)}else _(K,pe,f)||(K!==D&&K.push(pe),D.push(ie))}return D}function Jf(s,u){return u=os(u,s),s=ky(s,u),s==null||delete s[yo(Ir(u))]}function ry(s,u,f,g){return Tl(s,u,f(Ns(s,u)),g)}function Ou(s,u,f,g){for(var _=s.length,A=g?_:-1;(g?A--:++A<_)&&u(s[A],A,s););return f?kr(s,g?0:A,g?A+1:_):kr(s,g?A+1:0,g?_:A)}function oy(s,u){var f=s;return f instanceof vt&&(f=f.value()),Tf(u,function(g,_){return _.func.apply(_.thisArg,Qo([g],_.args))},f)}function Zf(s,u,f){var g=s.length;if(g<2)return g?rs(s[0]):[];for(var _=-1,A=J(g);++_<g;)for(var N=s[_],D=-1;++D<g;)D!=_&&(A[_]=El(A[_]||N,s[D],u,f));return rs($n(A,1),u,f)}function sy(s,u,f){for(var g=-1,_=s.length,A=u.length,N={};++g<_;){var D=g<A?u[g]:n;f(N,s[g],D)}return N}function Qf(s){return tn(s)?s:[]}function ep(s){return typeof s=="function"?s:Zn}function os(s,u){return tt(s)?s:up(s,u)?[s]:Ly(At(s))}var iO=ct;function ss(s,u,f){var g=s.length;return f=f===n?g:f,!u&&f>=g?s:kr(s,u,f)}var iy=K5||function(s){return En.clearTimeout(s)};function ly(s,u){if(u)return s.slice();var f=s.length,g=O0?O0(f):new s.constructor(f);return s.copy(g),g}function tp(s){var u=new s.constructor(s.byteLength);return new hu(u).set(new hu(s)),u}function lO(s,u){var f=u?tp(s.buffer):s.buffer;return new s.constructor(f,s.byteOffset,s.byteLength)}function aO(s){var u=new s.constructor(s.source,zv.exec(s));return u.lastIndex=s.lastIndex,u}function uO(s){return wl?Rt(wl.call(s)):{}}function ay(s,u){var f=u?tp(s.buffer):s.buffer;return new s.constructor(f,s.byteOffset,s.length)}function uy(s,u){if(s!==u){var f=s!==n,g=s===null,_=s===s,A=pr(s),N=u!==n,D=u===null,K=u===u,se=pr(u);if(!D&&!se&&!A&&s>u||A&&N&&K&&!D&&!se||g&&N&&K||!f&&K||!_)return 1;if(!g&&!A&&!se&&s<u||se&&f&&_&&!g&&!A||D&&f&&_||!N&&_||!K)return-1}return 0}function cO(s,u,f){for(var g=-1,_=s.criteria,A=u.criteria,N=_.length,D=f.length;++g<N;){var K=uy(_[g],A[g]);if(K){if(g>=D)return K;var se=f[g];return K*(se=="desc"?-1:1)}}return s.index-u.index}function cy(s,u,f,g){for(var _=-1,A=s.length,N=f.length,D=-1,K=u.length,se=cn(A-N,0),ie=J(K+se),pe=!g;++D<K;)ie[D]=u[D];for(;++_<N;)(pe||_<A)&&(ie[f[_]]=s[_]);for(;se--;)ie[D++]=s[_++];return ie}function dy(s,u,f,g){for(var _=-1,A=s.length,N=-1,D=f.length,K=-1,se=u.length,ie=cn(A-D,0),pe=J(ie+se),Ae=!g;++_<ie;)pe[_]=s[_];for(var Ue=_;++K<se;)pe[Ue+K]=u[K];for(;++N<D;)(Ae||_<A)&&(pe[Ue+f[N]]=s[_++]);return pe}function Xn(s,u){var f=-1,g=s.length;for(u||(u=J(g));++f<g;)u[f]=s[f];return u}function vo(s,u,f,g){var _=!f;f||(f={});for(var A=-1,N=u.length;++A<N;){var D=u[A],K=g?g(f[D],s[D],D,f,s):n;K===n&&(K=s[D]),_?Io(f,D,K):Sl(f,D,K)}return f}function dO(s,u){return vo(s,ap(s),u)}function fO(s,u){return vo(s,$y(s),u)}function Au(s,u){return function(f,g){var _=tt(f)?v5:L3,A=u?u():{};return _(f,s,qe(g,2),A)}}function Ii(s){return ct(function(u,f){var g=-1,_=f.length,A=_>1?f[_-1]:n,N=_>2?f[2]:n;for(A=s.length>3&&typeof A=="function"?(_--,A):n,N&&zn(f[0],f[1],N)&&(A=_<3?n:A,_=1),u=Rt(u);++g<_;){var D=f[g];D&&s(u,D,g,A)}return u})}function fy(s,u){return function(f,g){if(f==null)return f;if(!Yn(f))return s(f,g);for(var _=f.length,A=u?_:-1,N=Rt(f);(u?A--:++A<_)&&g(N[A],A,N)!==!1;);return f}}function py(s){return function(u,f,g){for(var _=-1,A=Rt(u),N=g(u),D=N.length;D--;){var K=N[s?D:++_];if(f(A[K],K,A)===!1)break}return u}}function pO(s,u,f){var g=u&T,_=Cl(s);function A(){var N=this&&this!==En&&this instanceof A?_:s;return N.apply(g?f:this,arguments)}return A}function hy(s){return function(u){u=At(u);var f=$i(u)?Gr(u):n,g=f?f[0]:u.charAt(0),_=f?ss(f,1).join(""):u.slice(1);return g[s]()+_}}function Pi(s){return function(u){return Tf(f1(d1(u).replace(r5,"")),s,"")}}function Cl(s){return function(){var u=arguments;switch(u.length){case 0:return new s;case 1:return new s(u[0]);case 2:return new s(u[0],u[1]);case 3:return new s(u[0],u[1],u[2]);case 4:return new s(u[0],u[1],u[2],u[3]);case 5:return new s(u[0],u[1],u[2],u[3],u[4]);case 6:return new s(u[0],u[1],u[2],u[3],u[4],u[5]);case 7:return new s(u[0],u[1],u[2],u[3],u[4],u[5],u[6])}var f=ki(s.prototype),g=s.apply(f,u);return Gt(g)?g:f}}function hO(s,u,f){var g=Cl(s);function _(){for(var A=arguments.length,N=J(A),D=A,K=Ri(_);D--;)N[D]=arguments[D];var se=A<3&&N[0]!==K&&N[A-1]!==K?[]:es(N,K);if(A-=se.length,A<f)return _y(s,u,ku,_.placeholder,n,N,se,n,n,f-A);var ie=this&&this!==En&&this instanceof _?g:s;return cr(ie,this,N)}return _}function my(s){return function(u,f,g){var _=Rt(u);if(!Yn(u)){var A=qe(f,3);u=mn(u),f=function(D){return A(_[D],D,_)}}var N=s(u,f,g);return N>-1?_[A?u[N]:N]:n}}function gy(s){return Ro(function(u){var f=u.length,g=f,_=Or.prototype.thru;for(s&&u.reverse();g--;){var A=u[g];if(typeof A!="function")throw new Cr(l);if(_&&!N&&Lu(A)=="wrapper")var N=new Or([],!0)}for(g=N?g:f;++g<f;){A=u[g];var D=Lu(A),K=D=="wrapper"?ip(A):n;K&&cp(K[0])&&K[1]==(R|E|$|k)&&!K[4].length&&K[9]==1?N=N[Lu(K[0])].apply(N,K[3]):N=A.length==1&&cp(A)?N[D]():N.thru(A)}return function(){var se=arguments,ie=se[0];if(N&&se.length==1&&tt(ie))return N.plant(ie).value();for(var pe=0,Ae=f?u[pe].apply(this,se):ie;++pe<f;)Ae=u[pe].call(this,Ae);return Ae}})}function ku(s,u,f,g,_,A,N,D,K,se){var ie=u&R,pe=u&T,Ae=u&C,Ue=u&(E|O),Ke=u&W,lt=Ae?n:Cl(s);function Ge(){for(var mt=arguments.length,_t=J(mt),hr=mt;hr--;)_t[hr]=arguments[hr];if(Ue)var Wn=Ri(Ge),mr=T5(_t,Wn);if(g&&(_t=cy(_t,g,_,Ue)),A&&(_t=dy(_t,A,N,Ue)),mt-=mr,Ue&&mt<se){var nn=es(_t,Wn);return _y(s,u,ku,Ge.placeholder,f,_t,nn,D,K,se-mt)}var Jr=pe?f:this,Mo=Ae?Jr[s]:s;return mt=_t.length,D?_t=LO(_t,D):Ke&&mt>1&&_t.reverse(),ie&&K<mt&&(_t.length=K),this&&this!==En&&this instanceof Ge&&(Mo=lt||Cl(Mo)),Mo.apply(Jr,_t)}return Ge}function vy(s,u){return function(f,g){return V3(f,s,u(g),{})}}function Iu(s,u){return function(f,g){var _;if(f===n&&g===n)return u;if(f!==n&&(_=f),g!==n){if(_===n)return g;typeof f=="string"||typeof g=="string"?(f=fr(f),g=fr(g)):(f=ny(f),g=ny(g)),_=s(f,g)}return _}}function np(s){return Ro(function(u){return u=zt(u,dr(qe())),ct(function(f){var g=this;return s(u,function(_){return cr(_,g,f)})})})}function Pu(s,u){u=u===n?" ":fr(u);var f=u.length;if(f<2)return f?Xf(u,s):u;var g=Xf(u,yu(s/xi(u)));return $i(u)?ss(Gr(g),0,s).join(""):g.slice(0,s)}function mO(s,u,f,g){var _=u&T,A=Cl(s);function N(){for(var D=-1,K=arguments.length,se=-1,ie=g.length,pe=J(ie+K),Ae=this&&this!==En&&this instanceof N?A:s;++se<ie;)pe[se]=g[se];for(;K--;)pe[se++]=arguments[++D];return cr(Ae,_?f:this,pe)}return N}function yy(s){return function(u,f,g){return g&&typeof g!="number"&&zn(u,f,g)&&(f=g=n),u=No(u),f===n?(f=u,u=0):f=No(f),g=g===n?u<f?1:-1:No(g),eO(u,f,g,s)}}function Ru(s){return function(u,f){return typeof u=="string"&&typeof f=="string"||(u=Pr(u),f=Pr(f)),s(u,f)}}function _y(s,u,f,g,_,A,N,D,K,se){var ie=u&E,pe=ie?N:n,Ae=ie?n:N,Ue=ie?A:n,Ke=ie?n:A;u|=ie?$:P,u&=~(ie?P:$),u&w||(u&=~(T|C));var lt=[s,u,_,Ue,pe,Ke,Ae,D,K,se],Ge=f.apply(n,lt);return cp(s)&&Iy(Ge,lt),Ge.placeholder=g,Py(Ge,s,u)}function rp(s){var u=un[s];return function(f,g){if(f=Pr(f),g=g==null?0:Rn(it(g),292),g&&P0(f)){var _=(At(f)+"e").split("e"),A=u(_[0]+"e"+(+_[1]+g));return _=(At(A)+"e").split("e"),+(_[0]+"e"+(+_[1]-g))}return u(f)}}var gO=Oi&&1/au(new Oi([,-0]))[1]==ke?function(s){return new Oi(s)}:xp;function by(s){return function(u){var f=Ln(u);return f==Z?Rf(u):f==ae?R5(u):x5(u,s(u))}}function Po(s,u,f,g,_,A,N,D){var K=u&C;if(!K&&typeof s!="function")throw new Cr(l);var se=g?g.length:0;if(se||(u&=~($|P),g=_=n),N=N===n?N:cn(it(N),0),D=D===n?D:it(D),se-=_?_.length:0,u&P){var ie=g,pe=_;g=_=n}var Ae=K?n:ip(s),Ue=[s,u,f,g,_,ie,pe,A,N,D];if(Ae&&IO(Ue,Ae),s=Ue[0],u=Ue[1],f=Ue[2],g=Ue[3],_=Ue[4],D=Ue[9]=Ue[9]===n?K?0:s.length:cn(Ue[9]-se,0),!D&&u&(E|O)&&(u&=~(E|O)),!u||u==T)var Ke=pO(s,u,f);else u==E||u==O?Ke=hO(s,u,D):(u==$||u==(T|$))&&!_.length?Ke=mO(s,u,f,g):Ke=ku.apply(n,Ue);var lt=Ae?ey:Iy;return Py(lt(Ke,Ue),s,u)}function wy(s,u,f,g){return s===n||Yr(s,Ci[f])&&!It.call(g,f)?u:s}function Sy(s,u,f,g,_,A){return Gt(s)&&Gt(u)&&(A.set(u,s),Tu(s,u,n,Sy,A),A.delete(u)),s}function vO(s){return kl(s)?n:s}function Ey(s,u,f,g,_,A){var N=f&b,D=s.length,K=u.length;if(D!=K&&!(N&&K>D))return!1;var se=A.get(s),ie=A.get(u);if(se&&ie)return se==u&&ie==s;var pe=-1,Ae=!0,Ue=f&S?new Ls:n;for(A.set(s,u),A.set(u,s);++pe<D;){var Ke=s[pe],lt=u[pe];if(g)var Ge=N?g(lt,Ke,pe,u,s,A):g(Ke,lt,pe,s,u,A);if(Ge!==n){if(Ge)continue;Ae=!1;break}if(Ue){if(!Cf(u,function(mt,_t){if(!gl(Ue,_t)&&(Ke===mt||_(Ke,mt,f,g,A)))return Ue.push(_t)})){Ae=!1;break}}else if(!(Ke===lt||_(Ke,lt,f,g,A))){Ae=!1;break}}return A.delete(s),A.delete(u),Ae}function yO(s,u,f,g,_,A,N){switch(f){case ft:if(s.byteLength!=u.byteLength||s.byteOffset!=u.byteOffset)return!1;s=s.buffer,u=u.buffer;case yt:return!(s.byteLength!=u.byteLength||!A(new hu(s),new hu(u)));case Ve:case rt:case ue:return Yr(+s,+u);case an:return s.name==u.name&&s.message==u.message;case Se:case Fe:return s==u+"";case Z:var D=Rf;case ae:var K=g&b;if(D||(D=au),s.size!=u.size&&!K)return!1;var se=N.get(s);if(se)return se==u;g|=S,N.set(s,u);var ie=Ey(D(s),D(u),g,_,A,N);return N.delete(s),ie;case Pe:if(wl)return wl.call(s)==wl.call(u)}return!1}function _O(s,u,f,g,_,A){var N=f&b,D=op(s),K=D.length,se=op(u),ie=se.length;if(K!=ie&&!N)return!1;for(var pe=K;pe--;){var Ae=D[pe];if(!(N?Ae in u:It.call(u,Ae)))return!1}var Ue=A.get(s),Ke=A.get(u);if(Ue&&Ke)return Ue==u&&Ke==s;var lt=!0;A.set(s,u),A.set(u,s);for(var Ge=N;++pe<K;){Ae=D[pe];var mt=s[Ae],_t=u[Ae];if(g)var hr=N?g(_t,mt,Ae,u,s,A):g(mt,_t,Ae,s,u,A);if(!(hr===n?mt===_t||_(mt,_t,f,g,A):hr)){lt=!1;break}Ge||(Ge=Ae=="constructor")}if(lt&&!Ge){var Wn=s.constructor,mr=u.constructor;Wn!=mr&&"constructor"in s&&"constructor"in u&&!(typeof Wn=="function"&&Wn instanceof Wn&&typeof mr=="function"&&mr instanceof mr)&&(lt=!1)}return A.delete(s),A.delete(u),lt}function Ro(s){return fp(Ay(s,n,Dy),s+"")}function op(s){return H0(s,mn,ap)}function sp(s){return H0(s,Jn,$y)}var ip=bu?function(s){return bu.get(s)}:xp;function Lu(s){for(var u=s.name+"",f=Ai[u],g=It.call(Ai,u)?f.length:0;g--;){var _=f[g],A=_.func;if(A==null||A==s)return _.name}return u}function Ri(s){var u=It.call(x,"placeholder")?x:s;return u.placeholder}function qe(){var s=x.iteratee||Ep;return s=s===Ep?q0:s,arguments.length?s(arguments[0],arguments[1]):s}function Fu(s,u){var f=s.__data__;return CO(u)?f[typeof u=="string"?"string":"hash"]:f.map}function lp(s){for(var u=mn(s),f=u.length;f--;){var g=u[f],_=s[g];u[f]=[g,_,Cy(_)]}return u}function Ms(s,u){var f=k5(s,u);return W0(f)?f:n}function bO(s){var u=It.call(s,Ps),f=s[Ps];try{s[Ps]=n;var g=!0}catch{}var _=fu.call(s);return g&&(u?s[Ps]=f:delete s[Ps]),_}var ap=Ff?function(s){return s==null?[]:(s=Rt(s),Zo(Ff(s),function(u){return k0.call(s,u)}))}:Tp,$y=Ff?function(s){for(var u=[];s;)Qo(u,ap(s)),s=mu(s);return u}:Tp,Ln=Hn;(Nf&&Ln(new Nf(new ArrayBuffer(1)))!=ft||yl&&Ln(new yl)!=Z||Mf&&Ln(Mf.resolve())!=Oe||Oi&&Ln(new Oi)!=ae||_l&&Ln(new _l)!=ze)&&(Ln=function(s){var u=Hn(s),f=u==ye?s.constructor:n,g=f?Ds(f):"";if(g)switch(g){case n3:return ft;case r3:return Z;case o3:return Oe;case s3:return ae;case i3:return ze}return u});function wO(s,u,f){for(var g=-1,_=f.length;++g<_;){var A=f[g],N=A.size;switch(A.type){case"drop":s+=N;break;case"dropRight":u-=N;break;case"take":u=Rn(u,s+N);break;case"takeRight":s=cn(s,u-N);break}}return{start:s,end:u}}function SO(s){var u=s.match(OC);return u?u[1].split(AC):[]}function xy(s,u,f){u=os(u,s);for(var g=-1,_=u.length,A=!1;++g<_;){var N=yo(u[g]);if(!(A=s!=null&&f(s,N)))break;s=s[N]}return A||++g!=_?A:(_=s==null?0:s.length,!!_&&Vu(_)&&Lo(N,_)&&(tt(s)||Us(s)))}function EO(s){var u=s.length,f=new s.constructor(u);return u&&typeof s[0]=="string"&&It.call(s,"index")&&(f.index=s.index,f.input=s.input),f}function Ty(s){return typeof s.constructor=="function"&&!Ol(s)?ki(mu(s)):{}}function $O(s,u,f){var g=s.constructor;switch(u){case yt:return tp(s);case Ve:case rt:return new g(+s);case ft:return lO(s,f);case Ht:case Vn:case mo:case _i:case Oo:case bi:case Sn:case Gn:case wi:return ay(s,f);case Z:return new g;case ue:case Fe:return new g(s);case Se:return aO(s);case ae:return new g;case Pe:return uO(s)}}function xO(s,u){var f=u.length;if(!f)return s;var g=f-1;return u[g]=(f>1?"& ":"")+u[g],u=u.join(f>2?", ":" "),s.replace(CC,`{27 */Yc.exports;(function(e,t){(function(){var n,r="4.17.21",o=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",a="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",d=500,p="__lodash_placeholder__",h=1,v=2,y=4,b=1,S=2,T=1,C=2,w=4,E=8,O=16,$=32,P=64,R=128,k=256,W=512,U=30,j="...",G=800,X=16,ne=1,xe=2,Ee=3,ke=1/0,Ie=9007199254740991,Qe=17976931348623157e292,ht=NaN,De=4294967295,Xe=De-1,Q=De>>>1,ce=[["ary",R],["bind",T],["bindKey",C],["curry",E],["curryRight",O],["flip",W],["partial",$],["partialRight",P],["rearg",k]],ve="[object Arguments]",Ce="[object Array]",We="[object AsyncFunction]",Ve="[object Boolean]",rt="[object Date]",wn="[object DOMException]",an="[object Error]",M="[object Function]",V="[object GeneratorFunction]",Z="[object Map]",ue="[object Number]",le="[object Null]",ye="[object Object]",Oe="[object Promise]",we="[object Proxy]",Se="[object RegExp]",ae="[object Set]",Fe="[object String]",Pe="[object Symbol]",je="[object Undefined]",ze="[object WeakMap]",st="[object WeakSet]",yt="[object ArrayBuffer]",ft="[object DataView]",Ht="[object Float32Array]",Vn="[object Float64Array]",go="[object Int8Array]",_i="[object Int16Array]",Ao="[object Int32Array]",bi="[object Uint8Array]",Sn="[object Uint8ClampedArray]",Xn="[object Uint16Array]",wi="[object Uint32Array]",mC=/\b__p \+= '';/g,gC=/\b(__p \+=) '' \+/g,vC=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Bv=/&(?:amp|lt|gt|quot|#39);/g,jv=/[&<>"']/g,yC=RegExp(Bv.source),_C=RegExp(jv.source),bC=/<%-([\s\S]+?)%>/g,wC=/<%([\s\S]+?)%>/g,Vv=/<%=([\s\S]+?)%>/g,SC=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,EC=/^\w*$/,$C=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,vf=/[\\^$.*+?()[\]{}|]/g,xC=RegExp(vf.source),yf=/^\s+/,TC=/\s/,CC=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,OC=/\{\n\/\* \[wrapped with (.+)\] \*/,AC=/,? & /,kC=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,IC=/[()=,{}\[\]\/\s]/,PC=/\\(\\)?/g,RC=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Hv=/\w*$/,LC=/^[-+]0x[0-9a-f]+$/i,FC=/^0b[01]+$/i,NC=/^\[object .+?Constructor\]$/,MC=/^0o[0-7]+$/i,DC=/^(?:0|[1-9]\d*)$/,UC=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ru=/($^)/,BC=/['\n\r\u2028\u2029\\]/g,ou="\\ud800-\\udfff",jC="\\u0300-\\u036f",VC="\\ufe20-\\ufe2f",HC="\\u20d0-\\u20ff",zv=jC+VC+HC,Wv="\\u2700-\\u27bf",qv="a-z\\xdf-\\xf6\\xf8-\\xff",zC="\\xac\\xb1\\xd7\\xf7",WC="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",qC="\\u2000-\\u206f",KC=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Kv="A-Z\\xc0-\\xd6\\xd8-\\xde",Gv="\\ufe0e\\ufe0f",Xv=zC+WC+qC+KC,_f="['’]",GC="["+ou+"]",Yv="["+Xv+"]",su="["+zv+"]",Jv="\\d+",XC="["+Wv+"]",Zv="["+qv+"]",Qv="[^"+ou+Xv+Jv+Wv+qv+Kv+"]",bf="\\ud83c[\\udffb-\\udfff]",YC="(?:"+su+"|"+bf+")",e0="[^"+ou+"]",wf="(?:\\ud83c[\\udde6-\\uddff]){2}",Sf="[\\ud800-\\udbff][\\udc00-\\udfff]",Si="["+Kv+"]",t0="\\u200d",n0="(?:"+Zv+"|"+Qv+")",JC="(?:"+Si+"|"+Qv+")",r0="(?:"+_f+"(?:d|ll|m|re|s|t|ve))?",o0="(?:"+_f+"(?:D|LL|M|RE|S|T|VE))?",s0=YC+"?",i0="["+Gv+"]?",ZC="(?:"+t0+"(?:"+[e0,wf,Sf].join("|")+")"+i0+s0+")*",QC="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",e5="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",l0=i0+s0+ZC,t5="(?:"+[XC,wf,Sf].join("|")+")"+l0,n5="(?:"+[e0+su+"?",su,wf,Sf,GC].join("|")+")",r5=RegExp(_f,"g"),o5=RegExp(su,"g"),Ef=RegExp(bf+"(?="+bf+")|"+n5+l0,"g"),s5=RegExp([Si+"?"+Zv+"+"+r0+"(?="+[Yv,Si,"$"].join("|")+")",JC+"+"+o0+"(?="+[Yv,Si+n0,"$"].join("|")+")",Si+"?"+n0+"+"+r0,Si+"+"+o0,e5,QC,Jv,t5].join("|"),"g"),i5=RegExp("["+t0+ou+zv+Gv+"]"),l5=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,a5=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],u5=-1,Bt={};Bt[Ht]=Bt[Vn]=Bt[go]=Bt[_i]=Bt[Ao]=Bt[bi]=Bt[Sn]=Bt[Xn]=Bt[wi]=!0,Bt[ve]=Bt[Ce]=Bt[yt]=Bt[Ve]=Bt[ft]=Bt[rt]=Bt[an]=Bt[M]=Bt[Z]=Bt[ue]=Bt[ye]=Bt[Se]=Bt[ae]=Bt[Fe]=Bt[ze]=!1;var Nt={};Nt[ve]=Nt[Ce]=Nt[yt]=Nt[ft]=Nt[Ve]=Nt[rt]=Nt[Ht]=Nt[Vn]=Nt[go]=Nt[_i]=Nt[Ao]=Nt[Z]=Nt[ue]=Nt[ye]=Nt[Se]=Nt[ae]=Nt[Fe]=Nt[Pe]=Nt[bi]=Nt[Sn]=Nt[Xn]=Nt[wi]=!0,Nt[an]=Nt[M]=Nt[ze]=!1;var c5={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},d5={"&":"&","<":"<",">":">",'"':""","'":"'"},f5={"&":"&","<":"<",">":">",""":'"',"'":"'"},p5={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},h5=parseFloat,m5=parseInt,a0=typeof Ll=="object"&&Ll&&Ll.Object===Object&&Ll,g5=typeof self=="object"&&self&&self.Object===Object&&self,En=a0||g5||Function("return this")(),$f=t&&!t.nodeType&&t,Is=$f&&!0&&e&&!e.nodeType&&e,u0=Is&&Is.exports===$f,xf=u0&&a0.process,Tr=function(){try{var H=Is&&Is.require&&Is.require("util").types;return H||xf&&xf.binding&&xf.binding("util")}catch{}}(),c0=Tr&&Tr.isArrayBuffer,d0=Tr&&Tr.isDate,f0=Tr&&Tr.isMap,p0=Tr&&Tr.isRegExp,h0=Tr&&Tr.isSet,m0=Tr&&Tr.isTypedArray;function dr(H,re,J){switch(J.length){case 0:return H.call(re);case 1:return H.call(re,J[0]);case 2:return H.call(re,J[0],J[1]);case 3:return H.call(re,J[0],J[1],J[2])}return H.apply(re,J)}function v5(H,re,J,Re){for(var et=-1,Tt=H==null?0:H.length;++et<Tt;){var un=H[et];re(Re,un,J(un),H)}return Re}function Cr(H,re){for(var J=-1,Re=H==null?0:H.length;++J<Re&&re(H[J],J,H)!==!1;);return H}function y5(H,re){for(var J=H==null?0:H.length;J--&&re(H[J],J,H)!==!1;);return H}function g0(H,re){for(var J=-1,Re=H==null?0:H.length;++J<Re;)if(!re(H[J],J,H))return!1;return!0}function Zo(H,re){for(var J=-1,Re=H==null?0:H.length,et=0,Tt=[];++J<Re;){var un=H[J];re(un,J,H)&&(Tt[et++]=un)}return Tt}function iu(H,re){var J=H==null?0:H.length;return!!J&&Ei(H,re,0)>-1}function Tf(H,re,J){for(var Re=-1,et=H==null?0:H.length;++Re<et;)if(J(re,H[Re]))return!0;return!1}function zt(H,re){for(var J=-1,Re=H==null?0:H.length,et=Array(Re);++J<Re;)et[J]=re(H[J],J,H);return et}function Qo(H,re){for(var J=-1,Re=re.length,et=H.length;++J<Re;)H[et+J]=re[J];return H}function Cf(H,re,J,Re){var et=-1,Tt=H==null?0:H.length;for(Re&&Tt&&(J=H[++et]);++et<Tt;)J=re(J,H[et],et,H);return J}function _5(H,re,J,Re){var et=H==null?0:H.length;for(Re&&et&&(J=H[--et]);et--;)J=re(J,H[et],et,H);return J}function Of(H,re){for(var J=-1,Re=H==null?0:H.length;++J<Re;)if(re(H[J],J,H))return!0;return!1}var b5=Af("length");function w5(H){return H.split("")}function S5(H){return H.match(kC)||[]}function v0(H,re,J){var Re;return J(H,function(et,Tt,un){if(re(et,Tt,un))return Re=Tt,!1}),Re}function lu(H,re,J,Re){for(var et=H.length,Tt=J+(Re?1:-1);Re?Tt--:++Tt<et;)if(re(H[Tt],Tt,H))return Tt;return-1}function Ei(H,re,J){return re===re?L5(H,re,J):lu(H,y0,J)}function E5(H,re,J,Re){for(var et=J-1,Tt=H.length;++et<Tt;)if(Re(H[et],re))return et;return-1}function y0(H){return H!==H}function _0(H,re){var J=H==null?0:H.length;return J?If(H,re)/J:ht}function Af(H){return function(re){return re==null?n:re[H]}}function kf(H){return function(re){return H==null?n:H[re]}}function b0(H,re,J,Re,et){return et(H,function(Tt,un,Rt){J=Re?(Re=!1,Tt):re(J,Tt,un,Rt)}),J}function $5(H,re){var J=H.length;for(H.sort(re);J--;)H[J]=H[J].value;return H}function If(H,re){for(var J,Re=-1,et=H.length;++Re<et;){var Tt=re(H[Re]);Tt!==n&&(J=J===n?Tt:J+Tt)}return J}function Pf(H,re){for(var J=-1,Re=Array(H);++J<H;)Re[J]=re(J);return Re}function x5(H,re){return zt(re,function(J){return[J,H[J]]})}function w0(H){return H&&H.slice(0,x0(H)+1).replace(yf,"")}function fr(H){return function(re){return H(re)}}function Rf(H,re){return zt(re,function(J){return H[J]})}function gl(H,re){return H.has(re)}function S0(H,re){for(var J=-1,Re=H.length;++J<Re&&Ei(re,H[J],0)>-1;);return J}function E0(H,re){for(var J=H.length;J--&&Ei(re,H[J],0)>-1;);return J}function T5(H,re){for(var J=H.length,Re=0;J--;)H[J]===re&&++Re;return Re}var C5=kf(c5),O5=kf(d5);function A5(H){return"\\"+p5[H]}function k5(H,re){return H==null?n:H[re]}function $i(H){return i5.test(H)}function I5(H){return l5.test(H)}function P5(H){for(var re,J=[];!(re=H.next()).done;)J.push(re.value);return J}function Lf(H){var re=-1,J=Array(H.size);return H.forEach(function(Re,et){J[++re]=[et,Re]}),J}function $0(H,re){return function(J){return H(re(J))}}function es(H,re){for(var J=-1,Re=H.length,et=0,Tt=[];++J<Re;){var un=H[J];(un===re||un===p)&&(H[J]=p,Tt[et++]=J)}return Tt}function au(H){var re=-1,J=Array(H.size);return H.forEach(function(Re){J[++re]=Re}),J}function R5(H){var re=-1,J=Array(H.size);return H.forEach(function(Re){J[++re]=[Re,Re]}),J}function L5(H,re,J){for(var Re=J-1,et=H.length;++Re<et;)if(H[Re]===re)return Re;return-1}function F5(H,re,J){for(var Re=J+1;Re--;)if(H[Re]===re)return Re;return Re}function xi(H){return $i(H)?M5(H):b5(H)}function Xr(H){return $i(H)?D5(H):w5(H)}function x0(H){for(var re=H.length;re--&&TC.test(H.charAt(re)););return re}var N5=kf(f5);function M5(H){for(var re=Ef.lastIndex=0;Ef.test(H);)++re;return re}function D5(H){return H.match(Ef)||[]}function U5(H){return H.match(s5)||[]}var B5=function H(re){re=re==null?En:Ti.defaults(En.Object(),re,Ti.pick(En,a5));var J=re.Array,Re=re.Date,et=re.Error,Tt=re.Function,un=re.Math,Rt=re.Object,Ff=re.RegExp,j5=re.String,Or=re.TypeError,uu=J.prototype,V5=Tt.prototype,Ci=Rt.prototype,cu=re["__core-js_shared__"],du=V5.toString,It=Ci.hasOwnProperty,H5=0,T0=function(){var s=/[^.]+$/.exec(cu&&cu.keys&&cu.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""}(),fu=Ci.toString,z5=du.call(Rt),W5=En._,q5=Ff("^"+du.call(It).replace(vf,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),pu=u0?re.Buffer:n,ts=re.Symbol,hu=re.Uint8Array,C0=pu?pu.allocUnsafe:n,mu=$0(Rt.getPrototypeOf,Rt),O0=Rt.create,A0=Ci.propertyIsEnumerable,gu=uu.splice,k0=ts?ts.isConcatSpreadable:n,vl=ts?ts.iterator:n,Ps=ts?ts.toStringTag:n,vu=function(){try{var s=Ms(Rt,"defineProperty");return s({},"",{}),s}catch{}}(),K5=re.clearTimeout!==En.clearTimeout&&re.clearTimeout,G5=Re&&Re.now!==En.Date.now&&Re.now,X5=re.setTimeout!==En.setTimeout&&re.setTimeout,yu=un.ceil,_u=un.floor,Nf=Rt.getOwnPropertySymbols,Y5=pu?pu.isBuffer:n,I0=re.isFinite,J5=uu.join,Z5=$0(Rt.keys,Rt),cn=un.max,Rn=un.min,Q5=Re.now,e3=re.parseInt,P0=un.random,t3=uu.reverse,Mf=Ms(re,"DataView"),yl=Ms(re,"Map"),Df=Ms(re,"Promise"),Oi=Ms(re,"Set"),_l=Ms(re,"WeakMap"),bl=Ms(Rt,"create"),bu=_l&&new _l,Ai={},n3=Ds(Mf),r3=Ds(yl),o3=Ds(Df),s3=Ds(Oi),i3=Ds(_l),wu=ts?ts.prototype:n,wl=wu?wu.valueOf:n,R0=wu?wu.toString:n;function x(s){if(Yt(s)&&!tt(s)&&!(s instanceof vt)){if(s instanceof Ar)return s;if(It.call(s,"__wrapped__"))return Ly(s)}return new Ar(s)}var ki=function(){function s(){}return function(u){if(!Gt(u))return{};if(O0)return O0(u);s.prototype=u;var f=new s;return s.prototype=n,f}}();function Su(){}function Ar(s,u){this.__wrapped__=s,this.__actions__=[],this.__chain__=!!u,this.__index__=0,this.__values__=n}x.templateSettings={escape:bC,evaluate:wC,interpolate:Vv,variable:"",imports:{_:x}},x.prototype=Su.prototype,x.prototype.constructor=x,Ar.prototype=ki(Su.prototype),Ar.prototype.constructor=Ar;function vt(s){this.__wrapped__=s,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=De,this.__views__=[]}function l3(){var s=new vt(this.__wrapped__);return s.__actions__=Yn(this.__actions__),s.__dir__=this.__dir__,s.__filtered__=this.__filtered__,s.__iteratees__=Yn(this.__iteratees__),s.__takeCount__=this.__takeCount__,s.__views__=Yn(this.__views__),s}function a3(){if(this.__filtered__){var s=new vt(this);s.__dir__=-1,s.__filtered__=!0}else s=this.clone(),s.__dir__*=-1;return s}function u3(){var s=this.__wrapped__.value(),u=this.__dir__,f=tt(s),g=u<0,_=f?s.length:0,A=wO(0,_,this.__views__),N=A.start,D=A.end,K=D-N,se=g?D:N-1,ie=this.__iteratees__,pe=ie.length,Ae=0,Ue=Rn(K,this.__takeCount__);if(!f||!g&&_==K&&Ue==K)return ry(s,this.__actions__);var Ke=[];e:for(;K--&&Ae<Ue;){se+=u;for(var lt=-1,Ge=s[se];++lt<pe;){var mt=ie[lt],_t=mt.iteratee,mr=mt.type,Wn=_t(Ge);if(mr==xe)Ge=Wn;else if(!Wn){if(mr==ne)continue e;break e}}Ke[Ae++]=Ge}return Ke}vt.prototype=ki(Su.prototype),vt.prototype.constructor=vt;function Rs(s){var u=-1,f=s==null?0:s.length;for(this.clear();++u<f;){var g=s[u];this.set(g[0],g[1])}}function c3(){this.__data__=bl?bl(null):{},this.size=0}function d3(s){var u=this.has(s)&&delete this.__data__[s];return this.size-=u?1:0,u}function f3(s){var u=this.__data__;if(bl){var f=u[s];return f===c?n:f}return It.call(u,s)?u[s]:n}function p3(s){var u=this.__data__;return bl?u[s]!==n:It.call(u,s)}function h3(s,u){var f=this.__data__;return this.size+=this.has(s)?0:1,f[s]=bl&&u===n?c:u,this}Rs.prototype.clear=c3,Rs.prototype.delete=d3,Rs.prototype.get=f3,Rs.prototype.has=p3,Rs.prototype.set=h3;function ko(s){var u=-1,f=s==null?0:s.length;for(this.clear();++u<f;){var g=s[u];this.set(g[0],g[1])}}function m3(){this.__data__=[],this.size=0}function g3(s){var u=this.__data__,f=Eu(u,s);if(f<0)return!1;var g=u.length-1;return f==g?u.pop():gu.call(u,f,1),--this.size,!0}function v3(s){var u=this.__data__,f=Eu(u,s);return f<0?n:u[f][1]}function y3(s){return Eu(this.__data__,s)>-1}function _3(s,u){var f=this.__data__,g=Eu(f,s);return g<0?(++this.size,f.push([s,u])):f[g][1]=u,this}ko.prototype.clear=m3,ko.prototype.delete=g3,ko.prototype.get=v3,ko.prototype.has=y3,ko.prototype.set=_3;function Io(s){var u=-1,f=s==null?0:s.length;for(this.clear();++u<f;){var g=s[u];this.set(g[0],g[1])}}function b3(){this.size=0,this.__data__={hash:new Rs,map:new(yl||ko),string:new Rs}}function w3(s){var u=Fu(this,s).delete(s);return this.size-=u?1:0,u}function S3(s){return Fu(this,s).get(s)}function E3(s){return Fu(this,s).has(s)}function $3(s,u){var f=Fu(this,s),g=f.size;return f.set(s,u),this.size+=f.size==g?0:1,this}Io.prototype.clear=b3,Io.prototype.delete=w3,Io.prototype.get=S3,Io.prototype.has=E3,Io.prototype.set=$3;function Ls(s){var u=-1,f=s==null?0:s.length;for(this.__data__=new Io;++u<f;)this.add(s[u])}function x3(s){return this.__data__.set(s,c),this}function T3(s){return this.__data__.has(s)}Ls.prototype.add=Ls.prototype.push=x3,Ls.prototype.has=T3;function Yr(s){var u=this.__data__=new ko(s);this.size=u.size}function C3(){this.__data__=new ko,this.size=0}function O3(s){var u=this.__data__,f=u.delete(s);return this.size=u.size,f}function A3(s){return this.__data__.get(s)}function k3(s){return this.__data__.has(s)}function I3(s,u){var f=this.__data__;if(f instanceof ko){var g=f.__data__;if(!yl||g.length<o-1)return g.push([s,u]),this.size=++f.size,this;f=this.__data__=new Io(g)}return f.set(s,u),this.size=f.size,this}Yr.prototype.clear=C3,Yr.prototype.delete=O3,Yr.prototype.get=A3,Yr.prototype.has=k3,Yr.prototype.set=I3;function L0(s,u){var f=tt(s),g=!f&&Us(s),_=!f&&!g&&is(s),A=!f&&!g&&!_&&Li(s),N=f||g||_||A,D=N?Pf(s.length,j5):[],K=D.length;for(var se in s)(u||It.call(s,se))&&!(N&&(se=="length"||_&&(se=="offset"||se=="parent")||A&&(se=="buffer"||se=="byteLength"||se=="byteOffset")||Fo(se,K)))&&D.push(se);return D}function F0(s){var u=s.length;return u?s[Xf(0,u-1)]:n}function P3(s,u){return Nu(Yn(s),Fs(u,0,s.length))}function R3(s){return Nu(Yn(s))}function Uf(s,u,f){(f!==n&&!Jr(s[u],f)||f===n&&!(u in s))&&Po(s,u,f)}function Sl(s,u,f){var g=s[u];(!(It.call(s,u)&&Jr(g,f))||f===n&&!(u in s))&&Po(s,u,f)}function Eu(s,u){for(var f=s.length;f--;)if(Jr(s[f][0],u))return f;return-1}function L3(s,u,f,g){return ns(s,function(_,A,N){u(g,_,f(_),N)}),g}function N0(s,u){return s&&yo(u,mn(u),s)}function F3(s,u){return s&&yo(u,Zn(u),s)}function Po(s,u,f){u=="__proto__"&&vu?vu(s,u,{configurable:!0,enumerable:!0,value:f,writable:!0}):s[u]=f}function Bf(s,u){for(var f=-1,g=u.length,_=J(g),A=s==null;++f<g;)_[f]=A?n:bp(s,u[f]);return _}function Fs(s,u,f){return s===s&&(f!==n&&(s=s<=f?s:f),u!==n&&(s=s>=u?s:u)),s}function kr(s,u,f,g,_,A){var N,D=u&h,K=u&v,se=u&y;if(f&&(N=_?f(s,g,_,A):f(s)),N!==n)return N;if(!Gt(s))return s;var ie=tt(s);if(ie){if(N=EO(s),!D)return Yn(s,N)}else{var pe=Ln(s),Ae=pe==M||pe==V;if(is(s))return iy(s,D);if(pe==ye||pe==ve||Ae&&!_){if(N=K||Ae?{}:xy(s),!D)return K?fO(s,F3(N,s)):dO(s,N0(N,s))}else{if(!Nt[pe])return _?s:{};N=$O(s,pe,D)}}A||(A=new Yr);var Ue=A.get(s);if(Ue)return Ue;A.set(s,N),e_(s)?s.forEach(function(Ge){N.add(kr(Ge,u,f,Ge,s,A))}):Zy(s)&&s.forEach(function(Ge,mt){N.set(mt,kr(Ge,u,f,mt,s,A))});var Ke=se?K?ip:sp:K?Zn:mn,lt=ie?n:Ke(s);return Cr(lt||s,function(Ge,mt){lt&&(mt=Ge,Ge=s[mt]),Sl(N,mt,kr(Ge,u,f,mt,s,A))}),N}function N3(s){var u=mn(s);return function(f){return M0(f,s,u)}}function M0(s,u,f){var g=f.length;if(s==null)return!g;for(s=Rt(s);g--;){var _=f[g],A=u[_],N=s[_];if(N===n&&!(_ in s)||!A(N))return!1}return!0}function D0(s,u,f){if(typeof s!="function")throw new Or(l);return Al(function(){s.apply(n,f)},u)}function El(s,u,f,g){var _=-1,A=iu,N=!0,D=s.length,K=[],se=u.length;if(!D)return K;f&&(u=zt(u,fr(f))),g?(A=Tf,N=!1):u.length>=o&&(A=gl,N=!1,u=new Ls(u));e:for(;++_<D;){var ie=s[_],pe=f==null?ie:f(ie);if(ie=g||ie!==0?ie:0,N&&pe===pe){for(var Ae=se;Ae--;)if(u[Ae]===pe)continue e;K.push(ie)}else A(u,pe,g)||K.push(ie)}return K}var ns=dy(vo),U0=dy(Vf,!0);function M3(s,u){var f=!0;return ns(s,function(g,_,A){return f=!!u(g,_,A),f}),f}function $u(s,u,f){for(var g=-1,_=s.length;++g<_;){var A=s[g],N=u(A);if(N!=null&&(D===n?N===N&&!hr(N):f(N,D)))var D=N,K=A}return K}function D3(s,u,f,g){var _=s.length;for(f=it(f),f<0&&(f=-f>_?0:_+f),g=g===n||g>_?_:it(g),g<0&&(g+=_),g=f>g?0:n_(g);f<g;)s[f++]=u;return s}function B0(s,u){var f=[];return ns(s,function(g,_,A){u(g,_,A)&&f.push(g)}),f}function $n(s,u,f,g,_){var A=-1,N=s.length;for(f||(f=TO),_||(_=[]);++A<N;){var D=s[A];u>0&&f(D)?u>1?$n(D,u-1,f,g,_):Qo(_,D):g||(_[_.length]=D)}return _}var jf=fy(),j0=fy(!0);function vo(s,u){return s&&jf(s,u,mn)}function Vf(s,u){return s&&j0(s,u,mn)}function xu(s,u){return Zo(u,function(f){return No(s[f])})}function Ns(s,u){u=os(u,s);for(var f=0,g=u.length;s!=null&&f<g;)s=s[_o(u[f++])];return f&&f==g?s:n}function V0(s,u,f){var g=u(s);return tt(s)?g:Qo(g,f(s))}function Hn(s){return s==null?s===n?je:le:Ps&&Ps in Rt(s)?bO(s):RO(s)}function Hf(s,u){return s>u}function U3(s,u){return s!=null&&It.call(s,u)}function B3(s,u){return s!=null&&u in Rt(s)}function j3(s,u,f){return s>=Rn(u,f)&&s<cn(u,f)}function zf(s,u,f){for(var g=f?Tf:iu,_=s[0].length,A=s.length,N=A,D=J(A),K=1/0,se=[];N--;){var ie=s[N];N&&u&&(ie=zt(ie,fr(u))),K=Rn(ie.length,K),D[N]=!f&&(u||_>=120&&ie.length>=120)?new Ls(N&&ie):n}ie=s[0];var pe=-1,Ae=D[0];e:for(;++pe<_&&se.length<K;){var Ue=ie[pe],Ke=u?u(Ue):Ue;if(Ue=f||Ue!==0?Ue:0,!(Ae?gl(Ae,Ke):g(se,Ke,f))){for(N=A;--N;){var lt=D[N];if(!(lt?gl(lt,Ke):g(s[N],Ke,f)))continue e}Ae&&Ae.push(Ke),se.push(Ue)}}return se}function V3(s,u,f,g){return vo(s,function(_,A,N){u(g,f(_),A,N)}),g}function $l(s,u,f){u=os(u,s),s=Ay(s,u);var g=s==null?s:s[_o(Pr(u))];return g==null?n:dr(g,s,f)}function H0(s){return Yt(s)&&Hn(s)==ve}function H3(s){return Yt(s)&&Hn(s)==yt}function z3(s){return Yt(s)&&Hn(s)==rt}function xl(s,u,f,g,_){return s===u?!0:s==null||u==null||!Yt(s)&&!Yt(u)?s!==s&&u!==u:W3(s,u,f,g,xl,_)}function W3(s,u,f,g,_,A){var N=tt(s),D=tt(u),K=N?Ce:Ln(s),se=D?Ce:Ln(u);K=K==ve?ye:K,se=se==ve?ye:se;var ie=K==ye,pe=se==ye,Ae=K==se;if(Ae&&is(s)){if(!is(u))return!1;N=!0,ie=!1}if(Ae&&!ie)return A||(A=new Yr),N||Li(s)?Sy(s,u,f,g,_,A):yO(s,u,K,f,g,_,A);if(!(f&b)){var Ue=ie&&It.call(s,"__wrapped__"),Ke=pe&&It.call(u,"__wrapped__");if(Ue||Ke){var lt=Ue?s.value():s,Ge=Ke?u.value():u;return A||(A=new Yr),_(lt,Ge,f,g,A)}}return Ae?(A||(A=new Yr),_O(s,u,f,g,_,A)):!1}function q3(s){return Yt(s)&&Ln(s)==Z}function Wf(s,u,f,g){var _=f.length,A=_,N=!g;if(s==null)return!A;for(s=Rt(s);_--;){var D=f[_];if(N&&D[2]?D[1]!==s[D[0]]:!(D[0]in s))return!1}for(;++_<A;){D=f[_];var K=D[0],se=s[K],ie=D[1];if(N&&D[2]){if(se===n&&!(K in s))return!1}else{var pe=new Yr;if(g)var Ae=g(se,ie,K,s,u,pe);if(!(Ae===n?xl(ie,se,b|S,g,pe):Ae))return!1}}return!0}function z0(s){if(!Gt(s)||OO(s))return!1;var u=No(s)?q5:NC;return u.test(Ds(s))}function K3(s){return Yt(s)&&Hn(s)==Se}function G3(s){return Yt(s)&&Ln(s)==ae}function X3(s){return Yt(s)&&Vu(s.length)&&!!Bt[Hn(s)]}function W0(s){return typeof s=="function"?s:s==null?Qn:typeof s=="object"?tt(s)?G0(s[0],s[1]):K0(s):p_(s)}function qf(s){if(!Ol(s))return Z5(s);var u=[];for(var f in Rt(s))It.call(s,f)&&f!="constructor"&&u.push(f);return u}function Y3(s){if(!Gt(s))return PO(s);var u=Ol(s),f=[];for(var g in s)g=="constructor"&&(u||!It.call(s,g))||f.push(g);return f}function Kf(s,u){return s<u}function q0(s,u){var f=-1,g=Jn(s)?J(s.length):[];return ns(s,function(_,A,N){g[++f]=u(_,A,N)}),g}function K0(s){var u=ap(s);return u.length==1&&u[0][2]?Cy(u[0][0],u[0][1]):function(f){return f===s||Wf(f,s,u)}}function G0(s,u){return cp(s)&&Ty(u)?Cy(_o(s),u):function(f){var g=bp(f,s);return g===n&&g===u?wp(f,s):xl(u,g,b|S)}}function Tu(s,u,f,g,_){s!==u&&jf(u,function(A,N){if(_||(_=new Yr),Gt(A))J3(s,u,N,f,Tu,g,_);else{var D=g?g(fp(s,N),A,N+"",s,u,_):n;D===n&&(D=A),Uf(s,N,D)}},Zn)}function J3(s,u,f,g,_,A,N){var D=fp(s,f),K=fp(u,f),se=N.get(K);if(se){Uf(s,f,se);return}var ie=A?A(D,K,f+"",s,u,N):n,pe=ie===n;if(pe){var Ae=tt(K),Ue=!Ae&&is(K),Ke=!Ae&&!Ue&&Li(K);ie=K,Ae||Ue||Ke?tt(D)?ie=D:tn(D)?ie=Yn(D):Ue?(pe=!1,ie=iy(K,!0)):Ke?(pe=!1,ie=ly(K,!0)):ie=[]:kl(K)||Us(K)?(ie=D,Us(D)?ie=r_(D):(!Gt(D)||No(D))&&(ie=xy(K))):pe=!1}pe&&(N.set(K,ie),_(ie,K,g,A,N),N.delete(K)),Uf(s,f,ie)}function X0(s,u){var f=s.length;if(f)return u+=u<0?f:0,Fo(u,f)?s[u]:n}function Y0(s,u,f){u.length?u=zt(u,function(A){return tt(A)?function(N){return Ns(N,A.length===1?A[0]:A)}:A}):u=[Qn];var g=-1;u=zt(u,fr(qe()));var _=q0(s,function(A,N,D){var K=zt(u,function(se){return se(A)});return{criteria:K,index:++g,value:A}});return $5(_,function(A,N){return cO(A,N,f)})}function Z3(s,u){return J0(s,u,function(f,g){return wp(s,g)})}function J0(s,u,f){for(var g=-1,_=u.length,A={};++g<_;){var N=u[g],D=Ns(s,N);f(D,N)&&Tl(A,os(N,s),D)}return A}function Q3(s){return function(u){return Ns(u,s)}}function Gf(s,u,f,g){var _=g?E5:Ei,A=-1,N=u.length,D=s;for(s===u&&(u=Yn(u)),f&&(D=zt(s,fr(f)));++A<N;)for(var K=0,se=u[A],ie=f?f(se):se;(K=_(D,ie,K,g))>-1;)D!==s&&gu.call(D,K,1),gu.call(s,K,1);return s}function Z0(s,u){for(var f=s?u.length:0,g=f-1;f--;){var _=u[f];if(f==g||_!==A){var A=_;Fo(_)?gu.call(s,_,1):Zf(s,_)}}return s}function Xf(s,u){return s+_u(P0()*(u-s+1))}function eO(s,u,f,g){for(var _=-1,A=cn(yu((u-s)/(f||1)),0),N=J(A);A--;)N[g?A:++_]=s,s+=f;return N}function Yf(s,u){var f="";if(!s||u<1||u>Ie)return f;do u%2&&(f+=s),u=_u(u/2),u&&(s+=s);while(u);return f}function ct(s,u){return pp(Oy(s,u,Qn),s+"")}function tO(s){return F0(Fi(s))}function nO(s,u){var f=Fi(s);return Nu(f,Fs(u,0,f.length))}function Tl(s,u,f,g){if(!Gt(s))return s;u=os(u,s);for(var _=-1,A=u.length,N=A-1,D=s;D!=null&&++_<A;){var K=_o(u[_]),se=f;if(K==="__proto__"||K==="constructor"||K==="prototype")return s;if(_!=N){var ie=D[K];se=g?g(ie,K,D):n,se===n&&(se=Gt(ie)?ie:Fo(u[_+1])?[]:{})}Sl(D,K,se),D=D[K]}return s}var Q0=bu?function(s,u){return bu.set(s,u),s}:Qn,rO=vu?function(s,u){return vu(s,"toString",{configurable:!0,enumerable:!1,value:Ep(u),writable:!0})}:Qn;function oO(s){return Nu(Fi(s))}function Ir(s,u,f){var g=-1,_=s.length;u<0&&(u=-u>_?0:_+u),f=f>_?_:f,f<0&&(f+=_),_=u>f?0:f-u>>>0,u>>>=0;for(var A=J(_);++g<_;)A[g]=s[g+u];return A}function sO(s,u){var f;return ns(s,function(g,_,A){return f=u(g,_,A),!f}),!!f}function Cu(s,u,f){var g=0,_=s==null?g:s.length;if(typeof u=="number"&&u===u&&_<=Q){for(;g<_;){var A=g+_>>>1,N=s[A];N!==null&&!hr(N)&&(f?N<=u:N<u)?g=A+1:_=A}return _}return Jf(s,u,Qn,f)}function Jf(s,u,f,g){var _=0,A=s==null?0:s.length;if(A===0)return 0;u=f(u);for(var N=u!==u,D=u===null,K=hr(u),se=u===n;_<A;){var ie=_u((_+A)/2),pe=f(s[ie]),Ae=pe!==n,Ue=pe===null,Ke=pe===pe,lt=hr(pe);if(N)var Ge=g||Ke;else se?Ge=Ke&&(g||Ae):D?Ge=Ke&&Ae&&(g||!Ue):K?Ge=Ke&&Ae&&!Ue&&(g||!lt):Ue||lt?Ge=!1:Ge=g?pe<=u:pe<u;Ge?_=ie+1:A=ie}return Rn(A,Xe)}function ey(s,u){for(var f=-1,g=s.length,_=0,A=[];++f<g;){var N=s[f],D=u?u(N):N;if(!f||!Jr(D,K)){var K=D;A[_++]=N===0?0:N}}return A}function ty(s){return typeof s=="number"?s:hr(s)?ht:+s}function pr(s){if(typeof s=="string")return s;if(tt(s))return zt(s,pr)+"";if(hr(s))return R0?R0.call(s):"";var u=s+"";return u=="0"&&1/s==-ke?"-0":u}function rs(s,u,f){var g=-1,_=iu,A=s.length,N=!0,D=[],K=D;if(f)N=!1,_=Tf;else if(A>=o){var se=u?null:gO(s);if(se)return au(se);N=!1,_=gl,K=new Ls}else K=u?[]:D;e:for(;++g<A;){var ie=s[g],pe=u?u(ie):ie;if(ie=f||ie!==0?ie:0,N&&pe===pe){for(var Ae=K.length;Ae--;)if(K[Ae]===pe)continue e;u&&K.push(pe),D.push(ie)}else _(K,pe,f)||(K!==D&&K.push(pe),D.push(ie))}return D}function Zf(s,u){return u=os(u,s),s=Ay(s,u),s==null||delete s[_o(Pr(u))]}function ny(s,u,f,g){return Tl(s,u,f(Ns(s,u)),g)}function Ou(s,u,f,g){for(var _=s.length,A=g?_:-1;(g?A--:++A<_)&&u(s[A],A,s););return f?Ir(s,g?0:A,g?A+1:_):Ir(s,g?A+1:0,g?_:A)}function ry(s,u){var f=s;return f instanceof vt&&(f=f.value()),Cf(u,function(g,_){return _.func.apply(_.thisArg,Qo([g],_.args))},f)}function Qf(s,u,f){var g=s.length;if(g<2)return g?rs(s[0]):[];for(var _=-1,A=J(g);++_<g;)for(var N=s[_],D=-1;++D<g;)D!=_&&(A[_]=El(A[_]||N,s[D],u,f));return rs($n(A,1),u,f)}function oy(s,u,f){for(var g=-1,_=s.length,A=u.length,N={};++g<_;){var D=g<A?u[g]:n;f(N,s[g],D)}return N}function ep(s){return tn(s)?s:[]}function tp(s){return typeof s=="function"?s:Qn}function os(s,u){return tt(s)?s:cp(s,u)?[s]:Ry(At(s))}var iO=ct;function ss(s,u,f){var g=s.length;return f=f===n?g:f,!u&&f>=g?s:Ir(s,u,f)}var sy=K5||function(s){return En.clearTimeout(s)};function iy(s,u){if(u)return s.slice();var f=s.length,g=C0?C0(f):new s.constructor(f);return s.copy(g),g}function np(s){var u=new s.constructor(s.byteLength);return new hu(u).set(new hu(s)),u}function lO(s,u){var f=u?np(s.buffer):s.buffer;return new s.constructor(f,s.byteOffset,s.byteLength)}function aO(s){var u=new s.constructor(s.source,Hv.exec(s));return u.lastIndex=s.lastIndex,u}function uO(s){return wl?Rt(wl.call(s)):{}}function ly(s,u){var f=u?np(s.buffer):s.buffer;return new s.constructor(f,s.byteOffset,s.length)}function ay(s,u){if(s!==u){var f=s!==n,g=s===null,_=s===s,A=hr(s),N=u!==n,D=u===null,K=u===u,se=hr(u);if(!D&&!se&&!A&&s>u||A&&N&&K&&!D&&!se||g&&N&&K||!f&&K||!_)return 1;if(!g&&!A&&!se&&s<u||se&&f&&_&&!g&&!A||D&&f&&_||!N&&_||!K)return-1}return 0}function cO(s,u,f){for(var g=-1,_=s.criteria,A=u.criteria,N=_.length,D=f.length;++g<N;){var K=ay(_[g],A[g]);if(K){if(g>=D)return K;var se=f[g];return K*(se=="desc"?-1:1)}}return s.index-u.index}function uy(s,u,f,g){for(var _=-1,A=s.length,N=f.length,D=-1,K=u.length,se=cn(A-N,0),ie=J(K+se),pe=!g;++D<K;)ie[D]=u[D];for(;++_<N;)(pe||_<A)&&(ie[f[_]]=s[_]);for(;se--;)ie[D++]=s[_++];return ie}function cy(s,u,f,g){for(var _=-1,A=s.length,N=-1,D=f.length,K=-1,se=u.length,ie=cn(A-D,0),pe=J(ie+se),Ae=!g;++_<ie;)pe[_]=s[_];for(var Ue=_;++K<se;)pe[Ue+K]=u[K];for(;++N<D;)(Ae||_<A)&&(pe[Ue+f[N]]=s[_++]);return pe}function Yn(s,u){var f=-1,g=s.length;for(u||(u=J(g));++f<g;)u[f]=s[f];return u}function yo(s,u,f,g){var _=!f;f||(f={});for(var A=-1,N=u.length;++A<N;){var D=u[A],K=g?g(f[D],s[D],D,f,s):n;K===n&&(K=s[D]),_?Po(f,D,K):Sl(f,D,K)}return f}function dO(s,u){return yo(s,up(s),u)}function fO(s,u){return yo(s,Ey(s),u)}function Au(s,u){return function(f,g){var _=tt(f)?v5:L3,A=u?u():{};return _(f,s,qe(g,2),A)}}function Ii(s){return ct(function(u,f){var g=-1,_=f.length,A=_>1?f[_-1]:n,N=_>2?f[2]:n;for(A=s.length>3&&typeof A=="function"?(_--,A):n,N&&zn(f[0],f[1],N)&&(A=_<3?n:A,_=1),u=Rt(u);++g<_;){var D=f[g];D&&s(u,D,g,A)}return u})}function dy(s,u){return function(f,g){if(f==null)return f;if(!Jn(f))return s(f,g);for(var _=f.length,A=u?_:-1,N=Rt(f);(u?A--:++A<_)&&g(N[A],A,N)!==!1;);return f}}function fy(s){return function(u,f,g){for(var _=-1,A=Rt(u),N=g(u),D=N.length;D--;){var K=N[s?D:++_];if(f(A[K],K,A)===!1)break}return u}}function pO(s,u,f){var g=u&T,_=Cl(s);function A(){var N=this&&this!==En&&this instanceof A?_:s;return N.apply(g?f:this,arguments)}return A}function py(s){return function(u){u=At(u);var f=$i(u)?Xr(u):n,g=f?f[0]:u.charAt(0),_=f?ss(f,1).join(""):u.slice(1);return g[s]()+_}}function Pi(s){return function(u){return Cf(d_(c_(u).replace(r5,"")),s,"")}}function Cl(s){return function(){var u=arguments;switch(u.length){case 0:return new s;case 1:return new s(u[0]);case 2:return new s(u[0],u[1]);case 3:return new s(u[0],u[1],u[2]);case 4:return new s(u[0],u[1],u[2],u[3]);case 5:return new s(u[0],u[1],u[2],u[3],u[4]);case 6:return new s(u[0],u[1],u[2],u[3],u[4],u[5]);case 7:return new s(u[0],u[1],u[2],u[3],u[4],u[5],u[6])}var f=ki(s.prototype),g=s.apply(f,u);return Gt(g)?g:f}}function hO(s,u,f){var g=Cl(s);function _(){for(var A=arguments.length,N=J(A),D=A,K=Ri(_);D--;)N[D]=arguments[D];var se=A<3&&N[0]!==K&&N[A-1]!==K?[]:es(N,K);if(A-=se.length,A<f)return yy(s,u,ku,_.placeholder,n,N,se,n,n,f-A);var ie=this&&this!==En&&this instanceof _?g:s;return dr(ie,this,N)}return _}function hy(s){return function(u,f,g){var _=Rt(u);if(!Jn(u)){var A=qe(f,3);u=mn(u),f=function(D){return A(_[D],D,_)}}var N=s(u,f,g);return N>-1?_[A?u[N]:N]:n}}function my(s){return Lo(function(u){var f=u.length,g=f,_=Ar.prototype.thru;for(s&&u.reverse();g--;){var A=u[g];if(typeof A!="function")throw new Or(l);if(_&&!N&&Lu(A)=="wrapper")var N=new Ar([],!0)}for(g=N?g:f;++g<f;){A=u[g];var D=Lu(A),K=D=="wrapper"?lp(A):n;K&&dp(K[0])&&K[1]==(R|E|$|k)&&!K[4].length&&K[9]==1?N=N[Lu(K[0])].apply(N,K[3]):N=A.length==1&&dp(A)?N[D]():N.thru(A)}return function(){var se=arguments,ie=se[0];if(N&&se.length==1&&tt(ie))return N.plant(ie).value();for(var pe=0,Ae=f?u[pe].apply(this,se):ie;++pe<f;)Ae=u[pe].call(this,Ae);return Ae}})}function ku(s,u,f,g,_,A,N,D,K,se){var ie=u&R,pe=u&T,Ae=u&C,Ue=u&(E|O),Ke=u&W,lt=Ae?n:Cl(s);function Ge(){for(var mt=arguments.length,_t=J(mt),mr=mt;mr--;)_t[mr]=arguments[mr];if(Ue)var Wn=Ri(Ge),gr=T5(_t,Wn);if(g&&(_t=uy(_t,g,_,Ue)),A&&(_t=cy(_t,A,N,Ue)),mt-=gr,Ue&&mt<se){var nn=es(_t,Wn);return yy(s,u,ku,Ge.placeholder,f,_t,nn,D,K,se-mt)}var Zr=pe?f:this,Do=Ae?Zr[s]:s;return mt=_t.length,D?_t=LO(_t,D):Ke&&mt>1&&_t.reverse(),ie&&K<mt&&(_t.length=K),this&&this!==En&&this instanceof Ge&&(Do=lt||Cl(Do)),Do.apply(Zr,_t)}return Ge}function gy(s,u){return function(f,g){return V3(f,s,u(g),{})}}function Iu(s,u){return function(f,g){var _;if(f===n&&g===n)return u;if(f!==n&&(_=f),g!==n){if(_===n)return g;typeof f=="string"||typeof g=="string"?(f=pr(f),g=pr(g)):(f=ty(f),g=ty(g)),_=s(f,g)}return _}}function rp(s){return Lo(function(u){return u=zt(u,fr(qe())),ct(function(f){var g=this;return s(u,function(_){return dr(_,g,f)})})})}function Pu(s,u){u=u===n?" ":pr(u);var f=u.length;if(f<2)return f?Yf(u,s):u;var g=Yf(u,yu(s/xi(u)));return $i(u)?ss(Xr(g),0,s).join(""):g.slice(0,s)}function mO(s,u,f,g){var _=u&T,A=Cl(s);function N(){for(var D=-1,K=arguments.length,se=-1,ie=g.length,pe=J(ie+K),Ae=this&&this!==En&&this instanceof N?A:s;++se<ie;)pe[se]=g[se];for(;K--;)pe[se++]=arguments[++D];return dr(Ae,_?f:this,pe)}return N}function vy(s){return function(u,f,g){return g&&typeof g!="number"&&zn(u,f,g)&&(f=g=n),u=Mo(u),f===n?(f=u,u=0):f=Mo(f),g=g===n?u<f?1:-1:Mo(g),eO(u,f,g,s)}}function Ru(s){return function(u,f){return typeof u=="string"&&typeof f=="string"||(u=Rr(u),f=Rr(f)),s(u,f)}}function yy(s,u,f,g,_,A,N,D,K,se){var ie=u&E,pe=ie?N:n,Ae=ie?n:N,Ue=ie?A:n,Ke=ie?n:A;u|=ie?$:P,u&=~(ie?P:$),u&w||(u&=~(T|C));var lt=[s,u,_,Ue,pe,Ke,Ae,D,K,se],Ge=f.apply(n,lt);return dp(s)&&ky(Ge,lt),Ge.placeholder=g,Iy(Ge,s,u)}function op(s){var u=un[s];return function(f,g){if(f=Rr(f),g=g==null?0:Rn(it(g),292),g&&I0(f)){var _=(At(f)+"e").split("e"),A=u(_[0]+"e"+(+_[1]+g));return _=(At(A)+"e").split("e"),+(_[0]+"e"+(+_[1]-g))}return u(f)}}var gO=Oi&&1/au(new Oi([,-0]))[1]==ke?function(s){return new Oi(s)}:Tp;function _y(s){return function(u){var f=Ln(u);return f==Z?Lf(u):f==ae?R5(u):x5(u,s(u))}}function Ro(s,u,f,g,_,A,N,D){var K=u&C;if(!K&&typeof s!="function")throw new Or(l);var se=g?g.length:0;if(se||(u&=~($|P),g=_=n),N=N===n?N:cn(it(N),0),D=D===n?D:it(D),se-=_?_.length:0,u&P){var ie=g,pe=_;g=_=n}var Ae=K?n:lp(s),Ue=[s,u,f,g,_,ie,pe,A,N,D];if(Ae&&IO(Ue,Ae),s=Ue[0],u=Ue[1],f=Ue[2],g=Ue[3],_=Ue[4],D=Ue[9]=Ue[9]===n?K?0:s.length:cn(Ue[9]-se,0),!D&&u&(E|O)&&(u&=~(E|O)),!u||u==T)var Ke=pO(s,u,f);else u==E||u==O?Ke=hO(s,u,D):(u==$||u==(T|$))&&!_.length?Ke=mO(s,u,f,g):Ke=ku.apply(n,Ue);var lt=Ae?Q0:ky;return Iy(lt(Ke,Ue),s,u)}function by(s,u,f,g){return s===n||Jr(s,Ci[f])&&!It.call(g,f)?u:s}function wy(s,u,f,g,_,A){return Gt(s)&&Gt(u)&&(A.set(u,s),Tu(s,u,n,wy,A),A.delete(u)),s}function vO(s){return kl(s)?n:s}function Sy(s,u,f,g,_,A){var N=f&b,D=s.length,K=u.length;if(D!=K&&!(N&&K>D))return!1;var se=A.get(s),ie=A.get(u);if(se&&ie)return se==u&&ie==s;var pe=-1,Ae=!0,Ue=f&S?new Ls:n;for(A.set(s,u),A.set(u,s);++pe<D;){var Ke=s[pe],lt=u[pe];if(g)var Ge=N?g(lt,Ke,pe,u,s,A):g(Ke,lt,pe,s,u,A);if(Ge!==n){if(Ge)continue;Ae=!1;break}if(Ue){if(!Of(u,function(mt,_t){if(!gl(Ue,_t)&&(Ke===mt||_(Ke,mt,f,g,A)))return Ue.push(_t)})){Ae=!1;break}}else if(!(Ke===lt||_(Ke,lt,f,g,A))){Ae=!1;break}}return A.delete(s),A.delete(u),Ae}function yO(s,u,f,g,_,A,N){switch(f){case ft:if(s.byteLength!=u.byteLength||s.byteOffset!=u.byteOffset)return!1;s=s.buffer,u=u.buffer;case yt:return!(s.byteLength!=u.byteLength||!A(new hu(s),new hu(u)));case Ve:case rt:case ue:return Jr(+s,+u);case an:return s.name==u.name&&s.message==u.message;case Se:case Fe:return s==u+"";case Z:var D=Lf;case ae:var K=g&b;if(D||(D=au),s.size!=u.size&&!K)return!1;var se=N.get(s);if(se)return se==u;g|=S,N.set(s,u);var ie=Sy(D(s),D(u),g,_,A,N);return N.delete(s),ie;case Pe:if(wl)return wl.call(s)==wl.call(u)}return!1}function _O(s,u,f,g,_,A){var N=f&b,D=sp(s),K=D.length,se=sp(u),ie=se.length;if(K!=ie&&!N)return!1;for(var pe=K;pe--;){var Ae=D[pe];if(!(N?Ae in u:It.call(u,Ae)))return!1}var Ue=A.get(s),Ke=A.get(u);if(Ue&&Ke)return Ue==u&&Ke==s;var lt=!0;A.set(s,u),A.set(u,s);for(var Ge=N;++pe<K;){Ae=D[pe];var mt=s[Ae],_t=u[Ae];if(g)var mr=N?g(_t,mt,Ae,u,s,A):g(mt,_t,Ae,s,u,A);if(!(mr===n?mt===_t||_(mt,_t,f,g,A):mr)){lt=!1;break}Ge||(Ge=Ae=="constructor")}if(lt&&!Ge){var Wn=s.constructor,gr=u.constructor;Wn!=gr&&"constructor"in s&&"constructor"in u&&!(typeof Wn=="function"&&Wn instanceof Wn&&typeof gr=="function"&&gr instanceof gr)&&(lt=!1)}return A.delete(s),A.delete(u),lt}function Lo(s){return pp(Oy(s,n,My),s+"")}function sp(s){return V0(s,mn,up)}function ip(s){return V0(s,Zn,Ey)}var lp=bu?function(s){return bu.get(s)}:Tp;function Lu(s){for(var u=s.name+"",f=Ai[u],g=It.call(Ai,u)?f.length:0;g--;){var _=f[g],A=_.func;if(A==null||A==s)return _.name}return u}function Ri(s){var u=It.call(x,"placeholder")?x:s;return u.placeholder}function qe(){var s=x.iteratee||$p;return s=s===$p?W0:s,arguments.length?s(arguments[0],arguments[1]):s}function Fu(s,u){var f=s.__data__;return CO(u)?f[typeof u=="string"?"string":"hash"]:f.map}function ap(s){for(var u=mn(s),f=u.length;f--;){var g=u[f],_=s[g];u[f]=[g,_,Ty(_)]}return u}function Ms(s,u){var f=k5(s,u);return z0(f)?f:n}function bO(s){var u=It.call(s,Ps),f=s[Ps];try{s[Ps]=n;var g=!0}catch{}var _=fu.call(s);return g&&(u?s[Ps]=f:delete s[Ps]),_}var up=Nf?function(s){return s==null?[]:(s=Rt(s),Zo(Nf(s),function(u){return A0.call(s,u)}))}:Cp,Ey=Nf?function(s){for(var u=[];s;)Qo(u,up(s)),s=mu(s);return u}:Cp,Ln=Hn;(Mf&&Ln(new Mf(new ArrayBuffer(1)))!=ft||yl&&Ln(new yl)!=Z||Df&&Ln(Df.resolve())!=Oe||Oi&&Ln(new Oi)!=ae||_l&&Ln(new _l)!=ze)&&(Ln=function(s){var u=Hn(s),f=u==ye?s.constructor:n,g=f?Ds(f):"";if(g)switch(g){case n3:return ft;case r3:return Z;case o3:return Oe;case s3:return ae;case i3:return ze}return u});function wO(s,u,f){for(var g=-1,_=f.length;++g<_;){var A=f[g],N=A.size;switch(A.type){case"drop":s+=N;break;case"dropRight":u-=N;break;case"take":u=Rn(u,s+N);break;case"takeRight":s=cn(s,u-N);break}}return{start:s,end:u}}function SO(s){var u=s.match(OC);return u?u[1].split(AC):[]}function $y(s,u,f){u=os(u,s);for(var g=-1,_=u.length,A=!1;++g<_;){var N=_o(u[g]);if(!(A=s!=null&&f(s,N)))break;s=s[N]}return A||++g!=_?A:(_=s==null?0:s.length,!!_&&Vu(_)&&Fo(N,_)&&(tt(s)||Us(s)))}function EO(s){var u=s.length,f=new s.constructor(u);return u&&typeof s[0]=="string"&&It.call(s,"index")&&(f.index=s.index,f.input=s.input),f}function xy(s){return typeof s.constructor=="function"&&!Ol(s)?ki(mu(s)):{}}function $O(s,u,f){var g=s.constructor;switch(u){case yt:return np(s);case Ve:case rt:return new g(+s);case ft:return lO(s,f);case Ht:case Vn:case go:case _i:case Ao:case bi:case Sn:case Xn:case wi:return ly(s,f);case Z:return new g;case ue:case Fe:return new g(s);case Se:return aO(s);case ae:return new g;case Pe:return uO(s)}}function xO(s,u){var f=u.length;if(!f)return s;var g=f-1;return u[g]=(f>1?"& ":"")+u[g],u=u.join(f>2?", ":" "),s.replace(CC,`{ 28 28 /* [wrapped with `+u+`] */ 29 `)}function TO(s){return tt(s)||Us(s)||!!( I0&&s&&s[I0])}function Lo(s,u){var f=typeof s;return u=u??Ie,!!u&&(f=="number"||f!="symbol"&&DC.test(s))&&s>-1&&s%1==0&&s<u}function zn(s,u,f){if(!Gt(f))return!1;var g=typeof u;return(g=="number"?Yn(f)&&Lo(u,f.length):g=="string"&&u in f)?Yr(f[u],s):!1}function up(s,u){if(tt(s))return!1;var f=typeof s;return f=="number"||f=="symbol"||f=="boolean"||s==null||pr(s)?!0:EC.test(s)||!SC.test(s)||u!=null&&s in Rt(u)}function CO(s){var u=typeof s;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?s!=="__proto__":s===null}function cp(s){var u=Lu(s),f=x[u];if(typeof f!="function"||!(u in vt.prototype))return!1;if(s===f)return!0;var g=ip(f);return!!g&&s===g[0]}function OO(s){return!!C0&&C0 in s}var AO=cu?Fo:Cp;function Ol(s){var u=s&&s.constructor,f=typeof u=="function"&&u.prototype||Ci;return s===f}function Cy(s){return s===s&&!Gt(s)}function Oy(s,u){return function(f){return f==null?!1:f[s]===u&&(u!==n||s in Rt(f))}}function kO(s){var u=Bu(s,function(g){return f.size===d&&f.clear(),g}),f=u.cache;return u}function IO(s,u){var f=s[1],g=u[1],_=f|g,A=_<(T|C|R),N=g==R&&f==E||g==R&&f==k&&s[7].length<=u[8]||g==(R|k)&&u[7].length<=u[8]&&f==E;if(!(A||N))return s;g&T&&(s[2]=u[2],_|=f&T?0:w);var D=u[3];if(D){var K=s[3];s[3]=K?cy(K,D,u[4]):D,s[4]=K?es(s[3],p):u[4]}return D=u[5],D&&(K=s[5],s[5]=K?dy(K,D,u[6]):D,s[6]=K?es(s[5],p):u[6]),D=u[7],D&&(s[7]=D),g&R&&(s[8]=s[8]==null?u[8]:Rn(s[8],u[8])),s[9]==null&&(s[9]=u[9]),s[0]=u[0],s[1]=_,s}function PO(s){var u=[];if(s!=null)for(var f in Rt(s))u.push(f);return u}function RO(s){return fu.call(s)}function Ay(s,u,f){return u=cn(u===n?s.length-1:u,0),function(){for(var g=arguments,_=-1,A=cn(g.length-u,0),N=J(A);++_<A;)N[_]=g[u+_];_=-1;for(var D=J(u+1);++_<u;)D[_]=g[_];return D[u]=f(N),cr(s,this,D)}}function ky(s,u){return u.length<2?s:Ns(s,kr(u,0,-1))}function LO(s,u){for(var f=s.length,g=Rn(u.length,f),_=Xn(s);g--;){var A=u[g];s[g]=Lo(A,f)?_[A]:n}return s}function dp(s,u){if(!(u==="constructor"&&typeof s[u]=="function")&&u!="__proto__")return s[u]}var Iy=Ry(ey),Al=X5||function(s,u){return En.setTimeout(s,u)},fp=Ry(rO);function Py(s,u,f){var g=u+"";return fp(s,xO(g,FO(SO(g),f)))}function Ry(s){var u=0,f=0;return function(){var g=Q5(),_=X-(g-f);if(f=g,_>0){if(++u>=G)return arguments[0]}else u=0;return s.apply(n,arguments)}}function Nu(s,u){var f=-1,g=s.length,_=g-1;for(u=u===n?g:u;++f<u;){var A=Gf(f,_),N=s[A];s[A]=s[f],s[f]=N}return s.length=u,s}var Ly=kO(function(s){var u=[];return s.charCodeAt(0)===46&&u.push(""),s.replace($C,function(f,g,_,A){u.push(_?A.replace(PC,"$1"):g||f)}),u});function yo(s){if(typeof s=="string"||pr(s))return s;var u=s+"";return u=="0"&&1/s==-ke?"-0":u}function Ds(s){if(s!=null){try{return du.call(s)}catch{}try{return s+""}catch{}}return""}function FO(s,u){return Tr(ce,function(f){var g="_."+f[0];u&f[1]&&!iu(s,g)&&s.push(g)}),s.sort()}function Fy(s){if(s instanceof vt)return s.clone();var u=new Or(s.__wrapped__,s.__chain__);return u.__actions__=Xn(s.__actions__),u.__index__=s.__index__,u.__values__=s.__values__,u}function NO(s,u,f){(f?zn(s,u,f):u===n)?u=1:u=cn(it(u),0);var g=s==null?0:s.length;if(!g||u<1)return[];for(var _=0,A=0,N=J(yu(g/u));_<g;)N[A++]=kr(s,_,_+=u);return N}function MO(s){for(var u=-1,f=s==null?0:s.length,g=0,_=[];++u<f;){var A=s[u];A&&(_[g++]=A)}return _}function DO(){var s=arguments.length;if(!s)return[];for(var u=J(s-1),f=arguments[0],g=s;g--;)u[g-1]=arguments[g];return Qo(tt(f)?Xn(f):[f],$n(u,1))}var UO=ct(function(s,u){return tn(s)?El(s,$n(u,1,tn,!0)):[]}),BO=ct(function(s,u){var f=Ir(u);return tn(f)&&(f=n),tn(s)?El(s,$n(u,1,tn,!0),qe(f,2)):[]}),jO=ct(function(s,u){var f=Ir(u);return tn(f)&&(f=n),tn(s)?El(s,$n(u,1,tn,!0),n,f):[]});function VO(s,u,f){var g=s==null?0:s.length;return g?(u=f||u===n?1:it(u),kr(s,u<0?0:u,g)):[]}function HO(s,u,f){var g=s==null?0:s.length;return g?(u=f||u===n?1:it(u),u=g-u,kr(s,0,u<0?0:u)):[]}function zO(s,u){return s&&s.length?Ou(s,qe(u,3),!0,!0):[]}function WO(s,u){return s&&s.length?Ou(s,qe(u,3),!0):[]}function qO(s,u,f,g){var _=s==null?0:s.length;return _?(f&&typeof f!="number"&&zn(s,u,f)&&(f=0,g=_),D3(s,u,f,g)):[]}function Ny(s,u,f){var g=s==null?0:s.length;if(!g)return-1;var _=f==null?0:it(f);return _<0&&(_=cn(g+_,0)),lu(s,qe(u,3),_)}function My(s,u,f){var g=s==null?0:s.length;if(!g)return-1;var _=g-1;return f!==n&&(_=it(f),_=f<0?cn(g+_,0):Rn(_,g-1)),lu(s,qe(u,3),_,!0)}function Dy(s){var u=s==null?0:s.length;return u?$n(s,1):[]}function KO(s){var u=s==null?0:s.length;return u?$n(s,ke):[]}function GO(s,u){var f=s==null?0:s.length;return f?(u=u===n?1:it(u),$n(s,u)):[]}function XO(s){for(var u=-1,f=s==null?0:s.length,g={};++u<f;){var _=s[u];g[_[0]]=_[1]}return g}function Uy(s){return s&&s.length?s[0]:n}function YO(s,u,f){var g=s==null?0:s.length;if(!g)return-1;var _=f==null?0:it(f);return _<0&&(_=cn(g+_,0)),Ei(s,u,_)}function JO(s){var u=s==null?0:s.length;return u?kr(s,0,-1):[]}var ZO=ct(function(s){var u=zt(s,Qf);return u.length&&u[0]===s[0]?Hf(u):[]}),QO=ct(function(s){var u=Ir(s),f=zt(s,Qf);return u===Ir(f)?u=n:f.pop(),f.length&&f[0]===s[0]?Hf(f,qe(u,2)):[]}),e4=ct(function(s){var u=Ir(s),f=zt(s,Qf);return u=typeof u=="function"?u:n,u&&f.pop(),f.length&&f[0]===s[0]?Hf(f,n,u):[]});function t4(s,u){return s==null?"":J5.call(s,u)}function Ir(s){var u=s==null?0:s.length;return u?s[u-1]:n}function n4(s,u,f){var g=s==null?0:s.length;if(!g)return-1;var _=g;return f!==n&&(_=it(f),_=_<0?cn(g+_,0):Rn(_,g-1)),u===u?F5(s,u,_):lu(s,_0,_,!0)}function r4(s,u){return s&&s.length?Y0(s,it(u)):n}var o4=ct(By);function By(s,u){return s&&s.length&&u&&u.length?Kf(s,u):s}function s4(s,u,f){return s&&s.length&&u&&u.length?Kf(s,u,qe(f,2)):s}function i4(s,u,f){return s&&s.length&&u&&u.length?Kf(s,u,n,f):s}var l4=Ro(function(s,u){var f=s==null?0:s.length,g=Uf(s,u);return Q0(s,zt(u,function(_){return Lo(_,f)?+_:_}).sort(uy)),g});function a4(s,u){var f=[];if(!(s&&s.length))return f;var g=-1,_=[],A=s.length;for(u=qe(u,3);++g<A;){var N=s[g];u(N,g,s)&&(f.push(N),_.push(g))}return Q0(s,_),f}function pp(s){return s==null?s:t3.call(s)}function u4(s,u,f){var g=s==null?0:s.length;return g?(f&&typeof f!="number"&&zn(s,u,f)?(u=0,f=g):(u=u==null?0:it(u),f=f===n?g:it(f)),kr(s,u,f)):[]}function c4(s,u){return Cu(s,u)}function d4(s,u,f){return Yf(s,u,qe(f,2))}function f4(s,u){var f=s==null?0:s.length;if(f){var g=Cu(s,u);if(g<f&&Yr(s[g],u))return g}return-1}function p4(s,u){return Cu(s,u,!0)}function h4(s,u,f){return Yf(s,u,qe(f,2),!0)}function m4(s,u){var f=s==null?0:s.length;if(f){var g=Cu(s,u,!0)-1;if(Yr(s[g],u))return g}return-1}function g4(s){return s&&s.length?ty(s):[]}function v4(s,u){return s&&s.length?ty(s,qe(u,2)):[]}function y4(s){var u=s==null?0:s.length;return u?kr(s,1,u):[]}function _4(s,u,f){return s&&s.length?(u=f||u===n?1:it(u),kr(s,0,u<0?0:u)):[]}function b4(s,u,f){var g=s==null?0:s.length;return g?(u=f||u===n?1:it(u),u=g-u,kr(s,u<0?0:u,g)):[]}function w4(s,u){return s&&s.length?Ou(s,qe(u,3),!1,!0):[]}function S4(s,u){return s&&s.length?Ou(s,qe(u,3)):[]}var E4=ct(function(s){return rs($n(s,1,tn,!0))}),$4=ct(function(s){var u=Ir(s);return tn(u)&&(u=n),rs($n(s,1,tn,!0),qe(u,2))}),x4=ct(function(s){var u=Ir(s);return u=typeof u=="function"?u:n,rs($n(s,1,tn,!0),n,u)});function T4(s){return s&&s.length?rs(s):[]}function C4(s,u){return s&&s.length?rs(s,qe(u,2)):[]}function O4(s,u){return u=typeof u=="function"?u:n,s&&s.length?rs(s,n,u):[]}function hp(s){if(!(s&&s.length))return[];var u=0;return s=Zo(s,function(f){if(tn(f))return u=cn(f.length,u),!0}),If(u,function(f){return zt(s,Of(f))})}function jy(s,u){if(!(s&&s.length))return[];var f=hp(s);return u==null?f:zt(f,function(g){return cr(u,n,g)})}var A4=ct(function(s,u){return tn(s)?El(s,u):[]}),k4=ct(function(s){return Zf(Zo(s,tn))}),I4=ct(function(s){var u=Ir(s);return tn(u)&&(u=n),Zf(Zo(s,tn),qe(u,2))}),P4=ct(function(s){var u=Ir(s);return u=typeof u=="function"?u:n,Zf(Zo(s,tn),n,u)}),R4=ct(hp);function L4(s,u){return sy(s||[],u||[],Sl)}function F4(s,u){return sy(s||[],u||[],Tl)}var N4=ct(function(s){var u=s.length,f=u>1?s[u-1]:n;return f=typeof f=="function"?(s.pop(),f):n,jy(s,f)});function Vy(s){var u=x(s);return u.__chain__=!0,u}function M4(s,u){return u(s),s}function Mu(s,u){return u(s)}var D4=Ro(function(s){var u=s.length,f=u?s[0]:0,g=this.__wrapped__,_=function(A){return Uf(A,s)};return u>1||this.__actions__.length||!(g instanceof vt)||!Lo(f)?this.thru(_):(g=g.slice(f,+f+(u?1:0)),g.__actions__.push({func:Mu,args:[_],thisArg:n}),new Or(g,this.__chain__).thru(function(A){return u&&!A.length&&A.push(n),A}))});function U4(){return Vy(this)}function B4(){return new Or(this.value(),this.__chain__)}function j4(){this.__values__===n&&(this.__values__=n1(this.value()));var s=this.__index__>=this.__values__.length,u=s?n:this.__values__[this.__index__++];return{done:s,value:u}}function V4(){return this}function H4(s){for(var u,f=this;f instanceof Su;){var g=Fy(f);g.__index__=0,g.__values__=n,u?_.__wrapped__=g:u=g;var _=g;f=f.__wrapped__}return _.__wrapped__=s,u}function z4(){var s=this.__wrapped__;if(s instanceof vt){var u=s;return this.__actions__.length&&(u=new vt(this)),u=u.reverse(),u.__actions__.push({func:Mu,args:[pp],thisArg:n}),new Or(u,this.__chain__)}return this.thru(pp)}function W4(){return oy(this.__wrapped__,this.__actions__)}var q4=Au(function(s,u,f){It.call(s,f)?++s[f]:Io(s,f,1)});function K4(s,u,f){var g=tt(s)?v0:M3;return f&&zn(s,u,f)&&(u=n),g(s,qe(u,3))}function G4(s,u){var f=tt(s)?Zo:j0;return f(s,qe(u,3))}var X4=my(Ny),Y4=my(My);function J4(s,u){return $n(Du(s,u),1)}function Z4(s,u){return $n(Du(s,u),ke)}function Q4(s,u,f){return f=f===n?1:it(f),$n(Du(s,u),f)}function Hy(s,u){var f=tt(s)?Tr:ns;return f(s,qe(u,3))}function zy(s,u){var f=tt(s)?y5:B0;return f(s,qe(u,3))}var eA=Au(function(s,u,f){It.call(s,f)?s[f].push(u):Io(s,f,[u])});function tA(s,u,f,g){s=Yn(s)?s:Fi(s),f=f&&!g?it(f):0;var _=s.length;return f<0&&(f=cn(_+f,0)),Hu(s)?f<=_&&s.indexOf(u,f)>-1:!!_&&Ei(s,u,f)>-1}var nA=ct(function(s,u,f){var g=-1,_=typeof u=="function",A=Yn(s)?J(s.length):[];return ns(s,function(N){A[++g]=_?cr(u,N,f):$l(N,u,f)}),A}),rA=Au(function(s,u,f){Io(s,f,u)});function Du(s,u){var f=tt(s)?zt:K0;return f(s,qe(u,3))}function oA(s,u,f,g){return s==null?[]:(tt(u)||(u=u==null?[]:[u]),f=g?n:f,tt(f)||(f=f==null?[]:[f]),J0(s,u,f))}var sA=Au(function(s,u,f){s[f?0:1].push(u)},function(){return[[],[]]});function iA(s,u,f){var g=tt(s)?Tf:w0,_=arguments.length<3;return g(s,qe(u,4),f,_,ns)}function lA(s,u,f){var g=tt(s)?_5:w0,_=arguments.length<3;return g(s,qe(u,4),f,_,B0)}function aA(s,u){var f=tt(s)?Zo:j0;return f(s,ju(qe(u,3)))}function uA(s){var u=tt(s)?N0:tO;return u(s)}function cA(s,u,f){(f?zn(s,u,f):u===n)?u=1:u=it(u);var g=tt(s)?P3:nO;return g(s,u)}function dA(s){var u=tt(s)?R3:oO;return u(s)}function fA(s){if(s==null)return 0;if(Yn(s))return Hu(s)?xi(s):s.length;var u=Ln(s);return u==Z||u==ae?s.size:Wf(s).length}function pA(s,u,f){var g=tt(s)?Cf:sO;return f&&zn(s,u,f)&&(u=n),g(s,qe(u,3))}var hA=ct(function(s,u){if(s==null)return[];var f=u.length;return f>1&&zn(s,u[0],u[1])?u=[]:f>2&&zn(u[0],u[1],u[2])&&(u=[u[0]]),J0(s,$n(u,1),[])}),Uu=G5||function(){return En.Date.now()};function mA(s,u){if(typeof u!="function")throw new Cr(l);return s=it(s),function(){if(--s<1)return u.apply(this,arguments)}}function Wy(s,u,f){return u=f?n:u,u=s&&u==null?s.length:u,Po(s,R,n,n,n,n,u)}function qy(s,u){var f;if(typeof u!="function")throw new Cr(l);return s=it(s),function(){return--s>0&&(f=u.apply(this,arguments)),s<=1&&(u=n),f}}var mp=ct(function(s,u,f){var g=T;if(f.length){var _=es(f,Ri(mp));g|=$}return Po(s,g,u,f,_)}),Ky=ct(function(s,u,f){var g=T|C;if(f.length){var _=es(f,Ri(Ky));g|=$}return Po(u,g,s,f,_)});function Gy(s,u,f){u=f?n:u;var g=Po(s,E,n,n,n,n,n,u);return g.placeholder=Gy.placeholder,g}function Xy(s,u,f){u=f?n:u;var g=Po(s,O,n,n,n,n,n,u);return g.placeholder=Xy.placeholder,g}function Yy(s,u,f){var g,_,A,N,D,K,se=0,ie=!1,pe=!1,Ae=!0;if(typeof s!="function")throw new Cr(l);u=Pr(u)||0,Gt(f)&&(ie=!!f.leading,pe="maxWait"in f,A=pe?cn(Pr(f.maxWait)||0,u):A,Ae="trailing"in f?!!f.trailing:Ae);function Ue(nn){var Jr=g,Mo=_;return g=_=n,se=nn,N=s.apply(Mo,Jr),N}function Ke(nn){return se=nn,D=Al(mt,u),ie?Ue(nn):N}function lt(nn){var Jr=nn-K,Mo=nn-se,m1=u-Jr;return pe?Rn(m1,A-Mo):m1}function Ge(nn){var Jr=nn-K,Mo=nn-se;return K===n||Jr>=u||Jr<0||pe&&Mo>=A}function mt(){var nn=Uu();if(Ge(nn))return _t(nn);D=Al(mt,lt(nn))}function _t(nn){return D=n,Ae&&g?Ue(nn):(g=_=n,N)}function hr(){D!==n&&iy(D),se=0,g=K=_=D=n}function Wn(){return D===n?N:_t(Uu())}function mr(){var nn=Uu(),Jr=Ge(nn);if(g=arguments,_=this,K=nn,Jr){if(D===n)return Ke(K);if(pe)return iy(D),D=Al(mt,u),Ue(K)}return D===n&&(D=Al(mt,u)),N}return mr.cancel=hr,mr.flush=Wn,mr}var gA=ct(function(s,u){return U0(s,1,u)}),vA=ct(function(s,u,f){return U0(s,Pr(u)||0,f)});function yA(s){return Po(s,W)}function Bu(s,u){if(typeof s!="function"||u!=null&&typeof u!="function")throw new Cr(l);var f=function(){var g=arguments,_=u?u.apply(this,g):g[0],A=f.cache;if(A.has(_))return A.get(_);var N=s.apply(this,g);return f.cache=A.set(_,N)||A,N};return f.cache=new(Bu.Cache||ko),f}Bu.Cache=ko;function ju(s){if(typeof s!="function")throw new Cr(l);return function(){var u=arguments;switch(u.length){case 0:return!s.call(this);case 1:return!s.call(this,u[0]);case 2:return!s.call(this,u[0],u[1]);case 3:return!s.call(this,u[0],u[1],u[2])}return!s.apply(this,u)}}function _A(s){return qy(2,s)}var bA=iO(function(s,u){u=u.length==1&&tt(u[0])?zt(u[0],dr(qe())):zt($n(u,1),dr(qe()));var f=u.length;return ct(function(g){for(var _=-1,A=Rn(g.length,f);++_<A;)g[_]=u[_].call(this,g[_]);return cr(s,this,g)})}),gp=ct(function(s,u){var f=es(u,Ri(gp));return Po(s,$,n,u,f)}),Jy=ct(function(s,u){var f=es(u,Ri(Jy));return Po(s,P,n,u,f)}),wA=Ro(function(s,u){return Po(s,k,n,n,n,u)});function SA(s,u){if(typeof s!="function")throw new Cr(l);return u=u===n?u:it(u),ct(s,u)}function EA(s,u){if(typeof s!="function")throw new Cr(l);return u=u==null?0:cn(it(u),0),ct(function(f){var g=f[u],_=ss(f,0,u);return g&&Qo(_,g),cr(s,this,_)})}function $A(s,u,f){var g=!0,_=!0;if(typeof s!="function")throw new Cr(l);return Gt(f)&&(g="leading"in f?!!f.leading:g,_="trailing"in f?!!f.trailing:_),Yy(s,u,{leading:g,maxWait:u,trailing:_})}function xA(s){return Wy(s,1)}function TA(s,u){return gp(ep(u),s)}function CA(){if(!arguments.length)return[];var s=arguments[0];return tt(s)?s:[s]}function OA(s){return Ar(s,y)}function AA(s,u){return u=typeof u=="function"?u:n,Ar(s,y,u)}function kA(s){return Ar(s,h|y)}function IA(s,u){return u=typeof u=="function"?u:n,Ar(s,h|y,u)}function PA(s,u){return u==null||D0(s,u,mn(u))}function Yr(s,u){return s===u||s!==s&&u!==u}var RA=Ru(Vf),LA=Ru(function(s,u){return s>=u}),Us=z0(function(){return arguments}())?z0:function(s){return Yt(s)&&It.call(s,"callee")&&!k0.call(s,"callee")},tt=J.isArray,FA=d0?dr(d0):H3;function Yn(s){return s!=null&&Vu(s.length)&&!Fo(s)}function tn(s){return Yt(s)&&Yn(s)}function NA(s){return s===!0||s===!1||Yt(s)&&Hn(s)==Ve}var is=Y5||Cp,MA=f0?dr(f0):z3;function DA(s){return Yt(s)&&s.nodeType===1&&!kl(s)}function UA(s){if(s==null)return!0;if(Yn(s)&&(tt(s)||typeof s=="string"||typeof s.splice=="function"||is(s)||Li(s)||Us(s)))return!s.length;var u=Ln(s);if(u==Z||u==ae)return!s.size;if(Ol(s))return!Wf(s).length;for(var f in s)if(It.call(s,f))return!1;return!0}function BA(s,u){return xl(s,u)}function jA(s,u,f){f=typeof f=="function"?f:n;var g=f?f(s,u):n;return g===n?xl(s,u,n,f):!!g}function vp(s){if(!Yt(s))return!1;var u=Hn(s);return u==an||u==wn||typeof s.message=="string"&&typeof s.name=="string"&&!kl(s)}function VA(s){return typeof s=="number"&&P0(s)}function Fo(s){if(!Gt(s))return!1;var u=Hn(s);return u==M||u==V||u==We||u==we}function Zy(s){return typeof s=="number"&&s==it(s)}function Vu(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=Ie}function Gt(s){var u=typeof s;return s!=null&&(u=="object"||u=="function")}function Yt(s){return s!=null&&typeof s=="object"}var Qy=p0?dr(p0):q3;function HA(s,u){return s===u||zf(s,u,lp(u))}function zA(s,u,f){return f=typeof f=="function"?f:n,zf(s,u,lp(u),f)}function WA(s){return e1(s)&&s!=+s}function qA(s){if(AO(s))throw new et(i);return W0(s)}function KA(s){return s===null}function GA(s){return s==null}function e1(s){return typeof s=="number"||Yt(s)&&Hn(s)==ue}function kl(s){if(!Yt(s)||Hn(s)!=ye)return!1;var u=mu(s);if(u===null)return!0;var f=It.call(u,"constructor")&&u.constructor;return typeof f=="function"&&f instanceof f&&du.call(f)==z5}var yp=h0?dr(h0):K3;function XA(s){return Zy(s)&&s>=-Ie&&s<=Ie}var t1=m0?dr(m0):G3;function Hu(s){return typeof s=="string"||!tt(s)&&Yt(s)&&Hn(s)==Fe}function pr(s){return typeof s=="symbol"||Yt(s)&&Hn(s)==Pe}var Li=g0?dr(g0):X3;function YA(s){return s===n}function JA(s){return Yt(s)&&Ln(s)==ze}function ZA(s){return Yt(s)&&Hn(s)==st}var QA=Ru(qf),ek=Ru(function(s,u){return s<=u});function n1(s){if(!s)return[];if(Yn(s))return Hu(s)?Gr(s):Xn(s);if(vl&&s[vl])return P5(s[vl]());var u=Ln(s),f=u==Z?Rf:u==ae?au:Fi;return f(s)}function No(s){if(!s)return s===0?s:0;if(s=Pr(s),s===ke||s===-ke){var u=s<0?-1:1;return u*Qe}return s===s?s:0}function it(s){var u=No(s),f=u%1;return u===u?f?u-f:u:0}function r1(s){return s?Fs(it(s),0,De):0}function Pr(s){if(typeof s=="number")return s;if(pr(s))return ht;if(Gt(s)){var u=typeof s.valueOf=="function"?s.valueOf():s;s=Gt(u)?u+"":u}if(typeof s!="string")return s===0?s:+s;s=S0(s);var f=FC.test(s);return f||MC.test(s)?m5(s.slice(2),f?2:8):LC.test(s)?ht:+s}function o1(s){return vo(s,Jn(s))}function tk(s){return s?Fs(it(s),-Ie,Ie):s===0?s:0}function At(s){return s==null?"":fr(s)}var nk=Ii(function(s,u){if(Ol(u)||Yn(u)){vo(u,mn(u),s);return}for(var f in u)It.call(u,f)&&Sl(s,f,u[f])}),s1=Ii(function(s,u){vo(u,Jn(u),s)}),zu=Ii(function(s,u,f,g){vo(u,Jn(u),s,g)}),rk=Ii(function(s,u,f,g){vo(u,mn(u),s,g)}),ok=Ro(Uf);function sk(s,u){var f=ki(s);return u==null?f:M0(f,u)}var ik=ct(function(s,u){s=Rt(s);var f=-1,g=u.length,_=g>2?u[2]:n;for(_&&zn(u[0],u[1],_)&&(g=1);++f<g;)for(var A=u[f],N=Jn(A),D=-1,K=N.length;++D<K;){var se=N[D],ie=s[se];(ie===n||Yr(ie,Ci[se])&&!It.call(s,se))&&(s[se]=A[se])}return s}),lk=ct(function(s){return s.push(n,Sy),cr(i1,n,s)});function ak(s,u){return y0(s,qe(u,3),go)}function uk(s,u){return y0(s,qe(u,3),jf)}function ck(s,u){return s==null?s:Bf(s,qe(u,3),Jn)}function dk(s,u){return s==null?s:V0(s,qe(u,3),Jn)}function fk(s,u){return s&&go(s,qe(u,3))}function pk(s,u){return s&&jf(s,qe(u,3))}function hk(s){return s==null?[]:xu(s,mn(s))}function mk(s){return s==null?[]:xu(s,Jn(s))}function _p(s,u,f){var g=s==null?n:Ns(s,u);return g===n?f:g}function gk(s,u){return s!=null&&xy(s,u,U3)}function bp(s,u){return s!=null&&xy(s,u,B3)}var vk=vy(function(s,u,f){u!=null&&typeof u.toString!="function"&&(u=fu.call(u)),s[u]=f},Sp(Zn)),yk=vy(function(s,u,f){u!=null&&typeof u.toString!="function"&&(u=fu.call(u)),It.call(s,u)?s[u].push(f):s[u]=[f]},qe),_k=ct($l);function mn(s){return Yn(s)?F0(s):Wf(s)}function Jn(s){return Yn(s)?F0(s,!0):Y3(s)}function bk(s,u){var f={};return u=qe(u,3),go(s,function(g,_,A){Io(f,u(g,_,A),g)}),f}function wk(s,u){var f={};return u=qe(u,3),go(s,function(g,_,A){Io(f,_,u(g,_,A))}),f}var Sk=Ii(function(s,u,f){Tu(s,u,f)}),i1=Ii(function(s,u,f,g){Tu(s,u,f,g)}),Ek=Ro(function(s,u){var f={};if(s==null)return f;var g=!1;u=zt(u,function(A){return A=os(A,s),g||(g=A.length>1),A}),vo(s,sp(s),f),g&&(f=Ar(f,h|v|y,vO));for(var _=u.length;_--;)Jf(f,u[_]);return f});function $k(s,u){return l1(s,ju(qe(u)))}var xk=Ro(function(s,u){return s==null?{}:Z3(s,u)});function l1(s,u){if(s==null)return{};var f=zt(sp(s),function(g){return[g]});return u=qe(u),Z0(s,f,function(g,_){return u(g,_[0])})}function Tk(s,u,f){u=os(u,s);var g=-1,_=u.length;for(_||(_=1,s=n);++g<_;){var A=s==null?n:s[yo(u[g])];A===n&&(g=_,A=f),s=Fo(A)?A.call(s):A}return s}function Ck(s,u,f){return s==null?s:Tl(s,u,f)}function Ok(s,u,f,g){return g=typeof g=="function"?g:n,s==null?s:Tl(s,u,f,g)}var a1=by(mn),u1=by(Jn);function Ak(s,u,f){var g=tt(s),_=g||is(s)||Li(s);if(u=qe(u,4),f==null){var A=s&&s.constructor;_?f=g?new A:[]:Gt(s)?f=Fo(A)?ki(mu(s)):{}:f={}}return(_?Tr:go)(s,function(N,D,K){return u(f,N,D,K)}),f}function kk(s,u){return s==null?!0:Jf(s,u)}function Ik(s,u,f){return s==null?s:ry(s,u,ep(f))}function Pk(s,u,f,g){return g=typeof g=="function"?g:n,s==null?s:ry(s,u,ep(f),g)}function Fi(s){return s==null?[]:Pf(s,mn(s))}function Rk(s){return s==null?[]:Pf(s,Jn(s))}function Lk(s,u,f){return f===n&&(f=u,u=n),f!==n&&(f=Pr(f),f=f===f?f:0),u!==n&&(u=Pr(u),u=u===u?u:0),Fs(Pr(s),u,f)}function Fk(s,u,f){return u=No(u),f===n?(f=u,u=0):f=No(f),s=Pr(s),j3(s,u,f)}function Nk(s,u,f){if(f&&typeof f!="boolean"&&zn(s,u,f)&&(u=f=n),f===n&&(typeof u=="boolean"?(f=u,u=n):typeof s=="boolean"&&(f=s,s=n)),s===n&&u===n?(s=0,u=1):(s=No(s),u===n?(u=s,s=0):u=No(u)),s>u){var g=s;s=u,u=g}if(f||s%1||u%1){var _=R0();return Rn(s+_*(u-s+h5("1e-"+((_+"").length-1))),u)}return Gf(s,u)}var Mk=Pi(function(s,u,f){return u=u.toLowerCase(),s+(f?c1(u):u)});function c1(s){return wp(At(s).toLowerCase())}function d1(s){return s=At(s),s&&s.replace(UC,C5).replace(o5,"")}function Dk(s,u,f){s=At(s),u=fr(u);var g=s.length;f=f===n?g:Fs(it(f),0,g);var _=f;return f-=u.length,f>=0&&s.slice(f,_)==u}function Uk(s){return s=At(s),s&&_C.test(s)?s.replace(Vv,O5):s}function Bk(s){return s=At(s),s&&xC.test(s)?s.replace(gf,"\\$&"):s}var jk=Pi(function(s,u,f){return s+(f?"-":"")+u.toLowerCase()}),Vk=Pi(function(s,u,f){return s+(f?" ":"")+u.toLowerCase()}),Hk=hy("toLowerCase");function zk(s,u,f){s=At(s),u=it(u);var g=u?xi(s):0;if(!u||g>=u)return s;var _=(u-g)/2;return Pu(_u(_),f)+s+Pu(yu(_),f)}function Wk(s,u,f){s=At(s),u=it(u);var g=u?xi(s):0;return u&&g<u?s+Pu(u-g,f):s}function qk(s,u,f){s=At(s),u=it(u);var g=u?xi(s):0;return u&&g<u?Pu(u-g,f)+s:s}function Kk(s,u,f){return f||u==null?u=0:u&&(u=+u),e3(At(s).replace(vf,""),u||0)}function Gk(s,u,f){return(f?zn(s,u,f):u===n)?u=1:u=it(u),Xf(At(s),u)}function Xk(){var s=arguments,u=At(s[0]);return s.length<3?u:u.replace(s[1],s[2])}var Yk=Pi(function(s,u,f){return s+(f?"_":"")+u.toLowerCase()});function Jk(s,u,f){return f&&typeof f!="number"&&zn(s,u,f)&&(u=f=n),f=f===n?De:f>>>0,f?(s=At(s),s&&(typeof u=="string"||u!=null&&!yp(u))&&(u=fr(u),!u&&$i(s))?ss(Gr(s),0,f):s.split(u,f)):[]}var Zk=Pi(function(s,u,f){return s+(f?" ":"")+wp(u)});function Qk(s,u,f){return s=At(s),f=f==null?0:Fs(it(f),0,s.length),u=fr(u),s.slice(f,f+u.length)==u}function eI(s,u,f){var g=x.templateSettings;f&&zn(s,u,f)&&(u=n),s=At(s),u=zu({},u,g,wy);var _=zu({},u.imports,g.imports,wy),A=mn(_),N=Pf(_,A),D,K,se=0,ie=u.interpolate||ru,pe="__p += '",Ae=Lf((u.escape||ru).source+"|"+ie.source+"|"+(ie===Hv?RC:ru).source+"|"+(u.evaluate||ru).source+"|$","g"),Ue="//# sourceURL="+(It.call(u,"sourceURL")?(u.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++u5+"]")+`30 `;s.replace(Ae,function(Ge,mt,_t, hr,Wn,mr){return _t||(_t=hr),pe+=s.slice(se,mr).replace(BC,A5),mt&&(D=!0,pe+=`' +29 `)}function TO(s){return tt(s)||Us(s)||!!(k0&&s&&s[k0])}function Fo(s,u){var f=typeof s;return u=u??Ie,!!u&&(f=="number"||f!="symbol"&&DC.test(s))&&s>-1&&s%1==0&&s<u}function zn(s,u,f){if(!Gt(f))return!1;var g=typeof u;return(g=="number"?Jn(f)&&Fo(u,f.length):g=="string"&&u in f)?Jr(f[u],s):!1}function cp(s,u){if(tt(s))return!1;var f=typeof s;return f=="number"||f=="symbol"||f=="boolean"||s==null||hr(s)?!0:EC.test(s)||!SC.test(s)||u!=null&&s in Rt(u)}function CO(s){var u=typeof s;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?s!=="__proto__":s===null}function dp(s){var u=Lu(s),f=x[u];if(typeof f!="function"||!(u in vt.prototype))return!1;if(s===f)return!0;var g=lp(f);return!!g&&s===g[0]}function OO(s){return!!T0&&T0 in s}var AO=cu?No:Op;function Ol(s){var u=s&&s.constructor,f=typeof u=="function"&&u.prototype||Ci;return s===f}function Ty(s){return s===s&&!Gt(s)}function Cy(s,u){return function(f){return f==null?!1:f[s]===u&&(u!==n||s in Rt(f))}}function kO(s){var u=Bu(s,function(g){return f.size===d&&f.clear(),g}),f=u.cache;return u}function IO(s,u){var f=s[1],g=u[1],_=f|g,A=_<(T|C|R),N=g==R&&f==E||g==R&&f==k&&s[7].length<=u[8]||g==(R|k)&&u[7].length<=u[8]&&f==E;if(!(A||N))return s;g&T&&(s[2]=u[2],_|=f&T?0:w);var D=u[3];if(D){var K=s[3];s[3]=K?uy(K,D,u[4]):D,s[4]=K?es(s[3],p):u[4]}return D=u[5],D&&(K=s[5],s[5]=K?cy(K,D,u[6]):D,s[6]=K?es(s[5],p):u[6]),D=u[7],D&&(s[7]=D),g&R&&(s[8]=s[8]==null?u[8]:Rn(s[8],u[8])),s[9]==null&&(s[9]=u[9]),s[0]=u[0],s[1]=_,s}function PO(s){var u=[];if(s!=null)for(var f in Rt(s))u.push(f);return u}function RO(s){return fu.call(s)}function Oy(s,u,f){return u=cn(u===n?s.length-1:u,0),function(){for(var g=arguments,_=-1,A=cn(g.length-u,0),N=J(A);++_<A;)N[_]=g[u+_];_=-1;for(var D=J(u+1);++_<u;)D[_]=g[_];return D[u]=f(N),dr(s,this,D)}}function Ay(s,u){return u.length<2?s:Ns(s,Ir(u,0,-1))}function LO(s,u){for(var f=s.length,g=Rn(u.length,f),_=Yn(s);g--;){var A=u[g];s[g]=Fo(A,f)?_[A]:n}return s}function fp(s,u){if(!(u==="constructor"&&typeof s[u]=="function")&&u!="__proto__")return s[u]}var ky=Py(Q0),Al=X5||function(s,u){return En.setTimeout(s,u)},pp=Py(rO);function Iy(s,u,f){var g=u+"";return pp(s,xO(g,FO(SO(g),f)))}function Py(s){var u=0,f=0;return function(){var g=Q5(),_=X-(g-f);if(f=g,_>0){if(++u>=G)return arguments[0]}else u=0;return s.apply(n,arguments)}}function Nu(s,u){var f=-1,g=s.length,_=g-1;for(u=u===n?g:u;++f<u;){var A=Xf(f,_),N=s[A];s[A]=s[f],s[f]=N}return s.length=u,s}var Ry=kO(function(s){var u=[];return s.charCodeAt(0)===46&&u.push(""),s.replace($C,function(f,g,_,A){u.push(_?A.replace(PC,"$1"):g||f)}),u});function _o(s){if(typeof s=="string"||hr(s))return s;var u=s+"";return u=="0"&&1/s==-ke?"-0":u}function Ds(s){if(s!=null){try{return du.call(s)}catch{}try{return s+""}catch{}}return""}function FO(s,u){return Cr(ce,function(f){var g="_."+f[0];u&f[1]&&!iu(s,g)&&s.push(g)}),s.sort()}function Ly(s){if(s instanceof vt)return s.clone();var u=new Ar(s.__wrapped__,s.__chain__);return u.__actions__=Yn(s.__actions__),u.__index__=s.__index__,u.__values__=s.__values__,u}function NO(s,u,f){(f?zn(s,u,f):u===n)?u=1:u=cn(it(u),0);var g=s==null?0:s.length;if(!g||u<1)return[];for(var _=0,A=0,N=J(yu(g/u));_<g;)N[A++]=Ir(s,_,_+=u);return N}function MO(s){for(var u=-1,f=s==null?0:s.length,g=0,_=[];++u<f;){var A=s[u];A&&(_[g++]=A)}return _}function DO(){var s=arguments.length;if(!s)return[];for(var u=J(s-1),f=arguments[0],g=s;g--;)u[g-1]=arguments[g];return Qo(tt(f)?Yn(f):[f],$n(u,1))}var UO=ct(function(s,u){return tn(s)?El(s,$n(u,1,tn,!0)):[]}),BO=ct(function(s,u){var f=Pr(u);return tn(f)&&(f=n),tn(s)?El(s,$n(u,1,tn,!0),qe(f,2)):[]}),jO=ct(function(s,u){var f=Pr(u);return tn(f)&&(f=n),tn(s)?El(s,$n(u,1,tn,!0),n,f):[]});function VO(s,u,f){var g=s==null?0:s.length;return g?(u=f||u===n?1:it(u),Ir(s,u<0?0:u,g)):[]}function HO(s,u,f){var g=s==null?0:s.length;return g?(u=f||u===n?1:it(u),u=g-u,Ir(s,0,u<0?0:u)):[]}function zO(s,u){return s&&s.length?Ou(s,qe(u,3),!0,!0):[]}function WO(s,u){return s&&s.length?Ou(s,qe(u,3),!0):[]}function qO(s,u,f,g){var _=s==null?0:s.length;return _?(f&&typeof f!="number"&&zn(s,u,f)&&(f=0,g=_),D3(s,u,f,g)):[]}function Fy(s,u,f){var g=s==null?0:s.length;if(!g)return-1;var _=f==null?0:it(f);return _<0&&(_=cn(g+_,0)),lu(s,qe(u,3),_)}function Ny(s,u,f){var g=s==null?0:s.length;if(!g)return-1;var _=g-1;return f!==n&&(_=it(f),_=f<0?cn(g+_,0):Rn(_,g-1)),lu(s,qe(u,3),_,!0)}function My(s){var u=s==null?0:s.length;return u?$n(s,1):[]}function KO(s){var u=s==null?0:s.length;return u?$n(s,ke):[]}function GO(s,u){var f=s==null?0:s.length;return f?(u=u===n?1:it(u),$n(s,u)):[]}function XO(s){for(var u=-1,f=s==null?0:s.length,g={};++u<f;){var _=s[u];g[_[0]]=_[1]}return g}function Dy(s){return s&&s.length?s[0]:n}function YO(s,u,f){var g=s==null?0:s.length;if(!g)return-1;var _=f==null?0:it(f);return _<0&&(_=cn(g+_,0)),Ei(s,u,_)}function JO(s){var u=s==null?0:s.length;return u?Ir(s,0,-1):[]}var ZO=ct(function(s){var u=zt(s,ep);return u.length&&u[0]===s[0]?zf(u):[]}),QO=ct(function(s){var u=Pr(s),f=zt(s,ep);return u===Pr(f)?u=n:f.pop(),f.length&&f[0]===s[0]?zf(f,qe(u,2)):[]}),e4=ct(function(s){var u=Pr(s),f=zt(s,ep);return u=typeof u=="function"?u:n,u&&f.pop(),f.length&&f[0]===s[0]?zf(f,n,u):[]});function t4(s,u){return s==null?"":J5.call(s,u)}function Pr(s){var u=s==null?0:s.length;return u?s[u-1]:n}function n4(s,u,f){var g=s==null?0:s.length;if(!g)return-1;var _=g;return f!==n&&(_=it(f),_=_<0?cn(g+_,0):Rn(_,g-1)),u===u?F5(s,u,_):lu(s,y0,_,!0)}function r4(s,u){return s&&s.length?X0(s,it(u)):n}var o4=ct(Uy);function Uy(s,u){return s&&s.length&&u&&u.length?Gf(s,u):s}function s4(s,u,f){return s&&s.length&&u&&u.length?Gf(s,u,qe(f,2)):s}function i4(s,u,f){return s&&s.length&&u&&u.length?Gf(s,u,n,f):s}var l4=Lo(function(s,u){var f=s==null?0:s.length,g=Bf(s,u);return Z0(s,zt(u,function(_){return Fo(_,f)?+_:_}).sort(ay)),g});function a4(s,u){var f=[];if(!(s&&s.length))return f;var g=-1,_=[],A=s.length;for(u=qe(u,3);++g<A;){var N=s[g];u(N,g,s)&&(f.push(N),_.push(g))}return Z0(s,_),f}function hp(s){return s==null?s:t3.call(s)}function u4(s,u,f){var g=s==null?0:s.length;return g?(f&&typeof f!="number"&&zn(s,u,f)?(u=0,f=g):(u=u==null?0:it(u),f=f===n?g:it(f)),Ir(s,u,f)):[]}function c4(s,u){return Cu(s,u)}function d4(s,u,f){return Jf(s,u,qe(f,2))}function f4(s,u){var f=s==null?0:s.length;if(f){var g=Cu(s,u);if(g<f&&Jr(s[g],u))return g}return-1}function p4(s,u){return Cu(s,u,!0)}function h4(s,u,f){return Jf(s,u,qe(f,2),!0)}function m4(s,u){var f=s==null?0:s.length;if(f){var g=Cu(s,u,!0)-1;if(Jr(s[g],u))return g}return-1}function g4(s){return s&&s.length?ey(s):[]}function v4(s,u){return s&&s.length?ey(s,qe(u,2)):[]}function y4(s){var u=s==null?0:s.length;return u?Ir(s,1,u):[]}function _4(s,u,f){return s&&s.length?(u=f||u===n?1:it(u),Ir(s,0,u<0?0:u)):[]}function b4(s,u,f){var g=s==null?0:s.length;return g?(u=f||u===n?1:it(u),u=g-u,Ir(s,u<0?0:u,g)):[]}function w4(s,u){return s&&s.length?Ou(s,qe(u,3),!1,!0):[]}function S4(s,u){return s&&s.length?Ou(s,qe(u,3)):[]}var E4=ct(function(s){return rs($n(s,1,tn,!0))}),$4=ct(function(s){var u=Pr(s);return tn(u)&&(u=n),rs($n(s,1,tn,!0),qe(u,2))}),x4=ct(function(s){var u=Pr(s);return u=typeof u=="function"?u:n,rs($n(s,1,tn,!0),n,u)});function T4(s){return s&&s.length?rs(s):[]}function C4(s,u){return s&&s.length?rs(s,qe(u,2)):[]}function O4(s,u){return u=typeof u=="function"?u:n,s&&s.length?rs(s,n,u):[]}function mp(s){if(!(s&&s.length))return[];var u=0;return s=Zo(s,function(f){if(tn(f))return u=cn(f.length,u),!0}),Pf(u,function(f){return zt(s,Af(f))})}function By(s,u){if(!(s&&s.length))return[];var f=mp(s);return u==null?f:zt(f,function(g){return dr(u,n,g)})}var A4=ct(function(s,u){return tn(s)?El(s,u):[]}),k4=ct(function(s){return Qf(Zo(s,tn))}),I4=ct(function(s){var u=Pr(s);return tn(u)&&(u=n),Qf(Zo(s,tn),qe(u,2))}),P4=ct(function(s){var u=Pr(s);return u=typeof u=="function"?u:n,Qf(Zo(s,tn),n,u)}),R4=ct(mp);function L4(s,u){return oy(s||[],u||[],Sl)}function F4(s,u){return oy(s||[],u||[],Tl)}var N4=ct(function(s){var u=s.length,f=u>1?s[u-1]:n;return f=typeof f=="function"?(s.pop(),f):n,By(s,f)});function jy(s){var u=x(s);return u.__chain__=!0,u}function M4(s,u){return u(s),s}function Mu(s,u){return u(s)}var D4=Lo(function(s){var u=s.length,f=u?s[0]:0,g=this.__wrapped__,_=function(A){return Bf(A,s)};return u>1||this.__actions__.length||!(g instanceof vt)||!Fo(f)?this.thru(_):(g=g.slice(f,+f+(u?1:0)),g.__actions__.push({func:Mu,args:[_],thisArg:n}),new Ar(g,this.__chain__).thru(function(A){return u&&!A.length&&A.push(n),A}))});function U4(){return jy(this)}function B4(){return new Ar(this.value(),this.__chain__)}function j4(){this.__values__===n&&(this.__values__=t_(this.value()));var s=this.__index__>=this.__values__.length,u=s?n:this.__values__[this.__index__++];return{done:s,value:u}}function V4(){return this}function H4(s){for(var u,f=this;f instanceof Su;){var g=Ly(f);g.__index__=0,g.__values__=n,u?_.__wrapped__=g:u=g;var _=g;f=f.__wrapped__}return _.__wrapped__=s,u}function z4(){var s=this.__wrapped__;if(s instanceof vt){var u=s;return this.__actions__.length&&(u=new vt(this)),u=u.reverse(),u.__actions__.push({func:Mu,args:[hp],thisArg:n}),new Ar(u,this.__chain__)}return this.thru(hp)}function W4(){return ry(this.__wrapped__,this.__actions__)}var q4=Au(function(s,u,f){It.call(s,f)?++s[f]:Po(s,f,1)});function K4(s,u,f){var g=tt(s)?g0:M3;return f&&zn(s,u,f)&&(u=n),g(s,qe(u,3))}function G4(s,u){var f=tt(s)?Zo:B0;return f(s,qe(u,3))}var X4=hy(Fy),Y4=hy(Ny);function J4(s,u){return $n(Du(s,u),1)}function Z4(s,u){return $n(Du(s,u),ke)}function Q4(s,u,f){return f=f===n?1:it(f),$n(Du(s,u),f)}function Vy(s,u){var f=tt(s)?Cr:ns;return f(s,qe(u,3))}function Hy(s,u){var f=tt(s)?y5:U0;return f(s,qe(u,3))}var eA=Au(function(s,u,f){It.call(s,f)?s[f].push(u):Po(s,f,[u])});function tA(s,u,f,g){s=Jn(s)?s:Fi(s),f=f&&!g?it(f):0;var _=s.length;return f<0&&(f=cn(_+f,0)),Hu(s)?f<=_&&s.indexOf(u,f)>-1:!!_&&Ei(s,u,f)>-1}var nA=ct(function(s,u,f){var g=-1,_=typeof u=="function",A=Jn(s)?J(s.length):[];return ns(s,function(N){A[++g]=_?dr(u,N,f):$l(N,u,f)}),A}),rA=Au(function(s,u,f){Po(s,f,u)});function Du(s,u){var f=tt(s)?zt:q0;return f(s,qe(u,3))}function oA(s,u,f,g){return s==null?[]:(tt(u)||(u=u==null?[]:[u]),f=g?n:f,tt(f)||(f=f==null?[]:[f]),Y0(s,u,f))}var sA=Au(function(s,u,f){s[f?0:1].push(u)},function(){return[[],[]]});function iA(s,u,f){var g=tt(s)?Cf:b0,_=arguments.length<3;return g(s,qe(u,4),f,_,ns)}function lA(s,u,f){var g=tt(s)?_5:b0,_=arguments.length<3;return g(s,qe(u,4),f,_,U0)}function aA(s,u){var f=tt(s)?Zo:B0;return f(s,ju(qe(u,3)))}function uA(s){var u=tt(s)?F0:tO;return u(s)}function cA(s,u,f){(f?zn(s,u,f):u===n)?u=1:u=it(u);var g=tt(s)?P3:nO;return g(s,u)}function dA(s){var u=tt(s)?R3:oO;return u(s)}function fA(s){if(s==null)return 0;if(Jn(s))return Hu(s)?xi(s):s.length;var u=Ln(s);return u==Z||u==ae?s.size:qf(s).length}function pA(s,u,f){var g=tt(s)?Of:sO;return f&&zn(s,u,f)&&(u=n),g(s,qe(u,3))}var hA=ct(function(s,u){if(s==null)return[];var f=u.length;return f>1&&zn(s,u[0],u[1])?u=[]:f>2&&zn(u[0],u[1],u[2])&&(u=[u[0]]),Y0(s,$n(u,1),[])}),Uu=G5||function(){return En.Date.now()};function mA(s,u){if(typeof u!="function")throw new Or(l);return s=it(s),function(){if(--s<1)return u.apply(this,arguments)}}function zy(s,u,f){return u=f?n:u,u=s&&u==null?s.length:u,Ro(s,R,n,n,n,n,u)}function Wy(s,u){var f;if(typeof u!="function")throw new Or(l);return s=it(s),function(){return--s>0&&(f=u.apply(this,arguments)),s<=1&&(u=n),f}}var gp=ct(function(s,u,f){var g=T;if(f.length){var _=es(f,Ri(gp));g|=$}return Ro(s,g,u,f,_)}),qy=ct(function(s,u,f){var g=T|C;if(f.length){var _=es(f,Ri(qy));g|=$}return Ro(u,g,s,f,_)});function Ky(s,u,f){u=f?n:u;var g=Ro(s,E,n,n,n,n,n,u);return g.placeholder=Ky.placeholder,g}function Gy(s,u,f){u=f?n:u;var g=Ro(s,O,n,n,n,n,n,u);return g.placeholder=Gy.placeholder,g}function Xy(s,u,f){var g,_,A,N,D,K,se=0,ie=!1,pe=!1,Ae=!0;if(typeof s!="function")throw new Or(l);u=Rr(u)||0,Gt(f)&&(ie=!!f.leading,pe="maxWait"in f,A=pe?cn(Rr(f.maxWait)||0,u):A,Ae="trailing"in f?!!f.trailing:Ae);function Ue(nn){var Zr=g,Do=_;return g=_=n,se=nn,N=s.apply(Do,Zr),N}function Ke(nn){return se=nn,D=Al(mt,u),ie?Ue(nn):N}function lt(nn){var Zr=nn-K,Do=nn-se,h_=u-Zr;return pe?Rn(h_,A-Do):h_}function Ge(nn){var Zr=nn-K,Do=nn-se;return K===n||Zr>=u||Zr<0||pe&&Do>=A}function mt(){var nn=Uu();if(Ge(nn))return _t(nn);D=Al(mt,lt(nn))}function _t(nn){return D=n,Ae&&g?Ue(nn):(g=_=n,N)}function mr(){D!==n&&sy(D),se=0,g=K=_=D=n}function Wn(){return D===n?N:_t(Uu())}function gr(){var nn=Uu(),Zr=Ge(nn);if(g=arguments,_=this,K=nn,Zr){if(D===n)return Ke(K);if(pe)return sy(D),D=Al(mt,u),Ue(K)}return D===n&&(D=Al(mt,u)),N}return gr.cancel=mr,gr.flush=Wn,gr}var gA=ct(function(s,u){return D0(s,1,u)}),vA=ct(function(s,u,f){return D0(s,Rr(u)||0,f)});function yA(s){return Ro(s,W)}function Bu(s,u){if(typeof s!="function"||u!=null&&typeof u!="function")throw new Or(l);var f=function(){var g=arguments,_=u?u.apply(this,g):g[0],A=f.cache;if(A.has(_))return A.get(_);var N=s.apply(this,g);return f.cache=A.set(_,N)||A,N};return f.cache=new(Bu.Cache||Io),f}Bu.Cache=Io;function ju(s){if(typeof s!="function")throw new Or(l);return function(){var u=arguments;switch(u.length){case 0:return!s.call(this);case 1:return!s.call(this,u[0]);case 2:return!s.call(this,u[0],u[1]);case 3:return!s.call(this,u[0],u[1],u[2])}return!s.apply(this,u)}}function _A(s){return Wy(2,s)}var bA=iO(function(s,u){u=u.length==1&&tt(u[0])?zt(u[0],fr(qe())):zt($n(u,1),fr(qe()));var f=u.length;return ct(function(g){for(var _=-1,A=Rn(g.length,f);++_<A;)g[_]=u[_].call(this,g[_]);return dr(s,this,g)})}),vp=ct(function(s,u){var f=es(u,Ri(vp));return Ro(s,$,n,u,f)}),Yy=ct(function(s,u){var f=es(u,Ri(Yy));return Ro(s,P,n,u,f)}),wA=Lo(function(s,u){return Ro(s,k,n,n,n,u)});function SA(s,u){if(typeof s!="function")throw new Or(l);return u=u===n?u:it(u),ct(s,u)}function EA(s,u){if(typeof s!="function")throw new Or(l);return u=u==null?0:cn(it(u),0),ct(function(f){var g=f[u],_=ss(f,0,u);return g&&Qo(_,g),dr(s,this,_)})}function $A(s,u,f){var g=!0,_=!0;if(typeof s!="function")throw new Or(l);return Gt(f)&&(g="leading"in f?!!f.leading:g,_="trailing"in f?!!f.trailing:_),Xy(s,u,{leading:g,maxWait:u,trailing:_})}function xA(s){return zy(s,1)}function TA(s,u){return vp(tp(u),s)}function CA(){if(!arguments.length)return[];var s=arguments[0];return tt(s)?s:[s]}function OA(s){return kr(s,y)}function AA(s,u){return u=typeof u=="function"?u:n,kr(s,y,u)}function kA(s){return kr(s,h|y)}function IA(s,u){return u=typeof u=="function"?u:n,kr(s,h|y,u)}function PA(s,u){return u==null||M0(s,u,mn(u))}function Jr(s,u){return s===u||s!==s&&u!==u}var RA=Ru(Hf),LA=Ru(function(s,u){return s>=u}),Us=H0(function(){return arguments}())?H0:function(s){return Yt(s)&&It.call(s,"callee")&&!A0.call(s,"callee")},tt=J.isArray,FA=c0?fr(c0):H3;function Jn(s){return s!=null&&Vu(s.length)&&!No(s)}function tn(s){return Yt(s)&&Jn(s)}function NA(s){return s===!0||s===!1||Yt(s)&&Hn(s)==Ve}var is=Y5||Op,MA=d0?fr(d0):z3;function DA(s){return Yt(s)&&s.nodeType===1&&!kl(s)}function UA(s){if(s==null)return!0;if(Jn(s)&&(tt(s)||typeof s=="string"||typeof s.splice=="function"||is(s)||Li(s)||Us(s)))return!s.length;var u=Ln(s);if(u==Z||u==ae)return!s.size;if(Ol(s))return!qf(s).length;for(var f in s)if(It.call(s,f))return!1;return!0}function BA(s,u){return xl(s,u)}function jA(s,u,f){f=typeof f=="function"?f:n;var g=f?f(s,u):n;return g===n?xl(s,u,n,f):!!g}function yp(s){if(!Yt(s))return!1;var u=Hn(s);return u==an||u==wn||typeof s.message=="string"&&typeof s.name=="string"&&!kl(s)}function VA(s){return typeof s=="number"&&I0(s)}function No(s){if(!Gt(s))return!1;var u=Hn(s);return u==M||u==V||u==We||u==we}function Jy(s){return typeof s=="number"&&s==it(s)}function Vu(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=Ie}function Gt(s){var u=typeof s;return s!=null&&(u=="object"||u=="function")}function Yt(s){return s!=null&&typeof s=="object"}var Zy=f0?fr(f0):q3;function HA(s,u){return s===u||Wf(s,u,ap(u))}function zA(s,u,f){return f=typeof f=="function"?f:n,Wf(s,u,ap(u),f)}function WA(s){return Qy(s)&&s!=+s}function qA(s){if(AO(s))throw new et(i);return z0(s)}function KA(s){return s===null}function GA(s){return s==null}function Qy(s){return typeof s=="number"||Yt(s)&&Hn(s)==ue}function kl(s){if(!Yt(s)||Hn(s)!=ye)return!1;var u=mu(s);if(u===null)return!0;var f=It.call(u,"constructor")&&u.constructor;return typeof f=="function"&&f instanceof f&&du.call(f)==z5}var _p=p0?fr(p0):K3;function XA(s){return Jy(s)&&s>=-Ie&&s<=Ie}var e_=h0?fr(h0):G3;function Hu(s){return typeof s=="string"||!tt(s)&&Yt(s)&&Hn(s)==Fe}function hr(s){return typeof s=="symbol"||Yt(s)&&Hn(s)==Pe}var Li=m0?fr(m0):X3;function YA(s){return s===n}function JA(s){return Yt(s)&&Ln(s)==ze}function ZA(s){return Yt(s)&&Hn(s)==st}var QA=Ru(Kf),ek=Ru(function(s,u){return s<=u});function t_(s){if(!s)return[];if(Jn(s))return Hu(s)?Xr(s):Yn(s);if(vl&&s[vl])return P5(s[vl]());var u=Ln(s),f=u==Z?Lf:u==ae?au:Fi;return f(s)}function Mo(s){if(!s)return s===0?s:0;if(s=Rr(s),s===ke||s===-ke){var u=s<0?-1:1;return u*Qe}return s===s?s:0}function it(s){var u=Mo(s),f=u%1;return u===u?f?u-f:u:0}function n_(s){return s?Fs(it(s),0,De):0}function Rr(s){if(typeof s=="number")return s;if(hr(s))return ht;if(Gt(s)){var u=typeof s.valueOf=="function"?s.valueOf():s;s=Gt(u)?u+"":u}if(typeof s!="string")return s===0?s:+s;s=w0(s);var f=FC.test(s);return f||MC.test(s)?m5(s.slice(2),f?2:8):LC.test(s)?ht:+s}function r_(s){return yo(s,Zn(s))}function tk(s){return s?Fs(it(s),-Ie,Ie):s===0?s:0}function At(s){return s==null?"":pr(s)}var nk=Ii(function(s,u){if(Ol(u)||Jn(u)){yo(u,mn(u),s);return}for(var f in u)It.call(u,f)&&Sl(s,f,u[f])}),o_=Ii(function(s,u){yo(u,Zn(u),s)}),zu=Ii(function(s,u,f,g){yo(u,Zn(u),s,g)}),rk=Ii(function(s,u,f,g){yo(u,mn(u),s,g)}),ok=Lo(Bf);function sk(s,u){var f=ki(s);return u==null?f:N0(f,u)}var ik=ct(function(s,u){s=Rt(s);var f=-1,g=u.length,_=g>2?u[2]:n;for(_&&zn(u[0],u[1],_)&&(g=1);++f<g;)for(var A=u[f],N=Zn(A),D=-1,K=N.length;++D<K;){var se=N[D],ie=s[se];(ie===n||Jr(ie,Ci[se])&&!It.call(s,se))&&(s[se]=A[se])}return s}),lk=ct(function(s){return s.push(n,wy),dr(s_,n,s)});function ak(s,u){return v0(s,qe(u,3),vo)}function uk(s,u){return v0(s,qe(u,3),Vf)}function ck(s,u){return s==null?s:jf(s,qe(u,3),Zn)}function dk(s,u){return s==null?s:j0(s,qe(u,3),Zn)}function fk(s,u){return s&&vo(s,qe(u,3))}function pk(s,u){return s&&Vf(s,qe(u,3))}function hk(s){return s==null?[]:xu(s,mn(s))}function mk(s){return s==null?[]:xu(s,Zn(s))}function bp(s,u,f){var g=s==null?n:Ns(s,u);return g===n?f:g}function gk(s,u){return s!=null&&$y(s,u,U3)}function wp(s,u){return s!=null&&$y(s,u,B3)}var vk=gy(function(s,u,f){u!=null&&typeof u.toString!="function"&&(u=fu.call(u)),s[u]=f},Ep(Qn)),yk=gy(function(s,u,f){u!=null&&typeof u.toString!="function"&&(u=fu.call(u)),It.call(s,u)?s[u].push(f):s[u]=[f]},qe),_k=ct($l);function mn(s){return Jn(s)?L0(s):qf(s)}function Zn(s){return Jn(s)?L0(s,!0):Y3(s)}function bk(s,u){var f={};return u=qe(u,3),vo(s,function(g,_,A){Po(f,u(g,_,A),g)}),f}function wk(s,u){var f={};return u=qe(u,3),vo(s,function(g,_,A){Po(f,_,u(g,_,A))}),f}var Sk=Ii(function(s,u,f){Tu(s,u,f)}),s_=Ii(function(s,u,f,g){Tu(s,u,f,g)}),Ek=Lo(function(s,u){var f={};if(s==null)return f;var g=!1;u=zt(u,function(A){return A=os(A,s),g||(g=A.length>1),A}),yo(s,ip(s),f),g&&(f=kr(f,h|v|y,vO));for(var _=u.length;_--;)Zf(f,u[_]);return f});function $k(s,u){return i_(s,ju(qe(u)))}var xk=Lo(function(s,u){return s==null?{}:Z3(s,u)});function i_(s,u){if(s==null)return{};var f=zt(ip(s),function(g){return[g]});return u=qe(u),J0(s,f,function(g,_){return u(g,_[0])})}function Tk(s,u,f){u=os(u,s);var g=-1,_=u.length;for(_||(_=1,s=n);++g<_;){var A=s==null?n:s[_o(u[g])];A===n&&(g=_,A=f),s=No(A)?A.call(s):A}return s}function Ck(s,u,f){return s==null?s:Tl(s,u,f)}function Ok(s,u,f,g){return g=typeof g=="function"?g:n,s==null?s:Tl(s,u,f,g)}var l_=_y(mn),a_=_y(Zn);function Ak(s,u,f){var g=tt(s),_=g||is(s)||Li(s);if(u=qe(u,4),f==null){var A=s&&s.constructor;_?f=g?new A:[]:Gt(s)?f=No(A)?ki(mu(s)):{}:f={}}return(_?Cr:vo)(s,function(N,D,K){return u(f,N,D,K)}),f}function kk(s,u){return s==null?!0:Zf(s,u)}function Ik(s,u,f){return s==null?s:ny(s,u,tp(f))}function Pk(s,u,f,g){return g=typeof g=="function"?g:n,s==null?s:ny(s,u,tp(f),g)}function Fi(s){return s==null?[]:Rf(s,mn(s))}function Rk(s){return s==null?[]:Rf(s,Zn(s))}function Lk(s,u,f){return f===n&&(f=u,u=n),f!==n&&(f=Rr(f),f=f===f?f:0),u!==n&&(u=Rr(u),u=u===u?u:0),Fs(Rr(s),u,f)}function Fk(s,u,f){return u=Mo(u),f===n?(f=u,u=0):f=Mo(f),s=Rr(s),j3(s,u,f)}function Nk(s,u,f){if(f&&typeof f!="boolean"&&zn(s,u,f)&&(u=f=n),f===n&&(typeof u=="boolean"?(f=u,u=n):typeof s=="boolean"&&(f=s,s=n)),s===n&&u===n?(s=0,u=1):(s=Mo(s),u===n?(u=s,s=0):u=Mo(u)),s>u){var g=s;s=u,u=g}if(f||s%1||u%1){var _=P0();return Rn(s+_*(u-s+h5("1e-"+((_+"").length-1))),u)}return Xf(s,u)}var Mk=Pi(function(s,u,f){return u=u.toLowerCase(),s+(f?u_(u):u)});function u_(s){return Sp(At(s).toLowerCase())}function c_(s){return s=At(s),s&&s.replace(UC,C5).replace(o5,"")}function Dk(s,u,f){s=At(s),u=pr(u);var g=s.length;f=f===n?g:Fs(it(f),0,g);var _=f;return f-=u.length,f>=0&&s.slice(f,_)==u}function Uk(s){return s=At(s),s&&_C.test(s)?s.replace(jv,O5):s}function Bk(s){return s=At(s),s&&xC.test(s)?s.replace(vf,"\\$&"):s}var jk=Pi(function(s,u,f){return s+(f?"-":"")+u.toLowerCase()}),Vk=Pi(function(s,u,f){return s+(f?" ":"")+u.toLowerCase()}),Hk=py("toLowerCase");function zk(s,u,f){s=At(s),u=it(u);var g=u?xi(s):0;if(!u||g>=u)return s;var _=(u-g)/2;return Pu(_u(_),f)+s+Pu(yu(_),f)}function Wk(s,u,f){s=At(s),u=it(u);var g=u?xi(s):0;return u&&g<u?s+Pu(u-g,f):s}function qk(s,u,f){s=At(s),u=it(u);var g=u?xi(s):0;return u&&g<u?Pu(u-g,f)+s:s}function Kk(s,u,f){return f||u==null?u=0:u&&(u=+u),e3(At(s).replace(yf,""),u||0)}function Gk(s,u,f){return(f?zn(s,u,f):u===n)?u=1:u=it(u),Yf(At(s),u)}function Xk(){var s=arguments,u=At(s[0]);return s.length<3?u:u.replace(s[1],s[2])}var Yk=Pi(function(s,u,f){return s+(f?"_":"")+u.toLowerCase()});function Jk(s,u,f){return f&&typeof f!="number"&&zn(s,u,f)&&(u=f=n),f=f===n?De:f>>>0,f?(s=At(s),s&&(typeof u=="string"||u!=null&&!_p(u))&&(u=pr(u),!u&&$i(s))?ss(Xr(s),0,f):s.split(u,f)):[]}var Zk=Pi(function(s,u,f){return s+(f?" ":"")+Sp(u)});function Qk(s,u,f){return s=At(s),f=f==null?0:Fs(it(f),0,s.length),u=pr(u),s.slice(f,f+u.length)==u}function eI(s,u,f){var g=x.templateSettings;f&&zn(s,u,f)&&(u=n),s=At(s),u=zu({},u,g,by);var _=zu({},u.imports,g.imports,by),A=mn(_),N=Rf(_,A),D,K,se=0,ie=u.interpolate||ru,pe="__p += '",Ae=Ff((u.escape||ru).source+"|"+ie.source+"|"+(ie===Vv?RC:ru).source+"|"+(u.evaluate||ru).source+"|$","g"),Ue="//# sourceURL="+(It.call(u,"sourceURL")?(u.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++u5+"]")+` 30 `;s.replace(Ae,function(Ge,mt,_t,mr,Wn,gr){return _t||(_t=mr),pe+=s.slice(se,gr).replace(BC,A5),mt&&(D=!0,pe+=`' + 31 31 __e(`+mt+`) + 32 32 '`),Wn&&(K=!0,pe+=`'; … … 34 34 __p += '`),_t&&(pe+=`' + 35 35 ((__t = (`+_t+`)) == null ? '' : __t) + 36 '`),se= mr+Ge.length,Ge}),pe+=`';36 '`),se=gr+Ge.length,Ge}),pe+=`'; 37 37 `;var Ke=It.call(u,"variable")&&u.variable;if(!Ke)pe=`with (obj) { 38 38 `+pe+` … … 44 44 `:`; 45 45 `)+pe+`return __p 46 }`;var lt= p1(function(){return Tt(A,Ue+"return "+pe).apply(n,N)});if(lt.source=pe,vp(lt))throw lt;return lt}function tI(s){return At(s).toLowerCase()}function nI(s){return At(s).toUpperCase()}function rI(s,u,f){if(s=At(s),s&&(f||u===n))return S0(s);if(!s||!(u=fr(u)))return s;var g=Gr(s),_=Gr(u),A=E0(g,_),N=$0(g,_)+1;return ss(g,A,N).join("")}function oI(s,u,f){if(s=At(s),s&&(f||u===n))return s.slice(0,T0(s)+1);if(!s||!(u=fr(u)))return s;var g=Gr(s),_=$0(g,Gr(u))+1;return ss(g,0,_).join("")}function sI(s,u,f){if(s=At(s),s&&(f||u===n))return s.replace(vf,"");if(!s||!(u=fr(u)))return s;var g=Gr(s),_=E0(g,Gr(u));return ss(g,_).join("")}function iI(s,u){var f=U,g=j;if(Gt(u)){var _="separator"in u?u.separator:_;f="length"in u?it(u.length):f,g="omission"in u?fr(u.omission):g}s=At(s);var A=s.length;if($i(s)){var N=Gr(s);A=N.length}if(f>=A)return s;var D=f-xi(g);if(D<1)return g;var K=N?ss(N,0,D).join(""):s.slice(0,D);if(_===n)return K+g;if(N&&(D+=K.length-D),yp(_)){if(s.slice(D).search(_)){var se,ie=K;for(_.global||(_=Lf(_.source,At(zv.exec(_))+"g")),_.lastIndex=0;se=_.exec(ie);)var pe=se.index;K=K.slice(0,pe===n?D:pe)}}else if(s.indexOf(fr(_),D)!=D){var Ae=K.lastIndexOf(_);Ae>-1&&(K=K.slice(0,Ae))}return K+g}function lI(s){return s=At(s),s&&yC.test(s)?s.replace(jv,N5):s}var aI=Pi(function(s,u,f){return s+(f?" ":"")+u.toUpperCase()}),wp=hy("toUpperCase");function f1(s,u,f){return s=At(s),u=f?n:u,u===n?I5(s)?U5(s):S5(s):s.match(u)||[]}var p1=ct(function(s,u){try{return cr(s,n,u)}catch(f){return vp(f)?f:new et(f)}}),uI=Ro(function(s,u){return Tr(u,function(f){f=yo(f),Io(s,f,mp(s[f],s))}),s});function cI(s){var u=s==null?0:s.length,f=qe();return s=u?zt(s,function(g){if(typeof g[1]!="function")throw new Cr(l);return[f(g[0]),g[1]]}):[],ct(function(g){for(var _=-1;++_<u;){var A=s[_];if(cr(A[0],this,g))return cr(A[1],this,g)}})}function dI(s){return N3(Ar(s,h))}function Sp(s){return function(){return s}}function fI(s,u){return s==null||s!==s?u:s}var pI=gy(),hI=gy(!0);function Zn(s){return s}function Ep(s){return q0(typeof s=="function"?s:Ar(s,h))}function mI(s){return G0(Ar(s,h))}function gI(s,u){return X0(s,Ar(u,h))}var vI=ct(function(s,u){return function(f){return $l(f,s,u)}}),yI=ct(function(s,u){return function(f){return $l(s,f,u)}});function $p(s,u,f){var g=mn(u),_=xu(u,g);f==null&&!(Gt(u)&&(_.length||!g.length))&&(f=u,u=s,s=this,_=xu(u,mn(u)));var A=!(Gt(f)&&"chain"in f)||!!f.chain,N=Fo(s);return Tr(_,function(D){var K=u[D];s[D]=K,N&&(s.prototype[D]=function(){var se=this.__chain__;if(A||se){var ie=s(this.__wrapped__),pe=ie.__actions__=Xn(this.__actions__);return pe.push({func:K,args:arguments,thisArg:s}),ie.__chain__=se,ie}return K.apply(s,Qo([this.value()],arguments))})}),s}function _I(){return En._===this&&(En._=W5),this}function xp(){}function bI(s){return s=it(s),ct(function(u){return Y0(u,s)})}var wI=np(zt),SI=np(v0),EI=np(Cf);function h1(s){return up(s)?Of(yo(s)):Q3(s)}function $I(s){return function(u){return s==null?n:Ns(s,u)}}var xI=yy(),TI=yy(!0);function Tp(){return[]}function Cp(){return!1}function CI(){return{}}function OI(){return""}function AI(){return!0}function kI(s,u){if(s=it(s),s<1||s>Ie)return[];var f=De,g=Rn(s,De);u=qe(u),s-=De;for(var _=If(g,u);++f<s;)u(f);return _}function II(s){return tt(s)?zt(s,yo):pr(s)?[s]:Xn(Ly(At(s)))}function PI(s){var u=++H5;return At(s)+u}var RI=Iu(function(s,u){return s+u},0),LI=rp("ceil"),FI=Iu(function(s,u){return s/u},1),NI=rp("floor");function MI(s){return s&&s.length?$u(s,Zn,Vf):n}function DI(s,u){return s&&s.length?$u(s,qe(u,2),Vf):n}function UI(s){return b0(s,Zn)}function BI(s,u){return b0(s,qe(u,2))}function jI(s){return s&&s.length?$u(s,Zn,qf):n}function VI(s,u){return s&&s.length?$u(s,qe(u,2),qf):n}var HI=Iu(function(s,u){return s*u},1),zI=rp("round"),WI=Iu(function(s,u){return s-u},0);function qI(s){return s&&s.length?kf(s,Zn):0}function KI(s,u){return s&&s.length?kf(s,qe(u,2)):0}return x.after=mA,x.ary=Wy,x.assign=nk,x.assignIn=s1,x.assignInWith=zu,x.assignWith=rk,x.at=ok,x.before=qy,x.bind=mp,x.bindAll=uI,x.bindKey=Ky,x.castArray=CA,x.chain=Vy,x.chunk=NO,x.compact=MO,x.concat=DO,x.cond=cI,x.conforms=dI,x.constant=Sp,x.countBy=q4,x.create=sk,x.curry=Gy,x.curryRight=Xy,x.debounce=Yy,x.defaults=ik,x.defaultsDeep=lk,x.defer=gA,x.delay=vA,x.difference=UO,x.differenceBy=BO,x.differenceWith=jO,x.drop=VO,x.dropRight=HO,x.dropRightWhile=zO,x.dropWhile=WO,x.fill=qO,x.filter=G4,x.flatMap=J4,x.flatMapDeep=Z4,x.flatMapDepth=Q4,x.flatten=Dy,x.flattenDeep=KO,x.flattenDepth=GO,x.flip=yA,x.flow=pI,x.flowRight=hI,x.fromPairs=XO,x.functions=hk,x.functionsIn=mk,x.groupBy=eA,x.initial=JO,x.intersection=ZO,x.intersectionBy=QO,x.intersectionWith=e4,x.invert=vk,x.invertBy=yk,x.invokeMap=nA,x.iteratee=Ep,x.keyBy=rA,x.keys=mn,x.keysIn=Jn,x.map=Du,x.mapKeys=bk,x.mapValues=wk,x.matches=mI,x.matchesProperty=gI,x.memoize=Bu,x.merge=Sk,x.mergeWith=i1,x.method=vI,x.methodOf=yI,x.mixin=$p,x.negate=ju,x.nthArg=bI,x.omit=Ek,x.omitBy=$k,x.once=_A,x.orderBy=oA,x.over=wI,x.overArgs=bA,x.overEvery=SI,x.overSome=EI,x.partial=gp,x.partialRight=Jy,x.partition=sA,x.pick=xk,x.pickBy=l1,x.property=h1,x.propertyOf=$I,x.pull=o4,x.pullAll=By,x.pullAllBy=s4,x.pullAllWith=i4,x.pullAt=l4,x.range=xI,x.rangeRight=TI,x.rearg=wA,x.reject=aA,x.remove=a4,x.rest=SA,x.reverse=pp,x.sampleSize=cA,x.set=Ck,x.setWith=Ok,x.shuffle=dA,x.slice=u4,x.sortBy=hA,x.sortedUniq=g4,x.sortedUniqBy=v4,x.split=Jk,x.spread=EA,x.tail=y4,x.take=_4,x.takeRight=b4,x.takeRightWhile=w4,x.takeWhile=S4,x.tap=M4,x.throttle=$A,x.thru=Mu,x.toArray=n1,x.toPairs=a1,x.toPairsIn=u1,x.toPath=II,x.toPlainObject=o1,x.transform=Ak,x.unary=xA,x.union=E4,x.unionBy=$4,x.unionWith=x4,x.uniq=T4,x.uniqBy=C4,x.uniqWith=O4,x.unset=kk,x.unzip=hp,x.unzipWith=jy,x.update=Ik,x.updateWith=Pk,x.values=Fi,x.valuesIn=Rk,x.without=A4,x.words=f1,x.wrap=TA,x.xor=k4,x.xorBy=I4,x.xorWith=P4,x.zip=R4,x.zipObject=L4,x.zipObjectDeep=F4,x.zipWith=N4,x.entries=a1,x.entriesIn=u1,x.extend=s1,x.extendWith=zu,$p(x,x),x.add=RI,x.attempt=p1,x.camelCase=Mk,x.capitalize=c1,x.ceil=LI,x.clamp=Lk,x.clone=OA,x.cloneDeep=kA,x.cloneDeepWith=IA,x.cloneWith=AA,x.conformsTo=PA,x.deburr=d1,x.defaultTo=fI,x.divide=FI,x.endsWith=Dk,x.eq=Yr,x.escape=Uk,x.escapeRegExp=Bk,x.every=K4,x.find=X4,x.findIndex=Ny,x.findKey=ak,x.findLast=Y4,x.findLastIndex=My,x.findLastKey=uk,x.floor=NI,x.forEach=Hy,x.forEachRight=zy,x.forIn=ck,x.forInRight=dk,x.forOwn=fk,x.forOwnRight=pk,x.get=_p,x.gt=RA,x.gte=LA,x.has=gk,x.hasIn=bp,x.head=Uy,x.identity=Zn,x.includes=tA,x.indexOf=YO,x.inRange=Fk,x.invoke=_k,x.isArguments=Us,x.isArray=tt,x.isArrayBuffer=FA,x.isArrayLike=Yn,x.isArrayLikeObject=tn,x.isBoolean=NA,x.isBuffer=is,x.isDate=MA,x.isElement=DA,x.isEmpty=UA,x.isEqual=BA,x.isEqualWith=jA,x.isError=vp,x.isFinite=VA,x.isFunction=Fo,x.isInteger=Zy,x.isLength=Vu,x.isMap=Qy,x.isMatch=HA,x.isMatchWith=zA,x.isNaN=WA,x.isNative=qA,x.isNil=GA,x.isNull=KA,x.isNumber=e1,x.isObject=Gt,x.isObjectLike=Yt,x.isPlainObject=kl,x.isRegExp=yp,x.isSafeInteger=XA,x.isSet=t1,x.isString=Hu,x.isSymbol=pr,x.isTypedArray=Li,x.isUndefined=YA,x.isWeakMap=JA,x.isWeakSet=ZA,x.join=t4,x.kebabCase=jk,x.last=Ir,x.lastIndexOf=n4,x.lowerCase=Vk,x.lowerFirst=Hk,x.lt=QA,x.lte=ek,x.max=MI,x.maxBy=DI,x.mean=UI,x.meanBy=BI,x.min=jI,x.minBy=VI,x.stubArray=Tp,x.stubFalse=Cp,x.stubObject=CI,x.stubString=OI,x.stubTrue=AI,x.multiply=HI,x.nth=r4,x.noConflict=_I,x.noop=xp,x.now=Uu,x.pad=zk,x.padEnd=Wk,x.padStart=qk,x.parseInt=Kk,x.random=Nk,x.reduce=iA,x.reduceRight=lA,x.repeat=Gk,x.replace=Xk,x.result=Tk,x.round=zI,x.runInContext=H,x.sample=uA,x.size=fA,x.snakeCase=Yk,x.some=pA,x.sortedIndex=c4,x.sortedIndexBy=d4,x.sortedIndexOf=f4,x.sortedLastIndex=p4,x.sortedLastIndexBy=h4,x.sortedLastIndexOf=m4,x.startCase=Zk,x.startsWith=Qk,x.subtract=WI,x.sum=qI,x.sumBy=KI,x.template=eI,x.times=kI,x.toFinite=No,x.toInteger=it,x.toLength=r1,x.toLower=tI,x.toNumber=Pr,x.toSafeInteger=tk,x.toString=At,x.toUpper=nI,x.trim=rI,x.trimEnd=oI,x.trimStart=sI,x.truncate=iI,x.unescape=lI,x.uniqueId=PI,x.upperCase=aI,x.upperFirst=wp,x.each=Hy,x.eachRight=zy,x.first=Uy,$p(x,function(){var s={};return go(x,function(u,f){It.call(x.prototype,f)||(s[f]=u)}),s}(),{chain:!1}),x.VERSION=r,Tr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){x[s].placeholder=x}),Tr(["drop","take"],function(s,u){vt.prototype[s]=function(f){f=f===n?1:cn(it(f),0);var g=this.__filtered__&&!u?new vt(this):this.clone();return g.__filtered__?g.__takeCount__=Rn(f,g.__takeCount__):g.__views__.push({size:Rn(f,De),type:s+(g.__dir__<0?"Right":"")}),g},vt.prototype[s+"Right"]=function(f){return this.reverse()[s](f).reverse()}}),Tr(["filter","map","takeWhile"],function(s,u){var f=u+1,g=f==ne||f==Ee;vt.prototype[s]=function(_){var A=this.clone();return A.__iteratees__.push({iteratee:qe(_,3),type:f}),A.__filtered__=A.__filtered__||g,A}}),Tr(["head","last"],function(s,u){var f="take"+(u?"Right":"");vt.prototype[s]=function(){return this[f](1).value()[0]}}),Tr(["initial","tail"],function(s,u){var f="drop"+(u?"":"Right");vt.prototype[s]=function(){return this.__filtered__?new vt(this):this[f](1)}}),vt.prototype.compact=function(){return this.filter(Zn)},vt.prototype.find=function(s){return this.filter(s).head()},vt.prototype.findLast=function(s){return this.reverse().find(s)},vt.prototype.invokeMap=ct(function(s,u){return typeof s=="function"?new vt(this):this.map(function(f){return $l(f,s,u)})}),vt.prototype.reject=function(s){return this.filter(ju(qe(s)))},vt.prototype.slice=function(s,u){s=it(s);var f=this;return f.__filtered__&&(s>0||u<0)?new vt(f):(s<0?f=f.takeRight(-s):s&&(f=f.drop(s)),u!==n&&(u=it(u),f=u<0?f.dropRight(-u):f.take(u-s)),f)},vt.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},vt.prototype.toArray=function(){return this.take(De)},go(vt.prototype,function(s,u){var f=/^(?:filter|find|map|reject)|While$/.test(u),g=/^(?:head|last)$/.test(u),_=x[g?"take"+(u=="last"?"Right":""):u],A=g||/^find/.test(u);_&&(x.prototype[u]=function(){var N=this.__wrapped__,D=g?[1]:arguments,K=N instanceof vt,se=D[0],ie=K||tt(N),pe=function(mt){var _t=_.apply(x,Qo([mt],D));return g&&Ae?_t[0]:_t};ie&&f&&typeof se=="function"&&se.length!=1&&(K=ie=!1);var Ae=this.__chain__,Ue=!!this.__actions__.length,Ke=A&&!Ae,lt=K&&!Ue;if(!A&&ie){N=lt?N:new vt(this);var Ge=s.apply(N,D);return Ge.__actions__.push({func:Mu,args:[pe],thisArg:n}),new Or(Ge,Ae)}return Ke&<?s.apply(this,D):(Ge=this.thru(pe),Ke?g?Ge.value()[0]:Ge.value():Ge)})}),Tr(["pop","push","shift","sort","splice","unshift"],function(s){var u=uu[s],f=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",g=/^(?:pop|shift)$/.test(s);x.prototype[s]=function(){var _=arguments;if(g&&!this.__chain__){var A=this.value();return u.apply(tt(A)?A:[],_)}return this[f](function(N){return u.apply(tt(N)?N:[],_)})}}),go(vt.prototype,function(s,u){var f=x[u];if(f){var g=f.name+"";It.call(Ai,g)||(Ai[g]=[]),Ai[g].push({name:u,func:f})}}),Ai[ku(n,C).name]=[{name:"wrapper",func:n}],vt.prototype.clone=l3,vt.prototype.reverse=a3,vt.prototype.value=u3,x.prototype.at=D4,x.prototype.chain=U4,x.prototype.commit=B4,x.prototype.next=j4,x.prototype.plant=H4,x.prototype.reverse=z4,x.prototype.toJSON=x.prototype.valueOf=x.prototype.value=W4,x.prototype.first=x.prototype.head,vl&&(x.prototype[vl]=V4),x},Ti=B5();Is?((Is.exports=Ti)._=Ti,Ef._=Ti):En._=Ti}).call(Ll)})(Yc,Yc.exports);var Y=Yc.exports;const vM={chapters:[],selected:null},aE="podlove/publisher/chapter/INIT",Tg="podlove/publisher/chapter/UPDATE",uE="podlove/publisher/chapter/SELECT",Cg="podlove/publisher/chapter/REMOVE",Og="podlove/publisher/chapter/ADD",cE="podlove/publisher/chapter/PARSE",Ag="podlove/publisher/chapter/PARSED",dE="podlove/publisher/chapter/SET",fE="podlove/publisher/chapter/DOWNLOAD",kg="podlove/publisher/chapter/SELECT_IMAGE",Ig="podlove/publisher/chapter/SET_IMAGE",yM=oe(aE),_M=oe(Tg),ms=oe(uE),bM=oe(Cg),wM=oe(Og),SM=oe(cE),pE=oe(Ag),EM=oe(dE),$M=oe(fE),xM=oe(kg);oe(Ig);const TM=bn({[Ag]:(e,t)=>({...e,selected:null,chapters:Y.get(t,["payload"],[])}),[dE]:(e,t)=>({...e,selected:null,chapters:Y.get(t,["payload"],[])}),[Tg]:(e,t)=>{let n=hE(e);const r=mE(e),i=e.chapters.reduce((a,c,d)=>[...a,d===t.payload.index?{...c,...t.payload.chapter}:c],[]).sort((a,c)=>a.start-c.start),l=i.findIndex(a=>r&&a.title==r.title);return{...e,chapters:i,selected:l>=0?l:n}},[uE]:(e,t)=>({...e,selected:t.payload}),[Og]:e=>({...e,chapters:[...e.chapters,{start:Y.get(e,["chapters",e.chapters.length-1,"start"],0),title:"",href:"",image:""}]}),[Cg]:(e,t)=>({...e,selected:null,chapters:e.chapters.filter((n,r)=>r!==t.payload)}),[Ig]:(e,t)=>({...e,chapters:e.chapters.map((n,r)=>r!==e.selected?n:{...n,image:t.payload})})},vM),CM=e=>e.chapters,hE=e=>e.selected,mE=e=>e.selected!==null?Y.get(e,["chapters",e.selected],null):null,zp={chapters:CM,selectedIndex:hE,selected:mE},Wp=function(e){if(!e)return 0;switch(e.length){case 0:return 0;case 1:return parseInt(e,10)*100;case 2:return parseInt(e,10)*10;default:return parseInt(e.substr(0,3),10)}},za=function(e){e=(e||"").trim();const t=/^(\d+)(?:\.(\d+))?$/,n=/^(\d+):(\d\d?)(?:\.(\d+))?$/,r=/^(\d+):(\d\d?):(\d\d?)(?:\.(\d+))?$/;let o,i=0,l=0,a=0,c=0;if(o=e.match(t))i=Wp(o[2]),l=o[1]?parseInt(o[1],10):0;else if(o=e.match(n))i=Wp(o[3]),l=o[2]?parseInt(o[2],10):0,a=o[1]?parseInt(o[1],10):0;else if(o=e.match(r))i=Wp(o[4]),l=o[3]?parseInt(o[3],10):0,a=o[2]?parseInt(o[2],10):0,c=o[1]?parseInt(o[1],10):0;else return null;return((c*60+a)*60+l)*1e3+i};class Dt{constructor(t){this.totalMs=t}get totalSeconds(){return Math.floor(this.totalMs/1e3)}get totalMinutes(){return Math.floor(this.totalSeconds/60)}get totalHours(){return Math.floor(this.totalMinutes/60)}get milliseconds(){return this.totalMs%1e3}get seconds(){return this.totalSeconds%60}get minutes(){return this.totalMinutes%60}get hours(){return this.totalHours%60}get pretty(){return this.pad(this.totalHours)+":"+this.pad(this.minutes)+":"+this.pad(this.seconds)+"."+this.pad(this.milliseconds,"000")}get prettyShort(){return this.totalHours?this.pad(this.totalHours)+":"+this.pad(this.minutes)+":"+this.pad(this.seconds):this.pad(this.minutes)+":"+this.pad(this.seconds)}pad(t,n="00"){let r=""+t;return r.length<n.length?n.substring(0,n.length-r.length)+r:t}static fromString(t){let n=0;return t==parseInt(t,10)?n=parseInt(t,10):n=za(t)||0,new Dt(n)}}const L_=(e,t,n)=>{const r=[...e];return r.splice(n,0,r.splice(t,1)[0]),r},gE="podlove/publisher/episode/INIT",tl="podlove/publisher/episode/UPDATE",vE="podlove/publisher/episode/QUICKSAVE",yE="podlove/publisher/episode/SAVED",Hh="podlove/publisher/episode/SLUG_CHANGED",Vd="podlove/publisher/episode/SET",_E="podlove/publisher/episode/SET_POSTER",bE="podlove/publisher/episode/SELECT_POSTER",Pg="podlove/publisher/episode/MOVE_CONTRIBUTION_UP",Rg="podlove/publisher/episode/MOVE_CONTRIBUTION_DOWN",Lg="podlove/publisher/episode/DELETE_CONTRIBUTION",Fg="podlove/publisher/episode/UPDATE_CONTRIBUTION",Ng="podlove/publisher/episode/ADD_CONTRIBUTION",wE="podlove/publisher/episode/CREATE_CONTRIBUTION",OM={id:null,slug:null,slug_frozen:!1,duration:null,number:null,subtitle:null,title:null,summary:null,type:null,episode_poster:null,poster:null,mnemonic:null,explicit:null,auphonic_production_id:null,is_auphonic_production_running:!1,auphonic_webhook_config:null,soundbite_start:null,soundbite_duration:null,soundbite_title:null,contributions:[],license_name:null,license_url:null,show:null},bt=oe(tl),AM=oe(vE),Hd=oe(gE),kM=oe(bE),Mg=oe(Vd),IM=oe(Pg),PM=oe(Rg),RM=oe(Lg),qp=oe(Fg),SE=oe(Ng),LM=oe(wE),FM=oe(yE),NM=oe(Hh),MM=bn({[Wr]:(e,t)=>({...e,id:Y.get(t,["payload","episode","id"],null),duration:Dt.fromString(Y.get(t,["payload","episode","duration"],null)).totalMs}),[tl]:(e,t)=>{const n=Y.get(t,["payload","prop"]),r=Y.get(t,["payload","value"],null);return["title","subtitle","summary","duration","slug","slug_frozen","auphonic_webhook_config","is_auphonic_production_running","soundbite_start","soundbite_duration","soundbite_title","license_name","license_url","show","number","episode_poster","poster","explicit"].includes(n)?{...e,[n]:r}:(console.debug("todo",n,r),{...e})},[Vd]:(e,t)=>({...e,slug:Y.get(t,["payload","slug"],e.slug),slug_frozen:Y.get(t,["payload","slug_frozen"],e.slug_frozen),number:Y.get(t,["payload","number"],e.number),duration:Y.get(t,["payload","duration"],e.duration),title:Y.get(t,["payload","title_clean"],e.title),subtitle:Y.get(t,["payload","subtitle"],e.subtitle),summary:Y.get(t,["payload","summary"],e.summary),type:Y.get(t,["payload","type"],e.type),episode_poster:Y.get(t,["payload","episode_poster"],e.episode_poster),poster:Y.get(t,["payload","poster"],e.poster),mnemonic:Y.get(t,["payload","mnemonic"],e.mnemonic),explicit:Y.get(t,["payload","explicit"],e.explicit),auphonic_production_id:Y.get(t,["payload","auphonic_production_id"],e.auphonic_production_id),is_auphonic_production_running:Y.get(t,["payload","is_auphonic_production_running"],e.is_auphonic_production_running),auphonic_webhook_config:Y.get(t,["payload","auphonic_webhook_config"],e.auphonic_webhook_config),soundbite_start:Y.get(t,["payload","soundbite_start"],e.soundbite_start),soundbite_duration:Y.get(t,["payload","soundbite_duration"],e.soundbite_duration),soundbite_title:Y.get(t,["payload","soundbite_title"],e.soundbite_title),license_name:Y.get(t,["payload","license_name"],e.license_name),license_url:Y.get(t,["payload","license_url"],e.license_url),contributions:Y.get(t,["payload","contributions"],e.contributions),show:Y.get(t,["payload","show"],e.show)}),[Pg]:(e,t)=>{const n=e.contributions.findIndex(r=>r.position===Y.get(t,["payload","position"]));return n<1?e:{...e,contributions:L_(e.contributions,n,n-1).map((r,o)=>({...r,position:o}))}},[Rg]:(e,t)=>{const n=e.contributions.findIndex(r=>r.position===Y.get(t,["payload","position"]));return n>e.contributions.length?e:{...e,contributions:L_(e.contributions,n,n+1).map((r,o)=>({...r,position:o}))}},[Lg]:(e,t)=>({...e,contributions:e.contributions.filter(({position:n})=>Y.get(t,["payload","position"])!==n).map((n,r)=>({...n,position:r}))}),[Fg]:(e,t)=>({...e,contributions:e.contributions.map(n=>n.contributor_id!==Y.get(t,["payload","contributor_id"])?n:Y.pick(Y.get(t,["payload"],{}),["id","contributor_id","role_id","group_id","position","comment"]))}),[Ng]:(e,t)=>({...e,contributions:[...e.contributions,{id:null,contributor_id:Y.get(t,["payload","id"],null),role_id:null,group_id:null,position:e.contributions.length,comment:null}]})},OM),Xt={id:e=>e.id,slug:e=>e.slug,slugFrozen:e=>e.slug_frozen,duration:e=>e.duration,number:e=>e.number,title:e=>e.title,subtitle:e=>e.subtitle,summary:e=>e.summary,type:e=>e.type,poster:e=>e.poster,episodePoster:e=>e.episode_poster,mnemonic:e=>e.mnemonic,explicit:e=>e.explicit,auphonicProductionId:e=>e.auphonic_production_id,isAuphonicProductionRunning:e=>e.is_auphonic_production_running,auphonicWebhookConfig:e=>e.auphonic_webhook_config,soundbite_start:e=>e.soundbite_start,soundbite_duration:e=>e.soundbite_duration,soundbite_title:e=>e.soundbite_title,license_name:e=>e.license_name,license_url:e=>e.license_url,contributions:e=>e.contributions,currentShow:e=>e.show},DM={baseUrl:null,api:{nonce:null,base:null,auth:null,bearer:null}},UM=bn({[Wr]:(e,t)=>({...e,baseUrl:Y.get(t,["payload","baseUrl"],null),api:{base:Y.get(t,["payload","api","base"],null),nonce:Y.get(t,["payload","api","nonce"],null),auth:Y.get(t,["payload","api","auth"],null),bearer:Y.get(t,["payload","api","bearer"],null)}})},DM),Fl={baseUrl:e=>e.baseUrl,nonce:e=>e.api.nonce,base:e=>e.api.base,auth:e=>e.api.auth,bearer:e=>e.api.bearer},zd="podlove/publisher/wordpress/UPDATE",EE="podlove/publisher/wordpress/SELECT_MEDIA_FROM_LIBRARY",zh=oe(zd),Dg=oe(EE),BM={id:null,title:null,featured_media:null},jM=bn({[Wr]:(e,t)=>({...e,id:Y.get(t,["payload","post","id"],null),title:Y.get(t,["payload","post","title"],null),featured_media:Y.get(t,["payload","post","featured_media"],null)}),[zd]:(e,t)=>{const n=Y.get(t,["payload","prop"]),r=Y.get(t,["payload","value"],null);return["title","featured_media"].includes(n)?{...e,[n]:r}:{...e}}},BM),Kp={id:e=>e.id,title:e=>e.title,featured_media:e=>e.featured_media},$E="podlove/publisher/transcript/INIT",xE="podlove/publisher/transcript/SET_TRANSCRIPTS",TE="podlove/publisher/transcript/SET_VOICES",Ug="podlove/publisher/transcript/UPDATE_VOICE",CE="podlove/publisher/transcript/IMPORT_TRANSCRIPTS",OE="podlove/publisher/transcript/IMPORT_ASSET_TRANSCRIPTS",AE="podlove/publisher/transcript/DELETE_TRANSCRIPTS",VM=oe($E),HM=oe(xE),zM=oe(TE),WM=oe(Ug),qM=oe(CE),KM=oe(OE),GM=oe(AE),XM={transcripts:[],voices:[]},YM=bn({[xE]:(e,t)=>({...e,transcripts:t.payload}),[TE]:(e,t)=>({...e,voices:t.payload.map(n=>({voice:n.voice,contributor:n.contributor_id}))}),[Ug]:(e,t)=>({...e,voices:e.voices.map(n=>n.voice===t.payload.voice?{...n,contributor:t.payload.contributor}:n)})},XM),F_={transcripts:e=>e.transcripts,voices:e=>e.voices},JM={contributors:[],roles:[],groups:[]},kE="podlove/publisher/contributors/INIT",IE="podlove/publisher/contributors/SET_CONTRIBUTORS",PE="podlove/publisher/contributors/SET_ROLES",RE="podlove/publisher/contributors/SET_GROUPS",LE="podlove/publisher/contributors/ADD",FE=oe(kE),ZM=oe(IE),QM=oe(PE),e8=oe(RE),t8=oe(LE),n8=bn({[IE]:(e,t)=>({...e,contributors:t.payload}),[PE]:(e,t)=>({...e,roles:t.payload}),[RE]:(e,t)=>({...e,groups:t.payload}),[LE]:(e,t)=>({...e,contributors:[...e.contributors,t.payload]})},JM),Gp={contributors:e=>e.contributors,roles:e=>e.roles,groups:e=>e.groups},r8={plus:{storage_enabled:null},metadata:{enable_episode_explicit:null,enable_episode_license:null,enable_episode_recording_date:null},tracking:{mode:null,window:null},website:{blog_title_template:null,custom_episode_slug:null,enable_generated_blog_post_title:null,episode_archive:null,episode_archive_slug:null,episode_number_padding:null,feeds_skip_redirect:null,hide_wp_feed_discovery:null,landing_page:null,merge_episodes:null,ssl_verify_peer:null,url_template:null,use_post_permastruct:null},assets:{image:null,chapter:null,transcript:null},media:{base_uri:null},modules:[]},o8=e=>{switch(e){case"0":return"podcast-cover";case"post-thumbnail":return"post-thumbnail";case"manual":return"manual";default:return null}},s8=e=>{switch(e){case"0":return"none";case"manual":return"manual";default:return null}},i8=bn({[Wr]:(e,t)=>({...e,plus:{storage_enabled:Y.get(t,["payload","plus","storage_enabled"],null)===!0},metadata:{enable_episode_explicit:Y.get(t,["payload","expert_settings","metadata","enable_episode_explicit"],null)==="1",enable_episode_license:Y.get(t,["payload","expert_settings","metadata","enable_episode_license"],null)==="1",enable_episode_recording_date:Y.get(t,["payload","expert_settings","metadata","enable_episode_recording_date"],null)==="1"},tracking:{mode:Y.get(t,["payload","expert_settings","tracking","mode"],null),window:Y.get(t,["payload","expert_settings","tracking","mode"],null)},media:{base_uri:Y.get(t,["payload","media","base_uri"],null)},website:{blog_title_template:Y.get(t,["payload","expert_settings","website","blog_title_template"],null),custom_episode_slug:Y.get(t,["payload","expert_settings","website","custom_episode_slug"],null),enable_generated_blog_post_title:Y.get(t,["payload","expert_settings","website","enable_generated_blog_post_title"],null)==="on",episode_archive:Y.get(t,["payload","expert_settings","website","episode_archive"],null)==="on",episode_archive_slug:Y.get(t,["payload","expert_settings","website","episode_archive_slug"],null),episode_number_padding:Y.get(t,["payload","expert_settings","website","episode_number_padding"],null),feeds_skip_redirect:Y.get(t,["payload","expert_settings","website","feeds_skip_redirect"],null)==="on",hide_wp_feed_discovery:Y.get(t,["payload","expert_settings","website","hide_wp_feed_discovery"],null)==="on",landing_page:Y.get(t,["payload","expert_settings","website","landing_page"],null),merge_episodes:Y.get(t,["payload","expert_settings","website","merge_episodes"],null)==="on",ssl_verify_peer:Y.get(t,["payload","expert_settings","website","ssl_verify_peer"],null)==="on",url_template:Y.get(t,["payload","expert_settings","website","url_template"],null),use_post_permastruct:Y.get(t,["payload","expert_settings","website","use_post_permastruct"],null)==="on"},assets:{image:o8(Y.get(t,["payload","assignments","image"],null)),chapter:s8(Y.get(t,["payload","assignments","chapter"],null)),transcript:Y.get(t,["payload","assignments","transcript"],null)},modules:Y.get(t,["payload","modules"])})},r8),cs={autoGenerateEpisodeTitle:e=>e.website.enable_generated_blog_post_title,blogTitleTemplate:e=>e.website.blog_title_template,episodeNumberPadding:e=>e.website.episode_number_padding,imageAsset:e=>e.assets.image,enableEpisodeExplicit:e=>e.metadata.enable_episode_explicit,enablePlusStorage:e=>e.plus.storage_enabled,mediaFileBaseUri:e=>e.media.base_uri,modules:e=>e.modules},l8="podlove/publisher/podcast/INIT",NE="podlove/publisher/podcast/SET",a8="podlove/publisher/podcasr/SAVED",Bg="podlove/publisher/podcast/UPDATE",u8={title:null,subtitle:null,summary:null,mnemonic:null,itunes_type:null,author_name:null,poster:null,link:null,license_name:null,license_url:null};oe(l8);const c8=oe(NE);oe(a8);const oa=oe(Bg),d8=bn({[NE]:(e,t)=>({title:Y.get(t,["payload","title"],e.title),subtitle:Y.get(t,["payload","subtitle"],e.subtitle),summary:Y.get(t,["payload","summary"],e.summary),mnemonic:Y.get(t,["payload","mnemonic"],e.mnemonic),itunes_type:Y.get(t,["payload","itunes_type"],e.itunes_type),author_name:Y.get(t,["payload","author_name"],e.author_name),poster:Y.get(t,["payload","poster"],e.poster),link:Y.get(t,["payload","link"],e.link),license_name:Y.get(t,["payload","license_name"],e.license_name),license_url:Y.get(t,["payload","license_url"],e.license_url)}),[Bg]:(e,t)=>{const n=Y.get(t,["payload","prop"]),r=Y.get(t,["payload","value"],null);return["title","subtitle","summary","author_name","podcast_email","funding_url","funding_label","license_name","license_url"].includes(n)?{...e,[n]:r}:(console.debug("todo",n,r),{...e})}},u8),_o={title:e=>e.title,subtitle:e=>e.subtitle,summary:e=>e.summary,mnemonic:e=>e.mnemonic,itunesType:e=>e.itunes_type,author:e=>e.author_name,poster:e=>e.poster,link:e=>e.link,license_name:e=>e.license_name,license_url:e=>e.license_url},f8={totalState:"init",progress:0,currentEpisodeName:"",currentFileName:"",episodesWithFiles:[],isMigrationComplete:!1,showMigrationToolManually:!1},ME="podlove/publisher/plusFileMigration/INIT",DE="podlove/publisher/plusFileMigration/SET_EPISODES_WITH_FILES",UE="podlove/publisher/plusFileMigration/SET_TOTAL_STATE",BE="podlove/publisher/plusFileMigration/START_MIGRATION",jE="podlove/publisher/plusFileMigration/SET_CURRENT_METADATA",VE="podlove/publisher/plusFileMigration/SET_FILE_STATE",HE="podlove/publisher/plusFileMigration/SET_PROGRESS",zE="podlove/publisher/plusFileMigration/SET_MIGRATION_COMPLETE",WE="podlove/publisher/plusFileMigration/TOGGLE_MIGRATION_TOOL_MANUALLY",p8=oe(ME),h8=oe(DE),Wh=oe(UE),m8=oe(BE),g8=oe(jE),sc=oe(VE),v8=oe(HE),y8=oe(zE),_8=oe(WE),b8=bn({[Wr]:(e,t)=>({...e}),[DE]:(e,t)=>({...e,episodesWithFiles:t.payload.episodesWithFiles}),[UE]:(e,t)=>({...e,totalState:t.payload.totalState}),[jE]:(e,t)=>({...e,currentEpisodeName:t.payload.currentEpisodeName,currentFileName:t.payload.currentFileName}),[VE]:(e,t)=>({...e,episodesWithFiles:e.episodesWithFiles.map(n=>({...n,files:n.files.map(r=>({...r,state:r.name===t.payload.filename?t.payload.state:r.state}))}))}),[HE]:(e,t)=>({...e,progress:t.payload.progress}),[zE]:(e,t)=>({...e,isMigrationComplete:t.payload.isMigrationComplete}),[WE]:e=>({...e,showMigrationToolManually:!e.showMigrationToolManually})},f8),Vs={totalState:e=>e.totalState,progress:e=>e.progress,currentEpisodeName:e=>e.currentEpisodeName,currentFileName:e=>e.currentFileName,episodesWithFiles:e=>e.episodesWithFiles,isMigrationComplete:e=>e.isMigrationComplete,showMigrationToolManually:e=>e.showMigrationToolManually},w8={features:{fileStorage:!1,feedProxy:!1},token:"",user:null,isLoading:!0,isSaving:!1},qE="podlove/publisher/plus/INIT",jg="podlove/publisher/plus/SET_FEATURE",KE="podlove/publisher/plus/GET_TOKEN",GE="podlove/publisher/plus/SET_TOKEN",XE="podlove/publisher/plus/SET_USER",YE="podlove/publisher/plus/SAVE_TOKEN",JE="podlove/publisher/plus/SET_LOADING",ZE="podlove/publisher/plus/SET_SAVING",Wd=oe(qE),qh=oe(jg),S8=oe(KE),Kh=oe(GE),sa=oe(XE),E8=oe(YE),N_=oe(JE),M_=oe(ZE),$8=bn({[Wr]:(e,t)=>({...e}),[jg]:(e,t)=>({...e,features:{...e.features,[t.payload.feature]:t.payload.value}}),[GE]:(e,t)=>({...e,token:t.payload}),[XE]:(e,t)=>({...e,user:t.payload}),[JE]:(e,t)=>({...e,isLoading:t.payload}),[ZE]:(e,t)=>({...e,isSaving:t.payload})},w8),Nl={features:e=>e.features,token:e=>e.token,user:e=>e.user,isLoading:e=>e.isLoading,isSaving:e=>e.isSaving},x8={token:null,production:null,productions:[],presets:[],preset:null,services:[],service_files:{},tracks:[],file_selections:{},current_file_selection:null,is_saving:!1,is_initializing:!0,publish_when_done:!1,plus_transfer_status:null},QE="podlove/publisher/auphonic/INIT",e$="podlove/publisher/auphonic/INIT_DONE",t$="podlove/publisher/auphonic/SET_TOKEN",Jc="podlove/publisher/auphonic/SET_PRODUCTION",n$="podlove/publisher/auphonic/SET_PRODUCTIONS",r$="podlove/publisher/auphonic/SET_SERVICES",o$="podlove/publisher/auphonic/CREATE_PRODUCTION",s$="podlove/publisher/auphonic/CREATE_MULTITRACK_PRODUCTION",i$="podlove/publisher/auphonic/SAVE_PRODUCTION",l$="podlove/publisher/auphonic/START_PRODUCTION",Zc="podlove/publisher/auphonic/DESELECT_PRODUCTION",T8="podlove/publisher/auphonic/SELECT_SERVICE",Vg="podlove/publisher/auphonic/SET_SERVICE_FILES",C8="podlove/publisher/auphonic/SELECT_TRACKS",a$="podlove/publisher/auphonic/ADD_TRACK",u$="podlove/publisher/auphonic/REMOVE_TRACK",c$="podlove/publisher/auphonic/UPDATE_TRACK",d$="podlove/publisher/auphonic/SET_PRESETS",Hg="podlove/publisher/auphonic/SET_PRESET",zg="podlove/publisher/auphonic/UPDATE_FILE_SELECTION",f$="podlove/publisher/auphonic/START_POLLING",Qc="podlove/publisher/auphonic/STOP_POLLING",p$="podlove/publisher/auphonic/START_SAVING",h$="podlove/publisher/auphonic/STOP_SAVING",Wg="podlove/publisher/auphonic/UPDATE_WEBHOOK",qg="podlove/publisher/auphonic/SET_PLUS_TRANSFER_STATUS",m$="podlove/publisher/auphonic/TRIGGER_PLUS_TRANSFER",g$="podlove/publisher/auphonic/LOAD_PLUS_TRANSFER_STATUS",O8=oe(QE),A8=oe(e$),k8=oe(t$),mi=oe(Jc),v$=oe(Zc),y$=oe(n$),I8=oe(o$),P8=oe(s$),_$=oe(i$),b$=oe(l$),R8=oe(d$),Kg=oe(Hg),L8=oe(r$),F8=oe(Vg),w$=oe(T8),S$=oe(zg);oe(C8);const N8=oe(a$),E$=oe(u$),$$=oe(c$),M8=oe(f$),D_=oe(Qc),D8=oe(p$),U8=oe(h$),x$=oe(Wg),eo=oe(qg),T$=oe(m$),B8=oe(g$),j8=bn({[e$]:e=>({...e,is_initializing:!1}),[zg]:(e,t)=>({...e,current_file_selection:t.payload.key,file_selections:{...e.file_selections,[t.payload.key]:{...e.file_selections[t.payload.key],[t.payload.prop]:t.payload.value}}}),[a$]:(e,t)=>{const n=`Track ${e.tracks.length+1}`;return{...e,tracks:[...e.tracks,{identifier:n,identifier_new:n,fileSelection:null,input_file_name:"",filtering:!0,noise_and_hum_reduction:!1,fore_background:"auto",track_gain:"0",save_state:"new"}]}},[u$]:(e,t)=>({...e,tracks:e.tracks.filter((n,r)=>n.identifier!=t.payload)}),[c$]:(e,t)=>{const n=(o,i)=>o.save_state=="new"?{save_state:"new"}:{save_state:"edited"},r=e.tracks.reduce((o,i,l)=>[...o,l===t.payload.index?{...i,...t.payload.track,...n(i,t.payload.track)}:i],[]);return{...e,tracks:r}},[Vg]:(e,t)=>{const{uuid:n,files:r}=t.payload;return{...e,service_files:{...e.service_files,[n]:r}}},[r$]:(e,t)=>({...e,services:t.payload}),[d$]:(e,t)=>({...e,presets:t.payload}),[n$]:(e,t)=>({...e,productions:t.payload}),[Jc]:(e,t)=>{var o,i;const n=t.payload;return{...e,production:n,file_selections:(()=>{var l;if(n!=null&&n.is_multitrack)return((l=n==null?void 0:n.multi_input_files)==null?void 0:l.reduce((a,c,d)=>{let p=c.service;return p||(c.input_file.substring(0,4)=="http"?p="url":p="file"),{...a,[`${n==null?void 0:n.uuid}_t${d}`]:{currentServiceSelection:p,fileSelection:c.service?c.input_file:null,urlValue:p=="url"?c.input_file:null,fileValue:null}}},{}))||{};{let a=n==null?void 0:n.service;const c=n==null?void 0:n.input_file;return a||((c==null?void 0:c.substring(0,4))=="http"?a="url":a="file"),{[`${n==null?void 0:n.uuid}`]:{currentServiceSelection:a,fileSelection:a?c:null,urlValue:a=="url"?c:null,fileValue:null}}}})(),tracks:((i=(o=t.payload)==null?void 0:o.multi_input_files)==null?void 0:i.reduce((l,a)=>{var c,d,p;return[...l,{identifier:a.id,identifier_new:a.id,filtering:(c=a.algorithms)==null?void 0:c.filtering,noise_and_hum_reduction:(d=a.algorithms)==null?void 0:d.denoise,fore_background:(p=a.algorithms)==null?void 0:p.backforeground,input_file_name:a.input_file,save_state:"unchanged"}]},[]))||[]}},[Zc]:e=>({...e,production:null,tracks:[],file_selections:[],current_file_selection:null}),[Hg]:(e,t)=>({...e,preset:t.payload}),[t$]:(e,t)=>({...e,token:t.payload}),[p$]:(e,t)=>({...e,is_saving:!0}),[h$]:(e,t)=>({...e,is_saving:!1}),[Wg]:(e,t)=>({...e,publish_when_done:t.payload}),[qg]:(e,t)=>({...e,plus_transfer_status:t.payload})},x8),V8=e=>e?e.map(t=>{let n={start:t.start,title:t.title};return t.image&&(n.image=t.image),t.url&&(n.url=t.url),n}):[],H8=e=>e?e.map(t=>({format:t.format,bitrate:t.bitrate,suffix:t.suffix,ending:t.ending,filename:t.filename,mono_mixdown:t.mono_mixdown,split_on_chapters:t.split_on_chapters,outgoing_services:t.outgoing_services})):[],z8=e=>{const t=e.production;return{uuid:t==null?void 0:t.uuid,metadata:t==null?void 0:t.metadata,input_file:t==null?void 0:t.input_file,chapters:V8(t==null?void 0:t.chapters),output_files:H8(t==null?void 0:t.output_files),output_basename:t==null?void 0:t.output_basename,outgoing_services:t==null?void 0:t.outgoing_services,algorithms:t==null?void 0:t.algorithms,speech_recognition:t==null?void 0:t.speech_recognition}},dn={token:e=>e.token,production:e=>e.production,productionId:e=>{var t;return(t=e.production)==null?void 0:t.uuid},productions:e=>e.productions,presets:e=>e.presets,preset:e=>e.preset,productionPayload:z8,services:e=>e.services,incomingServices:e=>e.services.filter(t=>t.incoming),outgoingServices:e=>e.services.filter(t=>t.outgoing),serviceFiles:e=>e.service_files,tracks:e=>e.tracks,fileSelections:e=>e.file_selections,currentFileSelection:e=>e.current_file_selection,isSaving:e=>e.is_saving,isInitializing:e=>e.is_initializing,publishWhenDone:e=>e.publish_when_done,plusTransferStatus:e=>{var t;return(t=e.plus_transfer_status)==null?void 0:t.status},plusTransferFiles:e=>{var t;return(t=e.plus_transfer_status)==null?void 0:t.files},plusTransferErrors:e=>{var t;return(t=e.plus_transfer_status)==null?void 0:t.errors}},W8={},C$="podlove/publisher/progress/SET_PROGRESS",O$="podlove/publisher/progress/SET_PROGRESS_STATUS",A$="podlove/publisher/progress/RESET_PROGRESS",k$=oe(C$),ia=oe(O$),I$=oe(A$),q8=bn({[C$]:(e,t)=>{const{key:n,progress:r,status:o,message:i}=t.payload,l=e[n]||{progress:0,status:"init"};return{...e,[n]:{...l,progress:r,...o&&{status:o},...i!==void 0&&{message:i}}}},[O$]:(e,t)=>{const{key:n,status:r,message:o}=t.payload,i=e[n]||{progress:0,status:"init"};return{...e,[n]:{...i,status:r,...o!==void 0&&{message:o}}}},[A$]:(e,t)=>{const n={...e};return delete n[t.payload],n}},W8),K8=(e,t)=>{var n;return((n=e[t])==null?void 0:n.progress)??0},G8=(e,t)=>{var n;return((n=e[t])==null?void 0:n.status)??"init"},X8=(e,t)=>{var n;return(n=e[t])==null?void 0:n.message},Xp={progress:K8,status:G8,message:X8},Y8={is_initializing:!0,slug_autogeneration_enabled:!1,files:[],selectedFiles:[]},P$="podlove/publisher/mediafiles/INIT",R$="podlove/publisher/mediafiles/INIT_DONE",L$="podlove/publisher/mediafiles/SET",Gg="podlove/publisher/mediafiles/UPDATE",ed="podlove/publisher/mediafiles/ENABLE",td="podlove/publisher/mediafiles/DISABLE",F$="podlove/publisher/mediafiles/VERIFY",N$="podlove/publisher/mediafiles/VERIFY_ALL",M$="podlove/publisher/mediafiles/UPLOAD_INTENT",D$="podlove/publisher/mediafiles/PLUS_UPLOAD_INTENT",Xg="podlove/publisher/mediafiles/SET_UPLOAD_URL",U$="podlove/publisher/mediafiles/ENABLE_SLUG_AUTOGEN",B$="podlove/publisher/mediafiles/DISABLE_SLUG_AUTOGEN",j$="podlove/publisher/mediafiles/FILE_SELECTED",Wa="podlove/publisher/mediafiles/SET_FILE_INFO",V$="podlove/publisher/mediafiles/ADD_SELECTED_FILES",H$="podlove/publisher/mediafiles/REMOVE_SELECTED_FILE",z$="podlove/publisher/mediafiles/UNFREEZE_SLUG",J8=oe(P$),Z8=oe(R$),Q8=oe(L$),Gh=oe(Gg),eD=oe(ed),tD=oe(td),nD=oe(F$),rD=oe(N$),oD=oe(M$),sD=oe(D$),iD=oe(Xg),lD=oe(U$),W$=oe(B$),aD=(e,t)=>({type:j$,payload:{files:e,episodeSlug:t}});oe(V$);const uD=oe(H$),cD=oe(z$),dD=bn({[R$]:e=>({...e,is_initializing:!1}),[L$]:(e,t)=>({...e,files:t.payload}),[Gg]:(e,t)=>({...e,files:e.files.reduce((n,r)=>[...n,r.asset_id==t.payload.asset_id?{...r,...t.payload}:r],[])}),[ed]:(e,t)=>({...e,files:e.files.reduce((n,r)=>[...n,r.asset_id==t.payload?{...r,enable:!0}:r],[])}),[td]:(e,t)=>({...e,files:e.files.reduce((n,r)=>[...n,r.asset_id==t.payload?{...r,enable:!1}:r],[])}),[U$]:e=>({...e,slug_autogeneration_enabled:!0}),[B$]:e=>({...e,slug_autogeneration_enabled:!1}),[Wa]:(e,t)=>({...e,selectedFiles:t.payload}),[V$]:(e,t)=>({...e,selectedFiles:[...e.selectedFiles,...t.payload]}),[H$]:(e,t)=>({...e,selectedFiles:e.selectedFiles.filter(n=>n.newName!==t.payload)})},Y8),ic={isInitializing:e=>e.is_initializing,slugAutogenerationEnabled:e=>e.slug_autogeneration_enabled,files:e=>e.files,selectedFiles:e=>e.selectedFiles},fD={episodeList:[],selectEpisodes:[]},q$="podlove/publisher/relatedEpisodes/INIT",K$="podlove/publisher/relatedEpisodes/SET_EPISODE_LIST",Yg="podlove/publisher/relatedEpisodes/SET_SELECTED_EPISODES",pD="podlove/publisher/relatedEpisodes/UPDATE_RELATED_EPISODES",hD=oe(q$),mD=oe(K$),G$=oe(Yg);oe(pD);const gD=bn({[Wr]:(e,t)=>({...e}),[K$]:(e,t)=>({...e,episodeList:t.payload}),[Yg]:(e,t)=>({...e,selectEpisodes:t.payload})},fD),U_={episodeList:e=>e.episodeList,selectEpisodes:e=>e.selectEpisodes},Jg="podlove/publisher/shows/INIT",Zg="podlove/publisher/shows/SET",nd="podlove/publisher/shows/SELECT",X$=oe(Jg),Y$=oe(Zg),J$=oe(nd),Z$={shows:[]},Q$=bn({[Zg]:(e,t)=>({...e,shows:Y.get(t,["payload"],[])})},Z$),ex={shows:e=>e.shows},vD=Object.freeze(Object.defineProperty({__proto__:null,INIT:Jg,SELECT:nd,SET:Zg,init:X$,initialState:Z$,reducer:Q$,select:J$,selectors:ex,set:Y$},Symbol.toStringTag,{value:"Module"})),tx="podlove/publisher/admin/INIT",nx="podlove/publisher/admin/SET",Qg="podlove/publisher/admin/UPDATE_TYPE",yD={bannerHide:null,type:null,feedUrl:null};oe(tx);const _D=oe(nx);oe(Qg);const bD=bn({[nx]:(e,t)=>({bannerHide:Y.get(t,["payload","banner_hide"],e.bannerHide),type:Y.get(t,["payload","type"],e.type),feedUrl:Y.get(t,["payload","feedUrl"],e.feedUrl)}),[Qg]:(e,t)=>({...e,type:t.payload})},yD),Yp={bannerHide:e=>e.bannerHide,type:e=>e.type,feedUrl:e=>e.feedUrl},me={lifecycle:e=>e.lifecycle,chapters:e=>e.chapters,podcast:e=>e.podcast,episode:e=>e.episode,runtime:e=>e.runtime,post:e=>e.post,transcripts:e=>e.transcripts,contributors:e=>e.contributors,auphonic:e=>e.auphonic,progress:e=>e.progress,mediafiles:e=>e.mediafiles,settings:e=>e.settings,relatedEpisodes:e=>e.relatedEpisodes,shows:e=>e.shows,admin:e=>e.admin,plusFileMigration:e=>e.plusFileMigration,plus:e=>e.plus},wD={bootstrapped:he(me.lifecycle,gM.bootstrapped)},SD={token:he(me.auphonic,dn.token),productionId:he(me.auphonic,dn.productionId),productions:he(me.auphonic,dn.productions),production:he(me.auphonic,dn.production),presets:he(me.auphonic,dn.presets),preset:he(me.auphonic,dn.preset),productionPayload:he(me.auphonic,dn.productionPayload),incomingServices:he(me.auphonic,dn.incomingServices),outgoingServices:he(me.auphonic,dn.outgoingServices),serviceFiles:he(me.auphonic,dn.serviceFiles),tracks:he(me.auphonic,dn.tracks),fileSelections:he(me.auphonic,dn.fileSelections),currentFileSelection:he(me.auphonic,dn.currentFileSelection),isSaving:he(me.auphonic,dn.isSaving),isInitializing:he(me.auphonic,dn.isInitializing),publishWhenDone:he(me.auphonic,dn.publishWhenDone),plusTransferStatus:he(me.auphonic,dn.plusTransferStatus),plusTransferFiles:he(me.auphonic,dn.plusTransferFiles),plusTransferErrors:he(me.auphonic,dn.plusTransferErrors)},ED={progress:he([me.progress,(e,t)=>t],Xp.progress),status:he([me.progress,(e,t)=>t],Xp.status),message:he([me.progress,(e,t)=>t],Xp.message)},$D={title:he(me.podcast,_o.title),subtitle:he(me.podcast,_o.subtitle),summary:he(me.podcast,_o.summary),mnemonic:he(me.podcast,_o.mnemonic),itunesType:he(me.podcast,_o.itunesType),author:he(me.podcast,_o.author),poster:he(me.podcast,_o.poster),link:he(me.podcast,_o.link),license_name:he(me.podcast,_o.license_name),license_url:he(me.podcast,_o.license_url)},xD={list:he(me.chapters,zp.chapters),selected:he(me.chapters,zp.selected),selectedIndex:he(me.chapters,zp.selectedIndex)},rx={contributors:he(me.contributors,Gp.contributors),roles:he(me.contributors,Gp.roles),groups:he(me.contributors,Gp.groups)},TD={id:he(me.episode,Xt.id),slug:he(me.episode,Xt.slug),slugFrozen:he(me.episode,Xt.slugFrozen),duration:he(me.episode,Xt.duration),number:he(me.episode,Xt.number),title:he(me.episode,Xt.title),subtitle:he(me.episode,Xt.subtitle),summary:he(me.episode,Xt.summary),type:he(me.episode,Xt.type),poster:he(me.episode,Xt.poster),episodePoster:he(me.episode,Xt.episodePoster),mnemonic:he(me.episode,Xt.mnemonic),explicit:he(me.episode,Xt.explicit),soundbite_start:he(me.episode,Xt.soundbite_start),soundbite_duration:he(me.episode,Xt.soundbite_duration),soundbite_title:he(me.episode,Xt.soundbite_title),auphonicProductionId:he(me.episode,Xt.auphonicProductionId),isAuphonicProductionRunning:he(me.episode,Xt.isAuphonicProductionRunning),auphonicWebhookConfig:he(me.episode,Xt.auphonicWebhookConfig),license_name:he(me.episode,Xt.license_name),license_url:he(me.episode,Xt.license_url),contributions:he(he(me.episode,Xt.contributions),rx.contributors,(e,t)=>e.map(r=>({...r,...r.contributor_id?t.find(({id:o})=>o.toString()===r.contributor_id.toString()):{}}))),currentShow:he(me.episode,Xt.currentShow)},CD={isInitializing:he(me.mediafiles,ic.isInitializing),files:he(me.mediafiles,ic.files),selectedFiles:he(me.mediafiles,ic.selectedFiles),slugAutogenerationEnabled:he(me.mediafiles,ic.slugAutogenerationEnabled)},OD={baseUrl:he(me.runtime,Fl.baseUrl),nonce:he(me.runtime,Fl.nonce),base:he(me.runtime,Fl.base),auth:he(me.runtime,Fl.auth),bearer:he(me.runtime,Fl.bearer)},AD={id:he(me.post,Kp.id),title:he(me.post,Kp.title),featuredMedia:he(me.post,Kp.featured_media)},kD={list:he(me.transcripts,F_.transcripts),voices:he(me.transcripts,F_.voices)},ID={autoGenerateEpisodeTitle:he(me.settings,cs.autoGenerateEpisodeTitle),blogTitleTemplate:he(me.settings,cs.blogTitleTemplate),episodeNumberPadding:he(me.settings,cs.episodeNumberPadding),mediaFileBaseUri:he(me.settings,cs.mediaFileBaseUri),imageAsset:he(me.settings,cs.imageAsset),enableEpisodeExplicit:he(me.settings,cs.enableEpisodeExplicit),enablePlusStorage:he(me.settings,cs.enablePlusStorage),modules:he(me.settings,cs.modules)},PD={episodeList:he(me.relatedEpisodes,U_.episodeList),selectEpisode:he(me.relatedEpisodes,U_.selectEpisodes)},RD={list:he(me.shows,ex.shows)},LD={bannerHide:he(me.admin,Yp.bannerHide),type:he(me.admin,Yp.type),feedUrl:he(me.admin,Yp.feedUrl)},FD={totalState:he(me.plusFileMigration,Vs.totalState),progress:he(me.plusFileMigration,Vs.progress),currentEpisodeName:he(me.plusFileMigration,Vs.currentEpisodeName),currentFileName:he(me.plusFileMigration,Vs.currentFileName),episodesWithFiles:he(me.plusFileMigration,Vs.episodesWithFiles),isMigrationComplete:he(me.plusFileMigration,Vs.isMigrationComplete),showMigrationToolManually:he(me.plusFileMigration,Vs.showMigrationToolManually)},ND={features:he(me.plus,Nl.features),token:he(me.plus,Nl.token),user:he(me.plus,Nl.user),isLoading:he(me.plus,Nl.isLoading),isSaving:he(me.plus,Nl.isSaving)},B={lifecycle:wD,podcast:$D,chapters:xD,episode:TD,runtime:OD,post:AD,transcripts:kD,contributors:rx,settings:ID,auphonic:SD,progress:ED,mediafiles:CD,relatedEpisodes:PD,shows:RD,admin:LD,plusFileMigration:FD,plus:ND},MD=hS({lifecycle:mM,chapters:TM,episode:MM,runtime:UM,post:jM,transcripts:YM,contributors:n8,settings:i8,podcast:d8,auphonic:j8,progress:q8,mediafiles:dD,relatedEpisodes:gD,shows:Q$,admin:bD,plusFileMigration:b8,plus:$8});var B_=function(t){return{done:!0,value:t}},Jp={};function qd(e){return Fd(e)?"channel":xS(e)?String(e):Kn(e)?e.name:String(e)}function Kd(e,t,n){var r,o,i,l=t;function a(c,d){if(l===Jp)return B_(c);if(d&&!o)throw l=Jp,d;r&&r(c);var p=d?e[o](d):e[l]();return l=p.nextState,i=p.effect,r=p.stateUpdater,o=p.errorState,l===Jp?B_(c):i}return jh(a,function(c){return a(null,c)},n)}function DD(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i={done:!1,value:ro(e)},l=function(p){return{done:!1,value:St.apply(void 0,[t].concat(r,[p]))}},a,c=function(p){return a=p};return Kd({q1:function(){return{nextState:"q2",effect:i,stateUpdater:c}},q2:function(){return{nextState:"q1",effect:l(a)}}},"q1","takeEvery("+qd(e)+", "+t.name+")")}function UD(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i={done:!1,value:ro(e)},l=function(y){return{done:!1,value:St.apply(void 0,[t].concat(r,[y]))}},a=function(y){return{done:!1,value:aN(y)}},c,d,p=function(y){return c=y},h=function(y){return d=y};return Kd({q1:function(){return{nextState:"q2",effect:i,stateUpdater:h}},q2:function(){return c?{nextState:"q3",effect:a(c)}:{nextState:"q1",effect:l(d),stateUpdater:p}},q3:function(){return{nextState:"q1",effect:l(d),stateUpdater:p}}},"q1","takeLatest("+qd(e)+", "+t.name+")")}function BD(e,t,n){for(var r=arguments.length,o=new Array(r>3?r-3:0),i=3;i<r;i++)o[i-3]=arguments[i];var l,a,c=function(){return{done:!1,value:ro(a)}},d=function(S){return{done:!1,value:St.apply(void 0,[n].concat(o,[S]))}},p={done:!1,value:Md(e)},h=function(S){return l=S},v=function(S){return a=S},y=!Fd(t);return y||v(t),Kd({q1:function(){var S={done:!1,value:uN(t,Q7(1))};return{nextState:"q2",effect:S,stateUpdater:v}},q2:function(){return{nextState:"q3",effect:c(),stateUpdater:h}},q3:function(){return{nextState:"q4",effect:d(l)}},q4:function(){return{nextState:"q2",effect:p}}},y?"q1":"q2","throttle("+qd(t)+", "+n.name+")")}function jD(e,t,n){for(var r=arguments.length,o=new Array(r>3?r-3:0),i=3;i<r;i++)o[i-3]=arguments[i];var l,a,c={done:!1,value:ro(t)},d={done:!1,value:Vh({action:ro(t),debounce:Md(e)})},p=function(S){return{done:!1,value:St.apply(void 0,[n].concat(o,[S]))}},h=function(S){return{done:!1,value:S}},v=function(S){return l=S},y=function(S){return a=S};return Kd({q1:function(){return{nextState:"q2",effect:c,stateUpdater:v}},q2:function(){return{nextState:"q3",effect:d,stateUpdater:y}},q3:function(){return a.debounce?{nextState:"q1",effect:p(l)}:{nextState:"q2",effect:h(a.action),stateUpdater:v}}},"q1","debounce("+qd(t)+", "+n.name+")")}function Ne(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return St.apply(void 0,[DD,e,t].concat(r))}function j_(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return St.apply(void 0,[UD,e,t].concat(r))}function ox(e,t,n){for(var r=arguments.length,o=new Array(r>3?r-3:0),i=3;i<r;i++)o[i-3]=arguments[i];return St.apply(void 0,[BD,e,t,n].concat(o))}function Xh(e,t,n){for(var r=arguments.length,o=new Array(r>3?r-3:0),i=3;i<r;i++)o[i-3]=arguments[i];return St.apply(void 0,[jD,e,t,n].concat(o))}function VD(){return function*(){const e=yield $t(WD,"click","button.editor-post-publish-button");yield Ne(e,HD),yield Ne(Wr,zD)}}function*HD(){yield te(fM())}function*zD(){yield te(pM())}function WD(e,t){return tE(n=>{let r;const o=i=>{n(i)};return window.addEventListener("load",()=>{r=document.querySelector(t),r==null||r.addEventListener(e,o)}),()=>{r==null||r.removeEventListener(e,o),n(zi)}})}const Yh=e=>tE(t=>(e(r=>{t(r||{})}),()=>{}));function*ur(e,t,...n){return yield St(function*(){for(;;){const o=yield ro(e);yield $t(t,...n.concat(o))}})}function*qD(e){if(!(yield be(e))){for(;;)if(yield ro("*"),yield be(e))return}}function*KD(e,t){try{for(;;){const n=yield ro(e);if(t.constructor.name==="GeneratorFunction")yield $t(function*(){yield*t(n)});else{const r=t(n);r&&(yield te(r))}}}finally{(yield cN())&&e.close()}}function*sx(e){const t=yield $t(wg);return yield lN(KD,t,e),t}const ix=e=>t=>n=>{if(n.total){const r=Math.round(n.loaded*100/n.total),o={key:t,progress:r};e.put(o)}},fl=(e,t={})=>{const n=Object.keys(t).map(r=>encodeURIComponent(r)+"="+encodeURIComponent(t[r])).join("&");return e+=(e.indexOf("?")===-1?"?":"&")+n},qa=(e=console.error)=>async t=>{let n;try{n=await t.json()}catch{n={}}return t.status>=300?(e(n),{error:n}):{result:n}},lx=({nonce:e,auth:t,bearer:n},r={})=>({"Content-Type":"application/json",Accept:"application/json",...n?{Authorization:`Bearer ${n}`}:{},...t?{Authorization:`Basic ${t}`}:{},...e?{"X-WP-Nonce":e}:{},...r}),V_=({errorHandler:e,nonce:t,auth:n,bearer:r,method:o,urlProcessor:i})=>(l,{headers:a,query:c}={})=>fetch(fl(i?i(l):l,c),{method:o,headers:lx({nonce:t,auth:n,bearer:r},a)}).then(qa(e)),H_=({errorHandler:e,nonce:t,auth:n,bearer:r,method:o,urlProcessor:i})=>(l,a,{headers:c,query:d}={})=>fetch(fl(i?i(l):l,d),{method:o,headers:lx({nonce:t,auth:n,bearer:r},c),body:JSON.stringify(a)}).then(qa(e)),GD=Y.curry(({base:e,version:t,nonce:n,auth:r,bearer:o,errorHandler:i})=>({get:V_({nonce:n,auth:r,bearer:o,method:"GET",errorHandler:i,urlProcessor:l=>`${e}/${t}/${l}`}),delete:V_({nonce:n,auth:r,bearer:o,errorHandler:i,method:"DELETE",urlProcessor:l=>`${e}/${t}/${l}`}),post:H_({nonce:n,auth:r,bearer:o,errorHandler:i,method:"POST",urlProcessor:l=>`${e}/${t}/${l}`}),put:H_({nonce:n,auth:r,bearer:o,errorHandler:i,method:"PUT",urlProcessor:l=>`${e}/${t}/${l}`})})),ax="podlove/publisher/NOTIFY",ev=oe(ax),XD={};bn({},XD);function*qr(){yield $t(qD,B.lifecycle.bootstrapped);const e=yield be(B.runtime.base),t=yield be(B.runtime.nonce),n=yield be(B.runtime.auth),r=yield be(B.runtime.bearer);return GD({base:e,version:"v2",nonce:t,auth:n,bearer:r,errorHandler:function(i){let l="An error occurred";typeof i=="string"?l=i:i&&typeof i=="object"&&(i.code&&i.message?l=`${i.code}: ${i.message}`:l=i.message||i.code||"An error occurred"),ef.dispatch(ev({type:"error",message:l}))}})}function*YD(){const e=yield qr();yield St(JD,e),yield Ne(Bg,ZD)}function*JD(e){const{result:t}=yield e.get("podcast");t&&(yield te(c8(t)))}function ZD(e){const t=Y.get(e,["payload","prop"]);Y.get(e,["payload","value"],null)}function QD(){return function*(){yield ur(Wr,YD)}}function e9(){return function*(){yield Ne(ax,t9)}}function*t9(e){const t=Y.get(globalThis,["wp","data","dispatch"]);t?n9(t,Y.get(e,["payload"])):r9(e.payload)}function n9(e,{type:t,message:n}){n&&e("core/notices").createNotice(t,n,{type:"snackbar",isDismissible:!0})}function r9({type:e,message:t}){switch(e){case"success":case"info":console.log(t);break;case"warning":console.warn(t);break;case"error":console.error(t);break}}var ux={};/*! For license information please see keyboard.js.LICENSE.txt */(()=>{var e={9620:(o,i)=>{function l(v){if(v&&typeof v=="object"){var y=v.which||v.keyCode||v.charCode;y&&(v=y)}if(typeof v=="number")return p[v];var b,S=String(v);return(b=a[S.toLowerCase()])?b:(b=c[S.toLowerCase()])||(S.length===1?S.charCodeAt(0):void 0)}l.isEventKey=function(v,y){if(v&&typeof v=="object"){var b=v.which||v.keyCode||v.charCode;if(b==null)return!1;if(typeof y=="string"){var S;if((S=a[y.toLowerCase()])||(S=c[y.toLowerCase()]))return S===b}else if(typeof y=="number")return y===b;return!1}};var a=(i=o.exports=l).code=i.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},c=i.aliases={windows:91,"⇧":16,"⌥":18,"⌃":17,"⌘":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};for(d=97;d<123;d++)a[String.fromCharCode(d)]=d-32;for(var d=48;d<58;d++)a[d-48]=d;for(d=1;d<13;d++)a["f"+d]=d+111;for(d=0;d<10;d++)a["numpad "+d]=d+96;var p=i.names=i.title={};for(d in a)p[a[d]]=d;for(var h in c)a[h]=c[h]}},t={};function n(o){var i=t[o];if(i!==void 0)return i.exports;var l=t[o]={exports:{}};return e[o](l,l.exports,n),l.exports}n.n=o=>{var i=o&&o.__esModule?()=>o.default:()=>o;return n.d(i,{a:i}),i},n.d=(o,i)=>{for(var l in i)n.o(i,l)&&!n.o(o,l)&&Object.defineProperty(o,l,{enumerable:!0,get:i[l]})},n.o=(o,i)=>Object.prototype.hasOwnProperty.call(o,i),n.r=o=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})};var r={};(()=>{function o(Q){return Q!=null&&typeof Q=="object"&&Q["@@functional/placeholder"]===!0}function i(Q){return function ce(ve){return arguments.length===0||o(ve)?ce:Q.apply(this,arguments)}}function l(Q){return function ce(ve,Ce){switch(arguments.length){case 0:return ce;case 1:return o(ve)?ce:i(function(We){return Q(ve,We)});default:return o(ve)&&o(Ce)?ce:o(ve)?i(function(We){return Q(We,Ce)}):o(Ce)?i(function(We){return Q(ve,We)}):Q(ve,Ce)}}}n.r(r),n.d(r,{keydown:()=>De,keyup:()=>Xe});const a=Number.isInteger||function(Q){return Q<<0===Q};function c(Q){return Object.prototype.toString.call(Q)==="[object String]"}const d=l(function(Q,ce){var ve=Q<0?ce.length+Q:Q;return c(ce)?ce.charAt(ve):ce[ve]}),p=l(function(Q,ce){return Q.map(function(ve){for(var Ce,We=ce,Ve=0;Ve<ve.length;){if(We==null)return;Ce=ve[Ve],We=a(Ce)?d(Ce,We):We[Ce],Ve+=1}return We})}),h=l(function(Q,ce){return p([Q],ce)[0]}),v=l(function(Q,ce){return h([Q],ce)});function y(Q){return function ce(ve,Ce,We){switch(arguments.length){case 0:return ce;case 1:return o(ve)?ce:l(function(Ve,rt){return Q(ve,Ve,rt)});case 2:return o(ve)&&o(Ce)?ce:o(ve)?l(function(Ve,rt){return Q(Ve,Ce,rt)}):o(Ce)?l(function(Ve,rt){return Q(ve,Ve,rt)}):i(function(Ve){return Q(ve,Ce,Ve)});default:return o(ve)&&o(Ce)&&o(We)?ce:o(ve)&&o(Ce)?l(function(Ve,rt){return Q(Ve,rt,We)}):o(ve)&&o(We)?l(function(Ve,rt){return Q(Ve,Ce,rt)}):o(Ce)&&o(We)?l(function(Ve,rt){return Q(ve,Ve,rt)}):o(ve)?i(function(Ve){return Q(Ve,Ce,We)}):o(Ce)?i(function(Ve){return Q(ve,Ve,We)}):o(We)?i(function(Ve){return Q(ve,Ce,Ve)}):Q(ve,Ce,We)}}}const b=l(function(Q,ce){return ce==null||ce!=ce?Q:ce}),S=y(function(Q,ce,ve){return b(Q,h(ce,ve))}),T=y(function(Q,ce,ve){return S(Q,[ce],ve)});function C(Q,ce){switch(Q){case 0:return function(){return ce.apply(this,arguments)};case 1:return function(ve){return ce.apply(this,arguments)};case 2:return function(ve,Ce){return ce.apply(this,arguments)};case 3:return function(ve,Ce,We){return ce.apply(this,arguments)};case 4:return function(ve,Ce,We,Ve){return ce.apply(this,arguments)};case 5:return function(ve,Ce,We,Ve,rt){return ce.apply(this,arguments)};case 6:return function(ve,Ce,We,Ve,rt,wn){return ce.apply(this,arguments)};case 7:return function(ve,Ce,We,Ve,rt,wn,an){return ce.apply(this,arguments)};case 8:return function(ve,Ce,We,Ve,rt,wn,an,M){return ce.apply(this,arguments)};case 9:return function(ve,Ce,We,Ve,rt,wn,an,M,V){return ce.apply(this,arguments)};case 10:return function(ve,Ce,We,Ve,rt,wn,an,M,V,Z){return ce.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function w(Q,ce){return function(){return ce.call(this,Q.apply(this,arguments))}}const E=Array.isArray||function(Q){return Q!=null&&Q.length>=0&&Object.prototype.toString.call(Q)==="[object Array]"},O=i(function(Q){return!!E(Q)||!!Q&&typeof Q=="object"&&!c(Q)&&(Q.nodeType===1?!!Q.length:Q.length===0||Q.length>0&&Q.hasOwnProperty(0)&&Q.hasOwnProperty(Q.length-1))});var $=function(){function Q(ce){this.f=ce}return Q.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},Q.prototype["@@transducer/result"]=function(ce){return ce},Q.prototype["@@transducer/step"]=function(ce,ve){return this.f(ce,ve)},Q}();const P=l(function(Q,ce){return C(Q.length,function(){return Q.apply(ce,arguments)})});function R(Q,ce,ve){for(var Ce=ve.next();!Ce.done;){if((ce=Q["@@transducer/step"](ce,Ce.value))&&ce["@@transducer/reduced"]){ce=ce["@@transducer/value"];break}Ce=ve.next()}return Q["@@transducer/result"](ce)}function k(Q,ce,ve,Ce){return Q["@@transducer/result"](ve[Ce](P(Q["@@transducer/step"],Q),ce))}var W=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function U(Q,ce,ve){if(typeof Q=="function"&&(Q=function(Ce){return new $(Ce)}(Q)),O(ve))return function(Ce,We,Ve){for(var rt=0,wn=Ve.length;rt<wn;){if((We=Ce["@@transducer/step"](We,Ve[rt]))&&We["@@transducer/reduced"]){We=We["@@transducer/value"];break}rt+=1}return Ce["@@transducer/result"](We)}(Q,ce,ve);if(typeof ve["fantasy-land/reduce"]=="function")return k(Q,ce,ve,"fantasy-land/reduce");if(ve[W]!=null)return R(Q,ce,ve[W]());if(typeof ve.next=="function")return R(Q,ce,ve);if(typeof ve.reduce=="function")return k(Q,ce,ve,"reduce");throw new TypeError("reduce: list must be array or iterable")}const j=y(U);function G(Q,ce){return function(){var ve=arguments.length;if(ve===0)return ce();var Ce=arguments[ve-1];return E(Ce)||typeof Ce[Q]!="function"?ce.apply(this,arguments):Ce[Q].apply(Ce,Array.prototype.slice.call(arguments,0,ve-1))}}const X=i(G("tail",y(G("slice",function(Q,ce,ve){return Array.prototype.slice.call(ve,Q,ce)}))(1,1/0)));function ne(){if(arguments.length===0)throw new Error("pipe requires at least one argument");return C(arguments[0].length,j(w,arguments[0],X(arguments)))}const xe=i(function(Q){return c(Q)?Q.split("").reverse().join(""):Array.prototype.slice.call(Q,0).reverse()});function Ee(){if(arguments.length===0)throw new Error("compose requires at least one argument");return ne.apply(this,xe(arguments))}var ke=n(9620),Ie=n.n(ke);const Qe=Q=>ce=>{v("nodeName",ce.target)==="BODY"&&Q(ce)},ht=Q=>({key:Ie()(Q),ctrl:T(!1,"ctrlKey",Q),shift:T(!1,"shiftKey",Q),meta:T(!1,"metaKey",Q),alt:T(!1,"altKey",Q)}),De=Q=>document.addEventListener("keydown",Qe(Ee(Q,ht))),Xe=Q=>document.addEventListener("keyup",Qe(Ee(Q,ht)))})(),ux.utils=r})();function o9(e){const t=/^([\d\.:]+)\s(.*)$/;return e.trim().split(/(\r?\n)/).reduce(function(n,r){var o=r.match(t);if(o){var i=za(o[1]);i!==null&&n.push({title:o[2].trim(),start:i})}return n},[])}function s9(e){const t=/^([\d\.,]+)\s+([\d\.,]+)\s+(.*)$/;return e.trim().split(/(\r\n|\r|\n)/).reduce(function(n,r){var o=r.match(t);if(o){var i=za(o[1].replace(",",".")),l=o[3].trim();i!==null&&n.push({title:l,start:i})}return n},[])}function i9(e){const r=new window.DOMParser().parseFromString(e,"text/xml").getElementsByTagName("Marker");let o=Array.from(r).reduce((i,l)=>{var p;if(!l||!l.getAttribute("Type")||((p=l.getAttribute("Type"))==null?void 0:p.toLowerCase())!=="chapter")return i;const a=za(l.getAttribute("Time")||""),c=l.getAttribute("Name")||"",d=l.getAttribute("URL")||"";return a!==null&&i.push({start:a,title:c.trim(),...d?{href:d.trim()}:{}}),i},[]);return o.sort(function(i,l){return i.start-l.start}),o}function l9(e){const r=new window.DOMParser().parseFromString(e,"text/xml").getElementsByTagNameNS("http://podlove.org/simple-chapters","chapter");return Array.from(r).reduce((o,i)=>{var l=za(i.getAttribute("start")||""),a=i.getAttribute("title")||"",c=i.getAttribute("href")||"",d=i.getAttribute("image")||"";return l!==null&&o.push({start:l,title:a.trim(),...c?{href:c.trim()}:{},...d?{image:d.trim()}:{}}),o},[])}const cx=Y.get(window,["wp","i18n","__"],e=>e),a9=cx,u9={install(e){e.config.globalProperties.__=(t,n)=>cx(t,n)}};function*c9(){const e=yield qr();yield St(d9,e),yield Ne([cE],g9),yield Ne(fE,p9),yield Ne([Tg,Ag,Og,Cg,Ig],f9,e);const t=yield $t(Yh,ux.utils.keydown);yield Ne(t,v9),yield Ne(kg,y9)}function*d9(e){const t=yield be(B.episode.id),{result:n}=yield e.get(`chapters/${t}`);n&&(yield te(EM(n.chapters.map(r=>({...r,start:Dt.fromString(r.start).totalMs})))))}function*f9(e){const t=yield be(B.episode.id),n=yield be(B.chapters.list);yield e.put(`chapters/${t}`,{chapters:n.map(r=>({...r,start:new Dt(r.start).pretty}))})}function*p9(e){const t=yield be(B.chapters.list);switch(e.payload){case"psc":z_("chapters.psc",h9(t));break;case"mp4":z_("chapters.txt",m9(t));break}}function h9(e){const t=new XMLSerializer,o=new DOMParser().parseFromString('<psc:chapters version="1.2" xmlns:psc="http://podlove.org/simple-chapters"/>',"text/xml");let i=o.getElementsByTagName("chapters");return i.length||(i=o.getElementsByTagName("psc:chapters")),i=i[0],e.forEach(c=>{let d=o.createElement("psc:chapter");d.setAttribute("title",c.title||""),d.setAttribute("start",c.start?new Dt(c.start).pretty:"00:00:00"),c.href&&d.setAttribute("href",c.href),c.image&&d.setAttribute("image",c.image),i.appendChild(d)}),t.serializeToString(o).replace(/\<psc:chapter\s/gi,`46 }`;var lt=f_(function(){return Tt(A,Ue+"return "+pe).apply(n,N)});if(lt.source=pe,yp(lt))throw lt;return lt}function tI(s){return At(s).toLowerCase()}function nI(s){return At(s).toUpperCase()}function rI(s,u,f){if(s=At(s),s&&(f||u===n))return w0(s);if(!s||!(u=pr(u)))return s;var g=Xr(s),_=Xr(u),A=S0(g,_),N=E0(g,_)+1;return ss(g,A,N).join("")}function oI(s,u,f){if(s=At(s),s&&(f||u===n))return s.slice(0,x0(s)+1);if(!s||!(u=pr(u)))return s;var g=Xr(s),_=E0(g,Xr(u))+1;return ss(g,0,_).join("")}function sI(s,u,f){if(s=At(s),s&&(f||u===n))return s.replace(yf,"");if(!s||!(u=pr(u)))return s;var g=Xr(s),_=S0(g,Xr(u));return ss(g,_).join("")}function iI(s,u){var f=U,g=j;if(Gt(u)){var _="separator"in u?u.separator:_;f="length"in u?it(u.length):f,g="omission"in u?pr(u.omission):g}s=At(s);var A=s.length;if($i(s)){var N=Xr(s);A=N.length}if(f>=A)return s;var D=f-xi(g);if(D<1)return g;var K=N?ss(N,0,D).join(""):s.slice(0,D);if(_===n)return K+g;if(N&&(D+=K.length-D),_p(_)){if(s.slice(D).search(_)){var se,ie=K;for(_.global||(_=Ff(_.source,At(Hv.exec(_))+"g")),_.lastIndex=0;se=_.exec(ie);)var pe=se.index;K=K.slice(0,pe===n?D:pe)}}else if(s.indexOf(pr(_),D)!=D){var Ae=K.lastIndexOf(_);Ae>-1&&(K=K.slice(0,Ae))}return K+g}function lI(s){return s=At(s),s&&yC.test(s)?s.replace(Bv,N5):s}var aI=Pi(function(s,u,f){return s+(f?" ":"")+u.toUpperCase()}),Sp=py("toUpperCase");function d_(s,u,f){return s=At(s),u=f?n:u,u===n?I5(s)?U5(s):S5(s):s.match(u)||[]}var f_=ct(function(s,u){try{return dr(s,n,u)}catch(f){return yp(f)?f:new et(f)}}),uI=Lo(function(s,u){return Cr(u,function(f){f=_o(f),Po(s,f,gp(s[f],s))}),s});function cI(s){var u=s==null?0:s.length,f=qe();return s=u?zt(s,function(g){if(typeof g[1]!="function")throw new Or(l);return[f(g[0]),g[1]]}):[],ct(function(g){for(var _=-1;++_<u;){var A=s[_];if(dr(A[0],this,g))return dr(A[1],this,g)}})}function dI(s){return N3(kr(s,h))}function Ep(s){return function(){return s}}function fI(s,u){return s==null||s!==s?u:s}var pI=my(),hI=my(!0);function Qn(s){return s}function $p(s){return W0(typeof s=="function"?s:kr(s,h))}function mI(s){return K0(kr(s,h))}function gI(s,u){return G0(s,kr(u,h))}var vI=ct(function(s,u){return function(f){return $l(f,s,u)}}),yI=ct(function(s,u){return function(f){return $l(s,f,u)}});function xp(s,u,f){var g=mn(u),_=xu(u,g);f==null&&!(Gt(u)&&(_.length||!g.length))&&(f=u,u=s,s=this,_=xu(u,mn(u)));var A=!(Gt(f)&&"chain"in f)||!!f.chain,N=No(s);return Cr(_,function(D){var K=u[D];s[D]=K,N&&(s.prototype[D]=function(){var se=this.__chain__;if(A||se){var ie=s(this.__wrapped__),pe=ie.__actions__=Yn(this.__actions__);return pe.push({func:K,args:arguments,thisArg:s}),ie.__chain__=se,ie}return K.apply(s,Qo([this.value()],arguments))})}),s}function _I(){return En._===this&&(En._=W5),this}function Tp(){}function bI(s){return s=it(s),ct(function(u){return X0(u,s)})}var wI=rp(zt),SI=rp(g0),EI=rp(Of);function p_(s){return cp(s)?Af(_o(s)):Q3(s)}function $I(s){return function(u){return s==null?n:Ns(s,u)}}var xI=vy(),TI=vy(!0);function Cp(){return[]}function Op(){return!1}function CI(){return{}}function OI(){return""}function AI(){return!0}function kI(s,u){if(s=it(s),s<1||s>Ie)return[];var f=De,g=Rn(s,De);u=qe(u),s-=De;for(var _=Pf(g,u);++f<s;)u(f);return _}function II(s){return tt(s)?zt(s,_o):hr(s)?[s]:Yn(Ry(At(s)))}function PI(s){var u=++H5;return At(s)+u}var RI=Iu(function(s,u){return s+u},0),LI=op("ceil"),FI=Iu(function(s,u){return s/u},1),NI=op("floor");function MI(s){return s&&s.length?$u(s,Qn,Hf):n}function DI(s,u){return s&&s.length?$u(s,qe(u,2),Hf):n}function UI(s){return _0(s,Qn)}function BI(s,u){return _0(s,qe(u,2))}function jI(s){return s&&s.length?$u(s,Qn,Kf):n}function VI(s,u){return s&&s.length?$u(s,qe(u,2),Kf):n}var HI=Iu(function(s,u){return s*u},1),zI=op("round"),WI=Iu(function(s,u){return s-u},0);function qI(s){return s&&s.length?If(s,Qn):0}function KI(s,u){return s&&s.length?If(s,qe(u,2)):0}return x.after=mA,x.ary=zy,x.assign=nk,x.assignIn=o_,x.assignInWith=zu,x.assignWith=rk,x.at=ok,x.before=Wy,x.bind=gp,x.bindAll=uI,x.bindKey=qy,x.castArray=CA,x.chain=jy,x.chunk=NO,x.compact=MO,x.concat=DO,x.cond=cI,x.conforms=dI,x.constant=Ep,x.countBy=q4,x.create=sk,x.curry=Ky,x.curryRight=Gy,x.debounce=Xy,x.defaults=ik,x.defaultsDeep=lk,x.defer=gA,x.delay=vA,x.difference=UO,x.differenceBy=BO,x.differenceWith=jO,x.drop=VO,x.dropRight=HO,x.dropRightWhile=zO,x.dropWhile=WO,x.fill=qO,x.filter=G4,x.flatMap=J4,x.flatMapDeep=Z4,x.flatMapDepth=Q4,x.flatten=My,x.flattenDeep=KO,x.flattenDepth=GO,x.flip=yA,x.flow=pI,x.flowRight=hI,x.fromPairs=XO,x.functions=hk,x.functionsIn=mk,x.groupBy=eA,x.initial=JO,x.intersection=ZO,x.intersectionBy=QO,x.intersectionWith=e4,x.invert=vk,x.invertBy=yk,x.invokeMap=nA,x.iteratee=$p,x.keyBy=rA,x.keys=mn,x.keysIn=Zn,x.map=Du,x.mapKeys=bk,x.mapValues=wk,x.matches=mI,x.matchesProperty=gI,x.memoize=Bu,x.merge=Sk,x.mergeWith=s_,x.method=vI,x.methodOf=yI,x.mixin=xp,x.negate=ju,x.nthArg=bI,x.omit=Ek,x.omitBy=$k,x.once=_A,x.orderBy=oA,x.over=wI,x.overArgs=bA,x.overEvery=SI,x.overSome=EI,x.partial=vp,x.partialRight=Yy,x.partition=sA,x.pick=xk,x.pickBy=i_,x.property=p_,x.propertyOf=$I,x.pull=o4,x.pullAll=Uy,x.pullAllBy=s4,x.pullAllWith=i4,x.pullAt=l4,x.range=xI,x.rangeRight=TI,x.rearg=wA,x.reject=aA,x.remove=a4,x.rest=SA,x.reverse=hp,x.sampleSize=cA,x.set=Ck,x.setWith=Ok,x.shuffle=dA,x.slice=u4,x.sortBy=hA,x.sortedUniq=g4,x.sortedUniqBy=v4,x.split=Jk,x.spread=EA,x.tail=y4,x.take=_4,x.takeRight=b4,x.takeRightWhile=w4,x.takeWhile=S4,x.tap=M4,x.throttle=$A,x.thru=Mu,x.toArray=t_,x.toPairs=l_,x.toPairsIn=a_,x.toPath=II,x.toPlainObject=r_,x.transform=Ak,x.unary=xA,x.union=E4,x.unionBy=$4,x.unionWith=x4,x.uniq=T4,x.uniqBy=C4,x.uniqWith=O4,x.unset=kk,x.unzip=mp,x.unzipWith=By,x.update=Ik,x.updateWith=Pk,x.values=Fi,x.valuesIn=Rk,x.without=A4,x.words=d_,x.wrap=TA,x.xor=k4,x.xorBy=I4,x.xorWith=P4,x.zip=R4,x.zipObject=L4,x.zipObjectDeep=F4,x.zipWith=N4,x.entries=l_,x.entriesIn=a_,x.extend=o_,x.extendWith=zu,xp(x,x),x.add=RI,x.attempt=f_,x.camelCase=Mk,x.capitalize=u_,x.ceil=LI,x.clamp=Lk,x.clone=OA,x.cloneDeep=kA,x.cloneDeepWith=IA,x.cloneWith=AA,x.conformsTo=PA,x.deburr=c_,x.defaultTo=fI,x.divide=FI,x.endsWith=Dk,x.eq=Jr,x.escape=Uk,x.escapeRegExp=Bk,x.every=K4,x.find=X4,x.findIndex=Fy,x.findKey=ak,x.findLast=Y4,x.findLastIndex=Ny,x.findLastKey=uk,x.floor=NI,x.forEach=Vy,x.forEachRight=Hy,x.forIn=ck,x.forInRight=dk,x.forOwn=fk,x.forOwnRight=pk,x.get=bp,x.gt=RA,x.gte=LA,x.has=gk,x.hasIn=wp,x.head=Dy,x.identity=Qn,x.includes=tA,x.indexOf=YO,x.inRange=Fk,x.invoke=_k,x.isArguments=Us,x.isArray=tt,x.isArrayBuffer=FA,x.isArrayLike=Jn,x.isArrayLikeObject=tn,x.isBoolean=NA,x.isBuffer=is,x.isDate=MA,x.isElement=DA,x.isEmpty=UA,x.isEqual=BA,x.isEqualWith=jA,x.isError=yp,x.isFinite=VA,x.isFunction=No,x.isInteger=Jy,x.isLength=Vu,x.isMap=Zy,x.isMatch=HA,x.isMatchWith=zA,x.isNaN=WA,x.isNative=qA,x.isNil=GA,x.isNull=KA,x.isNumber=Qy,x.isObject=Gt,x.isObjectLike=Yt,x.isPlainObject=kl,x.isRegExp=_p,x.isSafeInteger=XA,x.isSet=e_,x.isString=Hu,x.isSymbol=hr,x.isTypedArray=Li,x.isUndefined=YA,x.isWeakMap=JA,x.isWeakSet=ZA,x.join=t4,x.kebabCase=jk,x.last=Pr,x.lastIndexOf=n4,x.lowerCase=Vk,x.lowerFirst=Hk,x.lt=QA,x.lte=ek,x.max=MI,x.maxBy=DI,x.mean=UI,x.meanBy=BI,x.min=jI,x.minBy=VI,x.stubArray=Cp,x.stubFalse=Op,x.stubObject=CI,x.stubString=OI,x.stubTrue=AI,x.multiply=HI,x.nth=r4,x.noConflict=_I,x.noop=Tp,x.now=Uu,x.pad=zk,x.padEnd=Wk,x.padStart=qk,x.parseInt=Kk,x.random=Nk,x.reduce=iA,x.reduceRight=lA,x.repeat=Gk,x.replace=Xk,x.result=Tk,x.round=zI,x.runInContext=H,x.sample=uA,x.size=fA,x.snakeCase=Yk,x.some=pA,x.sortedIndex=c4,x.sortedIndexBy=d4,x.sortedIndexOf=f4,x.sortedLastIndex=p4,x.sortedLastIndexBy=h4,x.sortedLastIndexOf=m4,x.startCase=Zk,x.startsWith=Qk,x.subtract=WI,x.sum=qI,x.sumBy=KI,x.template=eI,x.times=kI,x.toFinite=Mo,x.toInteger=it,x.toLength=n_,x.toLower=tI,x.toNumber=Rr,x.toSafeInteger=tk,x.toString=At,x.toUpper=nI,x.trim=rI,x.trimEnd=oI,x.trimStart=sI,x.truncate=iI,x.unescape=lI,x.uniqueId=PI,x.upperCase=aI,x.upperFirst=Sp,x.each=Vy,x.eachRight=Hy,x.first=Dy,xp(x,function(){var s={};return vo(x,function(u,f){It.call(x.prototype,f)||(s[f]=u)}),s}(),{chain:!1}),x.VERSION=r,Cr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){x[s].placeholder=x}),Cr(["drop","take"],function(s,u){vt.prototype[s]=function(f){f=f===n?1:cn(it(f),0);var g=this.__filtered__&&!u?new vt(this):this.clone();return g.__filtered__?g.__takeCount__=Rn(f,g.__takeCount__):g.__views__.push({size:Rn(f,De),type:s+(g.__dir__<0?"Right":"")}),g},vt.prototype[s+"Right"]=function(f){return this.reverse()[s](f).reverse()}}),Cr(["filter","map","takeWhile"],function(s,u){var f=u+1,g=f==ne||f==Ee;vt.prototype[s]=function(_){var A=this.clone();return A.__iteratees__.push({iteratee:qe(_,3),type:f}),A.__filtered__=A.__filtered__||g,A}}),Cr(["head","last"],function(s,u){var f="take"+(u?"Right":"");vt.prototype[s]=function(){return this[f](1).value()[0]}}),Cr(["initial","tail"],function(s,u){var f="drop"+(u?"":"Right");vt.prototype[s]=function(){return this.__filtered__?new vt(this):this[f](1)}}),vt.prototype.compact=function(){return this.filter(Qn)},vt.prototype.find=function(s){return this.filter(s).head()},vt.prototype.findLast=function(s){return this.reverse().find(s)},vt.prototype.invokeMap=ct(function(s,u){return typeof s=="function"?new vt(this):this.map(function(f){return $l(f,s,u)})}),vt.prototype.reject=function(s){return this.filter(ju(qe(s)))},vt.prototype.slice=function(s,u){s=it(s);var f=this;return f.__filtered__&&(s>0||u<0)?new vt(f):(s<0?f=f.takeRight(-s):s&&(f=f.drop(s)),u!==n&&(u=it(u),f=u<0?f.dropRight(-u):f.take(u-s)),f)},vt.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},vt.prototype.toArray=function(){return this.take(De)},vo(vt.prototype,function(s,u){var f=/^(?:filter|find|map|reject)|While$/.test(u),g=/^(?:head|last)$/.test(u),_=x[g?"take"+(u=="last"?"Right":""):u],A=g||/^find/.test(u);_&&(x.prototype[u]=function(){var N=this.__wrapped__,D=g?[1]:arguments,K=N instanceof vt,se=D[0],ie=K||tt(N),pe=function(mt){var _t=_.apply(x,Qo([mt],D));return g&&Ae?_t[0]:_t};ie&&f&&typeof se=="function"&&se.length!=1&&(K=ie=!1);var Ae=this.__chain__,Ue=!!this.__actions__.length,Ke=A&&!Ae,lt=K&&!Ue;if(!A&&ie){N=lt?N:new vt(this);var Ge=s.apply(N,D);return Ge.__actions__.push({func:Mu,args:[pe],thisArg:n}),new Ar(Ge,Ae)}return Ke&<?s.apply(this,D):(Ge=this.thru(pe),Ke?g?Ge.value()[0]:Ge.value():Ge)})}),Cr(["pop","push","shift","sort","splice","unshift"],function(s){var u=uu[s],f=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",g=/^(?:pop|shift)$/.test(s);x.prototype[s]=function(){var _=arguments;if(g&&!this.__chain__){var A=this.value();return u.apply(tt(A)?A:[],_)}return this[f](function(N){return u.apply(tt(N)?N:[],_)})}}),vo(vt.prototype,function(s,u){var f=x[u];if(f){var g=f.name+"";It.call(Ai,g)||(Ai[g]=[]),Ai[g].push({name:u,func:f})}}),Ai[ku(n,C).name]=[{name:"wrapper",func:n}],vt.prototype.clone=l3,vt.prototype.reverse=a3,vt.prototype.value=u3,x.prototype.at=D4,x.prototype.chain=U4,x.prototype.commit=B4,x.prototype.next=j4,x.prototype.plant=H4,x.prototype.reverse=z4,x.prototype.toJSON=x.prototype.valueOf=x.prototype.value=W4,x.prototype.first=x.prototype.head,vl&&(x.prototype[vl]=V4),x},Ti=B5();Is?((Is.exports=Ti)._=Ti,$f._=Ti):En._=Ti}).call(Ll)})(Yc,Yc.exports);var Y=Yc.exports;const vM={chapters:[],selected:null},lE="podlove/publisher/chapter/INIT",Cg="podlove/publisher/chapter/UPDATE",aE="podlove/publisher/chapter/SELECT",Og="podlove/publisher/chapter/REMOVE",Ag="podlove/publisher/chapter/ADD",uE="podlove/publisher/chapter/PARSE",kg="podlove/publisher/chapter/PARSED",cE="podlove/publisher/chapter/SET",dE="podlove/publisher/chapter/DOWNLOAD",fE="podlove/publisher/chapter/SELECT_IMAGE",Vd="podlove/publisher/chapter/SET_IMAGE",yM=oe(lE),_M=oe(Cg),ms=oe(aE),bM=oe(Og),wM=oe(Ag),SM=oe(uE),pE=oe(kg),EM=oe(cE),$M=oe(dE),xM=oe(fE);oe(Vd);const TM=bn({[kg]:(e,t)=>({...e,selected:null,chapters:Y.get(t,["payload"],[])}),[cE]:(e,t)=>({...e,selected:null,chapters:Y.get(t,["payload"],[])}),[Cg]:(e,t)=>{let n=hE(e);const r=mE(e),i=e.chapters.reduce((a,c,d)=>[...a,d===t.payload.index?{...c,...t.payload.chapter}:c],[]).sort((a,c)=>a.start-c.start),l=i.findIndex(a=>r&&a.title==r.title);return{...e,chapters:i,selected:l>=0?l:n}},[aE]:(e,t)=>({...e,selected:t.payload}),[Ag]:e=>({...e,chapters:[...e.chapters,{start:Y.get(e,["chapters",e.chapters.length-1,"start"],0),title:"",href:"",image:""}]}),[Og]:(e,t)=>({...e,selected:null,chapters:e.chapters.filter((n,r)=>r!==t.payload)}),[Vd]:(e,t)=>({...e,chapters:e.chapters.map((n,r)=>r!==e.selected?n:{...n,image:t.payload})})},vM),CM=e=>e.chapters,hE=e=>e.selected,mE=e=>e.selected!==null?Y.get(e,["chapters",e.selected],null):null,Wp={chapters:CM,selectedIndex:hE,selected:mE},qp=function(e){if(!e)return 0;switch(e.length){case 0:return 0;case 1:return parseInt(e,10)*100;case 2:return parseInt(e,10)*10;default:return parseInt(e.substr(0,3),10)}},za=function(e){e=(e||"").trim();const t=/^(\d+)(?:\.(\d+))?$/,n=/^(\d+):(\d\d?)(?:\.(\d+))?$/,r=/^(\d+):(\d\d?):(\d\d?)(?:\.(\d+))?$/;let o,i=0,l=0,a=0,c=0;if(o=e.match(t))i=qp(o[2]),l=o[1]?parseInt(o[1],10):0;else if(o=e.match(n))i=qp(o[3]),l=o[2]?parseInt(o[2],10):0,a=o[1]?parseInt(o[1],10):0;else if(o=e.match(r))i=qp(o[4]),l=o[3]?parseInt(o[3],10):0,a=o[2]?parseInt(o[2],10):0,c=o[1]?parseInt(o[1],10):0;else return null;return((c*60+a)*60+l)*1e3+i};class Dt{constructor(t){this.totalMs=t}get totalSeconds(){return Math.floor(this.totalMs/1e3)}get totalMinutes(){return Math.floor(this.totalSeconds/60)}get totalHours(){return Math.floor(this.totalMinutes/60)}get milliseconds(){return this.totalMs%1e3}get seconds(){return this.totalSeconds%60}get minutes(){return this.totalMinutes%60}get hours(){return this.totalHours%60}get pretty(){return this.pad(this.totalHours)+":"+this.pad(this.minutes)+":"+this.pad(this.seconds)+"."+this.pad(this.milliseconds,"000")}get prettyShort(){return this.totalHours?this.pad(this.totalHours)+":"+this.pad(this.minutes)+":"+this.pad(this.seconds):this.pad(this.minutes)+":"+this.pad(this.seconds)}pad(t,n="00"){let r=""+t;return r.length<n.length?n.substring(0,n.length-r.length)+r:t}static fromString(t){let n=0;return t==parseInt(t,10)?n=parseInt(t,10):n=za(t)||0,new Dt(n)}}const R1=(e,t,n)=>{const r=[...e];return r.splice(n,0,r.splice(t,1)[0]),r},gE="podlove/publisher/episode/INIT",tl="podlove/publisher/episode/UPDATE",vE="podlove/publisher/episode/QUICKSAVE",yE="podlove/publisher/episode/SAVED",zh="podlove/publisher/episode/SLUG_CHANGED",Hd="podlove/publisher/episode/SET",_E="podlove/publisher/episode/SET_POSTER",bE="podlove/publisher/episode/SELECT_POSTER",Ig="podlove/publisher/episode/MOVE_CONTRIBUTION_UP",Pg="podlove/publisher/episode/MOVE_CONTRIBUTION_DOWN",Rg="podlove/publisher/episode/DELETE_CONTRIBUTION",Lg="podlove/publisher/episode/UPDATE_CONTRIBUTION",Fg="podlove/publisher/episode/ADD_CONTRIBUTION",wE="podlove/publisher/episode/CREATE_CONTRIBUTION",OM={id:null,slug:null,slug_frozen:!1,duration:null,number:null,subtitle:null,title:null,summary:null,type:null,episode_poster:null,poster:null,mnemonic:null,explicit:null,auphonic_production_id:null,is_auphonic_production_running:!1,auphonic_webhook_config:null,soundbite_start:null,soundbite_duration:null,soundbite_title:null,contributions:[],license_name:null,license_url:null,show:null},bt=oe(tl),AM=oe(vE),zd=oe(gE),kM=oe(bE),Ng=oe(Hd),IM=oe(Ig),PM=oe(Pg),RM=oe(Rg),Kp=oe(Lg),SE=oe(Fg),LM=oe(wE),FM=oe(yE),NM=oe(zh),MM=bn({[qr]:(e,t)=>({...e,id:Y.get(t,["payload","episode","id"],null),duration:Dt.fromString(Y.get(t,["payload","episode","duration"],null)).totalMs}),[tl]:(e,t)=>{const n=Y.get(t,["payload","prop"]),r=Y.get(t,["payload","value"],null);return["title","subtitle","summary","duration","slug","slug_frozen","auphonic_webhook_config","is_auphonic_production_running","soundbite_start","soundbite_duration","soundbite_title","license_name","license_url","show","number","episode_poster","poster","explicit"].includes(n)?{...e,[n]:r}:(console.debug("todo",n,r),{...e})},[Hd]:(e,t)=>({...e,slug:Y.get(t,["payload","slug"],e.slug),slug_frozen:Y.get(t,["payload","slug_frozen"],e.slug_frozen),number:Y.get(t,["payload","number"],e.number),duration:Y.get(t,["payload","duration"],e.duration),title:Y.get(t,["payload","title_clean"],e.title),subtitle:Y.get(t,["payload","subtitle"],e.subtitle),summary:Y.get(t,["payload","summary"],e.summary),type:Y.get(t,["payload","type"],e.type),episode_poster:Y.get(t,["payload","episode_poster"],e.episode_poster),poster:Y.get(t,["payload","poster"],e.poster),mnemonic:Y.get(t,["payload","mnemonic"],e.mnemonic),explicit:Y.get(t,["payload","explicit"],e.explicit),auphonic_production_id:Y.get(t,["payload","auphonic_production_id"],e.auphonic_production_id),is_auphonic_production_running:Y.get(t,["payload","is_auphonic_production_running"],e.is_auphonic_production_running),auphonic_webhook_config:Y.get(t,["payload","auphonic_webhook_config"],e.auphonic_webhook_config),soundbite_start:Y.get(t,["payload","soundbite_start"],e.soundbite_start),soundbite_duration:Y.get(t,["payload","soundbite_duration"],e.soundbite_duration),soundbite_title:Y.get(t,["payload","soundbite_title"],e.soundbite_title),license_name:Y.get(t,["payload","license_name"],e.license_name),license_url:Y.get(t,["payload","license_url"],e.license_url),contributions:Y.get(t,["payload","contributions"],e.contributions),show:Y.get(t,["payload","show"],e.show)}),[Ig]:(e,t)=>{const n=e.contributions.findIndex(r=>r.position===Y.get(t,["payload","position"]));return n<1?e:{...e,contributions:R1(e.contributions,n,n-1).map((r,o)=>({...r,position:o}))}},[Pg]:(e,t)=>{const n=e.contributions.findIndex(r=>r.position===Y.get(t,["payload","position"]));return n>e.contributions.length?e:{...e,contributions:R1(e.contributions,n,n+1).map((r,o)=>({...r,position:o}))}},[Rg]:(e,t)=>({...e,contributions:e.contributions.filter(({position:n})=>Y.get(t,["payload","position"])!==n).map((n,r)=>({...n,position:r}))}),[Lg]:(e,t)=>({...e,contributions:e.contributions.map(n=>n.contributor_id!==Y.get(t,["payload","contributor_id"])?n:Y.pick(Y.get(t,["payload"],{}),["id","contributor_id","role_id","group_id","position","comment"]))}),[Fg]:(e,t)=>({...e,contributions:[...e.contributions,{id:null,contributor_id:Y.get(t,["payload","id"],null),role_id:null,group_id:null,position:e.contributions.length,comment:null}]})},OM),Xt={id:e=>e.id,slug:e=>e.slug,slugFrozen:e=>e.slug_frozen,duration:e=>e.duration,number:e=>e.number,title:e=>e.title,subtitle:e=>e.subtitle,summary:e=>e.summary,type:e=>e.type,poster:e=>e.poster,episodePoster:e=>e.episode_poster,mnemonic:e=>e.mnemonic,explicit:e=>e.explicit,auphonicProductionId:e=>e.auphonic_production_id,isAuphonicProductionRunning:e=>e.is_auphonic_production_running,auphonicWebhookConfig:e=>e.auphonic_webhook_config,soundbite_start:e=>e.soundbite_start,soundbite_duration:e=>e.soundbite_duration,soundbite_title:e=>e.soundbite_title,license_name:e=>e.license_name,license_url:e=>e.license_url,contributions:e=>e.contributions,currentShow:e=>e.show},DM={baseUrl:null,api:{nonce:null,base:null,auth:null,bearer:null}},UM=bn({[qr]:(e,t)=>({...e,baseUrl:Y.get(t,["payload","baseUrl"],null),api:{base:Y.get(t,["payload","api","base"],null),nonce:Y.get(t,["payload","api","nonce"],null),auth:Y.get(t,["payload","api","auth"],null),bearer:Y.get(t,["payload","api","bearer"],null)}})},DM),Fl={baseUrl:e=>e.baseUrl,nonce:e=>e.api.nonce,base:e=>e.api.base,auth:e=>e.api.auth,bearer:e=>e.api.bearer},Wd="podlove/publisher/wordpress/UPDATE",EE="podlove/publisher/wordpress/SELECT_MEDIA_FROM_LIBRARY",Wh=oe(Wd),Mg=oe(EE),BM={id:null,title:null,featured_media:null},jM=bn({[qr]:(e,t)=>({...e,id:Y.get(t,["payload","post","id"],null),title:Y.get(t,["payload","post","title"],null),featured_media:Y.get(t,["payload","post","featured_media"],null)}),[Wd]:(e,t)=>{const n=Y.get(t,["payload","prop"]),r=Y.get(t,["payload","value"],null);return["title","featured_media"].includes(n)?{...e,[n]:r}:{...e}}},BM),Gp={id:e=>e.id,title:e=>e.title,featured_media:e=>e.featured_media},$E="podlove/publisher/transcript/INIT",xE="podlove/publisher/transcript/SET_TRANSCRIPTS",TE="podlove/publisher/transcript/SET_VOICES",Dg="podlove/publisher/transcript/UPDATE_VOICE",CE="podlove/publisher/transcript/IMPORT_TRANSCRIPTS",OE="podlove/publisher/transcript/IMPORT_ASSET_TRANSCRIPTS",AE="podlove/publisher/transcript/DELETE_TRANSCRIPTS",VM=oe($E),HM=oe(xE),zM=oe(TE),WM=oe(Dg),qM=oe(CE),KM=oe(OE),GM=oe(AE),XM={transcripts:[],voices:[]},YM=bn({[xE]:(e,t)=>({...e,transcripts:t.payload}),[TE]:(e,t)=>({...e,voices:t.payload.map(n=>({voice:n.voice,contributor:n.contributor_id}))}),[Dg]:(e,t)=>({...e,voices:e.voices.map(n=>n.voice===t.payload.voice?{...n,contributor:t.payload.contributor}:n)})},XM),L1={transcripts:e=>e.transcripts,voices:e=>e.voices},JM={contributors:[],roles:[],groups:[]},kE="podlove/publisher/contributors/INIT",IE="podlove/publisher/contributors/SET_CONTRIBUTORS",PE="podlove/publisher/contributors/SET_ROLES",RE="podlove/publisher/contributors/SET_GROUPS",LE="podlove/publisher/contributors/ADD",FE=oe(kE),ZM=oe(IE),QM=oe(PE),e8=oe(RE),t8=oe(LE),n8=bn({[IE]:(e,t)=>({...e,contributors:t.payload}),[PE]:(e,t)=>({...e,roles:t.payload}),[RE]:(e,t)=>({...e,groups:t.payload}),[LE]:(e,t)=>({...e,contributors:[...e.contributors,t.payload]})},JM),Xp={contributors:e=>e.contributors,roles:e=>e.roles,groups:e=>e.groups},r8={plus:{storage_enabled:null},metadata:{enable_episode_explicit:null,enable_episode_license:null,enable_episode_recording_date:null},tracking:{mode:null,window:null},website:{blog_title_template:null,custom_episode_slug:null,enable_generated_blog_post_title:null,episode_archive:null,episode_archive_slug:null,episode_number_padding:null,feeds_skip_redirect:null,hide_wp_feed_discovery:null,landing_page:null,merge_episodes:null,ssl_verify_peer:null,url_template:null,use_post_permastruct:null},assets:{image:null,chapter:null,transcript:null},media:{base_uri:null},modules:[]},o8=e=>{switch(e){case"0":return"podcast-cover";case"post-thumbnail":return"post-thumbnail";case"manual":return"manual";default:return null}},s8=e=>{switch(e){case"0":return"none";case"manual":return"manual";default:return null}},i8=bn({[qr]:(e,t)=>({...e,plus:{storage_enabled:Y.get(t,["payload","plus","storage_enabled"],null)===!0},metadata:{enable_episode_explicit:Y.get(t,["payload","expert_settings","metadata","enable_episode_explicit"],null)==="1",enable_episode_license:Y.get(t,["payload","expert_settings","metadata","enable_episode_license"],null)==="1",enable_episode_recording_date:Y.get(t,["payload","expert_settings","metadata","enable_episode_recording_date"],null)==="1"},tracking:{mode:Y.get(t,["payload","expert_settings","tracking","mode"],null),window:Y.get(t,["payload","expert_settings","tracking","mode"],null)},media:{base_uri:Y.get(t,["payload","media","base_uri"],null)},website:{blog_title_template:Y.get(t,["payload","expert_settings","website","blog_title_template"],null),custom_episode_slug:Y.get(t,["payload","expert_settings","website","custom_episode_slug"],null),enable_generated_blog_post_title:Y.get(t,["payload","expert_settings","website","enable_generated_blog_post_title"],null)==="on",episode_archive:Y.get(t,["payload","expert_settings","website","episode_archive"],null)==="on",episode_archive_slug:Y.get(t,["payload","expert_settings","website","episode_archive_slug"],null),episode_number_padding:Y.get(t,["payload","expert_settings","website","episode_number_padding"],null),feeds_skip_redirect:Y.get(t,["payload","expert_settings","website","feeds_skip_redirect"],null)==="on",hide_wp_feed_discovery:Y.get(t,["payload","expert_settings","website","hide_wp_feed_discovery"],null)==="on",landing_page:Y.get(t,["payload","expert_settings","website","landing_page"],null),merge_episodes:Y.get(t,["payload","expert_settings","website","merge_episodes"],null)==="on",ssl_verify_peer:Y.get(t,["payload","expert_settings","website","ssl_verify_peer"],null)==="on",url_template:Y.get(t,["payload","expert_settings","website","url_template"],null),use_post_permastruct:Y.get(t,["payload","expert_settings","website","use_post_permastruct"],null)==="on"},assets:{image:o8(Y.get(t,["payload","assignments","image"],null)),chapter:s8(Y.get(t,["payload","assignments","chapter"],null)),transcript:Y.get(t,["payload","assignments","transcript"],null)},modules:Y.get(t,["payload","modules"])})},r8),cs={autoGenerateEpisodeTitle:e=>e.website.enable_generated_blog_post_title,blogTitleTemplate:e=>e.website.blog_title_template,episodeNumberPadding:e=>e.website.episode_number_padding,imageAsset:e=>e.assets.image,enableEpisodeExplicit:e=>e.metadata.enable_episode_explicit,enablePlusStorage:e=>e.plus.storage_enabled,mediaFileBaseUri:e=>e.media.base_uri,modules:e=>e.modules},l8="podlove/publisher/podcast/INIT",NE="podlove/publisher/podcast/SET",a8="podlove/publisher/podcasr/SAVED",Ug="podlove/publisher/podcast/UPDATE",u8={title:null,subtitle:null,summary:null,mnemonic:null,itunes_type:null,author_name:null,poster:null,link:null,license_name:null,license_url:null};oe(l8);const c8=oe(NE);oe(a8);const oa=oe(Ug),d8=bn({[NE]:(e,t)=>({title:Y.get(t,["payload","title"],e.title),subtitle:Y.get(t,["payload","subtitle"],e.subtitle),summary:Y.get(t,["payload","summary"],e.summary),mnemonic:Y.get(t,["payload","mnemonic"],e.mnemonic),itunes_type:Y.get(t,["payload","itunes_type"],e.itunes_type),author_name:Y.get(t,["payload","author_name"],e.author_name),poster:Y.get(t,["payload","poster"],e.poster),link:Y.get(t,["payload","link"],e.link),license_name:Y.get(t,["payload","license_name"],e.license_name),license_url:Y.get(t,["payload","license_url"],e.license_url)}),[Ug]:(e,t)=>{const n=Y.get(t,["payload","prop"]),r=Y.get(t,["payload","value"],null);return["title","subtitle","summary","author_name","podcast_email","funding_url","funding_label","license_name","license_url"].includes(n)?{...e,[n]:r}:(console.debug("todo",n,r),{...e})}},u8),bo={title:e=>e.title,subtitle:e=>e.subtitle,summary:e=>e.summary,mnemonic:e=>e.mnemonic,itunesType:e=>e.itunes_type,author:e=>e.author_name,poster:e=>e.poster,link:e=>e.link,license_name:e=>e.license_name,license_url:e=>e.license_url},f8={totalState:"init",progress:0,currentEpisodeName:"",currentFileName:"",episodesWithFiles:[],isMigrationComplete:!1,showMigrationToolManually:!1},ME="podlove/publisher/plusFileMigration/INIT",DE="podlove/publisher/plusFileMigration/SET_EPISODES_WITH_FILES",UE="podlove/publisher/plusFileMigration/SET_TOTAL_STATE",BE="podlove/publisher/plusFileMigration/START_MIGRATION",jE="podlove/publisher/plusFileMigration/SET_CURRENT_METADATA",VE="podlove/publisher/plusFileMigration/SET_FILE_STATE",HE="podlove/publisher/plusFileMigration/SET_PROGRESS",zE="podlove/publisher/plusFileMigration/SET_MIGRATION_COMPLETE",WE="podlove/publisher/plusFileMigration/TOGGLE_MIGRATION_TOOL_MANUALLY",p8=oe(ME),h8=oe(DE),qh=oe(UE),m8=oe(BE),g8=oe(jE),sc=oe(VE),v8=oe(HE),y8=oe(zE),_8=oe(WE),b8=bn({[qr]:(e,t)=>({...e}),[DE]:(e,t)=>({...e,episodesWithFiles:t.payload.episodesWithFiles}),[UE]:(e,t)=>({...e,totalState:t.payload.totalState}),[jE]:(e,t)=>({...e,currentEpisodeName:t.payload.currentEpisodeName,currentFileName:t.payload.currentFileName}),[VE]:(e,t)=>({...e,episodesWithFiles:e.episodesWithFiles.map(n=>({...n,files:n.files.map(r=>({...r,state:r.name===t.payload.filename?t.payload.state:r.state}))}))}),[HE]:(e,t)=>({...e,progress:t.payload.progress}),[zE]:(e,t)=>({...e,isMigrationComplete:t.payload.isMigrationComplete}),[WE]:e=>({...e,showMigrationToolManually:!e.showMigrationToolManually})},f8),Vs={totalState:e=>e.totalState,progress:e=>e.progress,currentEpisodeName:e=>e.currentEpisodeName,currentFileName:e=>e.currentFileName,episodesWithFiles:e=>e.episodesWithFiles,isMigrationComplete:e=>e.isMigrationComplete,showMigrationToolManually:e=>e.showMigrationToolManually},w8={features:{fileStorage:!1,feedProxy:!1},token:"",user:null,isLoading:!0,isSaving:!1},qE="podlove/publisher/plus/INIT",Bg="podlove/publisher/plus/SET_FEATURE",KE="podlove/publisher/plus/GET_TOKEN",GE="podlove/publisher/plus/SET_TOKEN",XE="podlove/publisher/plus/SET_USER",YE="podlove/publisher/plus/SAVE_TOKEN",JE="podlove/publisher/plus/SET_LOADING",ZE="podlove/publisher/plus/SET_SAVING",qd=oe(qE),Kh=oe(Bg),S8=oe(KE),Gh=oe(GE),sa=oe(XE),E8=oe(YE),F1=oe(JE),N1=oe(ZE),$8=bn({[qr]:(e,t)=>({...e}),[Bg]:(e,t)=>({...e,features:{...e.features,[t.payload.feature]:t.payload.value}}),[GE]:(e,t)=>({...e,token:t.payload}),[XE]:(e,t)=>({...e,user:t.payload}),[JE]:(e,t)=>({...e,isLoading:t.payload}),[ZE]:(e,t)=>({...e,isSaving:t.payload})},w8),Nl={features:e=>e.features,token:e=>e.token,user:e=>e.user,isLoading:e=>e.isLoading,isSaving:e=>e.isSaving},x8={token:null,production:null,productions:[],presets:[],preset:null,services:[],service_files:{},tracks:[],file_selections:{},current_file_selection:null,is_saving:!1,is_initializing:!0,publish_when_done:!1,plus_transfer_status:null},QE="podlove/publisher/auphonic/INIT",e$="podlove/publisher/auphonic/INIT_DONE",t$="podlove/publisher/auphonic/SET_TOKEN",Jc="podlove/publisher/auphonic/SET_PRODUCTION",n$="podlove/publisher/auphonic/SET_PRODUCTIONS",r$="podlove/publisher/auphonic/SET_SERVICES",o$="podlove/publisher/auphonic/CREATE_PRODUCTION",s$="podlove/publisher/auphonic/CREATE_MULTITRACK_PRODUCTION",i$="podlove/publisher/auphonic/SAVE_PRODUCTION",l$="podlove/publisher/auphonic/START_PRODUCTION",Zc="podlove/publisher/auphonic/DESELECT_PRODUCTION",T8="podlove/publisher/auphonic/SELECT_SERVICE",jg="podlove/publisher/auphonic/SET_SERVICE_FILES",C8="podlove/publisher/auphonic/SELECT_TRACKS",a$="podlove/publisher/auphonic/ADD_TRACK",u$="podlove/publisher/auphonic/REMOVE_TRACK",c$="podlove/publisher/auphonic/UPDATE_TRACK",d$="podlove/publisher/auphonic/SET_PRESETS",Vg="podlove/publisher/auphonic/SET_PRESET",Hg="podlove/publisher/auphonic/UPDATE_FILE_SELECTION",f$="podlove/publisher/auphonic/START_POLLING",Qc="podlove/publisher/auphonic/STOP_POLLING",p$="podlove/publisher/auphonic/START_SAVING",h$="podlove/publisher/auphonic/STOP_SAVING",zg="podlove/publisher/auphonic/UPDATE_WEBHOOK",Wg="podlove/publisher/auphonic/SET_PLUS_TRANSFER_STATUS",m$="podlove/publisher/auphonic/TRIGGER_PLUS_TRANSFER",g$="podlove/publisher/auphonic/LOAD_PLUS_TRANSFER_STATUS",O8=oe(QE),A8=oe(e$),k8=oe(t$),mi=oe(Jc),v$=oe(Zc),y$=oe(n$),I8=oe(o$),P8=oe(s$),_$=oe(i$),b$=oe(l$),R8=oe(d$),qg=oe(Vg),L8=oe(r$),F8=oe(jg),w$=oe(T8),S$=oe(Hg);oe(C8);const N8=oe(a$),E$=oe(u$),$$=oe(c$),M8=oe(f$),M1=oe(Qc),D8=oe(p$),U8=oe(h$),x$=oe(zg),to=oe(Wg),T$=oe(m$),B8=oe(g$),j8=bn({[e$]:e=>({...e,is_initializing:!1}),[Hg]:(e,t)=>({...e,current_file_selection:t.payload.key,file_selections:{...e.file_selections,[t.payload.key]:{...e.file_selections[t.payload.key],[t.payload.prop]:t.payload.value}}}),[a$]:(e,t)=>{const n=`Track ${e.tracks.length+1}`;return{...e,tracks:[...e.tracks,{identifier:n,identifier_new:n,fileSelection:null,input_file_name:"",filtering:!0,noise_and_hum_reduction:!1,fore_background:"auto",track_gain:"0",save_state:"new"}]}},[u$]:(e,t)=>({...e,tracks:e.tracks.filter((n,r)=>n.identifier!=t.payload)}),[c$]:(e,t)=>{const n=(o,i)=>o.save_state=="new"?{save_state:"new"}:{save_state:"edited"},r=e.tracks.reduce((o,i,l)=>[...o,l===t.payload.index?{...i,...t.payload.track,...n(i,t.payload.track)}:i],[]);return{...e,tracks:r}},[jg]:(e,t)=>{const{uuid:n,files:r}=t.payload;return{...e,service_files:{...e.service_files,[n]:r}}},[r$]:(e,t)=>({...e,services:t.payload}),[d$]:(e,t)=>({...e,presets:t.payload}),[n$]:(e,t)=>({...e,productions:t.payload}),[Jc]:(e,t)=>{var o,i;const n=t.payload;return{...e,production:n,file_selections:(()=>{var l;if(n!=null&&n.is_multitrack)return((l=n==null?void 0:n.multi_input_files)==null?void 0:l.reduce((a,c,d)=>{let p=c.service;return p||(c.input_file.substring(0,4)=="http"?p="url":p="file"),{...a,[`${n==null?void 0:n.uuid}_t${d}`]:{currentServiceSelection:p,fileSelection:c.service?c.input_file:null,urlValue:p=="url"?c.input_file:null,fileValue:null}}},{}))||{};{let a=n==null?void 0:n.service;const c=n==null?void 0:n.input_file;return a||((c==null?void 0:c.substring(0,4))=="http"?a="url":a="file"),{[`${n==null?void 0:n.uuid}`]:{currentServiceSelection:a,fileSelection:a?c:null,urlValue:a=="url"?c:null,fileValue:null}}}})(),tracks:((i=(o=t.payload)==null?void 0:o.multi_input_files)==null?void 0:i.reduce((l,a)=>{var c,d,p;return[...l,{identifier:a.id,identifier_new:a.id,filtering:(c=a.algorithms)==null?void 0:c.filtering,noise_and_hum_reduction:(d=a.algorithms)==null?void 0:d.denoise,fore_background:(p=a.algorithms)==null?void 0:p.backforeground,input_file_name:a.input_file,save_state:"unchanged"}]},[]))||[]}},[Zc]:e=>({...e,production:null,tracks:[],file_selections:[],current_file_selection:null}),[Vg]:(e,t)=>({...e,preset:t.payload}),[t$]:(e,t)=>({...e,token:t.payload}),[p$]:(e,t)=>({...e,is_saving:!0}),[h$]:(e,t)=>({...e,is_saving:!1}),[zg]:(e,t)=>({...e,publish_when_done:t.payload}),[Wg]:(e,t)=>({...e,plus_transfer_status:t.payload})},x8),V8=e=>e?e.map(t=>{let n={start:t.start,title:t.title};return t.image&&(n.image=t.image),t.url&&(n.url=t.url),n}):[],H8=e=>e?e.map(t=>({format:t.format,bitrate:t.bitrate,suffix:t.suffix,ending:t.ending,filename:t.filename,mono_mixdown:t.mono_mixdown,split_on_chapters:t.split_on_chapters,outgoing_services:t.outgoing_services})):[],z8=e=>{const t=e.production;return{uuid:t==null?void 0:t.uuid,metadata:t==null?void 0:t.metadata,input_file:t==null?void 0:t.input_file,chapters:V8(t==null?void 0:t.chapters),output_files:H8(t==null?void 0:t.output_files),output_basename:t==null?void 0:t.output_basename,outgoing_services:t==null?void 0:t.outgoing_services,algorithms:t==null?void 0:t.algorithms,speech_recognition:t==null?void 0:t.speech_recognition}},dn={token:e=>e.token,production:e=>e.production,productionId:e=>{var t;return(t=e.production)==null?void 0:t.uuid},productions:e=>e.productions,presets:e=>e.presets,preset:e=>e.preset,productionPayload:z8,services:e=>e.services,incomingServices:e=>e.services.filter(t=>t.incoming),outgoingServices:e=>e.services.filter(t=>t.outgoing),serviceFiles:e=>e.service_files,tracks:e=>e.tracks,fileSelections:e=>e.file_selections,currentFileSelection:e=>e.current_file_selection,isSaving:e=>e.is_saving,isInitializing:e=>e.is_initializing,publishWhenDone:e=>e.publish_when_done,plusTransferStatus:e=>{var t;return(t=e.plus_transfer_status)==null?void 0:t.status},plusTransferFiles:e=>{var t;return(t=e.plus_transfer_status)==null?void 0:t.files},plusTransferErrors:e=>{var t;return(t=e.plus_transfer_status)==null?void 0:t.errors}},W8={},C$="podlove/publisher/progress/SET_PROGRESS",O$="podlove/publisher/progress/SET_PROGRESS_STATUS",A$="podlove/publisher/progress/RESET_PROGRESS",k$=oe(C$),ia=oe(O$),I$=oe(A$),q8=bn({[C$]:(e,t)=>{const{key:n,progress:r,status:o,message:i}=t.payload,l=e[n]||{progress:0,status:"init"};return{...e,[n]:{...l,progress:r,...o&&{status:o},...i!==void 0&&{message:i}}}},[O$]:(e,t)=>{const{key:n,status:r,message:o}=t.payload,i=e[n]||{progress:0,status:"init"};return{...e,[n]:{...i,status:r,...o!==void 0&&{message:o}}}},[A$]:(e,t)=>{const n={...e};return delete n[t.payload],n}},W8),K8=(e,t)=>{var n;return((n=e[t])==null?void 0:n.progress)??0},G8=(e,t)=>{var n;return((n=e[t])==null?void 0:n.status)??"init"},X8=(e,t)=>{var n;return(n=e[t])==null?void 0:n.message},Yp={progress:K8,status:G8,message:X8},Y8={is_initializing:!0,slug_autogeneration_enabled:!1,files:[],selectedFiles:[]},P$="podlove/publisher/mediafiles/INIT",R$="podlove/publisher/mediafiles/INIT_DONE",L$="podlove/publisher/mediafiles/SET",Kg="podlove/publisher/mediafiles/UPDATE",ed="podlove/publisher/mediafiles/ENABLE",td="podlove/publisher/mediafiles/DISABLE",F$="podlove/publisher/mediafiles/VERIFY",N$="podlove/publisher/mediafiles/VERIFY_ALL",M$="podlove/publisher/mediafiles/UPLOAD_INTENT",D$="podlove/publisher/mediafiles/PLUS_UPLOAD_INTENT",Gg="podlove/publisher/mediafiles/SET_UPLOAD_URL",U$="podlove/publisher/mediafiles/ENABLE_SLUG_AUTOGEN",B$="podlove/publisher/mediafiles/DISABLE_SLUG_AUTOGEN",j$="podlove/publisher/mediafiles/FILE_SELECTED",Wa="podlove/publisher/mediafiles/SET_FILE_INFO",V$="podlove/publisher/mediafiles/ADD_SELECTED_FILES",H$="podlove/publisher/mediafiles/REMOVE_SELECTED_FILE",z$="podlove/publisher/mediafiles/UNFREEZE_SLUG",J8=oe(P$),Z8=oe(R$),Q8=oe(L$),Xh=oe(Kg),eD=oe(ed),tD=oe(td),nD=oe(F$),rD=oe(N$),oD=oe(M$),sD=oe(D$),iD=oe(Gg),lD=oe(U$),W$=oe(B$),aD=(e,t)=>({type:j$,payload:{files:e,episodeSlug:t}});oe(V$);const uD=oe(H$),cD=oe(z$),dD=bn({[R$]:e=>({...e,is_initializing:!1}),[L$]:(e,t)=>({...e,files:t.payload}),[Kg]:(e,t)=>({...e,files:e.files.reduce((n,r)=>[...n,r.asset_id==t.payload.asset_id?{...r,...t.payload}:r],[])}),[ed]:(e,t)=>({...e,files:e.files.reduce((n,r)=>[...n,r.asset_id==t.payload?{...r,enable:!0}:r],[])}),[td]:(e,t)=>({...e,files:e.files.reduce((n,r)=>[...n,r.asset_id==t.payload?{...r,enable:!1}:r],[])}),[U$]:e=>({...e,slug_autogeneration_enabled:!0}),[B$]:e=>({...e,slug_autogeneration_enabled:!1}),[Wa]:(e,t)=>({...e,selectedFiles:t.payload}),[V$]:(e,t)=>({...e,selectedFiles:[...e.selectedFiles,...t.payload]}),[H$]:(e,t)=>({...e,selectedFiles:e.selectedFiles.filter(n=>n.newName!==t.payload)})},Y8),ic={isInitializing:e=>e.is_initializing,slugAutogenerationEnabled:e=>e.slug_autogeneration_enabled,files:e=>e.files,selectedFiles:e=>e.selectedFiles},fD={episodeList:[],selectEpisodes:[]},q$="podlove/publisher/relatedEpisodes/INIT",K$="podlove/publisher/relatedEpisodes/SET_EPISODE_LIST",Xg="podlove/publisher/relatedEpisodes/SET_SELECTED_EPISODES",pD="podlove/publisher/relatedEpisodes/UPDATE_RELATED_EPISODES",hD=oe(q$),mD=oe(K$),G$=oe(Xg);oe(pD);const gD=bn({[qr]:(e,t)=>({...e}),[K$]:(e,t)=>({...e,episodeList:t.payload}),[Xg]:(e,t)=>({...e,selectEpisodes:t.payload})},fD),D1={episodeList:e=>e.episodeList,selectEpisodes:e=>e.selectEpisodes},Yg="podlove/publisher/shows/INIT",Jg="podlove/publisher/shows/SET",nd="podlove/publisher/shows/SELECT",X$=oe(Yg),Y$=oe(Jg),J$=oe(nd),Z$={shows:[]},Q$=bn({[Jg]:(e,t)=>({...e,shows:Y.get(t,["payload"],[])})},Z$),ex={shows:e=>e.shows},vD=Object.freeze(Object.defineProperty({__proto__:null,INIT:Yg,SELECT:nd,SET:Jg,init:X$,initialState:Z$,reducer:Q$,select:J$,selectors:ex,set:Y$},Symbol.toStringTag,{value:"Module"})),tx="podlove/publisher/admin/INIT",nx="podlove/publisher/admin/SET",Zg="podlove/publisher/admin/UPDATE_TYPE",yD={bannerHide:null,type:null,feedUrl:null};oe(tx);const _D=oe(nx);oe(Zg);const bD=bn({[nx]:(e,t)=>({bannerHide:Y.get(t,["payload","banner_hide"],e.bannerHide),type:Y.get(t,["payload","type"],e.type),feedUrl:Y.get(t,["payload","feedUrl"],e.feedUrl)}),[Zg]:(e,t)=>({...e,type:t.payload})},yD),Jp={bannerHide:e=>e.bannerHide,type:e=>e.type,feedUrl:e=>e.feedUrl},me={lifecycle:e=>e.lifecycle,chapters:e=>e.chapters,podcast:e=>e.podcast,episode:e=>e.episode,runtime:e=>e.runtime,post:e=>e.post,transcripts:e=>e.transcripts,contributors:e=>e.contributors,auphonic:e=>e.auphonic,progress:e=>e.progress,mediafiles:e=>e.mediafiles,settings:e=>e.settings,relatedEpisodes:e=>e.relatedEpisodes,shows:e=>e.shows,admin:e=>e.admin,plusFileMigration:e=>e.plusFileMigration,plus:e=>e.plus},wD={bootstrapped:he(me.lifecycle,gM.bootstrapped)},SD={token:he(me.auphonic,dn.token),productionId:he(me.auphonic,dn.productionId),productions:he(me.auphonic,dn.productions),production:he(me.auphonic,dn.production),presets:he(me.auphonic,dn.presets),preset:he(me.auphonic,dn.preset),productionPayload:he(me.auphonic,dn.productionPayload),incomingServices:he(me.auphonic,dn.incomingServices),outgoingServices:he(me.auphonic,dn.outgoingServices),serviceFiles:he(me.auphonic,dn.serviceFiles),tracks:he(me.auphonic,dn.tracks),fileSelections:he(me.auphonic,dn.fileSelections),currentFileSelection:he(me.auphonic,dn.currentFileSelection),isSaving:he(me.auphonic,dn.isSaving),isInitializing:he(me.auphonic,dn.isInitializing),publishWhenDone:he(me.auphonic,dn.publishWhenDone),plusTransferStatus:he(me.auphonic,dn.plusTransferStatus),plusTransferFiles:he(me.auphonic,dn.plusTransferFiles),plusTransferErrors:he(me.auphonic,dn.plusTransferErrors)},ED={progress:he([me.progress,(e,t)=>t],Yp.progress),status:he([me.progress,(e,t)=>t],Yp.status),message:he([me.progress,(e,t)=>t],Yp.message)},$D={title:he(me.podcast,bo.title),subtitle:he(me.podcast,bo.subtitle),summary:he(me.podcast,bo.summary),mnemonic:he(me.podcast,bo.mnemonic),itunesType:he(me.podcast,bo.itunesType),author:he(me.podcast,bo.author),poster:he(me.podcast,bo.poster),link:he(me.podcast,bo.link),license_name:he(me.podcast,bo.license_name),license_url:he(me.podcast,bo.license_url)},xD={list:he(me.chapters,Wp.chapters),selected:he(me.chapters,Wp.selected),selectedIndex:he(me.chapters,Wp.selectedIndex)},rx={contributors:he(me.contributors,Xp.contributors),roles:he(me.contributors,Xp.roles),groups:he(me.contributors,Xp.groups)},TD={id:he(me.episode,Xt.id),slug:he(me.episode,Xt.slug),slugFrozen:he(me.episode,Xt.slugFrozen),duration:he(me.episode,Xt.duration),number:he(me.episode,Xt.number),title:he(me.episode,Xt.title),subtitle:he(me.episode,Xt.subtitle),summary:he(me.episode,Xt.summary),type:he(me.episode,Xt.type),poster:he(me.episode,Xt.poster),episodePoster:he(me.episode,Xt.episodePoster),mnemonic:he(me.episode,Xt.mnemonic),explicit:he(me.episode,Xt.explicit),soundbite_start:he(me.episode,Xt.soundbite_start),soundbite_duration:he(me.episode,Xt.soundbite_duration),soundbite_title:he(me.episode,Xt.soundbite_title),auphonicProductionId:he(me.episode,Xt.auphonicProductionId),isAuphonicProductionRunning:he(me.episode,Xt.isAuphonicProductionRunning),auphonicWebhookConfig:he(me.episode,Xt.auphonicWebhookConfig),license_name:he(me.episode,Xt.license_name),license_url:he(me.episode,Xt.license_url),contributions:he(he(me.episode,Xt.contributions),rx.contributors,(e,t)=>e.map(r=>({...r,...r.contributor_id?t.find(({id:o})=>o.toString()===r.contributor_id.toString()):{}}))),currentShow:he(me.episode,Xt.currentShow)},CD={isInitializing:he(me.mediafiles,ic.isInitializing),files:he(me.mediafiles,ic.files),selectedFiles:he(me.mediafiles,ic.selectedFiles),slugAutogenerationEnabled:he(me.mediafiles,ic.slugAutogenerationEnabled)},OD={baseUrl:he(me.runtime,Fl.baseUrl),nonce:he(me.runtime,Fl.nonce),base:he(me.runtime,Fl.base),auth:he(me.runtime,Fl.auth),bearer:he(me.runtime,Fl.bearer)},AD={id:he(me.post,Gp.id),title:he(me.post,Gp.title),featuredMedia:he(me.post,Gp.featured_media)},kD={list:he(me.transcripts,L1.transcripts),voices:he(me.transcripts,L1.voices)},ID={autoGenerateEpisodeTitle:he(me.settings,cs.autoGenerateEpisodeTitle),blogTitleTemplate:he(me.settings,cs.blogTitleTemplate),episodeNumberPadding:he(me.settings,cs.episodeNumberPadding),mediaFileBaseUri:he(me.settings,cs.mediaFileBaseUri),imageAsset:he(me.settings,cs.imageAsset),enableEpisodeExplicit:he(me.settings,cs.enableEpisodeExplicit),enablePlusStorage:he(me.settings,cs.enablePlusStorage),modules:he(me.settings,cs.modules)},PD={episodeList:he(me.relatedEpisodes,D1.episodeList),selectEpisode:he(me.relatedEpisodes,D1.selectEpisodes)},RD={list:he(me.shows,ex.shows)},LD={bannerHide:he(me.admin,Jp.bannerHide),type:he(me.admin,Jp.type),feedUrl:he(me.admin,Jp.feedUrl)},FD={totalState:he(me.plusFileMigration,Vs.totalState),progress:he(me.plusFileMigration,Vs.progress),currentEpisodeName:he(me.plusFileMigration,Vs.currentEpisodeName),currentFileName:he(me.plusFileMigration,Vs.currentFileName),episodesWithFiles:he(me.plusFileMigration,Vs.episodesWithFiles),isMigrationComplete:he(me.plusFileMigration,Vs.isMigrationComplete),showMigrationToolManually:he(me.plusFileMigration,Vs.showMigrationToolManually)},ND={features:he(me.plus,Nl.features),token:he(me.plus,Nl.token),user:he(me.plus,Nl.user),isLoading:he(me.plus,Nl.isLoading),isSaving:he(me.plus,Nl.isSaving)},B={lifecycle:wD,podcast:$D,chapters:xD,episode:TD,runtime:OD,post:AD,transcripts:kD,contributors:rx,settings:ID,auphonic:SD,progress:ED,mediafiles:CD,relatedEpisodes:PD,shows:RD,admin:LD,plusFileMigration:FD,plus:ND},MD=pS({lifecycle:mM,chapters:TM,episode:MM,runtime:UM,post:jM,transcripts:YM,contributors:n8,settings:i8,podcast:d8,auphonic:j8,progress:q8,mediafiles:dD,relatedEpisodes:gD,shows:Q$,admin:bD,plusFileMigration:b8,plus:$8});var U1=function(t){return{done:!0,value:t}},Zp={};function Kd(e){return Fd(e)?"channel":$S(e)?String(e):Gn(e)?e.name:String(e)}function Gd(e,t,n){var r,o,i,l=t;function a(c,d){if(l===Zp)return U1(c);if(d&&!o)throw l=Zp,d;r&&r(c);var p=d?e[o](d):e[l]();return l=p.nextState,i=p.effect,r=p.stateUpdater,o=p.errorState,l===Zp?U1(c):i}return Vh(a,function(c){return a(null,c)},n)}function DD(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i={done:!1,value:oo(e)},l=function(p){return{done:!1,value:St.apply(void 0,[t].concat(r,[p]))}},a,c=function(p){return a=p};return Gd({q1:function(){return{nextState:"q2",effect:i,stateUpdater:c}},q2:function(){return{nextState:"q1",effect:l(a)}}},"q1","takeEvery("+Kd(e)+", "+t.name+")")}function UD(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i={done:!1,value:oo(e)},l=function(y){return{done:!1,value:St.apply(void 0,[t].concat(r,[y]))}},a=function(y){return{done:!1,value:aN(y)}},c,d,p=function(y){return c=y},h=function(y){return d=y};return Gd({q1:function(){return{nextState:"q2",effect:i,stateUpdater:h}},q2:function(){return c?{nextState:"q3",effect:a(c)}:{nextState:"q1",effect:l(d),stateUpdater:p}},q3:function(){return{nextState:"q1",effect:l(d),stateUpdater:p}}},"q1","takeLatest("+Kd(e)+", "+t.name+")")}function BD(e,t,n){for(var r=arguments.length,o=new Array(r>3?r-3:0),i=3;i<r;i++)o[i-3]=arguments[i];var l,a,c=function(){return{done:!1,value:oo(a)}},d=function(S){return{done:!1,value:St.apply(void 0,[n].concat(o,[S]))}},p={done:!1,value:Md(e)},h=function(S){return l=S},v=function(S){return a=S},y=!Fd(t);return y||v(t),Gd({q1:function(){var S={done:!1,value:uN(t,Q7(1))};return{nextState:"q2",effect:S,stateUpdater:v}},q2:function(){return{nextState:"q3",effect:c(),stateUpdater:h}},q3:function(){return{nextState:"q4",effect:d(l)}},q4:function(){return{nextState:"q2",effect:p}}},y?"q1":"q2","throttle("+Kd(t)+", "+n.name+")")}function jD(e,t,n){for(var r=arguments.length,o=new Array(r>3?r-3:0),i=3;i<r;i++)o[i-3]=arguments[i];var l,a,c={done:!1,value:oo(t)},d={done:!1,value:Hh({action:oo(t),debounce:Md(e)})},p=function(S){return{done:!1,value:St.apply(void 0,[n].concat(o,[S]))}},h=function(S){return{done:!1,value:S}},v=function(S){return l=S},y=function(S){return a=S};return Gd({q1:function(){return{nextState:"q2",effect:c,stateUpdater:v}},q2:function(){return{nextState:"q3",effect:d,stateUpdater:y}},q3:function(){return a.debounce?{nextState:"q1",effect:p(l)}:{nextState:"q2",effect:h(a.action),stateUpdater:v}}},"q1","debounce("+Kd(t)+", "+n.name+")")}function Ne(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return St.apply(void 0,[DD,e,t].concat(r))}function B1(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return St.apply(void 0,[UD,e,t].concat(r))}function ox(e,t,n){for(var r=arguments.length,o=new Array(r>3?r-3:0),i=3;i<r;i++)o[i-3]=arguments[i];return St.apply(void 0,[BD,e,t,n].concat(o))}function Yh(e,t,n){for(var r=arguments.length,o=new Array(r>3?r-3:0),i=3;i<r;i++)o[i-3]=arguments[i];return St.apply(void 0,[jD,e,t,n].concat(o))}function VD(){return function*(){const e=yield $t(WD,"click","button.editor-post-publish-button");yield Ne(e,HD),yield Ne(qr,zD)}}function*HD(){yield te(fM())}function*zD(){yield te(pM())}function WD(e,t){return eE(n=>{let r;const o=i=>{n(i)};return window.addEventListener("load",()=>{r=document.querySelector(t),r==null||r.addEventListener(e,o)}),()=>{r==null||r.removeEventListener(e,o),n(zi)}})}const Jh=e=>eE(t=>(e(r=>{t(r||{})}),()=>{}));function*cr(e,t,...n){return yield St(function*(){for(;;){const o=yield oo(e);yield $t(t,...n.concat(o))}})}function*qD(e){if(!(yield be(e))){for(;;)if(yield oo("*"),yield be(e))return}}function*KD(e,t){try{for(;;){const n=yield oo(e);if(t.constructor.name==="GeneratorFunction")yield $t(function*(){yield*t(n)});else{const r=t(n);r&&(yield te(r))}}}finally{(yield cN())&&e.close()}}function*sx(e){const t=yield $t(Sg);return yield lN(KD,t,e),t}const ix=e=>t=>n=>{if(n.total){const r=Math.round(n.loaded*100/n.total),o={key:t,progress:r};e.put(o)}},fl=(e,t={})=>{const n=Object.keys(t).map(r=>encodeURIComponent(r)+"="+encodeURIComponent(t[r])).join("&");return e+=(e.indexOf("?")===-1?"?":"&")+n},qa=(e=console.error)=>async t=>{let n;try{n=await t.json()}catch{n={}}return t.status>=300?(e(n),{error:n}):{result:n}},lx=({nonce:e,auth:t,bearer:n},r={})=>({"Content-Type":"application/json",Accept:"application/json",...n?{Authorization:`Bearer ${n}`}:{},...t?{Authorization:`Basic ${t}`}:{},...e?{"X-WP-Nonce":e}:{},...r}),j1=({errorHandler:e,nonce:t,auth:n,bearer:r,method:o,urlProcessor:i})=>(l,{headers:a,query:c}={})=>fetch(fl(i?i(l):l,c),{method:o,headers:lx({nonce:t,auth:n,bearer:r},a)}).then(qa(e)),V1=({errorHandler:e,nonce:t,auth:n,bearer:r,method:o,urlProcessor:i})=>(l,a,{headers:c,query:d}={})=>fetch(fl(i?i(l):l,d),{method:o,headers:lx({nonce:t,auth:n,bearer:r},c),body:JSON.stringify(a)}).then(qa(e)),GD=Y.curry(({base:e,version:t,nonce:n,auth:r,bearer:o,errorHandler:i})=>({get:j1({nonce:n,auth:r,bearer:o,method:"GET",errorHandler:i,urlProcessor:l=>`${e}/${t}/${l}`}),delete:j1({nonce:n,auth:r,bearer:o,errorHandler:i,method:"DELETE",urlProcessor:l=>`${e}/${t}/${l}`}),post:V1({nonce:n,auth:r,bearer:o,errorHandler:i,method:"POST",urlProcessor:l=>`${e}/${t}/${l}`}),put:V1({nonce:n,auth:r,bearer:o,errorHandler:i,method:"PUT",urlProcessor:l=>`${e}/${t}/${l}`})})),ax="podlove/publisher/NOTIFY",Qg=oe(ax),XD={};bn({},XD);function*Kr(){yield $t(qD,B.lifecycle.bootstrapped);const e=yield be(B.runtime.base),t=yield be(B.runtime.nonce),n=yield be(B.runtime.auth),r=yield be(B.runtime.bearer);return GD({base:e,version:"v2",nonce:t,auth:n,bearer:r,errorHandler:function(i){let l="An error occurred";typeof i=="string"?l=i:i&&typeof i=="object"&&(i.code&&i.message?l=`${i.code}: ${i.message}`:l=i.message||i.code||"An error occurred"),tf.dispatch(Qg({type:"error",message:l}))}})}function*YD(){const e=yield Kr();yield St(JD,e),yield Ne(Ug,ZD)}function*JD(e){const{result:t}=yield e.get("podcast");t&&(yield te(c8(t)))}function ZD(e){const t=Y.get(e,["payload","prop"]);Y.get(e,["payload","value"],null)}function QD(){return function*(){yield cr(qr,YD)}}function e9(){return function*(){yield Ne(ax,t9)}}function*t9(e){const t=Y.get(globalThis,["wp","data","dispatch"]);t?n9(t,Y.get(e,["payload"])):r9(e.payload)}function n9(e,{type:t,message:n}){n&&e("core/notices").createNotice(t,n,{type:"snackbar",isDismissible:!0})}function r9({type:e,message:t}){switch(e){case"success":case"info":console.log(t);break;case"warning":console.warn(t);break;case"error":console.error(t);break}}var ux={};/*! For license information please see keyboard.js.LICENSE.txt */(()=>{var e={9620:(o,i)=>{function l(v){if(v&&typeof v=="object"){var y=v.which||v.keyCode||v.charCode;y&&(v=y)}if(typeof v=="number")return p[v];var b,S=String(v);return(b=a[S.toLowerCase()])?b:(b=c[S.toLowerCase()])||(S.length===1?S.charCodeAt(0):void 0)}l.isEventKey=function(v,y){if(v&&typeof v=="object"){var b=v.which||v.keyCode||v.charCode;if(b==null)return!1;if(typeof y=="string"){var S;if((S=a[y.toLowerCase()])||(S=c[y.toLowerCase()]))return S===b}else if(typeof y=="number")return y===b;return!1}};var a=(i=o.exports=l).code=i.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},c=i.aliases={windows:91,"⇧":16,"⌥":18,"⌃":17,"⌘":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};for(d=97;d<123;d++)a[String.fromCharCode(d)]=d-32;for(var d=48;d<58;d++)a[d-48]=d;for(d=1;d<13;d++)a["f"+d]=d+111;for(d=0;d<10;d++)a["numpad "+d]=d+96;var p=i.names=i.title={};for(d in a)p[a[d]]=d;for(var h in c)a[h]=c[h]}},t={};function n(o){var i=t[o];if(i!==void 0)return i.exports;var l=t[o]={exports:{}};return e[o](l,l.exports,n),l.exports}n.n=o=>{var i=o&&o.__esModule?()=>o.default:()=>o;return n.d(i,{a:i}),i},n.d=(o,i)=>{for(var l in i)n.o(i,l)&&!n.o(o,l)&&Object.defineProperty(o,l,{enumerable:!0,get:i[l]})},n.o=(o,i)=>Object.prototype.hasOwnProperty.call(o,i),n.r=o=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})};var r={};(()=>{function o(Q){return Q!=null&&typeof Q=="object"&&Q["@@functional/placeholder"]===!0}function i(Q){return function ce(ve){return arguments.length===0||o(ve)?ce:Q.apply(this,arguments)}}function l(Q){return function ce(ve,Ce){switch(arguments.length){case 0:return ce;case 1:return o(ve)?ce:i(function(We){return Q(ve,We)});default:return o(ve)&&o(Ce)?ce:o(ve)?i(function(We){return Q(We,Ce)}):o(Ce)?i(function(We){return Q(ve,We)}):Q(ve,Ce)}}}n.r(r),n.d(r,{keydown:()=>De,keyup:()=>Xe});const a=Number.isInteger||function(Q){return Q<<0===Q};function c(Q){return Object.prototype.toString.call(Q)==="[object String]"}const d=l(function(Q,ce){var ve=Q<0?ce.length+Q:Q;return c(ce)?ce.charAt(ve):ce[ve]}),p=l(function(Q,ce){return Q.map(function(ve){for(var Ce,We=ce,Ve=0;Ve<ve.length;){if(We==null)return;Ce=ve[Ve],We=a(Ce)?d(Ce,We):We[Ce],Ve+=1}return We})}),h=l(function(Q,ce){return p([Q],ce)[0]}),v=l(function(Q,ce){return h([Q],ce)});function y(Q){return function ce(ve,Ce,We){switch(arguments.length){case 0:return ce;case 1:return o(ve)?ce:l(function(Ve,rt){return Q(ve,Ve,rt)});case 2:return o(ve)&&o(Ce)?ce:o(ve)?l(function(Ve,rt){return Q(Ve,Ce,rt)}):o(Ce)?l(function(Ve,rt){return Q(ve,Ve,rt)}):i(function(Ve){return Q(ve,Ce,Ve)});default:return o(ve)&&o(Ce)&&o(We)?ce:o(ve)&&o(Ce)?l(function(Ve,rt){return Q(Ve,rt,We)}):o(ve)&&o(We)?l(function(Ve,rt){return Q(Ve,Ce,rt)}):o(Ce)&&o(We)?l(function(Ve,rt){return Q(ve,Ve,rt)}):o(ve)?i(function(Ve){return Q(Ve,Ce,We)}):o(Ce)?i(function(Ve){return Q(ve,Ve,We)}):o(We)?i(function(Ve){return Q(ve,Ce,Ve)}):Q(ve,Ce,We)}}}const b=l(function(Q,ce){return ce==null||ce!=ce?Q:ce}),S=y(function(Q,ce,ve){return b(Q,h(ce,ve))}),T=y(function(Q,ce,ve){return S(Q,[ce],ve)});function C(Q,ce){switch(Q){case 0:return function(){return ce.apply(this,arguments)};case 1:return function(ve){return ce.apply(this,arguments)};case 2:return function(ve,Ce){return ce.apply(this,arguments)};case 3:return function(ve,Ce,We){return ce.apply(this,arguments)};case 4:return function(ve,Ce,We,Ve){return ce.apply(this,arguments)};case 5:return function(ve,Ce,We,Ve,rt){return ce.apply(this,arguments)};case 6:return function(ve,Ce,We,Ve,rt,wn){return ce.apply(this,arguments)};case 7:return function(ve,Ce,We,Ve,rt,wn,an){return ce.apply(this,arguments)};case 8:return function(ve,Ce,We,Ve,rt,wn,an,M){return ce.apply(this,arguments)};case 9:return function(ve,Ce,We,Ve,rt,wn,an,M,V){return ce.apply(this,arguments)};case 10:return function(ve,Ce,We,Ve,rt,wn,an,M,V,Z){return ce.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function w(Q,ce){return function(){return ce.call(this,Q.apply(this,arguments))}}const E=Array.isArray||function(Q){return Q!=null&&Q.length>=0&&Object.prototype.toString.call(Q)==="[object Array]"},O=i(function(Q){return!!E(Q)||!!Q&&typeof Q=="object"&&!c(Q)&&(Q.nodeType===1?!!Q.length:Q.length===0||Q.length>0&&Q.hasOwnProperty(0)&&Q.hasOwnProperty(Q.length-1))});var $=function(){function Q(ce){this.f=ce}return Q.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},Q.prototype["@@transducer/result"]=function(ce){return ce},Q.prototype["@@transducer/step"]=function(ce,ve){return this.f(ce,ve)},Q}();const P=l(function(Q,ce){return C(Q.length,function(){return Q.apply(ce,arguments)})});function R(Q,ce,ve){for(var Ce=ve.next();!Ce.done;){if((ce=Q["@@transducer/step"](ce,Ce.value))&&ce["@@transducer/reduced"]){ce=ce["@@transducer/value"];break}Ce=ve.next()}return Q["@@transducer/result"](ce)}function k(Q,ce,ve,Ce){return Q["@@transducer/result"](ve[Ce](P(Q["@@transducer/step"],Q),ce))}var W=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function U(Q,ce,ve){if(typeof Q=="function"&&(Q=function(Ce){return new $(Ce)}(Q)),O(ve))return function(Ce,We,Ve){for(var rt=0,wn=Ve.length;rt<wn;){if((We=Ce["@@transducer/step"](We,Ve[rt]))&&We["@@transducer/reduced"]){We=We["@@transducer/value"];break}rt+=1}return Ce["@@transducer/result"](We)}(Q,ce,ve);if(typeof ve["fantasy-land/reduce"]=="function")return k(Q,ce,ve,"fantasy-land/reduce");if(ve[W]!=null)return R(Q,ce,ve[W]());if(typeof ve.next=="function")return R(Q,ce,ve);if(typeof ve.reduce=="function")return k(Q,ce,ve,"reduce");throw new TypeError("reduce: list must be array or iterable")}const j=y(U);function G(Q,ce){return function(){var ve=arguments.length;if(ve===0)return ce();var Ce=arguments[ve-1];return E(Ce)||typeof Ce[Q]!="function"?ce.apply(this,arguments):Ce[Q].apply(Ce,Array.prototype.slice.call(arguments,0,ve-1))}}const X=i(G("tail",y(G("slice",function(Q,ce,ve){return Array.prototype.slice.call(ve,Q,ce)}))(1,1/0)));function ne(){if(arguments.length===0)throw new Error("pipe requires at least one argument");return C(arguments[0].length,j(w,arguments[0],X(arguments)))}const xe=i(function(Q){return c(Q)?Q.split("").reverse().join(""):Array.prototype.slice.call(Q,0).reverse()});function Ee(){if(arguments.length===0)throw new Error("compose requires at least one argument");return ne.apply(this,xe(arguments))}var ke=n(9620),Ie=n.n(ke);const Qe=Q=>ce=>{v("nodeName",ce.target)==="BODY"&&Q(ce)},ht=Q=>({key:Ie()(Q),ctrl:T(!1,"ctrlKey",Q),shift:T(!1,"shiftKey",Q),meta:T(!1,"metaKey",Q),alt:T(!1,"altKey",Q)}),De=Q=>document.addEventListener("keydown",Qe(Ee(Q,ht))),Xe=Q=>document.addEventListener("keyup",Qe(Ee(Q,ht)))})(),ux.utils=r})();function o9(e){const t=/^([\d\.:]+)\s(.*)$/;return e.trim().split(/(\r?\n)/).reduce(function(n,r){var o=r.match(t);if(o){var i=za(o[1]);i!==null&&n.push({title:o[2].trim(),start:i})}return n},[])}function s9(e){const t=/^([\d\.,]+)\s+([\d\.,]+)\s+(.*)$/;return e.trim().split(/(\r\n|\r|\n)/).reduce(function(n,r){var o=r.match(t);if(o){var i=za(o[1].replace(",",".")),l=o[3].trim();i!==null&&n.push({title:l,start:i})}return n},[])}function i9(e){const r=new window.DOMParser().parseFromString(e,"text/xml").getElementsByTagName("Marker");let o=Array.from(r).reduce((i,l)=>{var p;if(!l||!l.getAttribute("Type")||((p=l.getAttribute("Type"))==null?void 0:p.toLowerCase())!=="chapter")return i;const a=za(l.getAttribute("Time")||""),c=l.getAttribute("Name")||"",d=l.getAttribute("URL")||"";return a!==null&&i.push({start:a,title:c.trim(),...d?{href:d.trim()}:{}}),i},[]);return o.sort(function(i,l){return i.start-l.start}),o}function l9(e){const r=new window.DOMParser().parseFromString(e,"text/xml").getElementsByTagNameNS("http://podlove.org/simple-chapters","chapter");return Array.from(r).reduce((o,i)=>{var l=za(i.getAttribute("start")||""),a=i.getAttribute("title")||"",c=i.getAttribute("href")||"",d=i.getAttribute("image")||"";return l!==null&&o.push({start:l,title:a.trim(),...c?{href:c.trim()}:{},...d?{image:d.trim()}:{}}),o},[])}const cx=Y.get(window,["wp","i18n","__"],e=>e),a9=cx,u9={install(e){e.config.globalProperties.__=(t,n)=>cx(t,n)}};function*c9(){const e=yield Kr();yield St(d9,e),yield Ne([uE],g9),yield Ne(dE,p9),yield Ne([Cg,kg,Ag,Og,Vd],f9,e);const t=yield $t(Jh,ux.utils.keydown);yield Ne(t,v9),yield Ne(fE,y9)}function*d9(e){const t=yield be(B.episode.id);if(!t)return;const{result:n}=yield e.get(`chapters/${t}`);n&&(yield te(EM(n.chapters.map(r=>({...r,start:Dt.fromString(r.start).totalMs})))))}function*f9(e){const t=yield be(B.episode.id),n=yield be(B.chapters.list);yield e.put(`chapters/${t}`,{chapters:n.map(r=>({...r,start:new Dt(r.start).pretty}))})}function*p9(e){const t=yield be(B.chapters.list);switch(e.payload){case"psc":H1("chapters.psc",h9(t));break;case"mp4":H1("chapters.txt",m9(t));break}}function h9(e){const t=new XMLSerializer,o=new DOMParser().parseFromString('<psc:chapters version="1.2" xmlns:psc="http://podlove.org/simple-chapters"/>',"text/xml");let i=o.getElementsByTagName("chapters");return i.length||(i=o.getElementsByTagName("psc:chapters")),i=i[0],e.forEach(c=>{let d=o.createElement("psc:chapter");d.setAttribute("title",c.title||""),d.setAttribute("start",c.start?new Dt(c.start).pretty:"00:00:00"),c.href&&d.setAttribute("href",c.href),c.image&&d.setAttribute("image",c.image),i.appendChild(d)}),t.serializeToString(o).replace(/\<psc:chapter\s/gi,` 47 47 <psc:chapter `).replace("</psc:chapters>",` 48 48 </psc:chapters>`)}function m9(e){const t=r=>isNaN(r.start)?"":new Dt(r.start).pretty,n=r=>r.href?"<"+r.href+">":"";return e.reduce((r,o)=>{let i=t(o)+" "+o.title+" "+n(o);return[...r,i.trim()]},[]).join(` 49 49 `)+` 50 `}function z_(e,t){var n=new Blob([t],{type:"text/plain"});const r=document.createElement("a");r.href=window.URL.createObjectURL(n),r.download=e,document.body.appendChild(r),r.click(),document.body.removeChild(r)}function*g9(e){const t=[o9,s9,i9,l9];let n=[];if(t.forEach(r=>{if(!(n!==null&&n.length>0))try{n=r(e.payload)}catch{n=null}}),n===null){yield te(ev({type:"error",message:a9("Unable to parse PSC chapters.","podlove-podcasting-plugin-for-wordpress")}));return}yield te(pE(n))}function*v9(e){const t=yield be(B.chapters.selectedIndex);if(t===null)return;const n=yield be(B.chapters.list);switch(!0){case e.key==="up":t===0?yield te(ms(n.length-1)):yield te(ms(t-1));break;case e.key==="down":t===n.length-1?yield te(ms(0)):yield te(ms(t+1));break;case e.key==="esc":yield te(ms(null));break}}function*y9(){yield te(Dg({onSuccess:{type:kg}}))}function _9(){return function*(){yield ur(aE,c9)}}function*b9(){const e=yield qr();yield St(Gd,e),yield Ne(CE,w9,e),yield Ne(Ug,E9,e),yield Ne(AE,$9,e),yield Ne(OE,S9,e)}function*Gd(e){const t=yield be(B.episode.id),[n,r]=yield Promise.all([e.get(`transcripts/${t}`),e.get(`transcripts/voices/${t}`)]);yield te(HM(Y.get(n,["result","transcript"],[]))),yield te(zM(Y.get(r,["result","voices"],[])))}function*w9(e,t){const n=yield be(B.episode.id),{result:r}=yield e.put(`transcripts/${n}`,{content:t.payload});r&&(yield St(Gd,e))}function*S9(e,t){const n=yield be(B.episode.id),{result:r}=yield e.put(`transcripts/${n}`,{asset:1});r&&(yield St(Gd,e))}function*E9(e,t){const n=yield be(B.episode.id);yield e.post(`transcripts/voices/${n}`,{voice:t.payload.voice,contributor_id:t.payload.contributor})}function*$9(e){const t=yield be(B.episode.id),{result:n}=yield e.delete(`transcripts/${t}`);n&&(yield St(Gd,e))}function x9(){return function*(){yield ur($E,b9)}}function*T9(){const e=yield qr();yield St(A9,e),yield St(k9,e),yield St(I9,e),yield St(C9,e),yield Ne(wE,P9,e),yield ox(3e3,[Rg,Pg,Lg,Fg,Ng],O9,e)}function*C9(e){const t=yield be(B.episode.id);if(!t)return;const{result:n}=yield e.get(`episodes/${t}/contributions`);n&&(yield te(Mg({contributions:Y.get(n,["contribution"],[])})))}function*O9(e){const t=yield be(B.episode.id);if(!t)return;const n=yield be(B.contributors.roles),r=yield be(B.contributors.groups);let i=(yield be(B.episode.contributions)).map(function({contributor_id:l,role_id:a,group_id:c,position:d,comment:p}){return{contributor_id:Y.toInteger(l),role_id:Y.toInteger(a)==0&&n.length>0?n[0].id:Y.toInteger(a),group_id:Y.toInteger(c)==0&&r.length>0?r[0].id:Y.toInteger(c),position:Y.toInteger(d),comment:p||""}});yield e.put(`episodes/${t}/contributions`,{contributors:i})}function*A9(e){const{result:t}=yield e.get("contributors",{query:{filter:"all"}});t&&(yield te(ZM(Y.get(t,"contributors",[]))))}function*k9(e){const{result:t}=yield e.get("contributors/roles");t&&(yield te(QM(Y.get(t,"roles",[]))))}function*I9(e){const{result:t}=yield e.get("contributors/groups");t&&(yield te(e8(Y.get(t,"groups",[]))))}function*P9(e,t){const{result:n,error:r}=yield e.post("contributors",{});if(r)return;const o=n==null?void 0:n.id,i=Y.get(t,["payload"]),{error:l}=yield e.put(`contributors/${o}`,{realname:i});if(l)return;const a={id:o,realname:i};yield te(t8(a)),yield te(SE(a))}function R9(){return function*(){yield ur(kE,T9)}}const Bo=Y.get(window,["wp","data"],null),dx=Y.get(window,["wp","media"],null),ri=document.querySelector('input[name="post_title"]'),L9=e=>ri==null?void 0:ri.addEventListener("change",t=>e(Y.get(t,["target","value"])));function*F9(){const e=yield be(B.settings.autoGenerateEpisodeTitle);typeof(Bo==null?void 0:Bo.subscribe)<"u"&&(yield Ne(yield $t(Yh,Bo==null?void 0:Bo.subscribe),D9)),ri&&(yield Ne(yield $t(Yh,L9),fx)),e&&(yield Ne(Vd,W_),yield Ne(tl,W_)),dx&&(yield Ne(EE,U9))}function N9(){return Bo.select("core/editor").getEditedPostAttribute("featured_media")}function M9(){return Bo.select("core/editor").getEditedPostAttribute("title")}function*D9(){const e=M9(),t=N9(),n=t?Bo.select("core").getMedia(t):null,r=yield be(B.post.title),o=yield be(B.post.featuredMedia);r!=e&&(yield te(zh({prop:"title",value:e}))),Y.get(o,["id"])!=Y.get(n,["id"])&&(yield te(zh({prop:"featured_media",value:n})))}function*fx(e){yield te(zh({prop:"title",value:e}))}function*W_(){if(!ri)return;const e=yield be(B.settings.blogTitleTemplate);if(!e)return;const t=yield be(B.episode.title),n=yield be(B.episode.number),r=yield be(B.podcast.mnemonic),o=yield be(B.settings.episodeNumberPadding),i=e.replace("%mnemonic%",r||"").replace("%episode_number%",(n||"").padStart(o||0,"0")).replace("%season_number%","").replace("%episode_title%",t||"");ri.value!=i&&(ri.value=i,yield fx(i))}function*U9(e){const t=Y.get(e,["payload","onSuccess"]);if(!t){console.warn("Missing successAction");return}const n=dx({title:"Select or Upload Media Of Your Chosen Persuasion",button:{text:"Use this media"},multiple:!1}),r=new Promise(o=>{n.on("select",()=>{const{url:i}=n.state().get("selection").first().toJSON();o(i)})});n.open();try{const o=yield r;yield te({...t,payload:o})}finally{}}function B9(){return function*(){yield ur(Wr,F9)}}let Wl={};function*j9(){const e=yield qr();yield St(H9,e),yield Ne(tl,z9),yield Xh(1e3,tl,q_,e),yield Xh(50,vE,q_,e),yield Ne(yE,W9),yield Ne(bE,q9),yield Ne(_E,K9),yield Ne(zd,G9),yield Ne(Vd,V9)}function*V9(){const e=yield be(B.episode.auphonicWebhookConfig);e&&(yield te(x$(e.enabled)))}function*H9(e){const t=yield be(B.episode.id),{result:n}=yield e.get(`episodes/${t}`);n&&(n.slug===null&&(yield te(lD())),yield te(Mg(n)))}function*z9(e){const t=Y.get(e,["payload","prop"]),n=Y.get(e,["payload","value"],null);if(t){if(t==="slug"&&(yield be(B.episode.slugFrozen))){console.warn("Attempted to update frozen slug - update blocked");return}Wl[t]=n}}function*q_(e,t){const n=yield be(B.episode.id);Y.isEmpty(Wl)||(yield e.put(`episodes/${n}`,Wl,{query:{skip_validation:"1"}}),yield te(FM(Wl)),Wl={})}function*W9(e){Object.keys(e.payload).includes("slug")&&(yield te(NM()))}function*q9(){yield te(Dg({onSuccess:{type:_E}}))}function*K9(e){yield te(bt({prop:"episode_poster",value:Y.get(e,["payload"])}))}function*G9(e){if((yield be(B.settings.imageAsset))!="post-thumbnail"||Y.get(e,["payload","prop"])!="featured_media")return;const n=Y.get(e,["payload","value","source_url"]);yield te(bt({prop:"poster",value:n}))}function X9(){return function*(){yield ur(gE,j9)}}function px(e,t){return function(){return e.apply(t,arguments)}}const{toString:Y9}=Object.prototype,{getPrototypeOf:tv}=Object,Xd=(e=>t=>{const n=Y9.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),fo=e=>(e=e.toLowerCase(),t=>Xd(t)===e),Yd=e=>t=>typeof t===e,{isArray:pl}=Array,Ta=Yd("undefined");function J9(e){return e!==null&&!Ta(e)&&e.constructor!==null&&!Ta(e.constructor)&&Er(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const hx=fo("ArrayBuffer");function Z9(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&hx(e.buffer),t}const Q9=Yd("string"),Er=Yd("function"),mx=Yd("number"),Jd=e=>e!==null&&typeof e=="object",eU=e=>e===!0||e===!1,Ec=e=>{if(Xd(e)!=="object")return!1;const t=tv(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},tU=fo("Date"),nU=fo("File"),rU=fo("Blob"),oU=fo("FileList"),sU=e=>Jd(e)&&Er(e.pipe),iU=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Er(e.append)&&((t=Xd(e))==="formdata"||t==="object"&&Er(e.toString)&&e.toString()==="[object FormData]"))},lU=fo("URLSearchParams"),[aU,uU,cU,dU]=["ReadableStream","Request","Response","Headers"].map(fo),fU=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ka(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),pl(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),l=i.length;let a;for(r=0;r<l;r++)a=i[r],t.call(null,e[a],a,e)}}function gx(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Ys=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,vx=e=>!Ta(e)&&e!==Ys;function Jh(){const{caseless:e}=vx(this)&&this||{},t={},n=(r,o)=>{const i=e&&gx(t,o)||o;Ec(t[i])&&Ec(r)?t[i]=Jh(t[i],r):Ec(r)?t[i]=Jh({},r):pl(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&Ka(arguments[r],n);return t}const pU=(e,t,n,{allOwnKeys:r}={})=>(Ka(t,(o,i)=>{n&&Er(o)?e[i]=px(o,n):e[i]=o},{allOwnKeys:r}),e),hU=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),mU=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},gU=(e,t,n,r)=>{let o,i,l;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)l=o[i],(!r||r(l,e,t))&&!a[l]&&(t[l]=e[l],a[l]=!0);e=n!==!1&&tv(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},vU=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},yU=e=>{if(!e)return null;if(pl(e))return e;let t=e.length;if(!mx(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},_U=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&tv(Uint8Array)),bU=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},wU=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},SU=fo("HTMLFormElement"),EU=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),K_=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),$U=fo("RegExp"),yx=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Ka(n,(o,i)=>{let l;(l=t(o,i,e))!==!1&&(r[i]=l||o)}),Object.defineProperties(e,r)},xU=e=>{yx(e,(t,n)=>{if(Er(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Er(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},TU=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return pl(e)?r(e):r(String(e).split(t)),n},CU=()=>{},OU=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Zp="abcdefghijklmnopqrstuvwxyz",G_="0123456789",_x={DIGIT:G_,ALPHA:Zp,ALPHA_DIGIT:Zp+Zp.toUpperCase()+G_},AU=(e=16,t=_x.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function kU(e){return!!(e&&Er(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const IU=e=>{const t=new Array(10),n=(r,o)=>{if(Jd(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=pl(r)?[]:{};return Ka(r,(l,a)=>{const c=n(l,o+1);!Ta(c)&&(i[a]=c)}),t[o]=void 0,i}}return r};return n(e,0)},PU=fo("AsyncFunction"),RU=e=>e&&(Jd(e)||Er(e))&&Er(e.then)&&Er(e.catch),bx=((e,t)=>e?setImmediate:t?((n,r)=>(Ys.addEventListener("message",({source:o,data:i})=>{o===Ys&&i===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Ys.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Er(Ys.postMessage)),LU=typeof queueMicrotask<"u"?queueMicrotask.bind(Ys):typeof process<"u"&&process.nextTick||bx,ee={isArray:pl,isArrayBuffer:hx,isBuffer:J9,isFormData:iU,isArrayBufferView:Z9,isString:Q9,isNumber:mx,isBoolean:eU,isObject:Jd,isPlainObject:Ec,isReadableStream:aU,isRequest:uU,isResponse:cU,isHeaders:dU,isUndefined:Ta,isDate:tU,isFile:nU,isBlob:rU,isRegExp:$U,isFunction:Er,isStream:sU,isURLSearchParams:lU,isTypedArray:_U,isFileList:oU,forEach:Ka,merge:Jh,extend:pU,trim:fU,stripBOM:hU,inherits:mU,toFlatObject:gU,kindOf:Xd,kindOfTest:fo,endsWith:vU,toArray:yU,forEachEntry:bU,matchAll:wU,isHTMLForm:SU,hasOwnProperty:K_,hasOwnProp:K_,reduceDescriptors:yx,freezeMethods:xU,toObjectSet:TU,toCamelCase:EU,noop:CU,toFiniteNumber:OU,findKey:gx,global:Ys,isContextDefined:vx,ALPHABET:_x,generateString:AU,isSpecCompliantForm:kU,toJSONObject:IU,isAsyncFn:PU,isThenable:RU,setImmediate:bx,asap:LU};function ot(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}ee.inherits(ot,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ee.toJSONObject(this.config),code:this.code,status:this.status}}});const wx=ot.prototype,Sx={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Sx[e]={value:e}});Object.defineProperties(ot,Sx);Object.defineProperty(wx,"isAxiosError",{value:!0});ot.from=(e,t,n,r,o,i)=>{const l=Object.create(wx);return ee.toFlatObject(e,l,function(c){return c!==Error.prototype},a=>a!=="isAxiosError"),ot.call(l,e.message,t,n,r,o),l.cause=e,l.name=e.name,i&&Object.assign(l,i),l};const FU=null;function Zh(e){return ee.isPlainObject(e)||ee.isArray(e)}function Ex(e){return ee.endsWith(e,"[]")?e.slice(0,-2):e}function X_(e,t,n){return e?e.concat(t).map(function(o,i){return o=Ex(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function NU(e){return ee.isArray(e)&&!e.some(Zh)}const MU=ee.toFlatObject(ee,{},null,function(t){return/^is[A-Z]/.test(t)});function Zd(e,t,n){if(!ee.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=ee.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,T){return!ee.isUndefined(T[S])});const r=n.metaTokens,o=n.visitor||p,i=n.dots,l=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&ee.isSpecCompliantForm(t);if(!ee.isFunction(o))throw new TypeError("visitor must be a function");function d(b){if(b===null)return"";if(ee.isDate(b))return b.toISOString();if(!c&&ee.isBlob(b))throw new ot("Blob is not supported. Use a Buffer instead.");return ee.isArrayBuffer(b)||ee.isTypedArray(b)?c&&typeof Blob=="function"?new Blob([b]):Buffer.from(b):b}function p(b,S,T){let C=b;if(b&&!T&&typeof b=="object"){if(ee.endsWith(S,"{}"))S=r?S:S.slice(0,-2),b=JSON.stringify(b);else if(ee.isArray(b)&&NU(b)||(ee.isFileList(b)||ee.endsWith(S,"[]"))&&(C=ee.toArray(b)))return S=Ex(S),C.forEach(function(E,O){!(ee.isUndefined(E)||E===null)&&t.append(l===!0?X_([S],O,i):l===null?S:S+"[]",d(E))}),!1}return Zh(b)?!0:(t.append(X_(T,S,i),d(b)),!1)}const h=[],v=Object.assign(MU,{defaultVisitor:p,convertValue:d,isVisitable:Zh});function y(b,S){if(!ee.isUndefined(b)){if(h.indexOf(b)!==-1)throw Error("Circular reference detected in "+S.join("."));h.push(b),ee.forEach(b,function(C,w){(!(ee.isUndefined(C)||C===null)&&o.call(t,C,ee.isString(w)?w.trim():w,S,v))===!0&&y(C,S?S.concat(w):[w])}),h.pop()}}if(!ee.isObject(e))throw new TypeError("data must be an object");return y(e),t}function Y_(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function nv(e,t){this._pairs=[],e&&Zd(e,this,t)}const $x=nv.prototype;$x.append=function(t,n){this._pairs.push([t,n])};$x.toString=function(t){const n=t?function(r){return t.call(this,r,Y_)}:Y_;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function DU(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function xx(e,t,n){if(!t)return e;const r=n&&n.encode||DU,o=n&&n.serialize;let i;if(o?i=o(t,n):i=ee.isURLSearchParams(t)?t.toString():new nv(t,n).toString(r),i){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class J_{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ee.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Tx={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},UU=typeof URLSearchParams<"u"?URLSearchParams:nv,BU=typeof FormData<"u"?FormData:null,jU=typeof Blob<"u"?Blob:null,VU={isBrowser:!0,classes:{URLSearchParams:UU,FormData:BU,Blob:jU},protocols:["http","https","file","blob","url","data"]},rv=typeof window<"u"&&typeof document<"u",Qh=typeof navigator=="object"&&navigator||void 0,HU=rv&&(!Qh||["ReactNative","NativeScript","NS"].indexOf(Qh.product)<0),zU=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",WU=rv&&window.location.href||"http://localhost",qU=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:rv,hasStandardBrowserEnv:HU,hasStandardBrowserWebWorkerEnv:zU,navigator:Qh,origin:WU},Symbol.toStringTag,{value:"Module"})),nr={...qU,...VU};function KU(e,t){return Zd(e,new nr.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return nr.isNode&&ee.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function GU(e){return ee.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function XU(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}function Cx(e){function t(n,r,o,i){let l=n[i++];if(l==="__proto__")return!0;const a=Number.isFinite(+l),c=i>=n.length;return l=!l&&ee.isArray(o)?o.length:l,c?(ee.hasOwnProp(o,l)?o[l]=[o[l],r]:o[l]=r,!a):((!o[l]||!ee.isObject(o[l]))&&(o[l]=[]),t(n,r,o[l],i)&&ee.isArray(o[l])&&(o[l]=XU(o[l])),!a)}if(ee.isFormData(e)&&ee.isFunction(e.entries)){const n={};return ee.forEachEntry(e,(r,o)=>{t(GU(r),o,n,0)}),n}return null}function YU(e,t,n){if(ee.isString(e))try{return(t||JSON.parse)(e),ee.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const Ga={transitional:Tx,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=ee.isObject(t);if(i&&ee.isHTMLForm(t)&&(t=new FormData(t)),ee.isFormData(t))return o?JSON.stringify(Cx(t)):t;if(ee.isArrayBuffer(t)||ee.isBuffer(t)||ee.isStream(t)||ee.isFile(t)||ee.isBlob(t)||ee.isReadableStream(t))return t;if(ee.isArrayBufferView(t))return t.buffer;if(ee.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return KU(t,this.formSerializer).toString();if((a=ee.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Zd(a?{"files[]":t}:t,c&&new c,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),YU(t)):t}],transformResponse:[function(t){const n=this.transitional||Ga.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(ee.isResponse(t)||ee.isReadableStream(t))return t;if(t&&ee.isString(t)&&(r&&!this.responseType||o)){const l=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(a){if(l)throw a.name==="SyntaxError"?ot.from(a,ot.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:nr.classes.FormData,Blob:nr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ee.forEach(["delete","get","head","post","put","patch"],e=>{Ga.headers[e]={}});const JU=ee.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ZU=e=>{const t={};let n,r,o;return e&&e.split(`51 `).forEach(function(l){o=l.indexOf(":"),n=l.substring(0,o).trim().toLowerCase(),r=l.substring(o+1).trim(),!(!n||t[n]&&JU[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t}, Z_=Symbol("internals");function Ml(e){return e&&String(e).trim().toLowerCase()}function $c(e){return e===!1||e==null?e:ee.isArray(e)?e.map($c):String(e)}function QU(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const eB=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Qp(e,t,n,r,o){if(ee.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!ee.isString(t)){if(ee.isString(r))return t.indexOf(r)!==-1;if(ee.isRegExp(r))return r.test(t)}}function tB(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function nB(e,t){const n=ee.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,l){return this[r].call(this,t,o,i,l)},configurable:!0})})}class rr{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(a,c,d){const p=Ml(c);if(!p)throw new Error("header name must be a non-empty string");const h=ee.findKey(o,p);(!h||o[h]===void 0||d===!0||d===void 0&&o[h]!==!1)&&(o[h||c]=$c(a))}const l=(a,c)=>ee.forEach(a,(d,p)=>i(d,p,c));if(ee.isPlainObject(t)||t instanceof this.constructor)l(t,n);else if(ee.isString(t)&&(t=t.trim())&&!eB(t))l(ZU(t),n);else if(ee.isHeaders(t))for(const[a,c]of t.entries())i(c,a,r);else t!=null&&i(n,t,r);return this}get(t,n){if(t=Ml(t),t){const r=ee.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return QU(o);if(ee.isFunction(n))return n.call(this,o,r);if(ee.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ml(t),t){const r=ee.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Qp(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(l){if(l=Ml(l),l){const a=ee.findKey(r,l);a&&(!n||Qp(r,r[a],a,n))&&(delete r[a],o=!0)}}return ee.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||Qp(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return ee.forEach(this,(o,i)=>{const l=ee.findKey(r,i);if(l){n[l]=$c(o),delete n[i];return}const a=t?tB(i):String(i).trim();a!==i&&delete n[i],n[a]=$c(o),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return ee.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&ee.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`52 `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[ Z_]=this[Z_]={accessors:{}}).accessors,o=this.prototype;function i(l){const a=Ml(l);r[a]||(nB(o,l),r[a]=!0)}return ee.isArray(t)?t.forEach(i):i(t),this}}rr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ee.reduceDescriptors(rr.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});ee.freezeMethods(rr);function eh(e,t){const n=this||Ga,r=t||n,o=rr.from(r.headers);let i=r.data;return ee.forEach(e,function(a){i=a.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Ox(e){return!!(e&&e.__CANCEL__)}function hl(e,t,n){ot.call(this,e??"canceled",ot.ERR_CANCELED,t,n),this.name="CanceledError"}ee.inherits(hl,ot,{__CANCEL__:!0});function Ax(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new ot("Request failed with status code "+n.status,[ot.ERR_BAD_REQUEST,ot.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function rB(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function oB(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,l;return t=t!==void 0?t:1e3,function(c){const d=Date.now(),p=r[i];l||(l=d),n[o]=c,r[o]=d;let h=i,v=0;for(;h!==o;)v+=n[h++],h=h%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),d-l<t)return;const y=p&&d-p;return y?Math.round(v*1e3/y):void 0}}function sB(e,t){let n=0,r=1e3/t,o,i;const l=(d,p=Date.now())=>{n=p,o=null,i&&(clearTimeout(i),i=null),e.apply(null,d)};return[(...d)=>{const p=Date.now(),h=p-n;h>=r?l(d,p):(o=d,i||(i=setTimeout(()=>{i=null,l(o)},r-h)))},()=>o&&l(o)]}const rd=(e,t,n=3)=>{let r=0;const o=oB(50,250);return sB(i=>{const l=i.loaded,a=i.lengthComputable?i.total:void 0,c=l-r,d=o(c),p=l<=a;r=l;const h={loaded:l,total:a,progress:a?l/a:void 0,bytes:c,rate:d||void 0,estimated:d&&a&&p?(a-l)/d:void 0,event:i,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(h)},n)},Q_=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},eb=e=>(...t)=>ee.asap(()=>e(...t)),iB=nr.hasStandardBrowserEnv?function(){const t=nr.navigator&&/(msie|trident)/i.test(nr.navigator.userAgent),n=document.createElement("a");let r;function o(i){let l=i;return t&&(n.setAttribute("href",l),l=n.href),n.setAttribute("href",l),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(l){const a=ee.isString(l)?o(l):l;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}(),lB=nr.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const l=[e+"="+encodeURIComponent(t)];ee.isNumber(n)&&l.push("expires="+new Date(n).toGMTString()),ee.isString(r)&&l.push("path="+r),ee.isString(o)&&l.push("domain="+o),i===!0&&l.push("secure"),document.cookie=l.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function aB(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function uB(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function kx(e,t){return e&&!aB(t)?uB(e,t):t}const tb=e=>e instanceof rr?{...e}:e;function fi(e,t){t=t||{};const n={};function r(d,p,h){return ee.isPlainObject(d)&&ee.isPlainObject(p)?ee.merge.call({caseless:h},d,p):ee.isPlainObject(p)?ee.merge({},p):ee.isArray(p)?p.slice():p}function o(d,p,h){if(ee.isUndefined(p)){if(!ee.isUndefined(d))return r(void 0,d,h)}else return r(d,p,h)}function i(d,p){if(!ee.isUndefined(p))return r(void 0,p)}function l(d,p){if(ee.isUndefined(p)){if(!ee.isUndefined(d))return r(void 0,d)}else return r(void 0,p)}function a(d,p,h){if(h in t)return r(d,p);if(h in e)return r(void 0,d)}const c={url:i,method:i,data:i,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:a,headers:(d,p)=>o(tb(d),tb(p),!0)};return ee.forEach(Object.keys(Object.assign({},e,t)),function(p){const h=c[p]||o,v=h(e[p],t[p],p);ee.isUndefined(v)&&h!==a||(n[p]=v)}),n}const Ix=e=>{const t=fi({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:l,auth:a}=t;t.headers=l=rr.from(l),t.url=xx(kx(t.baseURL,t.url),e.params,e.paramsSerializer),a&&l.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let c;if(ee.isFormData(n)){if(nr.hasStandardBrowserEnv||nr.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if((c=l.getContentType())!==!1){const[d,...p]=c?c.split(";").map(h=>h.trim()).filter(Boolean):[];l.setContentType([d||"multipart/form-data",...p].join("; "))}}if(nr.hasStandardBrowserEnv&&(r&&ee.isFunction(r)&&(r=r(t)),r||r!==!1&&iB(t.url))){const d=o&&i&&lB.read(i);d&&l.set(o,d)}return t},cB=typeof XMLHttpRequest<"u",dB=cB&&function(e){return new Promise(function(n,r){const o=Ix(e);let i=o.data;const l=rr.from(o.headers).normalize();let{responseType:a,onUploadProgress:c,onDownloadProgress:d}=o,p,h,v,y,b;function S(){y&&y(),b&&b(),o.cancelToken&&o.cancelToken.unsubscribe(p),o.signal&&o.signal.removeEventListener("abort",p)}let T=new XMLHttpRequest;T.open(o.method.toUpperCase(),o.url,!0),T.timeout=o.timeout;function C(){if(!T)return;const E=rr.from("getAllResponseHeaders"in T&&T.getAllResponseHeaders()),$={data:!a||a==="text"||a==="json"?T.responseText:T.response,status:T.status,statusText:T.statusText,headers:E,config:e,request:T};Ax(function(R){n(R),S()},function(R){r(R),S()},$),T=null}"onloadend"in T?T.onloadend=C:T.onreadystatechange=function(){!T||T.readyState!==4||T.status===0&&!(T.responseURL&&T.responseURL.indexOf("file:")===0)||setTimeout(C)},T.onabort=function(){T&&(r(new ot("Request aborted",ot.ECONNABORTED,e,T)),T=null)},T.onerror=function(){r(new ot("Network Error",ot.ERR_NETWORK,e,T)),T=null},T.ontimeout=function(){let O=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const $=o.transitional||Tx;o.timeoutErrorMessage&&(O=o.timeoutErrorMessage),r(new ot(O,$.clarifyTimeoutError?ot.ETIMEDOUT:ot.ECONNABORTED,e,T)),T=null},i===void 0&&l.setContentType(null),"setRequestHeader"in T&&ee.forEach(l.toJSON(),function(O,$){T.setRequestHeader($,O)}),ee.isUndefined(o.withCredentials)||(T.withCredentials=!!o.withCredentials),a&&a!=="json"&&(T.responseType=o.responseType),d&&([v,b]=rd(d,!0),T.addEventListener("progress",v)),c&&T.upload&&([h,y]=rd(c),T.upload.addEventListener("progress",h),T.upload.addEventListener("loadend",y)),(o.cancelToken||o.signal)&&(p=E=>{T&&(r(!E||E.type?new hl(null,e,T):E),T.abort(),T=null)},o.cancelToken&&o.cancelToken.subscribe(p),o.signal&&(o.signal.aborted?p():o.signal.addEventListener("abort",p)));const w=rB(o.url);if(w&&nr.protocols.indexOf(w)===-1){r(new ot("Unsupported protocol "+w+":",ot.ERR_BAD_REQUEST,e));return}T.send(i||null)})},fB=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const i=function(d){if(!o){o=!0,a();const p=d instanceof Error?d:this.reason;r.abort(p instanceof ot?p:new hl(p instanceof Error?p.message:p))}};let l=t&&setTimeout(()=>{l=null,i(new ot(`timeout ${t} of ms exceeded`,ot.ETIMEDOUT))},t);const a=()=>{e&&(l&&clearTimeout(l),l=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(i):d.removeEventListener("abort",i)}),e=null)};e.forEach(d=>d.addEventListener("abort",i));const{signal:c}=r;return c.unsubscribe=()=>ee.asap(a),c}},pB=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},hB=async function*(e,t){for await(const n of mB(e))yield*pB(n,t)},mB=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},nb=(e,t,n,r)=>{const o=hB(e,t);let i=0,l,a=c=>{l||(l=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:d,value:p}=await o.next();if(d){a(),c.close();return}let h=p.byteLength;if(n){let v=i+=h;n(v)}c.enqueue(new Uint8Array(p))}catch(d){throw a(d),d}},cancel(c){return a(c),o.return()}},{highWaterMark:2})},Qd=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Px=Qd&&typeof ReadableStream=="function",gB=Qd&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Rx=(e,...t)=>{try{return!!e(...t)}catch{return!1}},vB=Px&&Rx(()=>{let e=!1;const t=new Request(nr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),rb=64*1024,em=Px&&Rx(()=>ee.isReadableStream(new Response("").body)),od={stream:em&&(e=>e.body)};Qd&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!od[t]&&(od[t]=ee.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new ot(`Response type '${t}' is not supported`,ot.ERR_NOT_SUPPORT,r)})})})(new Response);const yB=async e=>{if(e==null)return 0;if(ee.isBlob(e))return e.size;if(ee.isSpecCompliantForm(e))return(await new Request(nr.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(ee.isArrayBufferView(e)||ee.isArrayBuffer(e))return e.byteLength;if(ee.isURLSearchParams(e)&&(e=e+""),ee.isString(e))return(await gB(e)).byteLength},_B=async(e,t)=>{const n=ee.toFiniteNumber(e.getContentLength());return n??yB(t)},bB=Qd&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:l,onDownloadProgress:a,onUploadProgress:c,responseType:d,headers:p,withCredentials:h="same-origin",fetchOptions:v}=Ix(e);d=d?(d+"").toLowerCase():"text";let y=fB([o,i&&i.toAbortSignal()],l),b;const S=y&&y.unsubscribe&&(()=>{y.unsubscribe()});let T;try{if(c&&vB&&n!=="get"&&n!=="head"&&(T=await _B(p,r))!==0){let $=new Request(t,{method:"POST",body:r,duplex:"half"}),P;if(ee.isFormData(r)&&(P=$.headers.get("content-type"))&&p.setContentType(P),$.body){const[R,k]=Q_(T,rd(eb(c)));r=nb($.body,rb,R,k)}}ee.isString(h)||(h=h?"include":"omit");const C="credentials"in Request.prototype;b=new Request(t,{...v,signal:y,method:n.toUpperCase(),headers:p.normalize().toJSON(),body:r,duplex:"half",credentials:C?h:void 0});let w=await fetch(b);const E=em&&(d==="stream"||d==="response");if(em&&(a||E&&S)){const $={};["status","statusText","headers"].forEach(W=>{$[W]=w[W]});const P=ee.toFiniteNumber(w.headers.get("content-length")),[R,k]=a&&Q_(P,rd(eb(a),!0))||[];w=new Response(nb(w.body,rb,R,()=>{k&&k(),S&&S()}),$)}d=d||"text";let O=await od[ee.findKey(od,d)||"text"](w,e);return!E&&S&&S(),await new Promise(($,P)=>{Ax($,P,{data:O,headers:rr.from(w.headers),status:w.status,statusText:w.statusText,config:e,request:b})})}catch(C){throw S&&S(),C&&C.name==="TypeError"&&/fetch/i.test(C.message)?Object.assign(new ot("Network Error",ot.ERR_NETWORK,e,b),{cause:C.cause||C}):ot.from(C,C&&C.code,e,b)}}),tm={http:FU,xhr:dB,fetch:bB};ee.forEach(tm,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const ob=e=>`- ${e}`,wB=e=>ee.isFunction(e)||e===null||e===!1,Lx={getAdapter:e=>{e=ee.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){n=e[i];let l;if(r=n,!wB(n)&&(r=tm[(l=String(n)).toLowerCase()],r===void 0))throw new ot(`Unknown adapter '${l}'`);if(r)break;o[l||"#"+i]=r}if(!r){const i=Object.entries(o).map(([a,c])=>`adapter ${a} `+(c===!1?"is not supported by the environment":"is not available in the build"));let l=t?i.length>1?`since :53 `+i.map( ob).join(`54 `):" "+ ob(i[0]):"as no adapter specified";throw new ot("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return r},adapters:tm};function th(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new hl(null,e)}function sb(e){return th(e),e.headers=rr.from(e.headers),e.data=eh.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Lx.getAdapter(e.adapter||Ga.adapter)(e).then(function(r){return th(e),r.data=eh.call(e,e.transformResponse,r),r.headers=rr.from(r.headers),r},function(r){return Ox(r)||(th(e),r&&r.response&&(r.response.data=eh.call(e,e.transformResponse,r.response),r.response.headers=rr.from(r.response.headers))),Promise.reject(r)})}const Fx="1.7.7",ov={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ov[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const ib={};ov.transitional=function(t,n,r){function o(i,l){return"[Axios v"+Fx+"] Transitional option '"+i+"'"+l+(r?". "+r:"")}return(i,l,a)=>{if(t===!1)throw new ot(o(l," has been removed"+(n?" in "+n:"")),ot.ERR_DEPRECATED);return n&&!ib[l]&&(ib[l]=!0,console.warn(o(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,l,a):!0}};function SB(e,t,n){if(typeof e!="object")throw new ot("options must be an object",ot.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],l=t[i];if(l){const a=e[i],c=a===void 0||l(a,i,e);if(c!==!0)throw new ot("option "+i+" must be "+c,ot.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ot("Unknown option "+i,ot.ERR_BAD_OPTION)}}const nm={assertOptions:SB,validators:ov},ds=nm.validators;class oi{constructor(t){this.defaults=t,this.interceptors={request:new J_,response:new J_}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`55 `+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=fi(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&& nm.assertOptions(r,{silentJSONParsing:ds.transitional(ds.boolean),forcedJSONParsing:ds.transitional(ds.boolean),clarifyTimeoutError:ds.transitional(ds.boolean)},!1),o!=null&&(ee.isFunction(o)?n.paramsSerializer={serialize:o}:nm.assertOptions(o,{encode:ds.function,serialize:ds.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=i&&ee.merge(i.common,i[n.method]);i&&ee.forEach(["delete","get","head","post","put","patch","common"],b=>{delete i[b]}),n.headers=rr.concat(l,i);const a=[];let c=!0;this.interceptors.request.forEach(function(S){typeof S.runWhen=="function"&&S.runWhen(n)===!1||(c=c&&S.synchronous,a.unshift(S.fulfilled,S.rejected))});const d=[];this.interceptors.response.forEach(function(S){d.push(S.fulfilled,S.rejected)});let p,h=0,v;if(!c){const b=[sb.bind(this),void 0];for(b.unshift.apply(b,a),b.push.apply(b,d),v=b.length,p=Promise.resolve(n);h<v;)p=p.then(b[h++],b[h++]);return p}v=a.length;let y=n;for(h=0;h<v;){const b=a[h++],S=a[h++];try{y=b(y)}catch(T){S.call(this,T);break}}try{p=sb.call(this,y)}catch(b){return Promise.reject(b)}for(h=0,v=d.length;h<v;)p=p.then(d[h++],d[h++]);return p}getUri(t){t=fi(this.defaults,t);const n=kx(t.baseURL,t.url);return xx(n,t.params,t.paramsSerializer)}}ee.forEach(["delete","get","head","options"],function(t){oi.prototype[t]=function(n,r){return this.request(fi(r||{},{method:t,url:n,data:(r||{}).data}))}});ee.forEach(["post","put","patch"],function(t){function n(r){return function(i,l,a){return this.request(fi(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:l}))}}oi.prototype[t]=n(),oi.prototype[t+"Form"]=n(!0)});class sv{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(o=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const l=new Promise(a=>{r.subscribe(a),i=a}).then(o);return l.cancel=function(){r.unsubscribe(i)},l},t(function(i,l,a){r.reason||(r.reason=new hl(i,l,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new sv(function(o){t=o}),cancel:t}}}function EB(e){return function(n){return e.apply(null,n)}}function $B(e){return ee.isObject(e)&&e.isAxiosError===!0}const rm={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(rm).forEach(([e,t])=>{rm[t]=e});function Nx(e){const t=new oi(e),n=px(oi.prototype.request,t);return ee.extend(n,oi.prototype,t,{allOwnKeys:!0}),ee.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Nx(fi(e,o))},n}const rn=Nx(Ga);rn.Axios=oi;rn.CanceledError=hl;rn.CancelToken=sv;rn.isCancel=Ox;rn.VERSION=Fx;rn.toFormData=Zd;rn.AxiosError=ot;rn.Cancel=rn.CanceledError;rn.all=function(t){return Promise.all(t)};rn.spread=EB;rn.isAxiosError=$B;rn.mergeConfig=fi;rn.AxiosHeaders=rr;rn.formToJSON=e=>Cx(ee.isHTMLForm(e)?new FormData(e):e);rn.getAdapter=Lx.getAdapter;rn.HttpStatusCode=rm;rn.default=rn;const iv=({bearer:e},t={})=>({"Content-Type":"application/json",Accept:"application/json",...Mx({bearer:e}),...t}),Mx=({bearer:e})=>({...e?{Authorization:`Bearer ${e}`}:{}}),xB=({errorHandler:e,bearer:t,method:n,urlProcessor:r})=>(o,{headers:i,query:l}={})=>fetch(fl(r?r(o):o,l),{method:n,headers:iv({bearer:t},i)}).then(qa(e)),TB=({errorHandler:e,bearer:t,method:n,urlProcessor:r})=>(o,i,{headers:l,query:a}={})=>fetch(fl(r?r(o):o,a),{method:n,headers:iv({bearer:t},l),body:JSON.stringify(i)}).then(qa(e)),CB=({errorHandler:e,bearer:t,method:n,urlProcessor:r})=>(o,i,{headers:l,query:a}={})=>fetch(fl(r?r(o):o,a),{method:n,headers:iv({bearer:t},l),body:JSON.stringify(i)}).then(qa(e));function OB(e){console.log("default progress",e)}const AB=({errorHandler:e,bearer:t,urlProcessor:n})=>(r,o,{query:i,hooks:l}={})=>{const a=new FormData,c=(l==null?void 0:l.onUploadProgress)||OB;if(o.file){const d=o.track_id||"input_file";a.append(d,o.file)}return o.image&&a.append("image",o.image),rn.post(fl(n?n(r):r,i),a,{headers:{...Mx({bearer:t})},onUploadProgress:c})},kB=Y.curry(({base:e,bearer:t,errorHandler:n})=>({get:xB({bearer:t,method:"GET",errorHandler:n,urlProcessor:r=>`${e}/${r}`}),post:TB({bearer:t,errorHandler:n,method:"POST",urlProcessor:r=>`${e}/${r}`}),delete:CB({bearer:t,errorHandler:n,method:"DELETE",urlProcessor:r=>`${e}/${r}`}),upload:AB({bearer:t,errorHandler:n,urlProcessor:r=>`${e}/${r}`})}));function*IB(){const e="https://auphonic.com/api",t=yield be(B.auphonic.token);return kB({base:e,bearer:t,errorHandler:function(r){ef.dispatch(ev({type:"error",message:`Auphonic: ${r.error_message}`}))}})}let lc;const PB=new Uint8Array(16);function RB(){if(!lc&&(lc=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!lc))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return lc(PB)}const Tn=[];for(let e=0;e<256;++e)Tn.push((e+256).toString(16).slice(1));function LB(e,t=0){return Tn[e[t+0]]+Tn[e[t+1]]+Tn[e[t+2]]+Tn[e[t+3]]+"-"+Tn[e[t+4]]+Tn[e[t+5]]+"-"+Tn[e[t+6]]+Tn[e[t+7]]+"-"+Tn[e[t+8]]+Tn[e[t+9]]+"-"+Tn[e[t+10]]+Tn[e[t+11]]+Tn[e[t+12]]+Tn[e[t+13]]+Tn[e[t+14]]+Tn[e[t+15]]}const FB=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),lb={randomUUID:FB};function NB(e,t,n){if(lb.randomUUID&&!t&&!e)return lb.randomUUID();e=e||{};const r=e.random||(e.rng||RB)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,LB(r)}const MB=(e,t)=>({success:!1,status:"failed",filename:e.filename||e.name||"unknown",download_url:e.download_url||e.localUrl||"unknown",message:t.message||"Processing failed"}),Dx=(e,t="Request failed")=>{var n,r;return((n=e.error)==null?void 0:n.message)||e.message||((r=e.result)==null?void 0:r.message)||t},DB=(e,t)=>({success:!1,status:"failed",filename:e.filename||e.name||"unknown",download_url:e.download_url||e.localUrl||"unknown",message:`Transfer failed: ${t}`}),nh=(e,t)=>e?t>0?"completed_with_errors":"failed":"completed",UB=e=>e?"error":"finished";function*sd(e){const t=yield be(B.episode.id),n=yield be(B.mediafiles.files);yield KS(n.map(r=>St(Ux,e,t,r.asset_id)))}function*Ux(e,t,n){const o=(yield be(B.mediafiles.files)).find(c=>c.asset_id==n);yield te(Gh({asset_id:n,is_verifying:!0}));const{result:i}=yield e.put(`episodes/${t}/media/${n}/verify`,{}),l=!(o!=null&&o.size)&&i.file_size||(o==null?void 0:o.enable),a={asset_id:n,url:i.file_url,size:i.file_size,enable:l,is_verifying:!1};yield te(Gh(a)),typeof i.slug_frozen<"u"&&(yield te(bt({prop:"slug_frozen",value:i.slug_frozen})))}function*BB(e,t){const n=yield be(B.episode.id),r=t.payload;yield Ux(e,n,r)}function*jB(){const e=yield qr();yield St(VB,e),yield Ne(zg,oj),yield Ne(Vg,rj),yield te(Wd())}function*VB(e){const{result:t}=yield e.get("auphonic/token");t&&(yield te(k8(t)),yield St(HB),yield Ne(Jc,ij,e),yield Ne(Wg,sj,e),yield Ne(Jc,lj,e),yield Ne(Zc,aj,e),yield Ne(Hg,dj),yield Ne(l$,uj,e),yield Ne(Qc,ub,e),yield Ne(Zc,ub,e),yield Ne(m$,pj,e),yield Ne(g$,vj,e),yield Ne(qg,yj,e))}function*HB(){const e=yield IB(),{result:{data:t}}=yield e.get("presets.json"),{result:{data:n}}=yield e.get("productions.json",{limit:50,minimal_data:!0});let{result:{data:r}}=yield e.get("services.json");yield te(y$(n)),yield te(R8(t)),yield te(L8([{uuid:"url",display_name:"From URL",email:"",incoming:!0,outgoing:!1,type:"url"},{uuid:"file",display_name:"Upload from computer",email:"",incoming:!0,outgoing:!1,type:"file"},...r])),yield $t(cj),yield $t(fj),yield te(A8()),yield Ne(o$,tj,e),yield Ne(s$,nj,e),yield Ne(w$,ej,e),yield Ne(_$,jx,e),yield Ne(b$,KB,e),yield Ne(v$,WB,e),yield Ne(E$,qB,e),yield $t(zB,e)}function*zB(e){for((yield be(B.episode.isAuphonicProductionRunning))&&(yield Vh([$t(ab,e),ro(Qc)]));;)yield ro(f$),yield Vh([$t(ab,e),ro(Qc)])}function*ab(e){for(;;){let t=yield be(B.auphonic.productionId);t||(yield te(D_()));let{result:{data:n}}=yield e.get(`production/${t}.json`);yield te(mi(n)),n.status==3&&(yield te(bt({prop:"slug",value:n.output_basename})),(yield be(B.plus.features)).fileStorage&&(yield te(T$({production_uuid:n.uuid})))),[0,1,4,5,6,7,8,12,13,14].includes(n.status)||(yield te(D_())),yield Md(2500)}}function*WB(e){const{result:{data:t}}=yield e.get("productions.json",{limit:10,minimal_data:!0});yield te(y$(t))}function*qB(e,t){let n=yield be(B.auphonic.productionId);yield e.delete(`production/${n}/multi_input_files/${t.payload}.json`)}function*KB(e,t){const n=t.payload.uuid;yield $t(jx,e,{type:i$,payload:{uuid:n}});const r=yield be(B.episode.auphonicWebhookConfig),o=yield be(B.auphonic.publishWhenDone),i=yield be(B.runtime.baseUrl),l=yield be(B.post.id),a=i+"/?podlove-auphonic-production="+l+"&authkey="+(r==null?void 0:r.authkey),c={webhook:r&&o?a:""};yield e.post(`production/${n}.json`,c);const d=yield e.post(`production/${n}/start.json`,{});d.result?yield te(mi(d.result.data)):console.warn(d.error.error_message),yield te(M8())}function*GB(e,t,n,r){var d;let o=n.payload;const i=o.id,l=o.id_new,a=!!((d=n.upload)!=null&&d.file);delete o.id_new,o.id=l;const c=r(o.id);switch(n.state){case"edited":yield e.post(`production/${t}/multi_input_files/${i}.json`,o),a&&(yield e.upload(`production/${t}/upload.json`,n.upload,{hooks:{onUploadProgress:c}}));break;case"new":yield e.post(`production/${t}.json`,{multi_input_files:[n.payload]}),a&&(yield e.upload(`production/${t}/upload.json`,n.upload,{hooks:{onUploadProgress:c}}));break}}const Bx=e=>{if(!e)return{};switch(e.currentServiceSelection){case"url":return{service:"url",value:e.urlValue};case"file":return{service:"file",value:e.fileValue};default:return{service:e.currentServiceSelection,value:e.fileSelection}}};function XB(e){const t=Y.get(e,["auphonic","file_selections"]),n=Y.get(e,["auphonic","production","uuid"],"");return Bx(Y.get(t,n))}function YB(e){const t=Y.get(e,["auphonic","file_selections"]),n=Y.get(e,["auphonic","production","uuid"],"");return Y.get(e,["auphonic","tracks"],[]).reduce((o,i,l)=>(o.push(Bx(Y.get(t,`${n}_t${l}`))),o),[])}function JB(e){const t=Y.get(e,["auphonic","production","is_multitrack"],!1),n=Y.get(e,["auphonic","tracks"],[]);if(!t)return[];const r=YB(e);return n.map((o,i)=>{const l=o.save_state;if(l=="unchanged")return{};let a={},c={};return r[i].service=="url"?c={input_file:r[i].value}:r[i].service=="file"?a={track_id:o.identifier_new,file:r[i].value}:c={service:r[i].service,input_file:r[i].value},{state:l,upload:a,payload:{type:"multitrack",id:o.identifier,id_new:o.identifier_new,...c,algorithms:{denoise:o.noise_and_hum_reduction,filtering:o.filtering,backforeground:o.fore_background}}}}).filter(o=>Object.keys(o).length>0)}function ZB(e){let t=Y.get(e,["auphonic","productionPayload"],{});const{output_files:n,...r}=t,o=e.episode.poster||e.podcast.poster,i=e.episode.slug?{output_basename:e.episode.slug}:{};return{...r,...i,image:o,metadata:{...r.metadata,title:e.episode.title||e.post.title,subtitle:e.episode.subtitle,summary:e.episode.summary,artist:e.podcast.author_name,album:e.podcast.title,url:e.podcast.link,track:e.episode.number},chapters:e.chapters.chapters.map(l=>({title:l.title,url:l.href,start:new Dt(l.start).pretty}))}}function QB(e){const t=Y.get(e,["auphonic","production","is_multitrack"],!1),n=ZB(e);let r={};if(!t){const o=XB(e);o.service=="url"?r={input_file:o.value}:o.service=="file"?r={input_file:o.value}:r={service:o.service,input_file:o.value}}return{...n,...r}}function*jx(e,t){yield te(D8());const n=t.payload.uuid,r=yield be(QB),o=yield be(JB);yield e.delete(`production/${n}/chapters.json`);const i=yield $t(sx,k$),l=ix(i);yield KS(o.map(p=>$t(GB,e,n,p,l)));const a=r.input_file;typeof a=="object"&&(yield $t(e.upload,`production/${n}/upload.json`,{file:a},{hooks:{onUploadProgress:l("singletrack")}}),delete r.input_file);const c=r.image;fetch(c).then(p=>p.blob()).then(p=>{const v="image."+(p.type.includes("png")?"png":"jpg"),y=new File([p],v,{type:p.type});e.upload(`production/${n}/upload.json`,{image:y},{hooks:{onUploadProgress:l("poster")}})}),delete r.image;const{result:{data:d}}=yield e.post(`production/${n}.json`,r);yield te(mi(d)),yield te(U8())}function*ej(e,t){const n=t.payload;if(n=="file"||n=="url")return;const{result:r}=yield e.get(`service/${n}/ls.json`);yield te(F8({uuid:n,files:r.data}))}function*Vx(){const e=yield be(B.episode.title),t=yield be(B.post.title);return e||t||"New Production"}function*tj(e){const t=yield be(B.auphonic.preset),n=yield Vx(),{result:r}=yield e.post("productions.json",{preset:t,metadata:{title:n}}),o=r.data;yield te(mi(o))}function*nj(e){const t=yield be(B.auphonic.preset),n=yield Vx(),{result:r}=yield e.post("productions.json",{preset:t,metadata:{title:n},is_multitrack:!0}),o=r.data;yield te(mi(o))}function*rj(e){const t=yield be(B.auphonic.currentFileSelection);(yield be(B.auphonic.fileSelections))[t].fileSelection||(yield te(S$({key:t,prop:"fileSelection",value:e.payload.files[0]})))}function*oj(e){const{prop:t,value:n}=e.payload;t==="currentServiceSelection"&&(yield te(w$(n)))}function*sj(e){const t=yield be(B.episode.auphonicWebhookConfig),n=yield be(B.auphonic.publishWhenDone);!t||t.enabled==n||(yield te(bt({prop:"auphonic_webhook_config",value:{...t,enabled:n}})))}function*ij(e){const t=yield be(B.episode.auphonicWebhookConfig),n=yield be(B.auphonic.publishWhenDone);if(t&&t.authkey)return;const r=NB();yield te(bt({prop:"auphonic_webhook_config",value:{authkey:r,enabled:n||!1}}))}function*lj(e){const t=yield be(B.episode.id),n=yield be(B.auphonic.productionId);yield e.put(`episodes/${t}`,{auphonic_production_id:n})}function*aj(e){const t=yield be(B.episode.id);yield e.put(`episodes/${t}`,{auphonic_production_id:""})}function*uj(e){const t=yield be(B.episode.id);yield e.put(`episodes/${t}`,{is_auphonic_production_running:!0})}function*ub(e){const t=yield be(B.episode.id);yield e.put(`episodes/${t}`,{is_auphonic_production_running:!1})}function*cj(){const e=yield be(B.episode.id),t=yield be(B.episode.auphonicProductionId),n=yield be(B.auphonic.productionId),r=yield be(B.auphonic.productions);if(!n&&t&&e){const o=r.find(i=>i.uuid==t);o&&(yield te(mi(o)))}}function*dj(){const e=yield be(B.auphonic.preset);localStorage&&localStorage.setItem("podlove-auphonic-preset",e)}function*fj(){let e=null;localStorage&&(e=localStorage.getItem("podlove-auphonic-preset"),e&&(yield te(Kg(e))))}function*pj(e,t){const{production_uuid:n}=t.payload,r=yield be(B.post.id);try{yield te(eo({production_uuid:n,status:"in_progress"}));const o=yield e.post(`auphonic/init-plus-file-transfer/${n}/${r}`,{});if(o.result&&o.result.success&&o.result.transfer_queue){const i=o.result.transfer_queue;if(i.length===0){yield te(eo({production_uuid:n,status:"completed",files:[]}));return}yield $t(mj,e,n,r,i)}else yield te(eo({production_uuid:n,status:"failed",errors:Dx(o,"Failed to initialize transfer")}))}catch(o){yield te(eo({production_uuid:n,status:"failed",errors:o.message||"Failed to trigger transfer"}))}}function rh(e,t){return e.slice(t).map(n=>({success:null,status:"pending",filename:n.filename,download_url:n.download_url,message:"Waiting to transfer..."}))}function hj(e){return{success:null,status:"processing",filename:e.filename,download_url:e.download_url,message:"Transferring..."}}function ac(e){return{...e,status:e.success?"completed":"failed"}}function*mj(e,t,n,r){let o=0,i=!1;const l=[],a=r.map(d=>({success:null,status:"pending",filename:d.filename,download_url:d.download_url,message:"Waiting to transfer..."}));yield te(eo({production_uuid:t,status:"in_progress",files:a}));for(let d=0;d<r.length;d++){const p=r[d],h=[...l.map(ac),hj(p),...rh(r,d+1)];yield te(eo({production_uuid:t,status:"in_progress",files:h}));try{const v=yield $t(gj,e,t,n,p);l.push(v),v.success?o++:i=!0;const b=d===r.length-1?nh(i,o):"in_progress";yield te(eo({production_uuid:t,status:b,files:[...l.map(ac),...rh(r,l.length)]}))}catch(v){i=!0;const y=DB(p,v.message);l.push(y),console.error("Error transferring file:",v);const S=d===r.length-1?nh(i,o):"in_progress";yield te(eo({production_uuid:t,status:S,files:[...l.map(ac),...rh(r,l.length)]}))}}const c=nh(i,o);try{const d={status:c,files:l};if(i)if(o===0)d.errors="All file transfers failed";else{const p=l.length-o;d.errors=`${p} of ${l.length} file transfers failed`}yield e.post(`auphonic/set-plus-transfer-status/${t}/${n}`,d)}catch(d){console.error("Failed to store final transfer status:",d)}yield te(eo({production_uuid:t,status:c,files:l.map(ac)}))}function*gj(e,t,n,r){const o=yield e.post(`auphonic/transfer-single-file/${t}/${n}`,{file_data:r});return o.result?o.result:MB(r,{message:Dx(o,"Transfer failed")})}function*vj(e,t){const{production_uuid:n}=t.payload;try{const r=yield be(B.episode.id);if(!r){console.error("Episode ID not available for loading transfer status");return}const o=yield e.get(`episodes/${r}`),i=o.result.auphonic_plus_transfer_status,l=o.result.auphonic_plus_transfer_files,a=o.result.auphonic_plus_transfer_errors;i&&(yield te(eo({production_uuid:n,status:i,files:l,errors:a})))}catch(r){console.error("Error loading PLUS transfer status:",r)}}function*yj(e,t){const{status:n}=t.payload;n==="completed"&&(yield $t(sd,e))}function _j(){return function*(){yield ur(QE,jB)}}function*bj(e,t){const n=yield be(B.episode.id),r=t.payload,{result:o}=yield e.put(`episodes/${n}/media/${r}/enable`,{}),i={asset_id:r,url:o.file_url,size:o.file_size,enable:!0};yield te(Gh(i)),typeof o.slug_frozen<"u"&&(yield te(bt({prop:"slug_frozen",value:o.slug_frozen})))}function*wj(e,t){const n=yield be(B.episode.id),r=t.payload;yield e.put(`episodes/${n}/media/${r}/disable`,{})}function*Sj(e){const t=yield be(B.mediafiles.files),n=yield be(B.episode.duration),o=t.filter(l=>l.enable&&l.size&&l.url).filter(l=>l.url.match(/\.(mp3|mp4|m4a|ogg|oga|opus)$/));let i;if(o.length===0)i="0";else{const l=o[0].url;i=(yield $j(l)).toString()}parseFloat(n)!==parseFloat(i)&&(yield te(bt({prop:"duration",value:i})))}async function Ej(e){return new Promise(t=>e.onloadedmetadata=()=>t())}async function $j(e){var t=new Audio;return t.setAttribute("preload","metadata"),t.setAttribute("src",e),t.load(),await Ej(t),t.duration}function*xj(e,t){const{files:n,episodeSlug:r}=Y.get(t,["payload"]),o=yield be(B.mediafiles.selectedFiles),i=o.map(a=>a.file),l=Tj(n,i);if(l.length>0){yield $t(Oj,l,r);const a=yield be(B.episode.id),c=l.map(p=>({file:p,originalName:p.name,newName:p.name,fileExists:null})),d=[...o,...c];yield te({type:Wa,payload:d});for(const p of l)yield St(Hx,e,p,a)}}function Tj(e,t){return e.filter(n=>!t.some(r=>r.name===n.name&&r.size===n.size))}function Cj(e){return e.split(".").slice(0,-1).join(".")}function*Oj(e,t){if(t)return t;if(e.length===0)return"";const n=e[0].name,r=Cj(n);return yield te(bt({prop:"slug",value:r})),r}function*Aj(e,t){const{result:n}=yield e.post("plus/check_file_exists",{filename:t.file.name});return{...t,fileExists:n}}function*Hx(e,t,n){const r=`filename-generation-${t.name}`;try{yield te(ia({key:r,status:"in_progress",message:"Generating filename..."}));const{result:o}=yield e.post("plus/generate_filename",{original_filename:t.name,episode_id:n}),i=o.generated_filename,a={file:new File([t],i,{type:t.type,lastModified:t.lastModified}),originalName:t.name,newName:i},c=yield $t(Aj,e,a);yield $t(kj,t.name,c),yield te(ia({key:r,status:"finished",message:"Filename generated"})),yield St(cb,r,2e3)}catch(o){yield te(ia({key:r,status:"error",message:"Failed to generate filename"})),yield St(cb,r,5e3),console.warn("Failed to generate filename via API, keeping original:",o)}}function*kj(e,t){const r=(yield be(B.mediafiles.selectedFiles)).map(o=>o.originalName===e?t:o);yield te({type:Wa,payload:r})}function*cb(e,t){yield Md(t),yield te(I$(e))}function*Ij(e,t){const n=yield be(B.episode.id),r=yield be(B.episode.slug);if((yield be(B.mediafiles.slugAutogenerationEnabled))&&t.payload.prop=="title"&&t.payload.value){const i=t.payload.value,{result:l}=yield e.get(`episodes/${n}/build_slug`,{query:{title:i}});r!=l.slug&&(yield te(bt({prop:"slug",value:l.slug})))}}function*Pj(e){const t=yield be(B.mediafiles.selectedFiles),n=yield be(B.episode.slug);if(t.length>0&&n){const r=t.map(l=>new File([l.file],l.originalName,{type:l.file.type,lastModified:l.file.lastModified})),o=r.map(l=>({file:l,originalName:l.name,newName:l.name,fileExists:null}));yield te({type:Wa,payload:o});const i=yield be(B.episode.id);for(const l of r)yield St(Hx,e,l,i)}}function*Rj(e){const t=yield be(B.episode.id);if(t)try{const{result:n}=yield e.post(`episodes/${t}/unfreeze_slug`,{});yield te(Mg({slug_frozen:n.slug_frozen}))}catch(n){console.error("Failed to unfreeze slug:",n)}}function*Lj(){yield te(Dg({onSuccess:{type:Xg}}))}function*Fj(e,t){const n=Y.get(t,["payload"]),r=`plus-upload-${n.name}`;yield te(I$(r));try{const o=yield $t(Nj,e,n.name),i=yield $t(Mj,o,n,r);yield te(iD(i));const l=yield $t(Dj,e,n.name);console.log("completeResult",l)}catch(o){console.error("File upload failed:",o),yield te(ia({key:r,status:"error",message:o instanceof Error?o.message:"File upload failed"}))}}function*Nj(e,t){const{result:n}=yield e.post("plus/create_file_upload",{filename:t});if(!n)throw new Error("Failed to get upload URL");return n}function*Mj(e,t,n){var a;const r=yield $t(sx,Uj),o=ix(r),l=(a=(yield $t(rn.put,e,t,{headers:{"Content-Type":t.type},onUploadProgress:o(n)})).config.url)==null?void 0:a.split("?")[0];if(!l)throw new Error("Failed to extract file URL from response");return l}function*Dj(e,t){const{result:n}=yield e.post("plus/complete_file_upload",{filename:t});if(!n)throw new Error("Failed to complete file upload");return n}function*Uj(e){yield te(k$(e)),yield te(ia({key:e.key,status:e.progress==100?"finished":"in_progress"}))}function*Bj(e,t){const r=Y.get(t,["payload"]).split("\\").pop().split("/").pop().split(".").shift();(yield be(B.episode.slug))?yield $t(sd,e):(yield te(bt({prop:"slug",value:r})),yield te(AM()))}function*jj(){const e=yield qr();yield St(Vj,e)}function*Vj(e){const t=yield be(B.episode.id),{result:{results:n}}=yield e.get(`episodes/${t}/media`);n&&(yield te(Q8(n))),yield Ne(ed,bj,e),yield Ne(td,wj,e),yield Ne(F$,BB,e),yield Ne(N$,sd,e),yield j_(Hh,sd,e),yield j_(Hh,Pj,e),yield Xh(2e3,zd,Ij,e),yield Ne(j$,xj,e),yield ox(2e3,[ed,td,Gg],Sj,e),yield Ne(M$,Lj),yield Ne(D$,Fj,e),yield Ne(Xg,Bj,e),yield Ne(z$,Rj,e),yield te(Z8())}function Hj(){return function*(){yield ur(P$,jj)}}function*zj(){const e=yield qr();yield St(Wj,e),yield Ne(Yg,qj,e)}function*Wj(e){const t=yield be(B.episode.id),[n,r]=yield Promise.all([e.get(`episodes/${t}/related?status=all`),e.get("episodes?status=all&sort_by=post_id&order_by=asc")]),o=Y.get(n,["result","relatedEpisodes"],[]),i=Y.get(r,["result","results"],[]),l=o.map(a=>a.related_episode_id);yield te(G$(l)),yield te(mD(i))}function*qj(e,t){const n=yield be(B.episode.id),r=yield be(B.relatedEpisodes.selectEpisode);yield e.post(`episodes/${n}/related`,{related:r})}function Kj(){return function*(){yield ur(q$,zj)}}function*Gj(){const e=yield qr();yield St(Xj,e)}function*Xj(e){const t=yield be(B.settings.modules),{result:n}=yield e.get("shows");vD&&(yield te(Y$(n)),yield Ne(tl,Jj),t.includes("automatic_numbering")&&(yield Ne(nd,Zj,e)),t.includes("auphonic")&&(yield Ne(nd,Yj,n)))}function*Yj(e,t){const n=e.find(r=>r.slug===t.payload);n&&n.auphonic_preset&&(yield te(Kg(n.auphonic_preset)))}function*Jj(e){const t=Y.get(e,["payload","prop"]),n=Y.get(e,["payload","value"],null);t==="show"&&(yield te(J$(n)))}function*Zj(e,t){const{result:n}=yield e.get("shows/next_episode_number",{query:{show:t.payload}});yield te(bt({prop:"number",value:n.toString()}))}function Qj(){return function*(){yield ur(Jg,Gj)}}function*eV(){const e=yield qr();yield St(tV,e),yield Ne(Qg,nV,e)}function*tV(e){const{result:t}=yield e.get("admin/onboarding");t&&(yield te(_D(t)))}function*nV(e,t){const n=yield be(B.admin.type);yield e.put("admin/onboarding",{type:n})}function rV(){return function*(){yield ur(tx,eV)}}function*oV(){const e=yield qr();yield St(sV,e)}function*sV(e){const{result:t}=yield e.get("plus/get_migration_status");yield te(y8({isMigrationComplete:t.is_complete}));const{result:n}=yield e.get("admin/plus/episodes_for_migration"),r=n.episodes.map(o=>({episodeName:o.episode_title,files:o.files.map(i=>({name:i.filename,localUrl:i.local_url,remoteUrl:i.plus_url,state:"init"}))}));yield te(h8({episodesWithFiles:r})),yield te(Wh({totalState:"ready"})),yield ur(BE,lV,e)}function*iV(e,t,n){const o=(yield be(B.plusFileMigration.episodesWithFiles))[t],i=o.files[n],l=o.episodeName,a=i.name;yield te(g8({currentEpisodeName:l,currentFileName:a})),yield te(sc({filename:a,state:"in_progress"}));try{(yield e.post("plus/migrate_file",{filename:a,file_url:i.localUrl})).result===!1?yield te(sc({filename:a,state:"error"})):(yield te(sc({filename:a,state:"finished"})),yield te(eo({production_uuid:"migration",status:"completed"})))}catch(c){throw yield te(sc({filename:a,state:"error"})),c}}function*lV(e){yield te(Wh({totalState:"in_progress"}));const t=yield be(B.plusFileMigration.episodesWithFiles),n=t.reduce((l,a)=>l+a.files.length,0);let r=0,o=!1;const i=t.flatMap((l,a)=>l.files.map((c,d)=>({episodeIndex:a,fileIndex:d})));for(const l of i)try{yield $t(iV,e,l.episodeIndex,l.fileIndex),r++}catch(a){o=!0,console.error("Error migrating file:",a)}finally{const a=Math.round(r/n*100);yield te(v8({progress:a}))}yield te(Wh({totalState:UB(o)})),o||(yield e.post("plus/set_migration_complete",{}))}function aV(){return function*(){yield ur(ME,oV)}}function*uV(){const e=yield qr();yield St(cV,e)}function*cV(e){const{result:t}=yield e.get("admin/plus/features");yield te(qh({feature:"fileStorage",value:t.file_storage})),yield te(qh({feature:"feedProxy",value:t.feed_proxy})),yield Ne(jg,dV,e),yield Ne(KE,fV,e),yield Ne(YE,pV,e),yield te(S8())}function*dV(e,t){const{feature:n,value:r}=t.payload;yield e.post("admin/plus/set_feature",{feature:n,value:r})}function*fV(e){try{yield te(N_(!0));const{result:t}=yield e.get("admin/plus/token");yield te(Kh(t.token||"")),t.token&&(yield $t(zx,e,t.token))}catch(t){console.error("Failed to get token:",t),yield te(Kh("")),yield te(sa(null))}finally{yield te(N_(!1))}}function*zx(e,t){try{const{result:n}=yield e.get("admin/plus/validate_token");n.user?yield te(sa(n.user)):yield te(sa(null))}catch(n){console.error("Failed to validate token:",n),yield te(sa(null))}}function*pV(e,t){try{yield te(M_(!0));const n=t.payload;yield e.post("admin/plus/save_token",{token:n}),n?yield $t(zx,e,n):yield te(sa(null))}catch(n){console.error("Failed to save token:",n)}finally{yield te(M_(!1))}}function hV(){return function*(){yield ur(qE,uV)}}const jn=HN(),mV=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||mS,ef=pg(MD,mV(C7(jn)));jn.run(VD());jn.run(e9());jn.run(_9());jn.run(x9());jn.run(R9());jn.run(B9());jn.run(X9());jn.run(QD());jn.run(_j());jn.run(Hj());jn.run(Kj());jn.run(Qj());jn.run(rV());jn.run(aV());jn.run(hV());const gV=ge({props:{name:{type:String,default:null},title:{type:String,default:null}}}),Le=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},vV={class:"bg-white font-sans sm:rounded-lg sm:shadow-md"},yV={class:"bg-white px-4 py-5 border-b border-gray-200 sm:px-6"},_V={class:"-ml-4 -mt-2 flex items-center justify-between flex-wrap sm:flex-nowrap"},bV={class:"ml-4 mt-2"},wV=["for"],SV={class:"ml-4 mt-2 flex flex-shrink-0"};function EV(e,t,n,r,o,i){return I(),F("section",vV,[m("div",yV,[m("div",_V,[m("div",bV,[m("h3",{class:"text-lg leading-6 font-medium text-gray-900",for:`podlove-module-${e.name}`},L(e.title),9,wV)]),m("div",SV,[yn(e.$slots,"actions")])])]),m("div",null,[yn(e.$slots,"default")])])}const In=Le(gV,[["render",EV]]);function $V(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5M16.5 12 12 16.5m0 0L7.5 12m4.5 4.5V3"})])}function Wx(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 13.5 12 21m0 0-7.5-7.5M12 21V3"})])}function tf(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"})])}function qx(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M13.5 6H5.25A2.25 2.25 0 0 0 3 8.25v10.5A2.25 2.25 0 0 0 5.25 21h10.5A2.25 2.25 0 0 0 18 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25"})])}function xV(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5m-13.5-9L12 3m0 0 4.5 4.5M12 3v13.5"})])}function TV(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4.5 10.5 12 3m0 0 7.5 7.5M12 3v18"})])}function CV(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M17.593 3.322c1.1.128 1.907 1.077 1.907 2.185V21L12 17.25 4.5 21V5.507c0-1.108.806-2.057 1.907-2.185a48.507 48.507 0 0 1 11.186 0Z"})])}function OV(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 12.75 11.25 15 15 9.75M21 12c0 1.268-.63 2.39-1.593 3.068a3.745 3.745 0 0 1-1.043 3.296 3.745 3.745 0 0 1-3.296 1.043A3.745 3.745 0 0 1 12 21c-1.268 0-2.39-.63-3.068-1.593a3.746 3.746 0 0 1-3.296-1.043 3.745 3.745 0 0 1-1.043-3.296A3.745 3.745 0 0 1 3 12c0-1.268.63-2.39 1.593-3.068a3.745 3.745 0 0 1 1.043-3.296 3.746 3.746 0 0 1 3.296-1.043A3.746 3.746 0 0 1 12 3c1.268 0 2.39.63 3.068 1.593a3.746 3.746 0 0 1 3.296 1.043 3.746 3.746 0 0 1 1.043 3.296A3.745 3.745 0 0 1 21 12Z"})])}function Kx(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function AV(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m4.5 12.75 6 6 9-13.5"})])}function Gx(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"})])}function kV(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})])}function IV(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M20.25 6.375c0 2.278-3.694 4.125-8.25 4.125S3.75 8.653 3.75 6.375m16.5 0c0-2.278-3.694-4.125-8.25-4.125S3.75 4.097 3.75 6.375m16.5 0v11.25c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125V6.375m16.5 0v3.75m-16.5-3.75v3.75m16.5 0v3.75C20.25 16.153 16.556 18 12 18s-8.25-1.847-8.25-4.125v-3.75m16.5 0c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125"})])}function PV(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M11.35 3.836c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 0 0 .75-.75 2.25 2.25 0 0 0-.1-.664m-5.8 0A2.251 2.251 0 0 1 13.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m8.9-4.414c.376.023.75.05 1.124.08 1.131.094 1.976 1.057 1.976 2.192V16.5A2.25 2.25 0 0 1 18 18.75h-2.25m-7.5-10.5H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V18.75m-7.5-10.5h6.375c.621 0 1.125.504 1.125 1.125v9.375m-8.25-3 1.5 1.5 3-3.75"})])}function Xx(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function nf(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 16.5V9.75m0 0 3 3m-3-3-3 3M6.75 19.5a4.5 4.5 0 0 1-1.41-8.775 5.25 5.25 0 0 1 10.233-2.33 3 3 0 0 1 3.758 3.848A3.752 3.752 0 0 1 18 19.5H6.75Z"})])}function Yx(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M2.25 15a4.5 4.5 0 0 0 4.5 4.5H18a3.75 3.75 0 0 0 1.332-7.257 3 3 0 0 0-3.758-3.848 5.25 5.25 0 0 0-10.233 2.33A4.502 4.502 0 0 0 2.25 15Z"})])}function RV(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.325.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 0 1 1.37.49l1.296 2.247a1.125 1.125 0 0 1-.26 1.431l-1.003.827c-.293.241-.438.613-.43.992a7.723 7.723 0 0 1 0 .255c-.008.378.137.75.43.991l1.004.827c.424.35.534.955.26 1.43l-1.298 2.247a1.125 1.125 0 0 1-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.47 6.47 0 0 1-.22.128c-.331.183-.581.495-.644.869l-.213 1.281c-.09.543-.56.94-1.11.94h-2.594c-.55 0-1.019-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 0 1-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 0 1-1.369-.49l-1.297-2.247a1.125 1.125 0 0 1 .26-1.431l1.004-.827c.292-.24.437-.613.43-.991a6.932 6.932 0 0 1 0-.255c.007-.38-.138-.751-.43-.992l-1.004-.827a1.125 1.125 0 0 1-.26-1.43l1.297-2.247a1.125 1.125 0 0 1 1.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.086.22-.128.332-.183.582-.495.644-.869l.214-1.28Z"}),m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})])}function LV(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4.5 12a7.5 7.5 0 0 0 15 0m-15 0a7.5 7.5 0 1 1 15 0m-15 0H3m16.5 0H21m-1.5 0H12m-8.457 3.077 1.41-.513m14.095-5.13 1.41-.513M5.106 17.785l1.15-.964m11.49-9.642 1.149-.964M7.501 19.795l.75-1.3m7.5-12.99.75-1.3m-6.063 16.658.26-1.477m2.605-14.772.26-1.477m0 17.726-.26-1.477M10.698 4.614l-.26-1.477M16.5 19.794l-.75-1.299M7.5 4.205 12 12m6.894 5.785-1.149-.964M6.256 7.178l-1.15-.964m15.352 8.864-1.41-.513M4.954 9.435l-1.41-.514M12.002 12l-3.75 6.495"})])}function FV(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M10.125 2.25h-4.5c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125v-9M10.125 2.25h.375a9 9 0 0 1 9 9v.375M10.125 2.25A3.375 3.375 0 0 1 13.5 5.625v1.5c0 .621.504 1.125 1.125 1.125h1.5a3.375 3.375 0 0 1 3.375 3.375M9 15l2.25 2.25L15 12"})])}function lv(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"})])}function av(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z"})])}function NV(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.98 8.223A10.477 10.477 0 0 0 1.934 12C3.226 16.338 7.244 19.5 12 19.5c.993 0 1.953-.138 2.863-.395M6.228 6.228A10.451 10.451 0 0 1 12 4.5c4.756 0 8.773 3.162 10.065 7.498a10.522 10.522 0 0 1-4.293 5.774M6.228 6.228 3 3m3.228 3.228 3.65 3.65m7.894 7.894L21 21m-3.228-3.228-3.65-3.65m0 0a3 3 0 1 0-4.243-4.243m4.242 4.242L9.88 9.88"})])}function MV(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z"}),m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})])}function Jx(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L6.832 19.82a4.5 4.5 0 0 1-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 0 1 1.13-1.897L16.863 4.487Zm0 0L19.5 7.125"})])}function rf(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 4.5v15m7.5-7.5h-15"})])}function DV(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"})])}function Zx(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M17.982 18.725A7.488 7.488 0 0 0 12 15.75a7.488 7.488 0 0 0-5.982 2.975m11.963 0a9 9 0 1 0-11.963 0m11.963 0A8.966 8.966 0 0 1 12 21a8.966 8.966 0 0 1-5.982-2.275M15 9.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})])}function Qx(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m9.75 9.75 4.5 4.5m0-4.5-4.5 4.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function ml(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18 18 6M6 6l12 12"})])}function Dl(e,t,n){let r=n.initialDeps??[],o;return()=>{var i,l,a,c;let d;n.key&&((i=n.debug)!=null&&i.call(n))&&(d=Date.now());const p=e();if(!(p.length!==r.length||p.some((y,b)=>r[b]!==y)))return o;r=p;let v;if(n.key&&((l=n.debug)!=null&&l.call(n))&&(v=Date.now()),o=t(...p),n.key&&((a=n.debug)!=null&&a.call(n))){const y=Math.round((Date.now()-d)*100)/100,b=Math.round((Date.now()-v)*100)/100,S=b/16,T=(C,w)=>{for(C=String(C);C.length<w;)C=" "+C;return C};console.info(`%c⏱ ${T(b,5)} /${T(y,5)} ms`,`50 `}function H1(e,t){var n=new Blob([t],{type:"text/plain"});const r=document.createElement("a");r.href=window.URL.createObjectURL(n),r.download=e,document.body.appendChild(r),r.click(),document.body.removeChild(r)}function*g9(e){const t=[o9,s9,i9,l9];let n=[];if(t.forEach(r=>{if(!(n!==null&&n.length>0))try{n=r(e.payload)}catch{n=null}}),n===null){yield te(Qg({type:"error",message:a9("Unable to parse PSC chapters.","podlove-podcasting-plugin-for-wordpress")}));return}yield te(pE(n))}function*v9(e){const t=yield be(B.chapters.selectedIndex);if(t===null)return;const n=yield be(B.chapters.list);switch(!0){case e.key==="up":t===0?yield te(ms(n.length-1)):yield te(ms(t-1));break;case e.key==="down":t===n.length-1?yield te(ms(0)):yield te(ms(t+1));break;case e.key==="esc":yield te(ms(null));break}}function*y9(){yield te(Mg({onSuccess:{type:Vd}}))}function _9(){return function*(){yield cr(lE,c9)}}function*b9(){const e=yield Kr();yield St(Xd,e),yield Ne(CE,w9,e),yield Ne(Dg,E9,e),yield Ne(AE,$9,e),yield Ne(OE,S9,e)}function*Xd(e){const t=yield be(B.episode.id),[n,r]=yield Promise.all([e.get(`transcripts/${t}`),e.get(`transcripts/voices/${t}`)]);yield te(HM(Y.get(n,["result","transcript"],[]))),yield te(zM(Y.get(r,["result","voices"],[])))}function*w9(e,t){const n=yield be(B.episode.id),{result:r}=yield e.put(`transcripts/${n}`,{content:t.payload});r&&(yield St(Xd,e))}function*S9(e,t){const n=yield be(B.episode.id),{result:r}=yield e.put(`transcripts/${n}`,{asset:1});r&&(yield St(Xd,e))}function*E9(e,t){const n=yield be(B.episode.id);yield e.post(`transcripts/voices/${n}`,{voice:t.payload.voice,contributor_id:t.payload.contributor})}function*$9(e){const t=yield be(B.episode.id),{result:n}=yield e.delete(`transcripts/${t}`);n&&(yield St(Xd,e))}function x9(){return function*(){yield cr($E,b9)}}function*T9(){const e=yield Kr();yield St(A9,e),yield St(k9,e),yield St(I9,e),yield St(C9,e),yield Ne(wE,P9,e),yield ox(3e3,[Pg,Ig,Rg,Lg,Fg],O9,e)}function*C9(e){const t=yield be(B.episode.id);if(!t)return;const{result:n}=yield e.get(`episodes/${t}/contributions`);n&&(yield te(Ng({contributions:Y.get(n,["contribution"],[])})))}function*O9(e){const t=yield be(B.episode.id);if(!t)return;const n=yield be(B.contributors.roles),r=yield be(B.contributors.groups);let i=(yield be(B.episode.contributions)).map(function({contributor_id:l,role_id:a,group_id:c,position:d,comment:p}){return{contributor_id:Y.toInteger(l),role_id:Y.toInteger(a)==0&&n.length>0?n[0].id:Y.toInteger(a),group_id:Y.toInteger(c)==0&&r.length>0?r[0].id:Y.toInteger(c),position:Y.toInteger(d),comment:p||""}});yield e.put(`episodes/${t}/contributions`,{contributors:i})}function*A9(e){const{result:t}=yield e.get("contributors",{query:{filter:"all"}});t&&(yield te(ZM(Y.get(t,"contributors",[]))))}function*k9(e){const{result:t}=yield e.get("contributors/roles");t&&(yield te(QM(Y.get(t,"roles",[]))))}function*I9(e){const{result:t}=yield e.get("contributors/groups");t&&(yield te(e8(Y.get(t,"groups",[]))))}function*P9(e,t){const{result:n,error:r}=yield e.post("contributors",{});if(r)return;const o=n==null?void 0:n.id,i=Y.get(t,["payload"]),{error:l}=yield e.put(`contributors/${o}`,{realname:i});if(l)return;const a={id:o,realname:i};yield te(t8(a)),yield te(SE(a))}function R9(){return function*(){yield cr(kE,T9)}}const Kn=Y.get(window,["wp","data"],null),dx=Y.get(window,["wp","media"],null),ri=document.querySelector('input[name="post_title"]'),L9=e=>ri==null?void 0:ri.addEventListener("change",t=>e(Y.get(t,["target","value"])));function*F9(){const e=yield be(B.settings.autoGenerateEpisodeTitle);typeof(Kn==null?void 0:Kn.subscribe)<"u"&&(yield Ne(yield $t(Jh,Kn==null?void 0:Kn.subscribe),D9)),ri&&(yield Ne(yield $t(Jh,L9),fx)),e&&(yield Ne(Hd,z1),yield Ne(tl,z1)),dx&&(yield Ne(EE,U9))}function N9(){if(!(Kn!=null&&Kn.select))return null;const e=Kn.select("core/editor");return e!=null&&e.getEditedPostAttribute?e.getEditedPostAttribute("featured_media"):null}function M9(){if(!(Kn!=null&&Kn.select))return"";const e=Kn.select("core/editor");return e!=null&&e.getEditedPostAttribute?e.getEditedPostAttribute("title"):""}function*D9(){const e=M9(),t=N9(),n=t?Kn.select("core").getMedia(t):null,r=yield be(B.post.title),o=yield be(B.post.featuredMedia);r!=e&&(yield te(Wh({prop:"title",value:e}))),Y.get(o,["id"])!=Y.get(n,["id"])&&(yield te(Wh({prop:"featured_media",value:n})))}function*fx(e){yield te(Wh({prop:"title",value:e}))}function*z1(){if(!ri)return;const e=yield be(B.settings.blogTitleTemplate);if(!e)return;const t=yield be(B.episode.title),n=yield be(B.episode.number),r=yield be(B.podcast.mnemonic),o=yield be(B.settings.episodeNumberPadding),i=e.replace("%mnemonic%",r||"").replace("%episode_number%",(n||"").padStart(o||0,"0")).replace("%season_number%","").replace("%episode_title%",t||"");ri.value!=i&&(ri.value=i,yield fx(i))}function*U9(e){const t=Y.get(e,["payload","onSuccess"]);if(!t){console.warn("Missing successAction");return}const n=dx({title:"Select or Upload Media Of Your Chosen Persuasion",button:{text:"Use this media"},multiple:!1}),r=new Promise(o=>{n.on("select",()=>{const{url:i}=n.state().get("selection").first().toJSON();o(i)})});n.open();try{const o=yield r;yield te({...t,payload:o})}finally{}}function B9(){return function*(){yield cr(qr,F9)}}let Wl={};function*j9(){const e=yield Kr();yield St(H9,e),yield Ne(tl,z9),yield Yh(1e3,tl,W1,e),yield Yh(50,vE,W1,e),yield Ne(yE,W9),yield Ne(bE,q9),yield Ne(_E,K9),yield Ne(Wd,G9),yield Ne(Hd,V9)}function*V9(){const e=yield be(B.episode.auphonicWebhookConfig);e&&(yield te(x$(e.enabled)))}function*H9(e){const t=yield be(B.episode.id);if(!t)return;const{result:n}=yield e.get(`episodes/${t}`);n&&(n.slug===null&&(yield te(lD())),yield te(Ng(n)))}function*z9(e){const t=Y.get(e,["payload","prop"]),n=Y.get(e,["payload","value"],null);if(t){if(t==="slug"&&(yield be(B.episode.slugFrozen))){console.warn("Attempted to update frozen slug - update blocked");return}Wl[t]=n}}function*W1(e,t){const n=yield be(B.episode.id);Y.isEmpty(Wl)||(yield e.put(`episodes/${n}`,Wl,{query:{skip_validation:"1"}}),yield te(FM(Wl)),Wl={})}function*W9(e){Object.keys(e.payload).includes("slug")&&(yield te(NM()))}function*q9(){yield te(Mg({onSuccess:{type:_E}}))}function*K9(e){yield te(bt({prop:"episode_poster",value:Y.get(e,["payload"])}))}function*G9(e){if((yield be(B.settings.imageAsset))!="post-thumbnail"||Y.get(e,["payload","prop"])!="featured_media")return;const n=Y.get(e,["payload","value","source_url"]);yield te(bt({prop:"poster",value:n}))}function X9(){return function*(){yield cr(gE,j9)}}function px(e,t){return function(){return e.apply(t,arguments)}}const{toString:Y9}=Object.prototype,{getPrototypeOf:ev}=Object,Yd=(e=>t=>{const n=Y9.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),po=e=>(e=e.toLowerCase(),t=>Yd(t)===e),Jd=e=>t=>typeof t===e,{isArray:pl}=Array,Ta=Jd("undefined");function J9(e){return e!==null&&!Ta(e)&&e.constructor!==null&&!Ta(e.constructor)&&$r(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const hx=po("ArrayBuffer");function Z9(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&hx(e.buffer),t}const Q9=Jd("string"),$r=Jd("function"),mx=Jd("number"),Zd=e=>e!==null&&typeof e=="object",eU=e=>e===!0||e===!1,Ec=e=>{if(Yd(e)!=="object")return!1;const t=ev(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},tU=po("Date"),nU=po("File"),rU=po("Blob"),oU=po("FileList"),sU=e=>Zd(e)&&$r(e.pipe),iU=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||$r(e.append)&&((t=Yd(e))==="formdata"||t==="object"&&$r(e.toString)&&e.toString()==="[object FormData]"))},lU=po("URLSearchParams"),[aU,uU,cU,dU]=["ReadableStream","Request","Response","Headers"].map(po),fU=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ka(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),pl(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),l=i.length;let a;for(r=0;r<l;r++)a=i[r],t.call(null,e[a],a,e)}}function gx(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Ys=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,vx=e=>!Ta(e)&&e!==Ys;function Zh(){const{caseless:e}=vx(this)&&this||{},t={},n=(r,o)=>{const i=e&&gx(t,o)||o;Ec(t[i])&&Ec(r)?t[i]=Zh(t[i],r):Ec(r)?t[i]=Zh({},r):pl(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&Ka(arguments[r],n);return t}const pU=(e,t,n,{allOwnKeys:r}={})=>(Ka(t,(o,i)=>{n&&$r(o)?e[i]=px(o,n):e[i]=o},{allOwnKeys:r}),e),hU=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),mU=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},gU=(e,t,n,r)=>{let o,i,l;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)l=o[i],(!r||r(l,e,t))&&!a[l]&&(t[l]=e[l],a[l]=!0);e=n!==!1&&ev(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},vU=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},yU=e=>{if(!e)return null;if(pl(e))return e;let t=e.length;if(!mx(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},_U=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ev(Uint8Array)),bU=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},wU=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},SU=po("HTMLFormElement"),EU=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),q1=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),$U=po("RegExp"),yx=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Ka(n,(o,i)=>{let l;(l=t(o,i,e))!==!1&&(r[i]=l||o)}),Object.defineProperties(e,r)},xU=e=>{yx(e,(t,n)=>{if($r(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if($r(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},TU=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return pl(e)?r(e):r(String(e).split(t)),n},CU=()=>{},OU=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Qp="abcdefghijklmnopqrstuvwxyz",K1="0123456789",_x={DIGIT:K1,ALPHA:Qp,ALPHA_DIGIT:Qp+Qp.toUpperCase()+K1},AU=(e=16,t=_x.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function kU(e){return!!(e&&$r(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const IU=e=>{const t=new Array(10),n=(r,o)=>{if(Zd(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=pl(r)?[]:{};return Ka(r,(l,a)=>{const c=n(l,o+1);!Ta(c)&&(i[a]=c)}),t[o]=void 0,i}}return r};return n(e,0)},PU=po("AsyncFunction"),RU=e=>e&&(Zd(e)||$r(e))&&$r(e.then)&&$r(e.catch),bx=((e,t)=>e?setImmediate:t?((n,r)=>(Ys.addEventListener("message",({source:o,data:i})=>{o===Ys&&i===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Ys.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",$r(Ys.postMessage)),LU=typeof queueMicrotask<"u"?queueMicrotask.bind(Ys):typeof process<"u"&&process.nextTick||bx,ee={isArray:pl,isArrayBuffer:hx,isBuffer:J9,isFormData:iU,isArrayBufferView:Z9,isString:Q9,isNumber:mx,isBoolean:eU,isObject:Zd,isPlainObject:Ec,isReadableStream:aU,isRequest:uU,isResponse:cU,isHeaders:dU,isUndefined:Ta,isDate:tU,isFile:nU,isBlob:rU,isRegExp:$U,isFunction:$r,isStream:sU,isURLSearchParams:lU,isTypedArray:_U,isFileList:oU,forEach:Ka,merge:Zh,extend:pU,trim:fU,stripBOM:hU,inherits:mU,toFlatObject:gU,kindOf:Yd,kindOfTest:po,endsWith:vU,toArray:yU,forEachEntry:bU,matchAll:wU,isHTMLForm:SU,hasOwnProperty:q1,hasOwnProp:q1,reduceDescriptors:yx,freezeMethods:xU,toObjectSet:TU,toCamelCase:EU,noop:CU,toFiniteNumber:OU,findKey:gx,global:Ys,isContextDefined:vx,ALPHABET:_x,generateString:AU,isSpecCompliantForm:kU,toJSONObject:IU,isAsyncFn:PU,isThenable:RU,setImmediate:bx,asap:LU};function ot(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}ee.inherits(ot,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ee.toJSONObject(this.config),code:this.code,status:this.status}}});const wx=ot.prototype,Sx={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Sx[e]={value:e}});Object.defineProperties(ot,Sx);Object.defineProperty(wx,"isAxiosError",{value:!0});ot.from=(e,t,n,r,o,i)=>{const l=Object.create(wx);return ee.toFlatObject(e,l,function(c){return c!==Error.prototype},a=>a!=="isAxiosError"),ot.call(l,e.message,t,n,r,o),l.cause=e,l.name=e.name,i&&Object.assign(l,i),l};const FU=null;function Qh(e){return ee.isPlainObject(e)||ee.isArray(e)}function Ex(e){return ee.endsWith(e,"[]")?e.slice(0,-2):e}function G1(e,t,n){return e?e.concat(t).map(function(o,i){return o=Ex(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function NU(e){return ee.isArray(e)&&!e.some(Qh)}const MU=ee.toFlatObject(ee,{},null,function(t){return/^is[A-Z]/.test(t)});function Qd(e,t,n){if(!ee.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=ee.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,T){return!ee.isUndefined(T[S])});const r=n.metaTokens,o=n.visitor||p,i=n.dots,l=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&ee.isSpecCompliantForm(t);if(!ee.isFunction(o))throw new TypeError("visitor must be a function");function d(b){if(b===null)return"";if(ee.isDate(b))return b.toISOString();if(!c&&ee.isBlob(b))throw new ot("Blob is not supported. Use a Buffer instead.");return ee.isArrayBuffer(b)||ee.isTypedArray(b)?c&&typeof Blob=="function"?new Blob([b]):Buffer.from(b):b}function p(b,S,T){let C=b;if(b&&!T&&typeof b=="object"){if(ee.endsWith(S,"{}"))S=r?S:S.slice(0,-2),b=JSON.stringify(b);else if(ee.isArray(b)&&NU(b)||(ee.isFileList(b)||ee.endsWith(S,"[]"))&&(C=ee.toArray(b)))return S=Ex(S),C.forEach(function(E,O){!(ee.isUndefined(E)||E===null)&&t.append(l===!0?G1([S],O,i):l===null?S:S+"[]",d(E))}),!1}return Qh(b)?!0:(t.append(G1(T,S,i),d(b)),!1)}const h=[],v=Object.assign(MU,{defaultVisitor:p,convertValue:d,isVisitable:Qh});function y(b,S){if(!ee.isUndefined(b)){if(h.indexOf(b)!==-1)throw Error("Circular reference detected in "+S.join("."));h.push(b),ee.forEach(b,function(C,w){(!(ee.isUndefined(C)||C===null)&&o.call(t,C,ee.isString(w)?w.trim():w,S,v))===!0&&y(C,S?S.concat(w):[w])}),h.pop()}}if(!ee.isObject(e))throw new TypeError("data must be an object");return y(e),t}function X1(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function tv(e,t){this._pairs=[],e&&Qd(e,this,t)}const $x=tv.prototype;$x.append=function(t,n){this._pairs.push([t,n])};$x.toString=function(t){const n=t?function(r){return t.call(this,r,X1)}:X1;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function DU(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function xx(e,t,n){if(!t)return e;const r=n&&n.encode||DU,o=n&&n.serialize;let i;if(o?i=o(t,n):i=ee.isURLSearchParams(t)?t.toString():new tv(t,n).toString(r),i){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Y1{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ee.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Tx={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},UU=typeof URLSearchParams<"u"?URLSearchParams:tv,BU=typeof FormData<"u"?FormData:null,jU=typeof Blob<"u"?Blob:null,VU={isBrowser:!0,classes:{URLSearchParams:UU,FormData:BU,Blob:jU},protocols:["http","https","file","blob","url","data"]},nv=typeof window<"u"&&typeof document<"u",em=typeof navigator=="object"&&navigator||void 0,HU=nv&&(!em||["ReactNative","NativeScript","NS"].indexOf(em.product)<0),zU=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",WU=nv&&window.location.href||"http://localhost",qU=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:nv,hasStandardBrowserEnv:HU,hasStandardBrowserWebWorkerEnv:zU,navigator:em,origin:WU},Symbol.toStringTag,{value:"Module"})),rr={...qU,...VU};function KU(e,t){return Qd(e,new rr.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return rr.isNode&&ee.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function GU(e){return ee.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function XU(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}function Cx(e){function t(n,r,o,i){let l=n[i++];if(l==="__proto__")return!0;const a=Number.isFinite(+l),c=i>=n.length;return l=!l&&ee.isArray(o)?o.length:l,c?(ee.hasOwnProp(o,l)?o[l]=[o[l],r]:o[l]=r,!a):((!o[l]||!ee.isObject(o[l]))&&(o[l]=[]),t(n,r,o[l],i)&&ee.isArray(o[l])&&(o[l]=XU(o[l])),!a)}if(ee.isFormData(e)&&ee.isFunction(e.entries)){const n={};return ee.forEachEntry(e,(r,o)=>{t(GU(r),o,n,0)}),n}return null}function YU(e,t,n){if(ee.isString(e))try{return(t||JSON.parse)(e),ee.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const Ga={transitional:Tx,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=ee.isObject(t);if(i&&ee.isHTMLForm(t)&&(t=new FormData(t)),ee.isFormData(t))return o?JSON.stringify(Cx(t)):t;if(ee.isArrayBuffer(t)||ee.isBuffer(t)||ee.isStream(t)||ee.isFile(t)||ee.isBlob(t)||ee.isReadableStream(t))return t;if(ee.isArrayBufferView(t))return t.buffer;if(ee.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return KU(t,this.formSerializer).toString();if((a=ee.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Qd(a?{"files[]":t}:t,c&&new c,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),YU(t)):t}],transformResponse:[function(t){const n=this.transitional||Ga.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(ee.isResponse(t)||ee.isReadableStream(t))return t;if(t&&ee.isString(t)&&(r&&!this.responseType||o)){const l=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(a){if(l)throw a.name==="SyntaxError"?ot.from(a,ot.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:rr.classes.FormData,Blob:rr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ee.forEach(["delete","get","head","post","put","patch"],e=>{Ga.headers[e]={}});const JU=ee.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ZU=e=>{const t={};let n,r,o;return e&&e.split(` 51 `).forEach(function(l){o=l.indexOf(":"),n=l.substring(0,o).trim().toLowerCase(),r=l.substring(o+1).trim(),!(!n||t[n]&&JU[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},J1=Symbol("internals");function Ml(e){return e&&String(e).trim().toLowerCase()}function $c(e){return e===!1||e==null?e:ee.isArray(e)?e.map($c):String(e)}function QU(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const eB=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function eh(e,t,n,r,o){if(ee.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!ee.isString(t)){if(ee.isString(r))return t.indexOf(r)!==-1;if(ee.isRegExp(r))return r.test(t)}}function tB(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function nB(e,t){const n=ee.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,l){return this[r].call(this,t,o,i,l)},configurable:!0})})}class or{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(a,c,d){const p=Ml(c);if(!p)throw new Error("header name must be a non-empty string");const h=ee.findKey(o,p);(!h||o[h]===void 0||d===!0||d===void 0&&o[h]!==!1)&&(o[h||c]=$c(a))}const l=(a,c)=>ee.forEach(a,(d,p)=>i(d,p,c));if(ee.isPlainObject(t)||t instanceof this.constructor)l(t,n);else if(ee.isString(t)&&(t=t.trim())&&!eB(t))l(ZU(t),n);else if(ee.isHeaders(t))for(const[a,c]of t.entries())i(c,a,r);else t!=null&&i(n,t,r);return this}get(t,n){if(t=Ml(t),t){const r=ee.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return QU(o);if(ee.isFunction(n))return n.call(this,o,r);if(ee.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ml(t),t){const r=ee.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||eh(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(l){if(l=Ml(l),l){const a=ee.findKey(r,l);a&&(!n||eh(r,r[a],a,n))&&(delete r[a],o=!0)}}return ee.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||eh(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return ee.forEach(this,(o,i)=>{const l=ee.findKey(r,i);if(l){n[l]=$c(o),delete n[i];return}const a=t?tB(i):String(i).trim();a!==i&&delete n[i],n[a]=$c(o),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return ee.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&ee.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` 52 `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[J1]=this[J1]={accessors:{}}).accessors,o=this.prototype;function i(l){const a=Ml(l);r[a]||(nB(o,l),r[a]=!0)}return ee.isArray(t)?t.forEach(i):i(t),this}}or.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ee.reduceDescriptors(or.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});ee.freezeMethods(or);function th(e,t){const n=this||Ga,r=t||n,o=or.from(r.headers);let i=r.data;return ee.forEach(e,function(a){i=a.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Ox(e){return!!(e&&e.__CANCEL__)}function hl(e,t,n){ot.call(this,e??"canceled",ot.ERR_CANCELED,t,n),this.name="CanceledError"}ee.inherits(hl,ot,{__CANCEL__:!0});function Ax(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new ot("Request failed with status code "+n.status,[ot.ERR_BAD_REQUEST,ot.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function rB(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function oB(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,l;return t=t!==void 0?t:1e3,function(c){const d=Date.now(),p=r[i];l||(l=d),n[o]=c,r[o]=d;let h=i,v=0;for(;h!==o;)v+=n[h++],h=h%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),d-l<t)return;const y=p&&d-p;return y?Math.round(v*1e3/y):void 0}}function sB(e,t){let n=0,r=1e3/t,o,i;const l=(d,p=Date.now())=>{n=p,o=null,i&&(clearTimeout(i),i=null),e.apply(null,d)};return[(...d)=>{const p=Date.now(),h=p-n;h>=r?l(d,p):(o=d,i||(i=setTimeout(()=>{i=null,l(o)},r-h)))},()=>o&&l(o)]}const rd=(e,t,n=3)=>{let r=0;const o=oB(50,250);return sB(i=>{const l=i.loaded,a=i.lengthComputable?i.total:void 0,c=l-r,d=o(c),p=l<=a;r=l;const h={loaded:l,total:a,progress:a?l/a:void 0,bytes:c,rate:d||void 0,estimated:d&&a&&p?(a-l)/d:void 0,event:i,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(h)},n)},Z1=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Q1=e=>(...t)=>ee.asap(()=>e(...t)),iB=rr.hasStandardBrowserEnv?function(){const t=rr.navigator&&/(msie|trident)/i.test(rr.navigator.userAgent),n=document.createElement("a");let r;function o(i){let l=i;return t&&(n.setAttribute("href",l),l=n.href),n.setAttribute("href",l),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(l){const a=ee.isString(l)?o(l):l;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}(),lB=rr.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const l=[e+"="+encodeURIComponent(t)];ee.isNumber(n)&&l.push("expires="+new Date(n).toGMTString()),ee.isString(r)&&l.push("path="+r),ee.isString(o)&&l.push("domain="+o),i===!0&&l.push("secure"),document.cookie=l.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function aB(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function uB(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function kx(e,t){return e&&!aB(t)?uB(e,t):t}const eb=e=>e instanceof or?{...e}:e;function fi(e,t){t=t||{};const n={};function r(d,p,h){return ee.isPlainObject(d)&&ee.isPlainObject(p)?ee.merge.call({caseless:h},d,p):ee.isPlainObject(p)?ee.merge({},p):ee.isArray(p)?p.slice():p}function o(d,p,h){if(ee.isUndefined(p)){if(!ee.isUndefined(d))return r(void 0,d,h)}else return r(d,p,h)}function i(d,p){if(!ee.isUndefined(p))return r(void 0,p)}function l(d,p){if(ee.isUndefined(p)){if(!ee.isUndefined(d))return r(void 0,d)}else return r(void 0,p)}function a(d,p,h){if(h in t)return r(d,p);if(h in e)return r(void 0,d)}const c={url:i,method:i,data:i,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:a,headers:(d,p)=>o(eb(d),eb(p),!0)};return ee.forEach(Object.keys(Object.assign({},e,t)),function(p){const h=c[p]||o,v=h(e[p],t[p],p);ee.isUndefined(v)&&h!==a||(n[p]=v)}),n}const Ix=e=>{const t=fi({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:l,auth:a}=t;t.headers=l=or.from(l),t.url=xx(kx(t.baseURL,t.url),e.params,e.paramsSerializer),a&&l.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let c;if(ee.isFormData(n)){if(rr.hasStandardBrowserEnv||rr.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if((c=l.getContentType())!==!1){const[d,...p]=c?c.split(";").map(h=>h.trim()).filter(Boolean):[];l.setContentType([d||"multipart/form-data",...p].join("; "))}}if(rr.hasStandardBrowserEnv&&(r&&ee.isFunction(r)&&(r=r(t)),r||r!==!1&&iB(t.url))){const d=o&&i&&lB.read(i);d&&l.set(o,d)}return t},cB=typeof XMLHttpRequest<"u",dB=cB&&function(e){return new Promise(function(n,r){const o=Ix(e);let i=o.data;const l=or.from(o.headers).normalize();let{responseType:a,onUploadProgress:c,onDownloadProgress:d}=o,p,h,v,y,b;function S(){y&&y(),b&&b(),o.cancelToken&&o.cancelToken.unsubscribe(p),o.signal&&o.signal.removeEventListener("abort",p)}let T=new XMLHttpRequest;T.open(o.method.toUpperCase(),o.url,!0),T.timeout=o.timeout;function C(){if(!T)return;const E=or.from("getAllResponseHeaders"in T&&T.getAllResponseHeaders()),$={data:!a||a==="text"||a==="json"?T.responseText:T.response,status:T.status,statusText:T.statusText,headers:E,config:e,request:T};Ax(function(R){n(R),S()},function(R){r(R),S()},$),T=null}"onloadend"in T?T.onloadend=C:T.onreadystatechange=function(){!T||T.readyState!==4||T.status===0&&!(T.responseURL&&T.responseURL.indexOf("file:")===0)||setTimeout(C)},T.onabort=function(){T&&(r(new ot("Request aborted",ot.ECONNABORTED,e,T)),T=null)},T.onerror=function(){r(new ot("Network Error",ot.ERR_NETWORK,e,T)),T=null},T.ontimeout=function(){let O=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const $=o.transitional||Tx;o.timeoutErrorMessage&&(O=o.timeoutErrorMessage),r(new ot(O,$.clarifyTimeoutError?ot.ETIMEDOUT:ot.ECONNABORTED,e,T)),T=null},i===void 0&&l.setContentType(null),"setRequestHeader"in T&&ee.forEach(l.toJSON(),function(O,$){T.setRequestHeader($,O)}),ee.isUndefined(o.withCredentials)||(T.withCredentials=!!o.withCredentials),a&&a!=="json"&&(T.responseType=o.responseType),d&&([v,b]=rd(d,!0),T.addEventListener("progress",v)),c&&T.upload&&([h,y]=rd(c),T.upload.addEventListener("progress",h),T.upload.addEventListener("loadend",y)),(o.cancelToken||o.signal)&&(p=E=>{T&&(r(!E||E.type?new hl(null,e,T):E),T.abort(),T=null)},o.cancelToken&&o.cancelToken.subscribe(p),o.signal&&(o.signal.aborted?p():o.signal.addEventListener("abort",p)));const w=rB(o.url);if(w&&rr.protocols.indexOf(w)===-1){r(new ot("Unsupported protocol "+w+":",ot.ERR_BAD_REQUEST,e));return}T.send(i||null)})},fB=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const i=function(d){if(!o){o=!0,a();const p=d instanceof Error?d:this.reason;r.abort(p instanceof ot?p:new hl(p instanceof Error?p.message:p))}};let l=t&&setTimeout(()=>{l=null,i(new ot(`timeout ${t} of ms exceeded`,ot.ETIMEDOUT))},t);const a=()=>{e&&(l&&clearTimeout(l),l=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(i):d.removeEventListener("abort",i)}),e=null)};e.forEach(d=>d.addEventListener("abort",i));const{signal:c}=r;return c.unsubscribe=()=>ee.asap(a),c}},pB=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},hB=async function*(e,t){for await(const n of mB(e))yield*pB(n,t)},mB=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},tb=(e,t,n,r)=>{const o=hB(e,t);let i=0,l,a=c=>{l||(l=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:d,value:p}=await o.next();if(d){a(),c.close();return}let h=p.byteLength;if(n){let v=i+=h;n(v)}c.enqueue(new Uint8Array(p))}catch(d){throw a(d),d}},cancel(c){return a(c),o.return()}},{highWaterMark:2})},ef=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Px=ef&&typeof ReadableStream=="function",gB=ef&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Rx=(e,...t)=>{try{return!!e(...t)}catch{return!1}},vB=Px&&Rx(()=>{let e=!1;const t=new Request(rr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),nb=64*1024,tm=Px&&Rx(()=>ee.isReadableStream(new Response("").body)),od={stream:tm&&(e=>e.body)};ef&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!od[t]&&(od[t]=ee.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new ot(`Response type '${t}' is not supported`,ot.ERR_NOT_SUPPORT,r)})})})(new Response);const yB=async e=>{if(e==null)return 0;if(ee.isBlob(e))return e.size;if(ee.isSpecCompliantForm(e))return(await new Request(rr.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(ee.isArrayBufferView(e)||ee.isArrayBuffer(e))return e.byteLength;if(ee.isURLSearchParams(e)&&(e=e+""),ee.isString(e))return(await gB(e)).byteLength},_B=async(e,t)=>{const n=ee.toFiniteNumber(e.getContentLength());return n??yB(t)},bB=ef&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:l,onDownloadProgress:a,onUploadProgress:c,responseType:d,headers:p,withCredentials:h="same-origin",fetchOptions:v}=Ix(e);d=d?(d+"").toLowerCase():"text";let y=fB([o,i&&i.toAbortSignal()],l),b;const S=y&&y.unsubscribe&&(()=>{y.unsubscribe()});let T;try{if(c&&vB&&n!=="get"&&n!=="head"&&(T=await _B(p,r))!==0){let $=new Request(t,{method:"POST",body:r,duplex:"half"}),P;if(ee.isFormData(r)&&(P=$.headers.get("content-type"))&&p.setContentType(P),$.body){const[R,k]=Z1(T,rd(Q1(c)));r=tb($.body,nb,R,k)}}ee.isString(h)||(h=h?"include":"omit");const C="credentials"in Request.prototype;b=new Request(t,{...v,signal:y,method:n.toUpperCase(),headers:p.normalize().toJSON(),body:r,duplex:"half",credentials:C?h:void 0});let w=await fetch(b);const E=tm&&(d==="stream"||d==="response");if(tm&&(a||E&&S)){const $={};["status","statusText","headers"].forEach(W=>{$[W]=w[W]});const P=ee.toFiniteNumber(w.headers.get("content-length")),[R,k]=a&&Z1(P,rd(Q1(a),!0))||[];w=new Response(tb(w.body,nb,R,()=>{k&&k(),S&&S()}),$)}d=d||"text";let O=await od[ee.findKey(od,d)||"text"](w,e);return!E&&S&&S(),await new Promise(($,P)=>{Ax($,P,{data:O,headers:or.from(w.headers),status:w.status,statusText:w.statusText,config:e,request:b})})}catch(C){throw S&&S(),C&&C.name==="TypeError"&&/fetch/i.test(C.message)?Object.assign(new ot("Network Error",ot.ERR_NETWORK,e,b),{cause:C.cause||C}):ot.from(C,C&&C.code,e,b)}}),nm={http:FU,xhr:dB,fetch:bB};ee.forEach(nm,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const rb=e=>`- ${e}`,wB=e=>ee.isFunction(e)||e===null||e===!1,Lx={getAdapter:e=>{e=ee.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){n=e[i];let l;if(r=n,!wB(n)&&(r=nm[(l=String(n)).toLowerCase()],r===void 0))throw new ot(`Unknown adapter '${l}'`);if(r)break;o[l||"#"+i]=r}if(!r){const i=Object.entries(o).map(([a,c])=>`adapter ${a} `+(c===!1?"is not supported by the environment":"is not available in the build"));let l=t?i.length>1?`since : 53 `+i.map(rb).join(` 54 `):" "+rb(i[0]):"as no adapter specified";throw new ot("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return r},adapters:nm};function nh(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new hl(null,e)}function ob(e){return nh(e),e.headers=or.from(e.headers),e.data=th.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Lx.getAdapter(e.adapter||Ga.adapter)(e).then(function(r){return nh(e),r.data=th.call(e,e.transformResponse,r),r.headers=or.from(r.headers),r},function(r){return Ox(r)||(nh(e),r&&r.response&&(r.response.data=th.call(e,e.transformResponse,r.response),r.response.headers=or.from(r.response.headers))),Promise.reject(r)})}const Fx="1.7.7",rv={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{rv[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const sb={};rv.transitional=function(t,n,r){function o(i,l){return"[Axios v"+Fx+"] Transitional option '"+i+"'"+l+(r?". "+r:"")}return(i,l,a)=>{if(t===!1)throw new ot(o(l," has been removed"+(n?" in "+n:"")),ot.ERR_DEPRECATED);return n&&!sb[l]&&(sb[l]=!0,console.warn(o(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,l,a):!0}};function SB(e,t,n){if(typeof e!="object")throw new ot("options must be an object",ot.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],l=t[i];if(l){const a=e[i],c=a===void 0||l(a,i,e);if(c!==!0)throw new ot("option "+i+" must be "+c,ot.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ot("Unknown option "+i,ot.ERR_BAD_OPTION)}}const rm={assertOptions:SB,validators:rv},ds=rm.validators;class oi{constructor(t){this.defaults=t,this.interceptors={request:new Y1,response:new Y1}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=` 55 `+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=fi(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&rm.assertOptions(r,{silentJSONParsing:ds.transitional(ds.boolean),forcedJSONParsing:ds.transitional(ds.boolean),clarifyTimeoutError:ds.transitional(ds.boolean)},!1),o!=null&&(ee.isFunction(o)?n.paramsSerializer={serialize:o}:rm.assertOptions(o,{encode:ds.function,serialize:ds.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=i&&ee.merge(i.common,i[n.method]);i&&ee.forEach(["delete","get","head","post","put","patch","common"],b=>{delete i[b]}),n.headers=or.concat(l,i);const a=[];let c=!0;this.interceptors.request.forEach(function(S){typeof S.runWhen=="function"&&S.runWhen(n)===!1||(c=c&&S.synchronous,a.unshift(S.fulfilled,S.rejected))});const d=[];this.interceptors.response.forEach(function(S){d.push(S.fulfilled,S.rejected)});let p,h=0,v;if(!c){const b=[ob.bind(this),void 0];for(b.unshift.apply(b,a),b.push.apply(b,d),v=b.length,p=Promise.resolve(n);h<v;)p=p.then(b[h++],b[h++]);return p}v=a.length;let y=n;for(h=0;h<v;){const b=a[h++],S=a[h++];try{y=b(y)}catch(T){S.call(this,T);break}}try{p=ob.call(this,y)}catch(b){return Promise.reject(b)}for(h=0,v=d.length;h<v;)p=p.then(d[h++],d[h++]);return p}getUri(t){t=fi(this.defaults,t);const n=kx(t.baseURL,t.url);return xx(n,t.params,t.paramsSerializer)}}ee.forEach(["delete","get","head","options"],function(t){oi.prototype[t]=function(n,r){return this.request(fi(r||{},{method:t,url:n,data:(r||{}).data}))}});ee.forEach(["post","put","patch"],function(t){function n(r){return function(i,l,a){return this.request(fi(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:l}))}}oi.prototype[t]=n(),oi.prototype[t+"Form"]=n(!0)});class ov{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(o=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const l=new Promise(a=>{r.subscribe(a),i=a}).then(o);return l.cancel=function(){r.unsubscribe(i)},l},t(function(i,l,a){r.reason||(r.reason=new hl(i,l,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new ov(function(o){t=o}),cancel:t}}}function EB(e){return function(n){return e.apply(null,n)}}function $B(e){return ee.isObject(e)&&e.isAxiosError===!0}const om={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(om).forEach(([e,t])=>{om[t]=e});function Nx(e){const t=new oi(e),n=px(oi.prototype.request,t);return ee.extend(n,oi.prototype,t,{allOwnKeys:!0}),ee.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Nx(fi(e,o))},n}const rn=Nx(Ga);rn.Axios=oi;rn.CanceledError=hl;rn.CancelToken=ov;rn.isCancel=Ox;rn.VERSION=Fx;rn.toFormData=Qd;rn.AxiosError=ot;rn.Cancel=rn.CanceledError;rn.all=function(t){return Promise.all(t)};rn.spread=EB;rn.isAxiosError=$B;rn.mergeConfig=fi;rn.AxiosHeaders=or;rn.formToJSON=e=>Cx(ee.isHTMLForm(e)?new FormData(e):e);rn.getAdapter=Lx.getAdapter;rn.HttpStatusCode=om;rn.default=rn;const sv=({bearer:e},t={})=>({"Content-Type":"application/json",Accept:"application/json",...Mx({bearer:e}),...t}),Mx=({bearer:e})=>({...e?{Authorization:`Bearer ${e}`}:{}}),xB=({errorHandler:e,bearer:t,method:n,urlProcessor:r})=>(o,{headers:i,query:l}={})=>fetch(fl(r?r(o):o,l),{method:n,headers:sv({bearer:t},i)}).then(qa(e)),TB=({errorHandler:e,bearer:t,method:n,urlProcessor:r})=>(o,i,{headers:l,query:a}={})=>fetch(fl(r?r(o):o,a),{method:n,headers:sv({bearer:t},l),body:JSON.stringify(i)}).then(qa(e)),CB=({errorHandler:e,bearer:t,method:n,urlProcessor:r})=>(o,i,{headers:l,query:a}={})=>fetch(fl(r?r(o):o,a),{method:n,headers:sv({bearer:t},l),body:JSON.stringify(i)}).then(qa(e));function OB(e){console.log("default progress",e)}const AB=({errorHandler:e,bearer:t,urlProcessor:n})=>(r,o,{query:i,hooks:l}={})=>{const a=new FormData,c=(l==null?void 0:l.onUploadProgress)||OB;if(o.file){const d=o.track_id||"input_file";a.append(d,o.file)}return o.image&&a.append("image",o.image),rn.post(fl(n?n(r):r,i),a,{headers:{...Mx({bearer:t})},onUploadProgress:c})},kB=Y.curry(({base:e,bearer:t,errorHandler:n})=>({get:xB({bearer:t,method:"GET",errorHandler:n,urlProcessor:r=>`${e}/${r}`}),post:TB({bearer:t,errorHandler:n,method:"POST",urlProcessor:r=>`${e}/${r}`}),delete:CB({bearer:t,errorHandler:n,method:"DELETE",urlProcessor:r=>`${e}/${r}`}),upload:AB({bearer:t,errorHandler:n,urlProcessor:r=>`${e}/${r}`})}));function*IB(){const e="https://auphonic.com/api",t=yield be(B.auphonic.token);return kB({base:e,bearer:t,errorHandler:function(r){tf.dispatch(Qg({type:"error",message:`Auphonic: ${r.error_message}`}))}})}let lc;const PB=new Uint8Array(16);function RB(){if(!lc&&(lc=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!lc))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return lc(PB)}const Tn=[];for(let e=0;e<256;++e)Tn.push((e+256).toString(16).slice(1));function LB(e,t=0){return Tn[e[t+0]]+Tn[e[t+1]]+Tn[e[t+2]]+Tn[e[t+3]]+"-"+Tn[e[t+4]]+Tn[e[t+5]]+"-"+Tn[e[t+6]]+Tn[e[t+7]]+"-"+Tn[e[t+8]]+Tn[e[t+9]]+"-"+Tn[e[t+10]]+Tn[e[t+11]]+Tn[e[t+12]]+Tn[e[t+13]]+Tn[e[t+14]]+Tn[e[t+15]]}const FB=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),ib={randomUUID:FB};function NB(e,t,n){if(ib.randomUUID&&!t&&!e)return ib.randomUUID();e=e||{};const r=e.random||(e.rng||RB)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,LB(r)}const MB=(e,t)=>({success:!1,status:"failed",filename:e.filename||e.name||"unknown",download_url:e.download_url||e.localUrl||"unknown",message:t.message||"Processing failed"}),Dx=(e,t="Request failed")=>{var n,r;return((n=e.error)==null?void 0:n.message)||e.message||((r=e.result)==null?void 0:r.message)||t},DB=(e,t)=>({success:!1,status:"failed",filename:e.filename||e.name||"unknown",download_url:e.download_url||e.localUrl||"unknown",message:`Transfer failed: ${t}`}),rh=(e,t)=>e?t>0?"completed_with_errors":"failed":"completed",UB=e=>e?"error":"finished";function*sd(e){const t=yield be(B.episode.id),n=yield be(B.mediafiles.files);yield qS(n.map(r=>St(Ux,e,t,r.asset_id)))}function*Ux(e,t,n){const o=(yield be(B.mediafiles.files)).find(c=>c.asset_id==n);yield te(Xh({asset_id:n,is_verifying:!0}));const{result:i}=yield e.put(`episodes/${t}/media/${n}/verify`,{}),l=!(o!=null&&o.size)&&i.file_size||(o==null?void 0:o.enable),a={asset_id:n,url:i.file_url,size:i.file_size,enable:l,is_verifying:!1};yield te(Xh(a)),typeof i.slug_frozen<"u"&&(yield te(bt({prop:"slug_frozen",value:i.slug_frozen})))}function*BB(e,t){const n=yield be(B.episode.id),r=t.payload;yield Ux(e,n,r)}function*jB(){const e=yield Kr();yield St(VB,e),yield Ne(Hg,oj),yield Ne(jg,rj),yield te(qd())}function*VB(e){const{result:t}=yield e.get("auphonic/token");t&&(yield te(k8(t)),yield St(HB),yield Ne(Jc,ij,e),yield Ne(zg,sj,e),yield Ne(Jc,lj,e),yield Ne(Zc,aj,e),yield Ne(Vg,dj),yield Ne(l$,uj,e),yield Ne(Qc,ab,e),yield Ne(Zc,ab,e),yield Ne(m$,pj,e),yield Ne(g$,vj,e),yield Ne(Wg,yj,e))}function*HB(){const e=yield IB(),{result:{data:t}}=yield e.get("presets.json"),{result:{data:n}}=yield e.get("productions.json",{limit:50,minimal_data:!0});let{result:{data:r}}=yield e.get("services.json");yield te(y$(n)),yield te(R8(t)),yield te(L8([{uuid:"url",display_name:"From URL",email:"",incoming:!0,outgoing:!1,type:"url"},{uuid:"file",display_name:"Upload from computer",email:"",incoming:!0,outgoing:!1,type:"file"},...r])),yield $t(cj),yield $t(fj),yield te(A8()),yield Ne(o$,tj,e),yield Ne(s$,nj,e),yield Ne(w$,ej,e),yield Ne(_$,jx,e),yield Ne(b$,KB,e),yield Ne(v$,WB,e),yield Ne(E$,qB,e),yield $t(zB,e)}function*zB(e){for((yield be(B.episode.isAuphonicProductionRunning))&&(yield Hh([$t(lb,e),oo(Qc)]));;)yield oo(f$),yield Hh([$t(lb,e),oo(Qc)])}function*lb(e){for(;;){let t=yield be(B.auphonic.productionId);t||(yield te(M1()));let{result:{data:n}}=yield e.get(`production/${t}.json`);yield te(mi(n)),n.status==3&&(yield te(bt({prop:"slug",value:n.output_basename})),(yield be(B.plus.features)).fileStorage&&(yield te(T$({production_uuid:n.uuid})))),[0,1,4,5,6,7,8,12,13,14].includes(n.status)||(yield te(M1())),yield Md(2500)}}function*WB(e){const{result:{data:t}}=yield e.get("productions.json",{limit:10,minimal_data:!0});yield te(y$(t))}function*qB(e,t){let n=yield be(B.auphonic.productionId);yield e.delete(`production/${n}/multi_input_files/${t.payload}.json`)}function*KB(e,t){const n=t.payload.uuid;yield $t(jx,e,{type:i$,payload:{uuid:n}});const r=yield be(B.episode.auphonicWebhookConfig),o=yield be(B.auphonic.publishWhenDone),i=yield be(B.runtime.baseUrl),l=yield be(B.post.id),a=i+"/?podlove-auphonic-production="+l+"&authkey="+(r==null?void 0:r.authkey),c={webhook:r&&o?a:""};yield e.post(`production/${n}.json`,c);const d=yield e.post(`production/${n}/start.json`,{});d.result?yield te(mi(d.result.data)):console.warn(d.error.error_message),yield te(M8())}function*GB(e,t,n,r){var d;let o=n.payload;const i=o.id,l=o.id_new,a=!!((d=n.upload)!=null&&d.file);delete o.id_new,o.id=l;const c=r(o.id);switch(n.state){case"edited":yield e.post(`production/${t}/multi_input_files/${i}.json`,o),a&&(yield e.upload(`production/${t}/upload.json`,n.upload,{hooks:{onUploadProgress:c}}));break;case"new":yield e.post(`production/${t}.json`,{multi_input_files:[n.payload]}),a&&(yield e.upload(`production/${t}/upload.json`,n.upload,{hooks:{onUploadProgress:c}}));break}}const Bx=e=>{if(!e)return{};switch(e.currentServiceSelection){case"url":return{service:"url",value:e.urlValue};case"file":return{service:"file",value:e.fileValue};default:return{service:e.currentServiceSelection,value:e.fileSelection}}};function XB(e){const t=Y.get(e,["auphonic","file_selections"]),n=Y.get(e,["auphonic","production","uuid"],"");return Bx(Y.get(t,n))}function YB(e){const t=Y.get(e,["auphonic","file_selections"]),n=Y.get(e,["auphonic","production","uuid"],"");return Y.get(e,["auphonic","tracks"],[]).reduce((o,i,l)=>(o.push(Bx(Y.get(t,`${n}_t${l}`))),o),[])}function JB(e){const t=Y.get(e,["auphonic","production","is_multitrack"],!1),n=Y.get(e,["auphonic","tracks"],[]);if(!t)return[];const r=YB(e);return n.map((o,i)=>{const l=o.save_state;if(l=="unchanged")return{};let a={},c={};return r[i].service=="url"?c={input_file:r[i].value}:r[i].service=="file"?a={track_id:o.identifier_new,file:r[i].value}:c={service:r[i].service,input_file:r[i].value},{state:l,upload:a,payload:{type:"multitrack",id:o.identifier,id_new:o.identifier_new,...c,algorithms:{denoise:o.noise_and_hum_reduction,filtering:o.filtering,backforeground:o.fore_background}}}}).filter(o=>Object.keys(o).length>0)}function ZB(e){let t=Y.get(e,["auphonic","productionPayload"],{});const{output_files:n,...r}=t,o=e.episode.poster||e.podcast.poster,i=e.episode.slug?{output_basename:e.episode.slug}:{};return{...r,...i,image:o,metadata:{...r.metadata,title:e.episode.title||e.post.title,subtitle:e.episode.subtitle,summary:e.episode.summary,artist:e.podcast.author_name,album:e.podcast.title,url:e.podcast.link,track:e.episode.number},chapters:e.chapters.chapters.map(l=>({title:l.title,url:l.href,start:new Dt(l.start).pretty}))}}function QB(e){const t=Y.get(e,["auphonic","production","is_multitrack"],!1),n=ZB(e);let r={};if(!t){const o=XB(e);o.service=="url"?r={input_file:o.value}:o.service=="file"?r={input_file:o.value}:r={service:o.service,input_file:o.value}}return{...n,...r}}function*jx(e,t){yield te(D8());const n=t.payload.uuid,r=yield be(QB),o=yield be(JB);yield e.delete(`production/${n}/chapters.json`);const i=yield $t(sx,k$),l=ix(i);yield qS(o.map(p=>$t(GB,e,n,p,l)));const a=r.input_file;typeof a=="object"&&(yield $t(e.upload,`production/${n}/upload.json`,{file:a},{hooks:{onUploadProgress:l("singletrack")}}),delete r.input_file);const c=r.image;fetch(c).then(p=>p.blob()).then(p=>{const v="image."+(p.type.includes("png")?"png":"jpg"),y=new File([p],v,{type:p.type});e.upload(`production/${n}/upload.json`,{image:y},{hooks:{onUploadProgress:l("poster")}})}),delete r.image;const{result:{data:d}}=yield e.post(`production/${n}.json`,r);yield te(mi(d)),yield te(U8())}function*ej(e,t){const n=t.payload;if(n=="file"||n=="url")return;const{result:r}=yield e.get(`service/${n}/ls.json`);yield te(F8({uuid:n,files:r.data}))}function*Vx(){const e=yield be(B.episode.title),t=yield be(B.post.title);return e||t||"New Production"}function*tj(e){const t=yield be(B.auphonic.preset),n=yield Vx(),{result:r}=yield e.post("productions.json",{preset:t,metadata:{title:n}}),o=r.data;yield te(mi(o))}function*nj(e){const t=yield be(B.auphonic.preset),n=yield Vx(),{result:r}=yield e.post("productions.json",{preset:t,metadata:{title:n},is_multitrack:!0}),o=r.data;yield te(mi(o))}function*rj(e){const t=yield be(B.auphonic.currentFileSelection);(yield be(B.auphonic.fileSelections))[t].fileSelection||(yield te(S$({key:t,prop:"fileSelection",value:e.payload.files[0]})))}function*oj(e){const{prop:t,value:n}=e.payload;t==="currentServiceSelection"&&(yield te(w$(n)))}function*sj(e){const t=yield be(B.episode.auphonicWebhookConfig),n=yield be(B.auphonic.publishWhenDone);!t||t.enabled==n||(yield te(bt({prop:"auphonic_webhook_config",value:{...t,enabled:n}})))}function*ij(e){const t=yield be(B.episode.auphonicWebhookConfig),n=yield be(B.auphonic.publishWhenDone);if(t&&t.authkey)return;const r=NB();yield te(bt({prop:"auphonic_webhook_config",value:{authkey:r,enabled:n||!1}}))}function*lj(e){const t=yield be(B.episode.id),n=yield be(B.auphonic.productionId);yield e.put(`episodes/${t}`,{auphonic_production_id:n})}function*aj(e){const t=yield be(B.episode.id);yield e.put(`episodes/${t}`,{auphonic_production_id:""})}function*uj(e){const t=yield be(B.episode.id);yield e.put(`episodes/${t}`,{is_auphonic_production_running:!0})}function*ab(e){const t=yield be(B.episode.id);yield e.put(`episodes/${t}`,{is_auphonic_production_running:!1})}function*cj(){const e=yield be(B.episode.id),t=yield be(B.episode.auphonicProductionId),n=yield be(B.auphonic.productionId),r=yield be(B.auphonic.productions);if(!n&&t&&e){const o=r.find(i=>i.uuid==t);o&&(yield te(mi(o)))}}function*dj(){const e=yield be(B.auphonic.preset);localStorage&&localStorage.setItem("podlove-auphonic-preset",e)}function*fj(){let e=null;localStorage&&(e=localStorage.getItem("podlove-auphonic-preset"),e&&(yield te(qg(e))))}function*pj(e,t){const{production_uuid:n}=t.payload,r=yield be(B.post.id);try{yield te(to({production_uuid:n,status:"in_progress"}));const o=yield e.post(`auphonic/init-plus-file-transfer/${n}/${r}`,{});if(o.result&&o.result.success&&o.result.transfer_queue){const i=o.result.transfer_queue;if(i.length===0){yield te(to({production_uuid:n,status:"completed",files:[]}));return}yield $t(mj,e,n,r,i)}else yield te(to({production_uuid:n,status:"failed",errors:Dx(o,"Failed to initialize transfer")}))}catch(o){yield te(to({production_uuid:n,status:"failed",errors:o.message||"Failed to trigger transfer"}))}}function oh(e,t){return e.slice(t).map(n=>({success:null,status:"pending",filename:n.filename,download_url:n.download_url,message:"Waiting to transfer..."}))}function hj(e){return{success:null,status:"processing",filename:e.filename,download_url:e.download_url,message:"Transferring..."}}function ac(e){return{...e,status:e.success?"completed":"failed"}}function*mj(e,t,n,r){let o=0,i=!1;const l=[],a=r.map(d=>({success:null,status:"pending",filename:d.filename,download_url:d.download_url,message:"Waiting to transfer..."}));yield te(to({production_uuid:t,status:"in_progress",files:a}));for(let d=0;d<r.length;d++){const p=r[d],h=[...l.map(ac),hj(p),...oh(r,d+1)];yield te(to({production_uuid:t,status:"in_progress",files:h}));try{const v=yield $t(gj,e,t,n,p);l.push(v),v.success?o++:i=!0;const b=d===r.length-1?rh(i,o):"in_progress";yield te(to({production_uuid:t,status:b,files:[...l.map(ac),...oh(r,l.length)]}))}catch(v){i=!0;const y=DB(p,v.message);l.push(y),console.error("Error transferring file:",v);const S=d===r.length-1?rh(i,o):"in_progress";yield te(to({production_uuid:t,status:S,files:[...l.map(ac),...oh(r,l.length)]}))}}const c=rh(i,o);try{const d={status:c,files:l};if(i)if(o===0)d.errors="All file transfers failed";else{const p=l.length-o;d.errors=`${p} of ${l.length} file transfers failed`}yield e.post(`auphonic/set-plus-transfer-status/${t}/${n}`,d)}catch(d){console.error("Failed to store final transfer status:",d)}yield te(to({production_uuid:t,status:c,files:l.map(ac)}))}function*gj(e,t,n,r){const o=yield e.post(`auphonic/transfer-single-file/${t}/${n}`,{file_data:r});return o.result?o.result:MB(r,{message:Dx(o,"Transfer failed")})}function*vj(e,t){const{production_uuid:n}=t.payload;try{const r=yield be(B.episode.id);if(!r){console.error("Episode ID not available for loading transfer status");return}const o=yield e.get(`episodes/${r}`),i=o.result.auphonic_plus_transfer_status,l=o.result.auphonic_plus_transfer_files,a=o.result.auphonic_plus_transfer_errors;i&&(yield te(to({production_uuid:n,status:i,files:l,errors:a})))}catch(r){console.error("Error loading PLUS transfer status:",r)}}function*yj(e,t){const{status:n}=t.payload;n==="completed"&&(yield $t(sd,e))}function _j(){return function*(){yield cr(QE,jB)}}function*bj(e,t){const n=yield be(B.episode.id),r=t.payload,{result:o}=yield e.put(`episodes/${n}/media/${r}/enable`,{}),i={asset_id:r,url:o.file_url,size:o.file_size,enable:!0};yield te(Xh(i)),typeof o.slug_frozen<"u"&&(yield te(bt({prop:"slug_frozen",value:o.slug_frozen})))}function*wj(e,t){const n=yield be(B.episode.id),r=t.payload;yield e.put(`episodes/${n}/media/${r}/disable`,{})}function*Sj(e){const t=yield be(B.mediafiles.files),n=yield be(B.episode.duration),o=t.filter(l=>l.enable&&l.size&&l.url).filter(l=>l.url.match(/\.(mp3|mp4|m4a|ogg|oga|opus)$/));let i;if(o.length===0)i="0";else{const l=o[0].url;i=(yield $j(l)).toString()}parseFloat(n)!==parseFloat(i)&&(yield te(bt({prop:"duration",value:i})))}async function Ej(e){return new Promise(t=>e.onloadedmetadata=()=>t())}async function $j(e){var t=new Audio;return t.setAttribute("preload","metadata"),t.setAttribute("src",e),t.load(),await Ej(t),t.duration}function*xj(e,t){const{files:n,episodeSlug:r}=Y.get(t,["payload"]),o=yield be(B.mediafiles.selectedFiles),i=o.map(a=>a.file),l=Tj(n,i);if(l.length>0){yield $t(Oj,l,r);const a=yield be(B.episode.id),c=l.map(p=>({file:p,originalName:p.name,newName:p.name,fileExists:null})),d=[...o,...c];yield te({type:Wa,payload:d});for(const p of l)yield St(Hx,e,p,a)}}function Tj(e,t){return e.filter(n=>!t.some(r=>r.name===n.name&&r.size===n.size))}function Cj(e){return e.split(".").slice(0,-1).join(".")}function*Oj(e,t){if(t)return t;if(e.length===0)return"";const n=e[0].name,r=Cj(n);return yield te(bt({prop:"slug",value:r})),r}function*Aj(e,t){const{result:n}=yield e.post("plus/check_file_exists",{filename:t.file.name});return{...t,fileExists:n}}function*Hx(e,t,n){const r=`filename-generation-${t.name}`;try{yield te(ia({key:r,status:"in_progress",message:"Generating filename..."}));const{result:o}=yield e.post("plus/generate_filename",{original_filename:t.name,episode_id:n}),i=o.generated_filename,a={file:new File([t],i,{type:t.type,lastModified:t.lastModified}),originalName:t.name,newName:i},c=yield $t(Aj,e,a);yield $t(kj,t.name,c),yield te(ia({key:r,status:"finished",message:"Filename generated"})),yield St(ub,r,2e3)}catch(o){yield te(ia({key:r,status:"error",message:"Failed to generate filename"})),yield St(ub,r,5e3),console.warn("Failed to generate filename via API, keeping original:",o)}}function*kj(e,t){const r=(yield be(B.mediafiles.selectedFiles)).map(o=>o.originalName===e?t:o);yield te({type:Wa,payload:r})}function*ub(e,t){yield Md(t),yield te(I$(e))}function*Ij(e,t){const n=yield be(B.episode.id),r=yield be(B.episode.slug);if((yield be(B.mediafiles.slugAutogenerationEnabled))&&t.payload.prop=="title"&&t.payload.value){const i=t.payload.value,{result:l}=yield e.get(`episodes/${n}/build_slug`,{query:{title:i}});r!=l.slug&&(yield te(bt({prop:"slug",value:l.slug})))}}function*Pj(e){const t=yield be(B.mediafiles.selectedFiles),n=yield be(B.episode.slug);if(t.length>0&&n){const r=t.map(l=>new File([l.file],l.originalName,{type:l.file.type,lastModified:l.file.lastModified})),o=r.map(l=>({file:l,originalName:l.name,newName:l.name,fileExists:null}));yield te({type:Wa,payload:o});const i=yield be(B.episode.id);for(const l of r)yield St(Hx,e,l,i)}}function*Rj(e){const t=yield be(B.episode.id);if(t)try{const{result:n}=yield e.post(`episodes/${t}/unfreeze_slug`,{});yield te(Ng({slug_frozen:n.slug_frozen}))}catch(n){console.error("Failed to unfreeze slug:",n)}}function*Lj(){yield te(Mg({onSuccess:{type:Gg}}))}function*Fj(e,t){const n=Y.get(t,["payload"]),r=`plus-upload-${n.name}`;yield te(I$(r));try{const o=yield $t(Nj,e,n.name),i=yield $t(Mj,o,n,r);yield te(iD(i));const l=yield $t(Dj,e,n.name);console.log("completeResult",l)}catch(o){console.error("File upload failed:",o),yield te(ia({key:r,status:"error",message:o instanceof Error?o.message:"File upload failed"}))}}function*Nj(e,t){const{result:n}=yield e.post("plus/create_file_upload",{filename:t});if(!n)throw new Error("Failed to get upload URL");return n}function*Mj(e,t,n){var a;const r=yield $t(sx,Uj),o=ix(r),l=(a=(yield $t(rn.put,e,t,{headers:{"Content-Type":t.type},onUploadProgress:o(n)})).config.url)==null?void 0:a.split("?")[0];if(!l)throw new Error("Failed to extract file URL from response");return l}function*Dj(e,t){const{result:n}=yield e.post("plus/complete_file_upload",{filename:t});if(!n)throw new Error("Failed to complete file upload");return n}function*Uj(e){yield te(k$(e)),yield te(ia({key:e.key,status:e.progress==100?"finished":"in_progress"}))}function*Bj(e,t){const r=Y.get(t,["payload"]).split("\\").pop().split("/").pop().split(".").shift();(yield be(B.episode.slug))?yield $t(sd,e):(yield te(bt({prop:"slug",value:r})),yield te(AM()))}function*jj(){const e=yield Kr();yield St(Vj,e)}function*Vj(e){const t=yield be(B.episode.id);let n=[];if(t){const{result:r}=yield e.get(`episodes/${t}/media`);n=Y.get(r,["results"],[])}yield te(Q8(n)),yield Ne(ed,bj,e),yield Ne(td,wj,e),yield Ne(F$,BB,e),yield Ne(N$,sd,e),yield B1(zh,sd,e),yield B1(zh,Pj,e),yield Yh(2e3,Wd,Ij,e),yield Ne(j$,xj,e),yield ox(2e3,[ed,td,Kg],Sj,e),yield Ne(M$,Lj),yield Ne(D$,Fj,e),yield Ne(Gg,Bj,e),yield Ne(z$,Rj,e),yield te(Z8())}function Hj(){return function*(){yield cr(P$,jj)}}function*zj(){const e=yield Kr();yield St(Wj,e),yield Ne(Xg,qj,e)}function*Wj(e){const t=yield be(B.episode.id),[n,r]=yield Promise.all([e.get(`episodes/${t}/related?status=all`),e.get("episodes?status=all&sort_by=post_id&order_by=asc")]),o=Y.get(n,["result","relatedEpisodes"],[]),i=Y.get(r,["result","results"],[]),l=o.map(a=>a.related_episode_id);yield te(G$(l)),yield te(mD(i))}function*qj(e,t){const n=yield be(B.episode.id),r=yield be(B.relatedEpisodes.selectEpisode);yield e.post(`episodes/${n}/related`,{related:r})}function Kj(){return function*(){yield cr(q$,zj)}}function*Gj(){const e=yield Kr();yield St(Xj,e)}function*Xj(e){const t=yield be(B.settings.modules),{result:n}=yield e.get("shows");vD&&(yield te(Y$(n)),yield Ne(tl,Jj),t.includes("automatic_numbering")&&(yield Ne(nd,Zj,e)),t.includes("auphonic")&&(yield Ne(nd,Yj,n)))}function*Yj(e,t){const n=e.find(r=>r.slug===t.payload);n&&n.auphonic_preset&&(yield te(qg(n.auphonic_preset)))}function*Jj(e){const t=Y.get(e,["payload","prop"]),n=Y.get(e,["payload","value"],null);t==="show"&&(yield te(J$(n)))}function*Zj(e,t){const{result:n}=yield e.get("shows/next_episode_number",{query:{show:t.payload}});yield te(bt({prop:"number",value:n.toString()}))}function Qj(){return function*(){yield cr(Yg,Gj)}}function*eV(){const e=yield Kr();yield St(tV,e),yield Ne(Zg,nV,e)}function*tV(e){const{result:t}=yield e.get("admin/onboarding");t&&(yield te(_D(t)))}function*nV(e,t){const n=yield be(B.admin.type);yield e.put("admin/onboarding",{type:n})}function rV(){return function*(){yield cr(tx,eV)}}function*oV(){const e=yield Kr();yield St(sV,e)}function*sV(e){const{result:t}=yield e.get("plus/get_migration_status");yield te(y8({isMigrationComplete:t.is_complete}));const{result:n}=yield e.get("admin/plus/episodes_for_migration"),r=n.episodes.map(o=>({episodeName:o.episode_title,files:o.files.map(i=>({name:i.filename,localUrl:i.local_url,remoteUrl:i.plus_url,state:"init"}))}));yield te(h8({episodesWithFiles:r})),yield te(qh({totalState:"ready"})),yield cr(BE,lV,e)}function*iV(e,t,n){const o=(yield be(B.plusFileMigration.episodesWithFiles))[t],i=o.files[n],l=o.episodeName,a=i.name;yield te(g8({currentEpisodeName:l,currentFileName:a})),yield te(sc({filename:a,state:"in_progress"}));try{(yield e.post("plus/migrate_file",{filename:a,file_url:i.localUrl})).result===!1?yield te(sc({filename:a,state:"error"})):(yield te(sc({filename:a,state:"finished"})),yield te(to({production_uuid:"migration",status:"completed"})))}catch(c){throw yield te(sc({filename:a,state:"error"})),c}}function*lV(e){yield te(qh({totalState:"in_progress"}));const t=yield be(B.plusFileMigration.episodesWithFiles),n=t.reduce((l,a)=>l+a.files.length,0);let r=0,o=!1;const i=t.flatMap((l,a)=>l.files.map((c,d)=>({episodeIndex:a,fileIndex:d})));for(const l of i)try{yield $t(iV,e,l.episodeIndex,l.fileIndex),r++}catch(a){o=!0,console.error("Error migrating file:",a)}finally{const a=Math.round(r/n*100);yield te(v8({progress:a}))}yield te(qh({totalState:UB(o)})),o||(yield e.post("plus/set_migration_complete",{}))}function aV(){return function*(){yield cr(ME,oV)}}function*uV(){const e=yield Kr();yield St(cV,e)}function*cV(e){const{result:t}=yield e.get("admin/plus/features");yield te(Kh({feature:"fileStorage",value:t.file_storage})),yield te(Kh({feature:"feedProxy",value:t.feed_proxy})),yield Ne(Bg,dV,e),yield Ne(KE,fV,e),yield Ne(YE,pV,e),yield te(S8())}function*dV(e,t){const{feature:n,value:r}=t.payload;yield e.post("admin/plus/set_feature",{feature:n,value:r})}function*fV(e){try{yield te(F1(!0));const{result:t}=yield e.get("admin/plus/token");yield te(Gh(t.token||"")),t.token&&(yield $t(zx,e,t.token))}catch(t){console.error("Failed to get token:",t),yield te(Gh("")),yield te(sa(null))}finally{yield te(F1(!1))}}function*zx(e,t){try{const{result:n}=yield e.get("admin/plus/validate_token");n.user?yield te(sa(n.user)):yield te(sa(null))}catch(n){console.error("Failed to validate token:",n),yield te(sa(null))}}function*pV(e,t){try{yield te(N1(!0));const n=t.payload;yield e.post("admin/plus/save_token",{token:n}),n?yield $t(zx,e,n):yield te(sa(null))}catch(n){console.error("Failed to save token:",n)}finally{yield te(N1(!1))}}function hV(){return function*(){yield cr(qE,uV)}}const jn=HN(),mV=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||hS,tf=hg(MD,mV(C7(jn)));jn.run(VD());jn.run(e9());jn.run(_9());jn.run(x9());jn.run(R9());jn.run(B9());jn.run(X9());jn.run(QD());jn.run(_j());jn.run(Hj());jn.run(Kj());jn.run(Qj());jn.run(rV());jn.run(aV());jn.run(hV());const gV=ge({props:{name:{type:String,default:null},title:{type:String,default:null}}}),Le=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},vV={class:"bg-white font-sans sm:rounded-lg sm:shadow-md"},yV={class:"bg-white px-4 py-5 border-b border-gray-200 sm:px-6"},_V={class:"-ml-4 -mt-2 flex items-center justify-between flex-wrap sm:flex-nowrap"},bV={class:"ml-4 mt-2"},wV=["for"],SV={class:"ml-4 mt-2 flex flex-shrink-0"};function EV(e,t,n,r,o,i){return I(),F("section",vV,[m("div",yV,[m("div",_V,[m("div",bV,[m("h3",{class:"text-lg leading-6 font-medium text-gray-900",for:`podlove-module-${e.name}`},L(e.title),9,wV)]),m("div",SV,[yn(e.$slots,"actions")])])]),m("div",null,[yn(e.$slots,"default")])])}const In=Le(gV,[["render",EV]]);function $V(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5M16.5 12 12 16.5m0 0L7.5 12m4.5 4.5V3"})])}function Wx(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 13.5 12 21m0 0-7.5-7.5M12 21V3"})])}function nf(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"})])}function qx(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M13.5 6H5.25A2.25 2.25 0 0 0 3 8.25v10.5A2.25 2.25 0 0 0 5.25 21h10.5A2.25 2.25 0 0 0 18 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25"})])}function xV(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5m-13.5-9L12 3m0 0 4.5 4.5M12 3v13.5"})])}function TV(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4.5 10.5 12 3m0 0 7.5 7.5M12 3v18"})])}function CV(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M17.593 3.322c1.1.128 1.907 1.077 1.907 2.185V21L12 17.25 4.5 21V5.507c0-1.108.806-2.057 1.907-2.185a48.507 48.507 0 0 1 11.186 0Z"})])}function OV(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 12.75 11.25 15 15 9.75M21 12c0 1.268-.63 2.39-1.593 3.068a3.745 3.745 0 0 1-1.043 3.296 3.745 3.745 0 0 1-3.296 1.043A3.745 3.745 0 0 1 12 21c-1.268 0-2.39-.63-3.068-1.593a3.746 3.746 0 0 1-3.296-1.043 3.745 3.745 0 0 1-1.043-3.296A3.745 3.745 0 0 1 3 12c0-1.268.63-2.39 1.593-3.068a3.745 3.745 0 0 1 1.043-3.296 3.746 3.746 0 0 1 3.296-1.043A3.746 3.746 0 0 1 12 3c1.268 0 2.39.63 3.068 1.593a3.746 3.746 0 0 1 3.296 1.043 3.746 3.746 0 0 1 1.043 3.296A3.745 3.745 0 0 1 21 12Z"})])}function Kx(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function AV(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m4.5 12.75 6 6 9-13.5"})])}function Gx(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"})])}function kV(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})])}function IV(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M20.25 6.375c0 2.278-3.694 4.125-8.25 4.125S3.75 8.653 3.75 6.375m16.5 0c0-2.278-3.694-4.125-8.25-4.125S3.75 4.097 3.75 6.375m16.5 0v11.25c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125V6.375m16.5 0v3.75m-16.5-3.75v3.75m16.5 0v3.75C20.25 16.153 16.556 18 12 18s-8.25-1.847-8.25-4.125v-3.75m16.5 0c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125"})])}function PV(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M11.35 3.836c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 0 0 .75-.75 2.25 2.25 0 0 0-.1-.664m-5.8 0A2.251 2.251 0 0 1 13.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m8.9-4.414c.376.023.75.05 1.124.08 1.131.094 1.976 1.057 1.976 2.192V16.5A2.25 2.25 0 0 1 18 18.75h-2.25m-7.5-10.5H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V18.75m-7.5-10.5h6.375c.621 0 1.125.504 1.125 1.125v9.375m-8.25-3 1.5 1.5 3-3.75"})])}function Xx(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function rf(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 16.5V9.75m0 0 3 3m-3-3-3 3M6.75 19.5a4.5 4.5 0 0 1-1.41-8.775 5.25 5.25 0 0 1 10.233-2.33 3 3 0 0 1 3.758 3.848A3.752 3.752 0 0 1 18 19.5H6.75Z"})])}function Yx(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M2.25 15a4.5 4.5 0 0 0 4.5 4.5H18a3.75 3.75 0 0 0 1.332-7.257 3 3 0 0 0-3.758-3.848 5.25 5.25 0 0 0-10.233 2.33A4.502 4.502 0 0 0 2.25 15Z"})])}function RV(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.325.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 0 1 1.37.49l1.296 2.247a1.125 1.125 0 0 1-.26 1.431l-1.003.827c-.293.241-.438.613-.43.992a7.723 7.723 0 0 1 0 .255c-.008.378.137.75.43.991l1.004.827c.424.35.534.955.26 1.43l-1.298 2.247a1.125 1.125 0 0 1-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.47 6.47 0 0 1-.22.128c-.331.183-.581.495-.644.869l-.213 1.281c-.09.543-.56.94-1.11.94h-2.594c-.55 0-1.019-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 0 1-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 0 1-1.369-.49l-1.297-2.247a1.125 1.125 0 0 1 .26-1.431l1.004-.827c.292-.24.437-.613.43-.991a6.932 6.932 0 0 1 0-.255c.007-.38-.138-.751-.43-.992l-1.004-.827a1.125 1.125 0 0 1-.26-1.43l1.297-2.247a1.125 1.125 0 0 1 1.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.086.22-.128.332-.183.582-.495.644-.869l.214-1.28Z"}),m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})])}function LV(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4.5 12a7.5 7.5 0 0 0 15 0m-15 0a7.5 7.5 0 1 1 15 0m-15 0H3m16.5 0H21m-1.5 0H12m-8.457 3.077 1.41-.513m14.095-5.13 1.41-.513M5.106 17.785l1.15-.964m11.49-9.642 1.149-.964M7.501 19.795l.75-1.3m7.5-12.99.75-1.3m-6.063 16.658.26-1.477m2.605-14.772.26-1.477m0 17.726-.26-1.477M10.698 4.614l-.26-1.477M16.5 19.794l-.75-1.299M7.5 4.205 12 12m6.894 5.785-1.149-.964M6.256 7.178l-1.15-.964m15.352 8.864-1.41-.513M4.954 9.435l-1.41-.514M12.002 12l-3.75 6.495"})])}function FV(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M10.125 2.25h-4.5c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125v-9M10.125 2.25h.375a9 9 0 0 1 9 9v.375M10.125 2.25A3.375 3.375 0 0 1 13.5 5.625v1.5c0 .621.504 1.125 1.125 1.125h1.5a3.375 3.375 0 0 1 3.375 3.375M9 15l2.25 2.25L15 12"})])}function iv(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"})])}function lv(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z"})])}function NV(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.98 8.223A10.477 10.477 0 0 0 1.934 12C3.226 16.338 7.244 19.5 12 19.5c.993 0 1.953-.138 2.863-.395M6.228 6.228A10.451 10.451 0 0 1 12 4.5c4.756 0 8.773 3.162 10.065 7.498a10.522 10.522 0 0 1-4.293 5.774M6.228 6.228 3 3m3.228 3.228 3.65 3.65m7.894 7.894L21 21m-3.228-3.228-3.65-3.65m0 0a3 3 0 1 0-4.243-4.243m4.242 4.242L9.88 9.88"})])}function MV(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z"}),m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})])}function Jx(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L6.832 19.82a4.5 4.5 0 0 1-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 0 1 1.13-1.897L16.863 4.487Zm0 0L19.5 7.125"})])}function of(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 4.5v15m7.5-7.5h-15"})])}function DV(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"})])}function Zx(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M17.982 18.725A7.488 7.488 0 0 0 12 15.75a7.488 7.488 0 0 0-5.982 2.975m11.963 0a9 9 0 1 0-11.963 0m11.963 0A8.966 8.966 0 0 1 12 21a8.966 8.966 0 0 1-5.982-2.275M15 9.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})])}function Qx(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m9.75 9.75 4.5 4.5m0-4.5-4.5 4.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function ml(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18 18 6M6 6l12 12"})])}function Dl(e,t,n){let r=n.initialDeps??[],o;return()=>{var i,l,a,c;let d;n.key&&((i=n.debug)!=null&&i.call(n))&&(d=Date.now());const p=e();if(!(p.length!==r.length||p.some((y,b)=>r[b]!==y)))return o;r=p;let v;if(n.key&&((l=n.debug)!=null&&l.call(n))&&(v=Date.now()),o=t(...p),n.key&&((a=n.debug)!=null&&a.call(n))){const y=Math.round((Date.now()-d)*100)/100,b=Math.round((Date.now()-v)*100)/100,S=b/16,T=(C,w)=>{for(C=String(C);C.length<w;)C=" "+C;return C};console.info(`%c⏱ ${T(b,5)} /${T(y,5)} ms`,` 56 56 font-size: .6rem; 57 57 font-weight: bold; 58 color: hsl(${Math.max(0,Math.min(120-120*S,120))}deg 100% 31%);`,n==null?void 0:n.key)}return(c=n==null?void 0:n.onChange)==null||c.call(n,o),o}}function oh(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const UV=(e,t)=>Math.abs(e-t)<1,BV=(e,t,n)=>{let r;return function(...o){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,o),n)}},jV=e=>e,VV=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),r=[];for(let o=t;o<=n;o++)r.push(o);return r},HV=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;const o=l=>{const{width:a,height:c}=l;t({width:Math.round(a),height:Math.round(c)})};if(o(n.getBoundingClientRect()),!r.ResizeObserver)return()=>{};const i=new r.ResizeObserver(l=>{const a=l[0];if(a!=null&&a.borderBoxSize){const c=a.borderBoxSize[0];if(c){o({width:c.inlineSize,height:c.blockSize});return}}o(n.getBoundingClientRect())});return i.observe(n,{box:"border-box"}),()=>{i.unobserve(n)}},db={passive:!0},zV=typeof window>"u"?!0:"onscrollend"in window,WV=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;let o=0;const i=zV?()=>{}:BV(r,()=>{t(o,!1)},e.options.isScrollingResetDelay),l=d=>()=>{o=n[e.options.horizontal?"scrollLeft":"scrollTop"],i(),t(o,d)},a=l(!0),c=l(!1);return c(),n.addEventListener("scroll",a,db),n.addEventListener("scrollend",c,db),()=>{n.removeEventListener("scroll",a),n.removeEventListener("scrollend",c)}},qV=(e,t,n)=>{if(t!=null&&t.borderBoxSize){const r=t.borderBoxSize[0];if(r)return Math.round(r[n.options.horizontal?"inlineSize":"blockSize"])}return Math.round(e.getBoundingClientRect()[n.options.horizontal?"width":"height"])},KV=(e,{adjustments:t=0,behavior:n},r)=>{var o,i;const l=e+t;(i=(o=r.scrollElement)==null?void 0:o.scrollTo)==null||i.call(o,{[r.options.horizontal?"left":"top"]:l,behavior:n})};class GV{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollDirection=null,this.scrollAdjustments=0,this.measureElementCache=new Map,this.observer=(()=>{let n=null;const r=()=>n||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:n=new this.targetWindow.ResizeObserver(o=>{o.forEach(i=>{this._measureElement(i.target,i)})}));return{disconnect:()=>{var o;return(o=r())==null?void 0:o.disconnect()},observe:o=>{var i;return(i=r())==null?void 0:i.observe(o,{box:"border-box"})},unobserve:o=>{var i;return(i=r())==null?void 0:i.unobserve(o)}}})(),this.range=null,this.setOptions=n=>{Object.entries(n).forEach(([r,o])=>{typeof o>"u"&&delete n[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:jV,rangeExtractor:VV,onChange:()=>{},measureElement:qV,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,...n}},this.notify=(n,r)=>{var o,i;const{startIndex:l,endIndex:a}=this.range??{startIndex:void 0,endIndex:void 0},c=this.calculateRange();(n||l!==(c==null?void 0:c.startIndex)||a!==(c==null?void 0:c.endIndex))&&((i=(o=this.options).onChange)==null||i.call(o,this,r))},this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(n=>n()),this.unsubs=[],this.scrollElement=null},this._didMount=()=>(this.measureElementCache.forEach(this.observer.observe),()=>{this.observer.disconnect(),this.cleanup()}),this._willUpdate=()=>{var n;const r=this.options.getScrollElement();this.scrollElement!==r&&(this.cleanup(),this.scrollElement=r,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((n=this.scrollElement)==null?void 0:n.window)??null,this._scrollToOffset(this.scrollOffset,{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,o=>{this.scrollRect=o,this.notify(!1,!1)})),this.unsubs.push(this.options.observeElementOffset(this,(o,i)=>{this.scrollAdjustments=0,this.scrollDirection=i?this.scrollOffset<o?"forward":"backward":null,this.scrollOffset=o;const l=this.isScrolling;this.isScrolling=i,this.notify(l!==i,i)})))},this.getSize=()=>this.scrollRect[this.options.horizontal?"width":"height"],this.getMeasurementOptions=Dl(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey],(n,r,o,i)=>(this.pendingMeasuredCacheIndexes=[],{count:n,paddingStart:r,scrollMargin:o,getItemKey:i}),{key:!1}),this.getFurthestMeasurement=(n,r)=>{const o=new Map,i=new Map;for(let l=r-1;l>=0;l--){const a=n[l];if(o.has(a.lane))continue;const c=i.get(a.lane);if(c==null||a.end>c.end?i.set(a.lane,a):a.end<c.end&&o.set(a.lane,!0),o.size===this.options.lanes)break}return i.size===this.options.lanes?Array.from(i.values()).sort((l,a)=>l.end===a.end?l.index-a.index:l.end-a.end)[0]:void 0},this.getMeasurements=Dl(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:n,paddingStart:r,scrollMargin:o,getItemKey:i},l)=>{const a=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const c=this.measurementsCache.slice(0,a);for(let d=a;d<n;d++){const p=i(d),h=this.options.lanes===1?c[d-1]:this.getFurthestMeasurement(c,d),v=h?h.end+this.options.gap:r+o,y=l.get(p),b=typeof y=="number"?y:this.options.estimateSize(d),S=v+b,T=h?h.lane:d%this.options.lanes;c[d]={index:d,start:v,size:b,end:S,key:p,lane:T}}return this.measurementsCache=c,c},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Dl(()=>[this.getMeasurements(),this.getSize(),this.scrollOffset],(n,r,o)=>this.range=n.length>0&&r>0?XV({measurements:n,outerSize:r,scrollOffset:o}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=Dl(()=>[this.options.rangeExtractor,this.calculateRange(),this.options.overscan,this.options.count],(n,r,o,i)=>r===null?[]:n({startIndex:r.startIndex,endIndex:r.endIndex,overscan:o,count:i}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=n=>{const r=this.options.indexAttribute,o=n.getAttribute(r);return o?parseInt(o,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this._measureElement=(n,r)=>{const o=this.measurementsCache[this.indexFromElement(n)];if(!o||!n.isConnected){this.measureElementCache.forEach((a,c)=>{a===n&&(this.observer.unobserve(n),this.measureElementCache.delete(c))});return}const i=this.measureElementCache.get(o.key);i!==n&&(i&&this.observer.unobserve(i),this.observer.observe(n),this.measureElementCache.set(o.key,n));const l=this.options.measureElement(n,r,this);this.resizeItem(o,l)},this.resizeItem=(n,r)=>{const o=this.itemSizeCache.get(n.key)??n.size,i=r-o;i!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(n,i,this):n.start<this.scrollOffset+this.scrollAdjustments)&&this._scrollToOffset(this.scrollOffset,{adjustments:this.scrollAdjustments+=i,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(n.index),this.itemSizeCache=new Map(this.itemSizeCache.set(n.key,r)),this.notify(!0,!1))},this.measureElement=n=>{n&&this._measureElement(n,void 0)},this.getVirtualItems=Dl(()=>[this.getIndexes(),this.getMeasurements()],(n,r)=>{const o=[];for(let i=0,l=n.length;i<l;i++){const a=n[i],c=r[a];o.push(c)}return o},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=n=>{const r=this.getMeasurements();return oh(r[eT(0,r.length-1,o=>oh(r[o]).start,n)])},this.getOffsetForAlignment=(n,r)=>{const o=this.getSize();r==="auto"&&(n<=this.scrollOffset?r="start":n>=this.scrollOffset+o?r="end":r="start"),r==="start"?n=n:r==="end"?n=n-o:r==="center"&&(n=n-o/2);const i=this.options.horizontal?"scrollWidth":"scrollHeight",a=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[i]:this.scrollElement[i]:0)-this.getSize();return Math.max(Math.min(a,n),0)},this.getOffsetForIndex=(n,r="auto")=>{n=Math.max(0,Math.min(n,this.options.count-1));const o=oh(this.getMeasurements()[n]);if(r==="auto")if(o.end>=this.scrollOffset+this.getSize()-this.options.scrollPaddingEnd)r="end";else if(o.start<=this.scrollOffset+this.options.scrollPaddingStart)r="start";else return[this.scrollOffset,r];const i=r==="end"?o.end+this.options.scrollPaddingEnd:o.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(i,r),r]},this.isDynamicMode=()=>this.measureElementCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(n,{align:r="start",behavior:o}={})=>{this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(n,r),{adjustments:void 0,behavior:o})},this.scrollToIndex=(n,{align:r="auto",behavior:o}={})=>{n=Math.max(0,Math.min(n,this.options.count-1)),this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const[i,l]=this.getOffsetForIndex(n,r);this._scrollToOffset(i,{adjustments:void 0,behavior:o}),o!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.measureElementCache.has(this.options.getItemKey(n))){const[c]=this.getOffsetForIndex(n,l);UV(c,this.scrollOffset)||this.scrollToIndex(n,{align:l,behavior:o})}else this.scrollToIndex(n,{align:l,behavior:o})}))},this.scrollBy=(n,{behavior:r}={})=>{this.cancelScrollToIndex(),r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.scrollOffset+n,{adjustments:void 0,behavior:r})},this.getTotalSize=()=>{var n;const r=this.getMeasurements();let o;return r.length===0?o=this.options.paddingStart:o=this.options.lanes===1?((n=r[r.length-1])==null?void 0:n.end)??0:Math.max(...r.slice(-this.options.lanes).map(i=>i.end)),o-this.options.scrollMargin+this.options.paddingEnd},this._scrollToOffset=(n,{adjustments:r,behavior:o})=>{this.options.scrollToFn(n,{behavior:o,adjustments:r},this)},this.measure=()=>{var n,r;this.itemSizeCache=new Map,(r=(n=this.options).onChange)==null||r.call(n,this,!1)},this.setOptions(t),this.scrollRect=this.options.initialRect,this.scrollOffset=typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset,this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(n=>{this.itemSizeCache.set(n.key,n.size)}),this.notify(!1,!1)}}const eT=(e,t,n,r)=>{for(;e<=t;){const o=(e+t)/2|0,i=n(o);if(i<r)e=o+1;else if(i>r)t=o-1;else return o}return e>0?e-1:0};function XV({measurements:e,outerSize:t,scrollOffset:n}){const r=e.length-1,i=eT(0,r,a=>e[a].start,n);let l=i;for(;l<r&&e[l].end<n+t;)l++;return{startIndex:i,endIndex:l}}function YV(e){const t=new GV(vn(e)),n=gd(t),r=t._didMount();return Ut(()=>vn(e).getScrollElement(),o=>{o&&t._willUpdate()},{immediate:!0}),Ut(()=>vn(e),o=>{t.setOptions({...o,onChange:(i,l)=>{var a;ph(n),(a=o.onChange)==null||a.call(o,i,l)}}),t._willUpdate(),ph(n)},{immediate:!0}),Wb(r),n}function JV(e){return YV(fe(()=>({observeElementRect:HV,observeElementOffset:WV,scrollToFn:KV,...vn(e)})))}function uv(e,t,n){let r=$e(n==null?void 0:n.value),o=fe(()=>e.value!==void 0);return[fe(()=>o.value?e.value:r.value),function(i){return o.value||(r.value=i),t==null?void 0:t(i)}]}function cv(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function xs(){let e=[],t={addEventListener(n,r,o,i){return n.addEventListener(r,o,i),t.add(()=>n.removeEventListener(r,o,i))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){t.requestAnimationFrame(()=>{t.requestAnimationFrame(...n)})},setTimeout(...n){let r=setTimeout(...n);t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return cv(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,o){let i=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:o}),this.add(()=>{Object.assign(n.style,{[r]:i})})},group(n){let r=xs();return n(r),this.add(()=>r.dispose())},add(n){return e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let o of e.splice(r,1))o()}},dispose(){for(let n of e.splice(0))n()}};return t}function ZV(){let e=xs();return en(()=>e.dispose()),e}function QV(){let e=ZV();return t=>{e.dispose(),e.nextFrame(t)}}let eH=Symbol("headlessui.useid"),tH=0;function qt(){return Ft(eH,()=>`${++tH}`)()}function de(e){var t;if(e==null||e.value==null)return null;let n=(t=e.value.$el)!=null?t:e.value;return n instanceof Node?n:null}function kt(e,t,...n){if(e in t){let o=t[e];return typeof o=="function"?o(...n):o}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,kt),r}var nH=Object.defineProperty,rH=(e,t,n)=>t in e?nH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,fb=(e,t,n)=>(rH(e,typeof t!="symbol"?t+"":t,n),n);let oH=class{constructor(){fb(this,"current",this.detect()),fb(this,"currentId",0)}set(t){this.current!==t&&(this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}},Xa=new oH;function Kr(e){if(Xa.isServer)return null;if(e instanceof Node)return e.ownerDocument;if(e!=null&&e.hasOwnProperty("value")){let t=de(e);if(t)return t.ownerDocument}return document}let om=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var Mn=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(Mn||{}),Ca=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Ca||{}),sH=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(sH||{});function of(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(om)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var sf=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(sf||{});function dv(e,t=0){var n;return e===((n=Kr(e))==null?void 0:n.body)?!1:kt(t,{0(){return e.matches(om)},1(){let r=e;for(;r!==null;){if(r.matches(om))return!0;r=r.parentElement}return!1}})}var iH=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(iH||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function si(e){e==null||e.focus({preventScroll:!0})}let lH=["textarea","input"].join(",");function aH(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,lH))!=null?n:!1}function fv(e,t=n=>n){return e.slice().sort((n,r)=>{let o=t(n),i=t(r);if(o===null||i===null)return 0;let l=o.compareDocumentPosition(i);return l&Node.DOCUMENT_POSITION_FOLLOWING?-1:l&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function to(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:o=[]}={}){var i;let l=(i=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e==null?void 0:e.ownerDocument)!=null?i:document,a=Array.isArray(e)?n?fv(e):e:of(e);o.length>0&&a.length>1&&(a=a.filter(b=>!o.includes(b))),r=r??l.activeElement;let c=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),d=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,a.indexOf(r))-1;if(t&4)return Math.max(0,a.indexOf(r))+1;if(t&8)return a.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),p=t&32?{preventScroll:!0}:{},h=0,v=a.length,y;do{if(h>=v||h+v<=0)return 0;let b=d+h;if(t&16)b=(b+v)%v;else{if(b<0)return 3;if(b>=v)return 1}y=a[b],y==null||y.focus(p),h+=c}while(y!==l.activeElement);return t&6&&aH(y)&&y.select(),2}function tT(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function uH(){return/Android/gi.test(window.navigator.userAgent)}function nT(){return tT()||uH()}function uc(e,t,n){Xa.isServer||Vt(r=>{document.addEventListener(e,t,n),r(()=>document.removeEventListener(e,t,n))})}function rT(e,t,n){Xa.isServer||Vt(r=>{window.addEventListener(e,t,n),r(()=>window.removeEventListener(e,t,n))})}function lf(e,t,n=fe(()=>!0)){function r(i,l){if(!n.value||i.defaultPrevented)return;let a=l(i);if(a===null||!a.getRootNode().contains(a))return;let c=function d(p){return typeof p=="function"?d(p()):Array.isArray(p)||p instanceof Set?p:[p]}(e);for(let d of c){if(d===null)continue;let p=d instanceof HTMLElement?d:de(d);if(p!=null&&p.contains(a)||i.composed&&i.composedPath().includes(p))return}return!dv(a,sf.Loose)&&a.tabIndex!==-1&&i.preventDefault(),t(i,a)}let o=$e(null);uc("pointerdown",i=>{var l,a;n.value&&(o.value=((a=(l=i.composedPath)==null?void 0:l.call(i))==null?void 0:a[0])||i.target)},!0),uc("mousedown",i=>{var l,a;n.value&&(o.value=((a=(l=i.composedPath)==null?void 0:l.call(i))==null?void 0:a[0])||i.target)},!0),uc("click",i=>{nT()||o.value&&(r(i,()=>o.value),o.value=null)},!0),uc("touchend",i=>r(i,()=>i.target instanceof HTMLElement?i.target:null),!0),rT("blur",i=>r(i,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function pb(e,t){if(e)return e;let n=t??"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function af(e,t){let n=$e(pb(e.value.type,e.value.as));return wt(()=>{n.value=pb(e.value.type,e.value.as)}),Vt(()=>{var r;n.value||de(t)&&de(t)instanceof HTMLButtonElement&&!((r=de(t))!=null&&r.hasAttribute("type"))&&(n.value="button")}),n}function hb(e){return[e.screenX,e.screenY]}function oT(){let e=$e([-1,-1]);return{wasMoved(t){let n=hb(t);return e.value[0]===n[0]&&e.value[1]===n[1]?!1:(e.value=n,!0)},update(t){e.value=hb(t)}}}function cH({container:e,accept:t,walk:n,enabled:r}){Vt(()=>{let o=e.value;if(!o||r!==void 0&&!r.value)return;let i=Kr(e);if(!i)return;let l=Object.assign(c=>t(c),{acceptNode:t}),a=i.createTreeWalker(o,NodeFilter.SHOW_ELEMENT,l,!1);for(;a.nextNode();)n(a.currentNode)})}var ar=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(ar||{}),gs=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(gs||{});function xt({visible:e=!0,features:t=0,ourProps:n,theirProps:r,...o}){var i;let l=iT(r,n),a=Object.assign(o,{props:l});if(e||t&2&&l.static)return sh(a);if(t&1){let c=(i=l.unmount)==null||i?0:1;return kt(c,{0(){return null},1(){return sh({...o,props:{...l,hidden:!0,style:{display:"none"}}})}})}return sh(a)}function sh({props:e,attrs:t,slots:n,slot:r,name:o}){var i,l;let{as:a,...c}=gi(e,["unmount","static"]),d=(i=n.default)==null?void 0:i.call(n,r),p={};if(r){let h=!1,v=[];for(let[y,b]of Object.entries(r))typeof b=="boolean"&&(h=!0),b===!0&&v.push(y);h&&(p["data-headlessui-state"]=v.join(" "))}if(a==="template"){if(d=sT(d??[]),Object.keys(c).length>0||Object.keys(t).length>0){let[h,...v]=d??[];if(!dH(h)||v.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${o} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(c).concat(Object.keys(t)).map(S=>S.trim()).filter((S,T,C)=>C.indexOf(S)===T).sort((S,T)=>S.localeCompare(T)).map(S=>` - ${S}`).join(`58 color: hsl(${Math.max(0,Math.min(120-120*S,120))}deg 100% 31%);`,n==null?void 0:n.key)}return(c=n==null?void 0:n.onChange)==null||c.call(n,o),o}}function sh(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const UV=(e,t)=>Math.abs(e-t)<1,BV=(e,t,n)=>{let r;return function(...o){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,o),n)}},jV=e=>e,VV=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),r=[];for(let o=t;o<=n;o++)r.push(o);return r},HV=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;const o=l=>{const{width:a,height:c}=l;t({width:Math.round(a),height:Math.round(c)})};if(o(n.getBoundingClientRect()),!r.ResizeObserver)return()=>{};const i=new r.ResizeObserver(l=>{const a=l[0];if(a!=null&&a.borderBoxSize){const c=a.borderBoxSize[0];if(c){o({width:c.inlineSize,height:c.blockSize});return}}o(n.getBoundingClientRect())});return i.observe(n,{box:"border-box"}),()=>{i.unobserve(n)}},cb={passive:!0},zV=typeof window>"u"?!0:"onscrollend"in window,WV=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;let o=0;const i=zV?()=>{}:BV(r,()=>{t(o,!1)},e.options.isScrollingResetDelay),l=d=>()=>{o=n[e.options.horizontal?"scrollLeft":"scrollTop"],i(),t(o,d)},a=l(!0),c=l(!1);return c(),n.addEventListener("scroll",a,cb),n.addEventListener("scrollend",c,cb),()=>{n.removeEventListener("scroll",a),n.removeEventListener("scrollend",c)}},qV=(e,t,n)=>{if(t!=null&&t.borderBoxSize){const r=t.borderBoxSize[0];if(r)return Math.round(r[n.options.horizontal?"inlineSize":"blockSize"])}return Math.round(e.getBoundingClientRect()[n.options.horizontal?"width":"height"])},KV=(e,{adjustments:t=0,behavior:n},r)=>{var o,i;const l=e+t;(i=(o=r.scrollElement)==null?void 0:o.scrollTo)==null||i.call(o,{[r.options.horizontal?"left":"top"]:l,behavior:n})};class GV{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollDirection=null,this.scrollAdjustments=0,this.measureElementCache=new Map,this.observer=(()=>{let n=null;const r=()=>n||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:n=new this.targetWindow.ResizeObserver(o=>{o.forEach(i=>{this._measureElement(i.target,i)})}));return{disconnect:()=>{var o;return(o=r())==null?void 0:o.disconnect()},observe:o=>{var i;return(i=r())==null?void 0:i.observe(o,{box:"border-box"})},unobserve:o=>{var i;return(i=r())==null?void 0:i.unobserve(o)}}})(),this.range=null,this.setOptions=n=>{Object.entries(n).forEach(([r,o])=>{typeof o>"u"&&delete n[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:jV,rangeExtractor:VV,onChange:()=>{},measureElement:qV,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,...n}},this.notify=(n,r)=>{var o,i;const{startIndex:l,endIndex:a}=this.range??{startIndex:void 0,endIndex:void 0},c=this.calculateRange();(n||l!==(c==null?void 0:c.startIndex)||a!==(c==null?void 0:c.endIndex))&&((i=(o=this.options).onChange)==null||i.call(o,this,r))},this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(n=>n()),this.unsubs=[],this.scrollElement=null},this._didMount=()=>(this.measureElementCache.forEach(this.observer.observe),()=>{this.observer.disconnect(),this.cleanup()}),this._willUpdate=()=>{var n;const r=this.options.getScrollElement();this.scrollElement!==r&&(this.cleanup(),this.scrollElement=r,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((n=this.scrollElement)==null?void 0:n.window)??null,this._scrollToOffset(this.scrollOffset,{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,o=>{this.scrollRect=o,this.notify(!1,!1)})),this.unsubs.push(this.options.observeElementOffset(this,(o,i)=>{this.scrollAdjustments=0,this.scrollDirection=i?this.scrollOffset<o?"forward":"backward":null,this.scrollOffset=o;const l=this.isScrolling;this.isScrolling=i,this.notify(l!==i,i)})))},this.getSize=()=>this.scrollRect[this.options.horizontal?"width":"height"],this.getMeasurementOptions=Dl(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey],(n,r,o,i)=>(this.pendingMeasuredCacheIndexes=[],{count:n,paddingStart:r,scrollMargin:o,getItemKey:i}),{key:!1}),this.getFurthestMeasurement=(n,r)=>{const o=new Map,i=new Map;for(let l=r-1;l>=0;l--){const a=n[l];if(o.has(a.lane))continue;const c=i.get(a.lane);if(c==null||a.end>c.end?i.set(a.lane,a):a.end<c.end&&o.set(a.lane,!0),o.size===this.options.lanes)break}return i.size===this.options.lanes?Array.from(i.values()).sort((l,a)=>l.end===a.end?l.index-a.index:l.end-a.end)[0]:void 0},this.getMeasurements=Dl(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:n,paddingStart:r,scrollMargin:o,getItemKey:i},l)=>{const a=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const c=this.measurementsCache.slice(0,a);for(let d=a;d<n;d++){const p=i(d),h=this.options.lanes===1?c[d-1]:this.getFurthestMeasurement(c,d),v=h?h.end+this.options.gap:r+o,y=l.get(p),b=typeof y=="number"?y:this.options.estimateSize(d),S=v+b,T=h?h.lane:d%this.options.lanes;c[d]={index:d,start:v,size:b,end:S,key:p,lane:T}}return this.measurementsCache=c,c},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Dl(()=>[this.getMeasurements(),this.getSize(),this.scrollOffset],(n,r,o)=>this.range=n.length>0&&r>0?XV({measurements:n,outerSize:r,scrollOffset:o}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=Dl(()=>[this.options.rangeExtractor,this.calculateRange(),this.options.overscan,this.options.count],(n,r,o,i)=>r===null?[]:n({startIndex:r.startIndex,endIndex:r.endIndex,overscan:o,count:i}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=n=>{const r=this.options.indexAttribute,o=n.getAttribute(r);return o?parseInt(o,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this._measureElement=(n,r)=>{const o=this.measurementsCache[this.indexFromElement(n)];if(!o||!n.isConnected){this.measureElementCache.forEach((a,c)=>{a===n&&(this.observer.unobserve(n),this.measureElementCache.delete(c))});return}const i=this.measureElementCache.get(o.key);i!==n&&(i&&this.observer.unobserve(i),this.observer.observe(n),this.measureElementCache.set(o.key,n));const l=this.options.measureElement(n,r,this);this.resizeItem(o,l)},this.resizeItem=(n,r)=>{const o=this.itemSizeCache.get(n.key)??n.size,i=r-o;i!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(n,i,this):n.start<this.scrollOffset+this.scrollAdjustments)&&this._scrollToOffset(this.scrollOffset,{adjustments:this.scrollAdjustments+=i,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(n.index),this.itemSizeCache=new Map(this.itemSizeCache.set(n.key,r)),this.notify(!0,!1))},this.measureElement=n=>{n&&this._measureElement(n,void 0)},this.getVirtualItems=Dl(()=>[this.getIndexes(),this.getMeasurements()],(n,r)=>{const o=[];for(let i=0,l=n.length;i<l;i++){const a=n[i],c=r[a];o.push(c)}return o},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=n=>{const r=this.getMeasurements();return sh(r[eT(0,r.length-1,o=>sh(r[o]).start,n)])},this.getOffsetForAlignment=(n,r)=>{const o=this.getSize();r==="auto"&&(n<=this.scrollOffset?r="start":n>=this.scrollOffset+o?r="end":r="start"),r==="start"?n=n:r==="end"?n=n-o:r==="center"&&(n=n-o/2);const i=this.options.horizontal?"scrollWidth":"scrollHeight",a=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[i]:this.scrollElement[i]:0)-this.getSize();return Math.max(Math.min(a,n),0)},this.getOffsetForIndex=(n,r="auto")=>{n=Math.max(0,Math.min(n,this.options.count-1));const o=sh(this.getMeasurements()[n]);if(r==="auto")if(o.end>=this.scrollOffset+this.getSize()-this.options.scrollPaddingEnd)r="end";else if(o.start<=this.scrollOffset+this.options.scrollPaddingStart)r="start";else return[this.scrollOffset,r];const i=r==="end"?o.end+this.options.scrollPaddingEnd:o.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(i,r),r]},this.isDynamicMode=()=>this.measureElementCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(n,{align:r="start",behavior:o}={})=>{this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(n,r),{adjustments:void 0,behavior:o})},this.scrollToIndex=(n,{align:r="auto",behavior:o}={})=>{n=Math.max(0,Math.min(n,this.options.count-1)),this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const[i,l]=this.getOffsetForIndex(n,r);this._scrollToOffset(i,{adjustments:void 0,behavior:o}),o!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.measureElementCache.has(this.options.getItemKey(n))){const[c]=this.getOffsetForIndex(n,l);UV(c,this.scrollOffset)||this.scrollToIndex(n,{align:l,behavior:o})}else this.scrollToIndex(n,{align:l,behavior:o})}))},this.scrollBy=(n,{behavior:r}={})=>{this.cancelScrollToIndex(),r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.scrollOffset+n,{adjustments:void 0,behavior:r})},this.getTotalSize=()=>{var n;const r=this.getMeasurements();let o;return r.length===0?o=this.options.paddingStart:o=this.options.lanes===1?((n=r[r.length-1])==null?void 0:n.end)??0:Math.max(...r.slice(-this.options.lanes).map(i=>i.end)),o-this.options.scrollMargin+this.options.paddingEnd},this._scrollToOffset=(n,{adjustments:r,behavior:o})=>{this.options.scrollToFn(n,{behavior:o,adjustments:r},this)},this.measure=()=>{var n,r;this.itemSizeCache=new Map,(r=(n=this.options).onChange)==null||r.call(n,this,!1)},this.setOptions(t),this.scrollRect=this.options.initialRect,this.scrollOffset=typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset,this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(n=>{this.itemSizeCache.set(n.key,n.size)}),this.notify(!1,!1)}}const eT=(e,t,n,r)=>{for(;e<=t;){const o=(e+t)/2|0,i=n(o);if(i<r)e=o+1;else if(i>r)t=o-1;else return o}return e>0?e-1:0};function XV({measurements:e,outerSize:t,scrollOffset:n}){const r=e.length-1,i=eT(0,r,a=>e[a].start,n);let l=i;for(;l<r&&e[l].end<n+t;)l++;return{startIndex:i,endIndex:l}}function YV(e){const t=new GV(vn(e)),n=gd(t),r=t._didMount();return Ut(()=>vn(e).getScrollElement(),o=>{o&&t._willUpdate()},{immediate:!0}),Ut(()=>vn(e),o=>{t.setOptions({...o,onChange:(i,l)=>{var a;hh(n),(a=o.onChange)==null||a.call(o,i,l)}}),t._willUpdate(),hh(n)},{immediate:!0}),zb(r),n}function JV(e){return YV(fe(()=>({observeElementRect:HV,observeElementOffset:WV,scrollToFn:KV,...vn(e)})))}function av(e,t,n){let r=$e(n==null?void 0:n.value),o=fe(()=>e.value!==void 0);return[fe(()=>o.value?e.value:r.value),function(i){return o.value||(r.value=i),t==null?void 0:t(i)}]}function uv(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function xs(){let e=[],t={addEventListener(n,r,o,i){return n.addEventListener(r,o,i),t.add(()=>n.removeEventListener(r,o,i))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){t.requestAnimationFrame(()=>{t.requestAnimationFrame(...n)})},setTimeout(...n){let r=setTimeout(...n);t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return uv(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,o){let i=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:o}),this.add(()=>{Object.assign(n.style,{[r]:i})})},group(n){let r=xs();return n(r),this.add(()=>r.dispose())},add(n){return e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let o of e.splice(r,1))o()}},dispose(){for(let n of e.splice(0))n()}};return t}function ZV(){let e=xs();return en(()=>e.dispose()),e}function QV(){let e=ZV();return t=>{e.dispose(),e.nextFrame(t)}}let eH=Symbol("headlessui.useid"),tH=0;function qt(){return Ft(eH,()=>`${++tH}`)()}function de(e){var t;if(e==null||e.value==null)return null;let n=(t=e.value.$el)!=null?t:e.value;return n instanceof Node?n:null}function kt(e,t,...n){if(e in t){let o=t[e];return typeof o=="function"?o(...n):o}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,kt),r}var nH=Object.defineProperty,rH=(e,t,n)=>t in e?nH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,db=(e,t,n)=>(rH(e,typeof t!="symbol"?t+"":t,n),n);let oH=class{constructor(){db(this,"current",this.detect()),db(this,"currentId",0)}set(t){this.current!==t&&(this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}},Xa=new oH;function Gr(e){if(Xa.isServer)return null;if(e instanceof Node)return e.ownerDocument;if(e!=null&&e.hasOwnProperty("value")){let t=de(e);if(t)return t.ownerDocument}return document}let sm=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var Mn=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(Mn||{}),Ca=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Ca||{}),sH=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(sH||{});function sf(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(sm)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var lf=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(lf||{});function cv(e,t=0){var n;return e===((n=Gr(e))==null?void 0:n.body)?!1:kt(t,{0(){return e.matches(sm)},1(){let r=e;for(;r!==null;){if(r.matches(sm))return!0;r=r.parentElement}return!1}})}var iH=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(iH||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function si(e){e==null||e.focus({preventScroll:!0})}let lH=["textarea","input"].join(",");function aH(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,lH))!=null?n:!1}function dv(e,t=n=>n){return e.slice().sort((n,r)=>{let o=t(n),i=t(r);if(o===null||i===null)return 0;let l=o.compareDocumentPosition(i);return l&Node.DOCUMENT_POSITION_FOLLOWING?-1:l&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function no(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:o=[]}={}){var i;let l=(i=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e==null?void 0:e.ownerDocument)!=null?i:document,a=Array.isArray(e)?n?dv(e):e:sf(e);o.length>0&&a.length>1&&(a=a.filter(b=>!o.includes(b))),r=r??l.activeElement;let c=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),d=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,a.indexOf(r))-1;if(t&4)return Math.max(0,a.indexOf(r))+1;if(t&8)return a.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),p=t&32?{preventScroll:!0}:{},h=0,v=a.length,y;do{if(h>=v||h+v<=0)return 0;let b=d+h;if(t&16)b=(b+v)%v;else{if(b<0)return 3;if(b>=v)return 1}y=a[b],y==null||y.focus(p),h+=c}while(y!==l.activeElement);return t&6&&aH(y)&&y.select(),2}function tT(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function uH(){return/Android/gi.test(window.navigator.userAgent)}function nT(){return tT()||uH()}function uc(e,t,n){Xa.isServer||Vt(r=>{document.addEventListener(e,t,n),r(()=>document.removeEventListener(e,t,n))})}function rT(e,t,n){Xa.isServer||Vt(r=>{window.addEventListener(e,t,n),r(()=>window.removeEventListener(e,t,n))})}function af(e,t,n=fe(()=>!0)){function r(i,l){if(!n.value||i.defaultPrevented)return;let a=l(i);if(a===null||!a.getRootNode().contains(a))return;let c=function d(p){return typeof p=="function"?d(p()):Array.isArray(p)||p instanceof Set?p:[p]}(e);for(let d of c){if(d===null)continue;let p=d instanceof HTMLElement?d:de(d);if(p!=null&&p.contains(a)||i.composed&&i.composedPath().includes(p))return}return!cv(a,lf.Loose)&&a.tabIndex!==-1&&i.preventDefault(),t(i,a)}let o=$e(null);uc("pointerdown",i=>{var l,a;n.value&&(o.value=((a=(l=i.composedPath)==null?void 0:l.call(i))==null?void 0:a[0])||i.target)},!0),uc("mousedown",i=>{var l,a;n.value&&(o.value=((a=(l=i.composedPath)==null?void 0:l.call(i))==null?void 0:a[0])||i.target)},!0),uc("click",i=>{nT()||o.value&&(r(i,()=>o.value),o.value=null)},!0),uc("touchend",i=>r(i,()=>i.target instanceof HTMLElement?i.target:null),!0),rT("blur",i=>r(i,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function fb(e,t){if(e)return e;let n=t??"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function uf(e,t){let n=$e(fb(e.value.type,e.value.as));return wt(()=>{n.value=fb(e.value.type,e.value.as)}),Vt(()=>{var r;n.value||de(t)&&de(t)instanceof HTMLButtonElement&&!((r=de(t))!=null&&r.hasAttribute("type"))&&(n.value="button")}),n}function pb(e){return[e.screenX,e.screenY]}function oT(){let e=$e([-1,-1]);return{wasMoved(t){let n=pb(t);return e.value[0]===n[0]&&e.value[1]===n[1]?!1:(e.value=n,!0)},update(t){e.value=pb(t)}}}function cH({container:e,accept:t,walk:n,enabled:r}){Vt(()=>{let o=e.value;if(!o||r!==void 0&&!r.value)return;let i=Gr(e);if(!i)return;let l=Object.assign(c=>t(c),{acceptNode:t}),a=i.createTreeWalker(o,NodeFilter.SHOW_ELEMENT,l,!1);for(;a.nextNode();)n(a.currentNode)})}var ur=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(ur||{}),gs=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(gs||{});function xt({visible:e=!0,features:t=0,ourProps:n,theirProps:r,...o}){var i;let l=iT(r,n),a=Object.assign(o,{props:l});if(e||t&2&&l.static)return ih(a);if(t&1){let c=(i=l.unmount)==null||i?0:1;return kt(c,{0(){return null},1(){return ih({...o,props:{...l,hidden:!0,style:{display:"none"}}})}})}return ih(a)}function ih({props:e,attrs:t,slots:n,slot:r,name:o}){var i,l;let{as:a,...c}=gi(e,["unmount","static"]),d=(i=n.default)==null?void 0:i.call(n,r),p={};if(r){let h=!1,v=[];for(let[y,b]of Object.entries(r))typeof b=="boolean"&&(h=!0),b===!0&&v.push(y);h&&(p["data-headlessui-state"]=v.join(" "))}if(a==="template"){if(d=sT(d??[]),Object.keys(c).length>0||Object.keys(t).length>0){let[h,...v]=d??[];if(!dH(h)||v.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${o} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(c).concat(Object.keys(t)).map(S=>S.trim()).filter((S,T,C)=>C.indexOf(S)===T).sort((S,T)=>S.localeCompare(T)).map(S=>` - ${S}`).join(` 59 59 `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".',"Render a single element as the child so that we can forward the props onto that element."].map(S=>` - ${S}`).join(` 60 60 `)].join(` 61 `));let y=iT((l=h.props)!=null?l:{},c,p),b= jr(h,y,!0);for(let S in y)S.startsWith("on")&&(b.props||(b.props={}),b.props[S]=y[S]);return b}return Array.isArray(d)&&d.length===1?d[0]:d}return pt(a,Object.assign({},c,p),{default:()=>d})}function sT(e){return e.flatMap(t=>t.type===Me?sT(t.children):[t])}function iT(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let o in r)o.startsWith("on")&&typeof r[o]=="function"?(n[o]!=null||(n[o]=[]),n[o].push(r[o])):t[o]=r[o];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(t,{[r](o,...i){let l=n[r];for(let a of l){if(o instanceof Event&&o.defaultPrevented)return;a(o,...i)}}});return t}function pv(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function gi(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function dH(e){return e==null?!1:typeof e.type=="string"||typeof e.type=="object"||typeof e.type=="function"}var io=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(io||{});let xo=ge({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup(e,{slots:t,attrs:n}){return()=>{var r;let{features:o,...i}=e,l={"aria-hidden":(o&2)===2?!0:(r=i["aria-hidden"])!=null?r:void 0,hidden:(o&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(o&4)===4&&(o&2)!==2&&{display:"none"}}};return xt({ourProps:l,theirProps:i,slot:{},attrs:n,slots:t,name:"Hidden"})}}}),lT=Symbol("Context");var Lt=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Lt||{});function fH(){return vi()!==null}function vi(){return Ft(lT,null)}function uf(e){Qt(lT,e)}var at=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(at||{}),aT=(e=>(e[e.Left=0]="Left",e[e.Right=2]="Right",e))(aT||{});function pH(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let Ho=[];pH(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&Ho[0]!==t.target&&(Ho.unshift(t.target),Ho=Ho.filter(n=>n!=null&&n.isConnected),Ho.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function hH(e){throw new Error("Unexpected object: "+e)}var Ct=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(Ct||{});function sm(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),o=r??-1;switch(e.focus){case 0:{for(let i=0;i<n.length;++i)if(!t.resolveDisabled(n[i],i,n))return i;return r}case 1:{o===-1&&(o=n.length);for(let i=o-1;i>=0;--i)if(!t.resolveDisabled(n[i],i,n))return i;return r}case 2:{for(let i=o+1;i<n.length;++i)if(!t.resolveDisabled(n[i],i,n))return i;return r}case 3:{for(let i=n.length-1;i>=0;--i)if(!t.resolveDisabled(n[i],i,n))return i;return r}case 4:{for(let i=0;i<n.length;++i)if(t.resolveId(n[i],i,n)===e.id)return i;return r}case 5:return null;default:hH(e)}}function hv(e={},t=null,n=[]){for(let[r,o]of Object.entries(e))cT(n,uT(t,r),o);return n}function uT(e,t){return e?e+"["+t+"]":t}function cT(e,t,n){if(Array.isArray(n))for(let[r,o]of n.entries())cT(e,uT(t,r.toString()),o);else n instanceof Date?e.push([t,n.toISOString()]):typeof n=="boolean"?e.push([t,n?"1":"0"]):typeof n=="string"?e.push([t,n]):typeof n=="number"?e.push([t,`${n}`]):n==null?e.push([t,""]):hv(n,t,e)}function mH(e){var t,n;let r=(t=e==null?void 0:e.form)!=null?t:e.closest("form");if(r){for(let o of r.elements)if(o!==e&&(o.tagName==="INPUT"&&o.type==="submit"||o.tagName==="BUTTON"&&o.type==="submit"||o.nodeName==="INPUT"&&o.type==="image")){o.click();return}(n=r.requestSubmit)==null||n.call(r)}}var gH={};function vH(e,t){return e===t}var yH=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(yH||{}),_H=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(_H||{}),bH=(e=>(e[e.Pointer=0]="Pointer",e[e.Focus=1]="Focus",e[e.Other=2]="Other",e))(bH||{});let dT=Symbol("ComboboxContext");function yi(e){let t=Ft(dT,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,yi),n}return t}let fT=Symbol("VirtualContext"),wH=ge({name:"VirtualProvider",setup(e,{slots:t}){let n=yi("VirtualProvider"),r=fe(()=>{let a=de(n.optionsRef);if(!a)return{start:0,end:0};let c=window.getComputedStyle(a);return{start:parseFloat(c.paddingBlockStart||c.paddingTop),end:parseFloat(c.paddingBlockEnd||c.paddingBottom)}}),o=JV(fe(()=>({scrollPaddingStart:r.value.start,scrollPaddingEnd:r.value.end,count:n.virtual.value.options.length,estimateSize(){return 40},getScrollElement(){return de(n.optionsRef)},overscan:12}))),i=fe(()=>{var a;return(a=n.virtual.value)==null?void 0:a.options}),l=$e(0);return Ut([i],()=>{l.value+=1}),Qt(fT,n.virtual.value?o:null),()=>[pt("div",{style:{position:"relative",width:"100%",height:`${o.value.getTotalSize()}px`},ref:a=>{if(a){if(typeof process<"u"&&gH.JEST_WORKER_ID!==void 0||n.activationTrigger.value===0)return;n.activeOptionIndex.value!==null&&n.virtual.value.options.length>n.activeOptionIndex.value&&o.value.scrollToIndex(n.activeOptionIndex.value)}}},o.value.getVirtualItems().map(a=>jr(t.default({option:n.virtual.value.options[a.index],open:n.comboboxState.value===0})[0],{key:`${l.value}-${a.index}`,"data-index":a.index,"aria-setsize":n.virtual.value.options.length,"aria-posinset":a.index+1,style:{position:"absolute",top:0,left:0,transform:`translateY(${a.start}px)`,overflowAnchor:"none"}})))]}}),pT=ge({name:"Combobox",emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:"template"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],nullable:!0,default:null},modelValue:{type:[Object,String,Number,Boolean],default:void 0},defaultValue:{type:[Object,String,Number,Boolean],default:void 0},form:{type:String,optional:!0},name:{type:String,optional:!0},nullable:{type:Boolean,default:!1},multiple:{type:[Boolean],default:!1},immediate:{type:[Boolean],default:!1},virtual:{type:Object,default:null}},inheritAttrs:!1,setup(e,{slots:t,attrs:n,emit:r}){let o=$e(1),i=$e(null),l=$e(null),a=$e(null),c=$e(null),d=$e({static:!1,hold:!1}),p=$e([]),h=$e(null),v=$e(2),y=$e(!1);function b(U=j=>j){let j=h.value!==null?p.value[h.value]:null,G=U(p.value.slice()),X=G.length>0&&G[0].dataRef.order.value!==null?G.sort((xe,Ee)=>xe.dataRef.order.value-Ee.dataRef.order.value):fv(G,xe=>de(xe.dataRef.domRef)),ne=j?X.indexOf(j):null;return ne===-1&&(ne=null),{options:X,activeOptionIndex:ne}}let S=fe(()=>e.multiple?1:0),T=fe(()=>e.nullable),[C,w]=uv(fe(()=>e.modelValue),U=>r("update:modelValue",U),fe(()=>e.defaultValue)),E=fe(()=>C.value===void 0?kt(S.value,{1:[],0:void 0}):C.value),O=null,$=null;function P(U){return kt(S.value,{0(){return w==null?void 0:w(U)},1:()=>{let j=He(k.value.value).slice(),G=He(U),X=j.findIndex(ne=>k.compare(G,He(ne)));return X===-1?j.push(G):j.splice(X,1),w==null?void 0:w(j)}})}let R=fe(()=>{});Ut([R],([U],[j])=>{if(k.virtual.value&&U&&j&&h.value!==null){let G=U.indexOf(j[h.value]);G!==-1?h.value=G:h.value=null}});let k={comboboxState:o,value:E,mode:S,compare(U,j){if(typeof e.by=="string"){let G=e.by;return(U==null?void 0:U[G])===(j==null?void 0:j[G])}return e.by===null?vH(U,j):e.by(U,j)},calculateIndex(U){return k.virtual.value?e.by===null?k.virtual.value.options.indexOf(U):k.virtual.value.options.findIndex(j=>k.compare(j,U)):p.value.findIndex(j=>k.compare(j.dataRef.value,U))},defaultValue:fe(()=>e.defaultValue),nullable:T,immediate:fe(()=>!1),virtual:fe(()=>null),inputRef:l,labelRef:i,buttonRef:a,optionsRef:c,disabled:fe(()=>e.disabled),options:p,change(U){w(U)},activeOptionIndex:fe(()=>{if(y.value&&h.value===null&&(k.virtual.value?k.virtual.value.options.length>0:p.value.length>0)){if(k.virtual.value){let j=k.virtual.value.options.findIndex(G=>{var X;return!((X=k.virtual.value)!=null&&X.disabled(G))});if(j!==-1)return j}let U=p.value.findIndex(j=>!j.dataRef.disabled);if(U!==-1)return U}return h.value}),activationTrigger:v,optionsPropsRef:d,closeCombobox(){y.value=!1,!e.disabled&&o.value!==1&&(o.value=1,h.value=null)},openCombobox(){if(y.value=!0,!e.disabled&&o.value!==0){if(k.value.value){let U=k.calculateIndex(k.value.value);U!==-1&&(h.value=U)}o.value=0}},setActivationTrigger(U){v.value=U},goToOption(U,j,G){y.value=!1,O!==null&&cancelAnimationFrame(O),O=requestAnimationFrame(()=>{if(e.disabled||c.value&&!d.value.static&&o.value===1)return;if(k.virtual.value){h.value=U===Ct.Specific?j:sm({focus:U},{resolveItems:()=>k.virtual.value.options,resolveActiveIndex:()=>{var xe,Ee;return(Ee=(xe=k.activeOptionIndex.value)!=null?xe:k.virtual.value.options.findIndex(ke=>{var Ie;return!((Ie=k.virtual.value)!=null&&Ie.disabled(ke))}))!=null?Ee:null},resolveDisabled:xe=>k.virtual.value.disabled(xe),resolveId(){throw new Error("Function not implemented.")}}),v.value=G??2;return}let X=b();if(X.activeOptionIndex===null){let xe=X.options.findIndex(Ee=>!Ee.dataRef.disabled);xe!==-1&&(X.activeOptionIndex=xe)}let ne=U===Ct.Specific?j:sm({focus:U},{resolveItems:()=>X.options,resolveActiveIndex:()=>X.activeOptionIndex,resolveId:xe=>xe.id,resolveDisabled:xe=>xe.dataRef.disabled});h.value=ne,v.value=G??2,p.value=X.options})},selectOption(U){let j=p.value.find(X=>X.id===U);if(!j)return;let{dataRef:G}=j;P(G.value)},selectActiveOption(){if(k.activeOptionIndex.value!==null){if(k.virtual.value)P(k.virtual.value.options[k.activeOptionIndex.value]);else{let{dataRef:U}=p.value[k.activeOptionIndex.value];P(U.value)}k.goToOption(Ct.Specific,k.activeOptionIndex.value)}},registerOption(U,j){let G=Ts({id:U,dataRef:j});if(k.virtual.value){p.value.push(G);return}$&&cancelAnimationFrame($);let X=b(ne=>(ne.push(G),ne));h.value===null&&k.isSelected(j.value.value)&&(X.activeOptionIndex=X.options.indexOf(G)),p.value=X.options,h.value=X.activeOptionIndex,v.value=2,X.options.some(ne=>!de(ne.dataRef.domRef))&&($=requestAnimationFrame(()=>{let ne=b();p.value=ne.options,h.value=ne.activeOptionIndex}))},unregisterOption(U,j){if(O!==null&&cancelAnimationFrame(O),j&&(y.value=!0),k.virtual.value){p.value=p.value.filter(X=>X.id!==U);return}let G=b(X=>{let ne=X.findIndex(xe=>xe.id===U);return ne!==-1&&X.splice(ne,1),X});p.value=G.options,h.value=G.activeOptionIndex,v.value=2},isSelected(U){return kt(S.value,{0:()=>k.compare(He(k.value.value),He(U)),1:()=>He(k.value.value).some(j=>k.compare(He(j),He(U)))})},isActive(U){return h.value===k.calculateIndex(U)}};lf([l,a,c],()=>k.closeCombobox(),fe(()=>o.value===0)),Qt(dT,k),uf(fe(()=>kt(o.value,{0:Lt.Open,1:Lt.Closed})));let W=fe(()=>{var U;return(U=de(l))==null?void 0:U.closest("form")});return wt(()=>{Ut([W],()=>{if(!W.value||e.defaultValue===void 0)return;function U(){k.change(e.defaultValue)}return W.value.addEventListener("reset",U),()=>{var j;(j=W.value)==null||j.removeEventListener("reset",U)}},{immediate:!0})}),()=>{var U,j,G;let{name:X,disabled:ne,form:xe,...Ee}=e,ke={open:o.value===0,disabled:ne,activeIndex:k.activeOptionIndex.value,activeOption:k.activeOptionIndex.value===null?null:k.virtual.value?k.virtual.value.options[(U=k.activeOptionIndex.value)!=null?U:0]:(G=(j=k.options.value[k.activeOptionIndex.value])==null?void 0:j.dataRef.value)!=null?G:null,value:E.value};return pt(Me,[...X!=null&&E.value!=null?hv({[X]:E.value}).map(([Ie,Qe])=>pt(xo,pv({features:io.Hidden,key:Ie,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:xe,disabled:ne,name:Ie,value:Qe}))):[],xt({theirProps:{...n,...gi(Ee,["by","defaultValue","immediate","modelValue","multiple","nullable","onUpdate:modelValue","virtual"])},ourProps:{},slot:ke,slots:t,attrs:n,name:"Combobox"})])}}}),SH=ge({name:"ComboboxLabel",props:{as:{type:[Object,String],default:"label"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n}){var r;let o=(r=e.id)!=null?r:`headlessui-combobox-label-${qt()}`,i=yi("ComboboxLabel");function l(){var a;(a=de(i.inputRef))==null||a.focus({preventScroll:!0})}return()=>{let a={open:i.comboboxState.value===0,disabled:i.disabled.value},{...c}=e,d={id:o,ref:i.labelRef,onClick:l};return xt({ourProps:d,theirProps:c,slot:a,attrs:t,slots:n,name:"ComboboxLabel"})}}}),hT=ge({name:"ComboboxButton",props:{as:{type:[Object,String],default:"button"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){var o;let i=(o=e.id)!=null?o:`headlessui-combobox-button-${qt()}`,l=yi("ComboboxButton");r({el:l.buttonRef,$el:l.buttonRef});function a(p){l.disabled.value||(l.comboboxState.value===0?l.closeCombobox():(p.preventDefault(),l.openCombobox()),sn(()=>{var h;return(h=de(l.inputRef))==null?void 0:h.focus({preventScroll:!0})}))}function c(p){switch(p.key){case at.ArrowDown:p.preventDefault(),p.stopPropagation(),l.comboboxState.value===1&&l.openCombobox(),sn(()=>{var h;return(h=l.inputRef.value)==null?void 0:h.focus({preventScroll:!0})});return;case at.ArrowUp:p.preventDefault(),p.stopPropagation(),l.comboboxState.value===1&&(l.openCombobox(),sn(()=>{l.value.value||l.goToOption(Ct.Last)})),sn(()=>{var h;return(h=l.inputRef.value)==null?void 0:h.focus({preventScroll:!0})});return;case at.Escape:if(l.comboboxState.value!==0)return;p.preventDefault(),l.optionsRef.value&&!l.optionsPropsRef.value.static&&p.stopPropagation(),l.closeCombobox(),sn(()=>{var h;return(h=l.inputRef.value)==null?void 0:h.focus({preventScroll:!0})});return}}let d=af(fe(()=>({as:e.as,type:t.type})),l.buttonRef);return()=>{var p,h;let v={open:l.comboboxState.value===0,disabled:l.disabled.value,value:l.value.value},{...y}=e,b={ref:l.buttonRef,id:i,type:d.value,tabindex:"-1","aria-haspopup":"listbox","aria-controls":(p=de(l.optionsRef))==null?void 0:p.id,"aria-expanded":l.comboboxState.value===0,"aria-labelledby":l.labelRef.value?[(h=de(l.labelRef))==null?void 0:h.id,i].join(" "):void 0,disabled:l.disabled.value===!0?!0:void 0,onKeydown:c,onClick:a};return xt({ourProps:b,theirProps:y,slot:v,attrs:t,slots:n,name:"ComboboxButton"})}}}),mT=ge({name:"ComboboxInput",props:{as:{type:[Object,String],default:"input"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},displayValue:{type:Function},defaultValue:{type:String,default:void 0},id:{type:String,default:null}},emits:{change:e=>!0},setup(e,{emit:t,attrs:n,slots:r,expose:o}){var i;let l=(i=e.id)!=null?i:`headlessui-combobox-input-${qt()}`,a=yi("ComboboxInput"),c=fe(()=>Kr(de(a.inputRef))),d={value:!1};o({el:a.inputRef,$el:a.inputRef});function p(){a.change(null);let $=de(a.optionsRef);$&&($.scrollTop=0),a.goToOption(Ct.Nothing)}let h=fe(()=>{var $;let P=a.value.value;return de(a.inputRef)?typeof e.displayValue<"u"&&P!==void 0?($=e.displayValue(P))!=null?$:"":typeof P=="string"?P:"":""});wt(()=>{Ut([h,a.comboboxState,c],([$,P],[R,k])=>{if(d.value)return;let W=de(a.inputRef);W&&((k===0&&P===1||$!==R)&&(W.value=$),requestAnimationFrame(()=>{var U;if(d.value||!W||((U=c.value)==null?void 0:U.activeElement)!==W)return;let{selectionStart:j,selectionEnd:G}=W;Math.abs((G??0)-(j??0))===0&&j===0&&W.setSelectionRange(W.value.length,W.value.length)}))},{immediate:!0}),Ut([a.comboboxState],([$],[P])=>{if($===0&&P===1){if(d.value)return;let R=de(a.inputRef);if(!R)return;let k=R.value,{selectionStart:W,selectionEnd:U,selectionDirection:j}=R;R.value="",R.value=k,j!==null?R.setSelectionRange(W,U,j):R.setSelectionRange(W,U)}})});let v=$e(!1);function y(){v.value=!0}function b(){xs().nextFrame(()=>{v.value=!1})}let S=QV();function T($){switch(d.value=!0,S(()=>{d.value=!1}),$.key){case at.Enter:if(d.value=!1,a.comboboxState.value!==0||v.value)return;if($.preventDefault(),$.stopPropagation(),a.activeOptionIndex.value===null){a.closeCombobox();return}a.selectActiveOption(),a.mode.value===0&&a.closeCombobox();break;case at.ArrowDown:return d.value=!1,$.preventDefault(),$.stopPropagation(),kt(a.comboboxState.value,{0:()=>a.goToOption(Ct.Next),1:()=>a.openCombobox()});case at.ArrowUp:return d.value=!1,$.preventDefault(),$.stopPropagation(),kt(a.comboboxState.value,{0:()=>a.goToOption(Ct.Previous),1:()=>{a.openCombobox(),sn(()=>{a.value.value||a.goToOption(Ct.Last)})}});case at.Home:if($.shiftKey)break;return d.value=!1,$.preventDefault(),$.stopPropagation(),a.goToOption(Ct.First);case at.PageUp:return d.value=!1,$.preventDefault(),$.stopPropagation(),a.goToOption(Ct.First);case at.End:if($.shiftKey)break;return d.value=!1,$.preventDefault(),$.stopPropagation(),a.goToOption(Ct.Last);case at.PageDown:return d.value=!1,$.preventDefault(),$.stopPropagation(),a.goToOption(Ct.Last);case at.Escape:if(d.value=!1,a.comboboxState.value!==0)return;$.preventDefault(),a.optionsRef.value&&!a.optionsPropsRef.value.static&&$.stopPropagation(),a.nullable.value&&a.mode.value===0&&a.value.value===null&&p(),a.closeCombobox();break;case at.Tab:if(d.value=!1,a.comboboxState.value!==0)return;a.mode.value===0&&a.activationTrigger.value!==1&&a.selectActiveOption(),a.closeCombobox();break}}function C($){t("change",$),a.nullable.value&&a.mode.value===0&&$.target.value===""&&p(),a.openCombobox()}function w($){var P,R,k;let W=(P=$.relatedTarget)!=null?P:Ho.find(U=>U!==$.currentTarget);if(d.value=!1,!((R=de(a.optionsRef))!=null&&R.contains(W))&&!((k=de(a.buttonRef))!=null&&k.contains(W))&&a.comboboxState.value===0)return $.preventDefault(),a.mode.value===0&&(a.nullable.value&&a.value.value===null?p():a.activationTrigger.value!==1&&a.selectActiveOption()),a.closeCombobox()}function E($){var P,R,k;let W=(P=$.relatedTarget)!=null?P:Ho.find(U=>U!==$.currentTarget);(R=de(a.buttonRef))!=null&&R.contains(W)||(k=de(a.optionsRef))!=null&&k.contains(W)||a.disabled.value||a.immediate.value&&a.comboboxState.value!==0&&(a.openCombobox(),xs().nextFrame(()=>{a.setActivationTrigger(1)}))}let O=fe(()=>{var $,P,R,k;return(k=(R=(P=e.defaultValue)!=null?P:a.defaultValue.value!==void 0?($=e.displayValue)==null?void 0:$.call(e,a.defaultValue.value):null)!=null?R:a.defaultValue.value)!=null?k:""});return()=>{var $,P,R,k,W,U,j;let G={open:a.comboboxState.value===0},{displayValue:X,onChange:ne,...xe}=e,Ee={"aria-controls":($=a.optionsRef.value)==null?void 0:$.id,"aria-expanded":a.comboboxState.value===0,"aria-activedescendant":a.activeOptionIndex.value===null?void 0:a.virtual.value?(P=a.options.value.find(ke=>!a.virtual.value.disabled(ke.dataRef.value)&&a.compare(ke.dataRef.value,a.virtual.value.options[a.activeOptionIndex.value])))==null?void 0:P.id:(R=a.options.value[a.activeOptionIndex.value])==null?void 0:R.id,"aria-labelledby":(U=(k=de(a.labelRef))==null?void 0:k.id)!=null?U:(W=de(a.buttonRef))==null?void 0:W.id,"aria-autocomplete":"list",id:l,onCompositionstart:y,onCompositionend:b,onKeydown:T,onInput:C,onFocus:E,onBlur:w,role:"combobox",type:(j=n.type)!=null?j:"text",tabIndex:0,ref:a.inputRef,defaultValue:O.value,disabled:a.disabled.value===!0?!0:void 0};return xt({ourProps:Ee,theirProps:xe,slot:G,attrs:n,slots:r,features:ar.RenderStrategy|ar.Static,name:"ComboboxInput"})}}}),gT=ge({name:"ComboboxOptions",props:{as:{type:[Object,String],default:"ul"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},hold:{type:[Boolean],default:!1}},setup(e,{attrs:t,slots:n,expose:r}){let o=yi("ComboboxOptions"),i=`headlessui-combobox-options-${qt()}`;r({el:o.optionsRef,$el:o.optionsRef}),Vt(()=>{o.optionsPropsRef.value.static=e.static}),Vt(()=>{o.optionsPropsRef.value.hold=e.hold});let l=vi(),a=fe(()=>l!==null?(l.value&Lt.Open)===Lt.Open:o.comboboxState.value===0);cH({container:fe(()=>de(o.optionsRef)),enabled:fe(()=>o.comboboxState.value===0),accept(d){return d.getAttribute("role")==="option"?NodeFilter.FILTER_REJECT:d.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(d){d.setAttribute("role","none")}});function c(d){d.preventDefault()}return()=>{var d,p,h;let v={open:o.comboboxState.value===0},y={"aria-labelledby":(h=(d=de(o.labelRef))==null?void 0:d.id)!=null?h:(p=de(o.buttonRef))==null?void 0:p.id,id:i,ref:o.optionsRef,role:"listbox","aria-multiselectable":o.mode.value===1?!0:void 0,onMousedown:c},b=gi(e,["hold"]);return xt({ourProps:y,theirProps:b,slot:v,attrs:t,slots:o.virtual.value&&o.comboboxState.value===0?{...n,default:()=>[pt(wH,{},n.default)]}:n,features:ar.RenderStrategy|ar.Static,visible:a.value,name:"ComboboxOptions"})}}}),vT=ge({name:"ComboboxOption",props:{as:{type:[Object,String],default:"li"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1},order:{type:[Number],default:null}},setup(e,{slots:t,attrs:n,expose:r}){let o=yi("ComboboxOption"),i=`headlessui-combobox-option-${qt()}`,l=$e(null),a=fe(()=>e.disabled);r({el:l,$el:l});let c=fe(()=>{var w;return o.virtual.value?o.activeOptionIndex.value===o.calculateIndex(e.value):o.activeOptionIndex.value===null?!1:((w=o.options.value[o.activeOptionIndex.value])==null?void 0:w.id)===i}),d=fe(()=>o.isSelected(e.value)),p=Ft(fT,null),h=fe(()=>({disabled:e.disabled,value:e.value,domRef:l,order:fe(()=>e.order)}));wt(()=>o.registerOption(i,h)),en(()=>o.unregisterOption(i,c.value)),Vt(()=>{let w=de(l);w&&(p==null||p.value.measureElement(w))}),Vt(()=>{o.comboboxState.value===0&&c.value&&(o.virtual.value||o.activationTrigger.value!==0&&sn(()=>{var w,E;return(E=(w=de(l))==null?void 0:w.scrollIntoView)==null?void 0:E.call(w,{block:"nearest"})}))});function v(w){w.preventDefault(),w.button===aT.Left&&(a.value||(o.selectOption(i),nT()||requestAnimationFrame(()=>{var E;return(E=de(o.inputRef))==null?void 0:E.focus({preventScroll:!0})}),o.mode.value===0&&o.closeCombobox()))}function y(){var w;if(e.disabled||(w=o.virtual.value)!=null&&w.disabled(e.value))return o.goToOption(Ct.Nothing);let E=o.calculateIndex(e.value);o.goToOption(Ct.Specific,E)}let b=oT();function S(w){b.update(w)}function T(w){var E;if(!b.wasMoved(w)||e.disabled||(E=o.virtual.value)!=null&&E.disabled(e.value)||c.value)return;let O=o.calculateIndex(e.value);o.goToOption(Ct.Specific,O,0)}function C(w){var E;b.wasMoved(w)&&(e.disabled||(E=o.virtual.value)!=null&&E.disabled(e.value)||c.value&&(o.optionsPropsRef.value.hold||o.goToOption(Ct.Nothing)))}return()=>{let{disabled:w}=e,E={active:c.value,selected:d.value,disabled:w},O={id:i,ref:l,role:"option",tabIndex:w===!0?void 0:-1,"aria-disabled":w===!0?!0:void 0,"aria-selected":d.value,disabled:void 0,onMousedown:v,onFocus:y,onPointerenter:S,onMouseenter:S,onPointermove:T,onMousemove:T,onPointerleave:C,onMouseleave:C},$=gi(e,["order","value"]);return xt({ourProps:O,theirProps:$,slot:E,attrs:n,slots:t,name:"ComboboxOption"})}}});function mv(e,t,n,r){Xa.isServer||Vt(o=>{e=e??window,e.addEventListener(t,n,r),o(()=>e.removeEventListener(t,n,r))})}var yr=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(yr||{});function gv(){let e=$e(0);return rT("keydown",t=>{t.key==="Tab"&&(e.value=t.shiftKey?1:0)}),e}function yT(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let n of e.value){let r=de(n);r instanceof HTMLElement&&t.add(r)}return t}var _T=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(_T||{});let Ul=Object.assign(ge({name:"FocusTrap",props:{as:{type:[Object,String],default:"div"},initialFocus:{type:Object,default:null},features:{type:Number,default:30},containers:{type:[Object,Function],default:$e(new Set)}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:r}){let o=$e(null);r({el:o,$el:o});let i=fe(()=>Kr(o)),l=$e(!1);wt(()=>l.value=!0),en(()=>l.value=!1),$H({ownerDocument:i},fe(()=>l.value&&!!(e.features&16)));let a=xH({ownerDocument:i,container:o,initialFocus:fe(()=>e.initialFocus)},fe(()=>l.value&&!!(e.features&2)));TH({ownerDocument:i,container:o,containers:e.containers,previousActiveElement:a},fe(()=>l.value&&!!(e.features&8)));let c=gv();function d(y){let b=de(o);b&&(S=>S())(()=>{kt(c.value,{[yr.Forwards]:()=>{to(b,Mn.First,{skipElements:[y.relatedTarget]})},[yr.Backwards]:()=>{to(b,Mn.Last,{skipElements:[y.relatedTarget]})}})})}let p=$e(!1);function h(y){y.key==="Tab"&&(p.value=!0,requestAnimationFrame(()=>{p.value=!1}))}function v(y){if(!l.value)return;let b=yT(e.containers);de(o)instanceof HTMLElement&&b.add(de(o));let S=y.relatedTarget;S instanceof HTMLElement&&S.dataset.headlessuiFocusGuard!=="true"&&(bT(b,S)||(p.value?to(de(o),kt(c.value,{[yr.Forwards]:()=>Mn.Next,[yr.Backwards]:()=>Mn.Previous})|Mn.WrapAround,{relativeTo:y.target}):y.target instanceof HTMLElement&&si(y.target)))}return()=>{let y={},b={ref:o,onKeydown:h,onFocusout:v},{features:S,initialFocus:T,containers:C,...w}=e;return pt(Me,[!!(S&4)&&pt(xo,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:d,features:io.Focusable}),xt({ourProps:b,theirProps:{...t,...w},slot:y,attrs:t,slots:n,name:"FocusTrap"}),!!(S&4)&&pt(xo,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:d,features:io.Focusable})])}}}),{features:_T});function EH(e){let t=$e(Ho.slice());return Ut([e],([n],[r])=>{r===!0&&n===!1?cv(()=>{t.value.splice(0)}):r===!1&&n===!0&&(t.value=Ho.slice())},{flush:"post"}),()=>{var n;return(n=t.value.find(r=>r!=null&&r.isConnected))!=null?n:null}}function $H({ownerDocument:e},t){let n=EH(t);wt(()=>{Vt(()=>{var r,o;t.value||((r=e.value)==null?void 0:r.activeElement)===((o=e.value)==null?void 0:o.body)&&si(n())},{flush:"post"})}),en(()=>{t.value&&si(n())})}function xH({ownerDocument:e,container:t,initialFocus:n},r){let o=$e(null),i=$e(!1);return wt(()=>i.value=!0),en(()=>i.value=!1),wt(()=>{Ut([t,n,r],(l,a)=>{if(l.every((d,p)=>(a==null?void 0:a[p])===d)||!r.value)return;let c=de(t);c&&cv(()=>{var d,p;if(!i.value)return;let h=de(n),v=(d=e.value)==null?void 0:d.activeElement;if(h){if(h===v){o.value=v;return}}else if(c.contains(v)){o.value=v;return}h?si(h):to(c,Mn.First|Mn.NoScroll)===Ca.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),o.value=(p=e.value)==null?void 0:p.activeElement})},{immediate:!0,flush:"post"})}),o}function TH({ownerDocument:e,container:t,containers:n,previousActiveElement:r},o){var i;mv((i=e.value)==null?void 0:i.defaultView,"focus",l=>{if(!o.value)return;let a=yT(n);de(t)instanceof HTMLElement&&a.add(de(t));let c=r.value;if(!c)return;let d=l.target;d&&d instanceof HTMLElement?bT(a,d)?(r.value=d,si(d)):(l.preventDefault(),l.stopPropagation(),si(c)):si(r.value)},!0)}function bT(e,t){for(let n of e)if(n.contains(t))return!0;return!1}function CH(e){let t=gd(e.getSnapshot());return en(e.subscribe(()=>{t.value=e.getSnapshot()})),t}function OH(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(o){return r.add(o),()=>r.delete(o)},dispatch(o,...i){let l=t[o].call(n,...i);l&&(n=l,r.forEach(a=>a()))}}}function AH(){let e;return{before({doc:t}){var n;let r=t.documentElement;e=((n=t.defaultView)!=null?n:window).innerWidth-r.clientWidth},after({doc:t,d:n}){let r=t.documentElement,o=r.clientWidth-r.offsetWidth,i=e-o;n.style(r,"paddingRight",`${i}px`)}}}function kH(){return tT()?{before({doc:e,d:t,meta:n}){function r(o){return n.containers.flatMap(i=>i()).some(i=>i.contains(o))}t.microTask(()=>{var o;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let a=xs();a.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>a.dispose()))}let i=(o=window.scrollY)!=null?o:window.pageYOffset,l=null;t.addEventListener(e,"click",a=>{if(a.target instanceof HTMLElement)try{let c=a.target.closest("a");if(!c)return;let{hash:d}=new URL(c.href),p=e.querySelector(d);p&&!r(p)&&(l=p)}catch{}},!0),t.addEventListener(e,"touchstart",a=>{if(a.target instanceof HTMLElement)if(r(a.target)){let c=a.target;for(;c.parentElement&&r(c.parentElement);)c=c.parentElement;t.style(c,"overscrollBehavior","contain")}else t.style(a.target,"touchAction","none")}),t.addEventListener(e,"touchmove",a=>{if(a.target instanceof HTMLElement){if(a.target.tagName==="INPUT")return;if(r(a.target)){let c=a.target;for(;c.parentElement&&c.dataset.headlessuiPortal!==""&&!(c.scrollHeight>c.clientHeight||c.scrollWidth>c.clientWidth);)c=c.parentElement;c.dataset.headlessuiPortal===""&&a.preventDefault()}else a.preventDefault()}},{passive:!1}),t.add(()=>{var a;let c=(a=window.scrollY)!=null?a:window.pageYOffset;i!==c&&window.scrollTo(0,i),l&&l.isConnected&&(l.scrollIntoView({block:"nearest"}),l=null)})})}}:{}}function IH(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function PH(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let Js=OH(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:xs(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:PH(n)},o=[kH(),AH(),IH()];o.forEach(({before:i})=>i==null?void 0:i(r)),o.forEach(({after:i})=>i==null?void 0:i(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});Js.subscribe(()=>{let e=Js.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let r=t.get(n.doc)==="hidden",o=n.count!==0;(o&&!r||!o&&r)&&Js.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&Js.dispatch("TEARDOWN",n)}});function RH(e,t,n){let r=CH(Js),o=fe(()=>{let i=e.value?r.value.get(e.value):void 0;return i?i.count>0:!1});return Ut([e,t],([i,l],[a],c)=>{if(!i||!l)return;Js.dispatch("PUSH",i,n);let d=!1;c(()=>{d||(Js.dispatch("POP",a??i,n),d=!0)})},{immediate:!0}),o}let ih=new Map,Bl=new Map;function mb(e,t=$e(!0)){Vt(n=>{var r;if(!t.value)return;let o=de(e);if(!o)return;n(function(){var l;if(!o)return;let a=(l=Bl.get(o))!=null?l:1;if(a===1?Bl.delete(o):Bl.set(o,a-1),a!==1)return;let c=ih.get(o);c&&(c["aria-hidden"]===null?o.removeAttribute("aria-hidden"):o.setAttribute("aria-hidden",c["aria-hidden"]),o.inert=c.inert,ih.delete(o))});let i=(r=Bl.get(o))!=null?r:0;Bl.set(o,i+1),i===0&&(ih.set(o,{"aria-hidden":o.getAttribute("aria-hidden"),inert:o.inert}),o.setAttribute("aria-hidden","true"),o.inert=!0)})}function wT({defaultContainers:e=[],portals:t,mainTreeNodeRef:n}={}){let r=$e(null),o=Kr(r);function i(){var l,a,c;let d=[];for(let p of e)p!==null&&(p instanceof HTMLElement?d.push(p):"value"in p&&p.value instanceof HTMLElement&&d.push(p.value));if(t!=null&&t.value)for(let p of t.value)d.push(p);for(let p of(l=o==null?void 0:o.querySelectorAll("html > *, body > *"))!=null?l:[])p!==document.body&&p!==document.head&&p instanceof HTMLElement&&p.id!=="headlessui-portal-root"&&(p.contains(de(r))||p.contains((c=(a=de(r))==null?void 0:a.getRootNode())==null?void 0:c.host)||d.some(h=>p.contains(h))||d.push(p));return d}return{resolveContainers:i,contains(l){return i().some(a=>a.contains(l))},mainTreeNodeRef:r,MainTreeNode(){return n!=null?null:pt(xo,{features:io.Hidden,ref:r})}}}function LH(){let e=$e(null);return{mainTreeNodeRef:e,MainTreeNode(){return pt(xo,{features:io.Hidden,ref:e})}}}let ST=Symbol("ForcePortalRootContext");function FH(){return Ft(ST,!1)}let im=ge({name:"ForcePortalRoot",props:{as:{type:[Object,String],default:"template"},force:{type:Boolean,default:!1}},setup(e,{slots:t,attrs:n}){return Qt(ST,e.force),()=>{let{force:r,...o}=e;return xt({theirProps:o,ourProps:{},slot:{},slots:t,attrs:n,name:"ForcePortalRoot"})}}}),ET=Symbol("StackContext");var lm=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(lm||{});function NH(){return Ft(ET,()=>{})}function MH({type:e,enabled:t,element:n,onUpdate:r}){let o=NH();function i(...l){r==null||r(...l),o(...l)}wt(()=>{Ut(t,(l,a)=>{l?i(0,e,n):a===!0&&i(1,e,n)},{immediate:!0,flush:"sync"})}),en(()=>{t.value&&i(1,e,n)}),Qt(ET,i)}let $T=Symbol("DescriptionContext");function DH(){let e=Ft($T,null);if(e===null)throw new Error("Missing parent");return e}function xT({slot:e=$e({}),name:t="Description",props:n={}}={}){let r=$e([]);function o(i){return r.value.push(i),()=>{let l=r.value.indexOf(i);l!==-1&&r.value.splice(l,1)}}return Qt($T,{register:o,slot:e,name:t,props:n}),fe(()=>r.value.length>0?r.value.join(" "):void 0)}ge({name:"Description",props:{as:{type:[Object,String],default:"p"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n}){var r;let o=(r=e.id)!=null?r:`headlessui-description-${qt()}`,i=DH();return wt(()=>en(i.register(o))),()=>{let{name:l="Description",slot:a=$e({}),props:c={}}=i,{...d}=e,p={...Object.entries(c).reduce((h,[v,y])=>Object.assign(h,{[v]:vn(y)}),{}),id:o};return xt({ourProps:p,theirProps:d,slot:a.value,attrs:t,slots:n,name:l})}}});function UH(e){let t=Kr(e);if(!t){if(e===null)return null;throw new Error(`[Headless UI]: Cannot find ownerDocument for contextElement: ${e}`)}let n=t.getElementById("headlessui-portal-root");if(n)return n;let r=t.createElement("div");return r.setAttribute("id","headlessui-portal-root"),t.body.appendChild(r)}const am=new WeakMap;function BH(e){var t;return(t=am.get(e))!=null?t:0}function gb(e,t){let n=t(BH(e));return n<=0?am.delete(e):am.set(e,n),n}let TT=ge({name:"Portal",props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:n}){let r=$e(null),o=fe(()=>Kr(r)),i=FH(),l=Ft(OT,null),a=$e(i===!0||l==null?UH(r.value):l.resolveTarget());a.value&&gb(a.value,v=>v+1);let c=$e(!1);wt(()=>{c.value=!0}),Vt(()=>{i||l!=null&&(a.value=l.resolveTarget())});let d=Ft(um,null),p=!1,h=Jo();return Ut(r,()=>{if(p||!d)return;let v=de(r);v&&(en(d.register(v),h),p=!0)}),en(()=>{var v,y;let b=(v=o.value)==null?void 0:v.getElementById("headlessui-portal-root");!b||a.value!==b||gb(a.value,S=>S-1)||a.value.children.length>0||(y=a.value.parentElement)==null||y.removeChild(a.value)}),()=>{if(!c.value||a.value===null)return null;let v={ref:r,"data-headlessui-portal":""};return pt(jw,{to:a.value},xt({ourProps:v,theirProps:e,slot:{},attrs:n,slots:t,name:"Portal"}))}}}),um=Symbol("PortalParentContext");function CT(){let e=Ft(um,null),t=$e([]);function n(i){return t.value.push(i),e&&e.register(i),()=>r(i)}function r(i){let l=t.value.indexOf(i);l!==-1&&t.value.splice(l,1),e&&e.unregister(i)}let o={register:n,unregister:r,portals:t};return[t,ge({name:"PortalWrapper",setup(i,{slots:l}){return Qt(um,o),()=>{var a;return(a=l.default)==null?void 0:a.call(l)}}})]}let OT=Symbol("PortalGroupContext"),jH=ge({name:"PortalGroup",props:{as:{type:[Object,String],default:"template"},target:{type:Object,default:null}},setup(e,{attrs:t,slots:n}){let r=Ts({resolveTarget(){return e.target}});return Qt(OT,r),()=>{let{target:o,...i}=e;return xt({theirProps:i,ourProps:{},slot:{},attrs:t,slots:n,name:"PortalGroup"})}}});var VH=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(VH||{});let cm=Symbol("DialogContext");function Ya(e){let t=Ft(cm,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Ya),n}return t}let cc="DC8F892D-2EBD-447C-A4C8-A03058436FF4",HH=ge({name:"Dialog",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},open:{type:[Boolean,String],default:cc},initialFocus:{type:Object,default:null},id:{type:String,default:null},role:{type:String,default:"dialog"}},emits:{close:e=>!0},setup(e,{emit:t,attrs:n,slots:r,expose:o}){var i,l;let a=(i=e.id)!=null?i:`headlessui-dialog-${qt()}`,c=$e(!1);wt(()=>{c.value=!0});let d=!1,p=fe(()=>e.role==="dialog"||e.role==="alertdialog"?e.role:(d||(d=!0,console.warn(`Invalid role [${p}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")),h=$e(0),v=vi(),y=fe(()=>e.open===cc&&v!==null?(v.value&Lt.Open)===Lt.Open:e.open),b=$e(null),S=fe(()=>Kr(b));if(o({el:b,$el:b}),!(e.open!==cc||v!==null))throw new Error("You forgot to provide an `open` prop to the `Dialog`.");if(typeof y.value!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${y.value===cc?void 0:e.open}`);let T=fe(()=>c.value&&y.value?0:1),C=fe(()=>T.value===0),w=fe(()=>h.value>1),E=Ft(cm,null)!==null,[O,$]=CT(),{resolveContainers:P,mainTreeNodeRef:R,MainTreeNode:k}=wT({portals:O,defaultContainers:[fe(()=>{var De;return(De=ke.panelRef.value)!=null?De:b.value})]}),W=fe(()=>w.value?"parent":"leaf"),U=fe(()=>v!==null?(v.value&Lt.Closing)===Lt.Closing:!1),j=fe(()=>E||U.value?!1:C.value),G=fe(()=>{var De,Xe,Q;return(Q=Array.from((Xe=(De=S.value)==null?void 0:De.querySelectorAll("body > *"))!=null?Xe:[]).find(ce=>ce.id==="headlessui-portal-root"?!1:ce.contains(de(R))&&ce instanceof HTMLElement))!=null?Q:null});mb(G,j);let X=fe(()=>w.value?!0:C.value),ne=fe(()=>{var De,Xe,Q;return(Q=Array.from((Xe=(De=S.value)==null?void 0:De.querySelectorAll("[data-headlessui-portal]"))!=null?Xe:[]).find(ce=>ce.contains(de(R))&&ce instanceof HTMLElement))!=null?Q:null});mb(ne,X),MH({type:"Dialog",enabled:fe(()=>T.value===0),element:b,onUpdate:(De,Xe)=>{if(Xe==="Dialog")return kt(De,{[lm.Add]:()=>h.value+=1,[lm.Remove]:()=>h.value-=1})}});let xe=xT({name:"DialogDescription",slot:fe(()=>({open:y.value}))}),Ee=$e(null),ke={titleId:Ee,panelRef:$e(null),dialogState:T,setTitleId(De){Ee.value!==De&&(Ee.value=De)},close(){t("close",!1)}};Qt(cm,ke);let Ie=fe(()=>!(!C.value||w.value));lf(P,(De,Xe)=>{De.preventDefault(),ke.close(),sn(()=>Xe==null?void 0:Xe.focus())},Ie);let Qe=fe(()=>!(w.value||T.value!==0));mv((l=S.value)==null?void 0:l.defaultView,"keydown",De=>{Qe.value&&(De.defaultPrevented||De.key===at.Escape&&(De.preventDefault(),De.stopPropagation(),ke.close()))});let ht=fe(()=>!(U.value||T.value!==0||E));return RH(S,ht,De=>{var Xe;return{containers:[...(Xe=De.containers)!=null?Xe:[],P]}}),Vt(De=>{if(T.value!==0)return;let Xe=de(b);if(!Xe)return;let Q=new ResizeObserver(ce=>{for(let ve of ce){let Ce=ve.target.getBoundingClientRect();Ce.x===0&&Ce.y===0&&Ce.width===0&&Ce.height===0&&ke.close()}});Q.observe(Xe),De(()=>Q.disconnect())}),()=>{let{open:De,initialFocus:Xe,...Q}=e,ce={...n,ref:b,id:a,role:p.value,"aria-modal":T.value===0?!0:void 0,"aria-labelledby":Ee.value,"aria-describedby":xe.value},ve={open:T.value===0};return pt(im,{force:!0},()=>[pt(TT,()=>pt(jH,{target:b.value},()=>pt(im,{force:!1},()=>pt(Ul,{initialFocus:Xe,containers:P,features:C.value?kt(W.value,{parent:Ul.features.RestoreFocus,leaf:Ul.features.All&~Ul.features.FocusLock}):Ul.features.None},()=>pt($,{},()=>xt({ourProps:ce,theirProps:{...Q,...n},slot:ve,attrs:n,slots:r,visible:T.value===0,features:ar.RenderStrategy|ar.Static,name:"Dialog"})))))),pt(k)])}}}),zH=ge({name:"DialogOverlay",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n}){var r;let o=(r=e.id)!=null?r:`headlessui-dialog-overlay-${qt()}`,i=Ya("DialogOverlay");function l(a){a.target===a.currentTarget&&(a.preventDefault(),a.stopPropagation(),i.close())}return()=>{let{...a}=e;return xt({ourProps:{id:o,"aria-hidden":!0,onClick:l},theirProps:a,slot:{open:i.dialogState.value===0},attrs:t,slots:n,name:"DialogOverlay"})}}});ge({name:"DialogBackdrop",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:null}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:r}){var o;let i=(o=e.id)!=null?o:`headlessui-dialog-backdrop-${qt()}`,l=Ya("DialogBackdrop"),a=$e(null);return r({el:a,$el:a}),wt(()=>{if(l.panelRef.value===null)throw new Error("A <DialogBackdrop /> component is being used, but a <DialogPanel /> component is missing.")}),()=>{let{...c}=e,d={id:i,ref:a,"aria-hidden":!0};return pt(im,{force:!0},()=>pt(TT,()=>xt({ourProps:d,theirProps:{...t,...c},slot:{open:l.dialogState.value===0},attrs:t,slots:n,name:"DialogBackdrop"})))}}});ge({name:"DialogPanel",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){var o;let i=(o=e.id)!=null?o:`headlessui-dialog-panel-${qt()}`,l=Ya("DialogPanel");r({el:l.panelRef,$el:l.panelRef});function a(c){c.stopPropagation()}return()=>{let{...c}=e,d={id:i,ref:l.panelRef,onClick:a};return xt({ourProps:d,theirProps:c,slot:{open:l.dialogState.value===0},attrs:t,slots:n,name:"DialogPanel"})}}});let WH=ge({name:"DialogTitle",props:{as:{type:[Object,String],default:"h2"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n}){var r;let o=(r=e.id)!=null?r:`headlessui-dialog-title-${qt()}`,i=Ya("DialogTitle");return wt(()=>{i.setTitleId(o),en(()=>i.setTitleId(null))}),()=>{let{...l}=e;return xt({ourProps:{id:o},theirProps:l,slot:{open:i.dialogState.value===0},attrs:t,slots:n,name:"DialogTitle"})}}}),vb=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function yb(e){var t,n;let r=(t=e.innerText)!=null?t:"",o=e.cloneNode(!0);if(!(o instanceof HTMLElement))return r;let i=!1;for(let a of o.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))a.remove(),i=!0;let l=i?(n=o.innerText)!=null?n:"":r;return vb.test(l)&&(l=l.replace(vb,"")),l}function qH(e){let t=e.getAttribute("aria-label");if(typeof t=="string")return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let r=n.split(" ").map(o=>{let i=document.getElementById(o);if(i){let l=i.getAttribute("aria-label");return typeof l=="string"?l.trim():yb(i).trim()}return null}).filter(Boolean);if(r.length>0)return r.join(", ")}return yb(e).trim()}function KH(e){let t=$e(""),n=$e("");return()=>{let r=de(e);if(!r)return"";let o=r.innerText;if(t.value===o)return n.value;let i=qH(r).trim().toLowerCase();return t.value=o,n.value=i,i}}function GH(e,t){return e===t}var XH=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(XH||{}),YH=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(YH||{}),JH=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(JH||{});function ZH(e){requestAnimationFrame(()=>requestAnimationFrame(e))}let AT=Symbol("ListboxContext");function Ja(e){let t=Ft(AT,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Ja),n}return t}let vv=ge({name:"Listbox",emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:"template"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],default:()=>GH},horizontal:{type:[Boolean],default:!1},modelValue:{type:[Object,String,Number,Boolean],default:void 0},defaultValue:{type:[Object,String,Number,Boolean],default:void 0},form:{type:String,optional:!0},name:{type:String,optional:!0},multiple:{type:[Boolean],default:!1}},inheritAttrs:!1,setup(e,{slots:t,attrs:n,emit:r}){let o=$e(1),i=$e(null),l=$e(null),a=$e(null),c=$e([]),d=$e(""),p=$e(null),h=$e(1);function v(E=O=>O){let O=p.value!==null?c.value[p.value]:null,$=fv(E(c.value.slice()),R=>de(R.dataRef.domRef)),P=O?$.indexOf(O):null;return P===-1&&(P=null),{options:$,activeOptionIndex:P}}let y=fe(()=>e.multiple?1:0),[b,S]=uv(fe(()=>e.modelValue),E=>r("update:modelValue",E),fe(()=>e.defaultValue)),T=fe(()=>b.value===void 0?kt(y.value,{1:[],0:void 0}):b.value),C={listboxState:o,value:T,mode:y,compare(E,O){if(typeof e.by=="string"){let $=e.by;return(E==null?void 0:E[$])===(O==null?void 0:O[$])}return e.by(E,O)},orientation:fe(()=>e.horizontal?"horizontal":"vertical"),labelRef:i,buttonRef:l,optionsRef:a,disabled:fe(()=>e.disabled),options:c,searchQuery:d,activeOptionIndex:p,activationTrigger:h,closeListbox(){e.disabled||o.value!==1&&(o.value=1,p.value=null)},openListbox(){e.disabled||o.value!==0&&(o.value=0)},goToOption(E,O,$){if(e.disabled||o.value===1)return;let P=v(),R=sm(E===Ct.Specific?{focus:Ct.Specific,id:O}:{focus:E},{resolveItems:()=>P.options,resolveActiveIndex:()=>P.activeOptionIndex,resolveId:k=>k.id,resolveDisabled:k=>k.dataRef.disabled});d.value="",p.value=R,h.value=$??1,c.value=P.options},search(E){if(e.disabled||o.value===1)return;let O=d.value!==""?0:1;d.value+=E.toLowerCase();let $=(p.value!==null?c.value.slice(p.value+O).concat(c.value.slice(0,p.value+O)):c.value).find(R=>R.dataRef.textValue.startsWith(d.value)&&!R.dataRef.disabled),P=$?c.value.indexOf($):-1;P===-1||P===p.value||(p.value=P,h.value=1)},clearSearch(){e.disabled||o.value!==1&&d.value!==""&&(d.value="")},registerOption(E,O){let $=v(P=>[...P,{id:E,dataRef:O}]);c.value=$.options,p.value=$.activeOptionIndex},unregisterOption(E){let O=v($=>{let P=$.findIndex(R=>R.id===E);return P!==-1&&$.splice(P,1),$});c.value=O.options,p.value=O.activeOptionIndex,h.value=1},theirOnChange(E){e.disabled||S(E)},select(E){e.disabled||S(kt(y.value,{0:()=>E,1:()=>{let O=He(C.value.value).slice(),$=He(E),P=O.findIndex(R=>C.compare($,He(R)));return P===-1?O.push($):O.splice(P,1),O}}))}};lf([l,a],(E,O)=>{var $;C.closeListbox(),dv(O,sf.Loose)||(E.preventDefault(),($=de(l))==null||$.focus())},fe(()=>o.value===0)),Qt(AT,C),uf(fe(()=>kt(o.value,{0:Lt.Open,1:Lt.Closed})));let w=fe(()=>{var E;return(E=de(l))==null?void 0:E.closest("form")});return wt(()=>{Ut([w],()=>{if(!w.value||e.defaultValue===void 0)return;function E(){C.theirOnChange(e.defaultValue)}return w.value.addEventListener("reset",E),()=>{var O;(O=w.value)==null||O.removeEventListener("reset",E)}},{immediate:!0})}),()=>{let{name:E,modelValue:O,disabled:$,form:P,...R}=e,k={open:o.value===0,disabled:$,value:T.value};return pt(Me,[...E!=null&&T.value!=null?hv({[E]:T.value}).map(([W,U])=>pt(xo,pv({features:io.Hidden,key:W,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:P,disabled:$,name:W,value:U}))):[],xt({ourProps:{},theirProps:{...n,...gi(R,["defaultValue","onUpdate:modelValue","horizontal","multiple","by"])},slot:k,slots:t,attrs:n,name:"Listbox"})])}}}),yv=ge({name:"ListboxLabel",props:{as:{type:[Object,String],default:"label"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n}){var r;let o=(r=e.id)!=null?r:`headlessui-listbox-label-${qt()}`,i=Ja("ListboxLabel");function l(){var a;(a=de(i.buttonRef))==null||a.focus({preventScroll:!0})}return()=>{let a={open:i.listboxState.value===0,disabled:i.disabled.value},{...c}=e,d={id:o,ref:i.labelRef,onClick:l};return xt({ourProps:d,theirProps:c,slot:a,attrs:t,slots:n,name:"ListboxLabel"})}}}),_v=ge({name:"ListboxButton",props:{as:{type:[Object,String],default:"button"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){var o;let i=(o=e.id)!=null?o:`headlessui-listbox-button-${qt()}`,l=Ja("ListboxButton");r({el:l.buttonRef,$el:l.buttonRef});function a(h){switch(h.key){case at.Space:case at.Enter:case at.ArrowDown:h.preventDefault(),l.openListbox(),sn(()=>{var v;(v=de(l.optionsRef))==null||v.focus({preventScroll:!0}),l.value.value||l.goToOption(Ct.First)});break;case at.ArrowUp:h.preventDefault(),l.openListbox(),sn(()=>{var v;(v=de(l.optionsRef))==null||v.focus({preventScroll:!0}),l.value.value||l.goToOption(Ct.Last)});break}}function c(h){switch(h.key){case at.Space:h.preventDefault();break}}function d(h){l.disabled.value||(l.listboxState.value===0?(l.closeListbox(),sn(()=>{var v;return(v=de(l.buttonRef))==null?void 0:v.focus({preventScroll:!0})})):(h.preventDefault(),l.openListbox(),ZH(()=>{var v;return(v=de(l.optionsRef))==null?void 0:v.focus({preventScroll:!0})})))}let p=af(fe(()=>({as:e.as,type:t.type})),l.buttonRef);return()=>{var h,v;let y={open:l.listboxState.value===0,disabled:l.disabled.value,value:l.value.value},{...b}=e,S={ref:l.buttonRef,id:i,type:p.value,"aria-haspopup":"listbox","aria-controls":(h=de(l.optionsRef))==null?void 0:h.id,"aria-expanded":l.listboxState.value===0,"aria-labelledby":l.labelRef.value?[(v=de(l.labelRef))==null?void 0:v.id,i].join(" "):void 0,disabled:l.disabled.value===!0?!0:void 0,onKeydown:a,onKeyup:c,onClick:d};return xt({ourProps:S,theirProps:b,slot:y,attrs:t,slots:n,name:"ListboxButton"})}}}),bv=ge({name:"ListboxOptions",props:{as:{type:[Object,String],default:"ul"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){var o;let i=(o=e.id)!=null?o:`headlessui-listbox-options-${qt()}`,l=Ja("ListboxOptions"),a=$e(null);r({el:l.optionsRef,$el:l.optionsRef});function c(h){switch(a.value&&clearTimeout(a.value),h.key){case at.Space:if(l.searchQuery.value!=="")return h.preventDefault(),h.stopPropagation(),l.search(h.key);case at.Enter:if(h.preventDefault(),h.stopPropagation(),l.activeOptionIndex.value!==null){let v=l.options.value[l.activeOptionIndex.value];l.select(v.dataRef.value)}l.mode.value===0&&(l.closeListbox(),sn(()=>{var v;return(v=de(l.buttonRef))==null?void 0:v.focus({preventScroll:!0})}));break;case kt(l.orientation.value,{vertical:at.ArrowDown,horizontal:at.ArrowRight}):return h.preventDefault(),h.stopPropagation(),l.goToOption(Ct.Next);case kt(l.orientation.value,{vertical:at.ArrowUp,horizontal:at.ArrowLeft}):return h.preventDefault(),h.stopPropagation(),l.goToOption(Ct.Previous);case at.Home:case at.PageUp:return h.preventDefault(),h.stopPropagation(),l.goToOption(Ct.First);case at.End:case at.PageDown:return h.preventDefault(),h.stopPropagation(),l.goToOption(Ct.Last);case at.Escape:h.preventDefault(),h.stopPropagation(),l.closeListbox(),sn(()=>{var v;return(v=de(l.buttonRef))==null?void 0:v.focus({preventScroll:!0})});break;case at.Tab:h.preventDefault(),h.stopPropagation();break;default:h.key.length===1&&(l.search(h.key),a.value=setTimeout(()=>l.clearSearch(),350));break}}let d=vi(),p=fe(()=>d!==null?(d.value&Lt.Open)===Lt.Open:l.listboxState.value===0);return()=>{var h,v;let y={open:l.listboxState.value===0},{...b}=e,S={"aria-activedescendant":l.activeOptionIndex.value===null||(h=l.options.value[l.activeOptionIndex.value])==null?void 0:h.id,"aria-multiselectable":l.mode.value===1?!0:void 0,"aria-labelledby":(v=de(l.buttonRef))==null?void 0:v.id,"aria-orientation":l.orientation.value,id:i,onKeydown:c,role:"listbox",tabIndex:0,ref:l.optionsRef};return xt({ourProps:S,theirProps:b,slot:y,attrs:t,slots:n,features:ar.RenderStrategy|ar.Static,visible:p.value,name:"ListboxOptions"})}}}),wv=ge({name:"ListboxOption",props:{as:{type:[Object,String],default:"li"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1},id:{type:String,default:null}},setup(e,{slots:t,attrs:n,expose:r}){var o;let i=(o=e.id)!=null?o:`headlessui-listbox-option-${qt()}`,l=Ja("ListboxOption"),a=$e(null);r({el:a,$el:a});let c=fe(()=>l.activeOptionIndex.value!==null?l.options.value[l.activeOptionIndex.value].id===i:!1),d=fe(()=>kt(l.mode.value,{0:()=>l.compare(He(l.value.value),He(e.value)),1:()=>He(l.value.value).some(E=>l.compare(He(E),He(e.value)))})),p=fe(()=>kt(l.mode.value,{1:()=>{var E;let O=He(l.value.value);return((E=l.options.value.find($=>O.some(P=>l.compare(He(P),He($.dataRef.value)))))==null?void 0:E.id)===i},0:()=>d.value})),h=KH(a),v=fe(()=>({disabled:e.disabled,value:e.value,get textValue(){return h()},domRef:a}));wt(()=>l.registerOption(i,v)),en(()=>l.unregisterOption(i)),wt(()=>{Ut([l.listboxState,d],()=>{l.listboxState.value===0&&d.value&&kt(l.mode.value,{1:()=>{p.value&&l.goToOption(Ct.Specific,i)},0:()=>{l.goToOption(Ct.Specific,i)}})},{immediate:!0})}),Vt(()=>{l.listboxState.value===0&&c.value&&l.activationTrigger.value!==0&&sn(()=>{var E,O;return(O=(E=de(a))==null?void 0:E.scrollIntoView)==null?void 0:O.call(E,{block:"nearest"})})});function y(E){if(e.disabled)return E.preventDefault();l.select(e.value),l.mode.value===0&&(l.closeListbox(),sn(()=>{var O;return(O=de(l.buttonRef))==null?void 0:O.focus({preventScroll:!0})}))}function b(){if(e.disabled)return l.goToOption(Ct.Nothing);l.goToOption(Ct.Specific,i)}let S=oT();function T(E){S.update(E)}function C(E){S.wasMoved(E)&&(e.disabled||c.value||l.goToOption(Ct.Specific,i,0))}function w(E){S.wasMoved(E)&&(e.disabled||c.value&&l.goToOption(Ct.Nothing))}return()=>{let{disabled:E}=e,O={active:c.value,selected:d.value,disabled:E},{value:$,disabled:P,...R}=e,k={id:i,ref:a,role:"option",tabIndex:E===!0?void 0:-1,"aria-disabled":E===!0?!0:void 0,"aria-selected":d.value,disabled:void 0,onClick:y,onFocus:b,onPointerenter:T,onMouseenter:T,onPointermove:C,onMousemove:C,onPointerleave:w,onMouseleave:w};return xt({ourProps:k,theirProps:R,slot:O,attrs:n,slots:t,name:"ListboxOption"})}}});var QH=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(QH||{});let kT=Symbol("PopoverContext");function cf(e){let t=Ft(kT,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <${LT.name} /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,cf),n}return t}let IT=Symbol("PopoverGroupContext");function PT(){return Ft(IT,null)}let RT=Symbol("PopoverPanelContext");function ez(){return Ft(RT,null)}let LT=ge({name:"Popover",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:n,expose:r}){var o;let i=$e(null);r({el:i,$el:i});let l=$e(1),a=$e(null),c=$e(null),d=$e(null),p=$e(null),h=fe(()=>Kr(i)),v=fe(()=>{var $,P;if(!de(a)||!de(p))return!1;for(let X of document.querySelectorAll("body > *"))if(Number(X==null?void 0:X.contains(de(a)))^Number(X==null?void 0:X.contains(de(p))))return!0;let R=of(),k=R.indexOf(de(a)),W=(k+R.length-1)%R.length,U=(k+1)%R.length,j=R[W],G=R[U];return!(($=de(p))!=null&&$.contains(j))&&!((P=de(p))!=null&&P.contains(G))}),y={popoverState:l,buttonId:$e(null),panelId:$e(null),panel:p,button:a,isPortalled:v,beforePanelSentinel:c,afterPanelSentinel:d,togglePopover(){l.value=kt(l.value,{0:1,1:0})},closePopover(){l.value!==1&&(l.value=1)},close($){y.closePopover();let P=$?$ instanceof HTMLElement?$:$.value instanceof HTMLElement?de($):de(y.button):de(y.button);P==null||P.focus()}};Qt(kT,y),uf(fe(()=>kt(l.value,{0:Lt.Open,1:Lt.Closed})));let b={buttonId:y.buttonId,panelId:y.panelId,close(){y.closePopover()}},S=PT(),T=S==null?void 0:S.registerPopover,[C,w]=CT(),E=wT({mainTreeNodeRef:S==null?void 0:S.mainTreeNodeRef,portals:C,defaultContainers:[a,p]});function O(){var $,P,R,k;return(k=S==null?void 0:S.isFocusWithinPopoverGroup())!=null?k:(($=h.value)==null?void 0:$.activeElement)&&(((P=de(a))==null?void 0:P.contains(h.value.activeElement))||((R=de(p))==null?void 0:R.contains(h.value.activeElement)))}return Vt(()=>T==null?void 0:T(b)),mv((o=h.value)==null?void 0:o.defaultView,"focus",$=>{var P,R;$.target!==window&&$.target instanceof HTMLElement&&l.value===0&&(O()||a&&p&&(E.contains($.target)||(P=de(y.beforePanelSentinel))!=null&&P.contains($.target)||(R=de(y.afterPanelSentinel))!=null&&R.contains($.target)||y.closePopover()))},!0),lf(E.resolveContainers,($,P)=>{var R;y.closePopover(),dv(P,sf.Loose)||($.preventDefault(),(R=de(a))==null||R.focus())},fe(()=>l.value===0)),()=>{let $={open:l.value===0,close:y.close};return pt(Me,[pt(w,{},()=>xt({theirProps:{...e,...n},ourProps:{ref:i},slot:$,slots:t,attrs:n,name:"Popover"})),pt(E.MainTreeNode)])}}}),tz=ge({name:"PopoverButton",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1},id:{type:String,default:null}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:r}){var o;let i=(o=e.id)!=null?o:`headlessui-popover-button-${qt()}`,l=cf("PopoverButton"),a=fe(()=>Kr(l.button));r({el:l.button,$el:l.button}),wt(()=>{l.buttonId.value=i}),en(()=>{l.buttonId.value=null});let c=PT(),d=c==null?void 0:c.closeOthers,p=ez(),h=fe(()=>p===null?!1:p.value===l.panelId.value),v=$e(null),y=`headlessui-focus-sentinel-${qt()}`;h.value||Vt(()=>{l.button.value=de(v)});let b=af(fe(()=>({as:e.as,type:t.type})),v);function S($){var P,R,k,W,U;if(h.value){if(l.popoverState.value===1)return;switch($.key){case at.Space:case at.Enter:$.preventDefault(),(R=(P=$.target).click)==null||R.call(P),l.closePopover(),(k=de(l.button))==null||k.focus();break}}else switch($.key){case at.Space:case at.Enter:$.preventDefault(),$.stopPropagation(),l.popoverState.value===1&&(d==null||d(l.buttonId.value)),l.togglePopover();break;case at.Escape:if(l.popoverState.value!==0)return d==null?void 0:d(l.buttonId.value);if(!de(l.button)||(W=a.value)!=null&&W.activeElement&&!((U=de(l.button))!=null&&U.contains(a.value.activeElement)))return;$.preventDefault(),$.stopPropagation(),l.closePopover();break}}function T($){h.value||$.key===at.Space&&$.preventDefault()}function C($){var P,R;e.disabled||(h.value?(l.closePopover(),(P=de(l.button))==null||P.focus()):($.preventDefault(),$.stopPropagation(),l.popoverState.value===1&&(d==null||d(l.buttonId.value)),l.togglePopover(),(R=de(l.button))==null||R.focus()))}function w($){$.preventDefault(),$.stopPropagation()}let E=gv();function O(){let $=de(l.panel);if(!$)return;function P(){kt(E.value,{[yr.Forwards]:()=>to($,Mn.First),[yr.Backwards]:()=>to($,Mn.Last)})===Ca.Error&&to(of().filter(R=>R.dataset.headlessuiFocusGuard!=="true"),kt(E.value,{[yr.Forwards]:Mn.Next,[yr.Backwards]:Mn.Previous}),{relativeTo:de(l.button)})}P()}return()=>{let $=l.popoverState.value===0,P={open:$},{...R}=e,k=h.value?{ref:v,type:b.value,onKeydown:S,onClick:C}:{ref:v,id:i,type:b.value,"aria-expanded":l.popoverState.value===0,"aria-controls":de(l.panel)?l.panelId.value:void 0,disabled:e.disabled?!0:void 0,onKeydown:S,onKeyup:T,onClick:C,onMousedown:w};return pt(Me,[xt({ourProps:k,theirProps:{...t,...R},slot:P,attrs:t,slots:n,name:"PopoverButton"}),$&&!h.value&&l.isPortalled.value&&pt(xo,{id:y,features:io.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:O})])}}});ge({name:"PopoverOverlay",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0}},setup(e,{attrs:t,slots:n}){let r=cf("PopoverOverlay"),o=`headlessui-popover-overlay-${qt()}`,i=vi(),l=fe(()=>i!==null?(i.value&Lt.Open)===Lt.Open:r.popoverState.value===0);function a(){r.closePopover()}return()=>{let c={open:r.popoverState.value===0};return xt({ourProps:{id:o,"aria-hidden":!0,onClick:a},theirProps:e,slot:c,attrs:t,slots:n,features:ar.RenderStrategy|ar.Static,visible:l.value,name:"PopoverOverlay"})}}});let nz=ge({name:"PopoverPanel",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},focus:{type:Boolean,default:!1},id:{type:String,default:null}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:r}){var o;let i=(o=e.id)!=null?o:`headlessui-popover-panel-${qt()}`,{focus:l}=e,a=cf("PopoverPanel"),c=fe(()=>Kr(a.panel)),d=`headlessui-focus-sentinel-before-${qt()}`,p=`headlessui-focus-sentinel-after-${qt()}`;r({el:a.panel,$el:a.panel}),wt(()=>{a.panelId.value=i}),en(()=>{a.panelId.value=null}),Qt(RT,a.panelId),Vt(()=>{var w,E;if(!l||a.popoverState.value!==0||!a.panel)return;let O=(w=c.value)==null?void 0:w.activeElement;(E=de(a.panel))!=null&&E.contains(O)||to(de(a.panel),Mn.First)});let h=vi(),v=fe(()=>h!==null?(h.value&Lt.Open)===Lt.Open:a.popoverState.value===0);function y(w){var E,O;switch(w.key){case at.Escape:if(a.popoverState.value!==0||!de(a.panel)||c.value&&!((E=de(a.panel))!=null&&E.contains(c.value.activeElement)))return;w.preventDefault(),w.stopPropagation(),a.closePopover(),(O=de(a.button))==null||O.focus();break}}function b(w){var E,O,$,P,R;let k=w.relatedTarget;k&&de(a.panel)&&((E=de(a.panel))!=null&&E.contains(k)||(a.closePopover(),(($=(O=de(a.beforePanelSentinel))==null?void 0:O.contains)!=null&&$.call(O,k)||(R=(P=de(a.afterPanelSentinel))==null?void 0:P.contains)!=null&&R.call(P,k))&&k.focus({preventScroll:!0})))}let S=gv();function T(){let w=de(a.panel);if(!w)return;function E(){kt(S.value,{[yr.Forwards]:()=>{var O;to(w,Mn.First)===Ca.Error&&((O=de(a.afterPanelSentinel))==null||O.focus())},[yr.Backwards]:()=>{var O;(O=de(a.button))==null||O.focus({preventScroll:!0})}})}E()}function C(){let w=de(a.panel);if(!w)return;function E(){kt(S.value,{[yr.Forwards]:()=>{let O=de(a.button),$=de(a.panel);if(!O)return;let P=of(),R=P.indexOf(O),k=P.slice(0,R+1),W=[...P.slice(R+1),...k];for(let U of W.slice())if(U.dataset.headlessuiFocusGuard==="true"||$!=null&&$.contains(U)){let j=W.indexOf(U);j!==-1&&W.splice(j,1)}to(W,Mn.First,{sorted:!1})},[yr.Backwards]:()=>{var O;to(w,Mn.Previous)===Ca.Error&&((O=de(a.button))==null||O.focus())}})}E()}return()=>{let w={open:a.popoverState.value===0,close:a.close},{focus:E,...O}=e,$={ref:a.panel,id:i,onKeydown:y,onFocusout:l&&a.popoverState.value===0?b:void 0,tabIndex:-1};return xt({ourProps:$,theirProps:{...t,...O},attrs:t,slot:w,slots:{...n,default:(...P)=>{var R;return[pt(Me,[v.value&&a.isPortalled.value&&pt(xo,{id:d,ref:a.beforePanelSentinel,features:io.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:T}),(R=n.default)==null?void 0:R.call(n,...P),v.value&&a.isPortalled.value&&pt(xo,{id:p,ref:a.afterPanelSentinel,features:io.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:C})])]}},features:ar.RenderStrategy|ar.Static,visible:v.value,name:"PopoverPanel"})}}});ge({name:"PopoverGroup",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"}},setup(e,{attrs:t,slots:n,expose:r}){let o=$e(null),i=gd([]),l=fe(()=>Kr(o)),a=LH();r({el:o,$el:o});function c(v){let y=i.value.indexOf(v);y!==-1&&i.value.splice(y,1)}function d(v){return i.value.push(v),()=>{c(v)}}function p(){var v;let y=l.value;if(!y)return!1;let b=y.activeElement;return(v=de(o))!=null&&v.contains(b)?!0:i.value.some(S=>{var T,C;return((T=y.getElementById(S.buttonId.value))==null?void 0:T.contains(b))||((C=y.getElementById(S.panelId.value))==null?void 0:C.contains(b))})}function h(v){for(let y of i.value)y.buttonId.value!==v&&y.close()}return Qt(IT,{registerPopover:d,unregisterPopover:c,isFocusWithinPopoverGroup:p,closeOthers:h,mainTreeNodeRef:a.mainTreeNodeRef}),()=>pt(Me,[xt({ourProps:{ref:o},theirProps:{...e,...t},slot:{},attrs:t,slots:n,name:"PopoverGroup"}),pt(a.MainTreeNode)])}});let FT=Symbol("LabelContext");function NT(){let e=Ft(FT,null);if(e===null){let t=new Error("You used a <Label /> component, but it is not inside a parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,NT),t}return e}function rz({slot:e={},name:t="Label",props:n={}}={}){let r=$e([]);function o(i){return r.value.push(i),()=>{let l=r.value.indexOf(i);l!==-1&&r.value.splice(l,1)}}return Qt(FT,{register:o,slot:e,name:t,props:n}),fe(()=>r.value.length>0?r.value.join(" "):void 0)}let oz=ge({name:"Label",props:{as:{type:[Object,String],default:"label"},passive:{type:[Boolean],default:!1},id:{type:String,default:null}},setup(e,{slots:t,attrs:n}){var r;let o=(r=e.id)!=null?r:`headlessui-label-${qt()}`,i=NT();return wt(()=>en(i.register(o))),()=>{let{name:l="Label",slot:a={},props:c={}}=i,{passive:d,...p}=e,h={...Object.entries(c).reduce((v,[y,b])=>Object.assign(v,{[y]:vn(b)}),{}),id:o};return d&&(delete h.onClick,delete h.htmlFor,delete p.onClick),xt({ourProps:h,theirProps:p,slot:a,attrs:n,slots:t,name:l})}}}),MT=Symbol("GroupContext"),sz=ge({name:"SwitchGroup",props:{as:{type:[Object,String],default:"template"}},setup(e,{slots:t,attrs:n}){let r=$e(null),o=rz({name:"SwitchLabel",props:{htmlFor:fe(()=>{var l;return(l=r.value)==null?void 0:l.id}),onClick(l){r.value&&(l.currentTarget.tagName==="LABEL"&&l.preventDefault(),r.value.click(),r.value.focus({preventScroll:!0}))}}}),i=xT({name:"SwitchDescription"});return Qt(MT,{switchRef:r,labelledby:o,describedby:i}),()=>xt({theirProps:e,ourProps:{},slot:{},slots:t,attrs:n,name:"SwitchGroup"})}}),DT=ge({name:"Switch",emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:"button"},modelValue:{type:Boolean,default:void 0},defaultChecked:{type:Boolean,optional:!0},form:{type:String,optional:!0},name:{type:String,optional:!0},value:{type:String,optional:!0},id:{type:String,default:null},disabled:{type:Boolean,default:!1},tabIndex:{type:Number,default:0}},inheritAttrs:!1,setup(e,{emit:t,attrs:n,slots:r,expose:o}){var i;let l=(i=e.id)!=null?i:`headlessui-switch-${qt()}`,a=Ft(MT,null),[c,d]=uv(fe(()=>e.modelValue),w=>t("update:modelValue",w),fe(()=>e.defaultChecked));function p(){d(!c.value)}let h=$e(null),v=a===null?h:a.switchRef,y=af(fe(()=>({as:e.as,type:n.type})),v);o({el:v,$el:v});function b(w){w.preventDefault(),p()}function S(w){w.key===at.Space?(w.preventDefault(),p()):w.key===at.Enter&&mH(w.currentTarget)}function T(w){w.preventDefault()}let C=fe(()=>{var w,E;return(E=(w=de(v))==null?void 0:w.closest)==null?void 0:E.call(w,"form")});return wt(()=>{Ut([C],()=>{if(!C.value||e.defaultChecked===void 0)return;function w(){d(e.defaultChecked)}return C.value.addEventListener("reset",w),()=>{var E;(E=C.value)==null||E.removeEventListener("reset",w)}},{immediate:!0})}),()=>{let{name:w,value:E,form:O,tabIndex:$,...P}=e,R={checked:c.value},k={id:l,ref:v,role:"switch",type:y.value,tabIndex:$===-1?0:$,"aria-checked":c.value,"aria-labelledby":a==null?void 0:a.labelledby.value,"aria-describedby":a==null?void 0:a.describedby.value,onClick:b,onKeyup:S,onKeypress:T};return pt(Me,[w!=null&&c.value!=null?pt(xo,pv({features:io.Hidden,as:"input",type:"checkbox",hidden:!0,readOnly:!0,checked:c.value,form:O,disabled:P.disabled,name:w,value:E})):null,xt({ourProps:k,theirProps:{...n,...gi(P,["modelValue","defaultChecked"])},slot:R,attrs:n,slots:r,name:"Switch"})])}}}),iz=oz;function lz(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function lh(e,...t){e&&t.length>0&&e.classList.add(...t)}function dc(e,...t){e&&t.length>0&&e.classList.remove(...t)}var dm=(e=>(e.Finished="finished",e.Cancelled="cancelled",e))(dm||{});function az(e,t){let n=xs();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:o}=getComputedStyle(e),[i,l]=[r,o].map(a=>{let[c=0]=a.split(",").filter(Boolean).map(d=>d.includes("ms")?parseFloat(d):parseFloat(d)*1e3).sort((d,p)=>p-d);return c});return i!==0?n.setTimeout(()=>t("finished"),i+l):t("finished"),n.add(()=>t("cancelled")),n.dispose}function _b(e,t,n,r,o,i){let l=xs(),a=i!==void 0?lz(i):()=>{};return dc(e,...o),lh(e,...t,...n),l.nextFrame(()=>{dc(e,...n),lh(e,...r),l.add(az(e,c=>(dc(e,...r,...t),lh(e,...o),a(c))))}),l.add(()=>dc(e,...t,...n,...r,...o)),l.add(()=>a("cancelled")),l.dispose}function Hs(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let Sv=Symbol("TransitionContext");var uz=(e=>(e.Visible="visible",e.Hidden="hidden",e))(uz||{});function cz(){return Ft(Sv,null)!==null}function dz(){let e=Ft(Sv,null);if(e===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return e}function fz(){let e=Ft(Ev,null);if(e===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return e}let Ev=Symbol("NestingContext");function df(e){return"children"in e?df(e.children):e.value.filter(({state:t})=>t==="visible").length>0}function UT(e){let t=$e([]),n=$e(!1);wt(()=>n.value=!0),en(()=>n.value=!1);function r(i,l=gs.Hidden){let a=t.value.findIndex(({id:c})=>c===i);a!==-1&&(kt(l,{[gs.Unmount](){t.value.splice(a,1)},[gs.Hidden](){t.value[a].state="hidden"}}),!df(t)&&n.value&&(e==null||e()))}function o(i){let l=t.value.find(({id:a})=>a===i);return l?l.state!=="visible"&&(l.state="visible"):t.value.push({id:i,state:"visible"}),()=>r(i,gs.Unmount)}return{children:t,register:o,unregister:r}}let BT=ar.RenderStrategy,jT=ge({props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(e,{emit:t,attrs:n,slots:r,expose:o}){let i=$e(0);function l(){i.value|=Lt.Opening,t("beforeEnter")}function a(){i.value&=~Lt.Opening,t("afterEnter")}function c(){i.value|=Lt.Closing,t("beforeLeave")}function d(){i.value&=~Lt.Closing,t("afterLeave")}if(!cz()&&fH())return()=>pt(VT,{...e,onBeforeEnter:l,onAfterEnter:a,onBeforeLeave:c,onAfterLeave:d},r);let p=$e(null),h=fe(()=>e.unmount?gs.Unmount:gs.Hidden);o({el:p,$el:p});let{show:v,appear:y}=dz(),{register:b,unregister:S}=fz(),T=$e(v.value?"visible":"hidden"),C={value:!0},w=qt(),E={value:!1},O=UT(()=>{!E.value&&T.value!=="hidden"&&(T.value="hidden",S(w),d())});wt(()=>{let X=b(w);en(X)}),Vt(()=>{if(h.value===gs.Hidden&&w){if(v.value&&T.value!=="visible"){T.value="visible";return}kt(T.value,{hidden:()=>S(w),visible:()=>b(w)})}});let $=Hs(e.enter),P=Hs(e.enterFrom),R=Hs(e.enterTo),k=Hs(e.entered),W=Hs(e.leave),U=Hs(e.leaveFrom),j=Hs(e.leaveTo);wt(()=>{Vt(()=>{if(T.value==="visible"){let X=de(p);if(X instanceof Comment&&X.data==="")throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}})});function G(X){let ne=C.value&&!y.value,xe=de(p);!xe||!(xe instanceof HTMLElement)||ne||(E.value=!0,v.value&&l(),v.value||c(),X(v.value?_b(xe,$,P,R,k,Ee=>{E.value=!1,Ee===dm.Finished&&a()}):_b(xe,W,U,j,k,Ee=>{E.value=!1,Ee===dm.Finished&&(df(O)||(T.value="hidden",S(w),d()))})))}return wt(()=>{Ut([v],(X,ne,xe)=>{G(xe),C.value=!1},{immediate:!0})}),Qt(Ev,O),uf(fe(()=>kt(T.value,{visible:Lt.Open,hidden:Lt.Closed})|i.value)),()=>{let{appear:X,show:ne,enter:xe,enterFrom:Ee,enterTo:ke,entered:Ie,leave:Qe,leaveFrom:ht,leaveTo:De,...Xe}=e,Q={ref:p},ce={...Xe,...y.value&&v.value&&Xa.isServer?{class:gt([n.class,Xe.class,...$,...P])}:{}};return xt({theirProps:ce,ourProps:Q,slot:{},slots:r,attrs:n,features:BT,visible:T.value==="visible",name:"TransitionChild"})}}}),pz=jT,VT=ge({inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(e,{emit:t,attrs:n,slots:r}){let o=vi(),i=fe(()=>e.show===null&&o!==null?(o.value&Lt.Open)===Lt.Open:e.show);Vt(()=>{if(![!0,!1].includes(i.value))throw new Error('A <Transition /> is used but it is missing a `:show="true | false"` prop.')});let l=$e(i.value?"visible":"hidden"),a=UT(()=>{l.value="hidden"}),c=$e(!0),d={show:i,appear:fe(()=>e.appear||!c.value)};return wt(()=>{Vt(()=>{c.value=!1,i.value?l.value="visible":df(a)||(l.value="hidden")})}),Qt(Ev,a),Qt(Sv,d),()=>{let p=gi(e,["show","appear","unmount","onBeforeEnter","onBeforeLeave","onAfterEnter","onAfterLeave"]),h={unmount:e.unmount};return xt({ourProps:{...h,as:"template"},theirProps:{},slot:{},slots:{...r,default:()=>[pt(pz,{onBeforeEnter:()=>t("beforeEnter"),onAfterEnter:()=>t("afterEnter"),onBeforeLeave:()=>t("beforeLeave"),onAfterLeave:()=>t("afterLeave"),...n,...h,...p},r.default)]},attrs:{},features:BT,visible:l.value==="visible",name:"Transition"})}}});const hz=ge({components:{Dialog:HH,DialogOverlay:zH,TransitionChild:jT,TransitionRoot:VT,XIcon:ml},props:{open:{type:Boolean,default:!0},size:{type:String,default:"small"}},methods:{close(){this.$emit("close")}}}),mz={class:"fixed inset-0 overflow-y-auto font-sans",style:{"z-index":"10000"}},gz={class:"flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0"},vz=m("span",{class:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true"},"",-1),yz={class:"hidden sm:block absolute top-0 right-0 pt-4 pr-4"},_z=m("span",{class:"sr-only"},"Close",-1);function bz(e,t,n,r,o,i){const l=q("DialogOverlay"),a=q("TransitionChild"),c=q("XIcon"),d=q("Dialog"),p=q("TransitionRoot");return I(),Ye(p,{as:"template",show:e.open},{default:_e(()=>[z(d,{as:"div",onClose:t[1]||(t[1]=h=>e.close()),"data-client":"podlove"},{default:_e(()=>[m("div",mz,[m("div",gz,[z(a,{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"ease-in duration-200","leave-from":"opacity-100","leave-to":"opacity-0"},{default:_e(()=>[z(l,{class:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"})]),_:1}),vz,z(a,{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95","enter-to":"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200","leave-from":"opacity-100 translate-y-0 sm:scale-100","leave-to":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"},{default:_e(()=>[m("div",{class:gt(["relative inline-block align-bottom bg-white rounded-lg px-4 pt-5 pb-4 text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:w-full sm:p-6",{"sm:max-w-sm":e.size==="small","sm:max-w-md":e.size==="medium"}])},[m("div",yz,[m("button",{type:"button",class:"bg-white rounded-md text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",onClick:t[0]||(t[0]=h=>e.close())},[_z,z(c,{class:"h-6 w-6","aria-hidden":"true"})])]),yn(e.$slots,"default")],2)]),_:3})])])]),_:3})]),_:3},8,["show"])}const Za=Le(hz,[["render",bz]]),wz=ge({props:{variant:{type:String,default:"default"},size:{type:String,default:"medium"},disabled:{type:Boolean,default:!1}},computed:{variantClass(){switch(this.variant){case"default":return"focus:outline-none text-gray-700 bg-white border border-gray-300 hover:bg-gray-50 focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 disabled:bg-gray-100";case"primary":return"focus:ring-offset-2 text-white focus:ring-indigo-500 bg-indigo-600 hover:bg-indigo-700 disabled:bg-indigo-300";case"primary-disabled":return"focus:ring-offset-2 text-white focus:ring-indigo-500 bg-indigo-600 opacity-50 cursor-not-allowed";case"secondary":return"focus:ring-offset-2 text-indigo-700 focus:ring-indigo-500 bg-indigo-100 hover:bg-indigo-200 disabled:bg-indigo-50";case"secondary-disabled":return"focus:ring-offset-2 text-indigo-700 focus:ring-indigo-500 bg-indigo-100 disabled:bg-indigo-50 opacity-50 cursor-not-allowed";case"danger":return"bg-red-600 text-white hover:bg-red-700 focus:ring-2 focus:ring-offset-2 focus:ring-red-500 disabled:bg-red-300"}},sizeClass(){switch(this.size){case"small":return"px-2.5 py-1.5 text-xs font-medium rounded ";case"medium":return"px-3 py-2 text-sm leading-4 font-medium rounded-md";case"large":return"px-6 py-3 text-base font-medium rounded-md"}}}}),Sz=["disabled"];function Ez(e,t,n,r,o,i){return I(),F("button",{type:"button",class:gt(["inline-flex items-center focus:outline-none focus:ring-2 border border-transparent shadow-sm whitespace-nowrap disabled:opacity-75",[e.variantClass,e.sizeClass]]),disabled:e.disabled},[yn(e.$slots,"default")],10,Sz)}const Pn=Le(wz,[["render",Ez]]),$z=ge({components:{PodloveButton:Pn,Modal:Za,PencilIcon:Jx,XIcon:ml},setup(){return{state:ut({poster:B.episode.poster,episodePoster:B.episode.episodePoster,asset:B.settings.imageAsset}),dispatch:Ze().dispatch}},data(){return{modalOpen:!1,inputValue:null}},computed:{posterStyle(){const e=this.state.episodePoster||this.state.poster;return e===null?{}:{"background-image":`url(${e})`}}},methods:{openModal(){this.modalOpen=!0},closeModal(){this.modalOpen=!1},selectImage(){this.dispatch(kM())},updatePoster(e){const t=Y.get(e,["target","value"],null);this.dispatch(bt({prop:"episode_poster",value:t}))}}}),xz={class:"border-gray-200 border-b pb-2 px-4 -mx-6 mb-4"},Tz={class:"text-lg leading-6 font-medium text-gray-900"},Cz={class:"relative"},Oz=["value"],Az=["title"],kz={class:"mt-2 text-sm text-gray-500"},Iz={class:"mt-2 flex justify-end"},Pz={class:"block text-sm font-medium text-gray-700"},Rz={key:0,class:"absolute z-10 left-0 top-0 w-full h-full flex justify-center items-center bg-white bg-opacity-40 hover:opacity-0 text-gray-500 opacity-100"},Lz={key:1,class:"absolute z-10 left-0 top-0 w-full h-full flex flex-col justify-center items-center bg-white bg-opacity-50 text-gray-500 opacity-0 hover:opacity-100"},Fz={class:"w-full text-center"},Nz={class:"w-full text-center"},Mz={class:"w-full text-center"};function Dz(e,t,n,r,o,i){const l=q("x-icon"),a=q("podlove-button"),c=q("modal"),d=q("pencil-icon");return I(),F("div",null,[z(c,{size:"medium",open:e.modalOpen,onClose:t[3]||(t[3]=p=>e.closeModal())},{default:_e(()=>[m("div",xz,[m("h3",Tz,L(e.__("Episode Poster","podlove-podcasting-plugin-for-wordpress")),1)]),m("div",Cz,[m("input",{name:"episode-poster",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md pr-8",value:e.state.episodePoster,onChange:t[0]||(t[0]=p=>e.updatePoster(p))},null,40,Oz),m("button",{class:"absolute right-2 top-1/2 -mt-3 text-gray-400 hover:text-gray-700",title:e.__("Clear Input","podlove-podcasting-plugin-for-wordpress"),onClick:t[1]||(t[1]=p=>e.updatePoster(null))},[z(l,{class:"w-6 h-6"})],8,Az)]),m("p",kz,L(e.__("Enter URL or select image from media library. Apple/iTunes recommends 3000 x 3000 pixel JPG or PNG","podlove-podcasting-plugin-for-wordpress")),1),m("p",Iz,[z(a,{variant:"primary",onClick:t[2]||(t[2]=p=>e.closeModal())},{default:_e(()=>[Be(L(e.__("Use this URL","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})])]),_:1},8,["open"]),m("label",Pz,L(e.__("Poster","podlove-podcasting-plugin-for-wordpress")),1),m("div",{class:"border shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block relative w-44 h-44 sm:text-sm border-gray-300 rounded-md mt-1 overflow-hidden bg-cover bg-no-repeat bg-center",style:oo(e.posterStyle)},[e.state.asset==="manual"?(I(),F("div",Rz,[z(d,{class:"h-6 w-6","aria-hidden":"true"})])):Te("",!0),e.state.asset==="manual"?(I(),F("div",Lz,[z(a,{onClick:t[4]||(t[4]=p=>e.openModal()),class:"w-32 mb-2"},{default:_e(()=>[m("span",Fz,L(e.__("URL","podlove-podcasting-plugin-for-wordpress")),1)]),_:1}),z(a,{class:"w-32 text-center mb-2",onClick:t[5]||(t[5]=p=>e.selectImage())},{default:_e(()=>[m("span",Nz,L(e.__("Media","podlove-podcasting-plugin-for-wordpress")),1)]),_:1}),z(a,{variant:"danger",class:"w-32 text-center",disabled:e.state.episodePoster===null,onClick:t[6]||(t[6]=p=>e.updatePoster(null))},{default:_e(()=>[m("span",Mz,L(e.__("Reset","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["disabled"])])):Te("",!0)],4)])}const Uz=Le($z,[["render",Dz]]),Bz=ge({components:{Module:In},setup(){return{state:ut({number:B.episode.number}),dispatch:Ze().dispatch}},methods:{updateNumber(e){this.dispatch(bt({prop:"number",value:e.target.value}))}}}),jz={for:"episode-number",class:"block text-sm font-medium text-gray-700"},Vz={class:"mt-1 mb-1"},Hz=["value"],zz={class:"mt-2 text-sm text-gray-500"};function Wz(e,t,n,r,o,i){return I(),F("div",null,[m("label",jz,L(e.__("Number","podlove-podcasting-plugin-for-wordpress")),1),m("div",Vz,[m("input",{name:"episode-number",type:"number",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",value:e.state.number,onInput:t[0]||(t[0]=l=>e.updateNumber(l))},null,40,Hz)]),m("p",zz,L(e.__("An episode number (1, 2, 3 etc.)","podlove-podcasting-plugin-for-wordpress")),1)])}const qz=Le(Bz,[["render",Wz]]),Kz=ge({setup(){return{state:ut({explicit:B.episode.explicit}),dispatch:Ze().dispatch}},methods:{updateExplicit(e){this.dispatch(bt({prop:"explicit",value:e.target.checked}))}}}),Gz={class:"relative flex items-start"},Xz={class:"flex items-center h-5"},Yz=["checked"],Jz={class:"ml-3 text-sm"},Zz={for:"explicit-content",class:"font-medium text-gray-700"},Qz={class:"text-gray-500"};function eW(e,t,n,r,o,i){return I(),F("div",Gz,[m("div",Xz,[m("input",{id:"explicit-content",type:"checkbox",class:"focus:ring-indigo-500 h-4 w-4 text-indigo-600 border-gray-300 rounded",checked:e.state.explicit,onInput:t[0]||(t[0]=l=>e.updateExplicit(l))},null,40,Yz)]),m("div",Jz,[m("label",Zz,L(e.state.explicit?e.__("Explicit Content!","podlove-podcasting-plugin-for-wordpress"):e.__("Explicit Content?","podlove-podcasting-plugin-for-wordpress")),1),m("p",Qz,L(e.__("For example, profanity or content that may not be suitable for children","podlove-podcasting-plugin-for-wordpress")),1)])])}const tW=Le(Kz,[["render",eW]]),nW=ge({components:{Module:In},setup(){return{state:ut({title:B.episode.title,post_title:B.post.title}),dispatch:Ze().dispatch}},methods:{updateTitle(e){this.dispatch(bt({prop:"title",value:e.target.value}))}}}),rW={for:"episode-title",class:"block text-sm font-medium text-gray-700"},oW={class:"mt-1"},sW=["value","placeholder"],iW={class:"mt-2 text-sm text-gray-500"};function lW(e,t,n,r,o,i){return I(),F("div",null,[m("label",rW,L(e.__("Title","podlove-podcasting-plugin-for-wordpress")),1),m("div",oW,[m("input",{name:"episode-title",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",value:e.state.title,placeholder:e.state.post_title,onInput:t[0]||(t[0]=l=>e.updateTitle(l))},null,40,sW)]),m("p",iW,L(e.__("Clear, concise name for your episode. It is recommended to not include the podcast title, episode number, season number or date in this tag.","podlove-podcasting-plugin-for-wordpress")),1)])}const aW=Le(nW,[["render",lW]]),uW=ge({setup(){const e=ut({subtitle:B.episode.subtitle}),t=fe(()=>{var n;return 255-(((n=e==null?void 0:e.subtitle)==null?void 0:n.length)||"")});return{state:e,charactersLeft:t,dispatch:Ze().dispatch}},methods:{updateSubtitle(e){this.dispatch(bt({prop:"subtitle",value:e.target.value}))}}}),cW={for:"subtitle",class:"block text-sm font-medium text-gray-700"},dW={class:"mt-1"},fW=["value"],pW={class:"mt-2 text-sm text-gray-500 flex justify-between"};function hW(e,t,n,r,o,i){return I(),F("div",null,[m("label",cW,L(e.__("Subtitle","podlove-podcasting-plugin-for-wordpress")),1),m("div",dW,[m("textarea",{id:"subtitle",name:"subtitle",maxlength:"250",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 mt-1 block w-full sm:text-sm border border-gray-300 rounded-md resize-y",value:e.state.subtitle,onInput:t[0]||(t[0]=l=>e.updateSubtitle(l))},null,40,fW)]),m("p",pW,[m("span",null,L(e.__("Single sentence describing the episode.","podlove-podcasting-plugin-for-wordpress")),1),m("span",null,L(e.charactersLeft),1)])])}const mW=Le(uW,[["render",hW]]),gW=ge({setup(){const e=ut({summary:B.episode.summary}),t=fe(()=>{var n;return 4e3-(((n=e==null?void 0:e.summary)==null?void 0:n.length)||"")});return{state:e,charactersLeft:t,dispatch:Ze().dispatch}},methods:{updateSummary(e){this.dispatch(bt({prop:"summary",value:e.target.value}))}}}),vW={for:"summary",class:"block text-sm font-medium text-gray-700"},yW={class:"mt-1"},_W=["value"],bW={class:"mt-2 text-sm text-gray-500 flex justify-end"};function wW(e,t,n,r,o,i){return I(),F("div",null,[m("label",vW,L(e.__("Summary","podlove-podcasting-plugin-for-wordpress")),1),m("div",yW,[m("textarea",{id:"summary",name:"summary",maxlength:"4000",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 mt-1 block w-full sm:text-sm border border-gray-300 rounded-md resize-y",value:e.state.summary,onInput:t[0]||(t[0]=l=>e.updateSummary(l))},null,40,_W)]),m("p",bW,[m("span",null,L(e.charactersLeft),1)])])}const SW=Le(gW,[["render",wW]]),EW=ge({components:{Module:In},setup(){return{state:ut({type:B.episode.type}),dispatch:Ze().dispatch}},methods:{updateType(e){this.dispatch(bt({prop:"type",value:e.target.value}))}}}),$W={for:"episode-type",class:"block text-sm font-medium text-gray-700"},xW={class:"mt-1"},TW=["value"],CW={value:"full"},OW={value:"trailer"},AW={value:"bonus"},kW={class:"mt-2 text-sm text-gray-500"};function IW(e,t,n,r,o,i){return I(),F("div",null,[m("label",$W,L(e.__("Type","podlove-podcasting-plugin-for-wordpress")),1),m("div",xW,[m("select",{name:"episode-type",class:"block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm rounded-md",value:e.state.type,onInput:t[0]||(t[0]=l=>e.updateType(l))},[m("option",null,L(e.__("Please choose ...","podlove-podcasting-plugin-for-wordpress")),1),m("option",CW,L(e.__("full (complete content of an episode)","podlove-podcasting-plugin-for-wordpress")),1),m("option",OW,L(e.__("trailer (short, promotional piece of content that represents a preview of an episode)","podlove-podcasting-plugin-for-wordpress")),1),m("option",AW,L(e.__("bonus (extra content for an episode, for example behind the scenes information)","podlove-podcasting-plugin-for-wordpress")),1)],40,TW)]),m("p",kW,L(e.__("Episode type. May be used by podcast clients.","podlove-podcasting-plugin-for-wordpress")),1)])}const PW=Le(EW,[["render",IW]]),RW=ge({components:{Module:In,EpisodePoster:Uz,EpisodeNumber:qz,EpisodeContent:tW,EpisodeTitle:aW,EpisodeSubtitle:mW,EpisodeSummary:SW,EpisodeType:PW},setup(){return{state:ut({explicitContentEnabled:B.settings.enableEpisodeExplicit}),dispatch:Ze().dispatch}},created(){this.dispatch(Hd())}}),LW={class:"p-3"},FW={class:"flex justify-items-stretch mb-5"},NW={class:"mb-2 w-full"},MW={class:"flex mb-5"},DW={class:"mb-5"},UW={class:"mb-5"};function BW(e,t,n,r,o,i){const l=q("episode-poster"),a=q("episode-number"),c=q("episode-content"),d=q("episode-type"),p=q("episode-title"),h=q("episode-subtitle"),v=q("episode-summary"),y=q("module");return I(),Ye(y,{name:"description",title:e.__("Episode Description","podlove-podcasting-plugin-for-wordpress")},{default:_e(()=>[m("div",LW,[m("div",FW,[z(l,{class:"mr-5"}),m("div",NW,[m("div",MW,[z(a,{class:"w-full"}),e.state.explicitContentEnabled?(I(),Ye(c,{key:0,class:"ml-5 w-full"})):Te("",!0)]),z(d,{class:"w-full"})])]),m("div",DW,[z(p,{class:"w-full"})]),m("div",UW,[z(h,{class:"w-full"})]),m("div",null,[z(v,{class:"w-full"})])])]),_:1},8,["title"])}const jW=Le(RW,[["render",BW]]),VW=ge({data(){return{visible:!1}},props:{name:String},methods:{}}),HW=["data-tab"];function zW(e,t,n,r,o,i){return I(),F("div",{class:"hidden","data-tab":e.name},[yn(e.$slots,"default")],8,HW)}const HT=Le(VW,[["render",zW]]),WW=ge({data(){return{activeTab:"",tabs:[]}},props:{active:{type:String,default:null}},created(){var e,t;this.tabs=((t=(e=this.$slots).default)==null?void 0:t.call(e).map(n=>({name:Y.get(n,["props","name"]),title:Y.get(n,["props","title"])})))||[]},mounted(){this.active?this.toggleTab(this.active):this.toggleTab(Y.get(this.tabs,[0,"name"]))},methods:{toggleTab(e){this.activeTab=e,Array.from(this.$refs.tabs.children).forEach(t=>{t.dataset.tab===e?t.classList.remove("hidden"):t.classList.add("hidden")})}}}),qW={class:"block"},KW={class:"border-b border-gray-200"},GW={class:"-mb-px flex space-x-8 mx-2","aria-label":"Tabs"},XW=["onClick"],YW={ref:"tabs"};function JW(e,t,n,r,o,i){return I(),F("div",null,[m("div",qW,[m("div",KW,[m("nav",GW,[(I(!0),F(Me,null,Ot(e.tabs,l=>(I(),F("button",{onClick:a=>e.toggleTab(l.name),key:l.name,class:gt([l.name===e.activeTab?"border-indigo-500 text-indigo-600":"border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300","group inline-flex items-center py-4 px-1 border-b-2 font-medium text-sm"])},[m("span",null,L(l.title),1)],10,XW))),128))])])]),m("div",YW,[yn(e.$slots,"default")],512)])}const zT=Le(WW,[["render",JW]]),ZW=ge({components:{PodloveButton:Pn,PlusSmIcon:rf,BookmarkAltIcon:CV,UploadIcon:xV},setup(){return{state:ut({chapters:B.chapters.list,selected:B.chapters.selected,selectedIndex:B.chapters.selectedIndex,episodeDuration:B.episode.duration}),dispatch:Ze().dispatch}},computed:{selectedIndex(){return this.state.selectedIndex},episodeDuration(){return this.state.episodeDuration?Dt.fromString(this.state.episodeDuration).totalMs:0},chapters(){return this.state.chapters.reduce((e,t,n,r)=>{const o=Y.get(r,n+1),i=o===void 0;let l;i?l=this.episodeDuration?this.episodeDuration-(t.start||0):-1:l=(o.start||0)-(t.start||0);const a=l<=0?"Unknown":new Dt(l).prettyShort;return[...e,{index:n,title:t.title,start:t.start?new Dt(t.start).pretty:new Dt(0).pretty,image:t.image,duration:a}]},[])},hasChapterImages(){return this.chapters.reduce((e,t)=>e||!!t.image,!1)}},methods:{selectChapter(e){e===this.state.selectedIndex?this.dispatch(ms(null)):this.dispatch(ms(e))},updateChapter(e,t){const n=t.target.value;if(this.state.selectedIndex===null)return;let r;switch(e){case"start":r=Dt.fromString(n).totalMs;break;default:r=n}this.dispatch(_M({chapter:{[e]:r},index:this.state.selectedIndex}))},removeChapter(){this.dispatch(bM(this.state.selectedIndex))},async addChapter(){this.dispatch(wM()),this.dispatch(ms(this.state.chapters.length-1));const e=this.$refs.chaptersContainer;await sn(),e.scrollTo({top:e.scrollHeight-e.clientHeight,behavior:"smooth"})},formatTime(e){return new Dt(e).pretty},selectImage(){this.dispatch(xM())}}}),QW={key:0},eq={class:"md:flex p-2 sm:block"},tq={class:"w-full"},nq={class:"h-96 overflow-x-auto",ref:"chaptersContainer"},rq={class:"min-w-full divide-y divide-gray-200 mb-2"},oq={ref:"chapters"},sq=["onClick"],iq={key:0,class:"px-2 py-2 w-16"},lq=["src"],aq={class:"px-3 py-2 w-32 whitespace-nowrap text-sm font-medium text-gray-900 tabular-nums"},uq={class:"px-3 py-2 whitespace-nowrap text-sm text-gray-600"},cq={class:"px-3 py-2 whitespace-nowrap text-sm text-gray-600 text-right tabular-nums"},dq={key:0,class:"md:w-4/12 sm:w-full md:mx-4 md:my-2 mt-0"},fq={class:"mb-5 mt-2"},pq={for:"chapter-title",class:"block text-sm font-medium text-gray-700"},hq={class:"mt-1"},mq=["value"],gq={class:"mb-5"},vq={for:"chapter-href",class:"block text-sm font-medium text-gray-700"},yq={class:"text-xs"},_q={class:"mt-1"},bq=["value"],wq={class:"mb-5"},Sq={for:"chapter-start",class:"block text-sm font-medium text-gray-700"},Eq={class:"mt-1"},$q=["value"],xq={class:"mb-5"},Tq={for:"chapter-image",class:"block text-sm font-medium text-gray-700"},Cq={class:"text-xs"},Oq={class:"mt-1 relative"},Aq=["value"],kq=["title"],Iq={class:"mb-5 ml-1"},Pq={class:"mt-5 ml-5 pb-5"},Rq={key:1,class:"text-center h-96 flex items-center justify-center flex-col"},Lq={class:"mt-2 text-sm font-medium text-gray-900"},Fq={class:"mt-1 text-sm text-gray-500"},Nq={class:"mt-6"};function Mq(e,t,n,r,o,i){const l=q("upload-icon"),a=q("podlove-button"),c=q("plus-sm-icon"),d=q("bookmark-alt-icon");return e.chapters.length>0?(I(),F("div",QW,[m("div",eq,[m("div",tq,[m("div",nq,[m("table",rq,[m("tbody",oq,[(I(!0),F(Me,null,Ot(e.chapters,(p,h)=>(I(),F("tr",{onClick:v=>e.selectChapter(h),key:`chapter-${h}`,class:gt(["cursor-pointer",{"bg-indigo-100":e.selectedIndex===h,active:e.selectedIndex===h,"bg-white":h%2===0&&e.selectedIndex!==h,"bg-gray-50":h%2!==0&&e.selectedIndex!==h}])},[e.hasChapterImages?(I(),F("td",iq,[p!=null&&p.image?(I(),F("img",{key:0,class:"w-12 h-12 rounded",src:p==null?void 0:p.image},null,8,lq)):Te("",!0)])):Te("",!0),m("td",aq,L(p.start),1),m("td",uq,L(p.title),1),m("td",cq,L(p.duration),1)],10,sq))),128))],512)])],512)]),e.state.selected?(I(),F("div",dq,[m("div",fq,[m("label",pq,L(e.__("Title","podlove-podcasting-plugin-for-wordpress")),1),m("div",hq,[m("input",{name:"chapter-title",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",onChange:t[0]||(t[0]=p=>e.updateChapter("title",p)),value:e.state.selected.title},null,40,mq)])]),m("div",gq,[m("label",vq,[Be("Url "),m("span",yq,L(e.__("(optional)","podlove-podcasting-plugin-for-wordpress")),1)]),m("div",_q,[m("input",{name:"chapter-href",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",onChange:t[1]||(t[1]=p=>e.updateChapter("href",p)),value:e.state.selected.href},null,40,bq)])]),m("div",wq,[m("label",Sq,L(e.__("Start","podlove-podcasting-plugin-for-wordpress")),1),m("div",Eq,[m("input",{name:"chapter-title",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",onChange:t[2]||(t[2]=p=>e.updateChapter("start",p)),value:e.formatTime(e.state.selected.start)},null,40,$q)])]),m("div",xq,[m("label",Tq,[Be(L(e.__("Image","podlove-podcasting-plugin-for-wordpress"))+" ",1),m("span",Cq,L(e.__("(optional)","podlove-podcasting-plugin-for-wordpress")),1)]),m("div",Oq,[m("input",{name:"chapter-image",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",onChange:t[3]||(t[3]=p=>e.updateChapter("image",p)),value:e.state.selected.image},null,40,Aq),m("button",{onClick:t[4]||(t[4]=va(p=>e.selectImage(),["prevent"])),title:e.__("Select Chapter Image","podlove-podcasting-plugin-for-wordpress"),class:"absolute right-2 top-1/2 -mt-3 text-gray-400 hover:text-gray-700"},[z(l,{class:"w-6 h-6"})],8,kq)])]),m("div",Iq,[z(a,{variant:"danger",onClick:t[5]||(t[5]=p=>e.removeChapter())},{default:_e(()=>[Be(L(e.__("Delete Chapter","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})])])):Te("",!0)]),m("div",Pq,[z(a,{variant:"primary",onClick:t[6]||(t[6]=p=>e.addChapter())},{default:_e(()=>[z(c,{class:"-ml-0.5 mr-2 h-4 w-4","aria-hidden":"true"}),Be(" "+L(e.__("Add Chapter","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})])])):(I(),F("div",Rq,[z(d,{class:"mx-auto h-12 w-12 text-gray-400"}),m("h3",Lq,L(e.__("No chapters","podlove-podcasting-plugin-for-wordpress")),1),m("p",Fq,L(e.__("Get started by creating a new chapter.","podlove-podcasting-plugin-for-wordpress")),1),m("div",Nq,[z(a,{variant:"primary",onClick:t[7]||(t[7]=p=>e.addChapter()),class:"ml-1"},{default:_e(()=>[z(c,{class:"-ml-0.5 mr-2 h-4 w-4","aria-hidden":"true"}),Be(" "+L(e.__("Add Chapter","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})])]))}const Dq=Le(ZW,[["render",Mq]]);function fm(e,t,n){var r,o,i,l,a;t==null&&(t=100);function c(){var p=Date.now()-l;p<t&&p>=0?r=setTimeout(c,t-p):(r=null,n||(a=e.apply(i,o),i=o=null))}var d=function(){i=this,o=arguments,l=Date.now();var p=n&&!r;return r||(r=setTimeout(c,t)),p&&(a=e.apply(i,o),i=o=null),a};return d.clear=function(){r&&(clearTimeout(r),r=null)},d.flush=function(){r&&(a=e.apply(i,o),i=o=null,clearTimeout(r),r=null)},d}fm.debounce=fm;var ah=fm;function Uq(e,t,n){pn(e)?Ut(e,(r,o)=>{o==null||o.removeEventListener(t,n),r==null||r.addEventListener(t,n)}):wt(()=>{e.addEventListener(t,n)}),hi(()=>{var r;(r=vn(e))===null||r===void 0||r.removeEventListener(t,n)})}function Bq(e,t){const n="pointerdown";return typeof window>"u"||!window?void 0:Uq(window,n,o=>{const i=vn(e);i&&(i===o.target||o.composedPath().includes(i)||t(o))})}function jq(e,t,n){let r=null;const o=$e(!1);wt(()=>{(e.content!==void 0||n.value)&&(o.value=!0),r=new MutationObserver(i),r.observe(t.value,{childList:!0,subtree:!0})}),hi(()=>r.disconnect()),Ut(n,l=>{l?o.value=!0:o.value=!1});const i=()=>{e.content?o.value=!0:o.value=!1};return{hasContent:o}}function nl(e,t){var n=e.getBoundingClientRect(),r=1,o=1;return{width:n.width/r,height:n.height/o,top:n.top/o,right:n.right/r,bottom:n.bottom/o,left:n.left/r,x:n.left/r,y:n.top/o}}function po(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function $v(e){var t=po(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Oa(e){var t=po(e).Element;return e instanceof t||e instanceof Element}function Mr(e){var t=po(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function WT(e){if(typeof ShadowRoot>"u")return!1;var t=po(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Vq(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Hq(e){return e===po(e)||!Mr(e)?$v(e):Vq(e)}function To(e){return e?(e.nodeName||"").toLowerCase():null}function As(e){return((Oa(e)?e.ownerDocument:e.document)||window.document).documentElement}function xv(e){return nl(As(e)).left+$v(e).scrollLeft}function Go(e){return po(e).getComputedStyle(e)}function Tv(e){var t=Go(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function zq(e){var t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,r=t.height/e.offsetHeight||1;return n!==1||r!==1}function Wq(e,t,n){n===void 0&&(n=!1);var r=Mr(t);Mr(t)&&zq(t);var o=As(t),i=nl(e),l={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(r||!r&&!n)&&((To(t)!=="body"||Tv(o))&&(l=Hq(t)),Mr(t)?(a=nl(t),a.x+=t.clientLeft,a.y+=t.clientTop):o&&(a.x=xv(o))),{x:i.left+l.scrollLeft-a.x,y:i.top+l.scrollTop-a.y,width:i.width,height:i.height}}function Cv(e){var t=nl(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function ff(e){return To(e)==="html"?e:e.assignedSlot||e.parentNode||(WT(e)?e.host:null)||As(e)}function qT(e){return["html","body","#document"].indexOf(To(e))>=0?e.ownerDocument.body:Mr(e)&&Tv(e)?e:qT(ff(e))}function la(e,t){var n;t===void 0&&(t=[]);var r=qT(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=po(r),l=o?[i].concat(i.visualViewport||[],Tv(r)?r:[]):r,a=t.concat(l);return o?a:a.concat(la(ff(l)))}function qq(e){return["table","td","th"].indexOf(To(e))>=0}function bb(e){return!Mr(e)||Go(e).position==="fixed"?null:e.offsetParent}function Kq(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&Mr(e)){var r=Go(e);if(r.position==="fixed")return null}for(var o=ff(e);Mr(o)&&["html","body"].indexOf(To(o))<0;){var i=Go(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function Qa(e){for(var t=po(e),n=bb(e);n&&qq(n)&&Go(n).position==="static";)n=bb(n);return n&&(To(n)==="html"||To(n)==="body"&&Go(n).position==="static")?t:n||Kq(e)||t}var Dr="top",lo="bottom",ao="right",Ur="left",Ov="auto",eu=[Dr,lo,ao,Ur],rl="start",Aa="end",Gq="clippingParents",KT="viewport",jl="popper",Xq="reference",wb=eu.reduce(function(e,t){return e.concat([t+"-"+rl,t+"-"+Aa])},[]),GT=[].concat(eu,[Ov]).reduce(function(e,t){return e.concat([t,t+"-"+rl,t+"-"+Aa])},[]),Yq="beforeRead",Jq="read",Zq="afterRead",Qq="beforeMain",eK="main",tK="afterMain",nK="beforeWrite",rK="write",oK="afterWrite",sK=[Yq,Jq,Zq,Qq,eK,tK,nK,rK,oK];function iK(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var l=[].concat(i.requires||[],i.requiresIfExists||[]);l.forEach(function(a){if(!n.has(a)){var c=t.get(a);c&&o(c)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function lK(e){var t=iK(e);return sK.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function aK(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Eo(e){return e.split("-")[0]}function uK(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}function cK(e){var t=po(e),n=As(e),r=t.visualViewport,o=n.clientWidth,i=n.clientHeight,l=0,a=0;return r&&(o=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(l=r.offsetLeft,a=r.offsetTop)),{width:o,height:i,x:l+xv(e),y:a}}var _s=Math.max,ka=Math.min,fc=Math.round;function dK(e){var t,n=As(e),r=$v(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=_s(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),l=_s(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+xv(e),c=-r.scrollTop;return Go(o||n).direction==="rtl"&&(a+=_s(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:l,x:a,y:c}}function XT(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&WT(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function pm(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function fK(e){var t=nl(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function Sb(e,t){return t===KT?pm(cK(e)):Mr(t)?fK(t):pm(dK(As(e)))}function pK(e){var t=la(ff(e)),n=["absolute","fixed"].indexOf(Go(e).position)>=0,r=n&&Mr(e)?Qa(e):e;return Oa(r)?t.filter(function(o){return Oa(o)&&XT(o,r)&&To(o)!=="body"}):[]}function hK(e,t,n){var r=t==="clippingParents"?pK(e):[].concat(t),o=[].concat(r,[n]),i=o[0],l=o.reduce(function(a,c){var d=Sb(e,c);return a.top=_s(d.top,a.top),a.right=ka(d.right,a.right),a.bottom=ka(d.bottom,a.bottom),a.left=_s(d.left,a.left),a},Sb(e,i));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function ol(e){return e.split("-")[1]}function Av(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function YT(e){var t=e.reference,n=e.element,r=e.placement,o=r?Eo(r):null,i=r?ol(r):null,l=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,c;switch(o){case Dr:c={x:l,y:t.y-n.height};break;case lo:c={x:l,y:t.y+t.height};break;case ao:c={x:t.x+t.width,y:a};break;case Ur:c={x:t.x-n.width,y:a};break;default:c={x:t.x,y:t.y}}var d=o?Av(o):null;if(d!=null){var p=d==="y"?"height":"width";switch(i){case rl:c[d]=c[d]-(t[p]/2-n[p]/2);break;case Aa:c[d]=c[d]+(t[p]/2-n[p]/2);break}}return c}function JT(){return{top:0,right:0,bottom:0,left:0}}function ZT(e){return Object.assign({},JT(),e)}function QT(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}function kv(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.boundary,l=i===void 0?Gq:i,a=n.rootBoundary,c=a===void 0?KT:a,d=n.elementContext,p=d===void 0?jl:d,h=n.altBoundary,v=h===void 0?!1:h,y=n.padding,b=y===void 0?0:y,S=ZT(typeof b!="number"?b:QT(b,eu)),T=p===jl?Xq:jl,C=e.rects.popper,w=e.elements[v?T:p],E=hK(Oa(w)?w:w.contextElement||As(e.elements.popper),l,c),O=nl(e.elements.reference),$=YT({reference:O,element:C,strategy:"absolute",placement:o}),P=pm(Object.assign({},C,$)),R=p===jl?P:O,k={top:E.top-R.top+S.top,bottom:R.bottom-E.bottom+S.bottom,left:E.left-R.left+S.left,right:R.right-E.right+S.right},W=e.modifiersData.offset;if(p===jl&&W){var U=W[o];Object.keys(k).forEach(function(j){var G=[ao,lo].indexOf(j)>=0?1:-1,X=[Dr,lo].indexOf(j)>=0?"y":"x";k[j]+=U[X]*G})}return k}var Eb={placement:"bottom",modifiers:[],strategy:"absolute"};function $b(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function mK(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?Eb:o;return function(a,c,d){d===void 0&&(d=i);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},Eb,i),modifiersData:{},elements:{reference:a,popper:c},attributes:{},styles:{}},h=[],v=!1,y={state:p,setOptions:function(C){var w=typeof C=="function"?C(p.options):C;S(),p.options=Object.assign({},i,p.options,w),p.scrollParents={reference:Oa(a)?la(a):a.contextElement?la(a.contextElement):[],popper:la(c)};var E=lK(uK([].concat(r,p.options.modifiers)));return p.orderedModifiers=E.filter(function(O){return O.enabled}),b(),y.update()},forceUpdate:function(){if(!v){var C=p.elements,w=C.reference,E=C.popper;if($b(w,E)){p.rects={reference:Wq(w,Qa(E),p.options.strategy==="fixed"),popper:Cv(E)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(U){return p.modifiersData[U.name]=Object.assign({},U.data)});for(var O=0;O<p.orderedModifiers.length;O++){if(p.reset===!0){p.reset=!1,O=-1;continue}var $=p.orderedModifiers[O],P=$.fn,R=$.options,k=R===void 0?{}:R,W=$.name;typeof P=="function"&&(p=P({state:p,options:k,name:W,instance:y})||p)}}}},update:aK(function(){return new Promise(function(T){y.forceUpdate(),T(p)})}),destroy:function(){S(),v=!0}};if(!$b(a,c))return y;y.setOptions(d).then(function(T){!v&&d.onFirstUpdate&&d.onFirstUpdate(T)});function b(){p.orderedModifiers.forEach(function(T){var C=T.name,w=T.options,E=w===void 0?{}:w,O=T.effect;if(typeof O=="function"){var $=O({state:p,name:C,instance:y,options:E}),P=function(){};h.push($||P)}})}function S(){h.forEach(function(T){return T()}),h=[]}return y}}var pc={passive:!0};function gK(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,l=r.resize,a=l===void 0?!0:l,c=po(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&d.forEach(function(p){p.addEventListener("scroll",n.update,pc)}),a&&c.addEventListener("resize",n.update,pc),function(){i&&d.forEach(function(p){p.removeEventListener("scroll",n.update,pc)}),a&&c.removeEventListener("resize",n.update,pc)}}var vK={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:gK,data:{}};function yK(e){var t=e.state,n=e.name;t.modifiersData[n]=YT({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var _K={name:"popperOffsets",enabled:!0,phase:"read",fn:yK,data:{}},bK={top:"auto",right:"auto",bottom:"auto",left:"auto"};function wK(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:fc(fc(t*o)/o)||0,y:fc(fc(n*o)/o)||0}}function xb(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,l=e.offsets,a=e.position,c=e.gpuAcceleration,d=e.adaptive,p=e.roundOffsets,h=p===!0?wK(l):typeof p=="function"?p(l):l,v=h.x,y=v===void 0?0:v,b=h.y,S=b===void 0?0:b,T=l.hasOwnProperty("x"),C=l.hasOwnProperty("y"),w=Ur,E=Dr,O=window;if(d){var $=Qa(n),P="clientHeight",R="clientWidth";$===po(n)&&($=As(n),Go($).position!=="static"&&a==="absolute"&&(P="scrollHeight",R="scrollWidth")),$=$,(o===Dr||(o===Ur||o===ao)&&i===Aa)&&(E=lo,S-=$[P]-r.height,S*=c?1:-1),(o===Ur||(o===Dr||o===lo)&&i===Aa)&&(w=ao,y-=$[R]-r.width,y*=c?1:-1)}var k=Object.assign({position:a},d&&bK);if(c){var W;return Object.assign({},k,(W={},W[E]=C?"0":"",W[w]=T?"0":"",W.transform=(O.devicePixelRatio||1)<=1?"translate("+y+"px, "+S+"px)":"translate3d("+y+"px, "+S+"px, 0)",W))}return Object.assign({},k,(t={},t[E]=C?S+"px":"",t[w]=T?y+"px":"",t.transform="",t))}function SK(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,l=i===void 0?!0:i,a=n.roundOffsets,c=a===void 0?!0:a,d={placement:Eo(t.placement),variation:ol(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,xb(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,xb(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var EK={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:SK,data:{}};function $K(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!Mr(i)||!To(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(l){var a=o[l];a===!1?i.removeAttribute(l):i.setAttribute(l,a===!0?"":a)}))})}function xK(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},l=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=l.reduce(function(c,d){return c[d]="",c},{});!Mr(o)||!To(o)||(Object.assign(o.style,a),Object.keys(i).forEach(function(c){o.removeAttribute(c)}))})}}var TK={name:"applyStyles",enabled:!0,phase:"write",fn:$K,effect:xK,requires:["computeStyles"]},CK=[vK,_K,EK,TK],OK=mK({defaultModifiers:CK});function AK(e){return e==="x"?"y":"x"}function xc(e,t,n){return _s(e,ka(t,n))}function kK(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,l=n.altAxis,a=l===void 0?!1:l,c=n.boundary,d=n.rootBoundary,p=n.altBoundary,h=n.padding,v=n.tether,y=v===void 0?!0:v,b=n.tetherOffset,S=b===void 0?0:b,T=kv(t,{boundary:c,rootBoundary:d,padding:h,altBoundary:p}),C=Eo(t.placement),w=ol(t.placement),E=!w,O=Av(C),$=AK(O),P=t.modifiersData.popperOffsets,R=t.rects.reference,k=t.rects.popper,W=typeof S=="function"?S(Object.assign({},t.rects,{placement:t.placement})):S,U={x:0,y:0};if(P){if(i||a){var j=O==="y"?Dr:Ur,G=O==="y"?lo:ao,X=O==="y"?"height":"width",ne=P[O],xe=P[O]+T[j],Ee=P[O]-T[G],ke=y?-k[X]/2:0,Ie=w===rl?R[X]:k[X],Qe=w===rl?-k[X]:-R[X],ht=t.elements.arrow,De=y&&ht?Cv(ht):{width:0,height:0},Xe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:JT(),Q=Xe[j],ce=Xe[G],ve=xc(0,R[X],De[X]),Ce=E?R[X]/2-ke-ve-Q-W:Ie-ve-Q-W,We=E?-R[X]/2+ke+ve+ce+W:Qe+ve+ce+W,Ve=t.elements.arrow&&Qa(t.elements.arrow),rt=Ve?O==="y"?Ve.clientTop||0:Ve.clientLeft||0:0,wn=t.modifiersData.offset?t.modifiersData.offset[t.placement][O]:0,an=P[O]+Ce-wn-rt,M=P[O]+We-wn;if(i){var V=xc(y?ka(xe,an):xe,ne,y?_s(Ee,M):Ee);P[O]=V,U[O]=V-ne}if(a){var Z=O==="x"?Dr:Ur,ue=O==="x"?lo:ao,le=P[$],ye=le+T[Z],Oe=le-T[ue],we=xc(y?ka(ye,an):ye,le,y?_s(Oe,M):Oe);P[$]=we,U[$]=we-le}}t.modifiersData[r]=U}}var IK={name:"preventOverflow",enabled:!0,phase:"main",fn:kK,requiresIfExists:["offset"]},PK={left:"right",right:"left",bottom:"top",top:"bottom"};function Tc(e){return e.replace(/left|right|bottom|top/g,function(t){return PK[t]})}var RK={start:"end",end:"start"};function Tb(e){return e.replace(/start|end/g,function(t){return RK[t]})}function LK(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,l=n.padding,a=n.flipVariations,c=n.allowedAutoPlacements,d=c===void 0?GT:c,p=ol(r),h=p?a?wb:wb.filter(function(b){return ol(b)===p}):eu,v=h.filter(function(b){return d.indexOf(b)>=0});v.length===0&&(v=h);var y=v.reduce(function(b,S){return b[S]=kv(e,{placement:S,boundary:o,rootBoundary:i,padding:l})[Eo(S)],b},{});return Object.keys(y).sort(function(b,S){return y[b]-y[S]})}function FK(e){if(Eo(e)===Ov)return[];var t=Tc(e);return[Tb(e),t,Tb(t)]}function NK(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,l=n.altAxis,a=l===void 0?!0:l,c=n.fallbackPlacements,d=n.padding,p=n.boundary,h=n.rootBoundary,v=n.altBoundary,y=n.flipVariations,b=y===void 0?!0:y,S=n.allowedAutoPlacements,T=t.options.placement,C=Eo(T),w=C===T,E=c||(w||!b?[Tc(T)]:FK(T)),O=[T].concat(E).reduce(function(ce,ve){return ce.concat(Eo(ve)===Ov?LK(t,{placement:ve,boundary:p,rootBoundary:h,padding:d,flipVariations:b,allowedAutoPlacements:S}):ve)},[]),$=t.rects.reference,P=t.rects.popper,R=new Map,k=!0,W=O[0],U=0;U<O.length;U++){var j=O[U],G=Eo(j),X=ol(j)===rl,ne=[Dr,lo].indexOf(G)>=0,xe=ne?"width":"height",Ee=kv(t,{placement:j,boundary:p,rootBoundary:h,altBoundary:v,padding:d}),ke=ne?X?ao:Ur:X?lo:Dr;$[xe]>P[xe]&&(ke=Tc(ke));var Ie=Tc(ke),Qe=[];if(i&&Qe.push(Ee[G]<=0),a&&Qe.push(Ee[ke]<=0,Ee[Ie]<=0),Qe.every(function(ce){return ce})){W=j,k=!1;break}R.set(j,Qe)}if(k)for(var ht=b?3:1,De=function(ve){var Ce=O.find(function(We){var Ve=R.get(We);if(Ve)return Ve.slice(0,ve).every(function(rt){return rt})});if(Ce)return W=Ce,"break"},Xe=ht;Xe>0;Xe--){var Q=De(Xe);if(Q==="break")break}t.placement!==W&&(t.modifiersData[r]._skip=!0,t.placement=W,t.reset=!0)}}var MK={name:"flip",enabled:!0,phase:"main",fn:NK,requiresIfExists:["offset"],data:{_skip:!1}};function DK(e,t,n){var r=Eo(e),o=[Ur,Dr].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,l=i[0],a=i[1];return l=l||0,a=(a||0)*o,[Ur,ao].indexOf(r)>=0?{x:a,y:l}:{x:l,y:a}}function UK(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,l=GT.reduce(function(p,h){return p[h]=DK(h,t.rects,i),p},{}),a=l[t.placement],c=a.x,d=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=d),t.modifiersData[r]=l}var BK={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:UK},jK=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,ZT(typeof t!="number"?t:QT(t,eu))};function VK(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,l=n.modifiersData.popperOffsets,a=Eo(n.placement),c=Av(a),d=[Ur,ao].indexOf(a)>=0,p=d?"height":"width";if(!(!i||!l)){var h=jK(o.padding,n),v=Cv(i),y=c==="y"?Dr:Ur,b=c==="y"?lo:ao,S=n.rects.reference[p]+n.rects.reference[c]-l[c]-n.rects.popper[p],T=l[c]-n.rects.reference[c],C=Qa(i),w=C?c==="y"?C.clientHeight||0:C.clientWidth||0:0,E=S/2-T/2,O=h[y],$=w-v[p]-h[b],P=w/2-v[p]/2+E,R=xc(O,P,$),k=c;n.modifiersData[r]=(t={},t[k]=R,t.centerOffset=R-P,t)}}function HK(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||XT(t.elements.popper,o)&&(t.elements.arrow=o))}var zK={name:"arrow",enabled:!0,phase:"main",fn:VK,effect:HK,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};const uh=e=>parseInt(e,10);function WK({arrowPadding:e,emit:t,locked:n,offsetDistance:r,offsetSkid:o,placement:i,popperNode:l,triggerNode:a}){const c=Ts({isOpen:!1,popperInstance:null}),d=S=>{var T;(T=c.popperInstance)===null||T===void 0||T.setOptions(C=>({...C,modifiers:[...C.modifiers,{name:"eventListeners",enabled:S}]}))},p=()=>d(!0),h=()=>d(!1),v=()=>{c.isOpen&&(c.isOpen=!1,t("close:popper"))},y=()=>{c.isOpen||(c.isOpen=!0,t("open:popper"))};Ut([()=>c.isOpen,i],async([S])=>{S?(await b(),p()):h()});const b=async()=>{await sn(),c.popperInstance=OK(a.value,l.value,{placement:i.value,modifiers:[IK,MK,{name:"flip",enabled:!n.value},zK,{name:"arrow",options:{padding:uh(e.value)}},BK,{name:"offset",options:{offset:[uh(o.value),uh(r.value)]}}]}),c.popperInstance.update()};return hi(()=>{var S;(S=c.popperInstance)===null||S===void 0||S.destroy()}),{...Am(c),open:y,close:v}}const qK={id:"arrow","data-popper-arrow":""};function KK(e,t){return I(),F("div",qK)}function eC(e,t){t===void 0&&(t={});var n=t.insertAt;if(!(!e||typeof document>"u")){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",n==="top"&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}var GK=`61 `));let y=iT((l=h.props)!=null?l:{},c,p),b=Vr(h,y,!0);for(let S in y)S.startsWith("on")&&(b.props||(b.props={}),b.props[S]=y[S]);return b}return Array.isArray(d)&&d.length===1?d[0]:d}return pt(a,Object.assign({},c,p),{default:()=>d})}function sT(e){return e.flatMap(t=>t.type===Me?sT(t.children):[t])}function iT(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let o in r)o.startsWith("on")&&typeof r[o]=="function"?(n[o]!=null||(n[o]=[]),n[o].push(r[o])):t[o]=r[o];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(t,{[r](o,...i){let l=n[r];for(let a of l){if(o instanceof Event&&o.defaultPrevented)return;a(o,...i)}}});return t}function fv(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function gi(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function dH(e){return e==null?!1:typeof e.type=="string"||typeof e.type=="object"||typeof e.type=="function"}var lo=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(lo||{});let To=ge({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup(e,{slots:t,attrs:n}){return()=>{var r;let{features:o,...i}=e,l={"aria-hidden":(o&2)===2?!0:(r=i["aria-hidden"])!=null?r:void 0,hidden:(o&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(o&4)===4&&(o&2)!==2&&{display:"none"}}};return xt({ourProps:l,theirProps:i,slot:{},attrs:n,slots:t,name:"Hidden"})}}}),lT=Symbol("Context");var Lt=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Lt||{});function fH(){return vi()!==null}function vi(){return Ft(lT,null)}function cf(e){Qt(lT,e)}var at=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(at||{}),aT=(e=>(e[e.Left=0]="Left",e[e.Right=2]="Right",e))(aT||{});function pH(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let Ho=[];pH(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&Ho[0]!==t.target&&(Ho.unshift(t.target),Ho=Ho.filter(n=>n!=null&&n.isConnected),Ho.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function hH(e){throw new Error("Unexpected object: "+e)}var Ct=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(Ct||{});function im(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),o=r??-1;switch(e.focus){case 0:{for(let i=0;i<n.length;++i)if(!t.resolveDisabled(n[i],i,n))return i;return r}case 1:{o===-1&&(o=n.length);for(let i=o-1;i>=0;--i)if(!t.resolveDisabled(n[i],i,n))return i;return r}case 2:{for(let i=o+1;i<n.length;++i)if(!t.resolveDisabled(n[i],i,n))return i;return r}case 3:{for(let i=n.length-1;i>=0;--i)if(!t.resolveDisabled(n[i],i,n))return i;return r}case 4:{for(let i=0;i<n.length;++i)if(t.resolveId(n[i],i,n)===e.id)return i;return r}case 5:return null;default:hH(e)}}function pv(e={},t=null,n=[]){for(let[r,o]of Object.entries(e))cT(n,uT(t,r),o);return n}function uT(e,t){return e?e+"["+t+"]":t}function cT(e,t,n){if(Array.isArray(n))for(let[r,o]of n.entries())cT(e,uT(t,r.toString()),o);else n instanceof Date?e.push([t,n.toISOString()]):typeof n=="boolean"?e.push([t,n?"1":"0"]):typeof n=="string"?e.push([t,n]):typeof n=="number"?e.push([t,`${n}`]):n==null?e.push([t,""]):pv(n,t,e)}function mH(e){var t,n;let r=(t=e==null?void 0:e.form)!=null?t:e.closest("form");if(r){for(let o of r.elements)if(o!==e&&(o.tagName==="INPUT"&&o.type==="submit"||o.tagName==="BUTTON"&&o.type==="submit"||o.nodeName==="INPUT"&&o.type==="image")){o.click();return}(n=r.requestSubmit)==null||n.call(r)}}var gH={};function vH(e,t){return e===t}var yH=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(yH||{}),_H=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(_H||{}),bH=(e=>(e[e.Pointer=0]="Pointer",e[e.Focus=1]="Focus",e[e.Other=2]="Other",e))(bH||{});let dT=Symbol("ComboboxContext");function yi(e){let t=Ft(dT,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,yi),n}return t}let fT=Symbol("VirtualContext"),wH=ge({name:"VirtualProvider",setup(e,{slots:t}){let n=yi("VirtualProvider"),r=fe(()=>{let a=de(n.optionsRef);if(!a)return{start:0,end:0};let c=window.getComputedStyle(a);return{start:parseFloat(c.paddingBlockStart||c.paddingTop),end:parseFloat(c.paddingBlockEnd||c.paddingBottom)}}),o=JV(fe(()=>({scrollPaddingStart:r.value.start,scrollPaddingEnd:r.value.end,count:n.virtual.value.options.length,estimateSize(){return 40},getScrollElement(){return de(n.optionsRef)},overscan:12}))),i=fe(()=>{var a;return(a=n.virtual.value)==null?void 0:a.options}),l=$e(0);return Ut([i],()=>{l.value+=1}),Qt(fT,n.virtual.value?o:null),()=>[pt("div",{style:{position:"relative",width:"100%",height:`${o.value.getTotalSize()}px`},ref:a=>{if(a){if(typeof process<"u"&&gH.JEST_WORKER_ID!==void 0||n.activationTrigger.value===0)return;n.activeOptionIndex.value!==null&&n.virtual.value.options.length>n.activeOptionIndex.value&&o.value.scrollToIndex(n.activeOptionIndex.value)}}},o.value.getVirtualItems().map(a=>Vr(t.default({option:n.virtual.value.options[a.index],open:n.comboboxState.value===0})[0],{key:`${l.value}-${a.index}`,"data-index":a.index,"aria-setsize":n.virtual.value.options.length,"aria-posinset":a.index+1,style:{position:"absolute",top:0,left:0,transform:`translateY(${a.start}px)`,overflowAnchor:"none"}})))]}}),pT=ge({name:"Combobox",emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:"template"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],nullable:!0,default:null},modelValue:{type:[Object,String,Number,Boolean],default:void 0},defaultValue:{type:[Object,String,Number,Boolean],default:void 0},form:{type:String,optional:!0},name:{type:String,optional:!0},nullable:{type:Boolean,default:!1},multiple:{type:[Boolean],default:!1},immediate:{type:[Boolean],default:!1},virtual:{type:Object,default:null}},inheritAttrs:!1,setup(e,{slots:t,attrs:n,emit:r}){let o=$e(1),i=$e(null),l=$e(null),a=$e(null),c=$e(null),d=$e({static:!1,hold:!1}),p=$e([]),h=$e(null),v=$e(2),y=$e(!1);function b(U=j=>j){let j=h.value!==null?p.value[h.value]:null,G=U(p.value.slice()),X=G.length>0&&G[0].dataRef.order.value!==null?G.sort((xe,Ee)=>xe.dataRef.order.value-Ee.dataRef.order.value):dv(G,xe=>de(xe.dataRef.domRef)),ne=j?X.indexOf(j):null;return ne===-1&&(ne=null),{options:X,activeOptionIndex:ne}}let S=fe(()=>e.multiple?1:0),T=fe(()=>e.nullable),[C,w]=av(fe(()=>e.modelValue),U=>r("update:modelValue",U),fe(()=>e.defaultValue)),E=fe(()=>C.value===void 0?kt(S.value,{1:[],0:void 0}):C.value),O=null,$=null;function P(U){return kt(S.value,{0(){return w==null?void 0:w(U)},1:()=>{let j=He(k.value.value).slice(),G=He(U),X=j.findIndex(ne=>k.compare(G,He(ne)));return X===-1?j.push(G):j.splice(X,1),w==null?void 0:w(j)}})}let R=fe(()=>{});Ut([R],([U],[j])=>{if(k.virtual.value&&U&&j&&h.value!==null){let G=U.indexOf(j[h.value]);G!==-1?h.value=G:h.value=null}});let k={comboboxState:o,value:E,mode:S,compare(U,j){if(typeof e.by=="string"){let G=e.by;return(U==null?void 0:U[G])===(j==null?void 0:j[G])}return e.by===null?vH(U,j):e.by(U,j)},calculateIndex(U){return k.virtual.value?e.by===null?k.virtual.value.options.indexOf(U):k.virtual.value.options.findIndex(j=>k.compare(j,U)):p.value.findIndex(j=>k.compare(j.dataRef.value,U))},defaultValue:fe(()=>e.defaultValue),nullable:T,immediate:fe(()=>!1),virtual:fe(()=>null),inputRef:l,labelRef:i,buttonRef:a,optionsRef:c,disabled:fe(()=>e.disabled),options:p,change(U){w(U)},activeOptionIndex:fe(()=>{if(y.value&&h.value===null&&(k.virtual.value?k.virtual.value.options.length>0:p.value.length>0)){if(k.virtual.value){let j=k.virtual.value.options.findIndex(G=>{var X;return!((X=k.virtual.value)!=null&&X.disabled(G))});if(j!==-1)return j}let U=p.value.findIndex(j=>!j.dataRef.disabled);if(U!==-1)return U}return h.value}),activationTrigger:v,optionsPropsRef:d,closeCombobox(){y.value=!1,!e.disabled&&o.value!==1&&(o.value=1,h.value=null)},openCombobox(){if(y.value=!0,!e.disabled&&o.value!==0){if(k.value.value){let U=k.calculateIndex(k.value.value);U!==-1&&(h.value=U)}o.value=0}},setActivationTrigger(U){v.value=U},goToOption(U,j,G){y.value=!1,O!==null&&cancelAnimationFrame(O),O=requestAnimationFrame(()=>{if(e.disabled||c.value&&!d.value.static&&o.value===1)return;if(k.virtual.value){h.value=U===Ct.Specific?j:im({focus:U},{resolveItems:()=>k.virtual.value.options,resolveActiveIndex:()=>{var xe,Ee;return(Ee=(xe=k.activeOptionIndex.value)!=null?xe:k.virtual.value.options.findIndex(ke=>{var Ie;return!((Ie=k.virtual.value)!=null&&Ie.disabled(ke))}))!=null?Ee:null},resolveDisabled:xe=>k.virtual.value.disabled(xe),resolveId(){throw new Error("Function not implemented.")}}),v.value=G??2;return}let X=b();if(X.activeOptionIndex===null){let xe=X.options.findIndex(Ee=>!Ee.dataRef.disabled);xe!==-1&&(X.activeOptionIndex=xe)}let ne=U===Ct.Specific?j:im({focus:U},{resolveItems:()=>X.options,resolveActiveIndex:()=>X.activeOptionIndex,resolveId:xe=>xe.id,resolveDisabled:xe=>xe.dataRef.disabled});h.value=ne,v.value=G??2,p.value=X.options})},selectOption(U){let j=p.value.find(X=>X.id===U);if(!j)return;let{dataRef:G}=j;P(G.value)},selectActiveOption(){if(k.activeOptionIndex.value!==null){if(k.virtual.value)P(k.virtual.value.options[k.activeOptionIndex.value]);else{let{dataRef:U}=p.value[k.activeOptionIndex.value];P(U.value)}k.goToOption(Ct.Specific,k.activeOptionIndex.value)}},registerOption(U,j){let G=Ts({id:U,dataRef:j});if(k.virtual.value){p.value.push(G);return}$&&cancelAnimationFrame($);let X=b(ne=>(ne.push(G),ne));h.value===null&&k.isSelected(j.value.value)&&(X.activeOptionIndex=X.options.indexOf(G)),p.value=X.options,h.value=X.activeOptionIndex,v.value=2,X.options.some(ne=>!de(ne.dataRef.domRef))&&($=requestAnimationFrame(()=>{let ne=b();p.value=ne.options,h.value=ne.activeOptionIndex}))},unregisterOption(U,j){if(O!==null&&cancelAnimationFrame(O),j&&(y.value=!0),k.virtual.value){p.value=p.value.filter(X=>X.id!==U);return}let G=b(X=>{let ne=X.findIndex(xe=>xe.id===U);return ne!==-1&&X.splice(ne,1),X});p.value=G.options,h.value=G.activeOptionIndex,v.value=2},isSelected(U){return kt(S.value,{0:()=>k.compare(He(k.value.value),He(U)),1:()=>He(k.value.value).some(j=>k.compare(He(j),He(U)))})},isActive(U){return h.value===k.calculateIndex(U)}};af([l,a,c],()=>k.closeCombobox(),fe(()=>o.value===0)),Qt(dT,k),cf(fe(()=>kt(o.value,{0:Lt.Open,1:Lt.Closed})));let W=fe(()=>{var U;return(U=de(l))==null?void 0:U.closest("form")});return wt(()=>{Ut([W],()=>{if(!W.value||e.defaultValue===void 0)return;function U(){k.change(e.defaultValue)}return W.value.addEventListener("reset",U),()=>{var j;(j=W.value)==null||j.removeEventListener("reset",U)}},{immediate:!0})}),()=>{var U,j,G;let{name:X,disabled:ne,form:xe,...Ee}=e,ke={open:o.value===0,disabled:ne,activeIndex:k.activeOptionIndex.value,activeOption:k.activeOptionIndex.value===null?null:k.virtual.value?k.virtual.value.options[(U=k.activeOptionIndex.value)!=null?U:0]:(G=(j=k.options.value[k.activeOptionIndex.value])==null?void 0:j.dataRef.value)!=null?G:null,value:E.value};return pt(Me,[...X!=null&&E.value!=null?pv({[X]:E.value}).map(([Ie,Qe])=>pt(To,fv({features:lo.Hidden,key:Ie,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:xe,disabled:ne,name:Ie,value:Qe}))):[],xt({theirProps:{...n,...gi(Ee,["by","defaultValue","immediate","modelValue","multiple","nullable","onUpdate:modelValue","virtual"])},ourProps:{},slot:ke,slots:t,attrs:n,name:"Combobox"})])}}}),SH=ge({name:"ComboboxLabel",props:{as:{type:[Object,String],default:"label"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n}){var r;let o=(r=e.id)!=null?r:`headlessui-combobox-label-${qt()}`,i=yi("ComboboxLabel");function l(){var a;(a=de(i.inputRef))==null||a.focus({preventScroll:!0})}return()=>{let a={open:i.comboboxState.value===0,disabled:i.disabled.value},{...c}=e,d={id:o,ref:i.labelRef,onClick:l};return xt({ourProps:d,theirProps:c,slot:a,attrs:t,slots:n,name:"ComboboxLabel"})}}}),hT=ge({name:"ComboboxButton",props:{as:{type:[Object,String],default:"button"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){var o;let i=(o=e.id)!=null?o:`headlessui-combobox-button-${qt()}`,l=yi("ComboboxButton");r({el:l.buttonRef,$el:l.buttonRef});function a(p){l.disabled.value||(l.comboboxState.value===0?l.closeCombobox():(p.preventDefault(),l.openCombobox()),sn(()=>{var h;return(h=de(l.inputRef))==null?void 0:h.focus({preventScroll:!0})}))}function c(p){switch(p.key){case at.ArrowDown:p.preventDefault(),p.stopPropagation(),l.comboboxState.value===1&&l.openCombobox(),sn(()=>{var h;return(h=l.inputRef.value)==null?void 0:h.focus({preventScroll:!0})});return;case at.ArrowUp:p.preventDefault(),p.stopPropagation(),l.comboboxState.value===1&&(l.openCombobox(),sn(()=>{l.value.value||l.goToOption(Ct.Last)})),sn(()=>{var h;return(h=l.inputRef.value)==null?void 0:h.focus({preventScroll:!0})});return;case at.Escape:if(l.comboboxState.value!==0)return;p.preventDefault(),l.optionsRef.value&&!l.optionsPropsRef.value.static&&p.stopPropagation(),l.closeCombobox(),sn(()=>{var h;return(h=l.inputRef.value)==null?void 0:h.focus({preventScroll:!0})});return}}let d=uf(fe(()=>({as:e.as,type:t.type})),l.buttonRef);return()=>{var p,h;let v={open:l.comboboxState.value===0,disabled:l.disabled.value,value:l.value.value},{...y}=e,b={ref:l.buttonRef,id:i,type:d.value,tabindex:"-1","aria-haspopup":"listbox","aria-controls":(p=de(l.optionsRef))==null?void 0:p.id,"aria-expanded":l.comboboxState.value===0,"aria-labelledby":l.labelRef.value?[(h=de(l.labelRef))==null?void 0:h.id,i].join(" "):void 0,disabled:l.disabled.value===!0?!0:void 0,onKeydown:c,onClick:a};return xt({ourProps:b,theirProps:y,slot:v,attrs:t,slots:n,name:"ComboboxButton"})}}}),mT=ge({name:"ComboboxInput",props:{as:{type:[Object,String],default:"input"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},displayValue:{type:Function},defaultValue:{type:String,default:void 0},id:{type:String,default:null}},emits:{change:e=>!0},setup(e,{emit:t,attrs:n,slots:r,expose:o}){var i;let l=(i=e.id)!=null?i:`headlessui-combobox-input-${qt()}`,a=yi("ComboboxInput"),c=fe(()=>Gr(de(a.inputRef))),d={value:!1};o({el:a.inputRef,$el:a.inputRef});function p(){a.change(null);let $=de(a.optionsRef);$&&($.scrollTop=0),a.goToOption(Ct.Nothing)}let h=fe(()=>{var $;let P=a.value.value;return de(a.inputRef)?typeof e.displayValue<"u"&&P!==void 0?($=e.displayValue(P))!=null?$:"":typeof P=="string"?P:"":""});wt(()=>{Ut([h,a.comboboxState,c],([$,P],[R,k])=>{if(d.value)return;let W=de(a.inputRef);W&&((k===0&&P===1||$!==R)&&(W.value=$),requestAnimationFrame(()=>{var U;if(d.value||!W||((U=c.value)==null?void 0:U.activeElement)!==W)return;let{selectionStart:j,selectionEnd:G}=W;Math.abs((G??0)-(j??0))===0&&j===0&&W.setSelectionRange(W.value.length,W.value.length)}))},{immediate:!0}),Ut([a.comboboxState],([$],[P])=>{if($===0&&P===1){if(d.value)return;let R=de(a.inputRef);if(!R)return;let k=R.value,{selectionStart:W,selectionEnd:U,selectionDirection:j}=R;R.value="",R.value=k,j!==null?R.setSelectionRange(W,U,j):R.setSelectionRange(W,U)}})});let v=$e(!1);function y(){v.value=!0}function b(){xs().nextFrame(()=>{v.value=!1})}let S=QV();function T($){switch(d.value=!0,S(()=>{d.value=!1}),$.key){case at.Enter:if(d.value=!1,a.comboboxState.value!==0||v.value)return;if($.preventDefault(),$.stopPropagation(),a.activeOptionIndex.value===null){a.closeCombobox();return}a.selectActiveOption(),a.mode.value===0&&a.closeCombobox();break;case at.ArrowDown:return d.value=!1,$.preventDefault(),$.stopPropagation(),kt(a.comboboxState.value,{0:()=>a.goToOption(Ct.Next),1:()=>a.openCombobox()});case at.ArrowUp:return d.value=!1,$.preventDefault(),$.stopPropagation(),kt(a.comboboxState.value,{0:()=>a.goToOption(Ct.Previous),1:()=>{a.openCombobox(),sn(()=>{a.value.value||a.goToOption(Ct.Last)})}});case at.Home:if($.shiftKey)break;return d.value=!1,$.preventDefault(),$.stopPropagation(),a.goToOption(Ct.First);case at.PageUp:return d.value=!1,$.preventDefault(),$.stopPropagation(),a.goToOption(Ct.First);case at.End:if($.shiftKey)break;return d.value=!1,$.preventDefault(),$.stopPropagation(),a.goToOption(Ct.Last);case at.PageDown:return d.value=!1,$.preventDefault(),$.stopPropagation(),a.goToOption(Ct.Last);case at.Escape:if(d.value=!1,a.comboboxState.value!==0)return;$.preventDefault(),a.optionsRef.value&&!a.optionsPropsRef.value.static&&$.stopPropagation(),a.nullable.value&&a.mode.value===0&&a.value.value===null&&p(),a.closeCombobox();break;case at.Tab:if(d.value=!1,a.comboboxState.value!==0)return;a.mode.value===0&&a.activationTrigger.value!==1&&a.selectActiveOption(),a.closeCombobox();break}}function C($){t("change",$),a.nullable.value&&a.mode.value===0&&$.target.value===""&&p(),a.openCombobox()}function w($){var P,R,k;let W=(P=$.relatedTarget)!=null?P:Ho.find(U=>U!==$.currentTarget);if(d.value=!1,!((R=de(a.optionsRef))!=null&&R.contains(W))&&!((k=de(a.buttonRef))!=null&&k.contains(W))&&a.comboboxState.value===0)return $.preventDefault(),a.mode.value===0&&(a.nullable.value&&a.value.value===null?p():a.activationTrigger.value!==1&&a.selectActiveOption()),a.closeCombobox()}function E($){var P,R,k;let W=(P=$.relatedTarget)!=null?P:Ho.find(U=>U!==$.currentTarget);(R=de(a.buttonRef))!=null&&R.contains(W)||(k=de(a.optionsRef))!=null&&k.contains(W)||a.disabled.value||a.immediate.value&&a.comboboxState.value!==0&&(a.openCombobox(),xs().nextFrame(()=>{a.setActivationTrigger(1)}))}let O=fe(()=>{var $,P,R,k;return(k=(R=(P=e.defaultValue)!=null?P:a.defaultValue.value!==void 0?($=e.displayValue)==null?void 0:$.call(e,a.defaultValue.value):null)!=null?R:a.defaultValue.value)!=null?k:""});return()=>{var $,P,R,k,W,U,j;let G={open:a.comboboxState.value===0},{displayValue:X,onChange:ne,...xe}=e,Ee={"aria-controls":($=a.optionsRef.value)==null?void 0:$.id,"aria-expanded":a.comboboxState.value===0,"aria-activedescendant":a.activeOptionIndex.value===null?void 0:a.virtual.value?(P=a.options.value.find(ke=>!a.virtual.value.disabled(ke.dataRef.value)&&a.compare(ke.dataRef.value,a.virtual.value.options[a.activeOptionIndex.value])))==null?void 0:P.id:(R=a.options.value[a.activeOptionIndex.value])==null?void 0:R.id,"aria-labelledby":(U=(k=de(a.labelRef))==null?void 0:k.id)!=null?U:(W=de(a.buttonRef))==null?void 0:W.id,"aria-autocomplete":"list",id:l,onCompositionstart:y,onCompositionend:b,onKeydown:T,onInput:C,onFocus:E,onBlur:w,role:"combobox",type:(j=n.type)!=null?j:"text",tabIndex:0,ref:a.inputRef,defaultValue:O.value,disabled:a.disabled.value===!0?!0:void 0};return xt({ourProps:Ee,theirProps:xe,slot:G,attrs:n,slots:r,features:ur.RenderStrategy|ur.Static,name:"ComboboxInput"})}}}),gT=ge({name:"ComboboxOptions",props:{as:{type:[Object,String],default:"ul"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},hold:{type:[Boolean],default:!1}},setup(e,{attrs:t,slots:n,expose:r}){let o=yi("ComboboxOptions"),i=`headlessui-combobox-options-${qt()}`;r({el:o.optionsRef,$el:o.optionsRef}),Vt(()=>{o.optionsPropsRef.value.static=e.static}),Vt(()=>{o.optionsPropsRef.value.hold=e.hold});let l=vi(),a=fe(()=>l!==null?(l.value&Lt.Open)===Lt.Open:o.comboboxState.value===0);cH({container:fe(()=>de(o.optionsRef)),enabled:fe(()=>o.comboboxState.value===0),accept(d){return d.getAttribute("role")==="option"?NodeFilter.FILTER_REJECT:d.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(d){d.setAttribute("role","none")}});function c(d){d.preventDefault()}return()=>{var d,p,h;let v={open:o.comboboxState.value===0},y={"aria-labelledby":(h=(d=de(o.labelRef))==null?void 0:d.id)!=null?h:(p=de(o.buttonRef))==null?void 0:p.id,id:i,ref:o.optionsRef,role:"listbox","aria-multiselectable":o.mode.value===1?!0:void 0,onMousedown:c},b=gi(e,["hold"]);return xt({ourProps:y,theirProps:b,slot:v,attrs:t,slots:o.virtual.value&&o.comboboxState.value===0?{...n,default:()=>[pt(wH,{},n.default)]}:n,features:ur.RenderStrategy|ur.Static,visible:a.value,name:"ComboboxOptions"})}}}),vT=ge({name:"ComboboxOption",props:{as:{type:[Object,String],default:"li"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1},order:{type:[Number],default:null}},setup(e,{slots:t,attrs:n,expose:r}){let o=yi("ComboboxOption"),i=`headlessui-combobox-option-${qt()}`,l=$e(null),a=fe(()=>e.disabled);r({el:l,$el:l});let c=fe(()=>{var w;return o.virtual.value?o.activeOptionIndex.value===o.calculateIndex(e.value):o.activeOptionIndex.value===null?!1:((w=o.options.value[o.activeOptionIndex.value])==null?void 0:w.id)===i}),d=fe(()=>o.isSelected(e.value)),p=Ft(fT,null),h=fe(()=>({disabled:e.disabled,value:e.value,domRef:l,order:fe(()=>e.order)}));wt(()=>o.registerOption(i,h)),en(()=>o.unregisterOption(i,c.value)),Vt(()=>{let w=de(l);w&&(p==null||p.value.measureElement(w))}),Vt(()=>{o.comboboxState.value===0&&c.value&&(o.virtual.value||o.activationTrigger.value!==0&&sn(()=>{var w,E;return(E=(w=de(l))==null?void 0:w.scrollIntoView)==null?void 0:E.call(w,{block:"nearest"})}))});function v(w){w.preventDefault(),w.button===aT.Left&&(a.value||(o.selectOption(i),nT()||requestAnimationFrame(()=>{var E;return(E=de(o.inputRef))==null?void 0:E.focus({preventScroll:!0})}),o.mode.value===0&&o.closeCombobox()))}function y(){var w;if(e.disabled||(w=o.virtual.value)!=null&&w.disabled(e.value))return o.goToOption(Ct.Nothing);let E=o.calculateIndex(e.value);o.goToOption(Ct.Specific,E)}let b=oT();function S(w){b.update(w)}function T(w){var E;if(!b.wasMoved(w)||e.disabled||(E=o.virtual.value)!=null&&E.disabled(e.value)||c.value)return;let O=o.calculateIndex(e.value);o.goToOption(Ct.Specific,O,0)}function C(w){var E;b.wasMoved(w)&&(e.disabled||(E=o.virtual.value)!=null&&E.disabled(e.value)||c.value&&(o.optionsPropsRef.value.hold||o.goToOption(Ct.Nothing)))}return()=>{let{disabled:w}=e,E={active:c.value,selected:d.value,disabled:w},O={id:i,ref:l,role:"option",tabIndex:w===!0?void 0:-1,"aria-disabled":w===!0?!0:void 0,"aria-selected":d.value,disabled:void 0,onMousedown:v,onFocus:y,onPointerenter:S,onMouseenter:S,onPointermove:T,onMousemove:T,onPointerleave:C,onMouseleave:C},$=gi(e,["order","value"]);return xt({ourProps:O,theirProps:$,slot:E,attrs:n,slots:t,name:"ComboboxOption"})}}});function hv(e,t,n,r){Xa.isServer||Vt(o=>{e=e??window,e.addEventListener(t,n,r),o(()=>e.removeEventListener(t,n,r))})}var _r=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(_r||{});function mv(){let e=$e(0);return rT("keydown",t=>{t.key==="Tab"&&(e.value=t.shiftKey?1:0)}),e}function yT(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let n of e.value){let r=de(n);r instanceof HTMLElement&&t.add(r)}return t}var _T=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(_T||{});let Ul=Object.assign(ge({name:"FocusTrap",props:{as:{type:[Object,String],default:"div"},initialFocus:{type:Object,default:null},features:{type:Number,default:30},containers:{type:[Object,Function],default:$e(new Set)}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:r}){let o=$e(null);r({el:o,$el:o});let i=fe(()=>Gr(o)),l=$e(!1);wt(()=>l.value=!0),en(()=>l.value=!1),$H({ownerDocument:i},fe(()=>l.value&&!!(e.features&16)));let a=xH({ownerDocument:i,container:o,initialFocus:fe(()=>e.initialFocus)},fe(()=>l.value&&!!(e.features&2)));TH({ownerDocument:i,container:o,containers:e.containers,previousActiveElement:a},fe(()=>l.value&&!!(e.features&8)));let c=mv();function d(y){let b=de(o);b&&(S=>S())(()=>{kt(c.value,{[_r.Forwards]:()=>{no(b,Mn.First,{skipElements:[y.relatedTarget]})},[_r.Backwards]:()=>{no(b,Mn.Last,{skipElements:[y.relatedTarget]})}})})}let p=$e(!1);function h(y){y.key==="Tab"&&(p.value=!0,requestAnimationFrame(()=>{p.value=!1}))}function v(y){if(!l.value)return;let b=yT(e.containers);de(o)instanceof HTMLElement&&b.add(de(o));let S=y.relatedTarget;S instanceof HTMLElement&&S.dataset.headlessuiFocusGuard!=="true"&&(bT(b,S)||(p.value?no(de(o),kt(c.value,{[_r.Forwards]:()=>Mn.Next,[_r.Backwards]:()=>Mn.Previous})|Mn.WrapAround,{relativeTo:y.target}):y.target instanceof HTMLElement&&si(y.target)))}return()=>{let y={},b={ref:o,onKeydown:h,onFocusout:v},{features:S,initialFocus:T,containers:C,...w}=e;return pt(Me,[!!(S&4)&&pt(To,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:d,features:lo.Focusable}),xt({ourProps:b,theirProps:{...t,...w},slot:y,attrs:t,slots:n,name:"FocusTrap"}),!!(S&4)&&pt(To,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:d,features:lo.Focusable})])}}}),{features:_T});function EH(e){let t=$e(Ho.slice());return Ut([e],([n],[r])=>{r===!0&&n===!1?uv(()=>{t.value.splice(0)}):r===!1&&n===!0&&(t.value=Ho.slice())},{flush:"post"}),()=>{var n;return(n=t.value.find(r=>r!=null&&r.isConnected))!=null?n:null}}function $H({ownerDocument:e},t){let n=EH(t);wt(()=>{Vt(()=>{var r,o;t.value||((r=e.value)==null?void 0:r.activeElement)===((o=e.value)==null?void 0:o.body)&&si(n())},{flush:"post"})}),en(()=>{t.value&&si(n())})}function xH({ownerDocument:e,container:t,initialFocus:n},r){let o=$e(null),i=$e(!1);return wt(()=>i.value=!0),en(()=>i.value=!1),wt(()=>{Ut([t,n,r],(l,a)=>{if(l.every((d,p)=>(a==null?void 0:a[p])===d)||!r.value)return;let c=de(t);c&&uv(()=>{var d,p;if(!i.value)return;let h=de(n),v=(d=e.value)==null?void 0:d.activeElement;if(h){if(h===v){o.value=v;return}}else if(c.contains(v)){o.value=v;return}h?si(h):no(c,Mn.First|Mn.NoScroll)===Ca.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),o.value=(p=e.value)==null?void 0:p.activeElement})},{immediate:!0,flush:"post"})}),o}function TH({ownerDocument:e,container:t,containers:n,previousActiveElement:r},o){var i;hv((i=e.value)==null?void 0:i.defaultView,"focus",l=>{if(!o.value)return;let a=yT(n);de(t)instanceof HTMLElement&&a.add(de(t));let c=r.value;if(!c)return;let d=l.target;d&&d instanceof HTMLElement?bT(a,d)?(r.value=d,si(d)):(l.preventDefault(),l.stopPropagation(),si(c)):si(r.value)},!0)}function bT(e,t){for(let n of e)if(n.contains(t))return!0;return!1}function CH(e){let t=gd(e.getSnapshot());return en(e.subscribe(()=>{t.value=e.getSnapshot()})),t}function OH(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(o){return r.add(o),()=>r.delete(o)},dispatch(o,...i){let l=t[o].call(n,...i);l&&(n=l,r.forEach(a=>a()))}}}function AH(){let e;return{before({doc:t}){var n;let r=t.documentElement;e=((n=t.defaultView)!=null?n:window).innerWidth-r.clientWidth},after({doc:t,d:n}){let r=t.documentElement,o=r.clientWidth-r.offsetWidth,i=e-o;n.style(r,"paddingRight",`${i}px`)}}}function kH(){return tT()?{before({doc:e,d:t,meta:n}){function r(o){return n.containers.flatMap(i=>i()).some(i=>i.contains(o))}t.microTask(()=>{var o;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let a=xs();a.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>a.dispose()))}let i=(o=window.scrollY)!=null?o:window.pageYOffset,l=null;t.addEventListener(e,"click",a=>{if(a.target instanceof HTMLElement)try{let c=a.target.closest("a");if(!c)return;let{hash:d}=new URL(c.href),p=e.querySelector(d);p&&!r(p)&&(l=p)}catch{}},!0),t.addEventListener(e,"touchstart",a=>{if(a.target instanceof HTMLElement)if(r(a.target)){let c=a.target;for(;c.parentElement&&r(c.parentElement);)c=c.parentElement;t.style(c,"overscrollBehavior","contain")}else t.style(a.target,"touchAction","none")}),t.addEventListener(e,"touchmove",a=>{if(a.target instanceof HTMLElement){if(a.target.tagName==="INPUT")return;if(r(a.target)){let c=a.target;for(;c.parentElement&&c.dataset.headlessuiPortal!==""&&!(c.scrollHeight>c.clientHeight||c.scrollWidth>c.clientWidth);)c=c.parentElement;c.dataset.headlessuiPortal===""&&a.preventDefault()}else a.preventDefault()}},{passive:!1}),t.add(()=>{var a;let c=(a=window.scrollY)!=null?a:window.pageYOffset;i!==c&&window.scrollTo(0,i),l&&l.isConnected&&(l.scrollIntoView({block:"nearest"}),l=null)})})}}:{}}function IH(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function PH(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let Js=OH(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:xs(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:PH(n)},o=[kH(),AH(),IH()];o.forEach(({before:i})=>i==null?void 0:i(r)),o.forEach(({after:i})=>i==null?void 0:i(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});Js.subscribe(()=>{let e=Js.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let r=t.get(n.doc)==="hidden",o=n.count!==0;(o&&!r||!o&&r)&&Js.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&Js.dispatch("TEARDOWN",n)}});function RH(e,t,n){let r=CH(Js),o=fe(()=>{let i=e.value?r.value.get(e.value):void 0;return i?i.count>0:!1});return Ut([e,t],([i,l],[a],c)=>{if(!i||!l)return;Js.dispatch("PUSH",i,n);let d=!1;c(()=>{d||(Js.dispatch("POP",a??i,n),d=!0)})},{immediate:!0}),o}let lh=new Map,Bl=new Map;function hb(e,t=$e(!0)){Vt(n=>{var r;if(!t.value)return;let o=de(e);if(!o)return;n(function(){var l;if(!o)return;let a=(l=Bl.get(o))!=null?l:1;if(a===1?Bl.delete(o):Bl.set(o,a-1),a!==1)return;let c=lh.get(o);c&&(c["aria-hidden"]===null?o.removeAttribute("aria-hidden"):o.setAttribute("aria-hidden",c["aria-hidden"]),o.inert=c.inert,lh.delete(o))});let i=(r=Bl.get(o))!=null?r:0;Bl.set(o,i+1),i===0&&(lh.set(o,{"aria-hidden":o.getAttribute("aria-hidden"),inert:o.inert}),o.setAttribute("aria-hidden","true"),o.inert=!0)})}function wT({defaultContainers:e=[],portals:t,mainTreeNodeRef:n}={}){let r=$e(null),o=Gr(r);function i(){var l,a,c;let d=[];for(let p of e)p!==null&&(p instanceof HTMLElement?d.push(p):"value"in p&&p.value instanceof HTMLElement&&d.push(p.value));if(t!=null&&t.value)for(let p of t.value)d.push(p);for(let p of(l=o==null?void 0:o.querySelectorAll("html > *, body > *"))!=null?l:[])p!==document.body&&p!==document.head&&p instanceof HTMLElement&&p.id!=="headlessui-portal-root"&&(p.contains(de(r))||p.contains((c=(a=de(r))==null?void 0:a.getRootNode())==null?void 0:c.host)||d.some(h=>p.contains(h))||d.push(p));return d}return{resolveContainers:i,contains(l){return i().some(a=>a.contains(l))},mainTreeNodeRef:r,MainTreeNode(){return n!=null?null:pt(To,{features:lo.Hidden,ref:r})}}}function LH(){let e=$e(null);return{mainTreeNodeRef:e,MainTreeNode(){return pt(To,{features:lo.Hidden,ref:e})}}}let ST=Symbol("ForcePortalRootContext");function FH(){return Ft(ST,!1)}let lm=ge({name:"ForcePortalRoot",props:{as:{type:[Object,String],default:"template"},force:{type:Boolean,default:!1}},setup(e,{slots:t,attrs:n}){return Qt(ST,e.force),()=>{let{force:r,...o}=e;return xt({theirProps:o,ourProps:{},slot:{},slots:t,attrs:n,name:"ForcePortalRoot"})}}}),ET=Symbol("StackContext");var am=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(am||{});function NH(){return Ft(ET,()=>{})}function MH({type:e,enabled:t,element:n,onUpdate:r}){let o=NH();function i(...l){r==null||r(...l),o(...l)}wt(()=>{Ut(t,(l,a)=>{l?i(0,e,n):a===!0&&i(1,e,n)},{immediate:!0,flush:"sync"})}),en(()=>{t.value&&i(1,e,n)}),Qt(ET,i)}let $T=Symbol("DescriptionContext");function DH(){let e=Ft($T,null);if(e===null)throw new Error("Missing parent");return e}function xT({slot:e=$e({}),name:t="Description",props:n={}}={}){let r=$e([]);function o(i){return r.value.push(i),()=>{let l=r.value.indexOf(i);l!==-1&&r.value.splice(l,1)}}return Qt($T,{register:o,slot:e,name:t,props:n}),fe(()=>r.value.length>0?r.value.join(" "):void 0)}ge({name:"Description",props:{as:{type:[Object,String],default:"p"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n}){var r;let o=(r=e.id)!=null?r:`headlessui-description-${qt()}`,i=DH();return wt(()=>en(i.register(o))),()=>{let{name:l="Description",slot:a=$e({}),props:c={}}=i,{...d}=e,p={...Object.entries(c).reduce((h,[v,y])=>Object.assign(h,{[v]:vn(y)}),{}),id:o};return xt({ourProps:p,theirProps:d,slot:a.value,attrs:t,slots:n,name:l})}}});function UH(e){let t=Gr(e);if(!t){if(e===null)return null;throw new Error(`[Headless UI]: Cannot find ownerDocument for contextElement: ${e}`)}let n=t.getElementById("headlessui-portal-root");if(n)return n;let r=t.createElement("div");return r.setAttribute("id","headlessui-portal-root"),t.body.appendChild(r)}const um=new WeakMap;function BH(e){var t;return(t=um.get(e))!=null?t:0}function mb(e,t){let n=t(BH(e));return n<=0?um.delete(e):um.set(e,n),n}let TT=ge({name:"Portal",props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:n}){let r=$e(null),o=fe(()=>Gr(r)),i=FH(),l=Ft(OT,null),a=$e(i===!0||l==null?UH(r.value):l.resolveTarget());a.value&&mb(a.value,v=>v+1);let c=$e(!1);wt(()=>{c.value=!0}),Vt(()=>{i||l!=null&&(a.value=l.resolveTarget())});let d=Ft(cm,null),p=!1,h=Jo();return Ut(r,()=>{if(p||!d)return;let v=de(r);v&&(en(d.register(v),h),p=!0)}),en(()=>{var v,y;let b=(v=o.value)==null?void 0:v.getElementById("headlessui-portal-root");!b||a.value!==b||mb(a.value,S=>S-1)||a.value.children.length>0||(y=a.value.parentElement)==null||y.removeChild(a.value)}),()=>{if(!c.value||a.value===null)return null;let v={ref:r,"data-headlessui-portal":""};return pt(Bw,{to:a.value},xt({ourProps:v,theirProps:e,slot:{},attrs:n,slots:t,name:"Portal"}))}}}),cm=Symbol("PortalParentContext");function CT(){let e=Ft(cm,null),t=$e([]);function n(i){return t.value.push(i),e&&e.register(i),()=>r(i)}function r(i){let l=t.value.indexOf(i);l!==-1&&t.value.splice(l,1),e&&e.unregister(i)}let o={register:n,unregister:r,portals:t};return[t,ge({name:"PortalWrapper",setup(i,{slots:l}){return Qt(cm,o),()=>{var a;return(a=l.default)==null?void 0:a.call(l)}}})]}let OT=Symbol("PortalGroupContext"),jH=ge({name:"PortalGroup",props:{as:{type:[Object,String],default:"template"},target:{type:Object,default:null}},setup(e,{attrs:t,slots:n}){let r=Ts({resolveTarget(){return e.target}});return Qt(OT,r),()=>{let{target:o,...i}=e;return xt({theirProps:i,ourProps:{},slot:{},attrs:t,slots:n,name:"PortalGroup"})}}});var VH=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(VH||{});let dm=Symbol("DialogContext");function Ya(e){let t=Ft(dm,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Ya),n}return t}let cc="DC8F892D-2EBD-447C-A4C8-A03058436FF4",HH=ge({name:"Dialog",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},open:{type:[Boolean,String],default:cc},initialFocus:{type:Object,default:null},id:{type:String,default:null},role:{type:String,default:"dialog"}},emits:{close:e=>!0},setup(e,{emit:t,attrs:n,slots:r,expose:o}){var i,l;let a=(i=e.id)!=null?i:`headlessui-dialog-${qt()}`,c=$e(!1);wt(()=>{c.value=!0});let d=!1,p=fe(()=>e.role==="dialog"||e.role==="alertdialog"?e.role:(d||(d=!0,console.warn(`Invalid role [${p}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")),h=$e(0),v=vi(),y=fe(()=>e.open===cc&&v!==null?(v.value&Lt.Open)===Lt.Open:e.open),b=$e(null),S=fe(()=>Gr(b));if(o({el:b,$el:b}),!(e.open!==cc||v!==null))throw new Error("You forgot to provide an `open` prop to the `Dialog`.");if(typeof y.value!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${y.value===cc?void 0:e.open}`);let T=fe(()=>c.value&&y.value?0:1),C=fe(()=>T.value===0),w=fe(()=>h.value>1),E=Ft(dm,null)!==null,[O,$]=CT(),{resolveContainers:P,mainTreeNodeRef:R,MainTreeNode:k}=wT({portals:O,defaultContainers:[fe(()=>{var De;return(De=ke.panelRef.value)!=null?De:b.value})]}),W=fe(()=>w.value?"parent":"leaf"),U=fe(()=>v!==null?(v.value&Lt.Closing)===Lt.Closing:!1),j=fe(()=>E||U.value?!1:C.value),G=fe(()=>{var De,Xe,Q;return(Q=Array.from((Xe=(De=S.value)==null?void 0:De.querySelectorAll("body > *"))!=null?Xe:[]).find(ce=>ce.id==="headlessui-portal-root"?!1:ce.contains(de(R))&&ce instanceof HTMLElement))!=null?Q:null});hb(G,j);let X=fe(()=>w.value?!0:C.value),ne=fe(()=>{var De,Xe,Q;return(Q=Array.from((Xe=(De=S.value)==null?void 0:De.querySelectorAll("[data-headlessui-portal]"))!=null?Xe:[]).find(ce=>ce.contains(de(R))&&ce instanceof HTMLElement))!=null?Q:null});hb(ne,X),MH({type:"Dialog",enabled:fe(()=>T.value===0),element:b,onUpdate:(De,Xe)=>{if(Xe==="Dialog")return kt(De,{[am.Add]:()=>h.value+=1,[am.Remove]:()=>h.value-=1})}});let xe=xT({name:"DialogDescription",slot:fe(()=>({open:y.value}))}),Ee=$e(null),ke={titleId:Ee,panelRef:$e(null),dialogState:T,setTitleId(De){Ee.value!==De&&(Ee.value=De)},close(){t("close",!1)}};Qt(dm,ke);let Ie=fe(()=>!(!C.value||w.value));af(P,(De,Xe)=>{De.preventDefault(),ke.close(),sn(()=>Xe==null?void 0:Xe.focus())},Ie);let Qe=fe(()=>!(w.value||T.value!==0));hv((l=S.value)==null?void 0:l.defaultView,"keydown",De=>{Qe.value&&(De.defaultPrevented||De.key===at.Escape&&(De.preventDefault(),De.stopPropagation(),ke.close()))});let ht=fe(()=>!(U.value||T.value!==0||E));return RH(S,ht,De=>{var Xe;return{containers:[...(Xe=De.containers)!=null?Xe:[],P]}}),Vt(De=>{if(T.value!==0)return;let Xe=de(b);if(!Xe)return;let Q=new ResizeObserver(ce=>{for(let ve of ce){let Ce=ve.target.getBoundingClientRect();Ce.x===0&&Ce.y===0&&Ce.width===0&&Ce.height===0&&ke.close()}});Q.observe(Xe),De(()=>Q.disconnect())}),()=>{let{open:De,initialFocus:Xe,...Q}=e,ce={...n,ref:b,id:a,role:p.value,"aria-modal":T.value===0?!0:void 0,"aria-labelledby":Ee.value,"aria-describedby":xe.value},ve={open:T.value===0};return pt(lm,{force:!0},()=>[pt(TT,()=>pt(jH,{target:b.value},()=>pt(lm,{force:!1},()=>pt(Ul,{initialFocus:Xe,containers:P,features:C.value?kt(W.value,{parent:Ul.features.RestoreFocus,leaf:Ul.features.All&~Ul.features.FocusLock}):Ul.features.None},()=>pt($,{},()=>xt({ourProps:ce,theirProps:{...Q,...n},slot:ve,attrs:n,slots:r,visible:T.value===0,features:ur.RenderStrategy|ur.Static,name:"Dialog"})))))),pt(k)])}}}),zH=ge({name:"DialogOverlay",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n}){var r;let o=(r=e.id)!=null?r:`headlessui-dialog-overlay-${qt()}`,i=Ya("DialogOverlay");function l(a){a.target===a.currentTarget&&(a.preventDefault(),a.stopPropagation(),i.close())}return()=>{let{...a}=e;return xt({ourProps:{id:o,"aria-hidden":!0,onClick:l},theirProps:a,slot:{open:i.dialogState.value===0},attrs:t,slots:n,name:"DialogOverlay"})}}});ge({name:"DialogBackdrop",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:null}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:r}){var o;let i=(o=e.id)!=null?o:`headlessui-dialog-backdrop-${qt()}`,l=Ya("DialogBackdrop"),a=$e(null);return r({el:a,$el:a}),wt(()=>{if(l.panelRef.value===null)throw new Error("A <DialogBackdrop /> component is being used, but a <DialogPanel /> component is missing.")}),()=>{let{...c}=e,d={id:i,ref:a,"aria-hidden":!0};return pt(lm,{force:!0},()=>pt(TT,()=>xt({ourProps:d,theirProps:{...t,...c},slot:{open:l.dialogState.value===0},attrs:t,slots:n,name:"DialogBackdrop"})))}}});ge({name:"DialogPanel",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){var o;let i=(o=e.id)!=null?o:`headlessui-dialog-panel-${qt()}`,l=Ya("DialogPanel");r({el:l.panelRef,$el:l.panelRef});function a(c){c.stopPropagation()}return()=>{let{...c}=e,d={id:i,ref:l.panelRef,onClick:a};return xt({ourProps:d,theirProps:c,slot:{open:l.dialogState.value===0},attrs:t,slots:n,name:"DialogPanel"})}}});let WH=ge({name:"DialogTitle",props:{as:{type:[Object,String],default:"h2"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n}){var r;let o=(r=e.id)!=null?r:`headlessui-dialog-title-${qt()}`,i=Ya("DialogTitle");return wt(()=>{i.setTitleId(o),en(()=>i.setTitleId(null))}),()=>{let{...l}=e;return xt({ourProps:{id:o},theirProps:l,slot:{open:i.dialogState.value===0},attrs:t,slots:n,name:"DialogTitle"})}}}),gb=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function vb(e){var t,n;let r=(t=e.innerText)!=null?t:"",o=e.cloneNode(!0);if(!(o instanceof HTMLElement))return r;let i=!1;for(let a of o.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))a.remove(),i=!0;let l=i?(n=o.innerText)!=null?n:"":r;return gb.test(l)&&(l=l.replace(gb,"")),l}function qH(e){let t=e.getAttribute("aria-label");if(typeof t=="string")return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let r=n.split(" ").map(o=>{let i=document.getElementById(o);if(i){let l=i.getAttribute("aria-label");return typeof l=="string"?l.trim():vb(i).trim()}return null}).filter(Boolean);if(r.length>0)return r.join(", ")}return vb(e).trim()}function KH(e){let t=$e(""),n=$e("");return()=>{let r=de(e);if(!r)return"";let o=r.innerText;if(t.value===o)return n.value;let i=qH(r).trim().toLowerCase();return t.value=o,n.value=i,i}}function GH(e,t){return e===t}var XH=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(XH||{}),YH=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(YH||{}),JH=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(JH||{});function ZH(e){requestAnimationFrame(()=>requestAnimationFrame(e))}let AT=Symbol("ListboxContext");function Ja(e){let t=Ft(AT,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Ja),n}return t}let gv=ge({name:"Listbox",emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:"template"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],default:()=>GH},horizontal:{type:[Boolean],default:!1},modelValue:{type:[Object,String,Number,Boolean],default:void 0},defaultValue:{type:[Object,String,Number,Boolean],default:void 0},form:{type:String,optional:!0},name:{type:String,optional:!0},multiple:{type:[Boolean],default:!1}},inheritAttrs:!1,setup(e,{slots:t,attrs:n,emit:r}){let o=$e(1),i=$e(null),l=$e(null),a=$e(null),c=$e([]),d=$e(""),p=$e(null),h=$e(1);function v(E=O=>O){let O=p.value!==null?c.value[p.value]:null,$=dv(E(c.value.slice()),R=>de(R.dataRef.domRef)),P=O?$.indexOf(O):null;return P===-1&&(P=null),{options:$,activeOptionIndex:P}}let y=fe(()=>e.multiple?1:0),[b,S]=av(fe(()=>e.modelValue),E=>r("update:modelValue",E),fe(()=>e.defaultValue)),T=fe(()=>b.value===void 0?kt(y.value,{1:[],0:void 0}):b.value),C={listboxState:o,value:T,mode:y,compare(E,O){if(typeof e.by=="string"){let $=e.by;return(E==null?void 0:E[$])===(O==null?void 0:O[$])}return e.by(E,O)},orientation:fe(()=>e.horizontal?"horizontal":"vertical"),labelRef:i,buttonRef:l,optionsRef:a,disabled:fe(()=>e.disabled),options:c,searchQuery:d,activeOptionIndex:p,activationTrigger:h,closeListbox(){e.disabled||o.value!==1&&(o.value=1,p.value=null)},openListbox(){e.disabled||o.value!==0&&(o.value=0)},goToOption(E,O,$){if(e.disabled||o.value===1)return;let P=v(),R=im(E===Ct.Specific?{focus:Ct.Specific,id:O}:{focus:E},{resolveItems:()=>P.options,resolveActiveIndex:()=>P.activeOptionIndex,resolveId:k=>k.id,resolveDisabled:k=>k.dataRef.disabled});d.value="",p.value=R,h.value=$??1,c.value=P.options},search(E){if(e.disabled||o.value===1)return;let O=d.value!==""?0:1;d.value+=E.toLowerCase();let $=(p.value!==null?c.value.slice(p.value+O).concat(c.value.slice(0,p.value+O)):c.value).find(R=>R.dataRef.textValue.startsWith(d.value)&&!R.dataRef.disabled),P=$?c.value.indexOf($):-1;P===-1||P===p.value||(p.value=P,h.value=1)},clearSearch(){e.disabled||o.value!==1&&d.value!==""&&(d.value="")},registerOption(E,O){let $=v(P=>[...P,{id:E,dataRef:O}]);c.value=$.options,p.value=$.activeOptionIndex},unregisterOption(E){let O=v($=>{let P=$.findIndex(R=>R.id===E);return P!==-1&&$.splice(P,1),$});c.value=O.options,p.value=O.activeOptionIndex,h.value=1},theirOnChange(E){e.disabled||S(E)},select(E){e.disabled||S(kt(y.value,{0:()=>E,1:()=>{let O=He(C.value.value).slice(),$=He(E),P=O.findIndex(R=>C.compare($,He(R)));return P===-1?O.push($):O.splice(P,1),O}}))}};af([l,a],(E,O)=>{var $;C.closeListbox(),cv(O,lf.Loose)||(E.preventDefault(),($=de(l))==null||$.focus())},fe(()=>o.value===0)),Qt(AT,C),cf(fe(()=>kt(o.value,{0:Lt.Open,1:Lt.Closed})));let w=fe(()=>{var E;return(E=de(l))==null?void 0:E.closest("form")});return wt(()=>{Ut([w],()=>{if(!w.value||e.defaultValue===void 0)return;function E(){C.theirOnChange(e.defaultValue)}return w.value.addEventListener("reset",E),()=>{var O;(O=w.value)==null||O.removeEventListener("reset",E)}},{immediate:!0})}),()=>{let{name:E,modelValue:O,disabled:$,form:P,...R}=e,k={open:o.value===0,disabled:$,value:T.value};return pt(Me,[...E!=null&&T.value!=null?pv({[E]:T.value}).map(([W,U])=>pt(To,fv({features:lo.Hidden,key:W,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:P,disabled:$,name:W,value:U}))):[],xt({ourProps:{},theirProps:{...n,...gi(R,["defaultValue","onUpdate:modelValue","horizontal","multiple","by"])},slot:k,slots:t,attrs:n,name:"Listbox"})])}}}),vv=ge({name:"ListboxLabel",props:{as:{type:[Object,String],default:"label"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n}){var r;let o=(r=e.id)!=null?r:`headlessui-listbox-label-${qt()}`,i=Ja("ListboxLabel");function l(){var a;(a=de(i.buttonRef))==null||a.focus({preventScroll:!0})}return()=>{let a={open:i.listboxState.value===0,disabled:i.disabled.value},{...c}=e,d={id:o,ref:i.labelRef,onClick:l};return xt({ourProps:d,theirProps:c,slot:a,attrs:t,slots:n,name:"ListboxLabel"})}}}),yv=ge({name:"ListboxButton",props:{as:{type:[Object,String],default:"button"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){var o;let i=(o=e.id)!=null?o:`headlessui-listbox-button-${qt()}`,l=Ja("ListboxButton");r({el:l.buttonRef,$el:l.buttonRef});function a(h){switch(h.key){case at.Space:case at.Enter:case at.ArrowDown:h.preventDefault(),l.openListbox(),sn(()=>{var v;(v=de(l.optionsRef))==null||v.focus({preventScroll:!0}),l.value.value||l.goToOption(Ct.First)});break;case at.ArrowUp:h.preventDefault(),l.openListbox(),sn(()=>{var v;(v=de(l.optionsRef))==null||v.focus({preventScroll:!0}),l.value.value||l.goToOption(Ct.Last)});break}}function c(h){switch(h.key){case at.Space:h.preventDefault();break}}function d(h){l.disabled.value||(l.listboxState.value===0?(l.closeListbox(),sn(()=>{var v;return(v=de(l.buttonRef))==null?void 0:v.focus({preventScroll:!0})})):(h.preventDefault(),l.openListbox(),ZH(()=>{var v;return(v=de(l.optionsRef))==null?void 0:v.focus({preventScroll:!0})})))}let p=uf(fe(()=>({as:e.as,type:t.type})),l.buttonRef);return()=>{var h,v;let y={open:l.listboxState.value===0,disabled:l.disabled.value,value:l.value.value},{...b}=e,S={ref:l.buttonRef,id:i,type:p.value,"aria-haspopup":"listbox","aria-controls":(h=de(l.optionsRef))==null?void 0:h.id,"aria-expanded":l.listboxState.value===0,"aria-labelledby":l.labelRef.value?[(v=de(l.labelRef))==null?void 0:v.id,i].join(" "):void 0,disabled:l.disabled.value===!0?!0:void 0,onKeydown:a,onKeyup:c,onClick:d};return xt({ourProps:S,theirProps:b,slot:y,attrs:t,slots:n,name:"ListboxButton"})}}}),_v=ge({name:"ListboxOptions",props:{as:{type:[Object,String],default:"ul"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){var o;let i=(o=e.id)!=null?o:`headlessui-listbox-options-${qt()}`,l=Ja("ListboxOptions"),a=$e(null);r({el:l.optionsRef,$el:l.optionsRef});function c(h){switch(a.value&&clearTimeout(a.value),h.key){case at.Space:if(l.searchQuery.value!=="")return h.preventDefault(),h.stopPropagation(),l.search(h.key);case at.Enter:if(h.preventDefault(),h.stopPropagation(),l.activeOptionIndex.value!==null){let v=l.options.value[l.activeOptionIndex.value];l.select(v.dataRef.value)}l.mode.value===0&&(l.closeListbox(),sn(()=>{var v;return(v=de(l.buttonRef))==null?void 0:v.focus({preventScroll:!0})}));break;case kt(l.orientation.value,{vertical:at.ArrowDown,horizontal:at.ArrowRight}):return h.preventDefault(),h.stopPropagation(),l.goToOption(Ct.Next);case kt(l.orientation.value,{vertical:at.ArrowUp,horizontal:at.ArrowLeft}):return h.preventDefault(),h.stopPropagation(),l.goToOption(Ct.Previous);case at.Home:case at.PageUp:return h.preventDefault(),h.stopPropagation(),l.goToOption(Ct.First);case at.End:case at.PageDown:return h.preventDefault(),h.stopPropagation(),l.goToOption(Ct.Last);case at.Escape:h.preventDefault(),h.stopPropagation(),l.closeListbox(),sn(()=>{var v;return(v=de(l.buttonRef))==null?void 0:v.focus({preventScroll:!0})});break;case at.Tab:h.preventDefault(),h.stopPropagation();break;default:h.key.length===1&&(l.search(h.key),a.value=setTimeout(()=>l.clearSearch(),350));break}}let d=vi(),p=fe(()=>d!==null?(d.value&Lt.Open)===Lt.Open:l.listboxState.value===0);return()=>{var h,v;let y={open:l.listboxState.value===0},{...b}=e,S={"aria-activedescendant":l.activeOptionIndex.value===null||(h=l.options.value[l.activeOptionIndex.value])==null?void 0:h.id,"aria-multiselectable":l.mode.value===1?!0:void 0,"aria-labelledby":(v=de(l.buttonRef))==null?void 0:v.id,"aria-orientation":l.orientation.value,id:i,onKeydown:c,role:"listbox",tabIndex:0,ref:l.optionsRef};return xt({ourProps:S,theirProps:b,slot:y,attrs:t,slots:n,features:ur.RenderStrategy|ur.Static,visible:p.value,name:"ListboxOptions"})}}}),bv=ge({name:"ListboxOption",props:{as:{type:[Object,String],default:"li"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1},id:{type:String,default:null}},setup(e,{slots:t,attrs:n,expose:r}){var o;let i=(o=e.id)!=null?o:`headlessui-listbox-option-${qt()}`,l=Ja("ListboxOption"),a=$e(null);r({el:a,$el:a});let c=fe(()=>l.activeOptionIndex.value!==null?l.options.value[l.activeOptionIndex.value].id===i:!1),d=fe(()=>kt(l.mode.value,{0:()=>l.compare(He(l.value.value),He(e.value)),1:()=>He(l.value.value).some(E=>l.compare(He(E),He(e.value)))})),p=fe(()=>kt(l.mode.value,{1:()=>{var E;let O=He(l.value.value);return((E=l.options.value.find($=>O.some(P=>l.compare(He(P),He($.dataRef.value)))))==null?void 0:E.id)===i},0:()=>d.value})),h=KH(a),v=fe(()=>({disabled:e.disabled,value:e.value,get textValue(){return h()},domRef:a}));wt(()=>l.registerOption(i,v)),en(()=>l.unregisterOption(i)),wt(()=>{Ut([l.listboxState,d],()=>{l.listboxState.value===0&&d.value&&kt(l.mode.value,{1:()=>{p.value&&l.goToOption(Ct.Specific,i)},0:()=>{l.goToOption(Ct.Specific,i)}})},{immediate:!0})}),Vt(()=>{l.listboxState.value===0&&c.value&&l.activationTrigger.value!==0&&sn(()=>{var E,O;return(O=(E=de(a))==null?void 0:E.scrollIntoView)==null?void 0:O.call(E,{block:"nearest"})})});function y(E){if(e.disabled)return E.preventDefault();l.select(e.value),l.mode.value===0&&(l.closeListbox(),sn(()=>{var O;return(O=de(l.buttonRef))==null?void 0:O.focus({preventScroll:!0})}))}function b(){if(e.disabled)return l.goToOption(Ct.Nothing);l.goToOption(Ct.Specific,i)}let S=oT();function T(E){S.update(E)}function C(E){S.wasMoved(E)&&(e.disabled||c.value||l.goToOption(Ct.Specific,i,0))}function w(E){S.wasMoved(E)&&(e.disabled||c.value&&l.goToOption(Ct.Nothing))}return()=>{let{disabled:E}=e,O={active:c.value,selected:d.value,disabled:E},{value:$,disabled:P,...R}=e,k={id:i,ref:a,role:"option",tabIndex:E===!0?void 0:-1,"aria-disabled":E===!0?!0:void 0,"aria-selected":d.value,disabled:void 0,onClick:y,onFocus:b,onPointerenter:T,onMouseenter:T,onPointermove:C,onMousemove:C,onPointerleave:w,onMouseleave:w};return xt({ourProps:k,theirProps:R,slot:O,attrs:n,slots:t,name:"ListboxOption"})}}});var QH=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(QH||{});let kT=Symbol("PopoverContext");function df(e){let t=Ft(kT,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <${LT.name} /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,df),n}return t}let IT=Symbol("PopoverGroupContext");function PT(){return Ft(IT,null)}let RT=Symbol("PopoverPanelContext");function ez(){return Ft(RT,null)}let LT=ge({name:"Popover",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:n,expose:r}){var o;let i=$e(null);r({el:i,$el:i});let l=$e(1),a=$e(null),c=$e(null),d=$e(null),p=$e(null),h=fe(()=>Gr(i)),v=fe(()=>{var $,P;if(!de(a)||!de(p))return!1;for(let X of document.querySelectorAll("body > *"))if(Number(X==null?void 0:X.contains(de(a)))^Number(X==null?void 0:X.contains(de(p))))return!0;let R=sf(),k=R.indexOf(de(a)),W=(k+R.length-1)%R.length,U=(k+1)%R.length,j=R[W],G=R[U];return!(($=de(p))!=null&&$.contains(j))&&!((P=de(p))!=null&&P.contains(G))}),y={popoverState:l,buttonId:$e(null),panelId:$e(null),panel:p,button:a,isPortalled:v,beforePanelSentinel:c,afterPanelSentinel:d,togglePopover(){l.value=kt(l.value,{0:1,1:0})},closePopover(){l.value!==1&&(l.value=1)},close($){y.closePopover();let P=$?$ instanceof HTMLElement?$:$.value instanceof HTMLElement?de($):de(y.button):de(y.button);P==null||P.focus()}};Qt(kT,y),cf(fe(()=>kt(l.value,{0:Lt.Open,1:Lt.Closed})));let b={buttonId:y.buttonId,panelId:y.panelId,close(){y.closePopover()}},S=PT(),T=S==null?void 0:S.registerPopover,[C,w]=CT(),E=wT({mainTreeNodeRef:S==null?void 0:S.mainTreeNodeRef,portals:C,defaultContainers:[a,p]});function O(){var $,P,R,k;return(k=S==null?void 0:S.isFocusWithinPopoverGroup())!=null?k:(($=h.value)==null?void 0:$.activeElement)&&(((P=de(a))==null?void 0:P.contains(h.value.activeElement))||((R=de(p))==null?void 0:R.contains(h.value.activeElement)))}return Vt(()=>T==null?void 0:T(b)),hv((o=h.value)==null?void 0:o.defaultView,"focus",$=>{var P,R;$.target!==window&&$.target instanceof HTMLElement&&l.value===0&&(O()||a&&p&&(E.contains($.target)||(P=de(y.beforePanelSentinel))!=null&&P.contains($.target)||(R=de(y.afterPanelSentinel))!=null&&R.contains($.target)||y.closePopover()))},!0),af(E.resolveContainers,($,P)=>{var R;y.closePopover(),cv(P,lf.Loose)||($.preventDefault(),(R=de(a))==null||R.focus())},fe(()=>l.value===0)),()=>{let $={open:l.value===0,close:y.close};return pt(Me,[pt(w,{},()=>xt({theirProps:{...e,...n},ourProps:{ref:i},slot:$,slots:t,attrs:n,name:"Popover"})),pt(E.MainTreeNode)])}}}),tz=ge({name:"PopoverButton",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1},id:{type:String,default:null}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:r}){var o;let i=(o=e.id)!=null?o:`headlessui-popover-button-${qt()}`,l=df("PopoverButton"),a=fe(()=>Gr(l.button));r({el:l.button,$el:l.button}),wt(()=>{l.buttonId.value=i}),en(()=>{l.buttonId.value=null});let c=PT(),d=c==null?void 0:c.closeOthers,p=ez(),h=fe(()=>p===null?!1:p.value===l.panelId.value),v=$e(null),y=`headlessui-focus-sentinel-${qt()}`;h.value||Vt(()=>{l.button.value=de(v)});let b=uf(fe(()=>({as:e.as,type:t.type})),v);function S($){var P,R,k,W,U;if(h.value){if(l.popoverState.value===1)return;switch($.key){case at.Space:case at.Enter:$.preventDefault(),(R=(P=$.target).click)==null||R.call(P),l.closePopover(),(k=de(l.button))==null||k.focus();break}}else switch($.key){case at.Space:case at.Enter:$.preventDefault(),$.stopPropagation(),l.popoverState.value===1&&(d==null||d(l.buttonId.value)),l.togglePopover();break;case at.Escape:if(l.popoverState.value!==0)return d==null?void 0:d(l.buttonId.value);if(!de(l.button)||(W=a.value)!=null&&W.activeElement&&!((U=de(l.button))!=null&&U.contains(a.value.activeElement)))return;$.preventDefault(),$.stopPropagation(),l.closePopover();break}}function T($){h.value||$.key===at.Space&&$.preventDefault()}function C($){var P,R;e.disabled||(h.value?(l.closePopover(),(P=de(l.button))==null||P.focus()):($.preventDefault(),$.stopPropagation(),l.popoverState.value===1&&(d==null||d(l.buttonId.value)),l.togglePopover(),(R=de(l.button))==null||R.focus()))}function w($){$.preventDefault(),$.stopPropagation()}let E=mv();function O(){let $=de(l.panel);if(!$)return;function P(){kt(E.value,{[_r.Forwards]:()=>no($,Mn.First),[_r.Backwards]:()=>no($,Mn.Last)})===Ca.Error&&no(sf().filter(R=>R.dataset.headlessuiFocusGuard!=="true"),kt(E.value,{[_r.Forwards]:Mn.Next,[_r.Backwards]:Mn.Previous}),{relativeTo:de(l.button)})}P()}return()=>{let $=l.popoverState.value===0,P={open:$},{...R}=e,k=h.value?{ref:v,type:b.value,onKeydown:S,onClick:C}:{ref:v,id:i,type:b.value,"aria-expanded":l.popoverState.value===0,"aria-controls":de(l.panel)?l.panelId.value:void 0,disabled:e.disabled?!0:void 0,onKeydown:S,onKeyup:T,onClick:C,onMousedown:w};return pt(Me,[xt({ourProps:k,theirProps:{...t,...R},slot:P,attrs:t,slots:n,name:"PopoverButton"}),$&&!h.value&&l.isPortalled.value&&pt(To,{id:y,features:lo.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:O})])}}});ge({name:"PopoverOverlay",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0}},setup(e,{attrs:t,slots:n}){let r=df("PopoverOverlay"),o=`headlessui-popover-overlay-${qt()}`,i=vi(),l=fe(()=>i!==null?(i.value&Lt.Open)===Lt.Open:r.popoverState.value===0);function a(){r.closePopover()}return()=>{let c={open:r.popoverState.value===0};return xt({ourProps:{id:o,"aria-hidden":!0,onClick:a},theirProps:e,slot:c,attrs:t,slots:n,features:ur.RenderStrategy|ur.Static,visible:l.value,name:"PopoverOverlay"})}}});let nz=ge({name:"PopoverPanel",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},focus:{type:Boolean,default:!1},id:{type:String,default:null}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:r}){var o;let i=(o=e.id)!=null?o:`headlessui-popover-panel-${qt()}`,{focus:l}=e,a=df("PopoverPanel"),c=fe(()=>Gr(a.panel)),d=`headlessui-focus-sentinel-before-${qt()}`,p=`headlessui-focus-sentinel-after-${qt()}`;r({el:a.panel,$el:a.panel}),wt(()=>{a.panelId.value=i}),en(()=>{a.panelId.value=null}),Qt(RT,a.panelId),Vt(()=>{var w,E;if(!l||a.popoverState.value!==0||!a.panel)return;let O=(w=c.value)==null?void 0:w.activeElement;(E=de(a.panel))!=null&&E.contains(O)||no(de(a.panel),Mn.First)});let h=vi(),v=fe(()=>h!==null?(h.value&Lt.Open)===Lt.Open:a.popoverState.value===0);function y(w){var E,O;switch(w.key){case at.Escape:if(a.popoverState.value!==0||!de(a.panel)||c.value&&!((E=de(a.panel))!=null&&E.contains(c.value.activeElement)))return;w.preventDefault(),w.stopPropagation(),a.closePopover(),(O=de(a.button))==null||O.focus();break}}function b(w){var E,O,$,P,R;let k=w.relatedTarget;k&&de(a.panel)&&((E=de(a.panel))!=null&&E.contains(k)||(a.closePopover(),(($=(O=de(a.beforePanelSentinel))==null?void 0:O.contains)!=null&&$.call(O,k)||(R=(P=de(a.afterPanelSentinel))==null?void 0:P.contains)!=null&&R.call(P,k))&&k.focus({preventScroll:!0})))}let S=mv();function T(){let w=de(a.panel);if(!w)return;function E(){kt(S.value,{[_r.Forwards]:()=>{var O;no(w,Mn.First)===Ca.Error&&((O=de(a.afterPanelSentinel))==null||O.focus())},[_r.Backwards]:()=>{var O;(O=de(a.button))==null||O.focus({preventScroll:!0})}})}E()}function C(){let w=de(a.panel);if(!w)return;function E(){kt(S.value,{[_r.Forwards]:()=>{let O=de(a.button),$=de(a.panel);if(!O)return;let P=sf(),R=P.indexOf(O),k=P.slice(0,R+1),W=[...P.slice(R+1),...k];for(let U of W.slice())if(U.dataset.headlessuiFocusGuard==="true"||$!=null&&$.contains(U)){let j=W.indexOf(U);j!==-1&&W.splice(j,1)}no(W,Mn.First,{sorted:!1})},[_r.Backwards]:()=>{var O;no(w,Mn.Previous)===Ca.Error&&((O=de(a.button))==null||O.focus())}})}E()}return()=>{let w={open:a.popoverState.value===0,close:a.close},{focus:E,...O}=e,$={ref:a.panel,id:i,onKeydown:y,onFocusout:l&&a.popoverState.value===0?b:void 0,tabIndex:-1};return xt({ourProps:$,theirProps:{...t,...O},attrs:t,slot:w,slots:{...n,default:(...P)=>{var R;return[pt(Me,[v.value&&a.isPortalled.value&&pt(To,{id:d,ref:a.beforePanelSentinel,features:lo.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:T}),(R=n.default)==null?void 0:R.call(n,...P),v.value&&a.isPortalled.value&&pt(To,{id:p,ref:a.afterPanelSentinel,features:lo.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:C})])]}},features:ur.RenderStrategy|ur.Static,visible:v.value,name:"PopoverPanel"})}}});ge({name:"PopoverGroup",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"}},setup(e,{attrs:t,slots:n,expose:r}){let o=$e(null),i=gd([]),l=fe(()=>Gr(o)),a=LH();r({el:o,$el:o});function c(v){let y=i.value.indexOf(v);y!==-1&&i.value.splice(y,1)}function d(v){return i.value.push(v),()=>{c(v)}}function p(){var v;let y=l.value;if(!y)return!1;let b=y.activeElement;return(v=de(o))!=null&&v.contains(b)?!0:i.value.some(S=>{var T,C;return((T=y.getElementById(S.buttonId.value))==null?void 0:T.contains(b))||((C=y.getElementById(S.panelId.value))==null?void 0:C.contains(b))})}function h(v){for(let y of i.value)y.buttonId.value!==v&&y.close()}return Qt(IT,{registerPopover:d,unregisterPopover:c,isFocusWithinPopoverGroup:p,closeOthers:h,mainTreeNodeRef:a.mainTreeNodeRef}),()=>pt(Me,[xt({ourProps:{ref:o},theirProps:{...e,...t},slot:{},attrs:t,slots:n,name:"PopoverGroup"}),pt(a.MainTreeNode)])}});let FT=Symbol("LabelContext");function NT(){let e=Ft(FT,null);if(e===null){let t=new Error("You used a <Label /> component, but it is not inside a parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,NT),t}return e}function rz({slot:e={},name:t="Label",props:n={}}={}){let r=$e([]);function o(i){return r.value.push(i),()=>{let l=r.value.indexOf(i);l!==-1&&r.value.splice(l,1)}}return Qt(FT,{register:o,slot:e,name:t,props:n}),fe(()=>r.value.length>0?r.value.join(" "):void 0)}let oz=ge({name:"Label",props:{as:{type:[Object,String],default:"label"},passive:{type:[Boolean],default:!1},id:{type:String,default:null}},setup(e,{slots:t,attrs:n}){var r;let o=(r=e.id)!=null?r:`headlessui-label-${qt()}`,i=NT();return wt(()=>en(i.register(o))),()=>{let{name:l="Label",slot:a={},props:c={}}=i,{passive:d,...p}=e,h={...Object.entries(c).reduce((v,[y,b])=>Object.assign(v,{[y]:vn(b)}),{}),id:o};return d&&(delete h.onClick,delete h.htmlFor,delete p.onClick),xt({ourProps:h,theirProps:p,slot:a,attrs:n,slots:t,name:l})}}}),MT=Symbol("GroupContext"),sz=ge({name:"SwitchGroup",props:{as:{type:[Object,String],default:"template"}},setup(e,{slots:t,attrs:n}){let r=$e(null),o=rz({name:"SwitchLabel",props:{htmlFor:fe(()=>{var l;return(l=r.value)==null?void 0:l.id}),onClick(l){r.value&&(l.currentTarget.tagName==="LABEL"&&l.preventDefault(),r.value.click(),r.value.focus({preventScroll:!0}))}}}),i=xT({name:"SwitchDescription"});return Qt(MT,{switchRef:r,labelledby:o,describedby:i}),()=>xt({theirProps:e,ourProps:{},slot:{},slots:t,attrs:n,name:"SwitchGroup"})}}),DT=ge({name:"Switch",emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:"button"},modelValue:{type:Boolean,default:void 0},defaultChecked:{type:Boolean,optional:!0},form:{type:String,optional:!0},name:{type:String,optional:!0},value:{type:String,optional:!0},id:{type:String,default:null},disabled:{type:Boolean,default:!1},tabIndex:{type:Number,default:0}},inheritAttrs:!1,setup(e,{emit:t,attrs:n,slots:r,expose:o}){var i;let l=(i=e.id)!=null?i:`headlessui-switch-${qt()}`,a=Ft(MT,null),[c,d]=av(fe(()=>e.modelValue),w=>t("update:modelValue",w),fe(()=>e.defaultChecked));function p(){d(!c.value)}let h=$e(null),v=a===null?h:a.switchRef,y=uf(fe(()=>({as:e.as,type:n.type})),v);o({el:v,$el:v});function b(w){w.preventDefault(),p()}function S(w){w.key===at.Space?(w.preventDefault(),p()):w.key===at.Enter&&mH(w.currentTarget)}function T(w){w.preventDefault()}let C=fe(()=>{var w,E;return(E=(w=de(v))==null?void 0:w.closest)==null?void 0:E.call(w,"form")});return wt(()=>{Ut([C],()=>{if(!C.value||e.defaultChecked===void 0)return;function w(){d(e.defaultChecked)}return C.value.addEventListener("reset",w),()=>{var E;(E=C.value)==null||E.removeEventListener("reset",w)}},{immediate:!0})}),()=>{let{name:w,value:E,form:O,tabIndex:$,...P}=e,R={checked:c.value},k={id:l,ref:v,role:"switch",type:y.value,tabIndex:$===-1?0:$,"aria-checked":c.value,"aria-labelledby":a==null?void 0:a.labelledby.value,"aria-describedby":a==null?void 0:a.describedby.value,onClick:b,onKeyup:S,onKeypress:T};return pt(Me,[w!=null&&c.value!=null?pt(To,fv({features:lo.Hidden,as:"input",type:"checkbox",hidden:!0,readOnly:!0,checked:c.value,form:O,disabled:P.disabled,name:w,value:E})):null,xt({ourProps:k,theirProps:{...n,...gi(P,["modelValue","defaultChecked"])},slot:R,attrs:n,slots:r,name:"Switch"})])}}}),iz=oz;function lz(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function ah(e,...t){e&&t.length>0&&e.classList.add(...t)}function dc(e,...t){e&&t.length>0&&e.classList.remove(...t)}var fm=(e=>(e.Finished="finished",e.Cancelled="cancelled",e))(fm||{});function az(e,t){let n=xs();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:o}=getComputedStyle(e),[i,l]=[r,o].map(a=>{let[c=0]=a.split(",").filter(Boolean).map(d=>d.includes("ms")?parseFloat(d):parseFloat(d)*1e3).sort((d,p)=>p-d);return c});return i!==0?n.setTimeout(()=>t("finished"),i+l):t("finished"),n.add(()=>t("cancelled")),n.dispose}function yb(e,t,n,r,o,i){let l=xs(),a=i!==void 0?lz(i):()=>{};return dc(e,...o),ah(e,...t,...n),l.nextFrame(()=>{dc(e,...n),ah(e,...r),l.add(az(e,c=>(dc(e,...r,...t),ah(e,...o),a(c))))}),l.add(()=>dc(e,...t,...n,...r,...o)),l.add(()=>a("cancelled")),l.dispose}function Hs(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let wv=Symbol("TransitionContext");var uz=(e=>(e.Visible="visible",e.Hidden="hidden",e))(uz||{});function cz(){return Ft(wv,null)!==null}function dz(){let e=Ft(wv,null);if(e===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return e}function fz(){let e=Ft(Sv,null);if(e===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return e}let Sv=Symbol("NestingContext");function ff(e){return"children"in e?ff(e.children):e.value.filter(({state:t})=>t==="visible").length>0}function UT(e){let t=$e([]),n=$e(!1);wt(()=>n.value=!0),en(()=>n.value=!1);function r(i,l=gs.Hidden){let a=t.value.findIndex(({id:c})=>c===i);a!==-1&&(kt(l,{[gs.Unmount](){t.value.splice(a,1)},[gs.Hidden](){t.value[a].state="hidden"}}),!ff(t)&&n.value&&(e==null||e()))}function o(i){let l=t.value.find(({id:a})=>a===i);return l?l.state!=="visible"&&(l.state="visible"):t.value.push({id:i,state:"visible"}),()=>r(i,gs.Unmount)}return{children:t,register:o,unregister:r}}let BT=ur.RenderStrategy,jT=ge({props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(e,{emit:t,attrs:n,slots:r,expose:o}){let i=$e(0);function l(){i.value|=Lt.Opening,t("beforeEnter")}function a(){i.value&=~Lt.Opening,t("afterEnter")}function c(){i.value|=Lt.Closing,t("beforeLeave")}function d(){i.value&=~Lt.Closing,t("afterLeave")}if(!cz()&&fH())return()=>pt(VT,{...e,onBeforeEnter:l,onAfterEnter:a,onBeforeLeave:c,onAfterLeave:d},r);let p=$e(null),h=fe(()=>e.unmount?gs.Unmount:gs.Hidden);o({el:p,$el:p});let{show:v,appear:y}=dz(),{register:b,unregister:S}=fz(),T=$e(v.value?"visible":"hidden"),C={value:!0},w=qt(),E={value:!1},O=UT(()=>{!E.value&&T.value!=="hidden"&&(T.value="hidden",S(w),d())});wt(()=>{let X=b(w);en(X)}),Vt(()=>{if(h.value===gs.Hidden&&w){if(v.value&&T.value!=="visible"){T.value="visible";return}kt(T.value,{hidden:()=>S(w),visible:()=>b(w)})}});let $=Hs(e.enter),P=Hs(e.enterFrom),R=Hs(e.enterTo),k=Hs(e.entered),W=Hs(e.leave),U=Hs(e.leaveFrom),j=Hs(e.leaveTo);wt(()=>{Vt(()=>{if(T.value==="visible"){let X=de(p);if(X instanceof Comment&&X.data==="")throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}})});function G(X){let ne=C.value&&!y.value,xe=de(p);!xe||!(xe instanceof HTMLElement)||ne||(E.value=!0,v.value&&l(),v.value||c(),X(v.value?yb(xe,$,P,R,k,Ee=>{E.value=!1,Ee===fm.Finished&&a()}):yb(xe,W,U,j,k,Ee=>{E.value=!1,Ee===fm.Finished&&(ff(O)||(T.value="hidden",S(w),d()))})))}return wt(()=>{Ut([v],(X,ne,xe)=>{G(xe),C.value=!1},{immediate:!0})}),Qt(Sv,O),cf(fe(()=>kt(T.value,{visible:Lt.Open,hidden:Lt.Closed})|i.value)),()=>{let{appear:X,show:ne,enter:xe,enterFrom:Ee,enterTo:ke,entered:Ie,leave:Qe,leaveFrom:ht,leaveTo:De,...Xe}=e,Q={ref:p},ce={...Xe,...y.value&&v.value&&Xa.isServer?{class:gt([n.class,Xe.class,...$,...P])}:{}};return xt({theirProps:ce,ourProps:Q,slot:{},slots:r,attrs:n,features:BT,visible:T.value==="visible",name:"TransitionChild"})}}}),pz=jT,VT=ge({inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(e,{emit:t,attrs:n,slots:r}){let o=vi(),i=fe(()=>e.show===null&&o!==null?(o.value&Lt.Open)===Lt.Open:e.show);Vt(()=>{if(![!0,!1].includes(i.value))throw new Error('A <Transition /> is used but it is missing a `:show="true | false"` prop.')});let l=$e(i.value?"visible":"hidden"),a=UT(()=>{l.value="hidden"}),c=$e(!0),d={show:i,appear:fe(()=>e.appear||!c.value)};return wt(()=>{Vt(()=>{c.value=!1,i.value?l.value="visible":ff(a)||(l.value="hidden")})}),Qt(Sv,a),Qt(wv,d),()=>{let p=gi(e,["show","appear","unmount","onBeforeEnter","onBeforeLeave","onAfterEnter","onAfterLeave"]),h={unmount:e.unmount};return xt({ourProps:{...h,as:"template"},theirProps:{},slot:{},slots:{...r,default:()=>[pt(pz,{onBeforeEnter:()=>t("beforeEnter"),onAfterEnter:()=>t("afterEnter"),onBeforeLeave:()=>t("beforeLeave"),onAfterLeave:()=>t("afterLeave"),...n,...h,...p},r.default)]},attrs:{},features:BT,visible:l.value==="visible",name:"Transition"})}}});const hz=ge({components:{Dialog:HH,DialogOverlay:zH,TransitionChild:jT,TransitionRoot:VT,XIcon:ml},props:{open:{type:Boolean,default:!0},size:{type:String,default:"small"}},methods:{close(){this.$emit("close")}}}),mz={class:"fixed inset-0 overflow-y-auto font-sans",style:{"z-index":"10000"}},gz={class:"flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0"},vz=m("span",{class:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true"},"",-1),yz={class:"hidden sm:block absolute top-0 right-0 pt-4 pr-4"},_z=m("span",{class:"sr-only"},"Close",-1);function bz(e,t,n,r,o,i){const l=q("DialogOverlay"),a=q("TransitionChild"),c=q("XIcon"),d=q("Dialog"),p=q("TransitionRoot");return I(),Ye(p,{as:"template",show:e.open},{default:_e(()=>[z(d,{as:"div",onClose:t[1]||(t[1]=h=>e.close()),"data-client":"podlove"},{default:_e(()=>[m("div",mz,[m("div",gz,[z(a,{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"ease-in duration-200","leave-from":"opacity-100","leave-to":"opacity-0"},{default:_e(()=>[z(l,{class:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"})]),_:1}),vz,z(a,{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95","enter-to":"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200","leave-from":"opacity-100 translate-y-0 sm:scale-100","leave-to":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"},{default:_e(()=>[m("div",{class:gt(["relative inline-block align-bottom bg-white rounded-lg px-4 pt-5 pb-4 text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:w-full sm:p-6",{"sm:max-w-sm":e.size==="small","sm:max-w-md":e.size==="medium"}])},[m("div",yz,[m("button",{type:"button",class:"bg-white rounded-md text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",onClick:t[0]||(t[0]=h=>e.close())},[_z,z(c,{class:"h-6 w-6","aria-hidden":"true"})])]),yn(e.$slots,"default")],2)]),_:3})])])]),_:3})]),_:3},8,["show"])}const Za=Le(hz,[["render",bz]]),wz=ge({props:{variant:{type:String,default:"default"},size:{type:String,default:"medium"},disabled:{type:Boolean,default:!1}},computed:{variantClass(){switch(this.variant){case"default":return"focus:outline-none text-gray-700 bg-white border border-gray-300 hover:bg-gray-50 focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 disabled:bg-gray-100";case"primary":return"focus:ring-offset-2 text-white focus:ring-indigo-500 bg-indigo-600 hover:bg-indigo-700 disabled:bg-indigo-300";case"primary-disabled":return"focus:ring-offset-2 text-white focus:ring-indigo-500 bg-indigo-600 opacity-50 cursor-not-allowed";case"secondary":return"focus:ring-offset-2 text-indigo-700 focus:ring-indigo-500 bg-indigo-100 hover:bg-indigo-200 disabled:bg-indigo-50";case"secondary-disabled":return"focus:ring-offset-2 text-indigo-700 focus:ring-indigo-500 bg-indigo-100 disabled:bg-indigo-50 opacity-50 cursor-not-allowed";case"danger":return"bg-red-600 text-white hover:bg-red-700 focus:ring-2 focus:ring-offset-2 focus:ring-red-500 disabled:bg-red-300"}},sizeClass(){switch(this.size){case"small":return"px-2.5 py-1.5 text-xs font-medium rounded ";case"medium":return"px-3 py-2 text-sm leading-4 font-medium rounded-md";case"large":return"px-6 py-3 text-base font-medium rounded-md"}}}}),Sz=["disabled"];function Ez(e,t,n,r,o,i){return I(),F("button",{type:"button",class:gt(["inline-flex items-center focus:outline-none focus:ring-2 border border-transparent shadow-sm whitespace-nowrap disabled:opacity-75",[e.variantClass,e.sizeClass]]),disabled:e.disabled},[yn(e.$slots,"default")],10,Sz)}const Pn=Le(wz,[["render",Ez]]),$z=ge({components:{PodloveButton:Pn,Modal:Za,PencilIcon:Jx,XIcon:ml},setup(){return{state:ut({poster:B.episode.poster,episodePoster:B.episode.episodePoster,asset:B.settings.imageAsset}),dispatch:Ze().dispatch}},data(){return{modalOpen:!1,inputValue:null}},computed:{posterStyle(){const e=this.state.episodePoster||this.state.poster;return e===null?{}:{"background-image":`url(${e})`}}},methods:{openModal(){this.modalOpen=!0},closeModal(){this.modalOpen=!1},selectImage(){this.dispatch(kM())},updatePoster(e){const t=Y.get(e,["target","value"],null);this.dispatch(bt({prop:"episode_poster",value:t}))}}}),xz={class:"border-gray-200 border-b pb-2 px-4 -mx-6 mb-4"},Tz={class:"text-lg leading-6 font-medium text-gray-900"},Cz={class:"relative"},Oz=["value"],Az=["title"],kz={class:"mt-2 text-sm text-gray-500"},Iz={class:"mt-2 flex justify-end"},Pz={class:"block text-sm font-medium text-gray-700"},Rz={key:0,class:"absolute z-10 left-0 top-0 w-full h-full flex justify-center items-center bg-white bg-opacity-40 hover:opacity-0 text-gray-500 opacity-100"},Lz={key:1,class:"absolute z-10 left-0 top-0 w-full h-full flex flex-col justify-center items-center bg-white bg-opacity-50 text-gray-500 opacity-0 hover:opacity-100"},Fz={class:"w-full text-center"},Nz={class:"w-full text-center"},Mz={class:"w-full text-center"};function Dz(e,t,n,r,o,i){const l=q("x-icon"),a=q("podlove-button"),c=q("modal"),d=q("pencil-icon");return I(),F("div",null,[z(c,{size:"medium",open:e.modalOpen,onClose:t[3]||(t[3]=p=>e.closeModal())},{default:_e(()=>[m("div",xz,[m("h3",Tz,L(e.__("Episode Poster","podlove-podcasting-plugin-for-wordpress")),1)]),m("div",Cz,[m("input",{name:"episode-poster",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md pr-8",value:e.state.episodePoster,onChange:t[0]||(t[0]=p=>e.updatePoster(p))},null,40,Oz),m("button",{class:"absolute right-2 top-1/2 -mt-3 text-gray-400 hover:text-gray-700",title:e.__("Clear Input","podlove-podcasting-plugin-for-wordpress"),onClick:t[1]||(t[1]=p=>e.updatePoster(null))},[z(l,{class:"w-6 h-6"})],8,Az)]),m("p",kz,L(e.__("Enter URL or select image from media library. Apple/iTunes recommends 3000 x 3000 pixel JPG or PNG","podlove-podcasting-plugin-for-wordpress")),1),m("p",Iz,[z(a,{variant:"primary",onClick:t[2]||(t[2]=p=>e.closeModal())},{default:_e(()=>[Be(L(e.__("Use this URL","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})])]),_:1},8,["open"]),m("label",Pz,L(e.__("Poster","podlove-podcasting-plugin-for-wordpress")),1),m("div",{class:"border shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block relative w-44 h-44 sm:text-sm border-gray-300 rounded-md mt-1 overflow-hidden bg-cover bg-no-repeat bg-center",style:so(e.posterStyle)},[e.state.asset==="manual"?(I(),F("div",Rz,[z(d,{class:"h-6 w-6","aria-hidden":"true"})])):Te("",!0),e.state.asset==="manual"?(I(),F("div",Lz,[z(a,{onClick:t[4]||(t[4]=p=>e.openModal()),class:"w-32 mb-2"},{default:_e(()=>[m("span",Fz,L(e.__("URL","podlove-podcasting-plugin-for-wordpress")),1)]),_:1}),z(a,{class:"w-32 text-center mb-2",onClick:t[5]||(t[5]=p=>e.selectImage())},{default:_e(()=>[m("span",Nz,L(e.__("Media","podlove-podcasting-plugin-for-wordpress")),1)]),_:1}),z(a,{variant:"danger",class:"w-32 text-center",disabled:e.state.episodePoster===null,onClick:t[6]||(t[6]=p=>e.updatePoster(null))},{default:_e(()=>[m("span",Mz,L(e.__("Reset","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["disabled"])])):Te("",!0)],4)])}const Uz=Le($z,[["render",Dz]]),Bz=ge({components:{Module:In},setup(){return{state:ut({number:B.episode.number}),dispatch:Ze().dispatch}},methods:{updateNumber(e){this.dispatch(bt({prop:"number",value:e.target.value}))}}}),jz={for:"episode-number",class:"block text-sm font-medium text-gray-700"},Vz={class:"mt-1 mb-1"},Hz=["value"],zz={class:"mt-2 text-sm text-gray-500"};function Wz(e,t,n,r,o,i){return I(),F("div",null,[m("label",jz,L(e.__("Number","podlove-podcasting-plugin-for-wordpress")),1),m("div",Vz,[m("input",{name:"episode-number",type:"number",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",value:e.state.number,onInput:t[0]||(t[0]=l=>e.updateNumber(l))},null,40,Hz)]),m("p",zz,L(e.__("An episode number (1, 2, 3 etc.)","podlove-podcasting-plugin-for-wordpress")),1)])}const qz=Le(Bz,[["render",Wz]]),Kz=ge({setup(){return{state:ut({explicit:B.episode.explicit}),dispatch:Ze().dispatch}},methods:{updateExplicit(e){this.dispatch(bt({prop:"explicit",value:e.target.checked}))}}}),Gz={class:"relative flex items-start"},Xz={class:"flex items-center h-5"},Yz=["checked"],Jz={class:"ml-3 text-sm"},Zz={for:"explicit-content",class:"font-medium text-gray-700"},Qz={class:"text-gray-500"};function eW(e,t,n,r,o,i){return I(),F("div",Gz,[m("div",Xz,[m("input",{id:"explicit-content",type:"checkbox",class:"focus:ring-indigo-500 h-4 w-4 text-indigo-600 border-gray-300 rounded",checked:e.state.explicit,onInput:t[0]||(t[0]=l=>e.updateExplicit(l))},null,40,Yz)]),m("div",Jz,[m("label",Zz,L(e.state.explicit?e.__("Explicit Content!","podlove-podcasting-plugin-for-wordpress"):e.__("Explicit Content?","podlove-podcasting-plugin-for-wordpress")),1),m("p",Qz,L(e.__("For example, profanity or content that may not be suitable for children","podlove-podcasting-plugin-for-wordpress")),1)])])}const tW=Le(Kz,[["render",eW]]),nW=ge({components:{Module:In},setup(){return{state:ut({title:B.episode.title,post_title:B.post.title}),dispatch:Ze().dispatch}},methods:{updateTitle(e){this.dispatch(bt({prop:"title",value:e.target.value}))}}}),rW={for:"episode-title",class:"block text-sm font-medium text-gray-700"},oW={class:"mt-1"},sW=["value","placeholder"],iW={class:"mt-2 text-sm text-gray-500"};function lW(e,t,n,r,o,i){return I(),F("div",null,[m("label",rW,L(e.__("Title","podlove-podcasting-plugin-for-wordpress")),1),m("div",oW,[m("input",{name:"episode-title",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",value:e.state.title,placeholder:e.state.post_title,onInput:t[0]||(t[0]=l=>e.updateTitle(l))},null,40,sW)]),m("p",iW,L(e.__("Clear, concise name for your episode. It is recommended to not include the podcast title, episode number, season number or date in this tag.","podlove-podcasting-plugin-for-wordpress")),1)])}const aW=Le(nW,[["render",lW]]),uW=ge({setup(){const e=ut({subtitle:B.episode.subtitle}),t=fe(()=>{var n;return 255-(((n=e==null?void 0:e.subtitle)==null?void 0:n.length)||"")});return{state:e,charactersLeft:t,dispatch:Ze().dispatch}},methods:{updateSubtitle(e){this.dispatch(bt({prop:"subtitle",value:e.target.value}))}}}),cW={for:"subtitle",class:"block text-sm font-medium text-gray-700"},dW={class:"mt-1"},fW=["value"],pW={class:"mt-2 text-sm text-gray-500 flex justify-between"};function hW(e,t,n,r,o,i){return I(),F("div",null,[m("label",cW,L(e.__("Subtitle","podlove-podcasting-plugin-for-wordpress")),1),m("div",dW,[m("textarea",{id:"subtitle",name:"subtitle",maxlength:"250",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 mt-1 block w-full sm:text-sm border border-gray-300 rounded-md resize-y",value:e.state.subtitle,onInput:t[0]||(t[0]=l=>e.updateSubtitle(l))},null,40,fW)]),m("p",pW,[m("span",null,L(e.__("Single sentence describing the episode.","podlove-podcasting-plugin-for-wordpress")),1),m("span",null,L(e.charactersLeft),1)])])}const mW=Le(uW,[["render",hW]]),gW=ge({setup(){const e=ut({summary:B.episode.summary}),t=fe(()=>{var n;return 4e3-(((n=e==null?void 0:e.summary)==null?void 0:n.length)||"")});return{state:e,charactersLeft:t,dispatch:Ze().dispatch}},methods:{updateSummary(e){this.dispatch(bt({prop:"summary",value:e.target.value}))}}}),vW={for:"summary",class:"block text-sm font-medium text-gray-700"},yW={class:"mt-1"},_W=["value"],bW={class:"mt-2 text-sm text-gray-500 flex justify-end"};function wW(e,t,n,r,o,i){return I(),F("div",null,[m("label",vW,L(e.__("Summary","podlove-podcasting-plugin-for-wordpress")),1),m("div",yW,[m("textarea",{id:"summary",name:"summary",maxlength:"4000",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 mt-1 block w-full sm:text-sm border border-gray-300 rounded-md resize-y",value:e.state.summary,onInput:t[0]||(t[0]=l=>e.updateSummary(l))},null,40,_W)]),m("p",bW,[m("span",null,L(e.charactersLeft),1)])])}const SW=Le(gW,[["render",wW]]),EW=ge({components:{Module:In},setup(){return{state:ut({type:B.episode.type}),dispatch:Ze().dispatch}},methods:{updateType(e){this.dispatch(bt({prop:"type",value:e.target.value}))}}}),$W={for:"episode-type",class:"block text-sm font-medium text-gray-700"},xW={class:"mt-1"},TW=["value"],CW={value:"full"},OW={value:"trailer"},AW={value:"bonus"},kW={class:"mt-2 text-sm text-gray-500"};function IW(e,t,n,r,o,i){return I(),F("div",null,[m("label",$W,L(e.__("Type","podlove-podcasting-plugin-for-wordpress")),1),m("div",xW,[m("select",{name:"episode-type",class:"block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm rounded-md",value:e.state.type,onInput:t[0]||(t[0]=l=>e.updateType(l))},[m("option",null,L(e.__("Please choose ...","podlove-podcasting-plugin-for-wordpress")),1),m("option",CW,L(e.__("full (complete content of an episode)","podlove-podcasting-plugin-for-wordpress")),1),m("option",OW,L(e.__("trailer (short, promotional piece of content that represents a preview of an episode)","podlove-podcasting-plugin-for-wordpress")),1),m("option",AW,L(e.__("bonus (extra content for an episode, for example behind the scenes information)","podlove-podcasting-plugin-for-wordpress")),1)],40,TW)]),m("p",kW,L(e.__("Episode type. May be used by podcast clients.","podlove-podcasting-plugin-for-wordpress")),1)])}const PW=Le(EW,[["render",IW]]),RW=ge({components:{Module:In,EpisodePoster:Uz,EpisodeNumber:qz,EpisodeContent:tW,EpisodeTitle:aW,EpisodeSubtitle:mW,EpisodeSummary:SW,EpisodeType:PW},setup(){return{state:ut({explicitContentEnabled:B.settings.enableEpisodeExplicit}),dispatch:Ze().dispatch}},created(){this.dispatch(zd())}}),LW={class:"p-3"},FW={class:"flex justify-items-stretch mb-5"},NW={class:"mb-2 w-full"},MW={class:"flex mb-5"},DW={class:"mb-5"},UW={class:"mb-5"};function BW(e,t,n,r,o,i){const l=q("episode-poster"),a=q("episode-number"),c=q("episode-content"),d=q("episode-type"),p=q("episode-title"),h=q("episode-subtitle"),v=q("episode-summary"),y=q("module");return I(),Ye(y,{name:"description",title:e.__("Episode Description","podlove-podcasting-plugin-for-wordpress")},{default:_e(()=>[m("div",LW,[m("div",FW,[z(l,{class:"mr-5"}),m("div",NW,[m("div",MW,[z(a,{class:"w-full"}),e.state.explicitContentEnabled?(I(),Ye(c,{key:0,class:"ml-5 w-full"})):Te("",!0)]),z(d,{class:"w-full"})])]),m("div",DW,[z(p,{class:"w-full"})]),m("div",UW,[z(h,{class:"w-full"})]),m("div",null,[z(v,{class:"w-full"})])])]),_:1},8,["title"])}const jW=Le(RW,[["render",BW]]),VW=ge({data(){return{visible:!1}},props:{name:String},methods:{}}),HW=["data-tab"];function zW(e,t,n,r,o,i){return I(),F("div",{class:"hidden","data-tab":e.name},[yn(e.$slots,"default")],8,HW)}const HT=Le(VW,[["render",zW]]),WW=ge({data(){return{activeTab:"",tabs:[]}},props:{active:{type:String,default:null}},created(){var e,t;this.tabs=((t=(e=this.$slots).default)==null?void 0:t.call(e).map(n=>({name:Y.get(n,["props","name"]),title:Y.get(n,["props","title"])})))||[]},mounted(){this.active?this.toggleTab(this.active):this.toggleTab(Y.get(this.tabs,[0,"name"]))},methods:{toggleTab(e){this.activeTab=e,Array.from(this.$refs.tabs.children).forEach(t=>{t.dataset.tab===e?t.classList.remove("hidden"):t.classList.add("hidden")})}}}),qW={class:"block"},KW={class:"border-b border-gray-200"},GW={class:"-mb-px flex space-x-8 mx-2","aria-label":"Tabs"},XW=["onClick"],YW={ref:"tabs"};function JW(e,t,n,r,o,i){return I(),F("div",null,[m("div",qW,[m("div",KW,[m("nav",GW,[(I(!0),F(Me,null,Ot(e.tabs,l=>(I(),F("button",{onClick:a=>e.toggleTab(l.name),key:l.name,class:gt([l.name===e.activeTab?"border-indigo-500 text-indigo-600":"border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300","group inline-flex items-center py-4 px-1 border-b-2 font-medium text-sm"])},[m("span",null,L(l.title),1)],10,XW))),128))])])]),m("div",YW,[yn(e.$slots,"default")],512)])}const zT=Le(WW,[["render",JW]]),ZW=ge({components:{PodloveButton:Pn,PlusSmIcon:of,BookmarkAltIcon:CV,UploadIcon:xV},setup(){return{state:ut({chapters:B.chapters.list,selected:B.chapters.selected,selectedIndex:B.chapters.selectedIndex,episodeDuration:B.episode.duration}),dispatch:Ze().dispatch}},computed:{selectedIndex(){return this.state.selectedIndex},episodeDuration(){return this.state.episodeDuration?Dt.fromString(this.state.episodeDuration).totalMs:0},chapters(){return this.state.chapters.reduce((e,t,n,r)=>{const o=Y.get(r,n+1),i=o===void 0;let l;i?l=this.episodeDuration?this.episodeDuration-(t.start||0):-1:l=(o.start||0)-(t.start||0);const a=l<=0?"Unknown":new Dt(l).prettyShort;return[...e,{index:n,title:t.title,start:t.start?new Dt(t.start).pretty:new Dt(0).pretty,image:t.image,duration:a}]},[])},hasChapterImages(){return this.chapters.reduce((e,t)=>e||!!t.image,!1)}},methods:{selectChapter(e){e===this.state.selectedIndex?this.dispatch(ms(null)):this.dispatch(ms(e))},updateChapter(e,t){const n=t.target.value;if(this.state.selectedIndex===null)return;let r;switch(e){case"start":r=Dt.fromString(n).totalMs;break;default:r=n}this.dispatch(_M({chapter:{[e]:r},index:this.state.selectedIndex}))},removeChapter(){this.dispatch(bM(this.state.selectedIndex))},async addChapter(){this.dispatch(wM()),this.dispatch(ms(this.state.chapters.length-1));const e=this.$refs.chaptersContainer;await sn(),e.scrollTo({top:e.scrollHeight-e.clientHeight,behavior:"smooth"})},formatTime(e){return new Dt(e).pretty},selectImage(){this.dispatch(xM())}}}),QW={key:0},eq={class:"md:flex p-2 sm:block"},tq={class:"w-full"},nq={class:"h-96 overflow-x-auto",ref:"chaptersContainer"},rq={class:"min-w-full divide-y divide-gray-200 mb-2"},oq={ref:"chapters"},sq=["onClick"],iq={key:0,class:"px-2 py-2 w-16"},lq=["src"],aq={class:"px-3 py-2 w-32 whitespace-nowrap text-sm font-medium text-gray-900 tabular-nums"},uq={class:"px-3 py-2 whitespace-nowrap text-sm text-gray-600"},cq={class:"px-3 py-2 whitespace-nowrap text-sm text-gray-600 text-right tabular-nums"},dq={key:0,class:"md:w-4/12 sm:w-full md:mx-4 md:my-2 mt-0"},fq={class:"mb-5 mt-2"},pq={for:"chapter-title",class:"block text-sm font-medium text-gray-700"},hq={class:"mt-1"},mq=["value"],gq={class:"mb-5"},vq={for:"chapter-href",class:"block text-sm font-medium text-gray-700"},yq={class:"text-xs"},_q={class:"mt-1"},bq=["value"],wq={class:"mb-5"},Sq={for:"chapter-start",class:"block text-sm font-medium text-gray-700"},Eq={class:"mt-1"},$q=["value"],xq={class:"mb-5"},Tq={for:"chapter-image",class:"block text-sm font-medium text-gray-700"},Cq={class:"text-xs"},Oq={class:"mt-1 relative"},Aq=["value"],kq=["title"],Iq={class:"mb-5 ml-1"},Pq={class:"mt-5 ml-5 pb-5"},Rq={key:1,class:"text-center h-96 flex items-center justify-center flex-col"},Lq={class:"mt-2 text-sm font-medium text-gray-900"},Fq={class:"mt-1 text-sm text-gray-500"},Nq={class:"mt-6"};function Mq(e,t,n,r,o,i){const l=q("upload-icon"),a=q("podlove-button"),c=q("plus-sm-icon"),d=q("bookmark-alt-icon");return e.chapters.length>0?(I(),F("div",QW,[m("div",eq,[m("div",tq,[m("div",nq,[m("table",rq,[m("tbody",oq,[(I(!0),F(Me,null,Ot(e.chapters,(p,h)=>(I(),F("tr",{onClick:v=>e.selectChapter(h),key:`chapter-${h}`,class:gt(["cursor-pointer",{"bg-indigo-100":e.selectedIndex===h,active:e.selectedIndex===h,"bg-white":h%2===0&&e.selectedIndex!==h,"bg-gray-50":h%2!==0&&e.selectedIndex!==h}])},[e.hasChapterImages?(I(),F("td",iq,[p!=null&&p.image?(I(),F("img",{key:0,class:"w-12 h-12 rounded",src:p==null?void 0:p.image},null,8,lq)):Te("",!0)])):Te("",!0),m("td",aq,L(p.start),1),m("td",uq,L(p.title),1),m("td",cq,L(p.duration),1)],10,sq))),128))],512)])],512)]),e.state.selected?(I(),F("div",dq,[m("div",fq,[m("label",pq,L(e.__("Title","podlove-podcasting-plugin-for-wordpress")),1),m("div",hq,[m("input",{name:"chapter-title",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",onChange:t[0]||(t[0]=p=>e.updateChapter("title",p)),value:e.state.selected.title},null,40,mq)])]),m("div",gq,[m("label",vq,[Be("Url "),m("span",yq,L(e.__("(optional)","podlove-podcasting-plugin-for-wordpress")),1)]),m("div",_q,[m("input",{name:"chapter-href",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",onChange:t[1]||(t[1]=p=>e.updateChapter("href",p)),value:e.state.selected.href},null,40,bq)])]),m("div",wq,[m("label",Sq,L(e.__("Start","podlove-podcasting-plugin-for-wordpress")),1),m("div",Eq,[m("input",{name:"chapter-title",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",onChange:t[2]||(t[2]=p=>e.updateChapter("start",p)),value:e.formatTime(e.state.selected.start)},null,40,$q)])]),m("div",xq,[m("label",Tq,[Be(L(e.__("Image","podlove-podcasting-plugin-for-wordpress"))+" ",1),m("span",Cq,L(e.__("(optional)","podlove-podcasting-plugin-for-wordpress")),1)]),m("div",Oq,[m("input",{name:"chapter-image",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",onChange:t[3]||(t[3]=p=>e.updateChapter("image",p)),value:e.state.selected.image},null,40,Aq),m("button",{onClick:t[4]||(t[4]=va(p=>e.selectImage(),["prevent"])),title:e.__("Select Chapter Image","podlove-podcasting-plugin-for-wordpress"),class:"absolute right-2 top-1/2 -mt-3 text-gray-400 hover:text-gray-700"},[z(l,{class:"w-6 h-6"})],8,kq)])]),m("div",Iq,[z(a,{variant:"danger",onClick:t[5]||(t[5]=p=>e.removeChapter())},{default:_e(()=>[Be(L(e.__("Delete Chapter","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})])])):Te("",!0)]),m("div",Pq,[z(a,{variant:"primary",onClick:t[6]||(t[6]=p=>e.addChapter())},{default:_e(()=>[z(c,{class:"-ml-0.5 mr-2 h-4 w-4","aria-hidden":"true"}),Be(" "+L(e.__("Add Chapter","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})])])):(I(),F("div",Rq,[z(d,{class:"mx-auto h-12 w-12 text-gray-400"}),m("h3",Lq,L(e.__("No chapters","podlove-podcasting-plugin-for-wordpress")),1),m("p",Fq,L(e.__("Get started by creating a new chapter.","podlove-podcasting-plugin-for-wordpress")),1),m("div",Nq,[z(a,{variant:"primary",onClick:t[7]||(t[7]=p=>e.addChapter()),class:"ml-1"},{default:_e(()=>[z(c,{class:"-ml-0.5 mr-2 h-4 w-4","aria-hidden":"true"}),Be(" "+L(e.__("Add Chapter","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})])]))}const Dq=Le(ZW,[["render",Mq]]);function pm(e,t,n){var r,o,i,l,a;t==null&&(t=100);function c(){var p=Date.now()-l;p<t&&p>=0?r=setTimeout(c,t-p):(r=null,n||(a=e.apply(i,o),i=o=null))}var d=function(){i=this,o=arguments,l=Date.now();var p=n&&!r;return r||(r=setTimeout(c,t)),p&&(a=e.apply(i,o),i=o=null),a};return d.clear=function(){r&&(clearTimeout(r),r=null)},d.flush=function(){r&&(a=e.apply(i,o),i=o=null,clearTimeout(r),r=null)},d}pm.debounce=pm;var uh=pm;function Uq(e,t,n){pn(e)?Ut(e,(r,o)=>{o==null||o.removeEventListener(t,n),r==null||r.addEventListener(t,n)}):wt(()=>{e.addEventListener(t,n)}),hi(()=>{var r;(r=vn(e))===null||r===void 0||r.removeEventListener(t,n)})}function Bq(e,t){const n="pointerdown";return typeof window>"u"||!window?void 0:Uq(window,n,o=>{const i=vn(e);i&&(i===o.target||o.composedPath().includes(i)||t(o))})}function jq(e,t,n){let r=null;const o=$e(!1);wt(()=>{(e.content!==void 0||n.value)&&(o.value=!0),r=new MutationObserver(i),r.observe(t.value,{childList:!0,subtree:!0})}),hi(()=>r.disconnect()),Ut(n,l=>{l?o.value=!0:o.value=!1});const i=()=>{e.content?o.value=!0:o.value=!1};return{hasContent:o}}function nl(e,t){var n=e.getBoundingClientRect(),r=1,o=1;return{width:n.width/r,height:n.height/o,top:n.top/o,right:n.right/r,bottom:n.bottom/o,left:n.left/r,x:n.left/r,y:n.top/o}}function ho(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ev(e){var t=ho(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Oa(e){var t=ho(e).Element;return e instanceof t||e instanceof Element}function Dr(e){var t=ho(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function WT(e){if(typeof ShadowRoot>"u")return!1;var t=ho(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Vq(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Hq(e){return e===ho(e)||!Dr(e)?Ev(e):Vq(e)}function Co(e){return e?(e.nodeName||"").toLowerCase():null}function As(e){return((Oa(e)?e.ownerDocument:e.document)||window.document).documentElement}function $v(e){return nl(As(e)).left+Ev(e).scrollLeft}function Go(e){return ho(e).getComputedStyle(e)}function xv(e){var t=Go(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function zq(e){var t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,r=t.height/e.offsetHeight||1;return n!==1||r!==1}function Wq(e,t,n){n===void 0&&(n=!1);var r=Dr(t);Dr(t)&&zq(t);var o=As(t),i=nl(e),l={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(r||!r&&!n)&&((Co(t)!=="body"||xv(o))&&(l=Hq(t)),Dr(t)?(a=nl(t),a.x+=t.clientLeft,a.y+=t.clientTop):o&&(a.x=$v(o))),{x:i.left+l.scrollLeft-a.x,y:i.top+l.scrollTop-a.y,width:i.width,height:i.height}}function Tv(e){var t=nl(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function pf(e){return Co(e)==="html"?e:e.assignedSlot||e.parentNode||(WT(e)?e.host:null)||As(e)}function qT(e){return["html","body","#document"].indexOf(Co(e))>=0?e.ownerDocument.body:Dr(e)&&xv(e)?e:qT(pf(e))}function la(e,t){var n;t===void 0&&(t=[]);var r=qT(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=ho(r),l=o?[i].concat(i.visualViewport||[],xv(r)?r:[]):r,a=t.concat(l);return o?a:a.concat(la(pf(l)))}function qq(e){return["table","td","th"].indexOf(Co(e))>=0}function _b(e){return!Dr(e)||Go(e).position==="fixed"?null:e.offsetParent}function Kq(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&Dr(e)){var r=Go(e);if(r.position==="fixed")return null}for(var o=pf(e);Dr(o)&&["html","body"].indexOf(Co(o))<0;){var i=Go(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function Qa(e){for(var t=ho(e),n=_b(e);n&&qq(n)&&Go(n).position==="static";)n=_b(n);return n&&(Co(n)==="html"||Co(n)==="body"&&Go(n).position==="static")?t:n||Kq(e)||t}var Ur="top",ao="bottom",uo="right",Br="left",Cv="auto",eu=[Ur,ao,uo,Br],rl="start",Aa="end",Gq="clippingParents",KT="viewport",jl="popper",Xq="reference",bb=eu.reduce(function(e,t){return e.concat([t+"-"+rl,t+"-"+Aa])},[]),GT=[].concat(eu,[Cv]).reduce(function(e,t){return e.concat([t,t+"-"+rl,t+"-"+Aa])},[]),Yq="beforeRead",Jq="read",Zq="afterRead",Qq="beforeMain",eK="main",tK="afterMain",nK="beforeWrite",rK="write",oK="afterWrite",sK=[Yq,Jq,Zq,Qq,eK,tK,nK,rK,oK];function iK(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var l=[].concat(i.requires||[],i.requiresIfExists||[]);l.forEach(function(a){if(!n.has(a)){var c=t.get(a);c&&o(c)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function lK(e){var t=iK(e);return sK.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function aK(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function $o(e){return e.split("-")[0]}function uK(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}function cK(e){var t=ho(e),n=As(e),r=t.visualViewport,o=n.clientWidth,i=n.clientHeight,l=0,a=0;return r&&(o=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(l=r.offsetLeft,a=r.offsetTop)),{width:o,height:i,x:l+$v(e),y:a}}var _s=Math.max,ka=Math.min,fc=Math.round;function dK(e){var t,n=As(e),r=Ev(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=_s(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),l=_s(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+$v(e),c=-r.scrollTop;return Go(o||n).direction==="rtl"&&(a+=_s(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:l,x:a,y:c}}function XT(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&WT(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function hm(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function fK(e){var t=nl(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function wb(e,t){return t===KT?hm(cK(e)):Dr(t)?fK(t):hm(dK(As(e)))}function pK(e){var t=la(pf(e)),n=["absolute","fixed"].indexOf(Go(e).position)>=0,r=n&&Dr(e)?Qa(e):e;return Oa(r)?t.filter(function(o){return Oa(o)&&XT(o,r)&&Co(o)!=="body"}):[]}function hK(e,t,n){var r=t==="clippingParents"?pK(e):[].concat(t),o=[].concat(r,[n]),i=o[0],l=o.reduce(function(a,c){var d=wb(e,c);return a.top=_s(d.top,a.top),a.right=ka(d.right,a.right),a.bottom=ka(d.bottom,a.bottom),a.left=_s(d.left,a.left),a},wb(e,i));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function ol(e){return e.split("-")[1]}function Ov(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function YT(e){var t=e.reference,n=e.element,r=e.placement,o=r?$o(r):null,i=r?ol(r):null,l=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,c;switch(o){case Ur:c={x:l,y:t.y-n.height};break;case ao:c={x:l,y:t.y+t.height};break;case uo:c={x:t.x+t.width,y:a};break;case Br:c={x:t.x-n.width,y:a};break;default:c={x:t.x,y:t.y}}var d=o?Ov(o):null;if(d!=null){var p=d==="y"?"height":"width";switch(i){case rl:c[d]=c[d]-(t[p]/2-n[p]/2);break;case Aa:c[d]=c[d]+(t[p]/2-n[p]/2);break}}return c}function JT(){return{top:0,right:0,bottom:0,left:0}}function ZT(e){return Object.assign({},JT(),e)}function QT(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}function Av(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.boundary,l=i===void 0?Gq:i,a=n.rootBoundary,c=a===void 0?KT:a,d=n.elementContext,p=d===void 0?jl:d,h=n.altBoundary,v=h===void 0?!1:h,y=n.padding,b=y===void 0?0:y,S=ZT(typeof b!="number"?b:QT(b,eu)),T=p===jl?Xq:jl,C=e.rects.popper,w=e.elements[v?T:p],E=hK(Oa(w)?w:w.contextElement||As(e.elements.popper),l,c),O=nl(e.elements.reference),$=YT({reference:O,element:C,strategy:"absolute",placement:o}),P=hm(Object.assign({},C,$)),R=p===jl?P:O,k={top:E.top-R.top+S.top,bottom:R.bottom-E.bottom+S.bottom,left:E.left-R.left+S.left,right:R.right-E.right+S.right},W=e.modifiersData.offset;if(p===jl&&W){var U=W[o];Object.keys(k).forEach(function(j){var G=[uo,ao].indexOf(j)>=0?1:-1,X=[Ur,ao].indexOf(j)>=0?"y":"x";k[j]+=U[X]*G})}return k}var Sb={placement:"bottom",modifiers:[],strategy:"absolute"};function Eb(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function mK(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?Sb:o;return function(a,c,d){d===void 0&&(d=i);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},Sb,i),modifiersData:{},elements:{reference:a,popper:c},attributes:{},styles:{}},h=[],v=!1,y={state:p,setOptions:function(C){var w=typeof C=="function"?C(p.options):C;S(),p.options=Object.assign({},i,p.options,w),p.scrollParents={reference:Oa(a)?la(a):a.contextElement?la(a.contextElement):[],popper:la(c)};var E=lK(uK([].concat(r,p.options.modifiers)));return p.orderedModifiers=E.filter(function(O){return O.enabled}),b(),y.update()},forceUpdate:function(){if(!v){var C=p.elements,w=C.reference,E=C.popper;if(Eb(w,E)){p.rects={reference:Wq(w,Qa(E),p.options.strategy==="fixed"),popper:Tv(E)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(U){return p.modifiersData[U.name]=Object.assign({},U.data)});for(var O=0;O<p.orderedModifiers.length;O++){if(p.reset===!0){p.reset=!1,O=-1;continue}var $=p.orderedModifiers[O],P=$.fn,R=$.options,k=R===void 0?{}:R,W=$.name;typeof P=="function"&&(p=P({state:p,options:k,name:W,instance:y})||p)}}}},update:aK(function(){return new Promise(function(T){y.forceUpdate(),T(p)})}),destroy:function(){S(),v=!0}};if(!Eb(a,c))return y;y.setOptions(d).then(function(T){!v&&d.onFirstUpdate&&d.onFirstUpdate(T)});function b(){p.orderedModifiers.forEach(function(T){var C=T.name,w=T.options,E=w===void 0?{}:w,O=T.effect;if(typeof O=="function"){var $=O({state:p,name:C,instance:y,options:E}),P=function(){};h.push($||P)}})}function S(){h.forEach(function(T){return T()}),h=[]}return y}}var pc={passive:!0};function gK(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,l=r.resize,a=l===void 0?!0:l,c=ho(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&d.forEach(function(p){p.addEventListener("scroll",n.update,pc)}),a&&c.addEventListener("resize",n.update,pc),function(){i&&d.forEach(function(p){p.removeEventListener("scroll",n.update,pc)}),a&&c.removeEventListener("resize",n.update,pc)}}var vK={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:gK,data:{}};function yK(e){var t=e.state,n=e.name;t.modifiersData[n]=YT({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var _K={name:"popperOffsets",enabled:!0,phase:"read",fn:yK,data:{}},bK={top:"auto",right:"auto",bottom:"auto",left:"auto"};function wK(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:fc(fc(t*o)/o)||0,y:fc(fc(n*o)/o)||0}}function $b(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,l=e.offsets,a=e.position,c=e.gpuAcceleration,d=e.adaptive,p=e.roundOffsets,h=p===!0?wK(l):typeof p=="function"?p(l):l,v=h.x,y=v===void 0?0:v,b=h.y,S=b===void 0?0:b,T=l.hasOwnProperty("x"),C=l.hasOwnProperty("y"),w=Br,E=Ur,O=window;if(d){var $=Qa(n),P="clientHeight",R="clientWidth";$===ho(n)&&($=As(n),Go($).position!=="static"&&a==="absolute"&&(P="scrollHeight",R="scrollWidth")),$=$,(o===Ur||(o===Br||o===uo)&&i===Aa)&&(E=ao,S-=$[P]-r.height,S*=c?1:-1),(o===Br||(o===Ur||o===ao)&&i===Aa)&&(w=uo,y-=$[R]-r.width,y*=c?1:-1)}var k=Object.assign({position:a},d&&bK);if(c){var W;return Object.assign({},k,(W={},W[E]=C?"0":"",W[w]=T?"0":"",W.transform=(O.devicePixelRatio||1)<=1?"translate("+y+"px, "+S+"px)":"translate3d("+y+"px, "+S+"px, 0)",W))}return Object.assign({},k,(t={},t[E]=C?S+"px":"",t[w]=T?y+"px":"",t.transform="",t))}function SK(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,l=i===void 0?!0:i,a=n.roundOffsets,c=a===void 0?!0:a,d={placement:$o(t.placement),variation:ol(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,$b(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,$b(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var EK={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:SK,data:{}};function $K(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!Dr(i)||!Co(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(l){var a=o[l];a===!1?i.removeAttribute(l):i.setAttribute(l,a===!0?"":a)}))})}function xK(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},l=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=l.reduce(function(c,d){return c[d]="",c},{});!Dr(o)||!Co(o)||(Object.assign(o.style,a),Object.keys(i).forEach(function(c){o.removeAttribute(c)}))})}}var TK={name:"applyStyles",enabled:!0,phase:"write",fn:$K,effect:xK,requires:["computeStyles"]},CK=[vK,_K,EK,TK],OK=mK({defaultModifiers:CK});function AK(e){return e==="x"?"y":"x"}function xc(e,t,n){return _s(e,ka(t,n))}function kK(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,l=n.altAxis,a=l===void 0?!1:l,c=n.boundary,d=n.rootBoundary,p=n.altBoundary,h=n.padding,v=n.tether,y=v===void 0?!0:v,b=n.tetherOffset,S=b===void 0?0:b,T=Av(t,{boundary:c,rootBoundary:d,padding:h,altBoundary:p}),C=$o(t.placement),w=ol(t.placement),E=!w,O=Ov(C),$=AK(O),P=t.modifiersData.popperOffsets,R=t.rects.reference,k=t.rects.popper,W=typeof S=="function"?S(Object.assign({},t.rects,{placement:t.placement})):S,U={x:0,y:0};if(P){if(i||a){var j=O==="y"?Ur:Br,G=O==="y"?ao:uo,X=O==="y"?"height":"width",ne=P[O],xe=P[O]+T[j],Ee=P[O]-T[G],ke=y?-k[X]/2:0,Ie=w===rl?R[X]:k[X],Qe=w===rl?-k[X]:-R[X],ht=t.elements.arrow,De=y&&ht?Tv(ht):{width:0,height:0},Xe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:JT(),Q=Xe[j],ce=Xe[G],ve=xc(0,R[X],De[X]),Ce=E?R[X]/2-ke-ve-Q-W:Ie-ve-Q-W,We=E?-R[X]/2+ke+ve+ce+W:Qe+ve+ce+W,Ve=t.elements.arrow&&Qa(t.elements.arrow),rt=Ve?O==="y"?Ve.clientTop||0:Ve.clientLeft||0:0,wn=t.modifiersData.offset?t.modifiersData.offset[t.placement][O]:0,an=P[O]+Ce-wn-rt,M=P[O]+We-wn;if(i){var V=xc(y?ka(xe,an):xe,ne,y?_s(Ee,M):Ee);P[O]=V,U[O]=V-ne}if(a){var Z=O==="x"?Ur:Br,ue=O==="x"?ao:uo,le=P[$],ye=le+T[Z],Oe=le-T[ue],we=xc(y?ka(ye,an):ye,le,y?_s(Oe,M):Oe);P[$]=we,U[$]=we-le}}t.modifiersData[r]=U}}var IK={name:"preventOverflow",enabled:!0,phase:"main",fn:kK,requiresIfExists:["offset"]},PK={left:"right",right:"left",bottom:"top",top:"bottom"};function Tc(e){return e.replace(/left|right|bottom|top/g,function(t){return PK[t]})}var RK={start:"end",end:"start"};function xb(e){return e.replace(/start|end/g,function(t){return RK[t]})}function LK(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,l=n.padding,a=n.flipVariations,c=n.allowedAutoPlacements,d=c===void 0?GT:c,p=ol(r),h=p?a?bb:bb.filter(function(b){return ol(b)===p}):eu,v=h.filter(function(b){return d.indexOf(b)>=0});v.length===0&&(v=h);var y=v.reduce(function(b,S){return b[S]=Av(e,{placement:S,boundary:o,rootBoundary:i,padding:l})[$o(S)],b},{});return Object.keys(y).sort(function(b,S){return y[b]-y[S]})}function FK(e){if($o(e)===Cv)return[];var t=Tc(e);return[xb(e),t,xb(t)]}function NK(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,l=n.altAxis,a=l===void 0?!0:l,c=n.fallbackPlacements,d=n.padding,p=n.boundary,h=n.rootBoundary,v=n.altBoundary,y=n.flipVariations,b=y===void 0?!0:y,S=n.allowedAutoPlacements,T=t.options.placement,C=$o(T),w=C===T,E=c||(w||!b?[Tc(T)]:FK(T)),O=[T].concat(E).reduce(function(ce,ve){return ce.concat($o(ve)===Cv?LK(t,{placement:ve,boundary:p,rootBoundary:h,padding:d,flipVariations:b,allowedAutoPlacements:S}):ve)},[]),$=t.rects.reference,P=t.rects.popper,R=new Map,k=!0,W=O[0],U=0;U<O.length;U++){var j=O[U],G=$o(j),X=ol(j)===rl,ne=[Ur,ao].indexOf(G)>=0,xe=ne?"width":"height",Ee=Av(t,{placement:j,boundary:p,rootBoundary:h,altBoundary:v,padding:d}),ke=ne?X?uo:Br:X?ao:Ur;$[xe]>P[xe]&&(ke=Tc(ke));var Ie=Tc(ke),Qe=[];if(i&&Qe.push(Ee[G]<=0),a&&Qe.push(Ee[ke]<=0,Ee[Ie]<=0),Qe.every(function(ce){return ce})){W=j,k=!1;break}R.set(j,Qe)}if(k)for(var ht=b?3:1,De=function(ve){var Ce=O.find(function(We){var Ve=R.get(We);if(Ve)return Ve.slice(0,ve).every(function(rt){return rt})});if(Ce)return W=Ce,"break"},Xe=ht;Xe>0;Xe--){var Q=De(Xe);if(Q==="break")break}t.placement!==W&&(t.modifiersData[r]._skip=!0,t.placement=W,t.reset=!0)}}var MK={name:"flip",enabled:!0,phase:"main",fn:NK,requiresIfExists:["offset"],data:{_skip:!1}};function DK(e,t,n){var r=$o(e),o=[Br,Ur].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,l=i[0],a=i[1];return l=l||0,a=(a||0)*o,[Br,uo].indexOf(r)>=0?{x:a,y:l}:{x:l,y:a}}function UK(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,l=GT.reduce(function(p,h){return p[h]=DK(h,t.rects,i),p},{}),a=l[t.placement],c=a.x,d=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=d),t.modifiersData[r]=l}var BK={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:UK},jK=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,ZT(typeof t!="number"?t:QT(t,eu))};function VK(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,l=n.modifiersData.popperOffsets,a=$o(n.placement),c=Ov(a),d=[Br,uo].indexOf(a)>=0,p=d?"height":"width";if(!(!i||!l)){var h=jK(o.padding,n),v=Tv(i),y=c==="y"?Ur:Br,b=c==="y"?ao:uo,S=n.rects.reference[p]+n.rects.reference[c]-l[c]-n.rects.popper[p],T=l[c]-n.rects.reference[c],C=Qa(i),w=C?c==="y"?C.clientHeight||0:C.clientWidth||0:0,E=S/2-T/2,O=h[y],$=w-v[p]-h[b],P=w/2-v[p]/2+E,R=xc(O,P,$),k=c;n.modifiersData[r]=(t={},t[k]=R,t.centerOffset=R-P,t)}}function HK(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||XT(t.elements.popper,o)&&(t.elements.arrow=o))}var zK={name:"arrow",enabled:!0,phase:"main",fn:VK,effect:HK,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};const ch=e=>parseInt(e,10);function WK({arrowPadding:e,emit:t,locked:n,offsetDistance:r,offsetSkid:o,placement:i,popperNode:l,triggerNode:a}){const c=Ts({isOpen:!1,popperInstance:null}),d=S=>{var T;(T=c.popperInstance)===null||T===void 0||T.setOptions(C=>({...C,modifiers:[...C.modifiers,{name:"eventListeners",enabled:S}]}))},p=()=>d(!0),h=()=>d(!1),v=()=>{c.isOpen&&(c.isOpen=!1,t("close:popper"))},y=()=>{c.isOpen||(c.isOpen=!0,t("open:popper"))};Ut([()=>c.isOpen,i],async([S])=>{S?(await b(),p()):h()});const b=async()=>{await sn(),c.popperInstance=OK(a.value,l.value,{placement:i.value,modifiers:[IK,MK,{name:"flip",enabled:!n.value},zK,{name:"arrow",options:{padding:ch(e.value)}},BK,{name:"offset",options:{offset:[ch(o.value),ch(r.value)]}}]}),c.popperInstance.update()};return hi(()=>{var S;(S=c.popperInstance)===null||S===void 0||S.destroy()}),{...km(c),open:y,close:v}}const qK={id:"arrow","data-popper-arrow":""};function KK(e,t){return I(),F("div",qK)}function eC(e,t){t===void 0&&(t={});var n=t.insertAt;if(!(!e||typeof document>"u")){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",n==="top"&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}var GK=` 62 62 #arrow[data-v-20b7fd4a], 63 63 #arrow[data-v-20b7fd4a]::before { … … 115 115 left: -5px; 116 116 } 117 `;eC(GK);const Iv={};Iv.render=KK;Iv.__scopeId="data-v-20b7fd4a";var XK=Iv;const YK=["onKeyup"];var tC={props:{placement:{type:String,default:"bottom",validator:function(e){return["auto","auto-start","auto-end","top","top-start","top-end","bottom","bottom-start","bottom-end","right","right-start","right-end","left","left-start","left-end"].includes(e)}},disableClickAway:{type:Boolean,default:!1},offsetSkid:{type:String,default:"0"},offsetDistance:{type:String,default:"12"},hover:{type:Boolean,default:!1},show:{type:Boolean,default:null},disabled:{type:Boolean,default:!1},openDelay:{type:[Number,String],default:0},closeDelay:{type:[Number,String],default:0},zIndex:{type:[Number,String],default:9999},arrow:{type:Boolean,default:!1},arrowPadding:{type:String,default:"0"},interactive:{type:Boolean,default:!0},locked:{type:Boolean,default:!1},content:{type:String,default:null}},emits:["open:popper","close:popper"],setup(e,{emit:t}){const n=e;c2(Ie=>({c81fc0a4:e.zIndex}));const r=e2(),o=$e(null),i=$e(null),l=$e(null),a=$e(!1);wt(()=>{const Ie=r.default();if(Ie&&Ie.length>1)return console.error(`[Popper]: The <Popper> component expects only one child element at its root. You passed ${Ie.length} child nodes.`)});const{arrowPadding:c,closeDelay:d,content:p,disableClickAway:h,disabled:v,interactive:y,locked:b,offsetDistance:S,offsetSkid:T,openDelay:C,placement:w,show:E}=Am(n),{isOpen:O,open:$,close:P}=WK({arrowPadding:c,emit:t,locked:b,offsetDistance:S,offsetSkid:T,placement:w,popperNode:i,triggerNode:l}),{hasContent:R}=jq(r,i,p),k=fe(()=>E.value!==null),W=fe(()=>v.value||!R.value),U=fe(()=>O.value&&!W.value),j=fe(()=>!h.value&&!k.value),G=fe(()=>y.value?`border: ${S.value}px solid transparent; margin: -${S.value}px;`:null),X=ah.debounce($,C.value),ne=ah.debounce(P,d.value),xe=async()=>{W.value||k.value||(ne.clear(),X())},Ee=async()=>{k.value||(X.clear(),ne())},ke=()=>{O.value?Ee():xe()};return Ut([R,v],([Ie,Qe])=>{O.value&&(!Ie||Qe)&&P()}),Ut(O,Ie=>{Ie?a.value=!0:ah.debounce(()=>{a.value=!1},200)}),Vt(()=>{k.value&&(E.value?X():ne())}),Vt(()=>{j.value&&Bq(o,Ee)}),(Ie,Qe)=>(I(),F("div",{class:"inline-block",style:oo(vn(G)),onMouseleave:Qe[2]||(Qe[2]=ht=>e.hover&&Ee()),ref:(ht,De)=>{De.popperContainerNode=ht,o.value=ht}},[m("div",{ref:(ht,De)=>{De.triggerNode=ht,l.value=ht},onMouseover:Qe[0]||(Qe[0]=ht=>e.hover&&xe()),onClick:ke,onFocus:xe,onKeyup:S2(Ee,["esc"])},[yn(Ie.$slots,"default")],40,YK),z(Cs,{name:"fade"},{default:_e(()=>[Cw(m("div",{onClick:Qe[1]||(Qe[1]=ht=>!vn(y)&&Ee()),class:"popper",ref:(ht,De)=>{De.popperNode=ht,i.value=ht}},[yn(Ie.$slots,"content",{close:vn(P),isOpen:a.value},()=>[Be(L(vn(p)),1)]),e.arrow?(I(),Ye(XK,{key:0})):Te("",!0)],512),[[Wm,vn(U)]])]),_:3})],36))}},JK=`117 `;eC(GK);const kv={};kv.render=KK;kv.__scopeId="data-v-20b7fd4a";var XK=kv;const YK=["onKeyup"];var tC={props:{placement:{type:String,default:"bottom",validator:function(e){return["auto","auto-start","auto-end","top","top-start","top-end","bottom","bottom-start","bottom-end","right","right-start","right-end","left","left-start","left-end"].includes(e)}},disableClickAway:{type:Boolean,default:!1},offsetSkid:{type:String,default:"0"},offsetDistance:{type:String,default:"12"},hover:{type:Boolean,default:!1},show:{type:Boolean,default:null},disabled:{type:Boolean,default:!1},openDelay:{type:[Number,String],default:0},closeDelay:{type:[Number,String],default:0},zIndex:{type:[Number,String],default:9999},arrow:{type:Boolean,default:!1},arrowPadding:{type:String,default:"0"},interactive:{type:Boolean,default:!0},locked:{type:Boolean,default:!1},content:{type:String,default:null}},emits:["open:popper","close:popper"],setup(e,{emit:t}){const n=e;u2(Ie=>({c81fc0a4:e.zIndex}));const r=Qw(),o=$e(null),i=$e(null),l=$e(null),a=$e(!1);wt(()=>{const Ie=r.default();if(Ie&&Ie.length>1)return console.error(`[Popper]: The <Popper> component expects only one child element at its root. You passed ${Ie.length} child nodes.`)});const{arrowPadding:c,closeDelay:d,content:p,disableClickAway:h,disabled:v,interactive:y,locked:b,offsetDistance:S,offsetSkid:T,openDelay:C,placement:w,show:E}=km(n),{isOpen:O,open:$,close:P}=WK({arrowPadding:c,emit:t,locked:b,offsetDistance:S,offsetSkid:T,placement:w,popperNode:i,triggerNode:l}),{hasContent:R}=jq(r,i,p),k=fe(()=>E.value!==null),W=fe(()=>v.value||!R.value),U=fe(()=>O.value&&!W.value),j=fe(()=>!h.value&&!k.value),G=fe(()=>y.value?`border: ${S.value}px solid transparent; margin: -${S.value}px;`:null),X=uh.debounce($,C.value),ne=uh.debounce(P,d.value),xe=async()=>{W.value||k.value||(ne.clear(),X())},Ee=async()=>{k.value||(X.clear(),ne())},ke=()=>{O.value?Ee():xe()};return Ut([R,v],([Ie,Qe])=>{O.value&&(!Ie||Qe)&&P()}),Ut(O,Ie=>{Ie?a.value=!0:uh.debounce(()=>{a.value=!1},200)}),Vt(()=>{k.value&&(E.value?X():ne())}),Vt(()=>{j.value&&Bq(o,Ee)}),(Ie,Qe)=>(I(),F("div",{class:"inline-block",style:so(vn(G)),onMouseleave:Qe[2]||(Qe[2]=ht=>e.hover&&Ee()),ref:(ht,De)=>{De.popperContainerNode=ht,o.value=ht}},[m("div",{ref:(ht,De)=>{De.triggerNode=ht,l.value=ht},onMouseover:Qe[0]||(Qe[0]=ht=>e.hover&&xe()),onClick:ke,onFocus:xe,onKeyup:w2(Ee,["esc"])},[yn(Ie.$slots,"default")],40,YK),z(Cs,{name:"fade"},{default:_e(()=>[Tw(m("div",{onClick:Qe[1]||(Qe[1]=ht=>!vn(y)&&Ee()),class:"popper",ref:(ht,De)=>{De.popperNode=ht,i.value=ht}},[yn(Ie.$slots,"content",{close:vn(P),isOpen:a.value},()=>[Be(L(vn(p)),1)]),e.arrow?(I(),Ye(XK,{key:0})):Te("",!0)],512),[[qm,vn(U)]])]),_:3})],36))}},JK=` 118 118 .inline-block[data-v-5784ed69] { 119 119 display: inline-block; … … 146 146 opacity: 0; 147 147 } 148 `;eC(JK);tC.__scopeId="data-v-5784ed69";var ZK=(()=>{const e=tC;return e.install=t=>{t.component("Popper",e)},e})();const QK=ge({components:{Popper:ZK},props:{direction:{type:String,default:"left"}},data(){return{visible:!0}},computed:{caretClasses(){switch(this.direction){case"left":return"left-0 -ml-2 bottom-0 top-0 h-full"}}},methods:{show(){this.visible=!0},hide(){this.visible=!1}}}),eG={class:"bg-white p-4 rounded shadow-lg max-w-md"};function tG(e,t,n,r,o,i){const l=q("Popper");return I(),F("div",null,[z(l,{hover:"",openDelay:"200",closeDelay:"100",arrow:!0},{content:_e(()=>[m("div",eG,[yn(e.$slots,"content")])]),default:_e(()=>[yn(e.$slots,"trigger")]),_:3})])}const nG=Le(QK,[["render",tG]]),rG=ge({components:{PodloveButton:Pn,Tooltip:nG},setup(){return{dispatch:Ze().dispatch}},methods:{simulateImportClick(){this.$refs.import.click()},importChapters(){const e=this.$refs.import;if(e)try{const t=new FileReader;t.onload=n=>{this.dispatch(SM(n.target.result))},t.readAsText(Y.get(e,["files",0],""))(this.$refs.importForm).reset()}catch{}}}}),oG={class:"text-xs"},sG={class:"text-gray-600 leading-3 font-semibold mb-2"},iG={class:"text-gray-500 ml-1"},lG={class:"mb-1"},aG={class:"text-blue-500 underline",href:"https://podlove.org/simple-chapters/",target:"_blank"},uG=m("code",null,".psc",-1),cG={class:"mb-1"},dG={class:"text-blue-500 underline",href:"http://www.audacityteam.org",target:"_blank"},fG={class:"mb-1"},pG={class:"text-blue-500 underline",href:"https://hindenburg.com",target:"_blank"},hG=m("code",null,".txt",-1);function mG(e,t,n,r,o,i){const l=q("podlove-button"),a=q("tooltip");return I(),Ye(a,null,{trigger:_e(()=>[z(l,{variant:"secondary",size:"small",onClick:t[0]||(t[0]=c=>e.simulateImportClick())},{default:_e(()=>[Be(L(e.__("Import","podlove-podcasting-plugin-for-wordpress")),1)]),_:1}),m("input",{ref:"import",type:"file",onChange:t[1]||(t[1]=(...c)=>e.importChapters&&e.importChapters(...c)),class:"hidden"},null,544)]),content:_e(()=>[m("div",oG,[m("p",sG,L(e.__("Accepts:","podlove-podcasting-plugin-for-wordpress")),1),m("ul",iG,[m("li",lG,[m("a",aG,L(e.__("Podlove Simple Chapters","podlove-podcasting-plugin-for-wordpress")),1),Be(" ("),uG,Be("), ")]),m("li",cG,[m("a",dG,L(e.__("Audacity","podlove-podcasting-plugin-for-wordpress")),1),Be(" "+L(e.__("Track Labels","podlove-podcasting-plugin-for-wordpress"))+", ",1)]),m("li",fG,[m("a",pG,L(e.__("Hindenburg","podlove-podcasting-plugin-for-wordpress")),1),Be(" "+L(e.__("project files and MP4Chaps","podlove-podcasting-plugin-for-wordpress"))+" (",1),hG,Be(") ")])])])]),_:1})}const gG=Le(rG,[["render",mG]]),vG=ge({components:{Popover:LT,PopoverButton:tz,PopoverPanel:nz}});function yG(e,t,n,r,o,i){const l=q("PopoverButton"),a=q("PopoverPanel"),c=q("Popover",!0);return I(),Ye(c,{class:"relative"},{default:_e(()=>[z(l,null,{default:_e(()=>[yn(e.$slots,"trigger")]),_:3}),z(Cs,{"enter-active-class":"transition duration-200 ease-out","enter-from-class":"translate-y-1 opacity-0","enter-to-class":"translate-y-0 opacity-100","leave-active-class":"transition duration-150 ease-in","leave-from-class":"translate-y-0 opacity-100","leave-to-class":"translate-y-1 opacity-0"},{default:_e(()=>[z(a,{class:"absolute"},{default:_e(()=>[yn(e.$slots,"content",{class:"overflow-hidden"})]),_:3})]),_:3})]),_:3})}const nC=Le(vG,[["render",yG]]),_G=ge({components:{Popover:nC,PodloveButton:Pn},setup(){return{dispatch:Ze().dispatch}},methods:{download(e){this.dispatch($M(e))}}}),bG={class:"bg-white p-7 -translate-x-full z-10 mt-3 transform ml-16 rounded-lg shadow-lg"},wG={class:"text-sm font-medium text-gray-900 truncate w-full mr-2"},SG=m("div",{class:"text-sm text-gray-500"},".psc",-1),EG={class:"text-sm font-medium text-gray-900 truncate w-full mr-2"},$G=m("div",{class:"text-sm text-gray-500"},".txt",-1);function xG(e,t,n,r,o,i){const l=q("podlove-button"),a=q("popover");return I(),F("div",null,[z(a,null,{trigger:_e(()=>[z(l,{variant:"secondary",size:"small"},{default:_e(()=>[Be(L(e.__("Export","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})]),content:_e(()=>[m("div",bG,[m("a",{onClick:t[0]||(t[0]=c=>e.download("psc")),class:"flex items-center p-2 -m-3 transition duration-150 ease-in-out rounded-lg cursor-pointer bg-gray-100 hover:bg-indigo-100 focus:outline-none focus-visible:ring focus-visible:ring-indigo-500 focus-visible:ring-opacity-50 mb-4"},[m("div",wG,L(e.__("Podlove Simple Chapters","podlove-podcasting-plugin-for-wordpress")),1),SG]),m("a",{onClick:t[1]||(t[1]=c=>e.download("mp4")),class:"flex items-center p-2 -m-3 transition duration-150 ease-in-out rounded-lg cursor-pointer bg-gray-100 hover:bg-indigo-100 focus:outline-none focus-visible:ring focus-visible:ring-indigo-500 focus-visible:ring-opacity-50"},[m("div",EG,L(e.__("MP4Chaps","podlove-podcasting-plugin-for-wordpress")),1),$G])])]),_:1})])}const TG=Le(_G,[["render",xG]]),CG=ge({components:{Module:In,TabsContainer:zT,Tab:HT,ChaptersForm:Dq,ChaptersImport:gG,ChaptersExport:TG},setup(){return{dispatch:Ze().dispatch}},created(){this.dispatch(yM())}});function OG(e,t,n,r,o,i){const l=q("chapters-import"),a=q("chapters-export"),c=q("chapters-form"),d=q("module");return I(),Ye(d,{name:"chapters",title:e.__("Chapter Marks","podlove-podcasting-plugin-for-wordpress")},{actions:_e(()=>[z(l,{class:"mr-1"}),z(a)]),default:_e(()=>[z(c)]),_:1},8,["title"])}const AG=Le(CG,[["render",OG]]),kG={},IG={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},PG=m("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-6-3a2 2 0 11-4 0 2 2 0 014 0zm-2 4a5 5 0 00-4.546 2.916A5.986 5.986 0 0010 16a5.986 5.986 0 004.546-2.084A5 5 0 0010 11z","clip-rule":"evenodd"},null,-1),RG=[PG];function LG(e,t){return I(),F("svg",IG,RG)}const FG=Le(kG,[["render",LG]]),NG=ge({props:{outlet:{type:String,default:"header"}},components:{PodloveButton:Pn,UploadIcon: nf,DocumentTextIcon:lv},setup(){return{dispatch:Ze().dispatch}},methods:{simulateImportClick(){this.$refs.import.click()},importTranscriptFromAsset(){this.dispatch(KM())},handleImport(){const e=this.$refs.import;if(e)try{const t=new FileReader;t.onload=n=>{this.dispatch(qM(n.target.result))},t.readAsText(Y.get(e,["files",0],""))(this.$refs.importForm).reset()}catch{}}}}),MG={ref:"importForm",class:"cursor-pointer"},DG={class:"grid grid-cols-2"};function UG(e,t,n,r,o,i){const l=q("upload-icon"),a=q("podlove-button");return I(),F("form",MG,[m("div",DG,[m("div",null,[z(a,{variant:"primary",onClick:e.simulateImportClick,class:"ml-1"},{default:_e(()=>[z(l,{class:"-ml-0.5 mr-2 h-4 w-4","aria-hidden":"true"}),Be(" "+L(e.__("Import Transcript","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["onClick"]),m("input",{ref:"import",accept:"text/vtt",type:"file",onChange:t[0]||(t[0]=(...c)=>e.handleImport&&e.handleImport(...c)),class:"hidden",key:""},null,544)]),m("div",null,[z(a,{variant:"primary",onClick:e.importTranscriptFromAsset,class:"ml-1"},{default:_e(()=>[Be(L(e.__("Get From Asset","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["onClick"])])])],512)}const BG=Le(NG,[["render",UG]]),jG=ge({components:{Avatar:FG,TranscriptsImport:BG,DocumentTextIcon:lv},setup(){return{state:ut({transcripts:B.transcripts.list,contributors:B.contributors.contributors,voices:B.transcripts.voices})}},computed:{voices(){return this.state.contributors.reduce((e,t)=>{var r;const n=(r=this.state.voices.find(o=>o.contributor===t.id))==null?void 0:r.voice;return{...e,[n]:{id:t.id,name:t.realname,avatar:t.avatar_url}}},{})},transcripts(){return this.state.transcripts.reduce((e,t)=>{const n=Y.last(e);return n&&n.voiceId===t.voice?[...Y.dropRight(e),{...n,voiceId:t.voice,content:[...n.content,{text:t.text,start:t.start_ms,end:t.end_ms}]}]:[...e,{voiceId:t.voice,content:[{text:t.text,start:t.start_ms,end:t.end_ms}]}]},[]).map(e=>({...e,voice:Y.get(this.voices,[e.voiceId],{name:e.voiceId})}))}},methods:{formatTime(e){return new Dt(e).prettyShort}}}),VG={key:0,class:"h-96 p-2 overflow-x-auto"},HG={class:"mr-2 w-12 text-gray-400 select-none"},zG=["src"],WG={class:"w-full font-light text-sm mr-2"},qG={class:"block font-bold"},KG={class:"flex justify-between"},GG={class:"ml-1 font-mono select-none"},XG={key:1,class:"text-center h-96 flex items-center justify-center flex-col"},YG={class:"mt-2 text-sm font-medium text-gray-900"},JG={class:"mt-1 text-sm text-gray-500"},ZG={class:"mt-6"};function QG(e,t,n,r,o,i){const l=q("avatar"),a=q("document-text-icon"),c=q("transcripts-import");return e.transcripts.length>0?(I(),F("div",VG,[(I(!0),F(Me,null,Ot(e.transcripts,(d,p)=>{var h,v,y;return I(),F("div",{class:"flex mb-2",key:`transcript-${p}`},[m("div",HG,[(h=d==null?void 0:d.voice)!=null&&h.avatar?(I(),F("img",{key:0,class:"w-12 h-12 rounded",src:(v=d==null?void 0:d.voice)==null?void 0:v.avatar},null,8,zG)):(I(),Ye(l,{key:1}))]),m("div",WG,[m("span",qG,L((y=d==null?void 0:d.voice)==null?void 0:y.name),1),m("span",KG,[m("span",null,[(I(!0),F(Me,null,Ot(d.content,(b,S)=>(I(),F("span",{class:"mr-1",key:`transcript-${p}-content-${S}`},L(b.text),1))),128))]),m("span",GG,L(e.formatTime(d.content[0].start)),1)])])])}),128))])):(I(),F("div",XG,[z(a,{class:"mx-auto h-12 w-12 text-gray-400"}),m("h3",YG,L(e.__("No transcript yet","podlove-podcasting-plugin-for-wordpress")),1),m("p",JG,L(e.__("Get started by importing a transcript.","podlove-podcasting-plugin-for-wordpress")),1),m("div",ZG,[z(c,{outlet:"content",class:"mr-1"})])]))}const eX=Le(jG,[["render",QG]]),tX=ge({components:{PodloveButton:Pn,Modal:Za},data(){return{modalOpen:!1}},setup(){return{state:ut({contributors:B.contributors.contributors,voices:B.transcripts.voices}),dispatch:Ze().dispatch}},computed:{sortedContributors(){return this.state.contributors.sort((e,t)=>{const n=e.publicname||e.realname||e.nickname,r=t.publicname||t.realname||t.nickname;return n.localeCompare(r)})}},methods:{updateContributor(e,t){const n=t.target.value;this.dispatch(WM({voice:e,contributor:n}))},openVoices(){this.modalOpen=!0},closeVoices(){this.modalOpen=!1}}}),nX={key:0},rX={class:"border-gray-200 border-b pb-2 px-4 -mx-6 mb-4"},oX={class:"text-lg leading-6 font-medium text-gray-900"},sX={for:"country",class:"block text-sm font-medium text-gray-700"},iX=["value","onChange"],lX=m("option",{value:"0"},null,-1),aX=["value"];function uX(e,t,n,r,o,i){const l=q("podlove-button"),a=q("modal");return e.state.voices.length>0?(I(),F("div",nX,[z(l,{variant:"secondary",size:"small",onClick:t[0]||(t[0]=c=>e.openVoices())},{default:_e(()=>[Be(L(e.__("Voices","podlove-podcasting-plugin-for-wordpress")),1)]),_:1}),z(a,{open:e.modalOpen,onClose:t[1]||(t[1]=c=>e.closeVoices())},{default:_e(()=>[m("div",rX,[m("h3",oX,L(e.__("Transcript Voices","podlove-podcasting-plugin-for-wordpress")),1)]),(I(!0),F(Me,null,Ot(e.state.voices,(c,d)=>(I(),F("div",{key:`voice-${d}`,class:gt(["w-full py-2 px-4",{"bg-white":d%2}])},[m("label",sX,L(c.voice),1),m("select",{value:c.contributor,class:"mt-1 block w-full py-2 px-3 border border-gray-300 bg-white rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm",onChange:p=>e.updateContributor(c.voice,p)},[lX,(I(!0),F(Me,null,Ot(e.sortedContributors,(p,h)=>(I(),F("option",{key:`voice-${d}-contributor-${h}`,value:p.id},L(p.publicname||p.realname||p.nickname),9,aX))),128))],40,iX)],2))),128))]),_:1},8,["open"])])):Te("",!0)}const cX=Le(tX,[["render",uX]]),dX=[{title:"Export webvtt",type:"webvtt",file:"transcript.webvtt",ending:".webvtt"},{title:"Export json (flat)",type:"json",file:"transcript.json",ending:".json"},{title:"Export json (grouped)",type:"json_grouped",file:"transcript.json",ending:".json"},{title:"Export xml",type:"xml",file:"transcript.xml",ending:".xml"}],fX=ge({components:{Popover:nC,PodloveButton:Pn},setup(){return{state:ut({post:B.post.id,baseUrl:B.runtime.baseUrl,transcripts:B.transcripts.list})}},data(){return{exportTypes:dX}}}),pX={key:0},hX={class:"bg-white p-7 pb-1 -translate-x-full z-10 mt-3 transform ml-16 rounded-lg shadow-lg"},mX=["download","href"],gX={class:"text-sm font-medium text-gray-900 truncate w-full mr-2"},vX={class:"text-sm text-gray-500"};function yX(e,t,n,r,o,i){const l=q("podlove-button"),a=q("popover");return e.state.transcripts.length>0?(I(),F("div",pX,[z(a,null,{trigger:_e(()=>[z(l,{variant:"secondary",size:"small",tabindex:"-1"},{default:_e(()=>[Be(L(e.__("Export","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})]),content:_e(()=>[m("div",hX,[(I(!0),F(Me,null,Ot(e.exportTypes,(c,d)=>(I(),F("a",{key:`type-${d}`,download:c.file,href:`${e.state.baseUrl}/?p=${e.state.post}&podlove_transcript=${c.type}`,class:"flex items-center p-2 -m-3 transition duration-150 ease-in-out rounded-lg cursor-pointer bg-gray-100 hover:bg-indigo-100 focus:outline-none focus-visible:ring focus-visible:ring-indigo-500 focus-visible:ring-opacity-50 mb-4"},[m("div",gX,L(c.title),1),m("div",vX,L(c.ending),1)],8,mX))),128))])]),_:1})])):Te("",!0)}const _X=Le(fX,[["render",yX]]),bX=ge({components:{PodloveButton:Pn,Modal:Za,ExclamationIcon:av,DialogTitle:WH},data(){return{modalVisible:!1}},setup(){return{state:ut({transcripts:B.transcripts.list}),dispatch:Ze().dispatch}},methods:{deleteTranscripts(){this.closeModal(),this.dispatch(GM())},openModal(){this.modalVisible=!0},closeModal(){this.modalVisible=!1}}}),wX={key:0},SX={class:"sm:flex sm:items-start"},EX={class:"mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-red-100 sm:mx-0 sm:h-10 sm:w-10"},$X={class:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left"},xX={class:"mt-2"},TX={class:"text-sm text-gray-500"},CX={class:"mt-5 sm:mt-4 sm:flex sm:flex-row-reverse"};function OX(e,t,n,r,o,i){const l=q("podlove-button"),a=q("exclamation-icon"),c=q("DialogTitle"),d=q("modal");return e.state.transcripts.length>0?(I(),F("div",wX,[z(l,{variant:"secondary",size:"small",onClick:t[0]||(t[0]=p=>e.openModal())},{default:_e(()=>[Be("Clear")]),_:1}),z(d,{open:e.modalVisible,onClose:t[3]||(t[3]=p=>e.closeModal())},{default:_e(()=>[m("div",SX,[m("div",EX,[z(a,{class:"h-6 w-6 text-red-600","aria-hidden":"true"})]),m("div",$X,[z(c,{as:"h3",class:"text-lg leading-6 font-medium text-gray-900"},{default:_e(()=>[Be(" Clear Transcript ")]),_:1}),m("div",xX,[m("p",TX,L(e.__("Are you sure you want to clear your transcript?","podlove-podcasting-plugin-for-wordpress")),1)])])]),m("div",CX,[z(l,{class:"sm:ml-3 sm:w-auto sm:text-sm",variant:"danger",onClick:t[1]||(t[1]=p=>e.deleteTranscripts())},{default:_e(()=>[Be(L(e.__("Clear","podlove-podcasting-plugin-for-wordpress")),1)]),_:1}),z(l,{class:"sm:ml-3 sm:w-auto sm:text-sm",onClick:t[2]||(t[2]=p=>e.closeModal())},{default:_e(()=>[Be(L(e.__("Cancel","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})])]),_:1},8,["open"])])):Te("",!0)}const AX=Le(bX,[["render",OX]]),kX=ge({components:{Module:In,TabsContainer:zT,Tab:HT,TranscriptsList:eX,TranscriptsVoices:cX,TranscriptsExport:_X,TranscriptsDelete:AX},setup(){return{dispatch:Ze().dispatch}},created(){this.dispatch(FE()),this.dispatch(VM())}});function IX(e,t,n,r,o,i){const l=q("transcripts-voices"),a=q("transcripts-export"),c=q("transcripts-delete"),d=q("transcripts-list"),p=q("module");return I(),Ye(p,{name:"transcript",title:e.__("Transcripts","podlove-podcasting-plugin-for-wordpress")},{actions:_e(()=>[z(l,{class:"mr-1"}),z(a,{class:"mr-1"}),z(c)]),default:_e(()=>[z(d)]),_:1},8,["title"])}const PX=Le(kX,[["render",IX]]);function rC(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"fill-rule":"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12Zm13.36-1.814a.75.75 0 1 0-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 0 0-1.06 1.06l2.25 2.25a.75.75 0 0 0 1.14-.094l3.75-5.25Z","clip-rule":"evenodd"})])}function pf(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"fill-rule":"evenodd",d:"M19.916 4.626a.75.75 0 0 1 .208 1.04l-9 13.5a.75.75 0 0 1-1.154.114l-6-6a.75.75 0 0 1 1.06-1.06l5.353 5.353 8.493-12.74a.75.75 0 0 1 1.04-.207Z","clip-rule":"evenodd"})])}function hf(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"fill-rule":"evenodd",d:"M11.47 4.72a.75.75 0 0 1 1.06 0l3.75 3.75a.75.75 0 0 1-1.06 1.06L12 6.31 8.78 9.53a.75.75 0 0 1-1.06-1.06l3.75-3.75Zm-3.75 9.75a.75.75 0 0 1 1.06 0L12 17.69l3.22-3.22a.75.75 0 1 1 1.06 1.06l-3.75 3.75a.75.75 0 0 1-1.06 0l-3.75-3.75a.75.75 0 0 1 0-1.06Z","clip-rule":"evenodd"})])}function RX(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"fill-rule":"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003ZM12 8.25a.75.75 0 0 1 .75.75v3.75a.75.75 0 0 1-1.5 0V9a.75.75 0 0 1 .75-.75Zm0 8.25a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z","clip-rule":"evenodd"})])}function LX(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"fill-rule":"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12Zm8.706-1.442c1.146-.573 2.437.463 2.126 1.706l-.709 2.836.042-.02a.75.75 0 0 1 .67 1.34l-.04.022c-1.147.573-2.438-.463-2.127-1.706l.71-2.836-.042.02a.75.75 0 1 1-.671-1.34l.041-.022ZM12 9a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z","clip-rule":"evenodd"})])}function Pv(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"fill-rule":"evenodd",d:"M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25Zm-1.72 6.97a.75.75 0 1 0-1.06 1.06L10.94 12l-1.72 1.72a.75.75 0 1 0 1.06 1.06L12 13.06l1.72 1.72a.75.75 0 1 0 1.06-1.06L13.06 12l1.72-1.72a.75.75 0 1 0-1.06-1.06L12 10.94l-1.72-1.72Z","clip-rule":"evenodd"})])}const FX=ge({props:["file_key","track_index"],components:{Listbox:vv,ListboxButton:_v,ListboxLabel:yv,ListboxOption:wv,ListboxOptions:bv,CheckIcon:pf,SelectorIcon:hf,DocumentCheckIcon:FV},setup(){return{state:ut({services:B.auphonic.incomingServices,serviceFiles:B.auphonic.serviceFiles,fileSelections:B.auphonic.fileSelections,episodeSlug:B.episode.slug}),dispatch:Ze().dispatch}},methods:{set(e,t){this.dispatch(S$({key:this.file_key,prop:e,value:t})),Number.isInteger(this.track_index)&&this.dispatch($$({track:{},index:this.track_index}))},handleFileSelection(e){this.set("fileSelection",e.target.value)},handleUrlUpdate(e){this.set("urlValue",e.target.value)},handleFileUploadSelection(e){const t=e.target.files;t?this.set("fileValue",t[0]):this.set("fileValue",null)},handleServiceSelection(e){this.set("currentServiceSelection",e.target.value)},setEpisodeSlug(e){this.dispatch(bt({prop:"slug",value:e})),this.dispatch(W$())}},computed:{services(){return this.state.services},currentService(){return this.state.services.find(e=>e.uuid===this.currentServiceSelection)},serviceFiles(){return Y.get(this.state,["serviceFiles",this.currentServiceSelection],null)},fileSelection(){return this.state.fileSelections[this.file_key]},filenameSelectedForUpload(){var e,t;return(t=(e=this.fileSelection)==null?void 0:e.fileValue)==null?void 0:t.name},currentServiceSelection(){var e;return(e=this.fileSelection)==null?void 0:e.currentServiceSelection},urlFieldValue(){return this.fileSelection.urlValue},externalFileFieldValue(){return this.fileSelection.fileSelection},slugCandidate(){if(this.currentServiceSelection=="url"&&this.urlFieldValue)return this.urlFieldValue.split("/").reverse()[0].split(".")[0];if(this.currentServiceSelection=="file"){const e=this.filenameSelectedForUpload;return e?e.split(".")[0]:null}return null},shouldSuggestSlug(){return this.slugCandidate!=null&&this.slugCandidate!=this.state.episodeSlug}}}),NX={class:"flex flex-col gap-2"},MX=m("label",{class:"block md:hidden text-sm font-medium text-gray-700"},"Upload Method",-1),DX=["value","selected"],UX={key:0},BX={key:0},jX=["for"],VX={class:"sm:mt-1 rounded-md bg-indigo-50 px-3 py-2 text-sm font-semibold text-indigo-600 shadow-sm hover:bg-indigo-100"},HX={key:0,class:"sm:mt-1 text-sm font-normal"},zX=["id"],WX={key:1},qX=["for"],KX={class:"mt-1"},GX=["id","value"],XX={key:2},YX={key:0},JX=["for"],ZX=["id","value"],QX=["value"],eY={key:1},tY={key:3,class:"mt-3"},nY={class:"font-mono"};function rY(e,t,n,r,o,i){const l=q("DocumentCheckIcon");return I(),F("div",null,[m("div",NX,[m("div",null,[MX,m("select",{onChange:t[0]||(t[0]=(...a)=>e.handleServiceSelection&&e.handleServiceSelection(...a)),class:"mt-1 block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm rounded-md"},[(I(!0),F(Me,null,Ot(e.services,a=>(I(),F("option",{key:a.uuid,value:a.uuid,selected:a.uuid==e.currentServiceSelection},L(a.type)+": "+L(a.display_name),9,DX))),128))],32)]),e.currentService?(I(),F("div",UX,[e.currentService.type==="file"?(I(),F("div",BX,[m("label",{for:e.file_key+"file-upload",class:"relative flex items-center gap-2 cursor-pointer bg-white rounded-md font-medium text-indigo-600 hover:text-indigo-500 focus-within:outline-none"},[m("div",VX,L(e.__("Choose File","podlove-podcasting-plugin-for-wordpress")),1),e.filenameSelectedForUpload?(I(),F("div",HX,[Be(L(e.__("Selected for Upload:","podlove-podcasting-plugin-for-wordpress"))+" ",1),m("span",null,L(e.filenameSelectedForUpload),1)])):Te("",!0),m("input",{id:e.file_key+"file-upload",name:"file-upload",type:"file",class:"sr-only",onInput:t[1]||(t[1]=(...a)=>e.handleFileUploadSelection&&e.handleFileUploadSelection(...a))},null,40,zX)],8,jX)])):e.currentService.type==="url"?(I(),F("div",WX,[m("label",{for:e.file_key+"audio_source_url",class:"block text-sm font-medium text-gray-700"},"File URL",8,qX),m("div",KX,[m("input",{type:"url",name:"audio_source_url",id:e.file_key+"audio_source_url",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",placeholder:"https://example.com/audio.flac",value:e.urlFieldValue,onInput:t[2]||(t[2]=(...a)=>e.handleUrlUpdate&&e.handleUrlUpdate(...a))},null,40,GX)])])):(I(),F("div",XX,[e.serviceFiles!==null?(I(),F("div",YX,[m("label",{for:e.file_key+"external_file",class:"block text-sm font-medium text-gray-700"},"File",8,JX),m("select",{name:"audio_external_file",id:e.file_key+"external_file",class:"mt-1 block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm rounded-md",value:e.externalFileFieldValue,onChange:t[3]||(t[3]=(...a)=>e.handleFileSelection&&e.handleFileSelection(...a))},[(I(!0),F(Me,null,Ot(e.serviceFiles,a=>(I(),F("option",{key:a,value:a,d:""},L(a),9,QX))),128))],40,ZX)])):(I(),F("div",eY,"..."))])),e.shouldSuggestSlug?(I(),F("div",tY,[m("button",{onClick:t[4]||(t[4]=()=>e.setEpisodeSlug(e.slugCandidate)),type:"button",class:"relative text-xs inline-flex items-center rounded-md bg-white px-3 py-2 font-medium text-gray-500 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50"},[z(l,{class:"-ml-0.5 mr-1.5 h-4 w-4 text-gray-400","aria-hidden":"true"}),m("span",null,[Be(L(e.__("Use as Episode Slug:","podlove-podcasting-plugin-for-wordpress"))+" ",1),m("span",nY,L(e.slugCandidate),1)])])])):Te("",!0)])):Te("",!0)])])}const oY=Le(FX,[["render",rY]]),sY=ge({name:"TransferHeader"}),iY={class:"mb-4"},lY=m("h3",{class:"text-lg font-medium leading-6 text-gray-900"},"PLUS File Storage",-1),aY={class:"mt-1 text-sm text-gray-500"};function uY(e,t,n,r,o,i){return I(),F("div",iY,[lY,m("p",aY,L(e.__("Auphonic files are automatically transferred to PLUS storage.","podlove-podcasting-plugin-for-wordpress")),1)])}const cY=Le(sY,[["render",uY]]),dY=ge({name:"TransferFileItem",components:{ClockIcon:Xx,ArrowPathIcon:tf,CheckCircleIcon:Kx,XCircleIcon:Qx},props:{file:{type:Object,required:!0}},methods:{getFileStatusMessage(e){switch(e.status){case"pending":return"Waiting...";case"processing":return"Transferring...";case"completed":return"Completed";case"failed":return e.message||"Failed";default:return e.message||""}}}}),fY={class:"flex items-center text-sm"},pY={class:"flex-shrink-0 mr-2"},hY={class:"font-medium"};function mY(e,t,n,r,o,i){const l=q("ArrowPathIcon"),a=q("CheckCircleIcon"),c=q("XCircleIcon"),d=q("ClockIcon");return I(),F("li",fY,[m("span",pY,[e.file.status==="processing"?(I(),Ye(l,{key:0,class:"h-4 w-4 text-blue-500 animate-spin"})):e.file.status==="completed"?(I(),Ye(a,{key:1,class:"h-4 w-4 text-green-500"})):e.file.status==="failed"?(I(),Ye(c,{key:2,class:"h-4 w-4 text-red-500"})):(I(),Ye(d,{key:3,class:"h-4 w-4 text-gray-400"}))]),m("span",hY,L(e.file.filename),1),m("span",{class:gt(["ml-2 text-xs",{"text-blue-600":e.file.status==="processing","text-green-600":e.file.status==="completed","text-red-600":e.file.status==="failed","text-gray-500":e.file.status==="pending"}])},L(e.getFileStatusMessage(e.file)),3)])}const oC=Le(dY,[["render",mY]]),gY=ge({name:"TransferFileList",components:{TransferFileItem:oC},props:{files:{type:Array,default:()=>[]},title:{type:String,default:""}}}),vY={key:0},yY={class:"font-medium"},_Y={class:"mt-1 space-y-1"};function bY(e,t,n,r,o,i){const l=q("TransferFileItem");return e.files&&e.files.length>0?(I(),F("div",vY,[m("p",yY,L(e.title),1),m("ul",_Y,[(I(!0),F(Me,null,Ot(e.files,a=>(I(),Ye(l,{key:a.filename,file:a},null,8,["file"]))),128))])])):Te("",!0)}const wY=Le(gY,[["render",bY]]),SY=ge({name:"TransferStatusPanel",components:{ClockIcon:Xx,ArrowPathIcon:tf,CheckCircleIcon:Kx,XCircleIcon:Qx,ExclamationTriangleIcon:av,TransferFileList:wY,TransferFileItem:oC},props:{status:{type:String,required:!0},files:{type:Array,default:()=>[]},errors:{type:String,default:void 0}},emits:["action"]}),EY={key:0,class:"rounded-md bg-blue-50 p-4"},$Y={class:"flex"},xY={class:"flex-shrink-0"},TY={class:"ml-3"},CY={class:"text-sm font-medium text-blue-800"},OY={class:"mt-2 text-sm text-blue-700"},AY={class:"mt-4"},kY={key:1,class:"rounded-md bg-gray-50 p-4"},IY={class:"flex"},PY={class:"flex-shrink-0"},RY={class:"ml-3"},LY={class:"text-sm font-medium text-gray-800"},FY={class:"mt-2 text-sm text-gray-700"},NY={key:0,class:"mt-3"},MY={class:"space-y-1"},DY={key:2,class:"rounded-md bg-green-50 p-4"},UY={class:"flex"},BY={class:"flex-shrink-0"},jY={class:"ml-3"},VY={class:"text-sm font-medium text-green-800"},HY={class:"mt-2 text-sm text-green-700"},zY={key:3,class:"rounded-md bg-yellow-50 p-4"},WY={class:"flex"},qY={class:"flex-shrink-0"},KY={class:"ml-3"},GY={class:"text-sm font-medium text-yellow-800"},XY={class:"mt-2 text-sm text-yellow-700"},YY={class:"mt-4"},JY={key:4,class:"rounded-md bg-red-50 p-4"},ZY={class:"flex"},QY={class:"flex-shrink-0"},eJ={class:"ml-3"},tJ={class:"text-sm font-medium text-red-800"},nJ={class:"mt-2 text-sm text-red-700"},rJ={key:0,class:"mt-2"},oJ={class:"font-medium"},sJ={class:"text-sm text-red-600"},iJ={key:1,class:"mt-2"},lJ={class:"font-medium"},aJ={class:"mt-1 list-disc list-inside"},uJ={class:"font-medium"},cJ={key:0,class:"text-green-600 ml-2"},dJ={key:1,class:"text-red-600 ml-2"},fJ={class:"mt-4"};function pJ(e,t,n,r,o,i){const l=q("ClockIcon"),a=q("ArrowPathIcon"),c=q("TransferFileItem"),d=q("CheckCircleIcon"),p=q("TransferFileList"),h=q("ExclamationTriangleIcon"),v=q("XCircleIcon");return e.status==="waiting_for_webhook"?(I(),F("div",EY,[m("div",$Y,[m("div",xY,[z(l,{class:"h-5 w-5 text-blue-400","aria-hidden":"true"})]),m("div",TY,[m("h3",CY,L(e.__("Waiting for Transfer","podlove-podcasting-plugin-for-wordpress")),1),m("div",OY,[m("p",null,L(e.__("Files will be transferred automatically when the production is completed.","podlove-podcasting-plugin-for-wordpress")),1)]),m("div",AY,[m("button",{onClick:t[0]||(t[0]=y=>e.$emit("action")),class:"inline-flex items-center rounded-md bg-blue-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-blue-700 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-600"},L(e.__("Transfer Now","podlove-podcasting-plugin-for-wordpress")),1)])])])])):e.status==="in_progress"?(I(),F("div",kY,[m("div",IY,[m("div",PY,[z(a,{class:"h-5 w-5 text-gray-400 animate-spin","aria-hidden":"true"})]),m("div",RY,[m("h3",LY,L(e.__("Transferring Files","podlove-podcasting-plugin-for-wordpress")),1),m("div",FY,[m("p",null,L(e.__("Files are being transferred to PLUS storage...","podlove-podcasting-plugin-for-wordpress")),1),e.files&&e.files.length>0?(I(),F("div",NY,[m("ul",MY,[(I(!0),F(Me,null,Ot(e.files,y=>(I(),Ye(c,{key:y.filename,file:y},null,8,["file"]))),128))])])):Te("",!0)])])])])):e.status==="completed"?(I(),F("div",DY,[m("div",UY,[m("div",BY,[z(d,{class:"h-5 w-5 text-green-400","aria-hidden":"true"})]),m("div",jY,[m("h3",VY,L(e.__("Transfer Complete","podlove-podcasting-plugin-for-wordpress")),1),m("div",HY,[m("p",null,L(e.__("All files have been transferred successfully to PLUS storage.","podlove-podcasting-plugin-for-wordpress")),1),e.files&&e.files.length>0?(I(),Ye(p,{key:0,files:e.files,title:e.__("Transferred files:","podlove-podcasting-plugin-for-wordpress"),class:"mt-2"},null,8,["files","title"])):Te("",!0)])])])])):e.status==="completed_with_errors"?(I(),F("div",zY,[m("div",WY,[m("div",qY,[z(h,{class:"h-5 w-5 text-yellow-400","aria-hidden":"true"})]),m("div",KY,[m("h3",GY,L(e.__("Transfer Completed with Errors","podlove-podcasting-plugin-for-wordpress")),1),m("div",XY,[m("p",null,L(e.__("Some files were transferred successfully, but others failed.","podlove-podcasting-plugin-for-wordpress")),1),e.files&&e.files.length>0?(I(),Ye(p,{key:0,files:e.files,title:e.__("File transfer results:","podlove-podcasting-plugin-for-wordpress"),class:"mt-2"},null,8,["files","title"])):Te("",!0)]),m("div",YY,[m("button",{onClick:t[1]||(t[1]=y=>e.$emit("action")),class:"inline-flex items-center rounded-md bg-yellow-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-yellow-700 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-yellow-600"},L(e.__("Retry Failed Transfers","podlove-podcasting-plugin-for-wordpress")),1)])])])])):e.status==="failed"?(I(),F("div",JY,[m("div",ZY,[m("div",QY,[z(v,{class:"h-5 w-5 text-red-400","aria-hidden":"true"})]),m("div",eJ,[m("h3",tJ,L(e.__("Transfer Failed","podlove-podcasting-plugin-for-wordpress")),1),m("div",nJ,[m("p",null,L(e.__("Some files failed to transfer to PLUS storage.","podlove-podcasting-plugin-for-wordpress")),1),e.errors?(I(),F("div",rJ,[m("p",oJ,L(e.__("Error details:","podlove-podcasting-plugin-for-wordpress")),1),m("p",sJ,L(e.errors),1)])):Te("",!0),e.files&&e.files.length>0?(I(),F("div",iJ,[m("p",lJ,L(e.__("File transfer results:","podlove-podcasting-plugin-for-wordpress")),1),m("ul",aJ,[(I(!0),F(Me,null,Ot(e.files,y=>(I(),F("li",{key:y.filename,class:"text-sm"},[m("span",uJ,L(y.filename),1),y.success?(I(),F("span",cJ,"✓")):(I(),F("span",dJ,"✗ "+L(y.message),1))]))),128))])])):Te("",!0)]),m("div",fJ,[m("button",{onClick:t[2]||(t[2]=y=>e.$emit("action")),class:"inline-flex items-center rounded-md bg-red-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-red-700 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-red-600"},L(e.__("Retry Transfer","podlove-podcasting-plugin-for-wordpress")),1)])])])])):Te("",!0)}const hJ=Le(SY,[["render",pJ]]),mJ=ge({name:"PlusTransferStatus",components:{TransferHeader:cY,TransferStatusPanel:hJ},setup(){return{state:ut({production:B.auphonic.production,plusTransferStatus:B.auphonic.plusTransferStatus,plusTransferFiles:B.auphonic.plusTransferFiles,plusTransferErrors:B.auphonic.plusTransferErrors}),dispatch:Ze().dispatch}},mounted(){this.loadPlusTransferStatus()},methods:{loadPlusTransferStatus(){this.production.uuid&&this.dispatch(B8({production_uuid:this.production.uuid}))},triggerManualTransfer(){this.production.uuid&&this.dispatch(T$({production_uuid:this.production.uuid}))},refreshEpisodeData(){this.dispatch(rD())}},computed:{production(){return this.state.production||{}},plusTransferStatus(){return this.state.plusTransferStatus},plusTransferFiles(){return this.state.plusTransferFiles},plusTransferErrors(){return this.state.plusTransferErrors},showPlusTransferStatus(){return this.production.status===3}}}),gJ={key:0,class:"mt-4 overflow-hidden rounded-lg bg-white shadow"},vJ={class:"p-6"};function yJ(e,t,n,r,o,i){const l=q("TransferHeader"),a=q("TransferStatusPanel");return e.showPlusTransferStatus?(I(),F("div",gJ,[m("div",vJ,[z(l),z(a,{status:e.plusTransferStatus||"waiting_for_webhook",files:e.plusTransferFiles,errors:e.plusTransferErrors,onAction:e.triggerManualTransfer},null,8,["status","files","errors","onAction"])])])):Te("",!0)}const _J=Le(mJ,[["render",yJ]]),bJ=ge({components:{ClipboardCheckIcon:PV,ExternalLinkIcon:qx,ExclamationIcon:av,PlusTransferStatus:_J},setup(){return{state:ut({production:B.auphonic.production,title:B.episode.title,subtitle:B.episode.subtitle,summary:B.episode.summary,duration:B.episode.duration,slug:B.episode.slug,license_name:B.episode.license_name,license_url:B.episode.license_url,chapters:B.chapters.list,episodeId:B.episode.id,plusFeatures:B.plus.features}),dispatch:Ze().dispatch}},created(){this.dispatch(Wd())},methods:{isDifferent(e){switch(e.title){case"chapters":const t=e.here.map(r=>r.start+(r.title||"")+(r.href||"")+(r.image||"")).join(";"),n=e.there.map(r=>Math.round((r.start_output_sec||0)*1e3)+(r.title||"")+(r.url||"")+(r.image||"")).join(";");return t!=n;default:return e.there!=e.here}},renderEntryPreview(e){switch(e.title){case"chapters":return e.there.map(n=>n.start+" "+n.title).join(" / ");default:return e.there}},importMeta(e,t){switch(e){case"chapters":const r=t.map(o=>({start:Math.round((o.start_output_sec||0)*1e3),title:o.title||"",href:o.url||"",image:""}));this.dispatch(pE(r));break;default:this.dispatch(bt({prop:e,value:t}));break}},importAllMeta(){this.visibleEntries.forEach(e=>{this.importMeta(e.title,e.there)})}},computed:{production(){return this.state.production||{}},entries(){const e=this.state.production,t=this.state;return[{key:1,title:"title",here:t.title,there:e.metadata.title},{key:2,title:"subtitle",here:t.subtitle,there:e.metadata.subtitle},{key:3,title:"summary",here:t.summary,there:e.metadata.summary},{key:5,title:"license_name",here:t.license_name,there:e.metadata.license},{key:6,title:"license_url",here:t.license_url,there:e.metadata.license_url},{key:9,title:"slug",here:t.slug,there:e.output_basename},{key:10,title:"chapters",here:t.chapters,there:e.chapters}]},visibleEntries(){return this.entries.filter(e=>e.there&&this.isDifferent(e))},plusFileStorageEnabled(){return this.state.plusFeatures.fileStorage}}}),wJ={key:0,class:"rounded-md bg-green-50 p-4"},SJ={class:"flex"},EJ={class:"flex-shrink-0"},$J={class:"ml-3"},xJ={class:"text-sm font-medium text-green-800"},TJ={class:"mt-2 text-sm text-green-700"},CJ=["href"],OJ={key:1,class:"rounded-md bg-yellow-50 p-4 mt-4"},AJ={class:"flex"},kJ={class:"flex-shrink-0"},IJ={class:"ml-3"},PJ={class:"text-sm font-medium text-yellow-800"},RJ={class:"mt-2 text-sm text-yellow-700"},LJ={key:3,class:"mt-4 overflow-hidden rounded-lg bg-white shadow"},FJ={class:"p-6"},NJ=m("h3",{class:"text-lg font-medium leading-6 text-gray-900"},"Import Metadata",-1),MJ={class:"mt-1 text-sm text-gray-500"},DJ={class:"mt-6 flow-root"},UJ={role:"list",class:"-my-5 divide-y divide-gray-200"},BJ={class:"flex items-center space-x-4"},jJ={class:"min-w-0 flex-1"},VJ={class:"truncate text-sm text-gray-500"},HJ={class:"truncate text-sm font-medium text-gray-900"},zJ=["onClick"],WJ={class:"hidden sm:inline"},qJ={class:"mt-6"},KJ={key:4,class:"mt-4 overflow-hidden rounded-lg bg-white shadow"},GJ={class:"p-6"};function XJ(e,t,n,r,o,i){const l=q("ClipboardCheckIcon"),a=q("ExternalLinkIcon"),c=q("ExclamationIcon"),d=q("PlusTransferStatus");return I(),F("div",null,[e.production.status==3?(I(),F("div",wJ,[m("div",SJ,[m("div",EJ,[z(l,{class:"h-5 w-5 text-green-400","aria-hidden":"true"})]),m("div",$J,[m("h3",xJ,L(e.__("Done","podlove-podcasting-plugin-for-wordpress")),1),m("div",TJ,[m("p",null,[m("a",{href:e.production.status_page,target:"_blank",class:"underline inline-flex items-center"},[Be(L(e.__("View Results","podlove-podcasting-plugin-for-wordpress"))+" ",1),z(a,{class:"ml-0.5 mr-1 h-4 w-4","aria-hidden":"true"})],8,CJ),Be(" "+L(e.__("on the Auphonic status page.","podlove-podcasting-plugin-for-wordpress")),1)])])])])])):Te("",!0),e.production.warning_message?(I(),F("div",OJ,[m("div",AJ,[m("div",kJ,[z(c,{class:"h-5 w-5 text-yellow-400","aria-hidden":"true"})]),m("div",IJ,[m("h3",PJ,L(e.__("Warning","podlove-podcasting-plugin-for-wordpress")),1),m("div",RJ,[m("p",null,L(e.production.warning_message),1)])])])])):Te("",!0),e.plusFileStorageEnabled?(I(),Ye(d,{key:2})):Te("",!0),e.visibleEntries.length>0?(I(),F("div",LJ,[m("div",FJ,[m("div",null,[NJ,m("p",MJ,L(e.__("These values from your Auphonic Production differ from your local values:","podlove-podcasting-plugin-for-wordpress")),1)]),m("div",DJ,[m("ul",UJ,[(I(!0),F(Me,null,Ot(e.visibleEntries,p=>(I(),F("li",{key:p.key,class:"py-4"},[m("div",BJ,[m("div",jJ,[m("p",VJ,[m("em",null,L(p.title),1),Be(" "+L(e.__("in the Auphonic Production is:","podlove-podcasting-plugin-for-wordpress")),1)]),m("p",HJ,L(e.renderEntryPreview(p)),1)]),m("div",null,[m("button",{onClick:va(h=>e.importMeta(p.title,p.there),["prevent"]),class:"inline-flex items-center rounded-full border border-gray-300 bg-white px-2.5 py-0.5 text-sm font-medium leading-5 text-gray-700 shadow-sm hover:bg-gray-50","aria-label":"Import from Auphonic"},[Be(L(e.__("Import","podlove-podcasting-plugin-for-wordpress")),1),m("span",WJ," "+L(e.__("from Auphonic","podlove-podcasting-plugin-for-wordpress")),1)],8,zJ)])])]))),128))])]),m("div",qJ,[m("button",{onClick:t[0]||(t[0]=va((...p)=>e.importAllMeta&&e.importAllMeta(...p),["prevent"])),class:"flex w-full items-center justify-center rounded-md border border-gray-300 bg-white px-4 py-2 text-sm font-medium text-gray-700 shadow-sm hover:bg-gray-50"},L(e.__("Import all from Auphonic","podlove-podcasting-plugin-for-wordpress")),1)])])])):(I(),F("div",KJ,[m("div",GJ,L(e.__("Nothing to import","podlove-podcasting-plugin-for-wordpress")),1)]))])}const YJ=Le(bJ,[["render",XJ]]),JJ=ge({components:{Switch:DT,SwitchGroup:sz,SwitchLabel:iz},data(){return{enabled:!1}},methods:{handleUpdate(e){this.enabled=e,this.dispatch(x$(e))}},setup(){return{state:ut({publishWhenDone:B.auphonic.publishWhenDone}),dispatch:Ze().dispatch}},mounted(){this.enabled=this.state.publishWhenDone}}),ZJ={class:"text-sm text-gray-900"};function QJ(e,t,n,r,o,i){const l=q("Switch"),a=q("SwitchLabel"),c=q("SwitchGroup");return I(),F("div",null,[z(c,{as:"div",class:"flex items-center"},{default:_e(()=>[z(l,{modelValue:e.enabled,"onUpdate:modelValue":e.handleUpdate,class:gt([e.enabled?"bg-indigo-600":"bg-gray-200","relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"])},{default:_e(()=>[m("span",{"aria-hidden":"true",class:gt([e.enabled?"translate-x-5":"translate-x-0","pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out"])},null,2)]),_:1},8,["modelValue","onUpdate:modelValue","class"]),z(a,{as:"span",class:"ml-3"},{default:_e(()=>[m("span",ZJ,L(e.__("Publish Episode when Production is done","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})]),_:1})])}const eZ=Le(JJ,[["render",QJ]]),tZ=ge({props:{className:{type:String,default:""}}}),nZ=m("g",{transform:"translate(-12.73496,-48.464)"},[m("path",{d:"m 28.623,223.469 c -3.277,-0.007 -7.473,0.836 -12.588,2.528 l 1.46,6.491 c 3.476,-1.302 6.689,-1.95 9.638,-1.944 3.472,0.008 5.797,0.63 6.975,1.868 1.176,1.237 1.762,3.569 1.754,6.998 l -7.373,-0.017 c -5.047,-0.011 -8.933,1.031 -11.655,3.125 -2.725,2.092 -4.091,5.007 -4.099,8.739 -0.008,3.334 1.198,6.07 3.618,8.207 2.419,2.14 5.661,3.212 9.726,3.221 4.389,0.01 8.063,-1.161 11.017,-3.512 l 1.075,2.655 7.471,0.017 0.052,-23.199 c 0.011,-4.848 -1.243,-8.587 -3.759,-11.214 -2.519,-2.628 -6.956,-3.949 -13.312,-3.963 z m 7.6,30 c -0.33,0.195 -0.92,0.505 -1.772,0.929 -0.853,0.424 -1.738,0.734 -2.656,0.929 -0.92,0.193 -2.033,0.29 -3.343,0.287 -1.966,-0.004 -3.506,-0.443 -4.618,-1.314 -1.113,-0.873 -1.666,-2.08 -1.663,-3.618 0.007,-3.079 2.467,-4.611 7.382,-4.601 4.916,0.011 6.685,0.006 6.685,0.006 l -0.015,7.382 z m 41.315,-29.3 9.241,0.021 -0.084,37.845 -6.489,-0.014 -1.173,-2.754 c -2.494,1.173 -5.743,3.524 -12.295,3.51 -5.701,-0.013 -13.761,-0.336 -13.723,-17.135 l 0.048,-21.527 9.339,0.021 -0.051,22.806 c -0.013,5.661 2.719,7.772 6.863,7.781 2.883,0.007 5.638,-0.74 8.262,-2.243 l 0.062,-28.311 z m 44.305,1.377 c -2.751,-1.251 -5.502,-1.88 -8.254,-1.887 -3.801,-0.008 -7.539,1 -11.212,3.023 l -1.076,-2.46 -6.586,-0.015 -0.111,49.679 9.436,0.021 0.029,-13.013 c 1.505,0.659 4.534,1.975 8.154,1.983 6.096,0.014 10.833,-1.728 14.215,-5.226 3.385,-3.498 5.083,-8.296 5.097,-14.391 0.011,-4.719 -0.914,-8.538 -2.776,-11.458 -1.863,-2.918 -4.166,-5.005 -6.916,-6.256 z m -3.061,27.173 c -2.066,1.863 -4.772,2.792 -8.114,2.784 -2.425,-0.005 -4.587,-0.633 -6.484,-1.883 l 0.047,-21.135 c 2.098,-0.912 4.36,-1.367 6.786,-1.362 7.274,0.017 10.902,4.219 10.884,12.608 -0.01,4.129 -1.049,7.124 -3.119,8.988 z m 53.325,-12.021 -0.048,21.43 -9.437,-0.021 0.051,-22.708 c 0.005,-2.293 -0.45,-4.145 -1.363,-5.557 -0.917,-1.411 -2.717,-2.12 -5.402,-2.125 -2.427,-0.005 -5.408,0.676 -8.949,2.044 l -0.063,28.311 -9.437,-0.021 0.111,-49.608 9.436,0.021 -0.03,13.827 c 3.935,-1.628 7.736,-2.441 11.406,-2.433 5.636,0.012 13.762,0.659 13.725,16.84 z m 92.456,-16.111 9.437,0.021 -0.084,37.747 -9.437,-0.021 0.084,-37.747 z m 46.696,29.103 2.643,6.102 c -1.97,1.11 -4.085,1.99 -6.347,2.639 -2.263,0.649 -4.969,0.972 -8.113,0.965 -5.898,-0.013 -10.629,-1.825 -14.192,-5.438 -3.564,-3.611 -5.337,-8.368 -5.324,-14.266 0.014,-6.095 1.793,-10.891 5.339,-14.389 3.547,-3.497 8.302,-5.241 14.266,-5.228 3.014,0.006 5.586,0.307 7.715,0.901 2.127,0.595 4.371,1.453 6.729,2.571 l -2.67,6.187 c -2.356,-0.792 -4.208,-1.369 -5.548,-1.732 -1.345,-0.363 -2.9,-0.547 -4.67,-0.551 -3.735,-0.008 -6.572,1.1 -8.509,3.323 -1.938,2.224 -2.912,5.203 -2.921,8.938 -0.008,3.605 1,6.54 3.028,8.805 2.024,2.266 4.809,3.403 8.347,3.412 1.77,0.004 3.326,-0.173 4.673,-0.531 1.339,-0.356 3.193,-0.926 5.554,-1.708 z m -53.79,-12.801 -0.048,21.43 -9.338,-0.021 0.05,-22.609 c 0.016,-7.021 -4.21,-7.677 -6.766,-7.683 -2.295,-0.005 -5.344,0.676 -9.146,2.044 l -0.062,28.212 -9.339,-0.021 0.084,-37.747 6.683,0.015 1.175,2.755 c 4.462,-2.152 8.818,-3.225 13.081,-3.215 4.405,0.01 13.663,0.163 13.626,16.84 z m -59.894,-17.042 c -5.898,-0.013 -10.62,1.731 -14.167,5.227 -3.545,3.499 -5.327,8.294 -5.341,14.389 -0.009,3.801 0.784,7.178 2.385,10.131 1.6,2.953 3.854,5.268 6.769,6.946 2.913,1.676 6.301,2.52 10.169,2.528 3.866,0.009 7.274,-0.82 10.228,-2.483 2.955,-1.665 5.234,-3.969 6.848,-6.915 1.612,-2.946 2.423,-6.351 2.432,-10.218 0.013,-5.963 -1.73,-10.719 -5.228,-14.265 -3.5,-3.546 -8.195,-5.327 -14.095,-5.34 z m 6.866,28.62 c -1.809,2.095 -4.152,3.137 -7.035,3.131 -2.753,-0.006 -5.047,-1.076 -6.874,-3.21 -1.831,-2.133 -2.741,-5.102 -2.732,-8.903 0.008,-3.866 0.949,-6.879 2.821,-9.037 1.872,-2.159 4.15,-3.235 6.84,-3.229 2.752,0.006 5.059,1.077 6.922,3.21 1.862,2.134 2.791,5.167 2.783,9.099 -0.009,3.868 -0.918,6.848 -2.725,8.939 z"}),m("path",{d:"M 53.464,198.261 H 13.619 c 0,-0.001 0,-0.004 0,-0.006 0,-82.727 67.065,-149.791 149.788,-149.791 82.729,0 149.794,67.063 149.794,149.791 0,0.002 0,0.005 0,0.006 h -39.844 c 0.006,-0.435 0.017,-0.869 0.017,-1.306 0,-60.731 -49.234,-109.963 -109.967,-109.963 -60.727,0 -109.959,49.232 -109.959,109.963 -10e-4,0.437 0.011,0.871 0.016,1.306 z m 189.059,0 c 0.019,-0.705 0.053,-1.407 0.053,-2.117 0,-43.723 -35.444,-79.167 -79.167,-79.167 -43.722,0 -79.166,35.445 -79.166,79.167 0,0.71 0.035,1.412 0.054,2.117 h 39.67 c -0.085,-1.047 -0.14,-2.103 -0.14,-3.172 0,-21.861 17.721,-39.584 39.582,-39.584 21.862,0 39.583,17.723 39.583,39.584 0,1.069 -0.055,2.125 -0.139,3.172 h 39.67 z"})],-1),rZ=[nZ];function oZ(e,t,n,r,o,i){return I(),F("svg",{class:gt(e.className),viewBox:"0 0 301.24005 225.44299",stroke:"currentColor",fill:"currentColor","aria-hidden":"true"},rZ,2)}const Rv=Le(tZ,[["render",oZ]]),sZ=ge({components:{PodloveButton:Pn,FileChooser:oY,CogIcon:LV,ChevronDownIcon:Gx,ChevronRightIcon:kV,XIcon:ml,DatabaseIcon:IV,ExternalLinkIcon:qx,CloudIcon:Yx,TrashIcon:DV,ArrowDownIcon:Wx,ArrowDownTrayIcon:$V,AuphonicLogo:Rv,DonePage:YJ,WebhookToggle:eZ},data(){return{algorithmSettings:{},showImportPage:!1}},setup(){return{state:ut({production:B.auphonic.production,tracks:B.auphonic.tracks,isSaving:B.auphonic.isSaving,progress:e=>t=>B.progress.progress(e,t)}),dispatch:Ze().dispatch}},methods:{saveProduction(){this.dispatch(_$({uuid:this.production.uuid}))},startProduction(){this.dispatch(b$({uuid:this.production.uuid}))},deselectProduction(){this.dispatch(v$())},addTrack(){this.dispatch(N8())},removeTrack(e){this.dispatch(E$(e))},updateTrack(e,t,n){this.dispatch($$({track:{[e]:t},index:n}))},algorithmSettingsVisible(e){return!0},toggleAlgorithmSettingVisible(e){this.algorithmSettings[e]=!Y.get(this.algorithmSettings,e,!1)},handleSelectForeBackground(e,t){this.updateTrack("fore_background",e.target.value,t)},handleToggleNoiseHum(e,t){this.updateTrack("noise_and_hum_reduction",e.target.checked,t)},handleToggleFiltering(e,t){this.updateTrack("filtering",e.target.checked,t)},handleUpdateIdentifier(e,t){this.updateTrack("identifier_new",e.target.value,t)},uploadProgress(e){return this.state.progress(e)||null}},computed:{production(){return this.state.production||{}},isSaving(){return this.state.isSaving},showProcessingScreen(){return[1,4,5,6,7,8,12,13,14].includes(this.production.status)},showUploadScreen(){return this.production.status===0},showTrackEditor(){return[9,10,11].includes(this.production.status)},tracks(){return this.state.tracks||[]},isMultitrack(){return this.state.production&&this.state.production.is_multitrack}}}),iZ={class:"pb-5 space-y-4"},lZ={class:"space-y-8"},aZ={class:"bg-white px-4 sm:px-6"},uZ={class:"-ml-4 -mt-4 flex flex-wrap items-center justify-between sm:flex-nowrap"},cZ={class:"ml-4 mt-4"},dZ={class:"flex items-center"},fZ={class:"flex-shrink-0"},pZ={class:"ml-4"},hZ={class:"text-base font-semibold leading-6 text-gray-900"},mZ={class:"text-sm text-gray-500"},gZ={class:"ml-4 mt-4 flex items-center space-x-4 text-xs"},vZ={key:0,class:"inline-flex items-center animate-pulse text-green-600"},yZ={key:0},_Z={key:1},bZ={class:"space-y-4"},wZ={key:0},SZ={key:1},EZ={class:"rounded-md bg-indigo-50 p-4"},$Z={class:"flex"},xZ={class:"flex-shrink-0"},TZ={class:"ml-3"},CZ={class:"text-sm font-medium text-indigo-800"},OZ={class:"mt-2 text-sm text-indigo-700"},AZ={key:2},kZ={key:3},IZ={class:"bg-white shadow overflow-hidden rounded-md"},PZ={class:"px-6 pt-4 hidden md:block"},RZ={class:"md:grid md:grid-cols-3 md:gap-12"},LZ={class:"block text-sm font-medium text-gray-700 md:col-span-1"},FZ={class:"block text-sm font-medium text-gray-700 mt-5 md:mt-0 md:col-span-1"},NZ={class:"block text-sm font-medium text-gray-700 mt-5 md:mt-0 md:col-span-1"},MZ=m("div",{class:"block w-8 md:col-span-1"},null,-1),DZ={role:"list",class:"divide-y divide-gray-200"},UZ={class:"md:grid md:grid-cols-3 md:gap-12"},BZ={class:"md:col-span-1"},jZ=["for"],VZ=["id","value","onInput"],HZ={class:"mt-5 md:mt-0 md:col-span-1"},zZ={class:"sm:items-baseline"},WZ={class:"mt-4 sm:mt-0"},qZ={key:0,class:"mt-2 px-3 py-2 bg-gray-100 rounded-md text-sm text-gray-700 break-all"},KZ={key:1},GZ={class:"mt-2","aria-hidden":"true"},XZ={class:"overflow-hidden rounded-full bg-gray-100"},YZ={class:"mt-1 hidden grid-cols-4 text-sm font-medium text-gray-600 sm:grid"},JZ={class:"md:col-span-1"},ZZ={key:0,role:"group",class:"bg-gr"},QZ={class:"sm:items-baseline"},eQ={class:""},tQ={class:"block md:hidden text-sm font-medium text-gray-700 py-2"},nQ={class:"max-w-lg relative"},rQ=["title","onClick"],oQ={class:"space-y-4"},sQ={class:"relative flex items-start"},iQ={class:"flex items-center h-5"},lQ=["id","checked","onInput"],aQ={class:"ml-3 text-sm"},uQ=["for"],cQ={class:"relative flex items-start"},dQ={class:"flex items-center h-5"},fQ=["id","checked","onInput"],pQ={class:"ml-3 text-sm"},hQ=["for"],mQ={class:"relative flex justify-start align-middle items-center gap-3"},gQ={class:"text-sm"},vQ=["for"],yQ=["value","onInput","id"],_Q={value:"auto"},bQ={value:"foreground"},wQ={value:"background"},SQ={value:"ducking"},EQ={value:"unchanged"},$Q={class:"bg-gray-50 px-4 py-4 sm:px-6"},xQ={key:4,class:"grid grid-cols-1 gap-y-6 gap-x-4 sm:grid-cols-6"},TQ={class:"sm:col-span-4"},CQ={class:"text-base font-medium text-gray-900"},OQ={class:"mt-2"},AQ={key:0,class:"mt-2 px-3 py-2 bg-gray-100 rounded-md text-sm text-gray-700 break-all"},kQ={key:1},IQ={class:"mt-2","aria-hidden":"true"},PQ={class:"overflow-hidden rounded-full bg-gray-100"},RQ={class:"mt-1 hidden grid-cols-4 text-sm font-medium text-gray-600 sm:grid"},LQ={class:"pt-5"},FQ={class:"flex flex-col sm:flex-row gap-4 sm:gap-2 justify-between"},NQ={class:"flex justify-end gap-3"},MQ=["href"];function DQ(e,t,n,r,o,i){var C,w,E,O;const l=q("AuphonicLogo"),a=q("CloudIcon"),c=q("ArrowDownTrayIcon"),d=q("XIcon"),p=q("DatabaseIcon"),h=q("DonePage"),v=q("FileChooser"),y=q("TrashIcon"),b=q("podlove-button"),S=q("WebhookToggle"),T=q("ExternalLinkIcon");return I(),F("form",iZ,[m("div",lZ,[m("div",aZ,[m("div",uZ,[m("div",cZ,[m("div",dZ,[m("div",fZ,[z(l,{className:"mx-auto h-12 w-12 text-gray-400"})]),m("div",pZ,[m("h3",hZ,L((w=(C=e.production)==null?void 0:C.metadata)==null?void 0:w.title),1),m("p",mZ,L(new Date(Date.parse((E=e.production)==null?void 0:E.creation_time)).toLocaleString()),1)])])]),m("div",gZ,[e.isSaving?(I(),F("span",vZ,[z(a,{class:"mr-1 h-4 w-4","aria-hidden":"true"}),Be(" "+L(e.__("Saving","podlove-podcasting-plugin-for-wordpress")),1)])):Te("",!0),e.production.status!==3?(I(),F("button",{key:1,onClick:t[0]||(t[0]=$=>e.showImportPage=!e.showImportPage),type:"button",class:"relative inline-flex items-center rounded-md bg-white px-3 py-2 font-medium text-gray-500 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50"},[z(c,{class:"-ml-0.5 mr-1.5 h-4 w-4 text-gray-400","aria-hidden":"true"}),e.showImportPage?(I(),F("span",yZ,L(e.__("Hide Import","podlove-podcasting-plugin-for-wordpress")),1)):Te("",!0),e.showImportPage?Te("",!0):(I(),F("span",_Z,L(e.__("Show Import","podlove-podcasting-plugin-for-wordpress")),1))])):Te("",!0),m("button",{onClick:t[1]||(t[1]=(...$)=>e.deselectProduction&&e.deselectProduction(...$)),type:"button",class:"relative inline-flex items-center rounded-md bg-white px-3 py-2 font-medium text-gray-500 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50"},[z(d,{class:"-ml-0.5 mr-1.5 h-4 w-4 text-gray-400","aria-hidden":"true"}),m("span",null,L(e.__("Deselect Production","podlove-podcasting-plugin-for-wordpress")),1)])])])]),m("div",bZ,[e.showUploadScreen?(I(),F("div",wZ,L(e.__("Uploading...","podlove-podcasting-plugin-for-wordpress")),1)):Te("",!0),e.showProcessingScreen?(I(),F("div",SZ,[m("div",EZ,[m("div",$Z,[m("div",xZ,[z(p,{class:"h-5 w-5 text-indigo-400","aria-hidden":"true"})]),m("div",TZ,[m("h3",CZ,L(e.production.status_string),1),m("div",OZ,[m("p",null,L(e.__("Auphonic is now processing your production. Please wait for it to finish.","podlove-podcasting-plugin-for-wordpress")),1)])])])])])):Te("",!0),e.production.status==3||e.showImportPage?(I(),F("div",AZ,[z(h)])):Te("",!0),e.isMultitrack&&e.showTrackEditor?(I(),F("div",kZ,[m("div",IZ,[m("div",PZ,[m("div",RZ,[m("div",LZ,L(e.__("Track Identifier","podlove-podcasting-plugin-for-wordpress")),1),m("div",FZ,L(e.__("Upload Method","podlove-podcasting-plugin-for-wordpress")),1),m("div",NZ,L(e.__("Algorithm","podlove-podcasting-plugin-for-wordpress")),1),MZ])]),m("ul",DZ,[(I(!0),F(Me,null,Ot(e.tracks,($,P)=>(I(),F("li",{key:`xtrack-${P}`,class:"px-6 py-4"},[m("div",UZ,[m("div",BZ,[m("label",{for:`track-id-${P}`,class:"block md:hidden text-sm font-medium text-gray-700"},L(e.__("Track Identifier","podlove-podcasting-plugin-for-wordpress")),9,jZ),m("input",{id:`track-id-${P}`,type:"text",value:$.identifier_new,onInput:R=>e.handleUpdateIdentifier(R,P),class:"mt-1 max-w-lg block w-full shadow-sm focus:ring-indigo-500 focus:border-indigo-500 sm:max-w-xs sm:text-sm border-gray-300 rounded-md"},null,40,VZ)]),m("div",HZ,[m("div",zZ,[m("div",WZ,[z(v,{track_index:P,file_key:`${e.production.uuid}_t${P}`},null,8,["track_index","file_key"]),$.input_file_name?(I(),F("div",qZ,L(e.__("Uploaded File:","podlove-podcasting-plugin-for-wordpress"))+" "+L($.input_file_name),1)):Te("",!0),e.uploadProgress($.identifier)!=null?(I(),F("div",KZ,[m("div",GZ,[m("div",XZ,[m("div",{class:"h-2 rounded-full bg-indigo-600",style:oo({width:e.uploadProgress($.identifier)+"%"})},null,4)]),m("div",YZ,[m("div",null,L(e.uploadProgress($.identifier))+"%",1)])])])):Te("",!0)])])]),m("div",JZ,[e.algorithmSettingsVisible(P)?(I(),F("div",ZZ,[m("div",QZ,[m("div",eQ,[m("div",tQ,L(e.__("Algorithm","podlove-podcasting-plugin-for-wordpress")),1),m("div",nQ,[m("div",{title:e.__("Remove Track","podlove-podcasting-plugin-for-wordpress"),onClick:R=>e.removeTrack($.identifier),class:"absolute z-10 right-0 top-0 cursor-pointer text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500"},[z(y,{class:"h-6 w-6","aria-hidden":"true"})],8,rQ),m("div",oQ,[m("div",sQ,[m("div",iQ,[m("input",{id:`track_${P}_filtering`,type:"checkbox",class:"focus:ring-indigo-500 h-4 w-4 text-indigo-600 border-gray-300 rounded",checked:$.filtering,onInput:R=>e.handleToggleFiltering(R,P)},null,40,lQ)]),m("div",aQ,[m("label",{for:`track_${P}_filtering`,class:"text-gray-700"},L(e.__("Filtering","podlove-podcasting-plugin-for-wordpress")),9,uQ)])]),m("div",null,[m("div",cQ,[m("div",dQ,[m("input",{id:`track_${P}_noisehum`,type:"checkbox",class:"focus:ring-indigo-500 h-4 w-4 text-indigo-600 border-gray-300 rounded",checked:$.noise_and_hum_reduction,onInput:R=>e.handleToggleNoiseHum(R,P)},null,40,fQ)]),m("div",pQ,[m("label",{for:`track_${P}_noisehum`,class:"text-gray-700"},L(e.__("Noise and Hum Reduction","podlove-podcasting-plugin-for-wordpress")),9,hQ)])])]),m("div",null,[m("div",mQ,[m("div",gQ,[m("label",{for:`track_${P}_fgbg`,class:"text-gray-700"},L(e.__("Fore/Background","podlove-podcasting-plugin-for-wordpress")),9,vQ)]),m("select",{value:$.fore_background,onInput:R=>e.handleSelectForeBackground(R,P),id:`track_${P}_fgbg`,class:"mt-1 block w-[168px] pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm rounded-md"},[m("option",_Q,L(e.__("Auto","podlove-podcasting-plugin-for-wordpress")),1),m("option",bQ,L(e.__("Foreground Track","podlove-podcasting-plugin-for-wordpress")),1),m("option",wQ,L(e.__("Background Track","podlove-podcasting-plugin-for-wordpress")),1),m("option",SQ,L(e.__("Duck this Track","podlove-podcasting-plugin-for-wordpress")),1),m("option",EQ,L(e.__("Unchanged (Foreground)","podlove-podcasting-plugin-for-wordpress")),1)],40,yQ)])])])])])])])):Te("",!0)])])]))),128))]),m("div",$Q,[z(b,{variant:"primary",onClick:e.addTrack},{default:_e(()=>[Be(L(e.__("Add Track","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["onClick"])])])])):e.showTrackEditor?(I(),F("div",xQ,[m("fieldset",TQ,[m("legend",CQ,L(e.__("Audio Source","podlove-podcasting-plugin-for-wordpress")),1),m("div",OQ,[z(v,{file_key:e.production.uuid},null,8,["file_key"]),e.production.input_file?(I(),F("div",AQ,[m("span",null,L(e.__("Uploaded File:","podlove-podcasting-plugin-for-wordpress"))+" "+L(e.production.input_file),1)])):Te("",!0),e.uploadProgress("singletrack")!=null?(I(),F("div",kQ,[m("div",IQ,[m("div",PQ,[m("div",{class:"h-2 rounded-full bg-indigo-600",style:oo({width:e.uploadProgress("singletrack")+"%"})},null,4)]),m("div",RQ,[m("div",null,L(e.uploadProgress("singletrack"))+"%",1)])])])):Te("",!0)])])])):Te("",!0)])]),m("div",LQ,[m("div",FQ,[z(S),m("div",NQ,[m("a",{href:(O=e.production)==null?void 0:O.edit_page,target:"_blank",class:"inline-flex items-center rounded border border-gray-300 bg-white px-2.5 py-1.5 text-xs font-medium text-gray-500 shadow-sm hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"},[Be(L(e.__("Edit in Auphonic","podlove-podcasting-plugin-for-wordpress"))+" ",1),z(T,{class:"ml-1 -mr-0.5 h-4 w-4","aria-hidden":"true"})],8,MQ),z(b,{variant:e.isSaving?"secondary-disabled":"secondary",onClick:e.saveProduction},{default:_e(()=>[Be(L(e.__("Save Production","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["variant","onClick"]),z(b,{variant:"primary",onClick:e.startProduction},{default:_e(()=>[Be(L(e.__("Start Production","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["onClick"])])])])])}const UQ=Le(sZ,[["render",DQ]]),BQ=ge({components:{Listbox:vv,ListboxButton:_v,ListboxLabel:yv,ListboxOption:wv,ListboxOptions:bv,CheckIcon:pf,SelectorIcon:hf},setup(){return{state:ut({productions:B.auphonic.productions,production:B.auphonic.production}),dispatch:Ze().dispatch}},methods:{setProduction(e){this.dispatch(mi(e))}},computed:{productions(){return this.state.productions.map(e=>{const t=e.creation_time.split("T")[0],n=e.metadata.title;return{...e,_select:{name:n,date:t}}})},currentProduction(){return this.state.production}}}),jQ={class:"mt-1 relative"},VQ={class:"w-full inline-flex truncate"},HQ={key:0,class:"truncate"},zQ={key:1,class:"truncate"},WQ={class:"absolute inset-y-0 right-0 flex items-center pr-2 pointer-events-none"},qQ={class:"flex justify-between"},KQ={class:gt(["font-normal","truncate"])};function GQ(e,t,n,r,o,i){const l=q("ListboxLabel"),a=q("SelectorIcon"),c=q("ListboxButton"),d=q("ListboxOption"),p=q("ListboxOptions"),h=q("Listbox");return I(),Ye(h,{as:"div","onUpdate:modelValue":e.setProduction,value:e.currentProduction},{default:_e(()=>[z(l,{class:"block text-sm font-medium text-gray-600 sr-only"},{default:_e(()=>[Be(L(e.__("Select Existing Production","podlove-podcasting-plugin-for-wordpress")),1)]),_:1}),m("div",jQ,[z(c,{class:"relative w-full bg-white border border-gray-300 rounded-md shadow-sm pl-3 pr-10 py-2 text-left cursor-default focus:outline-none focus:ring-1 focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"},{default:_e(()=>[m("span",VQ,[e.currentProduction?(I(),F("span",HQ,L(e.currentProduction.metadata.title),1)):(I(),F("span",zQ," "))]),m("span",WQ,[z(a,{class:"h-5 w-5 text-gray-400","aria-hidden":"true"})])]),_:1}),z(Cs,{"leave-active-class":"transition ease-in duration-100","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:_e(()=>[z(p,{class:"absolute z-10 mt-1 w-full bg-white shadow-lg max-h-36 rounded-md py-1 text-base ring-1 ring-black ring-opacity-5 overflow-auto focus:outline-none sm:text-sm"},{default:_e(()=>[(I(!0),F(Me,null,Ot(e.productions,v=>(I(),Ye(d,{as:"template",key:v._select.date,value:v},{default:_e(({active:y})=>[m("li",{class:gt([y?"text-white bg-indigo-600":"text-gray-900","cursor-default select-none relative py-2 pl-3 pr-9"])},[m("div",qQ,[m("span",KQ,[m("span",{class:gt([y?"text-indigo-200":"text-gray-500","ml-2 truncate"])},L(v._select.date),3),Be(" "+L(v._select.name),1)]),m("span",{class:gt([y?"text-indigo-200":"text-gray-500","ml-2 truncate flex-shrink-0"])},L(v.status_string),3)])],2)]),_:2},1032,["value"]))),128))]),_:1})]),_:1})])]),_:1},8,["onUpdate:modelValue","value"])}const XQ=Le(BQ,[["render",GQ]]),YQ=ge({components:{Listbox:vv,ListboxButton:_v,ListboxLabel:yv,ListboxOption:wv,ListboxOptions:bv,CheckIcon:pf,SelectorIcon:hf},setup(){return{state:ut({presets:B.auphonic.presets,currentPreset:B.auphonic.preset}),dispatch:Ze().dispatch}},methods:{setPreset(e){this.dispatch(Kg(e.uuid))}},computed:{presets(){return this.state.presets.map(e=>{const t=e.creation_time.split("T")[0],n=e.preset_name,r=e.is_multitrack;return{...e,_select:{name:n,date:t,is_multitrack:r}}}).toSorted((e,t)=>{const n=e._select.name.toUpperCase(),r=t._select.name.toUpperCase();return n<r?-1:n>r?1:0})},currentPreset(){const e=this.state.currentPreset;return this.presets.find(t=>t.uuid===e)}}}),JQ={class:"mt-1 relative"},ZQ={class:"w-full inline-flex truncate"},QQ={key:0,class:"truncate"},eee={key:1,class:"truncate"},tee={class:"absolute inset-y-0 right-0 flex items-center pr-2 pointer-events-none"},nee={class:"flex"},ree={class:gt(["font-normal","truncate"])};function oee(e,t,n,r,o,i){const l=q("ListboxLabel"),a=q("SelectorIcon"),c=q("ListboxButton"),d=q("ListboxOption"),p=q("ListboxOptions"),h=q("Listbox");return I(),Ye(h,{as:"div","onUpdate:modelValue":e.setPreset,value:e.currentPreset},{default:_e(()=>[z(l,{class:"block text-sm font-medium text-gray-600 sr-only"},{default:_e(()=>[Be(L(e.__("Select Preset","podlove-podcasting-plugin-for-wordpress")),1)]),_:1}),m("div",JQ,[z(c,{class:"relative w-full bg-white border border-gray-300 rounded-md shadow-sm pl-3 pr-10 py-2 text-left cursor-default focus:outline-none focus:ring-1 focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"},{default:_e(()=>[m("span",ZQ,[e.currentPreset?(I(),F("span",QQ,L(e.currentPreset._select.name),1)):(I(),F("span",eee," "))]),m("span",tee,[z(a,{class:"h-5 w-5 text-gray-400","aria-hidden":"true"})])]),_:1}),z(Cs,{"leave-active-class":"transition ease-in duration-100","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:_e(()=>[z(p,{class:"absolute z-10 mt-1 w-full bg-white shadow-lg max-h-36 rounded-md py-1 text-base ring-1 ring-black ring-opacity-5 overflow-auto focus:outline-none sm:text-sm"},{default:_e(()=>[(I(!0),F(Me,null,Ot(e.presets,v=>(I(),Ye(d,{as:"template",key:v._select.date,value:v},{default:_e(({active:y})=>[m("li",{class:gt([y?"text-white bg-indigo-600":"text-gray-900","cursor-default select-none relative py-2 pl-3 pr-9"])},[m("div",nee,[m("span",ree,L(v._select.name),1),v._select.is_multitrack?(I(),F("span",{key:0,class:gt([y?"text-indigo-200":"text-gray-500","ml-2 truncate"])},L(e.__("Multitrack","podlove-podcasting-plugin-for-wordpress")),3)):Te("",!0)])],2)]),_:2},1032,["value"]))),128))]),_:1})]),_:1})])]),_:1},8,["onUpdate:modelValue","value"])}const see=Le(YQ,[["render",oee]]),iee=ge({components:{Module:In,PodloveButton:Pn,PlusSmIcon:rf,RefreshIcon:tf,SelectProduction:XQ,SelectPreset:see,AuphonicLogo:Rv},data(){return{}},setup(){return{state:ut({presetUUID:B.auphonic.preset,presets:B.auphonic.presets,isInitializing:B.auphonic.isInitializing}),dispatch:Ze().dispatch}},methods:{handleCreateProduction(){switch(this.buttonState){case"single":this.createProduction();break;case"multi":this.createMultitrackProduction();break}},createProduction(){this.dispatch(I8())},createMultitrackProduction(){this.dispatch(P8())}},computed:{preset(){return this.state.presets.find(e=>e.uuid===this.state.presetUUID)},isInitializing(){return this.state.isInitializing},buttonState(){return this.preset?this.preset.is_multitrack?"multi":"single":"idle"}}}),lee={class:"m-6 text-center max-w-5xl"},aee={key:0,class:"w-full flex justify-center"},uee={class:"animate-pulse mt-4 flex space-x-4"},cee={class:"mt-1 text-sm text-gray-500"},dee={class:"sm:divide-x sm:divide-gray-200 mt-6 py-6 gap-8 sm:gap-0 grid grid-cols-1 sm:grid-cols-2"},fee={class:"flow-root sm:px-6"},pee={class:"relative -m-2 p-2 flex items-center justify-around space-x-4 rounded-xl hover:bg-gray-50 focus-within:ring-2 focus-within:ring-indigo-500"},hee={class:"text-sm font-medium text-gray-900"},mee={class:"mt-2 sm:mt-8 flex justify-center align-middle content-center items-center gap-3"},gee={class:"w-full max-w-md"},vee={class:"mt-10 flex flex-col justify-center align-middle content-center items-center gap-3"},yee={class:"flow-root sm:px-6"},_ee={class:"relative -m-2 p-2 flex items-center justify-around space-x-4 rounded-xl hover:bg-gray-50 focus-within:ring-2 focus-within:ring-indigo-500"},bee={class:"text-sm font-medium text-gray-900"},wee={class:"mt-2 sm:mt-8 flex justify-center align-middle content-center items-center gap-3"},See={class:"w-full max-w-md"};function Eee(e,t,n,r,o,i){const l=q("AuphonicLogo"),a=q("RefreshIcon"),c=q("SelectPreset"),d=q("plus-sm-icon"),p=q("podlove-button"),h=q("SelectProduction");return I(),F("div",null,[m("div",lee,[z(l,{className:"mx-auto h-16 w-16 text-gray-400"}),e.isInitializing?(I(),F("div",aee,[m("div",uee,[z(a,{class:"animate-spin h-5 w-5 mr-3"}),Be(" "+L(e.__("Loading...","podlove-podcasting-plugin-for-wordpress")),1)])])):Te("",!0),m("div",{class:gt({"text-left":!0,"opacity-0":e.isInitializing})},[m("p",cee,L(e.__("Manage your audio post production with Auphonic. Get started by selecting an existing production or create a new one from an Auphonic preset.","podlove-podcasting-plugin-for-wordpress")),1),m("div",dee,[m("div",fee,[m("div",pee,[m("div",null,[m("h3",hee,L(e.__("Create New Production from Preset","podlove-podcasting-plugin-for-wordpress")),1)])]),m("div",mee,[m("div",gee,[z(c)])]),m("div",vee,[z(p,{disabled:e.buttonState=="idle",variant:e.buttonState=="idle"?"primary-disabled":"primary",onClick:e.handleCreateProduction},{default:_e(()=>[z(d,{class:"-ml-0.5 mr-2 h-4 w-4","aria-hidden":"true"}),Be(" "+L(e.buttonState=="multi"?e.__("Create Multitrack Production","podlove-podcasting-plugin-for-wordpress"):e.__("Create Production","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["disabled","variant","onClick"])])]),m("div",yee,[m("div",_ee,[m("div",null,[m("h3",bee,L(e.__("Select Existing Production","podlove-podcasting-plugin-for-wordpress")),1)])]),m("div",wee,[m("div",See,[z(h)])])])])],2)])])}const $ee=Le(iee,[["render",Eee]]),xee=ge({components:{Module:In,ManageProductionForm:UQ,StartScreen:$ee,AuphonicLogo:Rv},setup(){return{state:ut({productionId:B.auphonic.productionId,isInitializing:B.auphonic.isInitializing}),dispatch:Ze().dispatch}},computed:{productionId(){return this.state.productionId||""},isInitializing(){return this.state.isInitializing},isProductionSelected(){return!!this.productionId}},created(){this.dispatch(O8())}}),Tee={key:0},Cee={key:1,class:"m-7"};function Oee(e,t,n,r,o,i){const l=q("StartScreen"),a=q("ManageProductionForm"),c=q("module");return I(),Ye(c,{name:"auphonic",title:"Auphonic"},{default:_e(()=>[e.isProductionSelected?Te("",!0):(I(),F("div",Tee,[z(l)])),e.productionId?(I(),F("div",Cee,[z(a)])):Te("",!0)]),_:1})}const Aee=Le(xee,[["render",Oee]]),kee=ge({components:{ArrowUpIcon:TV,ArrowDownIcon:Wx,XIcon:ml,UserCircleIcon:Zx,PencilIcon:Jx},props:{data:{type:Object,default:()=>({id:null,contributor_id:null,role_id:null,group_id:null,position:null,comment:null,identifier:null,avatar:null,name:null,mail:null,department:null,organisation:null,jobtitle:null,gender:null,nickname:null,count:null})},first:{type:Boolean,default:!1},last:{type:Boolean,default:!1}},setup(){return{dispatch:Ze().dispatch,state:ut({roles:B.contributors.roles,groups:B.contributors.groups,baseUrl:B.runtime.baseUrl})}},computed:{editLink(){return`${this.state.baseUrl}/wp-admin/admin.php?page=podlove_contributor_settings&action=edit&contributor=${this.data.contributor_id}`}},methods:{moveContributionUp(){this.dispatch(IM(this.data))},moveContributionDown(){this.dispatch(PM(this.data))},deleteContribution(){this.dispatch(RM(this.data))},updateRole(e){const t=Y.get(e,["target","value"]);this.dispatch(qp({...this.data,role_id:t}))},updateGroup(e){const t=Y.get(e,["target","value"]);console.log(t),this.dispatch(qp({...this.data,group_id:t}))},updateComment(e){const t=Y.get(e,["target","value"]);this.dispatch(qp({...this.data,comment:t}))}}}),Iee={class:"block hover:bg-gray-50"},Pee={class:"flex items-center px-4 py-4 sm:px-6"},Ree={class:"flex min-w-0 flex-1 items-center"},Lee={class:"flex-shrink-0"},Fee=["src","alt"],Nee={class:"min-w-0 flex-1 px-2 md:grid md:gap-4"},Mee={class:"flex-shrink-0"},Dee={class:"truncate text-sm font-medium text-gray-900"},Uee={class:"flex items-center text-sm text-gray-500"},Bee={class:"truncate"},jee={class:"min-w-0 flex-1 px-4 md:grid md:gap-4"},Vee={for:"location",class:"block text-sm font-medium leading-6 text-gray-900"},Hee=["value","selected"],zee={class:"min-w-0 flex-1 px-4 md:grid md:gap-4"},Wee={for:"location",class:"block text-sm font-medium leading-6 text-gray-900"},qee=["value","selected"],Kee={class:"min-w-0 flex-1 px-4 md:grid md:gap-4"},Gee={for:"email",class:"block text-sm font-medium leading-6 text-gray-900"},Xee={class:"mt-2"},Yee=["value","placeholder"],Jee={class:"flex space-x-2 justify-end mt-[30px]"},Zee=["disabled"],Qee=["disabled"],ete=["href"];function tte(e,t,n,r,o,i){const l=q("UserCircleIcon"),a=q("arrow-up-icon"),c=q("arrow-down-icon"),d=q("pencil-icon"),p=q("x-icon");return I(),F("div",Iee,[m("div",Pee,[m("div",Ree,[m("div",Lee,[e.data.avatar_url?(I(),F("img",{key:0,class:"h-12 w-12 rounded-full",src:e.data.avatar_url,alt:e.data.name,onError:t[0]||(t[0]=h=>e.data.avatar_url="")},null,40,Fee)):Te("",!0),e.data.avatar_url?Te("",!0):(I(),Ye(l,{key:1,class:"h-12 w-12 flex-shrink-0 rounded-full text-gray-500"}))]),m("div",Nee,[m("div",Mee,[m("p",Dee,L(e.data.realname||e.data.publicname),1),m("p",Uee,[m("span",Bee,L(e.data.nickname),1)])])]),m("div",jee,[m("div",null,[m("label",Vee,L(e.__("Role","podlove-podcasting-plugin-for-wordpress")),1),m("select",{class:"mt-2 block w-full rounded-md border-0 py-1.5 pl-3 pr-10 text-gray-900 ring-1 ring-inset ring-gray-300 focus:ring-2 focus:ring-indigo-600 sm:text-sm sm:leading-6",onChange:t[1]||(t[1]=h=>e.updateRole(h))},[(I(!0),F(Me,null,Ot(e.state.roles,h=>(I(),F("option",{value:h.id,selected:h.id===e.data.role_id},L(h.title),9,Hee))),256))],32)])]),m("div",zee,[m("div",null,[m("label",Wee,L(e.__("Group","podlove-podcasting-plugin-for-wordpress")),1),m("select",{class:"mt-2 block w-full rounded-md border-0 py-1.5 pl-3 pr-10 text-gray-900 ring-1 ring-inset ring-gray-300 focus:ring-2 focus:ring-indigo-600 sm:text-sm sm:leading-6",onChange:t[2]||(t[2]=h=>e.updateGroup(h))},[(I(!0),F(Me,null,Ot(e.state.groups,h=>(I(),F("option",{value:h.id,selected:h.id===e.data.group_id},L(h.title),9,qee))),256))],32)])]),m("div",Kee,[m("div",null,[m("label",Gee,L(e.__("Comment","podlove-podcasting-plugin-for-wordpress")),1),m("div",Xee,[m("input",{type:"text",value:e.data.comment,onInput:t[3]||(t[3]=h=>e.updateComment(h)),class:"block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6",placeholder:e.__("Comment","podlove-podcasting-plugin-for-wordpress")},null,40,Yee)])])]),m("div",Jee,[m("button",{onClick:t[4]||(t[4]=h=>e.moveContributionUp()),disabled:e.first,class:gt({"text-indigo-600":!e.first,"text-gray-500":e.first})},[z(a,{class:"w-5 h-5"})],10,Zee),m("button",{onClick:t[5]||(t[5]=h=>e.moveContributionDown()),disabled:e.last,class:gt({"text-indigo-600":!e.last,"text-gray-500":e.last})},[z(c,{class:"w-5 h-5"})],10,Qee),m("a",{href:e.editLink,target:"_blank",class:"text-gray-400"},[z(d,{class:"w-5 h-5"})],8,ete),m("button",{class:"text-red-600",onClick:t[6]||(t[6]=h=>e.deleteContribution())},[z(p,{class:"w-5 h-5"})])])])])])}const nte=Le(kee,[["render",tte]]);var or="top",Hr="bottom",zr="right",sr="left",Lv="auto",tu=[or,Hr,zr,sr],sl="start",Ia="end",rte="clippingParents",sC="viewport",Vl="popper",ote="reference",Cb=tu.reduce(function(e,t){return e.concat([t+"-"+sl,t+"-"+Ia])},[]),iC=[].concat(tu,[Lv]).reduce(function(e,t){return e.concat([t,t+"-"+sl,t+"-"+Ia])},[]),ste="beforeRead",ite="read",lte="afterRead",ate="beforeMain",ute="main",cte="afterMain",dte="beforeWrite",fte="write",pte="afterWrite",hte=[ste,ite,lte,ate,ute,cte,dte,fte,pte];function Co(e){return e?(e.nodeName||"").toLowerCase():null}function ho(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function il(e){var t=ho(e).Element;return e instanceof t||e instanceof Element}function Br(e){var t=ho(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Fv(e){if(typeof ShadowRoot>"u")return!1;var t=ho(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function mte(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!Br(i)||!Co(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(l){var a=o[l];a===!1?i.removeAttribute(l):i.setAttribute(l,a===!0?"":a)}))})}function gte(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},l=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=l.reduce(function(c,d){return c[d]="",c},{});!Br(o)||!Co(o)||(Object.assign(o.style,a),Object.keys(i).forEach(function(c){o.removeAttribute(c)}))})}}const vte={name:"applyStyles",enabled:!0,phase:"write",fn:mte,effect:gte,requires:["computeStyles"]};function $o(e){return e.split("-")[0]}var ii=Math.max,id=Math.min,ll=Math.round;function al(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;if(Br(e)&&t){var i=e.offsetHeight,l=e.offsetWidth;l>0&&(r=ll(n.width)/l||1),i>0&&(o=ll(n.height)/i||1)}return{width:n.width/r,height:n.height/o,top:n.top/o,right:n.right/r,bottom:n.bottom/o,left:n.left/r,x:n.left/r,y:n.top/o}}function Nv(e){var t=al(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function lC(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Fv(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Xo(e){return ho(e).getComputedStyle(e)}function yte(e){return["table","td","th"].indexOf(Co(e))>=0}function ks(e){return((il(e)?e.ownerDocument:e.document)||window.document).documentElement}function mf(e){return Co(e)==="html"?e:e.assignedSlot||e.parentNode||(Fv(e)?e.host:null)||ks(e)}function Ob(e){return!Br(e)||Xo(e).position==="fixed"?null:e.offsetParent}function _te(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&Br(e)){var r=Xo(e);if(r.position==="fixed")return null}var o=mf(e);for(Fv(o)&&(o=o.host);Br(o)&&["html","body"].indexOf(Co(o))<0;){var i=Xo(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function nu(e){for(var t=ho(e),n=Ob(e);n&&yte(n)&&Xo(n).position==="static";)n=Ob(n);return n&&(Co(n)==="html"||Co(n)==="body"&&Xo(n).position==="static")?t:n||_te(e)||t}function Mv(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function aa(e,t,n){return ii(e,id(t,n))}function bte(e,t,n){var r=aa(e,t,n);return r>n?n:r}function aC(){return{top:0,right:0,bottom:0,left:0}}function uC(e){return Object.assign({},aC(),e)}function cC(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var wte=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,uC(typeof t!="number"?t:cC(t,tu))};function Ste(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,l=n.modifiersData.popperOffsets,a=$o(n.placement),c=Mv(a),d=[sr,zr].indexOf(a)>=0,p=d?"height":"width";if(!(!i||!l)){var h=wte(o.padding,n),v=Nv(i),y=c==="y"?or:sr,b=c==="y"?Hr:zr,S=n.rects.reference[p]+n.rects.reference[c]-l[c]-n.rects.popper[p],T=l[c]-n.rects.reference[c],C=nu(i),w=C?c==="y"?C.clientHeight||0:C.clientWidth||0:0,E=S/2-T/2,O=h[y],$=w-v[p]-h[b],P=w/2-v[p]/2+E,R=aa(O,P,$),k=c;n.modifiersData[r]=(t={},t[k]=R,t.centerOffset=R-P,t)}}function Ete(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||lC(t.elements.popper,o)&&(t.elements.arrow=o))}const $te={name:"arrow",enabled:!0,phase:"main",fn:Ste,effect:Ete,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ul(e){return e.split("-")[1]}var xte={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Tte(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:ll(t*o)/o||0,y:ll(n*o)/o||0}}function Ab(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,l=e.offsets,a=e.position,c=e.gpuAcceleration,d=e.adaptive,p=e.roundOffsets,h=e.isFixed,v=l.x,y=v===void 0?0:v,b=l.y,S=b===void 0?0:b,T=typeof p=="function"?p({x:y,y:S}):{x:y,y:S};y=T.x,S=T.y;var C=l.hasOwnProperty("x"),w=l.hasOwnProperty("y"),E=sr,O=or,$=window;if(d){var P=nu(n),R="clientHeight",k="clientWidth";if(P===ho(n)&&(P=ks(n),Xo(P).position!=="static"&&a==="absolute"&&(R="scrollHeight",k="scrollWidth")),P=P,o===or||(o===sr||o===zr)&&i===Ia){O=Hr;var W=h&&P===$&&$.visualViewport?$.visualViewport.height:P[R];S-=W-r.height,S*=c?1:-1}if(o===sr||(o===or||o===Hr)&&i===Ia){E=zr;var U=h&&P===$&&$.visualViewport?$.visualViewport.width:P[k];y-=U-r.width,y*=c?1:-1}}var j=Object.assign({position:a},d&&xte),G=p===!0?Tte({x:y,y:S}):{x:y,y:S};if(y=G.x,S=G.y,c){var X;return Object.assign({},j,(X={},X[O]=w?"0":"",X[E]=C?"0":"",X.transform=($.devicePixelRatio||1)<=1?"translate("+y+"px, "+S+"px)":"translate3d("+y+"px, "+S+"px, 0)",X))}return Object.assign({},j,(t={},t[O]=w?S+"px":"",t[E]=C?y+"px":"",t.transform="",t))}function Cte(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,l=i===void 0?!0:i,a=n.roundOffsets,c=a===void 0?!0:a,d={placement:$o(t.placement),variation:ul(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Ab(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ab(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Ote={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Cte,data:{}};var hc={passive:!0};function Ate(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,l=r.resize,a=l===void 0?!0:l,c=ho(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&d.forEach(function(p){p.addEventListener("scroll",n.update,hc)}),a&&c.addEventListener("resize",n.update,hc),function(){i&&d.forEach(function(p){p.removeEventListener("scroll",n.update,hc)}),a&&c.removeEventListener("resize",n.update,hc)}}const kte={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Ate,data:{}};var Ite={left:"right",right:"left",bottom:"top",top:"bottom"};function Cc(e){return e.replace(/left|right|bottom|top/g,function(t){return Ite[t]})}var Pte={start:"end",end:"start"};function kb(e){return e.replace(/start|end/g,function(t){return Pte[t]})}function Dv(e){var t=ho(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Uv(e){return al(ks(e)).left+Dv(e).scrollLeft}function Rte(e){var t=ho(e),n=ks(e),r=t.visualViewport,o=n.clientWidth,i=n.clientHeight,l=0,a=0;return r&&(o=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(l=r.offsetLeft,a=r.offsetTop)),{width:o,height:i,x:l+Uv(e),y:a}}function Lte(e){var t,n=ks(e),r=Dv(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=ii(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),l=ii(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+Uv(e),c=-r.scrollTop;return Xo(o||n).direction==="rtl"&&(a+=ii(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:l,x:a,y:c}}function Bv(e){var t=Xo(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function dC(e){return["html","body","#document"].indexOf(Co(e))>=0?e.ownerDocument.body:Br(e)&&Bv(e)?e:dC(mf(e))}function ua(e,t){var n;t===void 0&&(t=[]);var r=dC(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=ho(r),l=o?[i].concat(i.visualViewport||[],Bv(r)?r:[]):r,a=t.concat(l);return o?a:a.concat(ua(mf(l)))}function hm(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Fte(e){var t=al(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function Ib(e,t){return t===sC?hm(Rte(e)):il(t)?Fte(t):hm(Lte(ks(e)))}function Nte(e){var t=ua(mf(e)),n=["absolute","fixed"].indexOf(Xo(e).position)>=0,r=n&&Br(e)?nu(e):e;return il(r)?t.filter(function(o){return il(o)&&lC(o,r)&&Co(o)!=="body"}):[]}function Mte(e,t,n){var r=t==="clippingParents"?Nte(e):[].concat(t),o=[].concat(r,[n]),i=o[0],l=o.reduce(function(a,c){var d=Ib(e,c);return a.top=ii(d.top,a.top),a.right=id(d.right,a.right),a.bottom=id(d.bottom,a.bottom),a.left=ii(d.left,a.left),a},Ib(e,i));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function fC(e){var t=e.reference,n=e.element,r=e.placement,o=r?$o(r):null,i=r?ul(r):null,l=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,c;switch(o){case or:c={x:l,y:t.y-n.height};break;case Hr:c={x:l,y:t.y+t.height};break;case zr:c={x:t.x+t.width,y:a};break;case sr:c={x:t.x-n.width,y:a};break;default:c={x:t.x,y:t.y}}var d=o?Mv(o):null;if(d!=null){var p=d==="y"?"height":"width";switch(i){case sl:c[d]=c[d]-(t[p]/2-n[p]/2);break;case Ia:c[d]=c[d]+(t[p]/2-n[p]/2);break}}return c}function Pa(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.boundary,l=i===void 0?rte:i,a=n.rootBoundary,c=a===void 0?sC:a,d=n.elementContext,p=d===void 0?Vl:d,h=n.altBoundary,v=h===void 0?!1:h,y=n.padding,b=y===void 0?0:y,S=uC(typeof b!="number"?b:cC(b,tu)),T=p===Vl?ote:Vl,C=e.rects.popper,w=e.elements[v?T:p],E=Mte(il(w)?w:w.contextElement||ks(e.elements.popper),l,c),O=al(e.elements.reference),$=fC({reference:O,element:C,strategy:"absolute",placement:o}),P=hm(Object.assign({},C,$)),R=p===Vl?P:O,k={top:E.top-R.top+S.top,bottom:R.bottom-E.bottom+S.bottom,left:E.left-R.left+S.left,right:R.right-E.right+S.right},W=e.modifiersData.offset;if(p===Vl&&W){var U=W[o];Object.keys(k).forEach(function(j){var G=[zr,Hr].indexOf(j)>=0?1:-1,X=[or,Hr].indexOf(j)>=0?"y":"x";k[j]+=U[X]*G})}return k}function Dte(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,l=n.padding,a=n.flipVariations,c=n.allowedAutoPlacements,d=c===void 0?iC:c,p=ul(r),h=p?a?Cb:Cb.filter(function(b){return ul(b)===p}):tu,v=h.filter(function(b){return d.indexOf(b)>=0});v.length===0&&(v=h);var y=v.reduce(function(b,S){return b[S]=Pa(e,{placement:S,boundary:o,rootBoundary:i,padding:l})[$o(S)],b},{});return Object.keys(y).sort(function(b,S){return y[b]-y[S]})}function Ute(e){if($o(e)===Lv)return[];var t=Cc(e);return[kb(e),t,kb(t)]}function Bte(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,l=n.altAxis,a=l===void 0?!0:l,c=n.fallbackPlacements,d=n.padding,p=n.boundary,h=n.rootBoundary,v=n.altBoundary,y=n.flipVariations,b=y===void 0?!0:y,S=n.allowedAutoPlacements,T=t.options.placement,C=$o(T),w=C===T,E=c||(w||!b?[Cc(T)]:Ute(T)),O=[T].concat(E).reduce(function(ce,ve){return ce.concat($o(ve)===Lv?Dte(t,{placement:ve,boundary:p,rootBoundary:h,padding:d,flipVariations:b,allowedAutoPlacements:S}):ve)},[]),$=t.rects.reference,P=t.rects.popper,R=new Map,k=!0,W=O[0],U=0;U<O.length;U++){var j=O[U],G=$o(j),X=ul(j)===sl,ne=[or,Hr].indexOf(G)>=0,xe=ne?"width":"height",Ee=Pa(t,{placement:j,boundary:p,rootBoundary:h,altBoundary:v,padding:d}),ke=ne?X?zr:sr:X?Hr:or;$[xe]>P[xe]&&(ke=Cc(ke));var Ie=Cc(ke),Qe=[];if(i&&Qe.push(Ee[G]<=0),a&&Qe.push(Ee[ke]<=0,Ee[Ie]<=0),Qe.every(function(ce){return ce})){W=j,k=!1;break}R.set(j,Qe)}if(k)for(var ht=b?3:1,De=function(ve){var Ce=O.find(function(We){var Ve=R.get(We);if(Ve)return Ve.slice(0,ve).every(function(rt){return rt})});if(Ce)return W=Ce,"break"},Xe=ht;Xe>0;Xe--){var Q=De(Xe);if(Q==="break")break}t.placement!==W&&(t.modifiersData[r]._skip=!0,t.placement=W,t.reset=!0)}}const jte={name:"flip",enabled:!0,phase:"main",fn:Bte,requiresIfExists:["offset"],data:{_skip:!1}};function Pb(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Rb(e){return[or,zr,Hr,sr].some(function(t){return e[t]>=0})}function Vte(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,l=Pa(t,{elementContext:"reference"}),a=Pa(t,{altBoundary:!0}),c=Pb(l,r),d=Pb(a,o,i),p=Rb(c),h=Rb(d);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:p,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":h})}const Hte={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Vte};function zte(e,t,n){var r=$o(e),o=[sr,or].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,l=i[0],a=i[1];return l=l||0,a=(a||0)*o,[sr,zr].indexOf(r)>=0?{x:a,y:l}:{x:l,y:a}}function Wte(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,l=iC.reduce(function(p,h){return p[h]=zte(h,t.rects,i),p},{}),a=l[t.placement],c=a.x,d=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=d),t.modifiersData[r]=l}const qte={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Wte};function Kte(e){var t=e.state,n=e.name;t.modifiersData[n]=fC({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Gte={name:"popperOffsets",enabled:!0,phase:"read",fn:Kte,data:{}};function Xte(e){return e==="x"?"y":"x"}function Yte(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,l=n.altAxis,a=l===void 0?!1:l,c=n.boundary,d=n.rootBoundary,p=n.altBoundary,h=n.padding,v=n.tether,y=v===void 0?!0:v,b=n.tetherOffset,S=b===void 0?0:b,T=Pa(t,{boundary:c,rootBoundary:d,padding:h,altBoundary:p}),C=$o(t.placement),w=ul(t.placement),E=!w,O=Mv(C),$=Xte(O),P=t.modifiersData.popperOffsets,R=t.rects.reference,k=t.rects.popper,W=typeof S=="function"?S(Object.assign({},t.rects,{placement:t.placement})):S,U=typeof W=="number"?{mainAxis:W,altAxis:W}:Object.assign({mainAxis:0,altAxis:0},W),j=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,G={x:0,y:0};if(P){if(i){var X,ne=O==="y"?or:sr,xe=O==="y"?Hr:zr,Ee=O==="y"?"height":"width",ke=P[O],Ie=ke+T[ne],Qe=ke-T[xe],ht=y?-k[Ee]/2:0,De=w===sl?R[Ee]:k[Ee],Xe=w===sl?-k[Ee]:-R[Ee],Q=t.elements.arrow,ce=y&&Q?Nv(Q):{width:0,height:0},ve=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:aC(),Ce=ve[ne],We=ve[xe],Ve=aa(0,R[Ee],ce[Ee]),rt=E?R[Ee]/2-ht-Ve-Ce-U.mainAxis:De-Ve-Ce-U.mainAxis,wn=E?-R[Ee]/2+ht+Ve+We+U.mainAxis:Xe+Ve+We+U.mainAxis,an=t.elements.arrow&&nu(t.elements.arrow),M=an?O==="y"?an.clientTop||0:an.clientLeft||0:0,V=(X=j==null?void 0:j[O])!=null?X:0,Z=ke+rt-V-M,ue=ke+wn-V,le=aa(y?id(Ie,Z):Ie,ke,y?ii(Qe,ue):Qe);P[O]=le,G[O]=le-ke}if(a){var ye,Oe=O==="x"?or:sr,we=O==="x"?Hr:zr,Se=P[$],ae=$==="y"?"height":"width",Fe=Se+T[Oe],Pe=Se-T[we],je=[or,sr].indexOf(C)!==-1,ze=(ye=j==null?void 0:j[$])!=null?ye:0,st=je?Fe:Se-R[ae]-k[ae]-ze+U.altAxis,yt=je?Se+R[ae]+k[ae]-ze-U.altAxis:Pe,ft=y&&je?bte(st,Se,yt):aa(y?st:Fe,Se,y?yt:Pe);P[$]=ft,G[$]=ft-Se}t.modifiersData[r]=G}}const Jte={name:"preventOverflow",enabled:!0,phase:"main",fn:Yte,requiresIfExists:["offset"]};function Zte(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Qte(e){return e===ho(e)||!Br(e)?Dv(e):Zte(e)}function ene(e){var t=e.getBoundingClientRect(),n=ll(t.width)/e.offsetWidth||1,r=ll(t.height)/e.offsetHeight||1;return n!==1||r!==1}function tne(e,t,n){n===void 0&&(n=!1);var r=Br(t),o=Br(t)&&ene(t),i=ks(t),l=al(e,o),a={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((Co(t)!=="body"||Bv(i))&&(a=Qte(t)),Br(t)?(c=al(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=Uv(i))),{x:l.left+a.scrollLeft-c.x,y:l.top+a.scrollTop-c.y,width:l.width,height:l.height}}function nne(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var l=[].concat(i.requires||[],i.requiresIfExists||[]);l.forEach(function(a){if(!n.has(a)){var c=t.get(a);c&&o(c)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function rne(e){var t=nne(e);return hte.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function one(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function sne(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Lb={placement:"bottom",modifiers:[],strategy:"absolute"};function Fb(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function ine(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?Lb:o;return function(a,c,d){d===void 0&&(d=i);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},Lb,i),modifiersData:{},elements:{reference:a,popper:c},attributes:{},styles:{}},h=[],v=!1,y={state:p,setOptions:function(C){var w=typeof C=="function"?C(p.options):C;S(),p.options=Object.assign({},i,p.options,w),p.scrollParents={reference:il(a)?ua(a):a.contextElement?ua(a.contextElement):[],popper:ua(c)};var E=rne(sne([].concat(r,p.options.modifiers)));return p.orderedModifiers=E.filter(function(O){return O.enabled}),b(),y.update()},forceUpdate:function(){if(!v){var C=p.elements,w=C.reference,E=C.popper;if(Fb(w,E)){p.rects={reference:tne(w,nu(E),p.options.strategy==="fixed"),popper:Nv(E)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(U){return p.modifiersData[U.name]=Object.assign({},U.data)});for(var O=0;O<p.orderedModifiers.length;O++){if(p.reset===!0){p.reset=!1,O=-1;continue}var $=p.orderedModifiers[O],P=$.fn,R=$.options,k=R===void 0?{}:R,W=$.name;typeof P=="function"&&(p=P({state:p,options:k,name:W,instance:y})||p)}}}},update:one(function(){return new Promise(function(T){y.forceUpdate(),T(p)})}),destroy:function(){S(),v=!0}};if(!Fb(a,c))return y;y.setOptions(d).then(function(T){!v&&d.onFirstUpdate&&d.onFirstUpdate(T)});function b(){p.orderedModifiers.forEach(function(T){var C=T.name,w=T.options,E=w===void 0?{}:w,O=T.effect;if(typeof O=="function"){var $=O({state:p,name:C,instance:y,options:E}),P=function(){};h.push($||P)}})}function S(){h.forEach(function(T){return T()}),h=[]}return y}}var lne=[kte,Gte,Ote,vte,qte,jte,Jte,$te,Hte],ane=ine({defaultModifiers:lne});function une(e){let t=$e(null),n=$e(null);return wt(()=>{Vt(r=>{if(!n.value||!t.value)return;let o=n.value.el||n.value,i=t.value.el||t.value;if(!(i instanceof HTMLElement)||!(o instanceof HTMLElement))return;let{destroy:l}=ane(i,o,e);r(l)})}),[t,n]}const cne=ge({data(){return{query:"",data:""}},emits:["addContributor","createContributor","close"],setup(){let[e,t]=une({placement:"bottom-end",strategy:"fixed",modifiers:[{name:"offset",options:{offset:[0,10]}},{name:"sameWidth",enabled:!0,fn:({state:n})=>{n.styles.popper.width=`${n.rects.reference.width}px`},phase:"beforeWrite",requires:["computeStyles"]}]});return{dispatch:Ze().dispatch,state:ut({contributors:B.contributors.contributors,episodeContributions:B.episode.contributions}),trigger:e,container:t}},components:{CheckIcon:AV,XIcon:ml,ChevronDownIcon:Gx,Combobox:pT,ComboboxButton:hT,ComboboxInput:mT,ComboboxLabel:SH,ComboboxOption:vT,ComboboxOptions:gT,UserCircleIcon:Zx,Image},computed:{filteredContributors(){return[...this.query.length>0?[{id:null,avatar_url:null,realname:`${this.__("Create: ","podlove-podcasting-plugin-for-wordpress")}${this.query}`}]:[],...this.state.contributors.filter(e=>!this.state.episodeContributions.some(t=>t.contributor_id&&t.contributor_id.toString()===e.id.toString())).filter(e=>!this.query||((e==null?void 0:e.realname)||"").toUpperCase().includes(this.query.toUpperCase()))]}},watch:{data(e){e.id?this.$emit("addContributor",e):this.$emit("createContributor",this.query)}},methods:{filterContributors(e){this.query=Y.get(e,["target","value"],"")},close(){this.$emit("close")}}}),dne={class:"block hover:bg-gray-50"},fne={class:"flex items-center px-4 py-4 sm:px-6"},pne={class:"flex min-w-0 flex-1 items-center"},hne={class:"min-w-0 flex-1 px-4 md:grid md:grid-cols-2 md:gap-4"},mne={class:"relative mt-2 max-w-sm"},gne={ref:"container"},vne={class:"flex items-center"},yne=["src","onError"],_ne={class:"flex space-x-2 justify-end"};function bne(e,t,n,r,o,i){const l=q("ComboboxLabel"),a=q("ComboboxInput"),c=q("ChevronDownIcon"),d=q("ComboboxButton"),p=q("UserCircleIcon"),h=q("CheckIcon"),v=q("ComboboxOption"),y=q("ComboboxOptions"),b=q("Combobox"),S=q("x-icon");return I(),F("div",dne,[m("div",fne,[m("div",pne,[m("div",hne,[z(b,{as:"div",modelValue:e.data,"onUpdate:modelValue":t[1]||(t[1]=T=>e.data=T)},{default:_e(()=>[z(l,{class:"block text-sm font-medium leading-6 text-gray-900"},{default:_e(()=>[Be(L(e.__("Select Contributor","podlove-podcasting-plugin-for-wordpress")),1)]),_:1}),m("div",mne,[z(a,{ref:"trigger",class:"w-full rounded-md border-0 bg-white py-1.5 pl-3 pr-12 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6",onChange:t[0]||(t[0]=T=>e.filterContributors(T)),displayValue:()=>e.query},null,8,["displayValue"]),z(d,{class:"absolute inset-y-0 right-0 flex items-center rounded-r-md px-2 focus:outline-none"},{default:_e(()=>[z(c,{class:"h-5 w-5 text-gray-400","aria-hidden":"true"})]),_:1})]),m("div",gne,[e.filteredContributors.length>0?(I(),Ye(y,{key:0,class:"absolute max-w-sm z-50 mt-1 max-h-56 w-full overflow-auto rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm"},{default:_e(()=>[(I(!0),F(Me,null,Ot(e.filteredContributors,T=>(I(),Ye(v,{key:T.id||"create",value:T,as:"template"},{default:_e(({active:C,selected:w})=>[m("li",{class:gt(["relative cursor-default select-none py-2 pl-3 pr-9",C?"bg-indigo-600 text-white":"text-gray-900"])},[m("div",vne,[T.avatar_url?(I(),F("img",{key:0,src:T.avatar_url,alt:"",class:"h-6 w-6 flex-shrink-0 rounded-full",onError:E=>T.avatar_url=""},null,40,yne)):Te("",!0),T.avatar_url?Te("",!0):(I(),Ye(p,{key:1,class:"h-6 w-6 flex-shrink-0 rounded-full text-gray-500"})),m("span",{class:gt(["ml-3 truncate",w&&"font-semibold"])},L(T.realname),3)]),w?(I(),F("span",{key:0,class:gt(["absolute inset-y-0 right-0 flex items-center pr-4",C?"text-white":"text-indigo-600"])},[z(h,{class:"h-5 w-5","aria-hidden":"true"})],2)):Te("",!0)],2)]),_:2},1032,["value"]))),128))]),_:1})):Te("",!0)],512)]),_:1},8,["modelValue"])])]),m("div",_ne,[m("button",{class:"text-red-600",onClick:t[2]||(t[2]=T=>e.close())},[z(S,{class:"w-5 h-5"})])])])])}const wne=Le(cne,[["render",bne]]),Sne=ge({components:{Module:In,PodloveButton:Pn,PlusSmIcon:rf,Contribution:nte,AddContribution:wne},data(){return{addContributorInput:!1}},setup(){return{dispatch:Ze().dispatch,state:ut({contributions:B.episode.contributions,roles:B.contributors.roles,groups:B.contributors.groups})}},created(){this.dispatch(FE())},methods:{showAddContributor(){this.addContributorInput=!0},addContributor(e){this.addContributorInput=!1,this.dispatch(SE(e))},createContributor(e){this.addContributorInput=!1,this.dispatch(LM(e))},closeAddContributor(){this.addContributorInput=!1}}}),Ene={role:"list",class:"divide-y divide-gray-200"},$ne={key:0,class:"mb-0"},xne={class:"py-5 px-6 border-t border-gray-200"};function Tne(e,t,n,r,o,i){const l=q("Contribution"),a=q("AddContribution"),c=q("plus-sm-icon"),d=q("podlove-button"),p=q("module");return I(),Ye(p,{name:"chapters",title:e.__("Contributors","podlove-podcasting-plugin-for-wordpress"),class:"overflow-hidden"},{actions:_e(()=>[]),default:_e(()=>[m("ul",Ene,[(I(!0),F(Me,null,Ot(e.state.contributions,(h,v)=>(I(),F("li",{class:"mb-0",key:h.position},[h!=null&&h.contributor_id?(I(),Ye(l,{key:0,data:h,first:v===0,last:v===e.state.contributions.length-1},null,8,["data","first","last"])):Te("",!0)]))),128)),e.addContributorInput?(I(),F("li",$ne,[z(a,{onAddContributor:t[0]||(t[0]=h=>e.addContributor(h)),onCreateContributor:t[1]||(t[1]=h=>e.createContributor(h)),onClose:t[2]||(t[2]=h=>e.closeAddContributor())})])):Te("",!0)]),m("div",xne,[z(d,{variant:"primary",onClick:t[3]||(t[3]=h=>e.showAddContributor())},{default:_e(()=>[z(c,{class:"-ml-0.5 mr-2 h-4 w-4","aria-hidden":"true"}),Be(" "+L(e.__("Add Contributor","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})])]),_:1},8,["title"])}const Cne=Le(Sne,[["render",Tne]]),One=ge({setup(){return{state:ut({slug:B.episode.slug,slugFrozen:B.episode.slugFrozen,id:B.episode.id,baseUri:B.settings.mediaFileBaseUri}),dispatch:Ze().dispatch}},methods:{updateSlug(e){this.dispatch(bt({prop:"slug",value:e.target.value})),this.dispatch(W$())},unfreezeSlug(){this.dispatch(cD())}},computed:{assetPrefix(){var n;let e=(n=this.state.baseUri)==null?void 0:n.replace(/https?:\/\//i,"").trim();if(!e)return"";const t=e.trim().replace(/\/+$/g,"").lastIndexOf("/");return e.length>30&&t>-1&&(e=e.slice(t)),e}}}),Ane={for:"filename_slug",class:"block text-sm font-medium leading-6 text-gray-900 sm:pt-1.5"},kne={class:"mt-2 sm:col-span-2 sm:mt-0"},Ine={key:0,class:"flex rounded-md shadow-sm ring-1 ring-inset ring-gray-300 bg-gray-50"},Pne={class:"flex select-none items-center pl-3 text-gray-500 sm:text-sm"},Rne={class:"block flex-1 py-1.5 pl-1 text-gray-900 sm:text-sm sm:leading-6"},Lne=m("span",{class:"flex select-none items-center text-gray-500 sm:text-sm pr-2"},".ext",-1),Fne=["title","aria-label"],Nne={key:1,class:"flex rounded-md shadow-sm ring-1 ring-inset ring-gray-300 focus-within:ring-2 focus-within:ring-inset focus-within:ring-indigo-600"},Mne={class:"flex select-none items-center pl-3 text-gray-500 sm:text-sm"},Dne=["value","aria-label"],Une=m("span",{class:"flex slect-none items-center text-gray-500 sm:text-sm pr-2"},".ext",-1),Bne={id:"filename_slug_help",class:"sr-only"};function jne(e,t,n,r,o,i){return I(),F(Me,null,[m("label",Ane,L(e.__("Filename / Slug","podlove-podcasting-plugin-for-wordpress")),1),m("div",kne,[e.state.slugFrozen?(I(),F("div",Ine,[m("span",Pne,L(e.assetPrefix),1),m("span",Rne,L(e.state.slug),1),Lne,m("button",{onClick:t[0]||(t[0]=(...l)=>e.unfreezeSlug&&e.unfreezeSlug(...l)),type:"button",class:"ml-2 px-3 py-1.5 text-sm font-semibold text-indigo-600 hover:text-indigo-500 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 border-l border-gray-300",title:e.__("Edit slug","podlove-podcasting-plugin-for-wordpress"),"aria-label":e.__("Edit filename slug","podlove-podcasting-plugin-for-wordpress"),"aria-describedby":"filename_slug_help"},L(e.__("Edit","podlove-podcasting-plugin-for-wordpress")),9,Fne)])):(I(),F("div",Nne,[m("span",Mne,L(e.assetPrefix),1),m("input",{type:"text",name:"filename_slug",id:"filename_slug",autocomplete:"filename_slug",class:"block flex-1 border-0 bg-transparent py-1.5 pl-1 text-gray-900 placeholder:text-gray-400 focus:ring-0 sm:text-sm sm:leading-6",placeholder:"",value:e.state.slug,onInput:t[1]||(t[1]=l=>e.updateSlug(l)),"aria-label":e.__("Filename slug","podlove-podcasting-plugin-for-wordpress"),"aria-describedby":"filename_slug_help"},null,40,Dne),Une])),m("div",Bne,L(e.__("Click Edit to modify the filename slug. The slug determines the final filename of your media files.","podlove-podcasting-plugin-for-wordpress")),1)])],64)}const Vne=Le(One,[["render",jne]]),Hne=ge({components:{PodloveButton:Pn,UploadIcon:nf},setup(){return{state:ut({}),dispatch:Ze().dispatch}},methods:{uploadIntent(){this.dispatch(oD())}},computed:{}}),zne={for:"mediafile_upload",class:"block text-sm font-medium leading-6 text-gray-900 sm:pt-1.5"},Wne={class:"mt-2 sm:col-span-2 sm:mt-0"};function qne(e,t,n,r,o,i){const l=q("upload-icon"),a=q("podlove-button");return I(),F(Me,null,[m("label",zne,L(e.__("Upload","podlove-podcasting-plugin-for-wordpress")),1),m("div",Wne,[m("div",null,[z(a,{variant:"primary",onClick:e.uploadIntent,class:"ml-1"},{default:_e(()=>[z(l,{class:"-ml-0.5 mr-2 h-4 w-4","aria-hidden":"true"}),Be(" "+L(e.__("Upload Media File","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["onClick"])])])],64)}const Kne=Le(Hne,[["render",qne]]),Gne=ge({components:{PodloveButton:Pn,UploadIcon:nf,DocumentTextIcon:lv,XMarkIcon:ml,PlusIcon:rf},data(){return{}},setup(){return{state:ut({progress:e=>t=>B.progress.progress(e,t),status:e=>t=>B.progress.status(e,t),message:e=>t=>B.progress.message(e,t),episodeSlug:e=>B.episode.slug(e),selectedFiles:e=>B.mediafiles.selectedFiles(e)}),dispatch:Ze().dispatch}},methods:{plusUploadIntent(){this.state.selectedFiles&&this.state.selectedFiles.length>0&&this.state.selectedFiles.forEach(e=>{this.dispatch(sD(e.file))})},handleFileSelection(e){const t=e.target.files;if(!t||t.length===0)return;const n=Array.from(t),r=this.state.episodeSlug,l=[...(this.state.selectedFiles||[]).map(a=>a.file),...n];this.dispatch(aD(l,r))},resetFiles(){this.dispatch({type:Wa,payload:[]})},removeFile(e){this.dispatch(uD(e))},triggerFileInput(){const e=this.$refs.fileInput;e&&e.click()},selectAnotherFile(){this.triggerFileInput()},getUploadProgress(e){const t=`plus-upload-${e}`;return this.state.progress(t)||null},getUploadStatus(e){const t=`plus-upload-${e}`;return this.state.status(t)||null},getUploadMessage(e){const t=`plus-upload-${e}`;return this.state.message(t)||null},getFilenameGenerationStatus(e){const t=`filename-generation-${e}`;return this.state.status(t)||null}},computed:{selectedFiles(){return this.state.selectedFiles||[]},hasFilesReadyToUpload(){return this.selectedFiles.some(e=>{const t=this.getUploadStatus(e.file.name);return t==="init"||t===null})},allFilesUploaded(){return this.selectedFiles.length>0&&this.selectedFiles.every(e=>this.getUploadStatus(e.file.name)==="finished")},hasFilesGeneratingFilenames(){return this.selectedFiles.some(e=>this.getFilenameGenerationStatus(e.originalName)==="in_progress")}}}),Xne={for:"mediafile_upload",class:"block text-sm font-medium leading-6 text-gray-900 sm:pt-1.5"},Yne={class:"mt-2 sm:col-span-2 sm:mt-0"},Jne={for:"plus-file-upload",class:"relative max-w-[400px] flex flex-col gap-2 cursor-pointer bg-white rounded-md font-medium text-indigo-600 hover:text-indigo-500 focus-within:outline-none"},Zne={key:0},Qne={class:"space-y-3"},ere={class:"flex-shrink-0"},tre={class:"w-10 h-10 bg-white rounded-lg flex items-center justify-center"},nre={key:0,class:"animate-spin rounded-full h-6 w-6 border-b-2 border-indigo-500"},rre={class:"flex-1 min-w-0"},ore={class:"text-sm font-medium text-gray-900 truncate"},sre={key:0,class:"text-xs text-gray-500"},ire={class:"text-xs text-gray-500"},lre={key:1,class:"mt-2 flex items-center text-indigo-600"},are=m("div",{class:"animate-spin rounded-full h-3 w-3 border-b border-indigo-500 mr-2"},null,-1),ure={class:"text-xs"},cre={class:"mt-2 w-full bg-white rounded-full h-1.5"},dre={class:"flex justify-between items-center mt-1"},fre={class:"text-xs text-gray-500"},pre={key:0},hre={key:1},mre={key:2},gre={key:3},vre={key:0,class:"text-xs font-medium text-indigo-600"},yre={key:2,class:"mt-2 flex items-center text-yellow-600"},_re={class:"text-xs"},bre=["onClick"];function wre(e,t,n,r,o,i){const l=q("upload-icon"),a=q("podlove-button"),c=q("document-text-icon"),d=q("x-mark-icon"),p=q("plus-icon");return I(),F(Me,null,[m("label",Xne,L(e.__("PLUS Upload","podlove-podcasting-plugin-for-wordpress")),1),m("div",Yne,[m("div",null,[m("label",Jne,[m("div",null,[!e.state.selectedFiles||e.state.selectedFiles.length===0?(I(),Ye(a,{key:0,variant:"primary",onClick:va(e.triggerFileInput,["prevent"])},{default:_e(()=>[z(l,{class:"-ml-0.5 mr-2 h-4 w-4","aria-hidden":"true"}),Be(" "+L(e.__("Select Files for Upload","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["onClick"])):Te("",!0)]),e.state.selectedFiles&&e.state.selectedFiles.length>0?(I(),F("div",Zne,[m("div",Qne,[(I(!0),F(Me,null,Ot(e.state.selectedFiles,(h,v)=>(I(),F("div",{key:h.newName,class:"flex items-start space-x-3 p-3 bg-gray-100 rounded-lg"},[m("div",ere,[m("div",tre,[e.getFilenameGenerationStatus(h.originalName)==="in_progress"?(I(),F("div",nre)):(I(),Ye(c,{key:1,class:"w-6 h-6 text-indigo-500"}))])]),m("div",rre,[m("p",ore,L(h.file.name),1),h.originalName!==h.newName?(I(),F("p",sre,L(e.__("Original name:","podlove-podcasting-plugin-for-wordpress"))+" "+L(h.originalName),1)):Te("",!0),m("p",ire,L((h.file.size/1024/1024).toFixed(2))+" MB ",1),e.getFilenameGenerationStatus(h.originalName)==="in_progress"?(I(),F("div",lre,[are,m("span",ure,L(e.__("Generating filename...","podlove-podcasting-plugin-for-wordpress")),1)])):Te("",!0),m("div",cre,[m("div",{class:"bg-indigo-600 h-1.5 rounded-full progress-transition",style:oo({width:(e.getUploadProgress(h.file.name)||0)+"%"})},null,4)]),m("div",dre,[m("p",fre,[e.getUploadStatus(h.file.name)=="init"?(I(),F("span",pre,"Ready to upload")):e.getUploadStatus(h.file.name)=="in_progress"?(I(),F("span",hre,"Uploading...")):e.getUploadStatus(h.file.name)=="finished"?(I(),F("span",mre,"Done!")):e.getUploadStatus(h.file.name)=="error"?(I(),F("span",gre,"Error: "+L(e.getUploadMessage(h.file.name)),1)):Te("",!0)]),e.getUploadStatus(h.file.name)=="in_progress"?(I(),F("p",vre,L(e.getUploadProgress(h.file.name))+"% ",1)):Te("",!0)]),h!=null&&h.fileExists&&e.getUploadStatus(h.file.name)!="finished"?(I(),F("div",yre,[m("span",_re,L(e.__("A file with this name already exists and will be overwritten.","podlove-podcasting-plugin-for-wordpress")),1)])):Te("",!0)]),e.getUploadStatus(h.file.name)!="in_progress"?(I(),F("button",{key:0,class:"flex-shrink-0 text-gray-400 hover:text-gray-600 focus:outline-none",onClick:y=>e.removeFile(h.newName)},[z(d,{class:"w-4 h-4"})],8,bre)):Te("",!0)]))),128))])])):Te("",!0),m("input",{id:"plus-file-upload",name:"plus-file-upload",type:"file",multiple:"",class:"sr-only",ref:"fileInput",onInput:t[0]||(t[0]=(...h)=>e.handleFileSelection&&e.handleFileSelection(...h))},null,544)]),e.state.selectedFiles&&e.state.selectedFiles.length>0&&e.hasFilesReadyToUpload?(I(),Ye(a,{key:0,variant:"primary",onClick:e.plusUploadIntent,class:"ml-1 mt-3",disabled:e.hasFilesGeneratingFilenames},{default:_e(()=>[z(l,{class:"-ml-0.5 mr-2 h-4 w-4","aria-hidden":"true"}),Be(" "+L(e.hasFilesGeneratingFilenames?e.__("Generating filenames...","podlove-podcasting-plugin-for-wordpress"):e.__("Upload Media Files","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["onClick","disabled"])):Te("",!0),e.state.selectedFiles&&e.state.selectedFiles.length>0?(I(),Ye(a,{key:1,variant:"secondary",onClick:e.selectAnotherFile,class:"ml-1 mt-3"},{default:_e(()=>[z(p,{class:"-ml-0.5 mr-2 h-4 w-4","aria-hidden":"true"}),Be(" "+L(e.__("Add more Files","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["onClick"])):Te("",!0)])])],64)}const Sre=Le(Gne,[["render",wre]]),Ere={},$re={class:"text-center"},xre=m("svg",{class:"mx-auto h-12 w-12 text-gray-400",fill:"none",viewBox:"0 0 24 24",strokeWidth:"{1.5}",stroke:"currentColor"},[m("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.42 15.17L17.25 21A2.652 2.652 0 0021 17.25l-5.877-5.877M11.42 15.17l2.496-3.03c.317-.384.74-.626 1.208-.766M11.42 15.17l-4.655 5.653a2.548 2.548 0 11-3.586-3.586l6.837-5.63m5.108-.233c.55-.164 1.163-.188 1.743-.14a4.5 4.5 0 004.486-6.336l-3.276 3.277a3.004 3.004 0 01-2.25-2.25l3.276-3.276a4.5 4.5 0 00-6.336 4.486c.091 1.076-.071 2.264-.904 2.95l-.102.085m-1.745 1.437L5.909 7.5H4.5L2.25 3.75l1.5-1.5L7.5 4.5v1.409l4.26 4.26m-1.745 1.437l1.745-1.437m6.615 8.206L15.75 15.75M4.867 19.125h.008v.008h-.008v-.008z"})],-1),Tre={class:"mt-2 text-sm font-semibold text-gray-900"},Cre={class:"mt-1 text-sm text-gray-500"};function Ore(e,t){return I(),F("div",$re,[xre,m("h3",Tre,L(e.__("No Assets","podlove-podcasting-plugin-for-wordpress")),1),m("p",Cre,L(e.__("Please go to Podlove → Episode Assets and define at least one audio asset.","podlove-podcasting-plugin-for-wordpress")),1)])}const Are=Le(Ere,[["render",Ore]]),kre=ge({components:{CheckCircleIcon:rC,XCircleIcon:Pv,CloudIcon:Yx,AssetsEmptyState:Are},setup(){return{state:ut({files:B.mediafiles.files,duration:B.episode.duration}),dispatch:Ze().dispatch}},methods:{handleToggle(e){const t=e.target,n=t.checked,r=parseInt(t.value);n?this.dispatch(eD(r)):this.dispatch(tD(r))},handleVerify(e){this.dispatch(nD(e))},fileSize(e){const t=e.size;if(!t||t<1)return"???";var n=t/1024;if(n<500)return n.toFixed(2)+" kB";var r=n/1024;return r.toFixed(2)+" MB"}},computed:{files(){return this.state.files},hasFiles(){return this.files.length>0},duration(){const e="--:--:--.---";if(!this.state.duration)return e;const t=Dt.fromString(this.state.duration);return t.totalMs===0?e:t.pretty}}}),Ire={for:"assets",class:"block text-sm font-medium leading-6 text-gray-900 sm:pt-1.5"},Pre={class:"mt-2 sm:col-span-2 sm:mt-0"},Rre={key:0},Lre={class:"min-w-full table-fixed divide-y divide-gray-300"},Fre={scope:"col",class:"py-3.5 pl-3 text-left text-sm font-semibold text-gray-900"},Nre={scope:"col",class:"py-3.5 pr-3 text-left text-sm font-semibold text-gray-900"},Mre={scope:"col",class:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900"},Dre=m("th",{scope:"col",class:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900"},null,-1),Ure={class:"divide-y divide-gray-200 bg-white"},Bre={class:"relative px-7 sm:w-12 sm:px-6"},jre={key:0,class:"inline-flex items-center animate-pulse text-green-600 absolute left-[-14px] top-1/2 -mt-2.5"},Vre=["value","checked"],Hre={class:"text-sm"},zre={class:"whitespace-nowrap px-3 py-4 text-sm text-gray-500"},Wre={class:"flex flex-col"},qre=["href"],Kre={class:"flex"},Gre={key:3},Xre={class:"whitespace-nowrap px-3 py-4 text-sm text-gray-500"},Yre=["onClick"],Jre={class:"mt-3 text-sm leading-6 text-gray-600"};function Zre(e,t,n,r,o,i){const l=q("CloudIcon"),a=q("CheckCircleIcon"),c=q("XCircleIcon"),d=q("AssetsEmptyState");return I(),F(Me,null,[m("label",Ire,L(e.__("Assets","podlove-podcasting-plugin-for-wordpress")),1),m("div",Pre,[e.hasFiles?(I(),F("div",Rre,[m("table",Lre,[m("thead",null,[m("tr",null,[m("th",Fre,L(e.__("Enable","podlove-podcasting-plugin-for-wordpress")),1),m("th",Nre,L(e.__("Asset","podlove-podcasting-plugin-for-wordpress")),1),m("th",Mre,L(e.__("File","podlove-podcasting-plugin-for-wordpress")),1),Dre])]),m("tbody",Ure,[(I(!0),F(Me,null,Ot(e.files,p=>(I(),F("tr",{key:p.asset_id,class:gt({"opacity-50":!p.enable})},[m("td",Bre,[p.is_verifying?(I(),F("div",jre,[z(l,{class:"h-5 w-5","aria-hidden":"true"})])):Te("",!0),m("input",{type:"checkbox",class:"absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-600",value:p.asset_id,checked:p.enable,onClick:t[0]||(t[0]=(...h)=>e.handleToggle&&e.handleToggle(...h))},null,8,Vre)]),m("td",Hre,L(p.asset),1),m("td",zre,[m("div",Wre,[m("a",{href:p.url,target:"_blank",class:"text-gray-700 underline"},L(p.url),9,qre),m("span",Kre,[p.size>0?(I(),Ye(a,{key:0,class:"mr-1.5 h-5 w-5 flex-shrink-0 text-green-400","aria-hidden":"true"})):(I(),Ye(c,{key:1,class:gt(["mr-1.5 h-5 w-5 flex-shrink-0",{"text-gray-400":!p.enable,"text-red-400":p.enable}]),"aria-hidden":"true"},null,8,["class"])),p.size?(I(),F("span",Gre,L(e.fileSize(p)),1)):(I(),F("span",{key:2,class:gt({"text-gray-400":!p.enable,"text-red-400":p.enable})},L(e.__("File not found","podlove-podcasting-plugin-for-wordpress")),3))])])]),m("td",Xre,[m("button",{type:"button",class:"inline-flex items-center rounded-md bg-white px-2.5 py-1.5 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50 disabled:cursor-not-allowed disabled:opacity-30 disabled:hover:bg-white",onClick:()=>e.handleVerify(p.asset_id)},L(e.__("Verify","podlove-podcasting-plugin-for-wordpress")),9,Yre)])],2))),128))])]),m("p",Jre,L(e.__("Duration:","podlove-podcasting-plugin-for-wordpress"))+" "+L(e.duration),1)])):(I(),Ye(d,{key:1}))])],64)}const Qre=Le(kre,[["render",Zre]]),eoe=ge({components:{Module:In,RefreshIcon:tf,MediaSlug:Vne,MediaUpload:Kne,PlusMediaUpload:Sre,AssetsTable:Qre},setup(){return{state:ut({isInitializing:B.mediafiles.isInitializing,modules:B.settings.modules,plusStorageEnabled:B.settings.enablePlusStorage}),dispatch:Ze().dispatch}},computed:{isInitializing(){return this.state.isInitializing},isMediaUploadEnabled(){var e;return(e=this.state.modules)==null?void 0:e.includes("wordpress_file_upload")},isPlusStorageEnabled(){return this.state.plusStorageEnabled}},created(){this.dispatch(J8())}}),toe={key:0,class:"w-full flex justify-center m-12 text-center"},noe={class:"animate-pulse mt-4 flex space-x-4"},roe={key:1},ooe={class:"px-6"},soe={class:"mt-10 sm:mt-0 space-y-8 border-b border-gray-900/10 pb-12 sm:space-y-0 sm:divide-y sm:divide-gray-900/10 sm:pb-0"},ioe={class:"sm:grid sm:grid-cols-[175px_auto_auto] sm:items-start sm:gap-4 sm:py-6"},loe={key:0,class:"sm:grid sm:grid-cols-[175px_auto_auto] sm:items-start sm:gap-4 sm:py-6"},aoe={key:1,class:"sm:grid sm:grid-cols-[175px_auto_auto] sm:items-start sm:gap-4 sm:py-6"},uoe={class:"sm:grid sm:grid-cols-[175px_auto_auto] sm:items-start sm:gap-4 sm:py-6"};function coe(e,t,n,r,o,i){const l=q("RefreshIcon"),a=q("MediaSlug"),c=q("PlusMediaUpload"),d=q("MediaUpload"),p=q("AssetsTable"),h=q("module");return I(),Ye(h,{name:"mediafiles",title:"Media Files"},{default:_e(()=>[m("div",null,[e.isInitializing?(I(),F("div",toe,[m("div",noe,[z(l,{class:"animate-spin h-5 w-5 mr-3"}),Be(" "+L(e.__("Loading...","podlove-podcasting-plugin-for-wordpress")),1)])])):(I(),F("div",roe,[m("div",ooe,[m("div",soe,[m("div",ioe,[z(a)]),e.isPlusStorageEnabled?(I(),F("div",loe,[z(c)])):e.isMediaUploadEnabled?(I(),F("div",aoe,[z(d)])):Te("",!0),m("div",uoe,[z(p)])])])]))])]),_:1})}const doe=Le(eoe,[["render",coe]]),foe=ge({name:"PlusFileMigration",components:{Module:In,PodloveButton:Pn,UploadIcon:nf,CheckBadgeIcon:OV,ExclamationTriangleIcon:RX},setup(){return{state:ut({totalState:B.plusFileMigration.totalState,progress:B.plusFileMigration.progress,files:B.plusFileMigration.episodesWithFiles,currentEpisodeName:B.plusFileMigration.currentEpisodeName,currentFileName:B.plusFileMigration.currentFileName,isMigrationComplete:B.plusFileMigration.isMigrationComplete}),dispatch:Ze().dispatch}},methods:{startMigration(){this.dispatch(m8())}},computed:{progress(){return this.state.progress},totalFiles(){return this.state.files.reduce((e,t)=>e+t.files.length,0)},totalEpisodes(){return this.state.files.length},failedFiles(){return this.state.files.reduce((e,t)=>e+t.files.filter(n=>n.state==="error").length,0)},failedFilesList(){const e=[];return this.state.files.forEach(t=>{t.files.forEach(n=>{n.state==="error"&&e.push({episodeName:t.episodeName,fileName:n.name})})}),e},currentEpisodeName(){return this.state.currentEpisodeName},currentFileName(){return this.state.currentFileName},uiState(){return this.state.totalState}}}),poe={class:"m-3 rounded-lg bg-white"},hoe={key:0,class:"bg-white w-full"},moe=m("div",{class:"text-center"},"loading...",-1),goe=[moe],voe={key:1,class:"bg-white w-full"},yoe={class:"text-center py-10 px-5"},_oe={class:"w-20 h-20 mx-auto mb-5 bg-green-50 rounded-full flex items-center justify-center"},boe=m("h3",{class:"text-lg font-medium text-gray-800 mb-2.5"},"Upload Complete!",-1),woe={class:"text-gray-600 text-sm mb-6 max-w-md mx-auto"},Soe={key:0},Eoe={key:1},$oe={class:"bg-gray-50 rounded-lg p-5 mx-auto m-5 text-left"},xoe=m("div",{class:"text-base font-medium text-gray-800 mb-4"},"Upload Summary",-1),Toe={class:"flex justify-between mb-2.5 text-sm text-gray-600"},Coe=m("span",null,"Total Episodes:",-1),Ooe={class:"flex justify-between mb-2.5 text-sm text-gray-600"},Aoe=m("span",null,"Total Files:",-1),koe={key:0,class:"flex justify-between mb-4 text-sm text-red-600"},Ioe=m("span",null,"Failed Uploads:",-1),Poe={key:1,class:"border-t border-gray-200 pt-4"},Roe=m("div",{class:"text-sm font-medium text-gray-800 mb-3"},"Failed Uploads:",-1),Loe={class:"space-y-2"},Foe={class:"text-sm text-red-800"},Noe={class:"font-medium"},Moe={class:"text-red-600 mt-1"},Doe={class:"text-gray-600 text-left text-sm px-2 mx-auto"},Uoe={key:0},Boe=m("br",null,null,-1),joe=m("br",null,null,-1),Voe={key:1},Hoe={key:2,class:"bg-white w-full"},zoe={class:"text-center py-10 px-5"},Woe={class:"w-20 h-20 mx-auto mb-5 bg-gray-100 rounded-full flex items-center justify-center"},qoe=m("h3",{class:"text-lg font-medium text-gray-800 mb-2.5"}," Upload Your Existing Media Files to PLUS Cloud Storage ",-1),Koe=m("p",{class:"text-left text-gray-600 text-sm mb-2.5 max-w-md mx-auto"}," This is a one-time operation to move your existing files to PLUS Cloud Storage. It will only need to be done once. ",-1),Goe={class:"text-left text-gray-600 text-sm mb-6 max-w-md mx-auto"},Xoe={key:3,class:"bg-white w-full"},Yoe={class:"py-10 px-5"},Joe={class:"flex justify-between mb-2 text-sm text-gray-600"},Zoe=m("span",null,"Progress Uploading Media Files to PLUS Cloud Storage",-1),Qoe={class:"h-2.5 bg-gray-100 rounded-lg overflow-hidden"},ese={class:"bg-gray-50 my-5 p-5 rounded-lg"},tse=m("div",{class:"flex items-center mb-2"},[m("h3",{class:"text-base font-medium text-gray-800"},"Currently Uploading"),m("div",{class:"ml-2 animate-spin"},[m("div",{class:"w-4 h-4 border-2 border-gray-300 border-t-gray-700 rounded-full"})])],-1),nse={class:"text-gray-600 text-sm mb-1"},rse=m("strong",null,"Episode:",-1),ose={class:"text-gray-600 text-sm"},sse=m("strong",null,"File:",-1),ise={class:"border-l-4 border-yellow-400 bg-yellow-50 p-4"},lse={class:"flex"},ase={class:"shrink-0"},use=m("div",{class:"ml-3"},[m("p",{class:"text-sm text-yellow-700"}," Keep this window open while the upload is in progress. ")],-1);function cse(e,t,n,r,o,i){const l=q("CheckBadgeIcon"),a=q("UploadIcon"),c=q("podlove-button"),d=q("ExclamationTriangleIcon");return I(),F("div",poe,[e.uiState==="init"?(I(),F("section",hoe,goe)):Te("",!0),e.uiState==="finished"?(I(),F("section",voe,[m("div",yoe,[m("div",_oe,[z(l,{class:"w-10 h-10 stroke-green-500"})]),boe,m("p",woe,[e.failedFiles===0?(I(),F("span",Soe,"All your files have been successfully uploaded.")):(I(),F("span",Eoe,"Upload process completed with "+L(e.failedFiles)+" failed upload"+L(e.failedFiles>1?"s":"")+".",1))]),m("div",$oe,[xoe,m("div",Toe,[Coe,m("span",null,L(e.totalEpisodes),1)]),m("div",Ooe,[Aoe,m("span",null,L(e.totalFiles),1)]),e.failedFiles>0?(I(),F("div",koe,[Ioe,m("span",null,L(e.failedFiles),1)])):Te("",!0),e.failedFiles>0?(I(),F("div",Poe,[Roe,m("div",Loe,[(I(!0),F(Me,null,Ot(e.failedFilesList,p=>(I(),F("div",{key:`${p.episodeName}-${p.fileName}`,class:"bg-red-50 border border-red-200 rounded p-3"},[m("div",Foe,[m("div",Noe,L(p.episodeName),1),m("div",Moe,L(p.fileName),1)])]))),128))])])):Te("",!0)]),m("p",Doe,[e.failedFiles===0?(I(),F("span",Uoe,[Be(" Starting immediately, your files will be served from PLUS Cloud Storage to all listeners. When you create and manage new episodes, files will be directly uploaded to PLUS Cloud Storage."),Boe,joe,Be("Happy podcasting! ")])):(I(),F("span",Voe," Successfully uploaded files will be served from PLUS Cloud Storage to all listeners. You may want to retry uploading the failed files or check the file URLs and try again. When you create and manage new episodes, files will be directly uploaded to PLUS Cloud Storage. "))])])])):Te("",!0),e.uiState==="ready"?(I(),F("section",Hoe,[m("div",zoe,[m("div",Woe,[z(a,{class:"w-10 h-10 stroke-gray-600"})]),qoe,Koe,m("p",Goe," You have "+L(e.totalFiles)+" files to upload. Once they are uploaded, you can delete the files from your local storage or keep them as a backup. ",1),z(c,{variant:"primary",onClick:e.startMigration},{default:_e(()=>[Be(L(e.__("Start Uploads","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["onClick"])])])):Te("",!0),e.uiState==="in_progress"?(I(),F("section",Xoe,[m("div",Yoe,[m("div",Joe,[Zoe,m("span",null,L(e.progress)+"%",1)]),m("div",Qoe,[m("div",{class:"h-full bg-green-500 rounded-lg transition-all duration-300",style:oo({width:e.progress+"%"})},null,4)]),m("section",ese,[tse,m("p",nse,[rse,Be(" "+L(e.currentEpisodeName),1)]),m("p",ose,[sse,Be(" "+L(e.currentFileName),1)])]),m("div",ise,[m("div",lse,[m("div",ase,[z(d,{class:"size-5 text-yellow-400","aria-hidden":"true"})]),use])])])])):Te("",!0)])}const pC=Le(foe,[["render",cse]]),dse={class:"overflow-hidden rounded-lg bg-white border border-gray-200 transition-shadow duration-200 hover:shadow"},fse={class:"px-4 py-5 sm:p-6"},pse={class:"mb-3 flex items-center justify-between"},hse={class:"text-base font-medium text-gray-800"},mse={class:"flex items-center gap-3"},gse={class:"flex items-center gap-2"},vse={key:0,class:"rounded-full bg-green-100 px-3 py-1 text-xs font-medium text-green-600"},yse={key:1,class:"rounded-full bg-gray-100 px-3 py-1 text-xs font-medium text-gray-500"},_se=m("svg",{class:"size-3 text-gray-400",fill:"none",viewBox:"0 0 12 12"},[m("path",{d:"M4 8l2-2m0 0l2-2M6 6L4 4m2 2l2 2",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1),bse=[_se],wse=m("svg",{class:"size-3 text-green-600",fill:"currentColor",viewBox:"0 0 12 12"},[m("path",{d:"M3.707 5.293a1 1 0 00-1.414 1.414l1.414-1.414zM5 8l-.707.707a1 1 0 001.414 0L5 8zm4.707-3.293a1 1 0 00-1.414-1.414l1.414 1.414zm-7.414 2l2 2 1.414-1.414-2-2-1.414 1.414zm3.414 2l4-4-1.414-1.414-4 4 1.414 1.414z"})],-1),Sse=[wse],Ese={key:0,class:"bg-gray-50 px-4 py-4 sm:px-6"},$se=ge({__name:"Feature",props:{title:{type:String,required:!0},modelValue:{type:Boolean,required:!0}},emits:["update:modelValue"],setup(e){return(t,n)=>(I(),F("div",dse,[m("div",fse,[m("div",pse,[m("h3",hse,L(e.title),1),m("div",mse,[m("div",gse,[yn(t.$slots,"settings-action"),e.modelValue?(I(),F("span",vse,"Active")):(I(),F("span",yse,"Disabled"))]),z(vn(DT),{modelValue:e.modelValue,"onUpdate:modelValue":n[0]||(n[0]=r=>t.$emit("update:modelValue",r)),class:gt([e.modelValue?"bg-green-600":"bg-gray-200","relative inline-flex h-6 w-11 shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-green-600 focus:ring-offset-2"])},{default:_e(()=>[m("span",{class:gt([e.modelValue?"translate-x-5":"translate-x-0","pointer-events-none relative inline-block size-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out"])},[m("span",{class:gt([e.modelValue?"opacity-0 duration-100 ease-out":"opacity-100 duration-200 ease-in","absolute inset-0 flex size-full items-center justify-center transition-opacity"]),"aria-hidden":"true"},bse,2),m("span",{class:gt([e.modelValue?"opacity-100 duration-200 ease-in":"opacity-0 duration-100 ease-out","absolute inset-0 flex size-full items-center justify-center transition-opacity"]),"aria-hidden":"true"},Sse,2)],2)]),_:1},8,["modelValue","class"])])]),yn(t.$slots,"default")]),t.$slots.footer?(I(),F("div",Ese,[yn(t.$slots,"footer")])):Te("",!0)]))}}),xse=ge({components:{Feature:$se,PlusFileMigration:pC,Cog6ToothIcon:RV},setup(){return{state:ut({features:B.plus.features,files:B.plusFileMigration.episodesWithFiles,isMigrationComplete:B.plusFileMigration.isMigrationComplete,showMigrationToolManually:B.plusFileMigration.showMigrationToolManually}),dispatch:Ze().dispatch}},created(){this.dispatch(Wd()),this.dispatch(p8())},methods:{handleFeatureToggle(e){this.dispatch(qh({feature:e,value:!this.features[e]}))},toggleMigrationTool(){this.dispatch(_8())}},computed:{features(){return this.state.features},needsMigration(){return!this.state.isMigrationComplete&&this.state.files&&this.state.files.length>0},showMigrationTool(){return this.state.showMigrationToolManually}}}),Tse={class:"mb-6 rounded-lg bg-white p-6 shadow-sm"},Cse=m("div",{class:"mb-6"},[m("h2",{class:"mb-2 text-xl font-medium text-gray-700"},"Manage Features"),m("p",{class:"text-sm text-gray-600"}," Enable or disable PLUS features. Changes will take effect immediately. ")],-1),Ose={class:"space-y-3"},Ase=m("span",null,"Show Migration Tool",-1),kse=m("p",{class:"text-sm text-gray-600 mb-2"}," Store your podcast files in fast and reliable cloud storage. Don't worry about dealing with WordPress performance issues as your podcast grows. Focus on creating great content and let us handle the rest. ",-1),Ise=m("p",{class:"text-sm text-gray-600 mb-2"}," You can enable file storage by using the feature switch here. This will automatically upload your podcast files to the cloud and make them available for download. ",-1),Pse=m("p",{class:"text-sm text-gray-600"}," If at any point you want to disable file storage, you can do so by disabling the feature here. Then files will be served from your local WordPress or FTP storage again, as you configure it here in the plugin. ",-1),Rse=m("p",{class:"text-sm text-gray-600"}," When Feed Proxy is enabled, all feed requests are automatically redirected to the corresponding proxy feed URL. It can be disabled at any time without risk of losing subscribers because a temporary redirect (HTTP 307) is used. ",-1);function Lse(e,t,n,r,o,i){const l=q("Cog6ToothIcon"),a=q("PlusFileMigration"),c=q("Feature");return I(),F("div",Tse,[Cse,m("div",Ose,[z(c,{title:"File Storage",modelValue:e.features.fileStorage,"onUpdate:modelValue":t[1]||(t[1]=d=>e.handleFeatureToggle("fileStorage"))},Aw({default:_e(()=>[kse,Ise,Pse]),_:2},[e.features.fileStorage?{name:"settings-action",fn:_e(()=>[m("button",{onClick:t[0]||(t[0]=(...d)=>e.toggleMigrationTool&&e.toggleMigrationTool(...d)),class:"p-1 text-gray-400 hover:text-gray-600 transition-colors flex items-center gap-1",title:"Show Migration Tool"},[z(l,{class:"size-5"}),Be(),Ase])]),key:"0"}:void 0,e.features.fileStorage&&(e.needsMigration||e.showMigrationTool)?{name:"footer",fn:_e(()=>[z(a)]),key:"1"}:void 0]),1032,["modelValue"]),z(c,{title:"Feed Proxy",modelValue:e.features.feedProxy,"onUpdate:modelValue":t[2]||(t[2]=d=>e.handleFeatureToggle("feedProxy"))},{default:_e(()=>[Rse]),_:1},8,["modelValue"])])])}const Fse=Le(xse,[["render",Lse]]),Nse={class:"space-y-4"},Mse={for:"api_token",class:"block text-sm font-medium text-gray-700 mb-2"},Dse={class:"relative"},Use=["type","value","placeholder"],Bse={class:"text-sm text-gray-600"},jse={class:"flex items-center justify-between"},Vse={class:"flex-1"},Hse={class:"flex gap-2"},zse={href:"https://plus.podlove.org/tokens",target:"_blank",class:"inline-flex items-center px-3 py-2 border border-gray-300 shadow-sm text-sm leading-4 font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500"},Wse=["disabled"],qse={key:0,class:"animate-spin -ml-1 mr-2 h-4 w-4 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},Kse=m("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),Gse=m("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"},null,-1),Xse=[Kse,Gse],Yse=ge({__name:"TokenInput",props:{modelValue:{type:String,default:""},isTokenValid:{type:Boolean,default:!1},isSaving:{type:Boolean,default:!1}},emits:["update:modelValue","save"],setup(e){const t=$e(!1);return(n,r)=>(I(),F("div",Nse,[m("div",null,[m("label",Mse,L(n.__("API Token","podlove-podcasting-plugin-for-wordpress")),1),m("div",Dse,[m("input",{type:t.value?"text":"password",id:"api_token",value:e.modelValue,onInput:r[0]||(r[0]=o=>n.$emit("update:modelValue",o.target.value)),class:"w-full px-3 py-2 pr-10 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500",placeholder:n.__("Enter your API token","podlove-podcasting-plugin-for-wordpress")},null,40,Use),m("button",{type:"button",onClick:r[1]||(r[1]=o=>t.value=!t.value),class:"absolute inset-y-0 right-0 pr-3 flex items-center text-gray-400 hover:text-gray-600 focus:outline-none"},[t.value?(I(),Ye(vn(MV),{key:0,class:"h-5 w-5"})):(I(),Ye(vn(NV),{key:1,class:"h-5 w-5"}))])])]),m("div",Bse,[yn(n.$slots,"default")]),m("div",jse,[m("div",Vse,[yn(n.$slots,"status")]),m("div",Hse,[m("a",zse,L(n.__("Get Token","podlove-podcasting-plugin-for-wordpress")),1),m("button",{type:"button",disabled:e.isSaving,onClick:r[2]||(r[2]=o=>n.$emit("save")),class:"inline-flex items-center px-3 py-2 border border-transparent text-sm leading-4 font-medium rounded-md text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 disabled:opacity-50 disabled:cursor-not-allowed"},[e.isSaving?(I(),F("svg",qse,Xse)):Te("",!0),Be(" "+L(e.isSaving?n.__("Saving...","podlove-podcasting-plugin-for-wordpress"):n.__("Save Token","podlove-podcasting-plugin-for-wordpress")),1)],8,Wse)])])]))}}),Jse=ge({components:{TokenInput:Yse,CheckCircleIcon:rC,XCircleIcon:Pv,InformationCircleIcon:LX},setup(){const e=Ze();return{state:ut({token:t=>B.plus.token(t),user:t=>B.plus.user(t),isLoading:t=>B.plus.isLoading(t),isSaving:t=>B.plus.isSaving(t)}),dispatch:e.dispatch}},created(){this.dispatch(Wd())},computed:{apiToken(){return this.state.token},isTokenValid(){return this.state.user!==null},userEmail(){var e;return((e=this.state.user)==null?void 0:e.email)||""},showContent(){return!this.state.isLoading}},methods:{handleTokenUpdate(e){this.dispatch(Kh(e))},handleSaveToken(){this.dispatch(E8(this.apiToken))}}}),Zse={class:"mb-6 rounded-lg bg-white p-6 shadow-sm"},Qse={class:"mb-6"},eie={class:"mb-2 text-xl font-medium text-gray-700"},tie={class:"text-sm text-gray-600"},nie={key:0,class:"space-y-3"},rie=m("div",{class:"animate-pulse"},[m("div",{class:"h-4 bg-gray-200 rounded w-3/4 mb-4"}),m("div",{class:"h-10 bg-gray-200 rounded mb-4"}),m("div",{class:"h-4 bg-gray-200 rounded w-1/2"})],-1),oie=[rie],sie={key:1,class:"space-y-3"},iie={key:0,class:"flex items-center gap-2 text-sm text-gray-600"},lie={key:1,class:"flex items-center gap-2 text-sm text-red-600"},aie={key:2,class:"flex items-center gap-2 text-sm text-gray-600"};function uie(e,t,n,r,o,i){const l=q("CheckCircleIcon"),a=q("XCircleIcon"),c=q("InformationCircleIcon"),d=q("TokenInput");return I(),F("div",Zse,[m("div",Qse,[m("h2",eie,L(e.__("Authentication","podlove-podcasting-plugin-for-wordpress")),1),m("p",tie,L(e.__("Publisher PLUS provides additional features and services for your podcast. Enter your API token below to activate these features.","podlove-podcasting-plugin-for-wordpress")),1)]),e.state.isLoading?(I(),F("div",nie,oie)):(I(),F("div",sie,[z(d,{modelValue:e.apiToken,isTokenValid:e.isTokenValid,isSaving:e.state.isSaving,"onUpdate:modelValue":e.handleTokenUpdate,onSave:e.handleSaveToken},{status:_e(()=>[e.apiToken&&e.isTokenValid?(I(),F("div",iie,[z(l,{class:"w-4 h-4 text-green-600"}),m("span",null,[Be(L(e.__("You are logged in as","podlove-podcasting-plugin-for-wordpress"))+" ",1),m("strong",null,L(e.userEmail),1)])])):e.apiToken&&!e.isTokenValid?(I(),F("div",lie,[z(a,{class:"w-4 h-4"}),m("span",null,L(e.__("Invalid API token","podlove-podcasting-plugin-for-wordpress")),1)])):(I(),F("div",aie,[z(c,{class:"w-4 h-4"}),m("span",null,L(e.__("No API token configured","podlove-podcasting-plugin-for-wordpress")),1)]))]),_:1},8,["modelValue","isTokenValid","isSaving","onUpdate:modelValue","onSave"])]))])}const cie=Le(Jse,[["render",uie]]),die=ge({name:"PodloveCombobox",components:{Combobox:pT,ComboboxButton:hT,ComboboxInput:mT,ComboboxOption:vT,ComboboxOptions:gT,CheckIcon:pf,SelectorIcon:hf},props:{options:Array,selectValues:Array,placeholder:{type:String,default:"Select an option"},multiple:{type:Boolean,default:!1},error:String},computed:{label(){var t;const e=(t=this.selectValues)==null?void 0:t.length;return e===0?"No option is selected":e===1?"One option is selected":(e==null?void 0:e.toString())+" options are selected"},filterOptions(){var e;return this.query===""?this.options:(e=this.options)==null?void 0:e.filter(t=>t.title.toLowerCase().includes(this.query.toLowerCase()))}},data(){return{query:""}},methods:{selectItem(e){this.$emit("update",e)},onChange(e){this.query=e.target.value},resetQuery(){this.query=""}}}),fie={class:"relative mt-1 focus-visible:border-indigo-500 focus:ring-indigo-500"},pie={class:"shadow-sm flex sm:text-sm rounded-md absolute inset-y-0 right-10 items-center pr-2 pointer-events-none"},hie={key:0,class:"cursor-default select-none relative py-2 px-4 text-gray-700"},mie={key:0,class:"flex absolute inset-y-0 left-0 items-center pl-3 text-amber-600"},gie={key:0,class:"text-xs text-red-400 mt-1"};function vie(e,t,n,r,o,i){const l=q("ComboboxInput"),a=q("SelectorIcon"),c=q("ComboboxButton"),d=q("CheckIcon"),p=q("ComboboxOption"),h=q("ComboboxOptions"),v=q("Combobox",!0);return I(),Ye(v,{"model-value":e.selectValues,multiple:e.multiple,"onUpdate:modelValue":t[0]||(t[0]=y=>e.selectItem(y))},{default:_e(()=>[m("div",fie,[z(c,{class:"w-full flex items-center",onClick:e.resetQuery},{default:_e(()=>[z(l,{onChange:e.onChange,class:"relative py-2 pl-3 w-full bg-white rounded-lg shadow-md cursor-default sm:text-sm border-gray-300"},null,8,["onChange"]),m("div",pie,L(e.label),1),z(a,{class:"w-5 h-5 text-gray-400","aria-hidden":"true"})]),_:1},8,["onClick"]),z(Cs,{"leave-active-class":`148 `;eC(JK);tC.__scopeId="data-v-5784ed69";var ZK=(()=>{const e=tC;return e.install=t=>{t.component("Popper",e)},e})();const QK=ge({components:{Popper:ZK},props:{direction:{type:String,default:"left"}},data(){return{visible:!0}},computed:{caretClasses(){switch(this.direction){case"left":return"left-0 -ml-2 bottom-0 top-0 h-full"}}},methods:{show(){this.visible=!0},hide(){this.visible=!1}}}),eG={class:"bg-white p-4 rounded shadow-lg max-w-md"};function tG(e,t,n,r,o,i){const l=q("Popper");return I(),F("div",null,[z(l,{hover:"",openDelay:"200",closeDelay:"100",arrow:!0},{content:_e(()=>[m("div",eG,[yn(e.$slots,"content")])]),default:_e(()=>[yn(e.$slots,"trigger")]),_:3})])}const nG=Le(QK,[["render",tG]]),rG=ge({components:{PodloveButton:Pn,Tooltip:nG},setup(){return{dispatch:Ze().dispatch}},methods:{simulateImportClick(){this.$refs.import.click()},importChapters(){const e=this.$refs.import;if(e)try{const t=new FileReader;t.onload=n=>{this.dispatch(SM(n.target.result))},t.readAsText(Y.get(e,["files",0],""))(this.$refs.importForm).reset()}catch{}}}}),oG={class:"text-xs"},sG={class:"text-gray-600 leading-3 font-semibold mb-2"},iG={class:"text-gray-500 ml-1"},lG={class:"mb-1"},aG={class:"text-blue-500 underline",href:"https://podlove.org/simple-chapters/",target:"_blank"},uG=m("code",null,".psc",-1),cG={class:"mb-1"},dG={class:"text-blue-500 underline",href:"http://www.audacityteam.org",target:"_blank"},fG={class:"mb-1"},pG={class:"text-blue-500 underline",href:"https://hindenburg.com",target:"_blank"},hG=m("code",null,".txt",-1);function mG(e,t,n,r,o,i){const l=q("podlove-button"),a=q("tooltip");return I(),Ye(a,null,{trigger:_e(()=>[z(l,{variant:"secondary",size:"small",onClick:t[0]||(t[0]=c=>e.simulateImportClick())},{default:_e(()=>[Be(L(e.__("Import","podlove-podcasting-plugin-for-wordpress")),1)]),_:1}),m("input",{ref:"import",type:"file",onChange:t[1]||(t[1]=(...c)=>e.importChapters&&e.importChapters(...c)),class:"hidden"},null,544)]),content:_e(()=>[m("div",oG,[m("p",sG,L(e.__("Accepts:","podlove-podcasting-plugin-for-wordpress")),1),m("ul",iG,[m("li",lG,[m("a",aG,L(e.__("Podlove Simple Chapters","podlove-podcasting-plugin-for-wordpress")),1),Be(" ("),uG,Be("), ")]),m("li",cG,[m("a",dG,L(e.__("Audacity","podlove-podcasting-plugin-for-wordpress")),1),Be(" "+L(e.__("Track Labels","podlove-podcasting-plugin-for-wordpress"))+", ",1)]),m("li",fG,[m("a",pG,L(e.__("Hindenburg","podlove-podcasting-plugin-for-wordpress")),1),Be(" "+L(e.__("project files and MP4Chaps","podlove-podcasting-plugin-for-wordpress"))+" (",1),hG,Be(") ")])])])]),_:1})}const gG=Le(rG,[["render",mG]]),vG=ge({components:{Popover:LT,PopoverButton:tz,PopoverPanel:nz}});function yG(e,t,n,r,o,i){const l=q("PopoverButton"),a=q("PopoverPanel"),c=q("Popover",!0);return I(),Ye(c,{class:"relative"},{default:_e(()=>[z(l,null,{default:_e(()=>[yn(e.$slots,"trigger")]),_:3}),z(Cs,{"enter-active-class":"transition duration-200 ease-out","enter-from-class":"translate-y-1 opacity-0","enter-to-class":"translate-y-0 opacity-100","leave-active-class":"transition duration-150 ease-in","leave-from-class":"translate-y-0 opacity-100","leave-to-class":"translate-y-1 opacity-0"},{default:_e(()=>[z(a,{class:"absolute"},{default:_e(()=>[yn(e.$slots,"content",{class:"overflow-hidden"})]),_:3})]),_:3})]),_:3})}const nC=Le(vG,[["render",yG]]),_G=ge({components:{Popover:nC,PodloveButton:Pn},setup(){return{dispatch:Ze().dispatch}},methods:{download(e){this.dispatch($M(e))}}}),bG={class:"bg-white p-7 -translate-x-full z-10 mt-3 transform ml-16 rounded-lg shadow-lg"},wG={class:"text-sm font-medium text-gray-900 truncate w-full mr-2"},SG=m("div",{class:"text-sm text-gray-500"},".psc",-1),EG={class:"text-sm font-medium text-gray-900 truncate w-full mr-2"},$G=m("div",{class:"text-sm text-gray-500"},".txt",-1);function xG(e,t,n,r,o,i){const l=q("podlove-button"),a=q("popover");return I(),F("div",null,[z(a,null,{trigger:_e(()=>[z(l,{variant:"secondary",size:"small"},{default:_e(()=>[Be(L(e.__("Export","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})]),content:_e(()=>[m("div",bG,[m("a",{onClick:t[0]||(t[0]=c=>e.download("psc")),class:"flex items-center p-2 -m-3 transition duration-150 ease-in-out rounded-lg cursor-pointer bg-gray-100 hover:bg-indigo-100 focus:outline-none focus-visible:ring focus-visible:ring-indigo-500 focus-visible:ring-opacity-50 mb-4"},[m("div",wG,L(e.__("Podlove Simple Chapters","podlove-podcasting-plugin-for-wordpress")),1),SG]),m("a",{onClick:t[1]||(t[1]=c=>e.download("mp4")),class:"flex items-center p-2 -m-3 transition duration-150 ease-in-out rounded-lg cursor-pointer bg-gray-100 hover:bg-indigo-100 focus:outline-none focus-visible:ring focus-visible:ring-indigo-500 focus-visible:ring-opacity-50"},[m("div",EG,L(e.__("MP4Chaps","podlove-podcasting-plugin-for-wordpress")),1),$G])])]),_:1})])}const TG=Le(_G,[["render",xG]]),CG=ge({components:{Module:In,TabsContainer:zT,Tab:HT,ChaptersForm:Dq,ChaptersImport:gG,ChaptersExport:TG},setup(){return{dispatch:Ze().dispatch}},created(){this.dispatch(yM())}});function OG(e,t,n,r,o,i){const l=q("chapters-import"),a=q("chapters-export"),c=q("chapters-form"),d=q("module");return I(),Ye(d,{name:"chapters",title:e.__("Chapter Marks","podlove-podcasting-plugin-for-wordpress")},{actions:_e(()=>[z(l,{class:"mr-1"}),z(a)]),default:_e(()=>[z(c)]),_:1},8,["title"])}const AG=Le(CG,[["render",OG]]),kG={},IG={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},PG=m("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-6-3a2 2 0 11-4 0 2 2 0 014 0zm-2 4a5 5 0 00-4.546 2.916A5.986 5.986 0 0010 16a5.986 5.986 0 004.546-2.084A5 5 0 0010 11z","clip-rule":"evenodd"},null,-1),RG=[PG];function LG(e,t){return I(),F("svg",IG,RG)}const FG=Le(kG,[["render",LG]]),NG=ge({props:{outlet:{type:String,default:"header"}},components:{PodloveButton:Pn,UploadIcon:rf,DocumentTextIcon:iv},setup(){return{dispatch:Ze().dispatch}},methods:{simulateImportClick(){this.$refs.import.click()},importTranscriptFromAsset(){this.dispatch(KM())},handleImport(){const e=this.$refs.import;if(e)try{const t=new FileReader;t.onload=n=>{this.dispatch(qM(n.target.result))},t.readAsText(Y.get(e,["files",0],""))(this.$refs.importForm).reset()}catch{}}}}),MG={ref:"importForm",class:"cursor-pointer"},DG={class:"grid grid-cols-2"};function UG(e,t,n,r,o,i){const l=q("upload-icon"),a=q("podlove-button");return I(),F("form",MG,[m("div",DG,[m("div",null,[z(a,{variant:"primary",onClick:e.simulateImportClick,class:"ml-1"},{default:_e(()=>[z(l,{class:"-ml-0.5 mr-2 h-4 w-4","aria-hidden":"true"}),Be(" "+L(e.__("Import Transcript","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["onClick"]),m("input",{ref:"import",accept:"text/vtt",type:"file",onChange:t[0]||(t[0]=(...c)=>e.handleImport&&e.handleImport(...c)),class:"hidden",key:""},null,544)]),m("div",null,[z(a,{variant:"primary",onClick:e.importTranscriptFromAsset,class:"ml-1"},{default:_e(()=>[Be(L(e.__("Get From Asset","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["onClick"])])])],512)}const BG=Le(NG,[["render",UG]]),jG=ge({components:{Avatar:FG,TranscriptsImport:BG,DocumentTextIcon:iv},setup(){return{state:ut({transcripts:B.transcripts.list,contributors:B.contributors.contributors,voices:B.transcripts.voices})}},computed:{voices(){return this.state.contributors.reduce((e,t)=>{var r;const n=(r=this.state.voices.find(o=>o.contributor===t.id))==null?void 0:r.voice;return{...e,[n]:{id:t.id,name:t.realname,avatar:t.avatar_url}}},{})},transcripts(){return this.state.transcripts.reduce((e,t)=>{const n=Y.last(e);return n&&n.voiceId===t.voice?[...Y.dropRight(e),{...n,voiceId:t.voice,content:[...n.content,{text:t.text,start:t.start_ms,end:t.end_ms}]}]:[...e,{voiceId:t.voice,content:[{text:t.text,start:t.start_ms,end:t.end_ms}]}]},[]).map(e=>({...e,voice:Y.get(this.voices,[e.voiceId],{name:e.voiceId})}))}},methods:{formatTime(e){return new Dt(e).prettyShort}}}),VG={key:0,class:"h-96 p-2 overflow-x-auto"},HG={class:"mr-2 w-12 text-gray-400 select-none"},zG=["src"],WG={class:"w-full font-light text-sm mr-2"},qG={class:"block font-bold"},KG={class:"flex justify-between"},GG={class:"ml-1 font-mono select-none"},XG={key:1,class:"text-center h-96 flex items-center justify-center flex-col"},YG={class:"mt-2 text-sm font-medium text-gray-900"},JG={class:"mt-1 text-sm text-gray-500"},ZG={class:"mt-6"};function QG(e,t,n,r,o,i){const l=q("avatar"),a=q("document-text-icon"),c=q("transcripts-import");return e.transcripts.length>0?(I(),F("div",VG,[(I(!0),F(Me,null,Ot(e.transcripts,(d,p)=>{var h,v,y;return I(),F("div",{class:"flex mb-2",key:`transcript-${p}`},[m("div",HG,[(h=d==null?void 0:d.voice)!=null&&h.avatar?(I(),F("img",{key:0,class:"w-12 h-12 rounded",src:(v=d==null?void 0:d.voice)==null?void 0:v.avatar},null,8,zG)):(I(),Ye(l,{key:1}))]),m("div",WG,[m("span",qG,L((y=d==null?void 0:d.voice)==null?void 0:y.name),1),m("span",KG,[m("span",null,[(I(!0),F(Me,null,Ot(d.content,(b,S)=>(I(),F("span",{class:"mr-1",key:`transcript-${p}-content-${S}`},L(b.text),1))),128))]),m("span",GG,L(e.formatTime(d.content[0].start)),1)])])])}),128))])):(I(),F("div",XG,[z(a,{class:"mx-auto h-12 w-12 text-gray-400"}),m("h3",YG,L(e.__("No transcript yet","podlove-podcasting-plugin-for-wordpress")),1),m("p",JG,L(e.__("Get started by importing a transcript.","podlove-podcasting-plugin-for-wordpress")),1),m("div",ZG,[z(c,{outlet:"content",class:"mr-1"})])]))}const eX=Le(jG,[["render",QG]]),tX=ge({components:{PodloveButton:Pn,Modal:Za},data(){return{modalOpen:!1}},setup(){return{state:ut({contributors:B.contributors.contributors,voices:B.transcripts.voices}),dispatch:Ze().dispatch}},computed:{sortedContributors(){return this.state.contributors.sort((e,t)=>{const n=e.publicname||e.realname||e.nickname,r=t.publicname||t.realname||t.nickname;return n.localeCompare(r)})}},methods:{updateContributor(e,t){const n=t.target.value;this.dispatch(WM({voice:e,contributor:n}))},openVoices(){this.modalOpen=!0},closeVoices(){this.modalOpen=!1}}}),nX={key:0},rX={class:"border-gray-200 border-b pb-2 px-4 -mx-6 mb-4"},oX={class:"text-lg leading-6 font-medium text-gray-900"},sX={for:"country",class:"block text-sm font-medium text-gray-700"},iX=["value","onChange"],lX=m("option",{value:"0"},null,-1),aX=["value"];function uX(e,t,n,r,o,i){const l=q("podlove-button"),a=q("modal");return e.state.voices.length>0?(I(),F("div",nX,[z(l,{variant:"secondary",size:"small",onClick:t[0]||(t[0]=c=>e.openVoices())},{default:_e(()=>[Be(L(e.__("Voices","podlove-podcasting-plugin-for-wordpress")),1)]),_:1}),z(a,{open:e.modalOpen,onClose:t[1]||(t[1]=c=>e.closeVoices())},{default:_e(()=>[m("div",rX,[m("h3",oX,L(e.__("Transcript Voices","podlove-podcasting-plugin-for-wordpress")),1)]),(I(!0),F(Me,null,Ot(e.state.voices,(c,d)=>(I(),F("div",{key:`voice-${d}`,class:gt(["w-full py-2 px-4",{"bg-white":d%2}])},[m("label",sX,L(c.voice),1),m("select",{value:c.contributor,class:"mt-1 block w-full py-2 px-3 border border-gray-300 bg-white rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm",onChange:p=>e.updateContributor(c.voice,p)},[lX,(I(!0),F(Me,null,Ot(e.sortedContributors,(p,h)=>(I(),F("option",{key:`voice-${d}-contributor-${h}`,value:p.id},L(p.publicname||p.realname||p.nickname),9,aX))),128))],40,iX)],2))),128))]),_:1},8,["open"])])):Te("",!0)}const cX=Le(tX,[["render",uX]]),dX=[{title:"Export webvtt",type:"webvtt",file:"transcript.webvtt",ending:".webvtt"},{title:"Export json (flat)",type:"json",file:"transcript.json",ending:".json"},{title:"Export json (grouped)",type:"json_grouped",file:"transcript.json",ending:".json"},{title:"Export xml",type:"xml",file:"transcript.xml",ending:".xml"}],fX=ge({components:{Popover:nC,PodloveButton:Pn},setup(){return{state:ut({post:B.post.id,baseUrl:B.runtime.baseUrl,transcripts:B.transcripts.list})}},data(){return{exportTypes:dX}}}),pX={key:0},hX={class:"bg-white p-7 pb-1 -translate-x-full z-10 mt-3 transform ml-16 rounded-lg shadow-lg"},mX=["download","href"],gX={class:"text-sm font-medium text-gray-900 truncate w-full mr-2"},vX={class:"text-sm text-gray-500"};function yX(e,t,n,r,o,i){const l=q("podlove-button"),a=q("popover");return e.state.transcripts.length>0?(I(),F("div",pX,[z(a,null,{trigger:_e(()=>[z(l,{variant:"secondary",size:"small",tabindex:"-1"},{default:_e(()=>[Be(L(e.__("Export","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})]),content:_e(()=>[m("div",hX,[(I(!0),F(Me,null,Ot(e.exportTypes,(c,d)=>(I(),F("a",{key:`type-${d}`,download:c.file,href:`${e.state.baseUrl}/?p=${e.state.post}&podlove_transcript=${c.type}`,class:"flex items-center p-2 -m-3 transition duration-150 ease-in-out rounded-lg cursor-pointer bg-gray-100 hover:bg-indigo-100 focus:outline-none focus-visible:ring focus-visible:ring-indigo-500 focus-visible:ring-opacity-50 mb-4"},[m("div",gX,L(c.title),1),m("div",vX,L(c.ending),1)],8,mX))),128))])]),_:1})])):Te("",!0)}const _X=Le(fX,[["render",yX]]),bX=ge({components:{PodloveButton:Pn,Modal:Za,ExclamationIcon:lv,DialogTitle:WH},data(){return{modalVisible:!1}},setup(){return{state:ut({transcripts:B.transcripts.list}),dispatch:Ze().dispatch}},methods:{deleteTranscripts(){this.closeModal(),this.dispatch(GM())},openModal(){this.modalVisible=!0},closeModal(){this.modalVisible=!1}}}),wX={key:0},SX={class:"sm:flex sm:items-start"},EX={class:"mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-red-100 sm:mx-0 sm:h-10 sm:w-10"},$X={class:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left"},xX={class:"mt-2"},TX={class:"text-sm text-gray-500"},CX={class:"mt-5 sm:mt-4 sm:flex sm:flex-row-reverse"};function OX(e,t,n,r,o,i){const l=q("podlove-button"),a=q("exclamation-icon"),c=q("DialogTitle"),d=q("modal");return e.state.transcripts.length>0?(I(),F("div",wX,[z(l,{variant:"secondary",size:"small",onClick:t[0]||(t[0]=p=>e.openModal())},{default:_e(()=>[Be("Clear")]),_:1}),z(d,{open:e.modalVisible,onClose:t[3]||(t[3]=p=>e.closeModal())},{default:_e(()=>[m("div",SX,[m("div",EX,[z(a,{class:"h-6 w-6 text-red-600","aria-hidden":"true"})]),m("div",$X,[z(c,{as:"h3",class:"text-lg leading-6 font-medium text-gray-900"},{default:_e(()=>[Be(" Clear Transcript ")]),_:1}),m("div",xX,[m("p",TX,L(e.__("Are you sure you want to clear your transcript?","podlove-podcasting-plugin-for-wordpress")),1)])])]),m("div",CX,[z(l,{class:"sm:ml-3 sm:w-auto sm:text-sm",variant:"danger",onClick:t[1]||(t[1]=p=>e.deleteTranscripts())},{default:_e(()=>[Be(L(e.__("Clear","podlove-podcasting-plugin-for-wordpress")),1)]),_:1}),z(l,{class:"sm:ml-3 sm:w-auto sm:text-sm",onClick:t[2]||(t[2]=p=>e.closeModal())},{default:_e(()=>[Be(L(e.__("Cancel","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})])]),_:1},8,["open"])])):Te("",!0)}const AX=Le(bX,[["render",OX]]),kX=ge({components:{Module:In,TabsContainer:zT,Tab:HT,TranscriptsList:eX,TranscriptsVoices:cX,TranscriptsExport:_X,TranscriptsDelete:AX},setup(){return{dispatch:Ze().dispatch}},created(){this.dispatch(FE()),this.dispatch(VM())}});function IX(e,t,n,r,o,i){const l=q("transcripts-voices"),a=q("transcripts-export"),c=q("transcripts-delete"),d=q("transcripts-list"),p=q("module");return I(),Ye(p,{name:"transcript",title:e.__("Transcripts","podlove-podcasting-plugin-for-wordpress")},{actions:_e(()=>[z(l,{class:"mr-1"}),z(a,{class:"mr-1"}),z(c)]),default:_e(()=>[z(d)]),_:1},8,["title"])}const PX=Le(kX,[["render",IX]]);function rC(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"fill-rule":"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12Zm13.36-1.814a.75.75 0 1 0-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 0 0-1.06 1.06l2.25 2.25a.75.75 0 0 0 1.14-.094l3.75-5.25Z","clip-rule":"evenodd"})])}function hf(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"fill-rule":"evenodd",d:"M19.916 4.626a.75.75 0 0 1 .208 1.04l-9 13.5a.75.75 0 0 1-1.154.114l-6-6a.75.75 0 0 1 1.06-1.06l5.353 5.353 8.493-12.74a.75.75 0 0 1 1.04-.207Z","clip-rule":"evenodd"})])}function mf(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"fill-rule":"evenodd",d:"M11.47 4.72a.75.75 0 0 1 1.06 0l3.75 3.75a.75.75 0 0 1-1.06 1.06L12 6.31 8.78 9.53a.75.75 0 0 1-1.06-1.06l3.75-3.75Zm-3.75 9.75a.75.75 0 0 1 1.06 0L12 17.69l3.22-3.22a.75.75 0 1 1 1.06 1.06l-3.75 3.75a.75.75 0 0 1-1.06 0l-3.75-3.75a.75.75 0 0 1 0-1.06Z","clip-rule":"evenodd"})])}function RX(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"fill-rule":"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003ZM12 8.25a.75.75 0 0 1 .75.75v3.75a.75.75 0 0 1-1.5 0V9a.75.75 0 0 1 .75-.75Zm0 8.25a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z","clip-rule":"evenodd"})])}function LX(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"fill-rule":"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12Zm8.706-1.442c1.146-.573 2.437.463 2.126 1.706l-.709 2.836.042-.02a.75.75 0 0 1 .67 1.34l-.04.022c-1.147.573-2.438-.463-2.127-1.706l.71-2.836-.042.02a.75.75 0 1 1-.671-1.34l.041-.022ZM12 9a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z","clip-rule":"evenodd"})])}function Iv(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"fill-rule":"evenodd",d:"M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25Zm-1.72 6.97a.75.75 0 1 0-1.06 1.06L10.94 12l-1.72 1.72a.75.75 0 1 0 1.06 1.06L12 13.06l1.72 1.72a.75.75 0 1 0 1.06-1.06L13.06 12l1.72-1.72a.75.75 0 1 0-1.06-1.06L12 10.94l-1.72-1.72Z","clip-rule":"evenodd"})])}const FX=ge({props:["file_key","track_index"],components:{Listbox:gv,ListboxButton:yv,ListboxLabel:vv,ListboxOption:bv,ListboxOptions:_v,CheckIcon:hf,SelectorIcon:mf,DocumentCheckIcon:FV},setup(){return{state:ut({services:B.auphonic.incomingServices,serviceFiles:B.auphonic.serviceFiles,fileSelections:B.auphonic.fileSelections,episodeSlug:B.episode.slug}),dispatch:Ze().dispatch}},methods:{set(e,t){this.dispatch(S$({key:this.file_key,prop:e,value:t})),Number.isInteger(this.track_index)&&this.dispatch($$({track:{},index:this.track_index}))},handleFileSelection(e){this.set("fileSelection",e.target.value)},handleUrlUpdate(e){this.set("urlValue",e.target.value)},handleFileUploadSelection(e){const t=e.target.files;t?this.set("fileValue",t[0]):this.set("fileValue",null)},handleServiceSelection(e){this.set("currentServiceSelection",e.target.value)},setEpisodeSlug(e){this.dispatch(bt({prop:"slug",value:e})),this.dispatch(W$())}},computed:{services(){return this.state.services},currentService(){return this.state.services.find(e=>e.uuid===this.currentServiceSelection)},serviceFiles(){return Y.get(this.state,["serviceFiles",this.currentServiceSelection],null)},fileSelection(){return this.state.fileSelections[this.file_key]},filenameSelectedForUpload(){var e,t;return(t=(e=this.fileSelection)==null?void 0:e.fileValue)==null?void 0:t.name},currentServiceSelection(){var e;return(e=this.fileSelection)==null?void 0:e.currentServiceSelection},urlFieldValue(){return this.fileSelection.urlValue},externalFileFieldValue(){return this.fileSelection.fileSelection},slugCandidate(){if(this.currentServiceSelection=="url"&&this.urlFieldValue)return this.urlFieldValue.split("/").reverse()[0].split(".")[0];if(this.currentServiceSelection=="file"){const e=this.filenameSelectedForUpload;return e?e.split(".")[0]:null}return null},shouldSuggestSlug(){return this.slugCandidate!=null&&this.slugCandidate!=this.state.episodeSlug}}}),NX={class:"flex flex-col gap-2"},MX=m("label",{class:"block md:hidden text-sm font-medium text-gray-700"},"Upload Method",-1),DX=["value","selected"],UX={key:0},BX={key:0},jX=["for"],VX={class:"sm:mt-1 rounded-md bg-indigo-50 px-3 py-2 text-sm font-semibold text-indigo-600 shadow-sm hover:bg-indigo-100"},HX={key:0,class:"sm:mt-1 text-sm font-normal"},zX=["id"],WX={key:1},qX=["for"],KX={class:"mt-1"},GX=["id","value"],XX={key:2},YX={key:0},JX=["for"],ZX=["id","value"],QX=["value"],eY={key:1},tY={key:3,class:"mt-3"},nY={class:"font-mono"};function rY(e,t,n,r,o,i){const l=q("DocumentCheckIcon");return I(),F("div",null,[m("div",NX,[m("div",null,[MX,m("select",{onChange:t[0]||(t[0]=(...a)=>e.handleServiceSelection&&e.handleServiceSelection(...a)),class:"mt-1 block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm rounded-md"},[(I(!0),F(Me,null,Ot(e.services,a=>(I(),F("option",{key:a.uuid,value:a.uuid,selected:a.uuid==e.currentServiceSelection},L(a.type)+": "+L(a.display_name),9,DX))),128))],32)]),e.currentService?(I(),F("div",UX,[e.currentService.type==="file"?(I(),F("div",BX,[m("label",{for:e.file_key+"file-upload",class:"relative flex items-center gap-2 cursor-pointer bg-white rounded-md font-medium text-indigo-600 hover:text-indigo-500 focus-within:outline-none"},[m("div",VX,L(e.__("Choose File","podlove-podcasting-plugin-for-wordpress")),1),e.filenameSelectedForUpload?(I(),F("div",HX,[Be(L(e.__("Selected for Upload:","podlove-podcasting-plugin-for-wordpress"))+" ",1),m("span",null,L(e.filenameSelectedForUpload),1)])):Te("",!0),m("input",{id:e.file_key+"file-upload",name:"file-upload",type:"file",class:"sr-only",onInput:t[1]||(t[1]=(...a)=>e.handleFileUploadSelection&&e.handleFileUploadSelection(...a))},null,40,zX)],8,jX)])):e.currentService.type==="url"?(I(),F("div",WX,[m("label",{for:e.file_key+"audio_source_url",class:"block text-sm font-medium text-gray-700"},"File URL",8,qX),m("div",KX,[m("input",{type:"url",name:"audio_source_url",id:e.file_key+"audio_source_url",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",placeholder:"https://example.com/audio.flac",value:e.urlFieldValue,onInput:t[2]||(t[2]=(...a)=>e.handleUrlUpdate&&e.handleUrlUpdate(...a))},null,40,GX)])])):(I(),F("div",XX,[e.serviceFiles!==null?(I(),F("div",YX,[m("label",{for:e.file_key+"external_file",class:"block text-sm font-medium text-gray-700"},"File",8,JX),m("select",{name:"audio_external_file",id:e.file_key+"external_file",class:"mt-1 block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm rounded-md",value:e.externalFileFieldValue,onChange:t[3]||(t[3]=(...a)=>e.handleFileSelection&&e.handleFileSelection(...a))},[(I(!0),F(Me,null,Ot(e.serviceFiles,a=>(I(),F("option",{key:a,value:a,d:""},L(a),9,QX))),128))],40,ZX)])):(I(),F("div",eY,"..."))])),e.shouldSuggestSlug?(I(),F("div",tY,[m("button",{onClick:t[4]||(t[4]=()=>e.setEpisodeSlug(e.slugCandidate)),type:"button",class:"relative text-xs inline-flex items-center rounded-md bg-white px-3 py-2 font-medium text-gray-500 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50"},[z(l,{class:"-ml-0.5 mr-1.5 h-4 w-4 text-gray-400","aria-hidden":"true"}),m("span",null,[Be(L(e.__("Use as Episode Slug:","podlove-podcasting-plugin-for-wordpress"))+" ",1),m("span",nY,L(e.slugCandidate),1)])])])):Te("",!0)])):Te("",!0)])])}const oY=Le(FX,[["render",rY]]),sY=ge({name:"TransferHeader"}),iY={class:"mb-4"},lY=m("h3",{class:"text-lg font-medium leading-6 text-gray-900"},"PLUS File Storage",-1),aY={class:"mt-1 text-sm text-gray-500"};function uY(e,t,n,r,o,i){return I(),F("div",iY,[lY,m("p",aY,L(e.__("Auphonic files are automatically transferred to PLUS storage.","podlove-podcasting-plugin-for-wordpress")),1)])}const cY=Le(sY,[["render",uY]]),dY=ge({name:"TransferFileItem",components:{ClockIcon:Xx,ArrowPathIcon:nf,CheckCircleIcon:Kx,XCircleIcon:Qx},props:{file:{type:Object,required:!0}},methods:{getFileStatusMessage(e){switch(e.status){case"pending":return"Waiting...";case"processing":return"Transferring...";case"completed":return"Completed";case"failed":return e.message||"Failed";default:return e.message||""}}}}),fY={class:"flex items-center text-sm"},pY={class:"flex-shrink-0 mr-2"},hY={class:"font-medium"};function mY(e,t,n,r,o,i){const l=q("ArrowPathIcon"),a=q("CheckCircleIcon"),c=q("XCircleIcon"),d=q("ClockIcon");return I(),F("li",fY,[m("span",pY,[e.file.status==="processing"?(I(),Ye(l,{key:0,class:"h-4 w-4 text-blue-500 animate-spin"})):e.file.status==="completed"?(I(),Ye(a,{key:1,class:"h-4 w-4 text-green-500"})):e.file.status==="failed"?(I(),Ye(c,{key:2,class:"h-4 w-4 text-red-500"})):(I(),Ye(d,{key:3,class:"h-4 w-4 text-gray-400"}))]),m("span",hY,L(e.file.filename),1),m("span",{class:gt(["ml-2 text-xs",{"text-blue-600":e.file.status==="processing","text-green-600":e.file.status==="completed","text-red-600":e.file.status==="failed","text-gray-500":e.file.status==="pending"}])},L(e.getFileStatusMessage(e.file)),3)])}const oC=Le(dY,[["render",mY]]),gY=ge({name:"TransferFileList",components:{TransferFileItem:oC},props:{files:{type:Array,default:()=>[]},title:{type:String,default:""}}}),vY={key:0},yY={class:"font-medium"},_Y={class:"mt-1 space-y-1"};function bY(e,t,n,r,o,i){const l=q("TransferFileItem");return e.files&&e.files.length>0?(I(),F("div",vY,[m("p",yY,L(e.title),1),m("ul",_Y,[(I(!0),F(Me,null,Ot(e.files,a=>(I(),Ye(l,{key:a.filename,file:a},null,8,["file"]))),128))])])):Te("",!0)}const wY=Le(gY,[["render",bY]]),SY=ge({name:"TransferStatusPanel",components:{ClockIcon:Xx,ArrowPathIcon:nf,CheckCircleIcon:Kx,XCircleIcon:Qx,ExclamationTriangleIcon:lv,TransferFileList:wY,TransferFileItem:oC},props:{status:{type:String,required:!0},files:{type:Array,default:()=>[]},errors:{type:String,default:void 0}},emits:["action"]}),EY={key:0,class:"rounded-md bg-blue-50 p-4"},$Y={class:"flex"},xY={class:"flex-shrink-0"},TY={class:"ml-3"},CY={class:"text-sm font-medium text-blue-800"},OY={class:"mt-2 text-sm text-blue-700"},AY={class:"mt-4"},kY={key:1,class:"rounded-md bg-gray-50 p-4"},IY={class:"flex"},PY={class:"flex-shrink-0"},RY={class:"ml-3"},LY={class:"text-sm font-medium text-gray-800"},FY={class:"mt-2 text-sm text-gray-700"},NY={key:0,class:"mt-3"},MY={class:"space-y-1"},DY={key:2,class:"rounded-md bg-green-50 p-4"},UY={class:"flex"},BY={class:"flex-shrink-0"},jY={class:"ml-3"},VY={class:"text-sm font-medium text-green-800"},HY={class:"mt-2 text-sm text-green-700"},zY={key:3,class:"rounded-md bg-yellow-50 p-4"},WY={class:"flex"},qY={class:"flex-shrink-0"},KY={class:"ml-3"},GY={class:"text-sm font-medium text-yellow-800"},XY={class:"mt-2 text-sm text-yellow-700"},YY={class:"mt-4"},JY={key:4,class:"rounded-md bg-red-50 p-4"},ZY={class:"flex"},QY={class:"flex-shrink-0"},eJ={class:"ml-3"},tJ={class:"text-sm font-medium text-red-800"},nJ={class:"mt-2 text-sm text-red-700"},rJ={key:0,class:"mt-2"},oJ={class:"font-medium"},sJ={class:"text-sm text-red-600"},iJ={key:1,class:"mt-2"},lJ={class:"font-medium"},aJ={class:"mt-1 list-disc list-inside"},uJ={class:"font-medium"},cJ={key:0,class:"text-green-600 ml-2"},dJ={key:1,class:"text-red-600 ml-2"},fJ={class:"mt-4"};function pJ(e,t,n,r,o,i){const l=q("ClockIcon"),a=q("ArrowPathIcon"),c=q("TransferFileItem"),d=q("CheckCircleIcon"),p=q("TransferFileList"),h=q("ExclamationTriangleIcon"),v=q("XCircleIcon");return e.status==="waiting_for_webhook"?(I(),F("div",EY,[m("div",$Y,[m("div",xY,[z(l,{class:"h-5 w-5 text-blue-400","aria-hidden":"true"})]),m("div",TY,[m("h3",CY,L(e.__("Waiting for Transfer","podlove-podcasting-plugin-for-wordpress")),1),m("div",OY,[m("p",null,L(e.__("Files will be transferred automatically when the production is completed.","podlove-podcasting-plugin-for-wordpress")),1)]),m("div",AY,[m("button",{onClick:t[0]||(t[0]=y=>e.$emit("action")),class:"inline-flex items-center rounded-md bg-blue-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-blue-700 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-600"},L(e.__("Transfer Now","podlove-podcasting-plugin-for-wordpress")),1)])])])])):e.status==="in_progress"?(I(),F("div",kY,[m("div",IY,[m("div",PY,[z(a,{class:"h-5 w-5 text-gray-400 animate-spin","aria-hidden":"true"})]),m("div",RY,[m("h3",LY,L(e.__("Transferring Files","podlove-podcasting-plugin-for-wordpress")),1),m("div",FY,[m("p",null,L(e.__("Files are being transferred to PLUS storage...","podlove-podcasting-plugin-for-wordpress")),1),e.files&&e.files.length>0?(I(),F("div",NY,[m("ul",MY,[(I(!0),F(Me,null,Ot(e.files,y=>(I(),Ye(c,{key:y.filename,file:y},null,8,["file"]))),128))])])):Te("",!0)])])])])):e.status==="completed"?(I(),F("div",DY,[m("div",UY,[m("div",BY,[z(d,{class:"h-5 w-5 text-green-400","aria-hidden":"true"})]),m("div",jY,[m("h3",VY,L(e.__("Transfer Complete","podlove-podcasting-plugin-for-wordpress")),1),m("div",HY,[m("p",null,L(e.__("All files have been transferred successfully to PLUS storage.","podlove-podcasting-plugin-for-wordpress")),1),e.files&&e.files.length>0?(I(),Ye(p,{key:0,files:e.files,title:e.__("Transferred files:","podlove-podcasting-plugin-for-wordpress"),class:"mt-2"},null,8,["files","title"])):Te("",!0)])])])])):e.status==="completed_with_errors"?(I(),F("div",zY,[m("div",WY,[m("div",qY,[z(h,{class:"h-5 w-5 text-yellow-400","aria-hidden":"true"})]),m("div",KY,[m("h3",GY,L(e.__("Transfer Completed with Errors","podlove-podcasting-plugin-for-wordpress")),1),m("div",XY,[m("p",null,L(e.__("Some files were transferred successfully, but others failed.","podlove-podcasting-plugin-for-wordpress")),1),e.files&&e.files.length>0?(I(),Ye(p,{key:0,files:e.files,title:e.__("File transfer results:","podlove-podcasting-plugin-for-wordpress"),class:"mt-2"},null,8,["files","title"])):Te("",!0)]),m("div",YY,[m("button",{onClick:t[1]||(t[1]=y=>e.$emit("action")),class:"inline-flex items-center rounded-md bg-yellow-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-yellow-700 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-yellow-600"},L(e.__("Retry Failed Transfers","podlove-podcasting-plugin-for-wordpress")),1)])])])])):e.status==="failed"?(I(),F("div",JY,[m("div",ZY,[m("div",QY,[z(v,{class:"h-5 w-5 text-red-400","aria-hidden":"true"})]),m("div",eJ,[m("h3",tJ,L(e.__("Transfer Failed","podlove-podcasting-plugin-for-wordpress")),1),m("div",nJ,[m("p",null,L(e.__("Some files failed to transfer to PLUS storage.","podlove-podcasting-plugin-for-wordpress")),1),e.errors?(I(),F("div",rJ,[m("p",oJ,L(e.__("Error details:","podlove-podcasting-plugin-for-wordpress")),1),m("p",sJ,L(e.errors),1)])):Te("",!0),e.files&&e.files.length>0?(I(),F("div",iJ,[m("p",lJ,L(e.__("File transfer results:","podlove-podcasting-plugin-for-wordpress")),1),m("ul",aJ,[(I(!0),F(Me,null,Ot(e.files,y=>(I(),F("li",{key:y.filename,class:"text-sm"},[m("span",uJ,L(y.filename),1),y.success?(I(),F("span",cJ,"✓")):(I(),F("span",dJ,"✗ "+L(y.message),1))]))),128))])])):Te("",!0)]),m("div",fJ,[m("button",{onClick:t[2]||(t[2]=y=>e.$emit("action")),class:"inline-flex items-center rounded-md bg-red-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-red-700 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-red-600"},L(e.__("Retry Transfer","podlove-podcasting-plugin-for-wordpress")),1)])])])])):Te("",!0)}const hJ=Le(SY,[["render",pJ]]),mJ=ge({name:"PlusTransferStatus",components:{TransferHeader:cY,TransferStatusPanel:hJ},setup(){return{state:ut({production:B.auphonic.production,plusTransferStatus:B.auphonic.plusTransferStatus,plusTransferFiles:B.auphonic.plusTransferFiles,plusTransferErrors:B.auphonic.plusTransferErrors}),dispatch:Ze().dispatch}},mounted(){this.loadPlusTransferStatus()},methods:{loadPlusTransferStatus(){this.production.uuid&&this.dispatch(B8({production_uuid:this.production.uuid}))},triggerManualTransfer(){this.production.uuid&&this.dispatch(T$({production_uuid:this.production.uuid}))},refreshEpisodeData(){this.dispatch(rD())}},computed:{production(){return this.state.production||{}},plusTransferStatus(){return this.state.plusTransferStatus},plusTransferFiles(){return this.state.plusTransferFiles},plusTransferErrors(){return this.state.plusTransferErrors},showPlusTransferStatus(){return this.production.status===3}}}),gJ={key:0,class:"mt-4 overflow-hidden rounded-lg bg-white shadow"},vJ={class:"p-6"};function yJ(e,t,n,r,o,i){const l=q("TransferHeader"),a=q("TransferStatusPanel");return e.showPlusTransferStatus?(I(),F("div",gJ,[m("div",vJ,[z(l),z(a,{status:e.plusTransferStatus||"waiting_for_webhook",files:e.plusTransferFiles,errors:e.plusTransferErrors,onAction:e.triggerManualTransfer},null,8,["status","files","errors","onAction"])])])):Te("",!0)}const _J=Le(mJ,[["render",yJ]]),bJ=ge({components:{ClipboardCheckIcon:PV,ExternalLinkIcon:qx,ExclamationIcon:lv,PlusTransferStatus:_J},setup(){return{state:ut({production:B.auphonic.production,title:B.episode.title,subtitle:B.episode.subtitle,summary:B.episode.summary,duration:B.episode.duration,slug:B.episode.slug,license_name:B.episode.license_name,license_url:B.episode.license_url,chapters:B.chapters.list,episodeId:B.episode.id,plusFeatures:B.plus.features}),dispatch:Ze().dispatch}},created(){this.dispatch(qd())},methods:{isDifferent(e){switch(e.title){case"chapters":const t=e.here.map(r=>r.start+(r.title||"")+(r.href||"")+(r.image||"")).join(";"),n=e.there.map(r=>Math.round((r.start_output_sec||0)*1e3)+(r.title||"")+(r.url||"")+(r.image||"")).join(";");return t!=n;default:return e.there!=e.here}},renderEntryPreview(e){switch(e.title){case"chapters":return e.there.map(n=>n.start+" "+n.title).join(" / ");default:return e.there}},importMeta(e,t){switch(e){case"chapters":const r=t.map(o=>({start:Math.round((o.start_output_sec||0)*1e3),title:o.title||"",href:o.url||"",image:""}));this.dispatch(pE(r));break;default:this.dispatch(bt({prop:e,value:t}));break}},importAllMeta(){this.visibleEntries.forEach(e=>{this.importMeta(e.title,e.there)})}},computed:{production(){return this.state.production||{}},entries(){const e=this.state.production,t=this.state;return[{key:1,title:"title",here:t.title,there:e.metadata.title},{key:2,title:"subtitle",here:t.subtitle,there:e.metadata.subtitle},{key:3,title:"summary",here:t.summary,there:e.metadata.summary},{key:5,title:"license_name",here:t.license_name,there:e.metadata.license},{key:6,title:"license_url",here:t.license_url,there:e.metadata.license_url},{key:9,title:"slug",here:t.slug,there:e.output_basename},{key:10,title:"chapters",here:t.chapters,there:e.chapters}]},visibleEntries(){return this.entries.filter(e=>e.there&&this.isDifferent(e))},plusFileStorageEnabled(){return this.state.plusFeatures.fileStorage}}}),wJ={key:0,class:"rounded-md bg-green-50 p-4"},SJ={class:"flex"},EJ={class:"flex-shrink-0"},$J={class:"ml-3"},xJ={class:"text-sm font-medium text-green-800"},TJ={class:"mt-2 text-sm text-green-700"},CJ=["href"],OJ={key:1,class:"rounded-md bg-yellow-50 p-4 mt-4"},AJ={class:"flex"},kJ={class:"flex-shrink-0"},IJ={class:"ml-3"},PJ={class:"text-sm font-medium text-yellow-800"},RJ={class:"mt-2 text-sm text-yellow-700"},LJ={key:3,class:"mt-4 overflow-hidden rounded-lg bg-white shadow"},FJ={class:"p-6"},NJ=m("h3",{class:"text-lg font-medium leading-6 text-gray-900"},"Import Metadata",-1),MJ={class:"mt-1 text-sm text-gray-500"},DJ={class:"mt-6 flow-root"},UJ={role:"list",class:"-my-5 divide-y divide-gray-200"},BJ={class:"flex items-center space-x-4"},jJ={class:"min-w-0 flex-1"},VJ={class:"truncate text-sm text-gray-500"},HJ={class:"truncate text-sm font-medium text-gray-900"},zJ=["onClick"],WJ={class:"hidden sm:inline"},qJ={class:"mt-6"},KJ={key:4,class:"mt-4 overflow-hidden rounded-lg bg-white shadow"},GJ={class:"p-6"};function XJ(e,t,n,r,o,i){const l=q("ClipboardCheckIcon"),a=q("ExternalLinkIcon"),c=q("ExclamationIcon"),d=q("PlusTransferStatus");return I(),F("div",null,[e.production.status==3?(I(),F("div",wJ,[m("div",SJ,[m("div",EJ,[z(l,{class:"h-5 w-5 text-green-400","aria-hidden":"true"})]),m("div",$J,[m("h3",xJ,L(e.__("Done","podlove-podcasting-plugin-for-wordpress")),1),m("div",TJ,[m("p",null,[m("a",{href:e.production.status_page,target:"_blank",class:"underline inline-flex items-center"},[Be(L(e.__("View Results","podlove-podcasting-plugin-for-wordpress"))+" ",1),z(a,{class:"ml-0.5 mr-1 h-4 w-4","aria-hidden":"true"})],8,CJ),Be(" "+L(e.__("on the Auphonic status page.","podlove-podcasting-plugin-for-wordpress")),1)])])])])])):Te("",!0),e.production.warning_message?(I(),F("div",OJ,[m("div",AJ,[m("div",kJ,[z(c,{class:"h-5 w-5 text-yellow-400","aria-hidden":"true"})]),m("div",IJ,[m("h3",PJ,L(e.__("Warning","podlove-podcasting-plugin-for-wordpress")),1),m("div",RJ,[m("p",null,L(e.production.warning_message),1)])])])])):Te("",!0),e.plusFileStorageEnabled?(I(),Ye(d,{key:2})):Te("",!0),e.visibleEntries.length>0?(I(),F("div",LJ,[m("div",FJ,[m("div",null,[NJ,m("p",MJ,L(e.__("These values from your Auphonic Production differ from your local values:","podlove-podcasting-plugin-for-wordpress")),1)]),m("div",DJ,[m("ul",UJ,[(I(!0),F(Me,null,Ot(e.visibleEntries,p=>(I(),F("li",{key:p.key,class:"py-4"},[m("div",BJ,[m("div",jJ,[m("p",VJ,[m("em",null,L(p.title),1),Be(" "+L(e.__("in the Auphonic Production is:","podlove-podcasting-plugin-for-wordpress")),1)]),m("p",HJ,L(e.renderEntryPreview(p)),1)]),m("div",null,[m("button",{onClick:va(h=>e.importMeta(p.title,p.there),["prevent"]),class:"inline-flex items-center rounded-full border border-gray-300 bg-white px-2.5 py-0.5 text-sm font-medium leading-5 text-gray-700 shadow-sm hover:bg-gray-50","aria-label":"Import from Auphonic"},[Be(L(e.__("Import","podlove-podcasting-plugin-for-wordpress")),1),m("span",WJ," "+L(e.__("from Auphonic","podlove-podcasting-plugin-for-wordpress")),1)],8,zJ)])])]))),128))])]),m("div",qJ,[m("button",{onClick:t[0]||(t[0]=va((...p)=>e.importAllMeta&&e.importAllMeta(...p),["prevent"])),class:"flex w-full items-center justify-center rounded-md border border-gray-300 bg-white px-4 py-2 text-sm font-medium text-gray-700 shadow-sm hover:bg-gray-50"},L(e.__("Import all from Auphonic","podlove-podcasting-plugin-for-wordpress")),1)])])])):(I(),F("div",KJ,[m("div",GJ,L(e.__("Nothing to import","podlove-podcasting-plugin-for-wordpress")),1)]))])}const YJ=Le(bJ,[["render",XJ]]),JJ=ge({components:{Switch:DT,SwitchGroup:sz,SwitchLabel:iz},data(){return{enabled:!1}},methods:{handleUpdate(e){this.enabled=e,this.dispatch(x$(e))}},setup(){return{state:ut({publishWhenDone:B.auphonic.publishWhenDone}),dispatch:Ze().dispatch}},mounted(){this.enabled=this.state.publishWhenDone}}),ZJ={class:"text-sm text-gray-900"};function QJ(e,t,n,r,o,i){const l=q("Switch"),a=q("SwitchLabel"),c=q("SwitchGroup");return I(),F("div",null,[z(c,{as:"div",class:"flex items-center"},{default:_e(()=>[z(l,{modelValue:e.enabled,"onUpdate:modelValue":e.handleUpdate,class:gt([e.enabled?"bg-indigo-600":"bg-gray-200","relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"])},{default:_e(()=>[m("span",{"aria-hidden":"true",class:gt([e.enabled?"translate-x-5":"translate-x-0","pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out"])},null,2)]),_:1},8,["modelValue","onUpdate:modelValue","class"]),z(a,{as:"span",class:"ml-3"},{default:_e(()=>[m("span",ZJ,L(e.__("Publish Episode when Production is done","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})]),_:1})])}const eZ=Le(JJ,[["render",QJ]]),tZ=ge({props:{className:{type:String,default:""}}}),nZ=m("g",{transform:"translate(-12.73496,-48.464)"},[m("path",{d:"m 28.623,223.469 c -3.277,-0.007 -7.473,0.836 -12.588,2.528 l 1.46,6.491 c 3.476,-1.302 6.689,-1.95 9.638,-1.944 3.472,0.008 5.797,0.63 6.975,1.868 1.176,1.237 1.762,3.569 1.754,6.998 l -7.373,-0.017 c -5.047,-0.011 -8.933,1.031 -11.655,3.125 -2.725,2.092 -4.091,5.007 -4.099,8.739 -0.008,3.334 1.198,6.07 3.618,8.207 2.419,2.14 5.661,3.212 9.726,3.221 4.389,0.01 8.063,-1.161 11.017,-3.512 l 1.075,2.655 7.471,0.017 0.052,-23.199 c 0.011,-4.848 -1.243,-8.587 -3.759,-11.214 -2.519,-2.628 -6.956,-3.949 -13.312,-3.963 z m 7.6,30 c -0.33,0.195 -0.92,0.505 -1.772,0.929 -0.853,0.424 -1.738,0.734 -2.656,0.929 -0.92,0.193 -2.033,0.29 -3.343,0.287 -1.966,-0.004 -3.506,-0.443 -4.618,-1.314 -1.113,-0.873 -1.666,-2.08 -1.663,-3.618 0.007,-3.079 2.467,-4.611 7.382,-4.601 4.916,0.011 6.685,0.006 6.685,0.006 l -0.015,7.382 z m 41.315,-29.3 9.241,0.021 -0.084,37.845 -6.489,-0.014 -1.173,-2.754 c -2.494,1.173 -5.743,3.524 -12.295,3.51 -5.701,-0.013 -13.761,-0.336 -13.723,-17.135 l 0.048,-21.527 9.339,0.021 -0.051,22.806 c -0.013,5.661 2.719,7.772 6.863,7.781 2.883,0.007 5.638,-0.74 8.262,-2.243 l 0.062,-28.311 z m 44.305,1.377 c -2.751,-1.251 -5.502,-1.88 -8.254,-1.887 -3.801,-0.008 -7.539,1 -11.212,3.023 l -1.076,-2.46 -6.586,-0.015 -0.111,49.679 9.436,0.021 0.029,-13.013 c 1.505,0.659 4.534,1.975 8.154,1.983 6.096,0.014 10.833,-1.728 14.215,-5.226 3.385,-3.498 5.083,-8.296 5.097,-14.391 0.011,-4.719 -0.914,-8.538 -2.776,-11.458 -1.863,-2.918 -4.166,-5.005 -6.916,-6.256 z m -3.061,27.173 c -2.066,1.863 -4.772,2.792 -8.114,2.784 -2.425,-0.005 -4.587,-0.633 -6.484,-1.883 l 0.047,-21.135 c 2.098,-0.912 4.36,-1.367 6.786,-1.362 7.274,0.017 10.902,4.219 10.884,12.608 -0.01,4.129 -1.049,7.124 -3.119,8.988 z m 53.325,-12.021 -0.048,21.43 -9.437,-0.021 0.051,-22.708 c 0.005,-2.293 -0.45,-4.145 -1.363,-5.557 -0.917,-1.411 -2.717,-2.12 -5.402,-2.125 -2.427,-0.005 -5.408,0.676 -8.949,2.044 l -0.063,28.311 -9.437,-0.021 0.111,-49.608 9.436,0.021 -0.03,13.827 c 3.935,-1.628 7.736,-2.441 11.406,-2.433 5.636,0.012 13.762,0.659 13.725,16.84 z m 92.456,-16.111 9.437,0.021 -0.084,37.747 -9.437,-0.021 0.084,-37.747 z m 46.696,29.103 2.643,6.102 c -1.97,1.11 -4.085,1.99 -6.347,2.639 -2.263,0.649 -4.969,0.972 -8.113,0.965 -5.898,-0.013 -10.629,-1.825 -14.192,-5.438 -3.564,-3.611 -5.337,-8.368 -5.324,-14.266 0.014,-6.095 1.793,-10.891 5.339,-14.389 3.547,-3.497 8.302,-5.241 14.266,-5.228 3.014,0.006 5.586,0.307 7.715,0.901 2.127,0.595 4.371,1.453 6.729,2.571 l -2.67,6.187 c -2.356,-0.792 -4.208,-1.369 -5.548,-1.732 -1.345,-0.363 -2.9,-0.547 -4.67,-0.551 -3.735,-0.008 -6.572,1.1 -8.509,3.323 -1.938,2.224 -2.912,5.203 -2.921,8.938 -0.008,3.605 1,6.54 3.028,8.805 2.024,2.266 4.809,3.403 8.347,3.412 1.77,0.004 3.326,-0.173 4.673,-0.531 1.339,-0.356 3.193,-0.926 5.554,-1.708 z m -53.79,-12.801 -0.048,21.43 -9.338,-0.021 0.05,-22.609 c 0.016,-7.021 -4.21,-7.677 -6.766,-7.683 -2.295,-0.005 -5.344,0.676 -9.146,2.044 l -0.062,28.212 -9.339,-0.021 0.084,-37.747 6.683,0.015 1.175,2.755 c 4.462,-2.152 8.818,-3.225 13.081,-3.215 4.405,0.01 13.663,0.163 13.626,16.84 z m -59.894,-17.042 c -5.898,-0.013 -10.62,1.731 -14.167,5.227 -3.545,3.499 -5.327,8.294 -5.341,14.389 -0.009,3.801 0.784,7.178 2.385,10.131 1.6,2.953 3.854,5.268 6.769,6.946 2.913,1.676 6.301,2.52 10.169,2.528 3.866,0.009 7.274,-0.82 10.228,-2.483 2.955,-1.665 5.234,-3.969 6.848,-6.915 1.612,-2.946 2.423,-6.351 2.432,-10.218 0.013,-5.963 -1.73,-10.719 -5.228,-14.265 -3.5,-3.546 -8.195,-5.327 -14.095,-5.34 z m 6.866,28.62 c -1.809,2.095 -4.152,3.137 -7.035,3.131 -2.753,-0.006 -5.047,-1.076 -6.874,-3.21 -1.831,-2.133 -2.741,-5.102 -2.732,-8.903 0.008,-3.866 0.949,-6.879 2.821,-9.037 1.872,-2.159 4.15,-3.235 6.84,-3.229 2.752,0.006 5.059,1.077 6.922,3.21 1.862,2.134 2.791,5.167 2.783,9.099 -0.009,3.868 -0.918,6.848 -2.725,8.939 z"}),m("path",{d:"M 53.464,198.261 H 13.619 c 0,-0.001 0,-0.004 0,-0.006 0,-82.727 67.065,-149.791 149.788,-149.791 82.729,0 149.794,67.063 149.794,149.791 0,0.002 0,0.005 0,0.006 h -39.844 c 0.006,-0.435 0.017,-0.869 0.017,-1.306 0,-60.731 -49.234,-109.963 -109.967,-109.963 -60.727,0 -109.959,49.232 -109.959,109.963 -10e-4,0.437 0.011,0.871 0.016,1.306 z m 189.059,0 c 0.019,-0.705 0.053,-1.407 0.053,-2.117 0,-43.723 -35.444,-79.167 -79.167,-79.167 -43.722,0 -79.166,35.445 -79.166,79.167 0,0.71 0.035,1.412 0.054,2.117 h 39.67 c -0.085,-1.047 -0.14,-2.103 -0.14,-3.172 0,-21.861 17.721,-39.584 39.582,-39.584 21.862,0 39.583,17.723 39.583,39.584 0,1.069 -0.055,2.125 -0.139,3.172 h 39.67 z"})],-1),rZ=[nZ];function oZ(e,t,n,r,o,i){return I(),F("svg",{class:gt(e.className),viewBox:"0 0 301.24005 225.44299",stroke:"currentColor",fill:"currentColor","aria-hidden":"true"},rZ,2)}const Pv=Le(tZ,[["render",oZ]]),sZ=ge({components:{PodloveButton:Pn,FileChooser:oY,CogIcon:LV,ChevronDownIcon:Gx,ChevronRightIcon:kV,XIcon:ml,DatabaseIcon:IV,ExternalLinkIcon:qx,CloudIcon:Yx,TrashIcon:DV,ArrowDownIcon:Wx,ArrowDownTrayIcon:$V,AuphonicLogo:Pv,DonePage:YJ,WebhookToggle:eZ},data(){return{algorithmSettings:{},showImportPage:!1}},setup(){return{state:ut({production:B.auphonic.production,tracks:B.auphonic.tracks,isSaving:B.auphonic.isSaving,progress:e=>t=>B.progress.progress(e,t)}),dispatch:Ze().dispatch}},methods:{saveProduction(){this.dispatch(_$({uuid:this.production.uuid}))},startProduction(){this.dispatch(b$({uuid:this.production.uuid}))},deselectProduction(){this.dispatch(v$())},addTrack(){this.dispatch(N8())},removeTrack(e){this.dispatch(E$(e))},updateTrack(e,t,n){this.dispatch($$({track:{[e]:t},index:n}))},algorithmSettingsVisible(e){return!0},toggleAlgorithmSettingVisible(e){this.algorithmSettings[e]=!Y.get(this.algorithmSettings,e,!1)},handleSelectForeBackground(e,t){this.updateTrack("fore_background",e.target.value,t)},handleToggleNoiseHum(e,t){this.updateTrack("noise_and_hum_reduction",e.target.checked,t)},handleToggleFiltering(e,t){this.updateTrack("filtering",e.target.checked,t)},handleUpdateIdentifier(e,t){this.updateTrack("identifier_new",e.target.value,t)},uploadProgress(e){return this.state.progress(e)||null}},computed:{production(){return this.state.production||{}},isSaving(){return this.state.isSaving},showProcessingScreen(){return[1,4,5,6,7,8,12,13,14].includes(this.production.status)},showUploadScreen(){return this.production.status===0},showTrackEditor(){return[9,10,11].includes(this.production.status)},tracks(){return this.state.tracks||[]},isMultitrack(){return this.state.production&&this.state.production.is_multitrack}}}),iZ={class:"pb-5 space-y-4"},lZ={class:"space-y-8"},aZ={class:"bg-white px-4 sm:px-6"},uZ={class:"-ml-4 -mt-4 flex flex-wrap items-center justify-between sm:flex-nowrap"},cZ={class:"ml-4 mt-4"},dZ={class:"flex items-center"},fZ={class:"flex-shrink-0"},pZ={class:"ml-4"},hZ={class:"text-base font-semibold leading-6 text-gray-900"},mZ={class:"text-sm text-gray-500"},gZ={class:"ml-4 mt-4 flex items-center space-x-4 text-xs"},vZ={key:0,class:"inline-flex items-center animate-pulse text-green-600"},yZ={key:0},_Z={key:1},bZ={class:"space-y-4"},wZ={key:0},SZ={key:1},EZ={class:"rounded-md bg-indigo-50 p-4"},$Z={class:"flex"},xZ={class:"flex-shrink-0"},TZ={class:"ml-3"},CZ={class:"text-sm font-medium text-indigo-800"},OZ={class:"mt-2 text-sm text-indigo-700"},AZ={key:2},kZ={key:3},IZ={class:"bg-white shadow overflow-hidden rounded-md"},PZ={class:"px-6 pt-4 hidden md:block"},RZ={class:"md:grid md:grid-cols-3 md:gap-12"},LZ={class:"block text-sm font-medium text-gray-700 md:col-span-1"},FZ={class:"block text-sm font-medium text-gray-700 mt-5 md:mt-0 md:col-span-1"},NZ={class:"block text-sm font-medium text-gray-700 mt-5 md:mt-0 md:col-span-1"},MZ=m("div",{class:"block w-8 md:col-span-1"},null,-1),DZ={role:"list",class:"divide-y divide-gray-200"},UZ={class:"md:grid md:grid-cols-3 md:gap-12"},BZ={class:"md:col-span-1"},jZ=["for"],VZ=["id","value","onInput"],HZ={class:"mt-5 md:mt-0 md:col-span-1"},zZ={class:"sm:items-baseline"},WZ={class:"mt-4 sm:mt-0"},qZ={key:0,class:"mt-2 px-3 py-2 bg-gray-100 rounded-md text-sm text-gray-700 break-all"},KZ={key:1},GZ={class:"mt-2","aria-hidden":"true"},XZ={class:"overflow-hidden rounded-full bg-gray-100"},YZ={class:"mt-1 hidden grid-cols-4 text-sm font-medium text-gray-600 sm:grid"},JZ={class:"md:col-span-1"},ZZ={key:0,role:"group",class:"bg-gr"},QZ={class:"sm:items-baseline"},eQ={class:""},tQ={class:"block md:hidden text-sm font-medium text-gray-700 py-2"},nQ={class:"max-w-lg relative"},rQ=["title","onClick"],oQ={class:"space-y-4"},sQ={class:"relative flex items-start"},iQ={class:"flex items-center h-5"},lQ=["id","checked","onInput"],aQ={class:"ml-3 text-sm"},uQ=["for"],cQ={class:"relative flex items-start"},dQ={class:"flex items-center h-5"},fQ=["id","checked","onInput"],pQ={class:"ml-3 text-sm"},hQ=["for"],mQ={class:"relative flex justify-start align-middle items-center gap-3"},gQ={class:"text-sm"},vQ=["for"],yQ=["value","onInput","id"],_Q={value:"auto"},bQ={value:"foreground"},wQ={value:"background"},SQ={value:"ducking"},EQ={value:"unchanged"},$Q={class:"bg-gray-50 px-4 py-4 sm:px-6"},xQ={key:4,class:"grid grid-cols-1 gap-y-6 gap-x-4 sm:grid-cols-6"},TQ={class:"sm:col-span-4"},CQ={class:"text-base font-medium text-gray-900"},OQ={class:"mt-2"},AQ={key:0,class:"mt-2 px-3 py-2 bg-gray-100 rounded-md text-sm text-gray-700 break-all"},kQ={key:1},IQ={class:"mt-2","aria-hidden":"true"},PQ={class:"overflow-hidden rounded-full bg-gray-100"},RQ={class:"mt-1 hidden grid-cols-4 text-sm font-medium text-gray-600 sm:grid"},LQ={class:"pt-5"},FQ={class:"flex flex-col sm:flex-row gap-4 sm:gap-2 justify-between"},NQ={class:"flex justify-end gap-3"},MQ=["href"];function DQ(e,t,n,r,o,i){var C,w,E,O;const l=q("AuphonicLogo"),a=q("CloudIcon"),c=q("ArrowDownTrayIcon"),d=q("XIcon"),p=q("DatabaseIcon"),h=q("DonePage"),v=q("FileChooser"),y=q("TrashIcon"),b=q("podlove-button"),S=q("WebhookToggle"),T=q("ExternalLinkIcon");return I(),F("form",iZ,[m("div",lZ,[m("div",aZ,[m("div",uZ,[m("div",cZ,[m("div",dZ,[m("div",fZ,[z(l,{className:"mx-auto h-12 w-12 text-gray-400"})]),m("div",pZ,[m("h3",hZ,L((w=(C=e.production)==null?void 0:C.metadata)==null?void 0:w.title),1),m("p",mZ,L(new Date(Date.parse((E=e.production)==null?void 0:E.creation_time)).toLocaleString()),1)])])]),m("div",gZ,[e.isSaving?(I(),F("span",vZ,[z(a,{class:"mr-1 h-4 w-4","aria-hidden":"true"}),Be(" "+L(e.__("Saving","podlove-podcasting-plugin-for-wordpress")),1)])):Te("",!0),e.production.status!==3?(I(),F("button",{key:1,onClick:t[0]||(t[0]=$=>e.showImportPage=!e.showImportPage),type:"button",class:"relative inline-flex items-center rounded-md bg-white px-3 py-2 font-medium text-gray-500 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50"},[z(c,{class:"-ml-0.5 mr-1.5 h-4 w-4 text-gray-400","aria-hidden":"true"}),e.showImportPage?(I(),F("span",yZ,L(e.__("Hide Import","podlove-podcasting-plugin-for-wordpress")),1)):Te("",!0),e.showImportPage?Te("",!0):(I(),F("span",_Z,L(e.__("Show Import","podlove-podcasting-plugin-for-wordpress")),1))])):Te("",!0),m("button",{onClick:t[1]||(t[1]=(...$)=>e.deselectProduction&&e.deselectProduction(...$)),type:"button",class:"relative inline-flex items-center rounded-md bg-white px-3 py-2 font-medium text-gray-500 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50"},[z(d,{class:"-ml-0.5 mr-1.5 h-4 w-4 text-gray-400","aria-hidden":"true"}),m("span",null,L(e.__("Deselect Production","podlove-podcasting-plugin-for-wordpress")),1)])])])]),m("div",bZ,[e.showUploadScreen?(I(),F("div",wZ,L(e.__("Uploading...","podlove-podcasting-plugin-for-wordpress")),1)):Te("",!0),e.showProcessingScreen?(I(),F("div",SZ,[m("div",EZ,[m("div",$Z,[m("div",xZ,[z(p,{class:"h-5 w-5 text-indigo-400","aria-hidden":"true"})]),m("div",TZ,[m("h3",CZ,L(e.production.status_string),1),m("div",OZ,[m("p",null,L(e.__("Auphonic is now processing your production. Please wait for it to finish.","podlove-podcasting-plugin-for-wordpress")),1)])])])])])):Te("",!0),e.production.status==3||e.showImportPage?(I(),F("div",AZ,[z(h)])):Te("",!0),e.isMultitrack&&e.showTrackEditor?(I(),F("div",kZ,[m("div",IZ,[m("div",PZ,[m("div",RZ,[m("div",LZ,L(e.__("Track Identifier","podlove-podcasting-plugin-for-wordpress")),1),m("div",FZ,L(e.__("Upload Method","podlove-podcasting-plugin-for-wordpress")),1),m("div",NZ,L(e.__("Algorithm","podlove-podcasting-plugin-for-wordpress")),1),MZ])]),m("ul",DZ,[(I(!0),F(Me,null,Ot(e.tracks,($,P)=>(I(),F("li",{key:`xtrack-${P}`,class:"px-6 py-4"},[m("div",UZ,[m("div",BZ,[m("label",{for:`track-id-${P}`,class:"block md:hidden text-sm font-medium text-gray-700"},L(e.__("Track Identifier","podlove-podcasting-plugin-for-wordpress")),9,jZ),m("input",{id:`track-id-${P}`,type:"text",value:$.identifier_new,onInput:R=>e.handleUpdateIdentifier(R,P),class:"mt-1 max-w-lg block w-full shadow-sm focus:ring-indigo-500 focus:border-indigo-500 sm:max-w-xs sm:text-sm border-gray-300 rounded-md"},null,40,VZ)]),m("div",HZ,[m("div",zZ,[m("div",WZ,[z(v,{track_index:P,file_key:`${e.production.uuid}_t${P}`},null,8,["track_index","file_key"]),$.input_file_name?(I(),F("div",qZ,L(e.__("Uploaded File:","podlove-podcasting-plugin-for-wordpress"))+" "+L($.input_file_name),1)):Te("",!0),e.uploadProgress($.identifier)!=null?(I(),F("div",KZ,[m("div",GZ,[m("div",XZ,[m("div",{class:"h-2 rounded-full bg-indigo-600",style:so({width:e.uploadProgress($.identifier)+"%"})},null,4)]),m("div",YZ,[m("div",null,L(e.uploadProgress($.identifier))+"%",1)])])])):Te("",!0)])])]),m("div",JZ,[e.algorithmSettingsVisible(P)?(I(),F("div",ZZ,[m("div",QZ,[m("div",eQ,[m("div",tQ,L(e.__("Algorithm","podlove-podcasting-plugin-for-wordpress")),1),m("div",nQ,[m("div",{title:e.__("Remove Track","podlove-podcasting-plugin-for-wordpress"),onClick:R=>e.removeTrack($.identifier),class:"absolute z-10 right-0 top-0 cursor-pointer text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500"},[z(y,{class:"h-6 w-6","aria-hidden":"true"})],8,rQ),m("div",oQ,[m("div",sQ,[m("div",iQ,[m("input",{id:`track_${P}_filtering`,type:"checkbox",class:"focus:ring-indigo-500 h-4 w-4 text-indigo-600 border-gray-300 rounded",checked:$.filtering,onInput:R=>e.handleToggleFiltering(R,P)},null,40,lQ)]),m("div",aQ,[m("label",{for:`track_${P}_filtering`,class:"text-gray-700"},L(e.__("Filtering","podlove-podcasting-plugin-for-wordpress")),9,uQ)])]),m("div",null,[m("div",cQ,[m("div",dQ,[m("input",{id:`track_${P}_noisehum`,type:"checkbox",class:"focus:ring-indigo-500 h-4 w-4 text-indigo-600 border-gray-300 rounded",checked:$.noise_and_hum_reduction,onInput:R=>e.handleToggleNoiseHum(R,P)},null,40,fQ)]),m("div",pQ,[m("label",{for:`track_${P}_noisehum`,class:"text-gray-700"},L(e.__("Noise and Hum Reduction","podlove-podcasting-plugin-for-wordpress")),9,hQ)])])]),m("div",null,[m("div",mQ,[m("div",gQ,[m("label",{for:`track_${P}_fgbg`,class:"text-gray-700"},L(e.__("Fore/Background","podlove-podcasting-plugin-for-wordpress")),9,vQ)]),m("select",{value:$.fore_background,onInput:R=>e.handleSelectForeBackground(R,P),id:`track_${P}_fgbg`,class:"mt-1 block w-[168px] pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm rounded-md"},[m("option",_Q,L(e.__("Auto","podlove-podcasting-plugin-for-wordpress")),1),m("option",bQ,L(e.__("Foreground Track","podlove-podcasting-plugin-for-wordpress")),1),m("option",wQ,L(e.__("Background Track","podlove-podcasting-plugin-for-wordpress")),1),m("option",SQ,L(e.__("Duck this Track","podlove-podcasting-plugin-for-wordpress")),1),m("option",EQ,L(e.__("Unchanged (Foreground)","podlove-podcasting-plugin-for-wordpress")),1)],40,yQ)])])])])])])])):Te("",!0)])])]))),128))]),m("div",$Q,[z(b,{variant:"primary",onClick:e.addTrack},{default:_e(()=>[Be(L(e.__("Add Track","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["onClick"])])])])):e.showTrackEditor?(I(),F("div",xQ,[m("fieldset",TQ,[m("legend",CQ,L(e.__("Audio Source","podlove-podcasting-plugin-for-wordpress")),1),m("div",OQ,[z(v,{file_key:e.production.uuid},null,8,["file_key"]),e.production.input_file?(I(),F("div",AQ,[m("span",null,L(e.__("Uploaded File:","podlove-podcasting-plugin-for-wordpress"))+" "+L(e.production.input_file),1)])):Te("",!0),e.uploadProgress("singletrack")!=null?(I(),F("div",kQ,[m("div",IQ,[m("div",PQ,[m("div",{class:"h-2 rounded-full bg-indigo-600",style:so({width:e.uploadProgress("singletrack")+"%"})},null,4)]),m("div",RQ,[m("div",null,L(e.uploadProgress("singletrack"))+"%",1)])])])):Te("",!0)])])])):Te("",!0)])]),m("div",LQ,[m("div",FQ,[z(S),m("div",NQ,[m("a",{href:(O=e.production)==null?void 0:O.edit_page,target:"_blank",class:"inline-flex items-center rounded border border-gray-300 bg-white px-2.5 py-1.5 text-xs font-medium text-gray-500 shadow-sm hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"},[Be(L(e.__("Edit in Auphonic","podlove-podcasting-plugin-for-wordpress"))+" ",1),z(T,{class:"ml-1 -mr-0.5 h-4 w-4","aria-hidden":"true"})],8,MQ),z(b,{variant:e.isSaving?"secondary-disabled":"secondary",onClick:e.saveProduction},{default:_e(()=>[Be(L(e.__("Save Production","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["variant","onClick"]),z(b,{variant:"primary",onClick:e.startProduction},{default:_e(()=>[Be(L(e.__("Start Production","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["onClick"])])])])])}const UQ=Le(sZ,[["render",DQ]]),BQ=ge({components:{Listbox:gv,ListboxButton:yv,ListboxLabel:vv,ListboxOption:bv,ListboxOptions:_v,CheckIcon:hf,SelectorIcon:mf},setup(){return{state:ut({productions:B.auphonic.productions,production:B.auphonic.production}),dispatch:Ze().dispatch}},methods:{setProduction(e){this.dispatch(mi(e))}},computed:{productions(){return this.state.productions.map(e=>{const t=e.creation_time.split("T")[0],n=e.metadata.title;return{...e,_select:{name:n,date:t}}})},currentProduction(){return this.state.production}}}),jQ={class:"mt-1 relative"},VQ={class:"w-full inline-flex truncate"},HQ={key:0,class:"truncate"},zQ={key:1,class:"truncate"},WQ={class:"absolute inset-y-0 right-0 flex items-center pr-2 pointer-events-none"},qQ={class:"flex justify-between"},KQ={class:gt(["font-normal","truncate"])};function GQ(e,t,n,r,o,i){const l=q("ListboxLabel"),a=q("SelectorIcon"),c=q("ListboxButton"),d=q("ListboxOption"),p=q("ListboxOptions"),h=q("Listbox");return I(),Ye(h,{as:"div","onUpdate:modelValue":e.setProduction,value:e.currentProduction},{default:_e(()=>[z(l,{class:"block text-sm font-medium text-gray-600 sr-only"},{default:_e(()=>[Be(L(e.__("Select Existing Production","podlove-podcasting-plugin-for-wordpress")),1)]),_:1}),m("div",jQ,[z(c,{class:"relative w-full bg-white border border-gray-300 rounded-md shadow-sm pl-3 pr-10 py-2 text-left cursor-default focus:outline-none focus:ring-1 focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"},{default:_e(()=>[m("span",VQ,[e.currentProduction?(I(),F("span",HQ,L(e.currentProduction.metadata.title),1)):(I(),F("span",zQ," "))]),m("span",WQ,[z(a,{class:"h-5 w-5 text-gray-400","aria-hidden":"true"})])]),_:1}),z(Cs,{"leave-active-class":"transition ease-in duration-100","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:_e(()=>[z(p,{class:"absolute z-10 mt-1 w-full bg-white shadow-lg max-h-36 rounded-md py-1 text-base ring-1 ring-black ring-opacity-5 overflow-auto focus:outline-none sm:text-sm"},{default:_e(()=>[(I(!0),F(Me,null,Ot(e.productions,v=>(I(),Ye(d,{as:"template",key:v._select.date,value:v},{default:_e(({active:y})=>[m("li",{class:gt([y?"text-white bg-indigo-600":"text-gray-900","cursor-default select-none relative py-2 pl-3 pr-9"])},[m("div",qQ,[m("span",KQ,[m("span",{class:gt([y?"text-indigo-200":"text-gray-500","ml-2 truncate"])},L(v._select.date),3),Be(" "+L(v._select.name),1)]),m("span",{class:gt([y?"text-indigo-200":"text-gray-500","ml-2 truncate flex-shrink-0"])},L(v.status_string),3)])],2)]),_:2},1032,["value"]))),128))]),_:1})]),_:1})])]),_:1},8,["onUpdate:modelValue","value"])}const XQ=Le(BQ,[["render",GQ]]),YQ=ge({components:{Listbox:gv,ListboxButton:yv,ListboxLabel:vv,ListboxOption:bv,ListboxOptions:_v,CheckIcon:hf,SelectorIcon:mf},setup(){return{state:ut({presets:B.auphonic.presets,currentPreset:B.auphonic.preset}),dispatch:Ze().dispatch}},methods:{setPreset(e){this.dispatch(qg(e.uuid))}},computed:{presets(){return this.state.presets.map(e=>{const t=e.creation_time.split("T")[0],n=e.preset_name,r=e.is_multitrack;return{...e,_select:{name:n,date:t,is_multitrack:r}}}).toSorted((e,t)=>{const n=e._select.name.toUpperCase(),r=t._select.name.toUpperCase();return n<r?-1:n>r?1:0})},currentPreset(){const e=this.state.currentPreset;return this.presets.find(t=>t.uuid===e)}}}),JQ={class:"mt-1 relative"},ZQ={class:"w-full inline-flex truncate"},QQ={key:0,class:"truncate"},eee={key:1,class:"truncate"},tee={class:"absolute inset-y-0 right-0 flex items-center pr-2 pointer-events-none"},nee={class:"flex"},ree={class:gt(["font-normal","truncate"])};function oee(e,t,n,r,o,i){const l=q("ListboxLabel"),a=q("SelectorIcon"),c=q("ListboxButton"),d=q("ListboxOption"),p=q("ListboxOptions"),h=q("Listbox");return I(),Ye(h,{as:"div","onUpdate:modelValue":e.setPreset,value:e.currentPreset},{default:_e(()=>[z(l,{class:"block text-sm font-medium text-gray-600 sr-only"},{default:_e(()=>[Be(L(e.__("Select Preset","podlove-podcasting-plugin-for-wordpress")),1)]),_:1}),m("div",JQ,[z(c,{class:"relative w-full bg-white border border-gray-300 rounded-md shadow-sm pl-3 pr-10 py-2 text-left cursor-default focus:outline-none focus:ring-1 focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"},{default:_e(()=>[m("span",ZQ,[e.currentPreset?(I(),F("span",QQ,L(e.currentPreset._select.name),1)):(I(),F("span",eee," "))]),m("span",tee,[z(a,{class:"h-5 w-5 text-gray-400","aria-hidden":"true"})])]),_:1}),z(Cs,{"leave-active-class":"transition ease-in duration-100","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:_e(()=>[z(p,{class:"absolute z-10 mt-1 w-full bg-white shadow-lg max-h-36 rounded-md py-1 text-base ring-1 ring-black ring-opacity-5 overflow-auto focus:outline-none sm:text-sm"},{default:_e(()=>[(I(!0),F(Me,null,Ot(e.presets,v=>(I(),Ye(d,{as:"template",key:v._select.date,value:v},{default:_e(({active:y})=>[m("li",{class:gt([y?"text-white bg-indigo-600":"text-gray-900","cursor-default select-none relative py-2 pl-3 pr-9"])},[m("div",nee,[m("span",ree,L(v._select.name),1),v._select.is_multitrack?(I(),F("span",{key:0,class:gt([y?"text-indigo-200":"text-gray-500","ml-2 truncate"])},L(e.__("Multitrack","podlove-podcasting-plugin-for-wordpress")),3)):Te("",!0)])],2)]),_:2},1032,["value"]))),128))]),_:1})]),_:1})])]),_:1},8,["onUpdate:modelValue","value"])}const see=Le(YQ,[["render",oee]]),iee=ge({components:{Module:In,PodloveButton:Pn,PlusSmIcon:of,RefreshIcon:nf,SelectProduction:XQ,SelectPreset:see,AuphonicLogo:Pv},data(){return{}},setup(){return{state:ut({presetUUID:B.auphonic.preset,presets:B.auphonic.presets,isInitializing:B.auphonic.isInitializing}),dispatch:Ze().dispatch}},methods:{handleCreateProduction(){switch(this.buttonState){case"single":this.createProduction();break;case"multi":this.createMultitrackProduction();break}},createProduction(){this.dispatch(I8())},createMultitrackProduction(){this.dispatch(P8())}},computed:{preset(){return this.state.presets.find(e=>e.uuid===this.state.presetUUID)},isInitializing(){return this.state.isInitializing},buttonState(){return this.preset?this.preset.is_multitrack?"multi":"single":"idle"}}}),lee={class:"m-6 text-center max-w-5xl"},aee={key:0,class:"w-full flex justify-center"},uee={class:"animate-pulse mt-4 flex space-x-4"},cee={class:"mt-1 text-sm text-gray-500"},dee={class:"sm:divide-x sm:divide-gray-200 mt-6 py-6 gap-8 sm:gap-0 grid grid-cols-1 sm:grid-cols-2"},fee={class:"flow-root sm:px-6"},pee={class:"relative -m-2 p-2 flex items-center justify-around space-x-4 rounded-xl hover:bg-gray-50 focus-within:ring-2 focus-within:ring-indigo-500"},hee={class:"text-sm font-medium text-gray-900"},mee={class:"mt-2 sm:mt-8 flex justify-center align-middle content-center items-center gap-3"},gee={class:"w-full max-w-md"},vee={class:"mt-10 flex flex-col justify-center align-middle content-center items-center gap-3"},yee={class:"flow-root sm:px-6"},_ee={class:"relative -m-2 p-2 flex items-center justify-around space-x-4 rounded-xl hover:bg-gray-50 focus-within:ring-2 focus-within:ring-indigo-500"},bee={class:"text-sm font-medium text-gray-900"},wee={class:"mt-2 sm:mt-8 flex justify-center align-middle content-center items-center gap-3"},See={class:"w-full max-w-md"};function Eee(e,t,n,r,o,i){const l=q("AuphonicLogo"),a=q("RefreshIcon"),c=q("SelectPreset"),d=q("plus-sm-icon"),p=q("podlove-button"),h=q("SelectProduction");return I(),F("div",null,[m("div",lee,[z(l,{className:"mx-auto h-16 w-16 text-gray-400"}),e.isInitializing?(I(),F("div",aee,[m("div",uee,[z(a,{class:"animate-spin h-5 w-5 mr-3"}),Be(" "+L(e.__("Loading...","podlove-podcasting-plugin-for-wordpress")),1)])])):Te("",!0),m("div",{class:gt({"text-left":!0,"opacity-0":e.isInitializing})},[m("p",cee,L(e.__("Manage your audio post production with Auphonic. Get started by selecting an existing production or create a new one from an Auphonic preset.","podlove-podcasting-plugin-for-wordpress")),1),m("div",dee,[m("div",fee,[m("div",pee,[m("div",null,[m("h3",hee,L(e.__("Create New Production from Preset","podlove-podcasting-plugin-for-wordpress")),1)])]),m("div",mee,[m("div",gee,[z(c)])]),m("div",vee,[z(p,{disabled:e.buttonState=="idle",variant:e.buttonState=="idle"?"primary-disabled":"primary",onClick:e.handleCreateProduction},{default:_e(()=>[z(d,{class:"-ml-0.5 mr-2 h-4 w-4","aria-hidden":"true"}),Be(" "+L(e.buttonState=="multi"?e.__("Create Multitrack Production","podlove-podcasting-plugin-for-wordpress"):e.__("Create Production","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["disabled","variant","onClick"])])]),m("div",yee,[m("div",_ee,[m("div",null,[m("h3",bee,L(e.__("Select Existing Production","podlove-podcasting-plugin-for-wordpress")),1)])]),m("div",wee,[m("div",See,[z(h)])])])])],2)])])}const $ee=Le(iee,[["render",Eee]]),xee=ge({components:{Module:In,ManageProductionForm:UQ,StartScreen:$ee,AuphonicLogo:Pv},setup(){return{state:ut({productionId:B.auphonic.productionId,isInitializing:B.auphonic.isInitializing}),dispatch:Ze().dispatch}},computed:{productionId(){return this.state.productionId||""},isInitializing(){return this.state.isInitializing},isProductionSelected(){return!!this.productionId}},created(){this.dispatch(O8())}}),Tee={key:0},Cee={key:1,class:"m-7"};function Oee(e,t,n,r,o,i){const l=q("StartScreen"),a=q("ManageProductionForm"),c=q("module");return I(),Ye(c,{name:"auphonic",title:"Auphonic"},{default:_e(()=>[e.isProductionSelected?Te("",!0):(I(),F("div",Tee,[z(l)])),e.productionId?(I(),F("div",Cee,[z(a)])):Te("",!0)]),_:1})}const Aee=Le(xee,[["render",Oee]]),kee=ge({components:{ArrowUpIcon:TV,ArrowDownIcon:Wx,XIcon:ml,UserCircleIcon:Zx,PencilIcon:Jx},props:{data:{type:Object,default:()=>({id:null,contributor_id:null,role_id:null,group_id:null,position:null,comment:null,identifier:null,avatar:null,name:null,mail:null,department:null,organisation:null,jobtitle:null,gender:null,nickname:null,count:null})},first:{type:Boolean,default:!1},last:{type:Boolean,default:!1}},setup(){return{dispatch:Ze().dispatch,state:ut({roles:B.contributors.roles,groups:B.contributors.groups,baseUrl:B.runtime.baseUrl})}},computed:{editLink(){return`${this.state.baseUrl}/wp-admin/admin.php?page=podlove_contributor_settings&action=edit&contributor=${this.data.contributor_id}`}},methods:{moveContributionUp(){this.dispatch(IM(this.data))},moveContributionDown(){this.dispatch(PM(this.data))},deleteContribution(){this.dispatch(RM(this.data))},updateRole(e){const t=Y.get(e,["target","value"]);this.dispatch(Kp({...this.data,role_id:t}))},updateGroup(e){const t=Y.get(e,["target","value"]);console.log(t),this.dispatch(Kp({...this.data,group_id:t}))},updateComment(e){const t=Y.get(e,["target","value"]);this.dispatch(Kp({...this.data,comment:t}))}}}),Iee={class:"block hover:bg-gray-50"},Pee={class:"flex items-center px-4 py-4 sm:px-6"},Ree={class:"flex min-w-0 flex-1 items-center"},Lee={class:"flex-shrink-0"},Fee=["src","alt"],Nee={class:"min-w-0 flex-1 px-2 md:grid md:gap-4"},Mee={class:"flex-shrink-0"},Dee={class:"truncate text-sm font-medium text-gray-900"},Uee={class:"flex items-center text-sm text-gray-500"},Bee={class:"truncate"},jee={class:"min-w-0 flex-1 px-4 md:grid md:gap-4"},Vee={for:"location",class:"block text-sm font-medium leading-6 text-gray-900"},Hee=["value","selected"],zee={class:"min-w-0 flex-1 px-4 md:grid md:gap-4"},Wee={for:"location",class:"block text-sm font-medium leading-6 text-gray-900"},qee=["value","selected"],Kee={class:"min-w-0 flex-1 px-4 md:grid md:gap-4"},Gee={for:"email",class:"block text-sm font-medium leading-6 text-gray-900"},Xee={class:"mt-2"},Yee=["value","placeholder"],Jee={class:"flex space-x-2 justify-end mt-[30px]"},Zee=["disabled"],Qee=["disabled"],ete=["href"];function tte(e,t,n,r,o,i){const l=q("UserCircleIcon"),a=q("arrow-up-icon"),c=q("arrow-down-icon"),d=q("pencil-icon"),p=q("x-icon");return I(),F("div",Iee,[m("div",Pee,[m("div",Ree,[m("div",Lee,[e.data.avatar_url?(I(),F("img",{key:0,class:"h-12 w-12 rounded-full",src:e.data.avatar_url,alt:e.data.name,onError:t[0]||(t[0]=h=>e.data.avatar_url="")},null,40,Fee)):Te("",!0),e.data.avatar_url?Te("",!0):(I(),Ye(l,{key:1,class:"h-12 w-12 flex-shrink-0 rounded-full text-gray-500"}))]),m("div",Nee,[m("div",Mee,[m("p",Dee,L(e.data.realname||e.data.publicname),1),m("p",Uee,[m("span",Bee,L(e.data.nickname),1)])])]),m("div",jee,[m("div",null,[m("label",Vee,L(e.__("Role","podlove-podcasting-plugin-for-wordpress")),1),m("select",{class:"mt-2 block w-full rounded-md border-0 py-1.5 pl-3 pr-10 text-gray-900 ring-1 ring-inset ring-gray-300 focus:ring-2 focus:ring-indigo-600 sm:text-sm sm:leading-6",onChange:t[1]||(t[1]=h=>e.updateRole(h))},[(I(!0),F(Me,null,Ot(e.state.roles,h=>(I(),F("option",{value:h.id,selected:h.id===e.data.role_id},L(h.title),9,Hee))),256))],32)])]),m("div",zee,[m("div",null,[m("label",Wee,L(e.__("Group","podlove-podcasting-plugin-for-wordpress")),1),m("select",{class:"mt-2 block w-full rounded-md border-0 py-1.5 pl-3 pr-10 text-gray-900 ring-1 ring-inset ring-gray-300 focus:ring-2 focus:ring-indigo-600 sm:text-sm sm:leading-6",onChange:t[2]||(t[2]=h=>e.updateGroup(h))},[(I(!0),F(Me,null,Ot(e.state.groups,h=>(I(),F("option",{value:h.id,selected:h.id===e.data.group_id},L(h.title),9,qee))),256))],32)])]),m("div",Kee,[m("div",null,[m("label",Gee,L(e.__("Comment","podlove-podcasting-plugin-for-wordpress")),1),m("div",Xee,[m("input",{type:"text",value:e.data.comment,onInput:t[3]||(t[3]=h=>e.updateComment(h)),class:"block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6",placeholder:e.__("Comment","podlove-podcasting-plugin-for-wordpress")},null,40,Yee)])])]),m("div",Jee,[m("button",{onClick:t[4]||(t[4]=h=>e.moveContributionUp()),disabled:e.first,class:gt({"text-indigo-600":!e.first,"text-gray-500":e.first})},[z(a,{class:"w-5 h-5"})],10,Zee),m("button",{onClick:t[5]||(t[5]=h=>e.moveContributionDown()),disabled:e.last,class:gt({"text-indigo-600":!e.last,"text-gray-500":e.last})},[z(c,{class:"w-5 h-5"})],10,Qee),m("a",{href:e.editLink,target:"_blank",class:"text-gray-400"},[z(d,{class:"w-5 h-5"})],8,ete),m("button",{class:"text-red-600",onClick:t[6]||(t[6]=h=>e.deleteContribution())},[z(p,{class:"w-5 h-5"})])])])])])}const nte=Le(kee,[["render",tte]]);var sr="top",zr="bottom",Wr="right",ir="left",Rv="auto",tu=[sr,zr,Wr,ir],sl="start",Ia="end",rte="clippingParents",sC="viewport",Vl="popper",ote="reference",Tb=tu.reduce(function(e,t){return e.concat([t+"-"+sl,t+"-"+Ia])},[]),iC=[].concat(tu,[Rv]).reduce(function(e,t){return e.concat([t,t+"-"+sl,t+"-"+Ia])},[]),ste="beforeRead",ite="read",lte="afterRead",ate="beforeMain",ute="main",cte="afterMain",dte="beforeWrite",fte="write",pte="afterWrite",hte=[ste,ite,lte,ate,ute,cte,dte,fte,pte];function Oo(e){return e?(e.nodeName||"").toLowerCase():null}function mo(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function il(e){var t=mo(e).Element;return e instanceof t||e instanceof Element}function jr(e){var t=mo(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Lv(e){if(typeof ShadowRoot>"u")return!1;var t=mo(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function mte(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!jr(i)||!Oo(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(l){var a=o[l];a===!1?i.removeAttribute(l):i.setAttribute(l,a===!0?"":a)}))})}function gte(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},l=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=l.reduce(function(c,d){return c[d]="",c},{});!jr(o)||!Oo(o)||(Object.assign(o.style,a),Object.keys(i).forEach(function(c){o.removeAttribute(c)}))})}}const vte={name:"applyStyles",enabled:!0,phase:"write",fn:mte,effect:gte,requires:["computeStyles"]};function xo(e){return e.split("-")[0]}var ii=Math.max,id=Math.min,ll=Math.round;function al(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;if(jr(e)&&t){var i=e.offsetHeight,l=e.offsetWidth;l>0&&(r=ll(n.width)/l||1),i>0&&(o=ll(n.height)/i||1)}return{width:n.width/r,height:n.height/o,top:n.top/o,right:n.right/r,bottom:n.bottom/o,left:n.left/r,x:n.left/r,y:n.top/o}}function Fv(e){var t=al(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function lC(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Lv(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Xo(e){return mo(e).getComputedStyle(e)}function yte(e){return["table","td","th"].indexOf(Oo(e))>=0}function ks(e){return((il(e)?e.ownerDocument:e.document)||window.document).documentElement}function gf(e){return Oo(e)==="html"?e:e.assignedSlot||e.parentNode||(Lv(e)?e.host:null)||ks(e)}function Cb(e){return!jr(e)||Xo(e).position==="fixed"?null:e.offsetParent}function _te(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&jr(e)){var r=Xo(e);if(r.position==="fixed")return null}var o=gf(e);for(Lv(o)&&(o=o.host);jr(o)&&["html","body"].indexOf(Oo(o))<0;){var i=Xo(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function nu(e){for(var t=mo(e),n=Cb(e);n&&yte(n)&&Xo(n).position==="static";)n=Cb(n);return n&&(Oo(n)==="html"||Oo(n)==="body"&&Xo(n).position==="static")?t:n||_te(e)||t}function Nv(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function aa(e,t,n){return ii(e,id(t,n))}function bte(e,t,n){var r=aa(e,t,n);return r>n?n:r}function aC(){return{top:0,right:0,bottom:0,left:0}}function uC(e){return Object.assign({},aC(),e)}function cC(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var wte=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,uC(typeof t!="number"?t:cC(t,tu))};function Ste(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,l=n.modifiersData.popperOffsets,a=xo(n.placement),c=Nv(a),d=[ir,Wr].indexOf(a)>=0,p=d?"height":"width";if(!(!i||!l)){var h=wte(o.padding,n),v=Fv(i),y=c==="y"?sr:ir,b=c==="y"?zr:Wr,S=n.rects.reference[p]+n.rects.reference[c]-l[c]-n.rects.popper[p],T=l[c]-n.rects.reference[c],C=nu(i),w=C?c==="y"?C.clientHeight||0:C.clientWidth||0:0,E=S/2-T/2,O=h[y],$=w-v[p]-h[b],P=w/2-v[p]/2+E,R=aa(O,P,$),k=c;n.modifiersData[r]=(t={},t[k]=R,t.centerOffset=R-P,t)}}function Ete(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||lC(t.elements.popper,o)&&(t.elements.arrow=o))}const $te={name:"arrow",enabled:!0,phase:"main",fn:Ste,effect:Ete,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ul(e){return e.split("-")[1]}var xte={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Tte(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:ll(t*o)/o||0,y:ll(n*o)/o||0}}function Ob(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,l=e.offsets,a=e.position,c=e.gpuAcceleration,d=e.adaptive,p=e.roundOffsets,h=e.isFixed,v=l.x,y=v===void 0?0:v,b=l.y,S=b===void 0?0:b,T=typeof p=="function"?p({x:y,y:S}):{x:y,y:S};y=T.x,S=T.y;var C=l.hasOwnProperty("x"),w=l.hasOwnProperty("y"),E=ir,O=sr,$=window;if(d){var P=nu(n),R="clientHeight",k="clientWidth";if(P===mo(n)&&(P=ks(n),Xo(P).position!=="static"&&a==="absolute"&&(R="scrollHeight",k="scrollWidth")),P=P,o===sr||(o===ir||o===Wr)&&i===Ia){O=zr;var W=h&&P===$&&$.visualViewport?$.visualViewport.height:P[R];S-=W-r.height,S*=c?1:-1}if(o===ir||(o===sr||o===zr)&&i===Ia){E=Wr;var U=h&&P===$&&$.visualViewport?$.visualViewport.width:P[k];y-=U-r.width,y*=c?1:-1}}var j=Object.assign({position:a},d&&xte),G=p===!0?Tte({x:y,y:S}):{x:y,y:S};if(y=G.x,S=G.y,c){var X;return Object.assign({},j,(X={},X[O]=w?"0":"",X[E]=C?"0":"",X.transform=($.devicePixelRatio||1)<=1?"translate("+y+"px, "+S+"px)":"translate3d("+y+"px, "+S+"px, 0)",X))}return Object.assign({},j,(t={},t[O]=w?S+"px":"",t[E]=C?y+"px":"",t.transform="",t))}function Cte(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,l=i===void 0?!0:i,a=n.roundOffsets,c=a===void 0?!0:a,d={placement:xo(t.placement),variation:ul(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Ob(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ob(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Ote={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Cte,data:{}};var hc={passive:!0};function Ate(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,l=r.resize,a=l===void 0?!0:l,c=mo(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&d.forEach(function(p){p.addEventListener("scroll",n.update,hc)}),a&&c.addEventListener("resize",n.update,hc),function(){i&&d.forEach(function(p){p.removeEventListener("scroll",n.update,hc)}),a&&c.removeEventListener("resize",n.update,hc)}}const kte={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Ate,data:{}};var Ite={left:"right",right:"left",bottom:"top",top:"bottom"};function Cc(e){return e.replace(/left|right|bottom|top/g,function(t){return Ite[t]})}var Pte={start:"end",end:"start"};function Ab(e){return e.replace(/start|end/g,function(t){return Pte[t]})}function Mv(e){var t=mo(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Dv(e){return al(ks(e)).left+Mv(e).scrollLeft}function Rte(e){var t=mo(e),n=ks(e),r=t.visualViewport,o=n.clientWidth,i=n.clientHeight,l=0,a=0;return r&&(o=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(l=r.offsetLeft,a=r.offsetTop)),{width:o,height:i,x:l+Dv(e),y:a}}function Lte(e){var t,n=ks(e),r=Mv(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=ii(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),l=ii(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+Dv(e),c=-r.scrollTop;return Xo(o||n).direction==="rtl"&&(a+=ii(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:l,x:a,y:c}}function Uv(e){var t=Xo(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function dC(e){return["html","body","#document"].indexOf(Oo(e))>=0?e.ownerDocument.body:jr(e)&&Uv(e)?e:dC(gf(e))}function ua(e,t){var n;t===void 0&&(t=[]);var r=dC(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=mo(r),l=o?[i].concat(i.visualViewport||[],Uv(r)?r:[]):r,a=t.concat(l);return o?a:a.concat(ua(gf(l)))}function mm(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Fte(e){var t=al(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function kb(e,t){return t===sC?mm(Rte(e)):il(t)?Fte(t):mm(Lte(ks(e)))}function Nte(e){var t=ua(gf(e)),n=["absolute","fixed"].indexOf(Xo(e).position)>=0,r=n&&jr(e)?nu(e):e;return il(r)?t.filter(function(o){return il(o)&&lC(o,r)&&Oo(o)!=="body"}):[]}function Mte(e,t,n){var r=t==="clippingParents"?Nte(e):[].concat(t),o=[].concat(r,[n]),i=o[0],l=o.reduce(function(a,c){var d=kb(e,c);return a.top=ii(d.top,a.top),a.right=id(d.right,a.right),a.bottom=id(d.bottom,a.bottom),a.left=ii(d.left,a.left),a},kb(e,i));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function fC(e){var t=e.reference,n=e.element,r=e.placement,o=r?xo(r):null,i=r?ul(r):null,l=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,c;switch(o){case sr:c={x:l,y:t.y-n.height};break;case zr:c={x:l,y:t.y+t.height};break;case Wr:c={x:t.x+t.width,y:a};break;case ir:c={x:t.x-n.width,y:a};break;default:c={x:t.x,y:t.y}}var d=o?Nv(o):null;if(d!=null){var p=d==="y"?"height":"width";switch(i){case sl:c[d]=c[d]-(t[p]/2-n[p]/2);break;case Ia:c[d]=c[d]+(t[p]/2-n[p]/2);break}}return c}function Pa(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.boundary,l=i===void 0?rte:i,a=n.rootBoundary,c=a===void 0?sC:a,d=n.elementContext,p=d===void 0?Vl:d,h=n.altBoundary,v=h===void 0?!1:h,y=n.padding,b=y===void 0?0:y,S=uC(typeof b!="number"?b:cC(b,tu)),T=p===Vl?ote:Vl,C=e.rects.popper,w=e.elements[v?T:p],E=Mte(il(w)?w:w.contextElement||ks(e.elements.popper),l,c),O=al(e.elements.reference),$=fC({reference:O,element:C,strategy:"absolute",placement:o}),P=mm(Object.assign({},C,$)),R=p===Vl?P:O,k={top:E.top-R.top+S.top,bottom:R.bottom-E.bottom+S.bottom,left:E.left-R.left+S.left,right:R.right-E.right+S.right},W=e.modifiersData.offset;if(p===Vl&&W){var U=W[o];Object.keys(k).forEach(function(j){var G=[Wr,zr].indexOf(j)>=0?1:-1,X=[sr,zr].indexOf(j)>=0?"y":"x";k[j]+=U[X]*G})}return k}function Dte(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,l=n.padding,a=n.flipVariations,c=n.allowedAutoPlacements,d=c===void 0?iC:c,p=ul(r),h=p?a?Tb:Tb.filter(function(b){return ul(b)===p}):tu,v=h.filter(function(b){return d.indexOf(b)>=0});v.length===0&&(v=h);var y=v.reduce(function(b,S){return b[S]=Pa(e,{placement:S,boundary:o,rootBoundary:i,padding:l})[xo(S)],b},{});return Object.keys(y).sort(function(b,S){return y[b]-y[S]})}function Ute(e){if(xo(e)===Rv)return[];var t=Cc(e);return[Ab(e),t,Ab(t)]}function Bte(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,l=n.altAxis,a=l===void 0?!0:l,c=n.fallbackPlacements,d=n.padding,p=n.boundary,h=n.rootBoundary,v=n.altBoundary,y=n.flipVariations,b=y===void 0?!0:y,S=n.allowedAutoPlacements,T=t.options.placement,C=xo(T),w=C===T,E=c||(w||!b?[Cc(T)]:Ute(T)),O=[T].concat(E).reduce(function(ce,ve){return ce.concat(xo(ve)===Rv?Dte(t,{placement:ve,boundary:p,rootBoundary:h,padding:d,flipVariations:b,allowedAutoPlacements:S}):ve)},[]),$=t.rects.reference,P=t.rects.popper,R=new Map,k=!0,W=O[0],U=0;U<O.length;U++){var j=O[U],G=xo(j),X=ul(j)===sl,ne=[sr,zr].indexOf(G)>=0,xe=ne?"width":"height",Ee=Pa(t,{placement:j,boundary:p,rootBoundary:h,altBoundary:v,padding:d}),ke=ne?X?Wr:ir:X?zr:sr;$[xe]>P[xe]&&(ke=Cc(ke));var Ie=Cc(ke),Qe=[];if(i&&Qe.push(Ee[G]<=0),a&&Qe.push(Ee[ke]<=0,Ee[Ie]<=0),Qe.every(function(ce){return ce})){W=j,k=!1;break}R.set(j,Qe)}if(k)for(var ht=b?3:1,De=function(ve){var Ce=O.find(function(We){var Ve=R.get(We);if(Ve)return Ve.slice(0,ve).every(function(rt){return rt})});if(Ce)return W=Ce,"break"},Xe=ht;Xe>0;Xe--){var Q=De(Xe);if(Q==="break")break}t.placement!==W&&(t.modifiersData[r]._skip=!0,t.placement=W,t.reset=!0)}}const jte={name:"flip",enabled:!0,phase:"main",fn:Bte,requiresIfExists:["offset"],data:{_skip:!1}};function Ib(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Pb(e){return[sr,Wr,zr,ir].some(function(t){return e[t]>=0})}function Vte(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,l=Pa(t,{elementContext:"reference"}),a=Pa(t,{altBoundary:!0}),c=Ib(l,r),d=Ib(a,o,i),p=Pb(c),h=Pb(d);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:p,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":h})}const Hte={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Vte};function zte(e,t,n){var r=xo(e),o=[ir,sr].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,l=i[0],a=i[1];return l=l||0,a=(a||0)*o,[ir,Wr].indexOf(r)>=0?{x:a,y:l}:{x:l,y:a}}function Wte(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,l=iC.reduce(function(p,h){return p[h]=zte(h,t.rects,i),p},{}),a=l[t.placement],c=a.x,d=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=d),t.modifiersData[r]=l}const qte={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Wte};function Kte(e){var t=e.state,n=e.name;t.modifiersData[n]=fC({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Gte={name:"popperOffsets",enabled:!0,phase:"read",fn:Kte,data:{}};function Xte(e){return e==="x"?"y":"x"}function Yte(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,l=n.altAxis,a=l===void 0?!1:l,c=n.boundary,d=n.rootBoundary,p=n.altBoundary,h=n.padding,v=n.tether,y=v===void 0?!0:v,b=n.tetherOffset,S=b===void 0?0:b,T=Pa(t,{boundary:c,rootBoundary:d,padding:h,altBoundary:p}),C=xo(t.placement),w=ul(t.placement),E=!w,O=Nv(C),$=Xte(O),P=t.modifiersData.popperOffsets,R=t.rects.reference,k=t.rects.popper,W=typeof S=="function"?S(Object.assign({},t.rects,{placement:t.placement})):S,U=typeof W=="number"?{mainAxis:W,altAxis:W}:Object.assign({mainAxis:0,altAxis:0},W),j=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,G={x:0,y:0};if(P){if(i){var X,ne=O==="y"?sr:ir,xe=O==="y"?zr:Wr,Ee=O==="y"?"height":"width",ke=P[O],Ie=ke+T[ne],Qe=ke-T[xe],ht=y?-k[Ee]/2:0,De=w===sl?R[Ee]:k[Ee],Xe=w===sl?-k[Ee]:-R[Ee],Q=t.elements.arrow,ce=y&&Q?Fv(Q):{width:0,height:0},ve=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:aC(),Ce=ve[ne],We=ve[xe],Ve=aa(0,R[Ee],ce[Ee]),rt=E?R[Ee]/2-ht-Ve-Ce-U.mainAxis:De-Ve-Ce-U.mainAxis,wn=E?-R[Ee]/2+ht+Ve+We+U.mainAxis:Xe+Ve+We+U.mainAxis,an=t.elements.arrow&&nu(t.elements.arrow),M=an?O==="y"?an.clientTop||0:an.clientLeft||0:0,V=(X=j==null?void 0:j[O])!=null?X:0,Z=ke+rt-V-M,ue=ke+wn-V,le=aa(y?id(Ie,Z):Ie,ke,y?ii(Qe,ue):Qe);P[O]=le,G[O]=le-ke}if(a){var ye,Oe=O==="x"?sr:ir,we=O==="x"?zr:Wr,Se=P[$],ae=$==="y"?"height":"width",Fe=Se+T[Oe],Pe=Se-T[we],je=[sr,ir].indexOf(C)!==-1,ze=(ye=j==null?void 0:j[$])!=null?ye:0,st=je?Fe:Se-R[ae]-k[ae]-ze+U.altAxis,yt=je?Se+R[ae]+k[ae]-ze-U.altAxis:Pe,ft=y&&je?bte(st,Se,yt):aa(y?st:Fe,Se,y?yt:Pe);P[$]=ft,G[$]=ft-Se}t.modifiersData[r]=G}}const Jte={name:"preventOverflow",enabled:!0,phase:"main",fn:Yte,requiresIfExists:["offset"]};function Zte(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Qte(e){return e===mo(e)||!jr(e)?Mv(e):Zte(e)}function ene(e){var t=e.getBoundingClientRect(),n=ll(t.width)/e.offsetWidth||1,r=ll(t.height)/e.offsetHeight||1;return n!==1||r!==1}function tne(e,t,n){n===void 0&&(n=!1);var r=jr(t),o=jr(t)&&ene(t),i=ks(t),l=al(e,o),a={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((Oo(t)!=="body"||Uv(i))&&(a=Qte(t)),jr(t)?(c=al(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=Dv(i))),{x:l.left+a.scrollLeft-c.x,y:l.top+a.scrollTop-c.y,width:l.width,height:l.height}}function nne(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var l=[].concat(i.requires||[],i.requiresIfExists||[]);l.forEach(function(a){if(!n.has(a)){var c=t.get(a);c&&o(c)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function rne(e){var t=nne(e);return hte.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function one(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function sne(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Rb={placement:"bottom",modifiers:[],strategy:"absolute"};function Lb(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function ine(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?Rb:o;return function(a,c,d){d===void 0&&(d=i);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},Rb,i),modifiersData:{},elements:{reference:a,popper:c},attributes:{},styles:{}},h=[],v=!1,y={state:p,setOptions:function(C){var w=typeof C=="function"?C(p.options):C;S(),p.options=Object.assign({},i,p.options,w),p.scrollParents={reference:il(a)?ua(a):a.contextElement?ua(a.contextElement):[],popper:ua(c)};var E=rne(sne([].concat(r,p.options.modifiers)));return p.orderedModifiers=E.filter(function(O){return O.enabled}),b(),y.update()},forceUpdate:function(){if(!v){var C=p.elements,w=C.reference,E=C.popper;if(Lb(w,E)){p.rects={reference:tne(w,nu(E),p.options.strategy==="fixed"),popper:Fv(E)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(U){return p.modifiersData[U.name]=Object.assign({},U.data)});for(var O=0;O<p.orderedModifiers.length;O++){if(p.reset===!0){p.reset=!1,O=-1;continue}var $=p.orderedModifiers[O],P=$.fn,R=$.options,k=R===void 0?{}:R,W=$.name;typeof P=="function"&&(p=P({state:p,options:k,name:W,instance:y})||p)}}}},update:one(function(){return new Promise(function(T){y.forceUpdate(),T(p)})}),destroy:function(){S(),v=!0}};if(!Lb(a,c))return y;y.setOptions(d).then(function(T){!v&&d.onFirstUpdate&&d.onFirstUpdate(T)});function b(){p.orderedModifiers.forEach(function(T){var C=T.name,w=T.options,E=w===void 0?{}:w,O=T.effect;if(typeof O=="function"){var $=O({state:p,name:C,instance:y,options:E}),P=function(){};h.push($||P)}})}function S(){h.forEach(function(T){return T()}),h=[]}return y}}var lne=[kte,Gte,Ote,vte,qte,jte,Jte,$te,Hte],ane=ine({defaultModifiers:lne});function une(e){let t=$e(null),n=$e(null);return wt(()=>{Vt(r=>{if(!n.value||!t.value)return;let o=n.value.el||n.value,i=t.value.el||t.value;if(!(i instanceof HTMLElement)||!(o instanceof HTMLElement))return;let{destroy:l}=ane(i,o,e);r(l)})}),[t,n]}const cne=ge({data(){return{query:"",data:""}},emits:["addContributor","createContributor","close"],setup(){let[e,t]=une({placement:"bottom-end",strategy:"fixed",modifiers:[{name:"offset",options:{offset:[0,10]}},{name:"sameWidth",enabled:!0,fn:({state:n})=>{n.styles.popper.width=`${n.rects.reference.width}px`},phase:"beforeWrite",requires:["computeStyles"]}]});return{dispatch:Ze().dispatch,state:ut({contributors:B.contributors.contributors,episodeContributions:B.episode.contributions}),trigger:e,container:t}},components:{CheckIcon:AV,XIcon:ml,ChevronDownIcon:Gx,Combobox:pT,ComboboxButton:hT,ComboboxInput:mT,ComboboxLabel:SH,ComboboxOption:vT,ComboboxOptions:gT,UserCircleIcon:Zx,Image},computed:{filteredContributors(){return[...this.query.length>0?[{id:null,avatar_url:null,realname:`${this.__("Create: ","podlove-podcasting-plugin-for-wordpress")}${this.query}`}]:[],...this.state.contributors.filter(e=>!this.state.episodeContributions.some(t=>t.contributor_id&&t.contributor_id.toString()===e.id.toString())).filter(e=>!this.query||((e==null?void 0:e.realname)||"").toUpperCase().includes(this.query.toUpperCase()))]}},watch:{data(e){e.id?this.$emit("addContributor",e):this.$emit("createContributor",this.query)}},methods:{filterContributors(e){this.query=Y.get(e,["target","value"],"")},close(){this.$emit("close")}}}),dne={class:"block hover:bg-gray-50"},fne={class:"flex items-center px-4 py-4 sm:px-6"},pne={class:"flex min-w-0 flex-1 items-center"},hne={class:"min-w-0 flex-1 px-4 md:grid md:grid-cols-2 md:gap-4"},mne={class:"relative mt-2 max-w-sm"},gne={ref:"container"},vne={class:"flex items-center"},yne=["src","onError"],_ne={class:"flex space-x-2 justify-end"};function bne(e,t,n,r,o,i){const l=q("ComboboxLabel"),a=q("ComboboxInput"),c=q("ChevronDownIcon"),d=q("ComboboxButton"),p=q("UserCircleIcon"),h=q("CheckIcon"),v=q("ComboboxOption"),y=q("ComboboxOptions"),b=q("Combobox"),S=q("x-icon");return I(),F("div",dne,[m("div",fne,[m("div",pne,[m("div",hne,[z(b,{as:"div",modelValue:e.data,"onUpdate:modelValue":t[1]||(t[1]=T=>e.data=T)},{default:_e(()=>[z(l,{class:"block text-sm font-medium leading-6 text-gray-900"},{default:_e(()=>[Be(L(e.__("Select Contributor","podlove-podcasting-plugin-for-wordpress")),1)]),_:1}),m("div",mne,[z(a,{ref:"trigger",class:"w-full rounded-md border-0 bg-white py-1.5 pl-3 pr-12 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6",onChange:t[0]||(t[0]=T=>e.filterContributors(T)),displayValue:()=>e.query},null,8,["displayValue"]),z(d,{class:"absolute inset-y-0 right-0 flex items-center rounded-r-md px-2 focus:outline-none"},{default:_e(()=>[z(c,{class:"h-5 w-5 text-gray-400","aria-hidden":"true"})]),_:1})]),m("div",gne,[e.filteredContributors.length>0?(I(),Ye(y,{key:0,class:"absolute max-w-sm z-50 mt-1 max-h-56 w-full overflow-auto rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm"},{default:_e(()=>[(I(!0),F(Me,null,Ot(e.filteredContributors,T=>(I(),Ye(v,{key:T.id||"create",value:T,as:"template"},{default:_e(({active:C,selected:w})=>[m("li",{class:gt(["relative cursor-default select-none py-2 pl-3 pr-9",C?"bg-indigo-600 text-white":"text-gray-900"])},[m("div",vne,[T.avatar_url?(I(),F("img",{key:0,src:T.avatar_url,alt:"",class:"h-6 w-6 flex-shrink-0 rounded-full",onError:E=>T.avatar_url=""},null,40,yne)):Te("",!0),T.avatar_url?Te("",!0):(I(),Ye(p,{key:1,class:"h-6 w-6 flex-shrink-0 rounded-full text-gray-500"})),m("span",{class:gt(["ml-3 truncate",w&&"font-semibold"])},L(T.realname),3)]),w?(I(),F("span",{key:0,class:gt(["absolute inset-y-0 right-0 flex items-center pr-4",C?"text-white":"text-indigo-600"])},[z(h,{class:"h-5 w-5","aria-hidden":"true"})],2)):Te("",!0)],2)]),_:2},1032,["value"]))),128))]),_:1})):Te("",!0)],512)]),_:1},8,["modelValue"])])]),m("div",_ne,[m("button",{class:"text-red-600",onClick:t[2]||(t[2]=T=>e.close())},[z(S,{class:"w-5 h-5"})])])])])}const wne=Le(cne,[["render",bne]]),Sne=ge({components:{Module:In,PodloveButton:Pn,PlusSmIcon:of,Contribution:nte,AddContribution:wne},data(){return{addContributorInput:!1}},setup(){return{dispatch:Ze().dispatch,state:ut({contributions:B.episode.contributions,roles:B.contributors.roles,groups:B.contributors.groups})}},created(){this.dispatch(FE())},methods:{showAddContributor(){this.addContributorInput=!0},addContributor(e){this.addContributorInput=!1,this.dispatch(SE(e))},createContributor(e){this.addContributorInput=!1,this.dispatch(LM(e))},closeAddContributor(){this.addContributorInput=!1}}}),Ene={role:"list",class:"divide-y divide-gray-200"},$ne={key:0,class:"mb-0"},xne={class:"py-5 px-6 border-t border-gray-200"};function Tne(e,t,n,r,o,i){const l=q("Contribution"),a=q("AddContribution"),c=q("plus-sm-icon"),d=q("podlove-button"),p=q("module");return I(),Ye(p,{name:"chapters",title:e.__("Contributors","podlove-podcasting-plugin-for-wordpress"),class:"overflow-hidden"},{actions:_e(()=>[]),default:_e(()=>[m("ul",Ene,[(I(!0),F(Me,null,Ot(e.state.contributions,(h,v)=>(I(),F("li",{class:"mb-0",key:h.position},[h!=null&&h.contributor_id?(I(),Ye(l,{key:0,data:h,first:v===0,last:v===e.state.contributions.length-1},null,8,["data","first","last"])):Te("",!0)]))),128)),e.addContributorInput?(I(),F("li",$ne,[z(a,{onAddContributor:t[0]||(t[0]=h=>e.addContributor(h)),onCreateContributor:t[1]||(t[1]=h=>e.createContributor(h)),onClose:t[2]||(t[2]=h=>e.closeAddContributor())})])):Te("",!0)]),m("div",xne,[z(d,{variant:"primary",onClick:t[3]||(t[3]=h=>e.showAddContributor())},{default:_e(()=>[z(c,{class:"-ml-0.5 mr-2 h-4 w-4","aria-hidden":"true"}),Be(" "+L(e.__("Add Contributor","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})])]),_:1},8,["title"])}const Cne=Le(Sne,[["render",Tne]]),One=ge({setup(){return{state:ut({slug:B.episode.slug,slugFrozen:B.episode.slugFrozen,id:B.episode.id,baseUri:B.settings.mediaFileBaseUri}),dispatch:Ze().dispatch}},methods:{updateSlug(e){this.dispatch(bt({prop:"slug",value:e.target.value})),this.dispatch(W$())},unfreezeSlug(){this.dispatch(cD())}},computed:{assetPrefix(){var n;let e=(n=this.state.baseUri)==null?void 0:n.replace(/https?:\/\//i,"").trim();if(!e)return"";const t=e.trim().replace(/\/+$/g,"").lastIndexOf("/");return e.length>30&&t>-1&&(e=e.slice(t)),e}}}),Ane={for:"filename_slug",class:"block text-sm font-medium leading-6 text-gray-900 sm:pt-1.5"},kne={class:"mt-2 sm:col-span-2 sm:mt-0"},Ine={key:0,class:"flex rounded-md shadow-sm ring-1 ring-inset ring-gray-300 bg-gray-50"},Pne={class:"flex select-none items-center pl-3 text-gray-500 sm:text-sm"},Rne={class:"block flex-1 py-1.5 pl-1 text-gray-900 sm:text-sm sm:leading-6"},Lne=m("span",{class:"flex select-none items-center text-gray-500 sm:text-sm pr-2"},".ext",-1),Fne=["title","aria-label"],Nne={key:1,class:"flex rounded-md shadow-sm ring-1 ring-inset ring-gray-300 focus-within:ring-2 focus-within:ring-inset focus-within:ring-indigo-600"},Mne={class:"flex select-none items-center pl-3 text-gray-500 sm:text-sm"},Dne=["value","aria-label"],Une=m("span",{class:"flex slect-none items-center text-gray-500 sm:text-sm pr-2"},".ext",-1),Bne={id:"filename_slug_help",class:"sr-only"};function jne(e,t,n,r,o,i){return I(),F(Me,null,[m("label",Ane,L(e.__("Filename / Slug","podlove-podcasting-plugin-for-wordpress")),1),m("div",kne,[e.state.slugFrozen?(I(),F("div",Ine,[m("span",Pne,L(e.assetPrefix),1),m("span",Rne,L(e.state.slug),1),Lne,m("button",{onClick:t[0]||(t[0]=(...l)=>e.unfreezeSlug&&e.unfreezeSlug(...l)),type:"button",class:"ml-2 px-3 py-1.5 text-sm font-semibold text-indigo-600 hover:text-indigo-500 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 border-l border-gray-300",title:e.__("Edit slug","podlove-podcasting-plugin-for-wordpress"),"aria-label":e.__("Edit filename slug","podlove-podcasting-plugin-for-wordpress"),"aria-describedby":"filename_slug_help"},L(e.__("Edit","podlove-podcasting-plugin-for-wordpress")),9,Fne)])):(I(),F("div",Nne,[m("span",Mne,L(e.assetPrefix),1),m("input",{type:"text",name:"filename_slug",id:"filename_slug",autocomplete:"filename_slug",class:"block flex-1 border-0 bg-transparent py-1.5 pl-1 text-gray-900 placeholder:text-gray-400 focus:ring-0 sm:text-sm sm:leading-6",placeholder:"",value:e.state.slug,onInput:t[1]||(t[1]=l=>e.updateSlug(l)),"aria-label":e.__("Filename slug","podlove-podcasting-plugin-for-wordpress"),"aria-describedby":"filename_slug_help"},null,40,Dne),Une])),m("div",Bne,L(e.__("Click Edit to modify the filename slug. The slug determines the final filename of your media files.","podlove-podcasting-plugin-for-wordpress")),1)])],64)}const Vne=Le(One,[["render",jne]]),Hne=ge({components:{PodloveButton:Pn,UploadIcon:rf},setup(){return{state:ut({}),dispatch:Ze().dispatch}},methods:{uploadIntent(){this.dispatch(oD())}},computed:{}}),zne={for:"mediafile_upload",class:"block text-sm font-medium leading-6 text-gray-900 sm:pt-1.5"},Wne={class:"mt-2 sm:col-span-2 sm:mt-0"};function qne(e,t,n,r,o,i){const l=q("upload-icon"),a=q("podlove-button");return I(),F(Me,null,[m("label",zne,L(e.__("Upload","podlove-podcasting-plugin-for-wordpress")),1),m("div",Wne,[m("div",null,[z(a,{variant:"primary",onClick:e.uploadIntent,class:"ml-1"},{default:_e(()=>[z(l,{class:"-ml-0.5 mr-2 h-4 w-4","aria-hidden":"true"}),Be(" "+L(e.__("Upload Media File","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["onClick"])])])],64)}const Kne=Le(Hne,[["render",qne]]),Gne=ge({components:{PodloveButton:Pn,UploadIcon:rf,DocumentTextIcon:iv,XMarkIcon:ml,PlusIcon:of},data(){return{}},setup(){return{state:ut({progress:e=>t=>B.progress.progress(e,t),status:e=>t=>B.progress.status(e,t),message:e=>t=>B.progress.message(e,t),episodeSlug:e=>B.episode.slug(e),selectedFiles:e=>B.mediafiles.selectedFiles(e)}),dispatch:Ze().dispatch}},methods:{plusUploadIntent(){this.state.selectedFiles&&this.state.selectedFiles.length>0&&this.state.selectedFiles.forEach(e=>{this.dispatch(sD(e.file))})},handleFileSelection(e){const t=e.target.files;if(!t||t.length===0)return;const n=Array.from(t),r=this.state.episodeSlug,l=[...(this.state.selectedFiles||[]).map(a=>a.file),...n];this.dispatch(aD(l,r))},resetFiles(){this.dispatch({type:Wa,payload:[]})},removeFile(e){this.dispatch(uD(e))},triggerFileInput(){const e=this.$refs.fileInput;e&&e.click()},selectAnotherFile(){this.triggerFileInput()},getUploadProgress(e){const t=`plus-upload-${e}`;return this.state.progress(t)||null},getUploadStatus(e){const t=`plus-upload-${e}`;return this.state.status(t)||null},getUploadMessage(e){const t=`plus-upload-${e}`;return this.state.message(t)||null},getFilenameGenerationStatus(e){const t=`filename-generation-${e}`;return this.state.status(t)||null}},computed:{selectedFiles(){return this.state.selectedFiles||[]},hasFilesReadyToUpload(){return this.selectedFiles.some(e=>{const t=this.getUploadStatus(e.file.name);return t==="init"||t===null})},allFilesUploaded(){return this.selectedFiles.length>0&&this.selectedFiles.every(e=>this.getUploadStatus(e.file.name)==="finished")},hasFilesGeneratingFilenames(){return this.selectedFiles.some(e=>this.getFilenameGenerationStatus(e.originalName)==="in_progress")}}}),Xne={for:"mediafile_upload",class:"block text-sm font-medium leading-6 text-gray-900 sm:pt-1.5"},Yne={class:"mt-2 sm:col-span-2 sm:mt-0"},Jne={for:"plus-file-upload",class:"relative max-w-[400px] flex flex-col gap-2 cursor-pointer bg-white rounded-md font-medium text-indigo-600 hover:text-indigo-500 focus-within:outline-none"},Zne={key:0},Qne={class:"space-y-3"},ere={class:"flex-shrink-0"},tre={class:"w-10 h-10 bg-white rounded-lg flex items-center justify-center"},nre={key:0,class:"animate-spin rounded-full h-6 w-6 border-b-2 border-indigo-500"},rre={class:"flex-1 min-w-0"},ore={class:"text-sm font-medium text-gray-900 truncate"},sre={key:0,class:"text-xs text-gray-500"},ire={class:"text-xs text-gray-500"},lre={key:1,class:"mt-2 flex items-center text-indigo-600"},are=m("div",{class:"animate-spin rounded-full h-3 w-3 border-b border-indigo-500 mr-2"},null,-1),ure={class:"text-xs"},cre={class:"mt-2 w-full bg-white rounded-full h-1.5"},dre={class:"flex justify-between items-center mt-1"},fre={class:"text-xs text-gray-500"},pre={key:0},hre={key:1},mre={key:2},gre={key:3},vre={key:0,class:"text-xs font-medium text-indigo-600"},yre={key:2,class:"mt-2 flex items-center text-yellow-600"},_re={class:"text-xs"},bre=["onClick"];function wre(e,t,n,r,o,i){const l=q("upload-icon"),a=q("podlove-button"),c=q("document-text-icon"),d=q("x-mark-icon"),p=q("plus-icon");return I(),F(Me,null,[m("label",Xne,L(e.__("PLUS Upload","podlove-podcasting-plugin-for-wordpress")),1),m("div",Yne,[m("div",null,[m("label",Jne,[m("div",null,[!e.state.selectedFiles||e.state.selectedFiles.length===0?(I(),Ye(a,{key:0,variant:"primary",onClick:va(e.triggerFileInput,["prevent"])},{default:_e(()=>[z(l,{class:"-ml-0.5 mr-2 h-4 w-4","aria-hidden":"true"}),Be(" "+L(e.__("Select Files for Upload","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["onClick"])):Te("",!0)]),e.state.selectedFiles&&e.state.selectedFiles.length>0?(I(),F("div",Zne,[m("div",Qne,[(I(!0),F(Me,null,Ot(e.state.selectedFiles,(h,v)=>(I(),F("div",{key:h.newName,class:"flex items-start space-x-3 p-3 bg-gray-100 rounded-lg"},[m("div",ere,[m("div",tre,[e.getFilenameGenerationStatus(h.originalName)==="in_progress"?(I(),F("div",nre)):(I(),Ye(c,{key:1,class:"w-6 h-6 text-indigo-500"}))])]),m("div",rre,[m("p",ore,L(h.file.name),1),h.originalName!==h.newName?(I(),F("p",sre,L(e.__("Original name:","podlove-podcasting-plugin-for-wordpress"))+" "+L(h.originalName),1)):Te("",!0),m("p",ire,L((h.file.size/1024/1024).toFixed(2))+" MB ",1),e.getFilenameGenerationStatus(h.originalName)==="in_progress"?(I(),F("div",lre,[are,m("span",ure,L(e.__("Generating filename...","podlove-podcasting-plugin-for-wordpress")),1)])):Te("",!0),m("div",cre,[m("div",{class:"bg-indigo-600 h-1.5 rounded-full progress-transition",style:so({width:(e.getUploadProgress(h.file.name)||0)+"%"})},null,4)]),m("div",dre,[m("p",fre,[e.getUploadStatus(h.file.name)=="init"?(I(),F("span",pre,"Ready to upload")):e.getUploadStatus(h.file.name)=="in_progress"?(I(),F("span",hre,"Uploading...")):e.getUploadStatus(h.file.name)=="finished"?(I(),F("span",mre,"Done!")):e.getUploadStatus(h.file.name)=="error"?(I(),F("span",gre,"Error: "+L(e.getUploadMessage(h.file.name)),1)):Te("",!0)]),e.getUploadStatus(h.file.name)=="in_progress"?(I(),F("p",vre,L(e.getUploadProgress(h.file.name))+"% ",1)):Te("",!0)]),h!=null&&h.fileExists&&e.getUploadStatus(h.file.name)!="finished"?(I(),F("div",yre,[m("span",_re,L(e.__("A file with this name already exists and will be overwritten.","podlove-podcasting-plugin-for-wordpress")),1)])):Te("",!0)]),e.getUploadStatus(h.file.name)!="in_progress"?(I(),F("button",{key:0,class:"flex-shrink-0 text-gray-400 hover:text-gray-600 focus:outline-none",onClick:y=>e.removeFile(h.newName)},[z(d,{class:"w-4 h-4"})],8,bre)):Te("",!0)]))),128))])])):Te("",!0),m("input",{id:"plus-file-upload",name:"plus-file-upload",type:"file",multiple:"",class:"sr-only",ref:"fileInput",onInput:t[0]||(t[0]=(...h)=>e.handleFileSelection&&e.handleFileSelection(...h))},null,544)]),e.state.selectedFiles&&e.state.selectedFiles.length>0&&e.hasFilesReadyToUpload?(I(),Ye(a,{key:0,variant:"primary",onClick:e.plusUploadIntent,class:"ml-1 mt-3",disabled:e.hasFilesGeneratingFilenames},{default:_e(()=>[z(l,{class:"-ml-0.5 mr-2 h-4 w-4","aria-hidden":"true"}),Be(" "+L(e.hasFilesGeneratingFilenames?e.__("Generating filenames...","podlove-podcasting-plugin-for-wordpress"):e.__("Upload Media Files","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["onClick","disabled"])):Te("",!0),e.state.selectedFiles&&e.state.selectedFiles.length>0?(I(),Ye(a,{key:1,variant:"secondary",onClick:e.selectAnotherFile,class:"ml-1 mt-3"},{default:_e(()=>[z(p,{class:"-ml-0.5 mr-2 h-4 w-4","aria-hidden":"true"}),Be(" "+L(e.__("Add more Files","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["onClick"])):Te("",!0)])])],64)}const Sre=Le(Gne,[["render",wre]]),Ere={},$re={class:"text-center"},xre=m("svg",{class:"mx-auto h-12 w-12 text-gray-400",fill:"none",viewBox:"0 0 24 24",strokeWidth:"{1.5}",stroke:"currentColor"},[m("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.42 15.17L17.25 21A2.652 2.652 0 0021 17.25l-5.877-5.877M11.42 15.17l2.496-3.03c.317-.384.74-.626 1.208-.766M11.42 15.17l-4.655 5.653a2.548 2.548 0 11-3.586-3.586l6.837-5.63m5.108-.233c.55-.164 1.163-.188 1.743-.14a4.5 4.5 0 004.486-6.336l-3.276 3.277a3.004 3.004 0 01-2.25-2.25l3.276-3.276a4.5 4.5 0 00-6.336 4.486c.091 1.076-.071 2.264-.904 2.95l-.102.085m-1.745 1.437L5.909 7.5H4.5L2.25 3.75l1.5-1.5L7.5 4.5v1.409l4.26 4.26m-1.745 1.437l1.745-1.437m6.615 8.206L15.75 15.75M4.867 19.125h.008v.008h-.008v-.008z"})],-1),Tre={class:"mt-2 text-sm font-semibold text-gray-900"},Cre={class:"mt-1 text-sm text-gray-500"};function Ore(e,t){return I(),F("div",$re,[xre,m("h3",Tre,L(e.__("No Assets","podlove-podcasting-plugin-for-wordpress")),1),m("p",Cre,L(e.__("Please go to Podlove → Episode Assets and define at least one audio asset.","podlove-podcasting-plugin-for-wordpress")),1)])}const Are=Le(Ere,[["render",Ore]]),kre=ge({components:{CheckCircleIcon:rC,XCircleIcon:Iv,CloudIcon:Yx,AssetsEmptyState:Are},setup(){return{state:ut({files:B.mediafiles.files,duration:B.episode.duration}),dispatch:Ze().dispatch}},methods:{handleToggle(e){const t=e.target,n=t.checked,r=parseInt(t.value);n?this.dispatch(eD(r)):this.dispatch(tD(r))},handleVerify(e){this.dispatch(nD(e))},fileSize(e){const t=e.size;if(!t||t<1)return"???";var n=t/1024;if(n<500)return n.toFixed(2)+" kB";var r=n/1024;return r.toFixed(2)+" MB"}},computed:{files(){return this.state.files},hasFiles(){return this.files.length>0},duration(){const e="--:--:--.---";if(!this.state.duration)return e;const t=Dt.fromString(this.state.duration);return t.totalMs===0?e:t.pretty}}}),Ire={for:"assets",class:"block text-sm font-medium leading-6 text-gray-900 sm:pt-1.5"},Pre={class:"mt-2 sm:col-span-2 sm:mt-0"},Rre={key:0},Lre={class:"min-w-full table-fixed divide-y divide-gray-300"},Fre={scope:"col",class:"py-3.5 pl-3 text-left text-sm font-semibold text-gray-900"},Nre={scope:"col",class:"py-3.5 pr-3 text-left text-sm font-semibold text-gray-900"},Mre={scope:"col",class:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900"},Dre=m("th",{scope:"col",class:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900"},null,-1),Ure={class:"divide-y divide-gray-200 bg-white"},Bre={class:"relative px-7 sm:w-12 sm:px-6"},jre={key:0,class:"inline-flex items-center animate-pulse text-green-600 absolute left-[-14px] top-1/2 -mt-2.5"},Vre=["value","checked"],Hre={class:"text-sm"},zre={class:"whitespace-nowrap px-3 py-4 text-sm text-gray-500"},Wre={class:"flex flex-col"},qre=["href"],Kre={class:"flex"},Gre={key:3},Xre={class:"whitespace-nowrap px-3 py-4 text-sm text-gray-500"},Yre=["onClick"],Jre={class:"mt-3 text-sm leading-6 text-gray-600"};function Zre(e,t,n,r,o,i){const l=q("CloudIcon"),a=q("CheckCircleIcon"),c=q("XCircleIcon"),d=q("AssetsEmptyState");return I(),F(Me,null,[m("label",Ire,L(e.__("Assets","podlove-podcasting-plugin-for-wordpress")),1),m("div",Pre,[e.hasFiles?(I(),F("div",Rre,[m("table",Lre,[m("thead",null,[m("tr",null,[m("th",Fre,L(e.__("Enable","podlove-podcasting-plugin-for-wordpress")),1),m("th",Nre,L(e.__("Asset","podlove-podcasting-plugin-for-wordpress")),1),m("th",Mre,L(e.__("File","podlove-podcasting-plugin-for-wordpress")),1),Dre])]),m("tbody",Ure,[(I(!0),F(Me,null,Ot(e.files,p=>(I(),F("tr",{key:p.asset_id,class:gt({"opacity-50":!p.enable})},[m("td",Bre,[p.is_verifying?(I(),F("div",jre,[z(l,{class:"h-5 w-5","aria-hidden":"true"})])):Te("",!0),m("input",{type:"checkbox",class:"absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-600",value:p.asset_id,checked:p.enable,onClick:t[0]||(t[0]=(...h)=>e.handleToggle&&e.handleToggle(...h))},null,8,Vre)]),m("td",Hre,L(p.asset),1),m("td",zre,[m("div",Wre,[m("a",{href:p.url,target:"_blank",class:"text-gray-700 underline"},L(p.url),9,qre),m("span",Kre,[p.size>0?(I(),Ye(a,{key:0,class:"mr-1.5 h-5 w-5 flex-shrink-0 text-green-400","aria-hidden":"true"})):(I(),Ye(c,{key:1,class:gt(["mr-1.5 h-5 w-5 flex-shrink-0",{"text-gray-400":!p.enable,"text-red-400":p.enable}]),"aria-hidden":"true"},null,8,["class"])),p.size?(I(),F("span",Gre,L(e.fileSize(p)),1)):(I(),F("span",{key:2,class:gt({"text-gray-400":!p.enable,"text-red-400":p.enable})},L(e.__("File not found","podlove-podcasting-plugin-for-wordpress")),3))])])]),m("td",Xre,[m("button",{type:"button",class:"inline-flex items-center rounded-md bg-white px-2.5 py-1.5 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50 disabled:cursor-not-allowed disabled:opacity-30 disabled:hover:bg-white",onClick:()=>e.handleVerify(p.asset_id)},L(e.__("Verify","podlove-podcasting-plugin-for-wordpress")),9,Yre)])],2))),128))])]),m("p",Jre,L(e.__("Duration:","podlove-podcasting-plugin-for-wordpress"))+" "+L(e.duration),1)])):(I(),Ye(d,{key:1}))])],64)}const Qre=Le(kre,[["render",Zre]]),eoe=ge({components:{Module:In,RefreshIcon:nf,MediaSlug:Vne,MediaUpload:Kne,PlusMediaUpload:Sre,AssetsTable:Qre},setup(){return{state:ut({isInitializing:B.mediafiles.isInitializing,modules:B.settings.modules,plusStorageEnabled:B.settings.enablePlusStorage}),dispatch:Ze().dispatch}},computed:{isInitializing(){return this.state.isInitializing},isMediaUploadEnabled(){var e;return(e=this.state.modules)==null?void 0:e.includes("wordpress_file_upload")},isPlusStorageEnabled(){return this.state.plusStorageEnabled}},created(){this.dispatch(J8())}}),toe={key:0,class:"w-full flex justify-center m-12 text-center"},noe={class:"animate-pulse mt-4 flex space-x-4"},roe={key:1},ooe={class:"px-6"},soe={class:"mt-10 sm:mt-0 space-y-8 border-b border-gray-900/10 pb-12 sm:space-y-0 sm:divide-y sm:divide-gray-900/10 sm:pb-0"},ioe={class:"sm:grid sm:grid-cols-[175px_auto_auto] sm:items-start sm:gap-4 sm:py-6"},loe={key:0,class:"sm:grid sm:grid-cols-[175px_auto_auto] sm:items-start sm:gap-4 sm:py-6"},aoe={key:1,class:"sm:grid sm:grid-cols-[175px_auto_auto] sm:items-start sm:gap-4 sm:py-6"},uoe={class:"sm:grid sm:grid-cols-[175px_auto_auto] sm:items-start sm:gap-4 sm:py-6"};function coe(e,t,n,r,o,i){const l=q("RefreshIcon"),a=q("MediaSlug"),c=q("PlusMediaUpload"),d=q("MediaUpload"),p=q("AssetsTable"),h=q("module");return I(),Ye(h,{name:"mediafiles",title:"Media Files"},{default:_e(()=>[m("div",null,[e.isInitializing?(I(),F("div",toe,[m("div",noe,[z(l,{class:"animate-spin h-5 w-5 mr-3"}),Be(" "+L(e.__("Loading...","podlove-podcasting-plugin-for-wordpress")),1)])])):(I(),F("div",roe,[m("div",ooe,[m("div",soe,[m("div",ioe,[z(a)]),e.isPlusStorageEnabled?(I(),F("div",loe,[z(c)])):e.isMediaUploadEnabled?(I(),F("div",aoe,[z(d)])):Te("",!0),m("div",uoe,[z(p)])])])]))])]),_:1})}const doe=Le(eoe,[["render",coe]]),foe=ge({name:"PlusFileMigration",components:{Module:In,PodloveButton:Pn,UploadIcon:rf,CheckBadgeIcon:OV,ExclamationTriangleIcon:RX},setup(){return{state:ut({totalState:B.plusFileMigration.totalState,progress:B.plusFileMigration.progress,files:B.plusFileMigration.episodesWithFiles,currentEpisodeName:B.plusFileMigration.currentEpisodeName,currentFileName:B.plusFileMigration.currentFileName,isMigrationComplete:B.plusFileMigration.isMigrationComplete}),dispatch:Ze().dispatch}},methods:{startMigration(){this.dispatch(m8())}},computed:{progress(){return this.state.progress},totalFiles(){return this.state.files.reduce((e,t)=>e+t.files.length,0)},totalEpisodes(){return this.state.files.length},failedFiles(){return this.state.files.reduce((e,t)=>e+t.files.filter(n=>n.state==="error").length,0)},failedFilesList(){const e=[];return this.state.files.forEach(t=>{t.files.forEach(n=>{n.state==="error"&&e.push({episodeName:t.episodeName,fileName:n.name})})}),e},currentEpisodeName(){return this.state.currentEpisodeName},currentFileName(){return this.state.currentFileName},uiState(){return this.state.totalState}}}),poe={class:"m-3 rounded-lg bg-white"},hoe={key:0,class:"bg-white w-full"},moe=m("div",{class:"text-center"},"loading...",-1),goe=[moe],voe={key:1,class:"bg-white w-full"},yoe={class:"text-center py-10 px-5"},_oe={class:"w-20 h-20 mx-auto mb-5 bg-green-50 rounded-full flex items-center justify-center"},boe=m("h3",{class:"text-lg font-medium text-gray-800 mb-2.5"},"Upload Complete!",-1),woe={class:"text-gray-600 text-sm mb-6 max-w-md mx-auto"},Soe={key:0},Eoe={key:1},$oe={class:"bg-gray-50 rounded-lg p-5 mx-auto m-5 text-left"},xoe=m("div",{class:"text-base font-medium text-gray-800 mb-4"},"Upload Summary",-1),Toe={class:"flex justify-between mb-2.5 text-sm text-gray-600"},Coe=m("span",null,"Total Episodes:",-1),Ooe={class:"flex justify-between mb-2.5 text-sm text-gray-600"},Aoe=m("span",null,"Total Files:",-1),koe={key:0,class:"flex justify-between mb-4 text-sm text-red-600"},Ioe=m("span",null,"Failed Uploads:",-1),Poe={key:1,class:"border-t border-gray-200 pt-4"},Roe=m("div",{class:"text-sm font-medium text-gray-800 mb-3"},"Failed Uploads:",-1),Loe={class:"space-y-2"},Foe={class:"text-sm text-red-800"},Noe={class:"font-medium"},Moe={class:"text-red-600 mt-1"},Doe={class:"text-gray-600 text-left text-sm px-2 mx-auto"},Uoe={key:0},Boe=m("br",null,null,-1),joe=m("br",null,null,-1),Voe={key:1},Hoe={key:2,class:"bg-white w-full"},zoe={class:"text-center py-10 px-5"},Woe={class:"w-20 h-20 mx-auto mb-5 bg-gray-100 rounded-full flex items-center justify-center"},qoe=m("h3",{class:"text-lg font-medium text-gray-800 mb-2.5"}," Upload Your Existing Media Files to PLUS Cloud Storage ",-1),Koe=m("p",{class:"text-left text-gray-600 text-sm mb-2.5 max-w-md mx-auto"}," This is a one-time operation to move your existing files to PLUS Cloud Storage. It will only need to be done once. ",-1),Goe={class:"text-left text-gray-600 text-sm mb-6 max-w-md mx-auto"},Xoe={key:3,class:"bg-white w-full"},Yoe={class:"py-10 px-5"},Joe={class:"flex justify-between mb-2 text-sm text-gray-600"},Zoe=m("span",null,"Progress Uploading Media Files to PLUS Cloud Storage",-1),Qoe={class:"h-2.5 bg-gray-100 rounded-lg overflow-hidden"},ese={class:"bg-gray-50 my-5 p-5 rounded-lg"},tse=m("div",{class:"flex items-center mb-2"},[m("h3",{class:"text-base font-medium text-gray-800"},"Currently Uploading"),m("div",{class:"ml-2 animate-spin"},[m("div",{class:"w-4 h-4 border-2 border-gray-300 border-t-gray-700 rounded-full"})])],-1),nse={class:"text-gray-600 text-sm mb-1"},rse=m("strong",null,"Episode:",-1),ose={class:"text-gray-600 text-sm"},sse=m("strong",null,"File:",-1),ise={class:"border-l-4 border-yellow-400 bg-yellow-50 p-4"},lse={class:"flex"},ase={class:"shrink-0"},use=m("div",{class:"ml-3"},[m("p",{class:"text-sm text-yellow-700"}," Keep this window open while the upload is in progress. ")],-1);function cse(e,t,n,r,o,i){const l=q("CheckBadgeIcon"),a=q("UploadIcon"),c=q("podlove-button"),d=q("ExclamationTriangleIcon");return I(),F("div",poe,[e.uiState==="init"?(I(),F("section",hoe,goe)):Te("",!0),e.uiState==="finished"?(I(),F("section",voe,[m("div",yoe,[m("div",_oe,[z(l,{class:"w-10 h-10 stroke-green-500"})]),boe,m("p",woe,[e.failedFiles===0?(I(),F("span",Soe,"All your files have been successfully uploaded.")):(I(),F("span",Eoe,"Upload process completed with "+L(e.failedFiles)+" failed upload"+L(e.failedFiles>1?"s":"")+".",1))]),m("div",$oe,[xoe,m("div",Toe,[Coe,m("span",null,L(e.totalEpisodes),1)]),m("div",Ooe,[Aoe,m("span",null,L(e.totalFiles),1)]),e.failedFiles>0?(I(),F("div",koe,[Ioe,m("span",null,L(e.failedFiles),1)])):Te("",!0),e.failedFiles>0?(I(),F("div",Poe,[Roe,m("div",Loe,[(I(!0),F(Me,null,Ot(e.failedFilesList,p=>(I(),F("div",{key:`${p.episodeName}-${p.fileName}`,class:"bg-red-50 border border-red-200 rounded p-3"},[m("div",Foe,[m("div",Noe,L(p.episodeName),1),m("div",Moe,L(p.fileName),1)])]))),128))])])):Te("",!0)]),m("p",Doe,[e.failedFiles===0?(I(),F("span",Uoe,[Be(" Starting immediately, your files will be served from PLUS Cloud Storage to all listeners. When you create and manage new episodes, files will be directly uploaded to PLUS Cloud Storage."),Boe,joe,Be("Happy podcasting! ")])):(I(),F("span",Voe," Successfully uploaded files will be served from PLUS Cloud Storage to all listeners. You may want to retry uploading the failed files or check the file URLs and try again. When you create and manage new episodes, files will be directly uploaded to PLUS Cloud Storage. "))])])])):Te("",!0),e.uiState==="ready"?(I(),F("section",Hoe,[m("div",zoe,[m("div",Woe,[z(a,{class:"w-10 h-10 stroke-gray-600"})]),qoe,Koe,m("p",Goe," You have "+L(e.totalFiles)+" files to upload. Once they are uploaded, you can delete the files from your local storage or keep them as a backup. ",1),z(c,{variant:"primary",onClick:e.startMigration},{default:_e(()=>[Be(L(e.__("Start Uploads","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["onClick"])])])):Te("",!0),e.uiState==="in_progress"?(I(),F("section",Xoe,[m("div",Yoe,[m("div",Joe,[Zoe,m("span",null,L(e.progress)+"%",1)]),m("div",Qoe,[m("div",{class:"h-full bg-green-500 rounded-lg transition-all duration-300",style:so({width:e.progress+"%"})},null,4)]),m("section",ese,[tse,m("p",nse,[rse,Be(" "+L(e.currentEpisodeName),1)]),m("p",ose,[sse,Be(" "+L(e.currentFileName),1)])]),m("div",ise,[m("div",lse,[m("div",ase,[z(d,{class:"size-5 text-yellow-400","aria-hidden":"true"})]),use])])])])):Te("",!0)])}const pC=Le(foe,[["render",cse]]),dse={class:"overflow-hidden rounded-lg bg-white border border-gray-200 transition-shadow duration-200 hover:shadow"},fse={class:"px-4 py-5 sm:p-6"},pse={class:"mb-3 flex items-center justify-between"},hse={class:"text-base font-medium text-gray-800"},mse={class:"flex items-center gap-3"},gse={class:"flex items-center gap-2"},vse={key:0,class:"rounded-full bg-green-100 px-3 py-1 text-xs font-medium text-green-600"},yse={key:1,class:"rounded-full bg-gray-100 px-3 py-1 text-xs font-medium text-gray-500"},_se=m("svg",{class:"size-3 text-gray-400",fill:"none",viewBox:"0 0 12 12"},[m("path",{d:"M4 8l2-2m0 0l2-2M6 6L4 4m2 2l2 2",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1),bse=[_se],wse=m("svg",{class:"size-3 text-green-600",fill:"currentColor",viewBox:"0 0 12 12"},[m("path",{d:"M3.707 5.293a1 1 0 00-1.414 1.414l1.414-1.414zM5 8l-.707.707a1 1 0 001.414 0L5 8zm4.707-3.293a1 1 0 00-1.414-1.414l1.414 1.414zm-7.414 2l2 2 1.414-1.414-2-2-1.414 1.414zm3.414 2l4-4-1.414-1.414-4 4 1.414 1.414z"})],-1),Sse=[wse],Ese={key:0,class:"bg-gray-50 px-4 py-4 sm:px-6"},$se=ge({__name:"Feature",props:{title:{type:String,required:!0},modelValue:{type:Boolean,required:!0}},emits:["update:modelValue"],setup(e){return(t,n)=>(I(),F("div",dse,[m("div",fse,[m("div",pse,[m("h3",hse,L(e.title),1),m("div",mse,[m("div",gse,[yn(t.$slots,"settings-action"),e.modelValue?(I(),F("span",vse,"Active")):(I(),F("span",yse,"Disabled"))]),z(vn(DT),{modelValue:e.modelValue,"onUpdate:modelValue":n[0]||(n[0]=r=>t.$emit("update:modelValue",r)),class:gt([e.modelValue?"bg-green-600":"bg-gray-200","relative inline-flex h-6 w-11 shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-green-600 focus:ring-offset-2"])},{default:_e(()=>[m("span",{class:gt([e.modelValue?"translate-x-5":"translate-x-0","pointer-events-none relative inline-block size-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out"])},[m("span",{class:gt([e.modelValue?"opacity-0 duration-100 ease-out":"opacity-100 duration-200 ease-in","absolute inset-0 flex size-full items-center justify-center transition-opacity"]),"aria-hidden":"true"},bse,2),m("span",{class:gt([e.modelValue?"opacity-100 duration-200 ease-in":"opacity-0 duration-100 ease-out","absolute inset-0 flex size-full items-center justify-center transition-opacity"]),"aria-hidden":"true"},Sse,2)],2)]),_:1},8,["modelValue","class"])])]),yn(t.$slots,"default")]),t.$slots.footer?(I(),F("div",Ese,[yn(t.$slots,"footer")])):Te("",!0)]))}}),xse=ge({components:{Feature:$se,PlusFileMigration:pC,Cog6ToothIcon:RV},setup(){return{state:ut({features:B.plus.features,files:B.plusFileMigration.episodesWithFiles,isMigrationComplete:B.plusFileMigration.isMigrationComplete,showMigrationToolManually:B.plusFileMigration.showMigrationToolManually}),dispatch:Ze().dispatch}},created(){this.dispatch(qd()),this.dispatch(p8())},methods:{handleFeatureToggle(e){this.dispatch(Kh({feature:e,value:!this.features[e]}))},toggleMigrationTool(){this.dispatch(_8())}},computed:{features(){return this.state.features},needsMigration(){return!this.state.isMigrationComplete&&this.state.files&&this.state.files.length>0},showMigrationTool(){return this.state.showMigrationToolManually}}}),Tse={class:"mb-6 rounded-lg bg-white p-6 shadow-sm"},Cse=m("div",{class:"mb-6"},[m("h2",{class:"mb-2 text-xl font-medium text-gray-700"},"Manage Features"),m("p",{class:"text-sm text-gray-600"}," Enable or disable PLUS features. Changes will take effect immediately. ")],-1),Ose={class:"space-y-3"},Ase=m("span",null,"Show Migration Tool",-1),kse=m("p",{class:"text-sm text-gray-600 mb-2"}," Store your podcast files in fast and reliable cloud storage. Don't worry about dealing with WordPress performance issues as your podcast grows. Focus on creating great content and let us handle the rest. ",-1),Ise=m("p",{class:"text-sm text-gray-600 mb-2"}," You can enable file storage by using the feature switch here. This will automatically upload your podcast files to the cloud and make them available for download. ",-1),Pse=m("p",{class:"text-sm text-gray-600"}," If at any point you want to disable file storage, you can do so by disabling the feature here. Then files will be served from your local WordPress or FTP storage again, as you configure it here in the plugin. ",-1),Rse=m("p",{class:"text-sm text-gray-600"}," When Feed Proxy is enabled, all feed requests are automatically redirected to the corresponding proxy feed URL. It can be disabled at any time without risk of losing subscribers because a temporary redirect (HTTP 307) is used. ",-1);function Lse(e,t,n,r,o,i){const l=q("Cog6ToothIcon"),a=q("PlusFileMigration"),c=q("Feature");return I(),F("div",Tse,[Cse,m("div",Ose,[z(c,{title:"File Storage",modelValue:e.features.fileStorage,"onUpdate:modelValue":t[1]||(t[1]=d=>e.handleFeatureToggle("fileStorage"))},Ow({default:_e(()=>[kse,Ise,Pse]),_:2},[e.features.fileStorage?{name:"settings-action",fn:_e(()=>[m("button",{onClick:t[0]||(t[0]=(...d)=>e.toggleMigrationTool&&e.toggleMigrationTool(...d)),class:"p-1 text-gray-400 hover:text-gray-600 transition-colors flex items-center gap-1",title:"Show Migration Tool"},[z(l,{class:"size-5"}),Be(),Ase])]),key:"0"}:void 0,e.features.fileStorage&&(e.needsMigration||e.showMigrationTool)?{name:"footer",fn:_e(()=>[z(a)]),key:"1"}:void 0]),1032,["modelValue"]),z(c,{title:"Feed Proxy",modelValue:e.features.feedProxy,"onUpdate:modelValue":t[2]||(t[2]=d=>e.handleFeatureToggle("feedProxy"))},{default:_e(()=>[Rse]),_:1},8,["modelValue"])])])}const Fse=Le(xse,[["render",Lse]]),Nse={class:"space-y-4"},Mse={for:"api_token",class:"block text-sm font-medium text-gray-700 mb-2"},Dse={class:"relative"},Use=["type","value","placeholder"],Bse={class:"text-sm text-gray-600"},jse={class:"flex items-center justify-between"},Vse={class:"flex-1"},Hse={class:"flex gap-2"},zse={href:"https://plus.podlove.org/tokens",target:"_blank",class:"inline-flex items-center px-3 py-2 border border-gray-300 shadow-sm text-sm leading-4 font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500"},Wse=["disabled"],qse={key:0,class:"animate-spin -ml-1 mr-2 h-4 w-4 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},Kse=m("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),Gse=m("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"},null,-1),Xse=[Kse,Gse],Yse=ge({__name:"TokenInput",props:{modelValue:{type:String,default:""},isTokenValid:{type:Boolean,default:!1},isSaving:{type:Boolean,default:!1}},emits:["update:modelValue","save"],setup(e){const t=$e(!1);return(n,r)=>(I(),F("div",Nse,[m("div",null,[m("label",Mse,L(n.__("API Token","podlove-podcasting-plugin-for-wordpress")),1),m("div",Dse,[m("input",{type:t.value?"text":"password",id:"api_token",value:e.modelValue,onInput:r[0]||(r[0]=o=>n.$emit("update:modelValue",o.target.value)),class:"w-full px-3 py-2 pr-10 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500",placeholder:n.__("Enter your API token","podlove-podcasting-plugin-for-wordpress")},null,40,Use),m("button",{type:"button",onClick:r[1]||(r[1]=o=>t.value=!t.value),class:"absolute inset-y-0 right-0 pr-3 flex items-center text-gray-400 hover:text-gray-600 focus:outline-none"},[t.value?(I(),Ye(vn(MV),{key:0,class:"h-5 w-5"})):(I(),Ye(vn(NV),{key:1,class:"h-5 w-5"}))])])]),m("div",Bse,[yn(n.$slots,"default")]),m("div",jse,[m("div",Vse,[yn(n.$slots,"status")]),m("div",Hse,[m("a",zse,L(n.__("Get Token","podlove-podcasting-plugin-for-wordpress")),1),m("button",{type:"button",disabled:e.isSaving,onClick:r[2]||(r[2]=o=>n.$emit("save")),class:"inline-flex items-center px-3 py-2 border border-transparent text-sm leading-4 font-medium rounded-md text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 disabled:opacity-50 disabled:cursor-not-allowed"},[e.isSaving?(I(),F("svg",qse,Xse)):Te("",!0),Be(" "+L(e.isSaving?n.__("Saving...","podlove-podcasting-plugin-for-wordpress"):n.__("Save Token","podlove-podcasting-plugin-for-wordpress")),1)],8,Wse)])])]))}}),Jse=ge({components:{TokenInput:Yse,CheckCircleIcon:rC,XCircleIcon:Iv,InformationCircleIcon:LX},setup(){const e=Ze();return{state:ut({token:t=>B.plus.token(t),user:t=>B.plus.user(t),isLoading:t=>B.plus.isLoading(t),isSaving:t=>B.plus.isSaving(t)}),dispatch:e.dispatch}},created(){this.dispatch(qd())},computed:{apiToken(){return this.state.token},isTokenValid(){return this.state.user!==null},userEmail(){var e;return((e=this.state.user)==null?void 0:e.email)||""},showContent(){return!this.state.isLoading}},methods:{handleTokenUpdate(e){this.dispatch(Gh(e))},handleSaveToken(){this.dispatch(E8(this.apiToken))}}}),Zse={class:"mb-6 rounded-lg bg-white p-6 shadow-sm"},Qse={class:"mb-6"},eie={class:"mb-2 text-xl font-medium text-gray-700"},tie={class:"text-sm text-gray-600"},nie={key:0,class:"space-y-3"},rie=m("div",{class:"animate-pulse"},[m("div",{class:"h-4 bg-gray-200 rounded w-3/4 mb-4"}),m("div",{class:"h-10 bg-gray-200 rounded mb-4"}),m("div",{class:"h-4 bg-gray-200 rounded w-1/2"})],-1),oie=[rie],sie={key:1,class:"space-y-3"},iie={key:0,class:"flex items-center gap-2 text-sm text-gray-600"},lie={key:1,class:"flex items-center gap-2 text-sm text-red-600"},aie={key:2,class:"flex items-center gap-2 text-sm text-gray-600"};function uie(e,t,n,r,o,i){const l=q("CheckCircleIcon"),a=q("XCircleIcon"),c=q("InformationCircleIcon"),d=q("TokenInput");return I(),F("div",Zse,[m("div",Qse,[m("h2",eie,L(e.__("Authentication","podlove-podcasting-plugin-for-wordpress")),1),m("p",tie,L(e.__("Publisher PLUS provides additional features and services for your podcast. Enter your API token below to activate these features.","podlove-podcasting-plugin-for-wordpress")),1)]),e.state.isLoading?(I(),F("div",nie,oie)):(I(),F("div",sie,[z(d,{modelValue:e.apiToken,isTokenValid:e.isTokenValid,isSaving:e.state.isSaving,"onUpdate:modelValue":e.handleTokenUpdate,onSave:e.handleSaveToken},{status:_e(()=>[e.apiToken&&e.isTokenValid?(I(),F("div",iie,[z(l,{class:"w-4 h-4 text-green-600"}),m("span",null,[Be(L(e.__("You are logged in as","podlove-podcasting-plugin-for-wordpress"))+" ",1),m("strong",null,L(e.userEmail),1)])])):e.apiToken&&!e.isTokenValid?(I(),F("div",lie,[z(a,{class:"w-4 h-4"}),m("span",null,L(e.__("Invalid API token","podlove-podcasting-plugin-for-wordpress")),1)])):(I(),F("div",aie,[z(c,{class:"w-4 h-4"}),m("span",null,L(e.__("No API token configured","podlove-podcasting-plugin-for-wordpress")),1)]))]),_:1},8,["modelValue","isTokenValid","isSaving","onUpdate:modelValue","onSave"])]))])}const cie=Le(Jse,[["render",uie]]),die=ge({name:"PodloveCombobox",components:{Combobox:pT,ComboboxButton:hT,ComboboxInput:mT,ComboboxOption:vT,ComboboxOptions:gT,CheckIcon:hf,SelectorIcon:mf},props:{options:Array,selectValues:Array,placeholder:{type:String,default:"Select an option"},multiple:{type:Boolean,default:!1},error:String},computed:{label(){var t;const e=(t=this.selectValues)==null?void 0:t.length;return e===0?"No option is selected":e===1?"One option is selected":(e==null?void 0:e.toString())+" options are selected"},filterOptions(){var e;return this.query===""?this.options:(e=this.options)==null?void 0:e.filter(t=>t.title.toLowerCase().includes(this.query.toLowerCase()))}},data(){return{query:""}},methods:{selectItem(e){this.$emit("update",e)},onChange(e){this.query=e.target.value},resetQuery(){this.query=""}}}),fie={class:"relative mt-1 focus-visible:border-indigo-500 focus:ring-indigo-500"},pie={class:"shadow-sm flex sm:text-sm rounded-md absolute inset-y-0 right-10 items-center pr-2 pointer-events-none"},hie={key:0,class:"cursor-default select-none relative py-2 px-4 text-gray-700"},mie={key:0,class:"flex absolute inset-y-0 left-0 items-center pl-3 text-amber-600"},gie={key:0,class:"text-xs text-red-400 mt-1"};function vie(e,t,n,r,o,i){const l=q("ComboboxInput"),a=q("SelectorIcon"),c=q("ComboboxButton"),d=q("CheckIcon"),p=q("ComboboxOption"),h=q("ComboboxOptions"),v=q("Combobox",!0);return I(),Ye(v,{"model-value":e.selectValues,multiple:e.multiple,"onUpdate:modelValue":t[0]||(t[0]=y=>e.selectItem(y))},{default:_e(()=>[m("div",fie,[z(c,{class:"w-full flex items-center",onClick:e.resetQuery},{default:_e(()=>[z(l,{onChange:e.onChange,class:"relative py-2 pl-3 w-full bg-white rounded-lg shadow-md cursor-default sm:text-sm border-gray-300"},null,8,["onChange"]),m("div",pie,L(e.label),1),z(a,{class:"w-5 h-5 text-gray-400","aria-hidden":"true"})]),_:1},8,["onClick"]),z(Cs,{"leave-active-class":` 149 149 transition 150 150 duration-100 … … 154 154 `,"leave-to-class":` 155 155 opacity-0 156 `},{default:_e(()=>[z(h,{class:"-top-2 transform -translate-y-full overflow-auto absolute z-10 py-1 mt-1 w-full max-h-60 text-base bg-white rounded-md ring-1 ring-black ring-opacity-5 shadow-lg focus:outline-none sm:text-sm"},{default:_e(()=>{var y;return[((y=e.filterOptions)==null?void 0:y.length)===0&&e.query!==""?(I(),F("div",hie," Nothing found. ")):Te("",!0),(I(!0),F(Me,null,Ot(e.filterOptions,b=>(I(),Ye(p,{key:b.title,value:b.id,as:"template"},{default:_e(({active:S,selected:T})=>[m("li",{class:gt([S?"bg-amber-100 text-amber-900":"text-gray-900","relative cursor-default select-none py-2 pl-10 pr-4"])},[m("span",{class:gt([T?"font-medium":"font-normal","block truncate"])},L(b.title),3),T?(I(),F("span",mie,[z(d,{"aria-hidden":"true",class:"w-5 h-5"})])):Te("",!0)],2)]),_:2},1032,["value"]))),128))]}),_:1})]),_:1}),e.error?(I(),F("div",gie,L(e.error),1)):Te("",!0)])]),_:1},8,["model-value","multiple"])}const yie=Le(die,[["render",vie]]),_ie=ge({name:"PodloveTag",components:{XCircleIcon: Pv},props:{value:String,id:Number},methods:{removeTag(){this.$emit("removeTag",this.id)}}}),bie={class:"m-1 inline-flex"},wie={class:"flex items-center text-xs font-bold uppercase px-3 py-1 bg-indigo-200 text-indigo-700 rounded-full"};function Sie(e,t,n,r,o,i){const l=q("XCircleIcon");return I(),F("div",bie,[m("span",wie,[Be(L(e.value)+" ",1),m("button",{class:"ml-1",onClick:t[0]||(t[0]=(...a)=>e.removeTag&&e.removeTag(...a))},[z(l,{class:"w-5 h-5"})])])])}const Eie=Le(_ie,[["render",Sie]]),$ie=ge({components:{Module:In,PodloveListbox:yie,Tag:Eie},setup(){return{state:ut({episodeList:B.relatedEpisodes.episodeList,selectEpisodes:B.relatedEpisodes.selectEpisode}),dispatch:Ze().dispatch}},created(){this.dispatch(hD())},computed:{fullEpisodeList(){return this.state.episodeList.length==0?this.state.episodeList:this.state.selectEpisodes.length==0?[{id:0,title:"Select all episodes"},...this.state.episodeList]:[{id:-1,title:"Deselect all episodes"},...this.state.episodeList]},selectEpisodeNames(){var e;return(e=this.state.episodeList)==null?void 0:e.filter(t=>this.state.selectEpisodes.includes(t.id))}},methods:{updateRelEpisodes(e){e.includes(0)?this.state.selectEpisodes=this.state.episodeList.map(function(t){return t.id}):e.includes(-1)?this.state.selectEpisodes=[]:this.state.selectEpisodes=e,this.dispatch(G$(this.state.selectEpisodes))},removeTag(e){const t=this.state.selectEpisodes.findIndex(n=>n==e);this.state.selectEpisodes.splice(t,1)}}}),xie={class:"p-3"},Tie={class:"mt-2 text-sm text-gray-500"},Cie={class:"pl-3 pb-3"};function Oie(e,t,n,r,o,i){const l=q("PodloveListbox"),a=q("Tag"),c=q("module");return I(),Ye(c,{name:"relatedEpisodes",title:e.__("Related episodes","podlove-podcasting-plugin-for-wordpress")},{default:_e(()=>[m("div",xie,[m("div",null,[z(l,{placeholder:"Select episode",options:e.fullEpisodeList,selectValues:e.state.selectEpisodes,onUpdate:t[0]||(t[0]=d=>e.updateRelEpisodes(d)),multiple:""},null,8,["options","selectValues"])]),m("p",Tie,L(e.__("Select related episodes to this episode.","podlove-podcasting-plugin-for-wordpress")),1)]),m("div",Cie,[(I(!0),F(Me,null,Ot(e.selectEpisodeNames,d=>(I(),Ye(a,{value:d.title,id:Number(d.id),onRemoveTag:t[1]||(t[1]=p=>e.removeTag(p))},null,8,["value","id"]))),256))])]),_:1},8,["title"])}const Aie=Le($ie,[["render",Oie]]),kie=ge({components:{PodloveButton:Pn},setup(){return{dispatch:Ze().dispatch}},methods:{clearSoundbite(){this.dispatch(bt({prop:"soundbite_start",value:null})),this.dispatch(bt({prop:"soundbite_duration",value:null})),this.dispatch(bt({prop:"soundbite_title",value:null}))}}});function Iie(e,t,n,r,o,i){const l=q("podlove-button");return I(),Ye(l,{variant:"secondary",size:"small",onClick:t[0]||(t[0]=a=>e.clearSoundbite())},{default:_e(()=>[Be(L(e.__("Clear","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})}const Pie=Le(kie,[["render",Iie]]),Rie=ge({setup(){return{state:ut({soundbite_start:B.episode.soundbite_start,soundbite_duration:B.episode.soundbite_duration,soundbite_title:B.episode.soundbite_title}),dispatch:Ze().dispatch}},computed:{soundbite_end(){if(this.state.soundbite_start!=null&&this.state.soundbite_duration!=null){let e=Dt.fromString(this.state.soundbite_start).totalMs,t=Dt.fromString(this.state.soundbite_duration).totalMs,n=e+t;return new Dt(n).pretty}return""}},methods:{updateSoundbiteStart(e){const t=e.target.value;let n=Dt.fromString(t).totalMs;this.dispatch(bt({prop:"soundbite_start",value:new Dt(n).pretty}))},updateSoundbiteEnd(e){const t=e.target.value;let n=Dt.fromString(t).totalMs,r=Dt.fromString(this.state.soundbite_start).totalMs;if(r<n){let o=n-r;this.dispatch(bt({prop:"soundbite_duration",value:new Dt(o).pretty}))}},updateSoundbiteDuration(e){const t=e.target.value;let n=Dt.fromString(t).totalMs;this.dispatch(bt({prop:"soundbite_duration",value:new Dt(n).pretty}))},updateSoundbiteTitle(e){this.dispatch(bt({prop:"soundbite_title",value:e.target.value}))}}}),Lie={class:"grid md:grid-cols-4 md:grid-rows-1 sm:grid-rows-4 p-3"},Fie={class:"mb-5 ml-5"},Nie={for:"soundbite-start",class:"block text-sm font-medium text-gray-700"},Mie={class:"mt-1"},Die=["value"],Uie={class:"mb-5 ml-5"},Bie={for:"soundbite-end",class:"block text-sm font-medium text-gray-700"},jie={class:"mt-1"},Vie=["value"],Hie={class:"mb-5 ml-5"},zie={for:"soundbite-duration",class:"block text-sm font-medium text-gray-700"},Wie={class:"mt-1"},qie=["value"],Kie={class:"mb-5 ml-5 md:mr-5"},Gie={for:"soundbite-title",class:"block text-sm font-medium text-gray-700"},Xie={class:"text-xs"},Yie={class:"mt-1"},Jie=["value"];function Zie(e,t,n,r,o,i){return I(),F("div",Lie,[m("div",Fie,[m("label",Nie,L(e.__("Start","podlove-podcasting-plugin-for-wordpress")),1),m("div",Mie,[m("input",{name:"soundbite-start",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",placeholder:"HH:MM:SS",value:e.state.soundbite_start,onChange:t[0]||(t[0]=l=>e.updateSoundbiteStart(l))},null,40,Die)])]),m("div",Uie,[m("label",Bie,L(e.__("End","podlove-podcasting-plugin-for-wordpress")),1),m("div",jie,[m("input",{name:"soundbite-end",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",placeholder:"HH:MM:SS",value:e.soundbite_end,onChange:t[1]||(t[1]=l=>e.updateSoundbiteEnd(l))},null,40,Vie)])]),m("div",Hie,[m("label",zie,L(e.__("Duration","podlove-podcasting-plugin-for-wordpress")),1),m("div",Wie,[m("input",{name:"soundbite-duration",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",placeholder:"HH:MM:SS",value:e.state.soundbite_duration,onChange:t[2]||(t[2]=l=>e.updateSoundbiteDuration(l))},null,40,qie)])]),m("div",Kie,[m("label",Gie,[Be(L(e.__("Soundbite title","podlove-podcasting-plugin-for-wordpress"))+" ",1),m("span",Xie,L(e.__("(optional)","podlove-podcasting-plugin-for-wordpress")),1)]),m("div",Yie,[m("input",{name:"soundbite-title",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",value:e.state.soundbite_title,onChange:t[3]||(t[3]=l=>e.updateSoundbiteTitle(l))},null,40,Jie)])])])}const Qie=Le(Rie,[["render",Zie]]),ele=ge({components:{Module:In,SoundbiteForm:Qie,SoundbiteClear:Pie},setup(){return{dispatch:Ze().dispatch}},created(){this.dispatch(Hd())}});function tle(e,t,n,r,o,i){const l=q("soundbite-clear"),a=q("soundbite-form"),c=q("module");return I(),Ye(c,{name:"soundbite",title:e.__("Soundbite","podlove-podcasting-plugin-for-wordpress")},{actions:_e(()=>[z(l)]),default:_e(()=>[z(a)]),_:1},8,["title"])}const nle=Le(ele,[["render",tle]]),rle=ge({components:{},setup(){return{state:ut({shows:B.shows.list,current:B.episode.currentShow}),dispatch:Ze().dispatch}},computed:{shows(){return this.state.shows},current(){return this.state.current||""}},methods:{setShow(e){this.dispatch(bt({prop:"show",value:e??""}))}},created(){this.dispatch(X$())}}),ole={class:"flex items-center"},sle=["checked"],ile={for:"podlove-show-default",class:"ml-2 block text-sm leading-6 text-gray-900"},lle={class:"flex items-center"},ale=["id","value","onInput","checked"],ule=["for"];function cle(e,t,n,r,o,i){return I(),F("div",null,[m("div",ole,[m("input",{id:"podlove-show-default",name:"podlove-episode-show",type:"radio",class:"h-4 w-4 border-gray-300 text-indigo-600 focus:ring-indigo-600",value:null,onInput:t[0]||(t[0]=l=>e.setShow(null)),checked:e.current===""},null,40,sle),m("label",ile,L(e.__("Podcast (no show assignment)","podlove-podcasting-plugin-for-wordpress")),1)]),(I(!0),F(Me,null,Ot(e.shows,l=>(I(),F("div",lle,[m("input",{id:"podlove-show-"+l.slug,name:"podlove-episode-show",type:"radio",class:"h-4 w-4 border-gray-300 text-indigo-600 focus:ring-indigo-600",value:l.id,onInput:a=>e.setShow(l.slug),checked:l.slug===e.current},null,40,ale),m("label",{for:"podlove-show-"+l.slug,class:"ml-2 block text-sm leading-6 text-gray-900"},L(l.title),9,ule)]))),256))])}const dle=Le(rle,[["render",cle],["__scopeId","data-v-eaebb871"]]);var Mt=(e=>(e.cc0="Public Domain License",e.pdmark="Public Domain Mark License",e.cc3="Creative Commons 3.0 and earlier",e.cc4="Creative Commons 4.0",e))(Mt||{}),_r=(e=>(e.yes="Yes",e.no="No",e))(_r||{}),gn=(e=>(e.yes="Yes",e.yesbutshare="Yes, as long as others share alike",e.no="No",e))(gn||{}),fn=(e=>(e.Episode="Episode",e.Podcast="Podcast",e))(fn||{});const Wi=[{symbol:"international",name:"International",version:"3.0"},{symbol:"ar",name:"Argentina",version:"2.5"},{symbol:"au",name:"Australia",version:"3.0"},{symbol:"at",name:"Austria",version:"3.0"},{symbol:"be",name:"Belgium",version:"2.0"},{symbol:"br",name:"Brazil",version:"3.0"},{symbol:"bg",name:"Bulgaria",version:"2.5"},{symbol:"ca",name:"Canada",version:"2.5"},{symbol:"cl",name:"Chile",version:"3.0"},{symbol:"cn",name:"China Mainland",version:"3.0"},{symbol:"co",name:"Colombia",version:"2.5"},{symbol:"cr",name:"Costa Rica",version:"3.0"},{symbol:"hr",name:"Croatia",version:"3.0"},{symbol:"cz",name:"Czech Republic",version:"3.0"},{symbol:"dk",name:"Denmark",version:"2.5"},{symbol:"ec",name:"Ecuador",version:"3.0"},{symbol:"eg",name:"Egypt",version:"3.0"},{symbol:"ee",name:"Estonia",version:"3.0"},{symbol:"fi",name:"Finland",version:"1.0"},{symbol:"fr",name:"France",version:"3.0"},{symbol:"de",name:"Germany",version:"3.0"},{symbol:"gr",name:"Greece",version:"3.0"},{symbol:"gt",name:"Guatemala",version:"3.0"},{symbol:"hk",name:"Hong Kong",version:"3.0"},{symbol:"hu",name:"Hungary",version:"2.5"},{symbol:"igo",name:"IGO",version:"3.0"},{symbol:"in",name:"India",version:"2.5"},{symbol:"ie",name:"Ireland",version:"3.0"},{symbol:"il",name:"Israel",version:"2.5"},{symbol:"it",name:"Italy",version:"3.0"},{symbol:"jp",name:"Japan",version:"2.1"},{symbol:"lu",name:"Luxembourg",version:"3.0"},{symbol:"mk",name:"Macedonia",version:"2.5"},{symbol:"my",name:"Malaysia",version:"2.5"},{symbol:"mt",name:"Malta",version:"2.5"},{symbol:"mx",name:"Mexico",version:"2.5"},{symbol:"nl",name:"Netherlands",version:"3.0"},{symbol:"nz",name:"New Zealand",version:"3.0"},{symbol:"no",name:"Norway",version:"3.0"},{symbol:"pe",name:"Peru",version:"2.5"},{symbol:"ph",name:"Philippines",version:"3.0"},{symbol:"pl",name:"Poland",version:"3.0"},{symbol:"pt",name:"Portugal",version:"3.0"},{symbol:"pr",name:"Puerto Rico",version:"3.0"},{symbol:"ro",name:"Romania",version:"3.0"},{symbol:"rs",name:"Serbia",version:"3.0"},{symbol:"sg",name:"Singapore",version:"3.0"},{symbol:"si",name:"Slovenia",version:"2.5"},{symbol:"za",name:"South Africa",version:"2.5"},{symbol:"kp",name:"South Korea",version:"2.0"},{symbol:"es",name:"Spain",version:"3.0"},{symbol:"se",name:"Sweden",version:"2.5"},{symbol:"ch",name:"Switzerland",version:"3.0"},{symbol:"tw",name:"Taiwan",version:"3.0"},{symbol:"th",name:"Thailand",version:"3.0"},{symbol:"gb",name:"UK: England & Wales",version:"2.0"},{symbol:"gb_sc",name:"UK: Scotland",version:"2.5"},{symbol:"ug",name:"Uganda",version:"3.0"},{symbol:"us",name:"United States",version:"3.0"},{symbol:"vn",name:"Vietnam",version:"3.0"}],fle=ge({components:{Module:In},props:{scope:{type:String,default:fn.Episode}},setup(){return{state:ut({episodeLicenseName:B.episode.license_name,podcastLicenseName:B.podcast.license_name}),dispatch:Ze().dispatch}},created(){this.dispatch(Hd())},computed:{getLicenseName(){return this.scope==fn.Episode?this.state.episodeLicenseName:this.state.podcastLicenseName}},methods:{updateLicenseName(e){this.scope===fn.Episode&&this.dispatch(bt({prop:"license_name",value:e.target.value})),this.scope===fn.Podcast&&this.dispatch(oa({prop:"license_name",value:e.target.value}))}}}),ple={for:"episode-license-name",class:"block text-sm font-medium text-gray-700"},hle={class:"mt-1"},mle=["value"];function gle(e,t,n,r,o,i){return I(),F("div",null,[m("label",ple,L(e.__("License name","podlove-podcasting-plugin-for-wordpress")),1),m("div",hle,[m("input",{name:"episode-license-name",type:"text",value:e.getLicenseName,onInput:t[0]||(t[0]=(...l)=>e.updateLicenseName&&e.updateLicenseName(...l)),class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md"},null,40,mle)])])}const vle=Le(fle,[["render",gle]]),yle=ge({components:{Module:In},props:{scope:{type:String,default:fn.Episode}},setup(){return{state:ut({episodeLicenseUrl:B.episode.license_url,podcastLicenseUrl:B.podcast.license_url}),dispatch:Ze().dispatch}},created(){this.dispatch(Hd())},computed:{getLicenseUrl(){return this.scope==fn.Episode?this.state.episodeLicenseUrl:this.state.podcastLicenseUrl}},methods:{updateLicenseUrl(e){this.scope===fn.Episode&&this.dispatch(bt({prop:"license_url",value:e.target.value})),this.scope===fn.Podcast&&this.dispatch(oa({prop:"license_url",value:e.target.value}))}}}),_le={for:"episode-license-name",class:"block text-sm font-medium text-gray-700"},ble={class:"mt-1"},wle=["value"],Sle={class:"mt-2 text-sm text-gray-500"};function Ele(e,t,n,r,o,i){return I(),F("div",null,[m("label",_le,L(e.__("License url","podlove-podcasting-plugin-for-wordpress")),1),m("div",ble,[m("input",{name:"episode-license-name",type:"text",value:e.getLicenseUrl,onInput:t[0]||(t[0]=(...l)=>e.updateLicenseUrl&&e.updateLicenseUrl(...l)),class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md"},null,40,wle)]),m("p",Sle,L(e.__("Example: http://creativecommons.org/licenses/by/3.0/","podlove-podcasting-plugin-for-wordpress")),1)])}const $le=Le(yle,[["render",Ele]]),xle="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFgAAAAfCAMAAABUFvrSAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAPBQTFRFLy8v7+/vz8/PHx8fDw8P+vn3X19fj4+P39/fn5+fb29vT09Pr6+v+fn53t7eZWVl6urq/f395+fn5eXl9/f38fHxMTEx+/v7jo6Ozc3N2dnZ8/PzhISE/v7+5OTk9vXz6ejoPj4+kJCQ3d3d6unnxcXFi4uL0tLS5ubm9PT0QUFB4uLi1dXV7Ozsvr6+LCwsy8vL6urnnp6ezs7O+Pj48vLyenp69fX1+fj2urq6CgsJ09PTl5eXt7e31tbW4eHhjY2N9vb2U1NTGRkZTU1NbW1tioqKf39/ysrK6Oflv7+/Pz8/7erh////AAAA////iBrkuAAAAFB0Uk5T/////////////////////////////////////////////////////////////////////////////////////////////////////////wATc6Z5AAACrklEQVR42rSW53bbMAyFOVSRGnbsZji7e++992ALFsj7v00BaiTpsfzDtXGOEw3qI3B1QUqd0FriRNGftQQpwrXEebAHDr1qsC9tI48Nejq69+g/Re7B4czFbPfLZFytBKwVH1eFQTRF5MPvn45vqRWAhatMJwrI2fb4zds0IoYQctbHys/yCUuWp/oCp5AXKZEhcM4j5L8BELxmGX5M3h2mEQHBY4gYiX8RjUEgQLnD8jn0GqtBcM0yCC/NHcUWnPOH4z3VgIk09OBIRvdgy5Nk4AbBlrKWlshikYyubI9fNuBQYNGDOYoeHLFcpLEhKtJ4olLg0Jhkf3KjlQKKrAeXsUZ1CuZsi8GMeVZJuBKIqFFKykS7B+OdVgoehyBEAYOA+SWKxl5XZcpoLjim6jEj8tBpwbrkW5sbPTjV5JpbLtWEAlaeC86GwIofloFcnKIo2aX84+jixtmuifMBalhj6sEF2cRPIv8DXqJBTjO2VEMrRZ9xzgtT4GQrgFqRAh5QisOs/FGQK2BFQC3WmA/gVOMGzK4wbJyI3mlto3ST9Aj3Bj8RxRnyTuNiV5CXJhRXaHbF1mbnCvZDzZgqYWqLAvaeH2zAZgBs0vSNj5lLpvHxtYNx13kVRpEgOddg4NbnS7k3DdhhPR88v/Pi6MFhB3YM7grnemqepUCj0aYrfG8A3OrarBWVbla7h89v7/Qt7XmRMiGRIssFkPGpQ9eArR4Ai7DCk9XNt6toOdt+n0aIKwreXIJHU8n7LyFzLgKj6iK5QrFN1PB6bKFbj2vG5NNX97+tYgeRUpQDrcHJ1pcfjSZ3V7TnnWnYrD6avfi6os0UdWh3aeU0Trf2n169+XPp+Hz+u0L33xXTO5sf9x7/WjqeMXh2YU68vqSfXP69fFynNX67rSn+CjAANTLO7qEvlcgAAAAASUVORK5CYII=",Tle="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFgAAAAfCAMAAABUFvrSAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAPNQTFRFv7+/7+/vX19fDw8PHx8fn5+fLy8v39/fz8/Pb29vr6+vT09Pj4+P+fn5/f39ZWVl5eXlzs7O6urq8fHx9/f36ejovr6++/v7jY2N4+Pj2dnZp6enzc3Nenp69PT08/PzXFxc8vLyTk5OIyMj9fX13d3d5ubmXl5eDAwMNjY2JiYmra2t1NTUxcXF4uLiLCsrFxcXVVVV/v7+GRkZMTExW1tbyMjIt7e3np6ednZ2mJiY7Ozsjo6O1dXV3t7e7e3t09PTkJCQi4uL7u7uy8vLU1NTCgsJ4eHh1tbWioqKysrK5+fnf39/Pz8/7erh////AAAA7t9IFQAAArpJREFUeNq0ludy2zAQhA8dLJLl3u303nt3ejMuwPs/Te4AmrIzYn7YEjTUsIAfib1dgBDTQlqE9GchLUGKC2n/gD2AnztYGCzyNCaORz8eXlDkHmzU9KS+ezB5cWcuYCGZV9UAdcVPuLR+7+XVeYBJBWVORGkJ/Xzb737PPTCEYJMOmjdNB1IlGfhKwHwV/wOuUrJiqryzKe1vL7/OPULugPRs2pAPIEF2fwypjXRbMwiGjisMvRDbQuiU7j/Ye1TASUXowZi86MEqeqUEDIJ5SK6vH5ZHXVm9vl/AoY2mB3sXTQ9GHuuwxj7vFd14h4dLxdy5sVHAVFHVgyuEqKdguknKITBd1N1hgEqWqKS09fajLVJQs7HGOloG15HYiMgaC9FIGsEAGOm2kg7V9iVU6ebhh8c9ONXs9SxTloLDRWCk/k4PgW0efVFLVS52BsS1ydKpnhbtjPsV4rDGxVInEicJHXh0vHSxgNhUdeC6zcNCcwrMAeE0Yg2GQxL4FNVLlz/UocnxmakxS9cWQxSxNTGaAiZXOLIfRgFRkDsoD57tGLgOyM6Imj0zA0zqcg2yK3ztobPPu9Hxs6545Ic6l4ISGI3OPneCPFnAMACui8id15WPLk9Ey2uTWx24IYf5zrlOVNHxCKTzBWzoNxMcdVJiSsZiYxwfvukiTRuCUORKwrT0JgDJRC9YAzpDth4AG34nDnKF2PAkJ8hZG6OV2yeRFo5kqCufJwsXJYASnpIeClgPgfm0PLWuCJqv5Obqbj+71fQgyo5jUbGNCkBy6J0rYB7RbDC/oe1XO+Cjo2vvn85jBbF5saPUuew3+2W00sxlzRNn5r/wZPPytzktpiRgt5wq6eJ4befVp8+/zt22zn5XAK0gJks9Ppj83Pv6+9xteehLaDxaXVk/Pn9bTwv8dltQ+yvAAF/L4Ldao5NwAAAAAElFTkSuQmCC",Cle="/wp-content/plugins/podlove-publisher/client/dist/0_0.png",Ole="/wp-content/plugins/podlove-publisher/client/dist/0_1.png",Ale="/wp-content/plugins/podlove-publisher/client/dist/1_0.png",kle="/wp-content/plugins/podlove-publisher/client/dist/1_1.png",Ile="/wp-content/plugins/podlove-publisher/client/dist/10_0.png",Ple="/wp-content/plugins/podlove-publisher/client/dist/10_1.png";function ql(e){if(e.type===null||e.type!="cc")return null;if(e.version===Mt.cc0)return"http://creativecommons.org/publicdomain/zero/1.0/";if(e.version===Mt.pdmark)return"http://creativecommons.org/publicdomain/mark/1.0/";if(e.version===Mt.cc3){let t="http://creativecommons.org/licenses/by";return e.optionCommercial===_r.no&&(t=t+"-nc"),e.optionModification===gn.yes?t=t+"/":e.optionModification===gn.no?t=t+"-nd/":t=t+"-sa/",e.optionJurisdication===null||e.optionJurisdication.symbol==="international"?t=t+"3.0/":t=t+e.optionJurisdication.version+"/"+e.optionJurisdication.symbol+"/",t+"deed.en"}if(e.version===Mt.cc4){let t="http://creativecommons.org/licenses/by";return e.optionCommercial==_r.no&&(t=t+"-nc"),e.optionModification==gn.yes?t=t+"/":e.optionModification==gn.no?t=t+"-nd/":t=t+"-sa/",t+"4.0"}return null}function Nb(e,t){if(e.type===null||e.type!=="cc")return null;if(e.version===Mt.cc0)return xle;if(e.version===Mt.pdmark)return Tle;if(e.optionModification===null||e.optionCommercial===null)return null;switch(e.optionModification){case gn.no:return e.optionCommercial===_r.no?Cle:Ole;case gn.yes:return e.optionCommercial===_r.no?Ale:kle;case gn.yesbutshare:return e.optionCommercial===_r.no?Ile:Ple}}function Mb(e){const t=e.toLowerCase();if(t.indexOf("creativecommons.org")<0)return{type:null,version:null,optionCommercial:null,optionModification:null,optionJurisdication:null};let n=null;t.indexOf("/publicdomain/zero/")>=0?n=Mt.cc0:t.indexOf("/publicdomain/mark/")>=0?n=Mt.pdmark:t.indexOf("/4.0")>=0?n=Mt.cc4:n=Mt.cc3;const r=t.split("/").slice(4);let o=_r.yes;r[0].includes("nc")&&(o=_r.no);let i=gn.yes;r[0].includes("sa")?i=gn.yesbutshare:r[0].includes("nd")&&(i=gn.no);let l=Wi[0];if(r.length>2){const a=Wi.findIndex(c=>c.symbol===r[2]);a>0&&(l=Wi[a])}return{type:"cc",version:n,optionCommercial:o,optionModification:i,optionJurisdication:l}}const Rle=ge({components:{Module:In},props:{licenseData:{type:null,default:{type:"cc",version:Mt.pdmark,optionCommercial:null,optionModification:null,optionJurisdication:null}}},setup(){return{state:ut({baseUrl:B.runtime.baseUrl}),dispatch:Ze().dispatch}},computed:{licenseUrl(){return ql(this.licenseData)},imageUrl(){return Nb(this.licenseData,this.state.baseUrl)},isImageAvailable(){return Nb(this.licenseData,this.state.baseUrl)!==null}}}),Lle={class:"mt-3"},Fle=m("div",{class:"mb-3 text-sm font-medium text-gray-700"}," License preview: ",-1),Nle={key:0},Mle={class:"mb-3 w-full"},Dle={class:"flex justify-center items-center"},Ule=["src"],Ble={class:"mb-3 w-full text-center"},jle=m("p",{class:"text-sm font-medium text-gray-700"},"This work is licensend under ",-1),Vle=["href"],Hle={key:0},zle=m("p",{class:"text-sm font-medium text-gray-700"},"No license selected!",-1),Wle=[zle];function qle(e,t,n,r,o,i){return I(),F("div",Lle,[Fle,e.isImageAvailable?(I(),F("div",Nle,[m("div",null,[m("div",Mle,[m("div",Dle,[m("img",{class:"text-center",src:`${e.imageUrl}`},null,8,Ule)])]),m("div",Ble,[jle,m("a",{class:"text-sm font-medium text-gray-700",href:`${e.licenseUrl}`},L(e.licenseUrl),9,Vle)])]),e.isImageAvailable?Te("",!0):(I(),F("div",Hle,Wle))])):Te("",!0)])}const Kle=Le(Rle,[["render",qle]]),Gle=Object.entries(Mt).map(([e,t])=>({key:e,value:t})),Xle=Object.entries(_r).map(([e,t])=>({key:e,value:t})),Yle=Object.entries(gn).map(([e,t])=>({key:e,value:t})),Jle=ge({components:{PodloveButton:Pn,Modal:Za,LicensePreview:Kle},data(){return{PodloveLicenseVersionList:Gle,PodloveLicenseOptionCommercialList:Xle,PodloveLicenseOptionModificationList:Yle,PodloveLicenseOptionJurisdication:Wi}},setup(){return{state:ut({episodeLicenseUrl:B.episode.license_url,podcastLicenseUrl:B.podcast.license_url}),dispatch:Ze().dispatch}},props:{scope:{type:String,default:fn.Episode}},computed:{isCommercialNModificationNeeded(){return this.getLicenseData().type==="cc"&&(this.getLicenseData().version===Mt.cc3||this.getLicenseData().version===Mt.cc4)},isJurisdicationNeeded(){return this.getLicenseData().type==="cc"&&this.getLicenseData().version===Mt.cc3}},methods:{updateVersion(e){let t=this.getLicenseData();switch(t.type="cc",e.target.value){case Mt.cc0:t.version=Mt.cc0;break;case Mt.pdmark:t.version=Mt.pdmark;break;case Mt.cc3:t.version=Mt.cc3;break;case Mt.cc4:t.version=Mt.cc4;break}this.updateLicenseDataNameNUrl(t)},updateCommercial(e){let t=this.getLicenseData();switch(e.target.value){case _r.yes:t.optionCommercial=_r.yes;break;case _r.no:t.optionCommercial=_r.no;break}this.updateLicenseDataUrl(t)},updateModification(e){let t=this.getLicenseData();switch(e.target.value){case gn.yes:t.optionModification=gn.yes;break;case gn.yesbutshare:t.optionModification=gn.yesbutshare;break;case gn.no:t.optionModification=gn.no;break}this.updateLicenseDataUrl(t)},updateJurisdication(e){let t=this.getLicenseData();const n=e.target.value,r=Wi.findIndex(o=>o.name===n);r!==void 0&&(t.optionJurisdication=Wi[r],this.updateLicenseDataUrl(t))},updateLicenseDataUrl(e){this.scope===fn.Episode&&this.dispatch(bt({prop:"license_url",value:ql(e)})),this.scope===fn.Podcast&&this.dispatch(oa({prop:"license_url",value:ql(e)}))},updateLicenseDataNameNUrl(e){this.scope===fn.Episode&&(this.dispatch(bt({prop:"license_name",value:e.version})),this.dispatch(bt({prop:"license_url",value:ql(e)}))),this.scope===fn.Podcast&&(this.dispatch(oa({prop:"license_name",value:e.version})),this.dispatch(oa({prop:"license_url",value:ql(e)})))},getLicenseData(){return this.scope===fn.Episode?this.state.episodeLicenseUrl===null||this.state.episodeLicenseUrl===void 0?{type:"cc",version:Mt.pdmark,optionCommercial:null,optionModification:null,optionJurisdication:null}:Mb(this.state.episodeLicenseUrl):this.state.podcastLicenseUrl===null||this.state.podcastLicenseUrl===void 0?{type:"cc",version:Mt.pdmark,optionCommercial:null,optionModification:null,optionJurisdication:null}:Mb(this.state.podcastLicenseUrl)}}}),Zle={class:"border-gray-200 border-b pb-2 px-3 py-5"},Qle={class:"text-lg leading-6 font-medium text-gray-900"},eae={class:"mb-3"},tae=m("label",{class:"block text-sm font-medium text-gray-700"}," Version: ",-1),nae=["value"],rae=["value"],oae={key:0,class:"mb-3"},sae=m("label",{class:"block text-sm font-medium text-gray-700"}," Allow modifications of your work? ",-1),iae=["value"],lae=["value"],aae={key:1,class:"mb-3"},uae=m("label",{class:"block text-sm font-medium text-gray-700"}," Allow commercial uses of your work? ",-1),cae=["value"],dae=["value"],fae={key:2,class:"mb-3"},pae=m("label",{class:"block text-sm font-medium text-gray-700"}," License Jurisdiction ",-1),hae=["value"],mae=["value"],gae={class:"mb-5"};function vae(e,t,n,r,o,i){var a;const l=q("LicensePreview");return I(),F(Me,null,[m("div",Zle,[m("h3",Qle,L(e.__("License Selector","podlove-podcasting-plugin-for-wordpress")),1)]),m("div",null,[m("div",eae,[tae,m("select",{value:e.getLicenseData().version,onInput:t[0]||(t[0]=c=>e.updateVersion(c)),class:"mt-1 block w-full py-2 px-3 border border-gray-300 bg-white rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"},[(I(!0),F(Me,null,Ot(e.PodloveLicenseVersionList,(c,d)=>(I(),F("option",{value:c.value,key:`version-${d}`},L(c.value),9,rae))),128))],40,nae)]),e.isCommercialNModificationNeeded?(I(),F("div",oae,[sae,m("select",{value:e.getLicenseData().optionModification,onInput:t[1]||(t[1]=c=>e.updateModification(c)),class:"mt-1 block w-full py-2 px-3 border border-gray-300 bg-white rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"},[(I(!0),F(Me,null,Ot(e.PodloveLicenseOptionModificationList,(c,d)=>(I(),F("option",{value:c.value,key:`modification-${d}`},L(c.value),9,lae))),128))],40,iae)])):Te("",!0),e.isCommercialNModificationNeeded?(I(),F("div",aae,[uae,m("select",{value:e.getLicenseData().optionCommercial,onInput:t[2]||(t[2]=c=>e.updateCommercial(c)),class:"mt-1 block w-full py-2 px-3 border border-gray-300 bg-white rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"},[(I(!0),F(Me,null,Ot(e.PodloveLicenseOptionCommercialList,(c,d)=>(I(),F("option",{value:c.value,key:`commercial-${d}`},L(c.value),9,dae))),128))],40,cae)])):Te("",!0),e.isJurisdicationNeeded?(I(),F("div",fae,[pae,m("select",{value:(a=e.getLicenseData().optionJurisdication)==null?void 0:a.name,onInput:t[3]||(t[3]=c=>e.updateJurisdication(c)),class:"mt-1 block w-full py-2 px-3 border border-gray-300 bg-white rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"},[(I(!0),F(Me,null,Ot(e.PodloveLicenseOptionJurisdication,(c,d)=>(I(),F("option",{value:c.name,key:`jurisdiction-${d}`},L(c.name),9,mae))),128))],40,hae)])):Te("",!0),m("div",gae,[z(l,{"license-data":e.getLicenseData()},null,8,["license-data"])])])],64)}const hC=Le(Jle,[["render",vae]]),yae=ge({components:{PodloveButton:Pn,Modal:Za,LicenseSelector:hC},props:{scope:{type:String,default:fn.Episode}},data(){return{openDialog:!1}},methods:{openSelector(){this.openDialog=!0},closeSelector(){this.openDialog=!1}}});function _ae(e,t,n,r,o,i){const l=q("podlove-button"),a=q("LicenseSelector"),c=q("modal");return I(),F(Me,null,[z(l,{variant:"secondary",size:"small",onClick:e.openSelector},{default:_e(()=>[Be(L(e.__("License Selector","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["onClick"]),z(c,{open:e.openDialog,onClose:e.closeSelector},{default:_e(()=>[z(a,{scope:e.scope},null,8,["scope"])]),_:1},8,["open","onClose"])],64)}const bae=Le(yae,[["render",_ae]]),wae=ge({components:{Module:In,LicenseName:vle,LicenseUrl:$le,LicenseSelector:hC,LicenseSelectorButton:bae},props:{scope:{type:String,default:fn.Episode}},computed:{isScopeEpisode(){return this.scope===fn.Episode},getModuleTitle(){return this.scope===fn.Episode?"Episode License":"Podcast License"}}}),Sae={key:0},Eae={class:"p-3"},$ae={class:"mb-3"},xae={class:"mb-3"},Tae={key:0};function Cae(e,t,n,r,o,i){const l=q("LicenseSelectorButton"),a=q("LicenseName"),c=q("LicenseUrl"),d=q("LicenseSelector"),p=q("module");return I(),Ye(p,{name:"license",title:e.getModuleTitle},{actions:_e(()=>[e.isScopeEpisode?(I(),F("div",Sae,[z(l,{scope:e.scope},null,8,["scope"])])):Te("",!0)]),default:_e(()=>[m("div",Eae,[m("div",$ae,[z(a,{scope:e.scope},null,8,["scope"])]),m("div",xae,[z(c,{scope:e.scope},null,8,["scope"])]),e.isScopeEpisode?Te("",!0):(I(),F("div",Tae,[z(d,{scope:e.scope},null,8,["scope"])]))])]),_:1},8,["title"])}const Oae=Le(wae,[["render",Cae]]),Aae={PodloveDescription:jW,PodloveChapters:AG,PodloveTranscripts:PX,PodloveAuphonic:Aee,PodloveContributors:Cne,PodloveMediaFiles:doe,PodloveRelatedEpisodes:Aie,PodlovePlusFileMigration:pC,PodlovePlusFeatures:Fse,PodlovePlusToken:cie,PodloveSoundbite:nle,PodloveShowSelect:dle,PodloveLicense:Oae};window.addEventListener("load",()=>{document.querySelectorAll('[data-client="podlove"]:not([data-loaded="true"])').forEach(e=>{e.setAttribute("data-loaded","true");const t=C2({components:{...Aae}});I7({store:ef,app:t}),t.use(u9),t.mount(e)})});globalThis.initPodloveUI=e=>{ef.dispatch(dM(e))};156 `},{default:_e(()=>[z(h,{class:"-top-2 transform -translate-y-full overflow-auto absolute z-10 py-1 mt-1 w-full max-h-60 text-base bg-white rounded-md ring-1 ring-black ring-opacity-5 shadow-lg focus:outline-none sm:text-sm"},{default:_e(()=>{var y;return[((y=e.filterOptions)==null?void 0:y.length)===0&&e.query!==""?(I(),F("div",hie," Nothing found. ")):Te("",!0),(I(!0),F(Me,null,Ot(e.filterOptions,b=>(I(),Ye(p,{key:b.title,value:b.id,as:"template"},{default:_e(({active:S,selected:T})=>[m("li",{class:gt([S?"bg-amber-100 text-amber-900":"text-gray-900","relative cursor-default select-none py-2 pl-10 pr-4"])},[m("span",{class:gt([T?"font-medium":"font-normal","block truncate"])},L(b.title),3),T?(I(),F("span",mie,[z(d,{"aria-hidden":"true",class:"w-5 h-5"})])):Te("",!0)],2)]),_:2},1032,["value"]))),128))]}),_:1})]),_:1}),e.error?(I(),F("div",gie,L(e.error),1)):Te("",!0)])]),_:1},8,["model-value","multiple"])}const yie=Le(die,[["render",vie]]),_ie=ge({name:"PodloveTag",components:{XCircleIcon:Iv},props:{value:String,id:Number},methods:{removeTag(){this.$emit("removeTag",this.id)}}}),bie={class:"m-1 inline-flex"},wie={class:"flex items-center text-xs font-bold uppercase px-3 py-1 bg-indigo-200 text-indigo-700 rounded-full"};function Sie(e,t,n,r,o,i){const l=q("XCircleIcon");return I(),F("div",bie,[m("span",wie,[Be(L(e.value)+" ",1),m("button",{class:"ml-1",onClick:t[0]||(t[0]=(...a)=>e.removeTag&&e.removeTag(...a))},[z(l,{class:"w-5 h-5"})])])])}const Eie=Le(_ie,[["render",Sie]]),$ie=ge({components:{Module:In,PodloveListbox:yie,Tag:Eie},setup(){return{state:ut({episodeList:B.relatedEpisodes.episodeList,selectEpisodes:B.relatedEpisodes.selectEpisode}),dispatch:Ze().dispatch}},created(){this.dispatch(hD())},computed:{fullEpisodeList(){return this.state.episodeList.length==0?this.state.episodeList:this.state.selectEpisodes.length==0?[{id:0,title:"Select all episodes"},...this.state.episodeList]:[{id:-1,title:"Deselect all episodes"},...this.state.episodeList]},selectEpisodeNames(){var e;return(e=this.state.episodeList)==null?void 0:e.filter(t=>this.state.selectEpisodes.includes(t.id))}},methods:{updateRelEpisodes(e){e.includes(0)?this.state.selectEpisodes=this.state.episodeList.map(function(t){return t.id}):e.includes(-1)?this.state.selectEpisodes=[]:this.state.selectEpisodes=e,this.dispatch(G$(this.state.selectEpisodes))},removeTag(e){const t=this.state.selectEpisodes.findIndex(n=>n==e);this.state.selectEpisodes.splice(t,1)}}}),xie={class:"p-3"},Tie={class:"mt-2 text-sm text-gray-500"},Cie={class:"pl-3 pb-3"};function Oie(e,t,n,r,o,i){const l=q("PodloveListbox"),a=q("Tag"),c=q("module");return I(),Ye(c,{name:"relatedEpisodes",title:e.__("Related episodes","podlove-podcasting-plugin-for-wordpress")},{default:_e(()=>[m("div",xie,[m("div",null,[z(l,{placeholder:"Select episode",options:e.fullEpisodeList,selectValues:e.state.selectEpisodes,onUpdate:t[0]||(t[0]=d=>e.updateRelEpisodes(d)),multiple:""},null,8,["options","selectValues"])]),m("p",Tie,L(e.__("Select related episodes to this episode.","podlove-podcasting-plugin-for-wordpress")),1)]),m("div",Cie,[(I(!0),F(Me,null,Ot(e.selectEpisodeNames,d=>(I(),Ye(a,{value:d.title,id:Number(d.id),onRemoveTag:t[1]||(t[1]=p=>e.removeTag(p))},null,8,["value","id"]))),256))])]),_:1},8,["title"])}const Aie=Le($ie,[["render",Oie]]),kie=ge({components:{PodloveButton:Pn},setup(){return{dispatch:Ze().dispatch}},methods:{clearSoundbite(){this.dispatch(bt({prop:"soundbite_start",value:null})),this.dispatch(bt({prop:"soundbite_duration",value:null})),this.dispatch(bt({prop:"soundbite_title",value:null}))}}});function Iie(e,t,n,r,o,i){const l=q("podlove-button");return I(),Ye(l,{variant:"secondary",size:"small",onClick:t[0]||(t[0]=a=>e.clearSoundbite())},{default:_e(()=>[Be(L(e.__("Clear","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})}const Pie=Le(kie,[["render",Iie]]),Rie=ge({setup(){return{state:ut({soundbite_start:B.episode.soundbite_start,soundbite_duration:B.episode.soundbite_duration,soundbite_title:B.episode.soundbite_title}),dispatch:Ze().dispatch}},computed:{soundbite_end(){if(this.state.soundbite_start!=null&&this.state.soundbite_duration!=null){let e=Dt.fromString(this.state.soundbite_start).totalMs,t=Dt.fromString(this.state.soundbite_duration).totalMs,n=e+t;return new Dt(n).pretty}return""}},methods:{updateSoundbiteStart(e){const t=e.target.value;let n=Dt.fromString(t).totalMs;this.dispatch(bt({prop:"soundbite_start",value:new Dt(n).pretty}))},updateSoundbiteEnd(e){const t=e.target.value;let n=Dt.fromString(t).totalMs,r=Dt.fromString(this.state.soundbite_start).totalMs;if(r<n){let o=n-r;this.dispatch(bt({prop:"soundbite_duration",value:new Dt(o).pretty}))}},updateSoundbiteDuration(e){const t=e.target.value;let n=Dt.fromString(t).totalMs;this.dispatch(bt({prop:"soundbite_duration",value:new Dt(n).pretty}))},updateSoundbiteTitle(e){this.dispatch(bt({prop:"soundbite_title",value:e.target.value}))}}}),Lie={class:"grid md:grid-cols-4 md:grid-rows-1 sm:grid-rows-4 p-3"},Fie={class:"mb-5 ml-5"},Nie={for:"soundbite-start",class:"block text-sm font-medium text-gray-700"},Mie={class:"mt-1"},Die=["value"],Uie={class:"mb-5 ml-5"},Bie={for:"soundbite-end",class:"block text-sm font-medium text-gray-700"},jie={class:"mt-1"},Vie=["value"],Hie={class:"mb-5 ml-5"},zie={for:"soundbite-duration",class:"block text-sm font-medium text-gray-700"},Wie={class:"mt-1"},qie=["value"],Kie={class:"mb-5 ml-5 md:mr-5"},Gie={for:"soundbite-title",class:"block text-sm font-medium text-gray-700"},Xie={class:"text-xs"},Yie={class:"mt-1"},Jie=["value"];function Zie(e,t,n,r,o,i){return I(),F("div",Lie,[m("div",Fie,[m("label",Nie,L(e.__("Start","podlove-podcasting-plugin-for-wordpress")),1),m("div",Mie,[m("input",{name:"soundbite-start",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",placeholder:"HH:MM:SS",value:e.state.soundbite_start,onChange:t[0]||(t[0]=l=>e.updateSoundbiteStart(l))},null,40,Die)])]),m("div",Uie,[m("label",Bie,L(e.__("End","podlove-podcasting-plugin-for-wordpress")),1),m("div",jie,[m("input",{name:"soundbite-end",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",placeholder:"HH:MM:SS",value:e.soundbite_end,onChange:t[1]||(t[1]=l=>e.updateSoundbiteEnd(l))},null,40,Vie)])]),m("div",Hie,[m("label",zie,L(e.__("Duration","podlove-podcasting-plugin-for-wordpress")),1),m("div",Wie,[m("input",{name:"soundbite-duration",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",placeholder:"HH:MM:SS",value:e.state.soundbite_duration,onChange:t[2]||(t[2]=l=>e.updateSoundbiteDuration(l))},null,40,qie)])]),m("div",Kie,[m("label",Gie,[Be(L(e.__("Soundbite title","podlove-podcasting-plugin-for-wordpress"))+" ",1),m("span",Xie,L(e.__("(optional)","podlove-podcasting-plugin-for-wordpress")),1)]),m("div",Yie,[m("input",{name:"soundbite-title",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",value:e.state.soundbite_title,onChange:t[3]||(t[3]=l=>e.updateSoundbiteTitle(l))},null,40,Jie)])])])}const Qie=Le(Rie,[["render",Zie]]),ele=ge({components:{Module:In,SoundbiteForm:Qie,SoundbiteClear:Pie},setup(){return{dispatch:Ze().dispatch}},created(){this.dispatch(zd())}});function tle(e,t,n,r,o,i){const l=q("soundbite-clear"),a=q("soundbite-form"),c=q("module");return I(),Ye(c,{name:"soundbite",title:e.__("Soundbite","podlove-podcasting-plugin-for-wordpress")},{actions:_e(()=>[z(l)]),default:_e(()=>[z(a)]),_:1},8,["title"])}const nle=Le(ele,[["render",tle]]),rle=ge({components:{},setup(){return{state:ut({shows:B.shows.list,current:B.episode.currentShow}),dispatch:Ze().dispatch}},computed:{shows(){return this.state.shows},current(){return this.state.current||""}},methods:{setShow(e){this.dispatch(bt({prop:"show",value:e??""}))}},created(){this.dispatch(X$())}}),ole={class:"flex items-center"},sle=["checked"],ile={for:"podlove-show-default",class:"ml-2 block text-sm leading-6 text-gray-900"},lle={class:"flex items-center"},ale=["id","value","onInput","checked"],ule=["for"];function cle(e,t,n,r,o,i){return I(),F("div",null,[m("div",ole,[m("input",{id:"podlove-show-default",name:"podlove-episode-show",type:"radio",class:"h-4 w-4 border-gray-300 text-indigo-600 focus:ring-indigo-600",value:null,onInput:t[0]||(t[0]=l=>e.setShow(null)),checked:e.current===""},null,40,sle),m("label",ile,L(e.__("Podcast (no show assignment)","podlove-podcasting-plugin-for-wordpress")),1)]),(I(!0),F(Me,null,Ot(e.shows,l=>(I(),F("div",lle,[m("input",{id:"podlove-show-"+l.slug,name:"podlove-episode-show",type:"radio",class:"h-4 w-4 border-gray-300 text-indigo-600 focus:ring-indigo-600",value:l.id,onInput:a=>e.setShow(l.slug),checked:l.slug===e.current},null,40,ale),m("label",{for:"podlove-show-"+l.slug,class:"ml-2 block text-sm leading-6 text-gray-900"},L(l.title),9,ule)]))),256))])}const dle=Le(rle,[["render",cle],["__scopeId","data-v-eaebb871"]]);var Mt=(e=>(e.cc0="Public Domain License",e.pdmark="Public Domain Mark License",e.cc3="Creative Commons 3.0 and earlier",e.cc4="Creative Commons 4.0",e))(Mt||{}),br=(e=>(e.yes="Yes",e.no="No",e))(br||{}),gn=(e=>(e.yes="Yes",e.yesbutshare="Yes, as long as others share alike",e.no="No",e))(gn||{}),fn=(e=>(e.Episode="Episode",e.Podcast="Podcast",e))(fn||{});const Wi=[{symbol:"international",name:"International",version:"3.0"},{symbol:"ar",name:"Argentina",version:"2.5"},{symbol:"au",name:"Australia",version:"3.0"},{symbol:"at",name:"Austria",version:"3.0"},{symbol:"be",name:"Belgium",version:"2.0"},{symbol:"br",name:"Brazil",version:"3.0"},{symbol:"bg",name:"Bulgaria",version:"2.5"},{symbol:"ca",name:"Canada",version:"2.5"},{symbol:"cl",name:"Chile",version:"3.0"},{symbol:"cn",name:"China Mainland",version:"3.0"},{symbol:"co",name:"Colombia",version:"2.5"},{symbol:"cr",name:"Costa Rica",version:"3.0"},{symbol:"hr",name:"Croatia",version:"3.0"},{symbol:"cz",name:"Czech Republic",version:"3.0"},{symbol:"dk",name:"Denmark",version:"2.5"},{symbol:"ec",name:"Ecuador",version:"3.0"},{symbol:"eg",name:"Egypt",version:"3.0"},{symbol:"ee",name:"Estonia",version:"3.0"},{symbol:"fi",name:"Finland",version:"1.0"},{symbol:"fr",name:"France",version:"3.0"},{symbol:"de",name:"Germany",version:"3.0"},{symbol:"gr",name:"Greece",version:"3.0"},{symbol:"gt",name:"Guatemala",version:"3.0"},{symbol:"hk",name:"Hong Kong",version:"3.0"},{symbol:"hu",name:"Hungary",version:"2.5"},{symbol:"igo",name:"IGO",version:"3.0"},{symbol:"in",name:"India",version:"2.5"},{symbol:"ie",name:"Ireland",version:"3.0"},{symbol:"il",name:"Israel",version:"2.5"},{symbol:"it",name:"Italy",version:"3.0"},{symbol:"jp",name:"Japan",version:"2.1"},{symbol:"lu",name:"Luxembourg",version:"3.0"},{symbol:"mk",name:"Macedonia",version:"2.5"},{symbol:"my",name:"Malaysia",version:"2.5"},{symbol:"mt",name:"Malta",version:"2.5"},{symbol:"mx",name:"Mexico",version:"2.5"},{symbol:"nl",name:"Netherlands",version:"3.0"},{symbol:"nz",name:"New Zealand",version:"3.0"},{symbol:"no",name:"Norway",version:"3.0"},{symbol:"pe",name:"Peru",version:"2.5"},{symbol:"ph",name:"Philippines",version:"3.0"},{symbol:"pl",name:"Poland",version:"3.0"},{symbol:"pt",name:"Portugal",version:"3.0"},{symbol:"pr",name:"Puerto Rico",version:"3.0"},{symbol:"ro",name:"Romania",version:"3.0"},{symbol:"rs",name:"Serbia",version:"3.0"},{symbol:"sg",name:"Singapore",version:"3.0"},{symbol:"si",name:"Slovenia",version:"2.5"},{symbol:"za",name:"South Africa",version:"2.5"},{symbol:"kp",name:"South Korea",version:"2.0"},{symbol:"es",name:"Spain",version:"3.0"},{symbol:"se",name:"Sweden",version:"2.5"},{symbol:"ch",name:"Switzerland",version:"3.0"},{symbol:"tw",name:"Taiwan",version:"3.0"},{symbol:"th",name:"Thailand",version:"3.0"},{symbol:"gb",name:"UK: England & Wales",version:"2.0"},{symbol:"gb_sc",name:"UK: Scotland",version:"2.5"},{symbol:"ug",name:"Uganda",version:"3.0"},{symbol:"us",name:"United States",version:"3.0"},{symbol:"vn",name:"Vietnam",version:"3.0"}],fle=ge({components:{Module:In},props:{scope:{type:String,default:fn.Episode}},setup(){return{state:ut({episodeLicenseName:B.episode.license_name,podcastLicenseName:B.podcast.license_name}),dispatch:Ze().dispatch}},created(){this.dispatch(zd())},computed:{getLicenseName(){return this.scope==fn.Episode?this.state.episodeLicenseName:this.state.podcastLicenseName}},methods:{updateLicenseName(e){this.scope===fn.Episode&&this.dispatch(bt({prop:"license_name",value:e.target.value})),this.scope===fn.Podcast&&this.dispatch(oa({prop:"license_name",value:e.target.value}))}}}),ple={for:"episode-license-name",class:"block text-sm font-medium text-gray-700"},hle={class:"mt-1"},mle=["value"];function gle(e,t,n,r,o,i){return I(),F("div",null,[m("label",ple,L(e.__("License name","podlove-podcasting-plugin-for-wordpress")),1),m("div",hle,[m("input",{name:"episode-license-name",type:"text",value:e.getLicenseName,onInput:t[0]||(t[0]=(...l)=>e.updateLicenseName&&e.updateLicenseName(...l)),class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md"},null,40,mle)])])}const vle=Le(fle,[["render",gle]]),yle=ge({components:{Module:In},props:{scope:{type:String,default:fn.Episode}},setup(){return{state:ut({episodeLicenseUrl:B.episode.license_url,podcastLicenseUrl:B.podcast.license_url}),dispatch:Ze().dispatch}},created(){this.dispatch(zd())},computed:{getLicenseUrl(){return this.scope==fn.Episode?this.state.episodeLicenseUrl:this.state.podcastLicenseUrl}},methods:{updateLicenseUrl(e){this.scope===fn.Episode&&this.dispatch(bt({prop:"license_url",value:e.target.value})),this.scope===fn.Podcast&&this.dispatch(oa({prop:"license_url",value:e.target.value}))}}}),_le={for:"episode-license-name",class:"block text-sm font-medium text-gray-700"},ble={class:"mt-1"},wle=["value"],Sle={class:"mt-2 text-sm text-gray-500"};function Ele(e,t,n,r,o,i){return I(),F("div",null,[m("label",_le,L(e.__("License url","podlove-podcasting-plugin-for-wordpress")),1),m("div",ble,[m("input",{name:"episode-license-name",type:"text",value:e.getLicenseUrl,onInput:t[0]||(t[0]=(...l)=>e.updateLicenseUrl&&e.updateLicenseUrl(...l)),class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md"},null,40,wle)]),m("p",Sle,L(e.__("Example: http://creativecommons.org/licenses/by/3.0/","podlove-podcasting-plugin-for-wordpress")),1)])}const $le=Le(yle,[["render",Ele]]),xle="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFgAAAAfCAMAAABUFvrSAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAPBQTFRFLy8v7+/vz8/PHx8fDw8P+vn3X19fj4+P39/fn5+fb29vT09Pr6+v+fn53t7eZWVl6urq/f395+fn5eXl9/f38fHxMTEx+/v7jo6Ozc3N2dnZ8/PzhISE/v7+5OTk9vXz6ejoPj4+kJCQ3d3d6unnxcXFi4uL0tLS5ubm9PT0QUFB4uLi1dXV7Ozsvr6+LCwsy8vL6urnnp6ezs7O+Pj48vLyenp69fX1+fj2urq6CgsJ09PTl5eXt7e31tbW4eHhjY2N9vb2U1NTGRkZTU1NbW1tioqKf39/ysrK6Oflv7+/Pz8/7erh////AAAA////iBrkuAAAAFB0Uk5T/////////////////////////////////////////////////////////////////////////////////////////////////////////wATc6Z5AAACrklEQVR42rSW53bbMAyFOVSRGnbsZji7e++992ALFsj7v00BaiTpsfzDtXGOEw3qI3B1QUqd0FriRNGftQQpwrXEebAHDr1qsC9tI48Nejq69+g/Re7B4czFbPfLZFytBKwVH1eFQTRF5MPvn45vqRWAhatMJwrI2fb4zds0IoYQctbHys/yCUuWp/oCp5AXKZEhcM4j5L8BELxmGX5M3h2mEQHBY4gYiX8RjUEgQLnD8jn0GqtBcM0yCC/NHcUWnPOH4z3VgIk09OBIRvdgy5Nk4AbBlrKWlshikYyubI9fNuBQYNGDOYoeHLFcpLEhKtJ4olLg0Jhkf3KjlQKKrAeXsUZ1CuZsi8GMeVZJuBKIqFFKykS7B+OdVgoehyBEAYOA+SWKxl5XZcpoLjim6jEj8tBpwbrkW5sbPTjV5JpbLtWEAlaeC86GwIofloFcnKIo2aX84+jixtmuifMBalhj6sEF2cRPIv8DXqJBTjO2VEMrRZ9xzgtT4GQrgFqRAh5QisOs/FGQK2BFQC3WmA/gVOMGzK4wbJyI3mlto3ST9Aj3Bj8RxRnyTuNiV5CXJhRXaHbF1mbnCvZDzZgqYWqLAvaeH2zAZgBs0vSNj5lLpvHxtYNx13kVRpEgOddg4NbnS7k3DdhhPR88v/Pi6MFhB3YM7grnemqepUCj0aYrfG8A3OrarBWVbla7h89v7/Qt7XmRMiGRIssFkPGpQ9eArR4Ai7DCk9XNt6toOdt+n0aIKwreXIJHU8n7LyFzLgKj6iK5QrFN1PB6bKFbj2vG5NNX97+tYgeRUpQDrcHJ1pcfjSZ3V7TnnWnYrD6avfi6os0UdWh3aeU0Trf2n169+XPp+Hz+u0L33xXTO5sf9x7/WjqeMXh2YU68vqSfXP69fFynNX67rSn+CjAANTLO7qEvlcgAAAAASUVORK5CYII=",Tle="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFgAAAAfCAMAAABUFvrSAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAPNQTFRFv7+/7+/vX19fDw8PHx8fn5+fLy8v39/fz8/Pb29vr6+vT09Pj4+P+fn5/f39ZWVl5eXlzs7O6urq8fHx9/f36ejovr6++/v7jY2N4+Pj2dnZp6enzc3Nenp69PT08/PzXFxc8vLyTk5OIyMj9fX13d3d5ubmXl5eDAwMNjY2JiYmra2t1NTUxcXF4uLiLCsrFxcXVVVV/v7+GRkZMTExW1tbyMjIt7e3np6ednZ2mJiY7Ozsjo6O1dXV3t7e7e3t09PTkJCQi4uL7u7uy8vLU1NTCgsJ4eHh1tbWioqKysrK5+fnf39/Pz8/7erh////AAAA7t9IFQAAArpJREFUeNq0ludy2zAQhA8dLJLl3u303nt3ejMuwPs/Te4AmrIzYn7YEjTUsIAfib1dgBDTQlqE9GchLUGKC2n/gD2AnztYGCzyNCaORz8eXlDkHmzU9KS+ezB5cWcuYCGZV9UAdcVPuLR+7+XVeYBJBWVORGkJ/Xzb737PPTCEYJMOmjdNB1IlGfhKwHwV/wOuUrJiqryzKe1vL7/OPULugPRs2pAPIEF2fwypjXRbMwiGjisMvRDbQuiU7j/Ye1TASUXowZi86MEqeqUEDIJ5SK6vH5ZHXVm9vl/AoY2mB3sXTQ9GHuuwxj7vFd14h4dLxdy5sVHAVFHVgyuEqKdguknKITBd1N1hgEqWqKS09fajLVJQs7HGOloG15HYiMgaC9FIGsEAGOm2kg7V9iVU6ebhh8c9ONXs9SxTloLDRWCk/k4PgW0efVFLVS52BsS1ydKpnhbtjPsV4rDGxVInEicJHXh0vHSxgNhUdeC6zcNCcwrMAeE0Yg2GQxL4FNVLlz/UocnxmakxS9cWQxSxNTGaAiZXOLIfRgFRkDsoD57tGLgOyM6Imj0zA0zqcg2yK3ztobPPu9Hxs6545Ic6l4ISGI3OPneCPFnAMACui8id15WPLk9Ey2uTWx24IYf5zrlOVNHxCKTzBWzoNxMcdVJiSsZiYxwfvukiTRuCUORKwrT0JgDJRC9YAzpDth4AG34nDnKF2PAkJ8hZG6OV2yeRFo5kqCufJwsXJYASnpIeClgPgfm0PLWuCJqv5Obqbj+71fQgyo5jUbGNCkBy6J0rYB7RbDC/oe1XO+Cjo2vvn85jBbF5saPUuew3+2W00sxlzRNn5r/wZPPytzktpiRgt5wq6eJ4befVp8+/zt22zn5XAK0gJks9Ppj83Pv6+9xteehLaDxaXVk/Pn9bTwv8dltQ+yvAAF/L4Ldao5NwAAAAAElFTkSuQmCC",Cle="/wp-content/plugins/podlove-publisher/client/dist/0_0.png",Ole="/wp-content/plugins/podlove-publisher/client/dist/0_1.png",Ale="/wp-content/plugins/podlove-publisher/client/dist/1_0.png",kle="/wp-content/plugins/podlove-publisher/client/dist/1_1.png",Ile="/wp-content/plugins/podlove-publisher/client/dist/10_0.png",Ple="/wp-content/plugins/podlove-publisher/client/dist/10_1.png";function ql(e){if(e.type===null||e.type!="cc")return null;if(e.version===Mt.cc0)return"http://creativecommons.org/publicdomain/zero/1.0/";if(e.version===Mt.pdmark)return"http://creativecommons.org/publicdomain/mark/1.0/";if(e.version===Mt.cc3){let t="http://creativecommons.org/licenses/by";return e.optionCommercial===br.no&&(t=t+"-nc"),e.optionModification===gn.yes?t=t+"/":e.optionModification===gn.no?t=t+"-nd/":t=t+"-sa/",e.optionJurisdication===null||e.optionJurisdication.symbol==="international"?t=t+"3.0/":t=t+e.optionJurisdication.version+"/"+e.optionJurisdication.symbol+"/",t+"deed.en"}if(e.version===Mt.cc4){let t="http://creativecommons.org/licenses/by";return e.optionCommercial==br.no&&(t=t+"-nc"),e.optionModification==gn.yes?t=t+"/":e.optionModification==gn.no?t=t+"-nd/":t=t+"-sa/",t+"4.0"}return null}function Fb(e,t){if(e.type===null||e.type!=="cc")return null;if(e.version===Mt.cc0)return xle;if(e.version===Mt.pdmark)return Tle;if(e.optionModification===null||e.optionCommercial===null)return null;switch(e.optionModification){case gn.no:return e.optionCommercial===br.no?Cle:Ole;case gn.yes:return e.optionCommercial===br.no?Ale:kle;case gn.yesbutshare:return e.optionCommercial===br.no?Ile:Ple}}function Nb(e){const t=e.toLowerCase();if(t.indexOf("creativecommons.org")<0)return{type:null,version:null,optionCommercial:null,optionModification:null,optionJurisdication:null};let n=null;t.indexOf("/publicdomain/zero/")>=0?n=Mt.cc0:t.indexOf("/publicdomain/mark/")>=0?n=Mt.pdmark:t.indexOf("/4.0")>=0?n=Mt.cc4:n=Mt.cc3;const r=t.split("/").slice(4);let o=br.yes;r[0].includes("nc")&&(o=br.no);let i=gn.yes;r[0].includes("sa")?i=gn.yesbutshare:r[0].includes("nd")&&(i=gn.no);let l=Wi[0];if(r.length>2){const a=Wi.findIndex(c=>c.symbol===r[2]);a>0&&(l=Wi[a])}return{type:"cc",version:n,optionCommercial:o,optionModification:i,optionJurisdication:l}}const Rle=ge({components:{Module:In},props:{licenseData:{type:null,default:{type:"cc",version:Mt.pdmark,optionCommercial:null,optionModification:null,optionJurisdication:null}}},setup(){return{state:ut({baseUrl:B.runtime.baseUrl}),dispatch:Ze().dispatch}},computed:{licenseUrl(){return ql(this.licenseData)},imageUrl(){return Fb(this.licenseData,this.state.baseUrl)},isImageAvailable(){return Fb(this.licenseData,this.state.baseUrl)!==null}}}),Lle={class:"mt-3"},Fle=m("div",{class:"mb-3 text-sm font-medium text-gray-700"}," License preview: ",-1),Nle={key:0},Mle={class:"mb-3 w-full"},Dle={class:"flex justify-center items-center"},Ule=["src"],Ble={class:"mb-3 w-full text-center"},jle=m("p",{class:"text-sm font-medium text-gray-700"},"This work is licensend under ",-1),Vle=["href"],Hle={key:0},zle=m("p",{class:"text-sm font-medium text-gray-700"},"No license selected!",-1),Wle=[zle];function qle(e,t,n,r,o,i){return I(),F("div",Lle,[Fle,e.isImageAvailable?(I(),F("div",Nle,[m("div",null,[m("div",Mle,[m("div",Dle,[m("img",{class:"text-center",src:`${e.imageUrl}`},null,8,Ule)])]),m("div",Ble,[jle,m("a",{class:"text-sm font-medium text-gray-700",href:`${e.licenseUrl}`},L(e.licenseUrl),9,Vle)])]),e.isImageAvailable?Te("",!0):(I(),F("div",Hle,Wle))])):Te("",!0)])}const Kle=Le(Rle,[["render",qle]]),Gle=Object.entries(Mt).map(([e,t])=>({key:e,value:t})),Xle=Object.entries(br).map(([e,t])=>({key:e,value:t})),Yle=Object.entries(gn).map(([e,t])=>({key:e,value:t})),Jle=ge({components:{PodloveButton:Pn,Modal:Za,LicensePreview:Kle},data(){return{PodloveLicenseVersionList:Gle,PodloveLicenseOptionCommercialList:Xle,PodloveLicenseOptionModificationList:Yle,PodloveLicenseOptionJurisdication:Wi}},setup(){return{state:ut({episodeLicenseUrl:B.episode.license_url,podcastLicenseUrl:B.podcast.license_url}),dispatch:Ze().dispatch}},props:{scope:{type:String,default:fn.Episode}},computed:{isCommercialNModificationNeeded(){return this.getLicenseData().type==="cc"&&(this.getLicenseData().version===Mt.cc3||this.getLicenseData().version===Mt.cc4)},isJurisdicationNeeded(){return this.getLicenseData().type==="cc"&&this.getLicenseData().version===Mt.cc3}},methods:{updateVersion(e){let t=this.getLicenseData();switch(t.type="cc",e.target.value){case Mt.cc0:t.version=Mt.cc0;break;case Mt.pdmark:t.version=Mt.pdmark;break;case Mt.cc3:t.version=Mt.cc3;break;case Mt.cc4:t.version=Mt.cc4;break}this.updateLicenseDataNameNUrl(t)},updateCommercial(e){let t=this.getLicenseData();switch(e.target.value){case br.yes:t.optionCommercial=br.yes;break;case br.no:t.optionCommercial=br.no;break}this.updateLicenseDataUrl(t)},updateModification(e){let t=this.getLicenseData();switch(e.target.value){case gn.yes:t.optionModification=gn.yes;break;case gn.yesbutshare:t.optionModification=gn.yesbutshare;break;case gn.no:t.optionModification=gn.no;break}this.updateLicenseDataUrl(t)},updateJurisdication(e){let t=this.getLicenseData();const n=e.target.value,r=Wi.findIndex(o=>o.name===n);r!==void 0&&(t.optionJurisdication=Wi[r],this.updateLicenseDataUrl(t))},updateLicenseDataUrl(e){this.scope===fn.Episode&&this.dispatch(bt({prop:"license_url",value:ql(e)})),this.scope===fn.Podcast&&this.dispatch(oa({prop:"license_url",value:ql(e)}))},updateLicenseDataNameNUrl(e){this.scope===fn.Episode&&(this.dispatch(bt({prop:"license_name",value:e.version})),this.dispatch(bt({prop:"license_url",value:ql(e)}))),this.scope===fn.Podcast&&(this.dispatch(oa({prop:"license_name",value:e.version})),this.dispatch(oa({prop:"license_url",value:ql(e)})))},getLicenseData(){return this.scope===fn.Episode?this.state.episodeLicenseUrl===null||this.state.episodeLicenseUrl===void 0?{type:"cc",version:Mt.pdmark,optionCommercial:null,optionModification:null,optionJurisdication:null}:Nb(this.state.episodeLicenseUrl):this.state.podcastLicenseUrl===null||this.state.podcastLicenseUrl===void 0?{type:"cc",version:Mt.pdmark,optionCommercial:null,optionModification:null,optionJurisdication:null}:Nb(this.state.podcastLicenseUrl)}}}),Zle={class:"border-gray-200 border-b pb-2 px-3 py-5"},Qle={class:"text-lg leading-6 font-medium text-gray-900"},eae={class:"mb-3"},tae=m("label",{class:"block text-sm font-medium text-gray-700"}," Version: ",-1),nae=["value"],rae=["value"],oae={key:0,class:"mb-3"},sae=m("label",{class:"block text-sm font-medium text-gray-700"}," Allow modifications of your work? ",-1),iae=["value"],lae=["value"],aae={key:1,class:"mb-3"},uae=m("label",{class:"block text-sm font-medium text-gray-700"}," Allow commercial uses of your work? ",-1),cae=["value"],dae=["value"],fae={key:2,class:"mb-3"},pae=m("label",{class:"block text-sm font-medium text-gray-700"}," License Jurisdiction ",-1),hae=["value"],mae=["value"],gae={class:"mb-5"};function vae(e,t,n,r,o,i){var a;const l=q("LicensePreview");return I(),F(Me,null,[m("div",Zle,[m("h3",Qle,L(e.__("License Selector","podlove-podcasting-plugin-for-wordpress")),1)]),m("div",null,[m("div",eae,[tae,m("select",{value:e.getLicenseData().version,onInput:t[0]||(t[0]=c=>e.updateVersion(c)),class:"mt-1 block w-full py-2 px-3 border border-gray-300 bg-white rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"},[(I(!0),F(Me,null,Ot(e.PodloveLicenseVersionList,(c,d)=>(I(),F("option",{value:c.value,key:`version-${d}`},L(c.value),9,rae))),128))],40,nae)]),e.isCommercialNModificationNeeded?(I(),F("div",oae,[sae,m("select",{value:e.getLicenseData().optionModification,onInput:t[1]||(t[1]=c=>e.updateModification(c)),class:"mt-1 block w-full py-2 px-3 border border-gray-300 bg-white rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"},[(I(!0),F(Me,null,Ot(e.PodloveLicenseOptionModificationList,(c,d)=>(I(),F("option",{value:c.value,key:`modification-${d}`},L(c.value),9,lae))),128))],40,iae)])):Te("",!0),e.isCommercialNModificationNeeded?(I(),F("div",aae,[uae,m("select",{value:e.getLicenseData().optionCommercial,onInput:t[2]||(t[2]=c=>e.updateCommercial(c)),class:"mt-1 block w-full py-2 px-3 border border-gray-300 bg-white rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"},[(I(!0),F(Me,null,Ot(e.PodloveLicenseOptionCommercialList,(c,d)=>(I(),F("option",{value:c.value,key:`commercial-${d}`},L(c.value),9,dae))),128))],40,cae)])):Te("",!0),e.isJurisdicationNeeded?(I(),F("div",fae,[pae,m("select",{value:(a=e.getLicenseData().optionJurisdication)==null?void 0:a.name,onInput:t[3]||(t[3]=c=>e.updateJurisdication(c)),class:"mt-1 block w-full py-2 px-3 border border-gray-300 bg-white rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"},[(I(!0),F(Me,null,Ot(e.PodloveLicenseOptionJurisdication,(c,d)=>(I(),F("option",{value:c.name,key:`jurisdiction-${d}`},L(c.name),9,mae))),128))],40,hae)])):Te("",!0),m("div",gae,[z(l,{"license-data":e.getLicenseData()},null,8,["license-data"])])])],64)}const hC=Le(Jle,[["render",vae]]),yae=ge({components:{PodloveButton:Pn,Modal:Za,LicenseSelector:hC},props:{scope:{type:String,default:fn.Episode}},data(){return{openDialog:!1}},methods:{openSelector(){this.openDialog=!0},closeSelector(){this.openDialog=!1}}});function _ae(e,t,n,r,o,i){const l=q("podlove-button"),a=q("LicenseSelector"),c=q("modal");return I(),F(Me,null,[z(l,{variant:"secondary",size:"small",onClick:e.openSelector},{default:_e(()=>[Be(L(e.__("License Selector","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["onClick"]),z(c,{open:e.openDialog,onClose:e.closeSelector},{default:_e(()=>[z(a,{scope:e.scope},null,8,["scope"])]),_:1},8,["open","onClose"])],64)}const bae=Le(yae,[["render",_ae]]),wae=ge({components:{Module:In,LicenseName:vle,LicenseUrl:$le,LicenseSelector:hC,LicenseSelectorButton:bae},props:{scope:{type:String,default:fn.Episode}},computed:{isScopeEpisode(){return this.scope===fn.Episode},getModuleTitle(){return this.scope===fn.Episode?"Episode License":"Podcast License"}}}),Sae={key:0},Eae={class:"p-3"},$ae={class:"mb-3"},xae={class:"mb-3"},Tae={key:0};function Cae(e,t,n,r,o,i){const l=q("LicenseSelectorButton"),a=q("LicenseName"),c=q("LicenseUrl"),d=q("LicenseSelector"),p=q("module");return I(),Ye(p,{name:"license",title:e.getModuleTitle},{actions:_e(()=>[e.isScopeEpisode?(I(),F("div",Sae,[z(l,{scope:e.scope},null,8,["scope"])])):Te("",!0)]),default:_e(()=>[m("div",Eae,[m("div",$ae,[z(a,{scope:e.scope},null,8,["scope"])]),m("div",xae,[z(c,{scope:e.scope},null,8,["scope"])]),e.isScopeEpisode?Te("",!0):(I(),F("div",Tae,[z(d,{scope:e.scope},null,8,["scope"])]))])]),_:1},8,["title"])}const Oae=Le(wae,[["render",Cae]]),Aae={PodloveDescription:jW,PodloveChapters:AG,PodloveTranscripts:PX,PodloveAuphonic:Aee,PodloveContributors:Cne,PodloveMediaFiles:doe,PodloveRelatedEpisodes:Aie,PodlovePlusFileMigration:pC,PodlovePlusFeatures:Fse,PodlovePlusToken:cie,PodloveSoundbite:nle,PodloveShowSelect:dle,PodloveLicense:Oae};window.addEventListener("load",()=>{document.querySelectorAll('[data-client="podlove"]:not([data-loaded="true"])').forEach(e=>{e.setAttribute("data-loaded","true");const t=T2({components:{...Aae}});I7({store:tf,app:t}),t.use(u9),t.mount(e)})});globalThis.initPodloveUI=e=>{tf.dispatch(dM(e))}; -
podlove-podcasting-plugin-for-wordpress/tags/4.3.3/lib/modules/contributors/rest_api.php
r3026472 r3445642 616 616 { 617 617 $contributor = new Contributor(); 618 $contributor->visibility = 0;618 $contributor->visibility = 1; 619 619 $contributor->contributioncount = 0; 620 620 $contributor->save(); -
podlove-podcasting-plugin-for-wordpress/tags/4.3.3/lib/template/episode.php
r3077497 r3445642 432 432 public function files() 433 433 { 434 $files = array_filter($this->episode->media_files(), function ($file) { 435 return (bool) $file->active; 436 }); 437 434 438 return array_map(function ($file) { 435 439 return new File($file); 436 }, $ this->episode->media_files());440 }, $files); 437 441 } 438 442 … … 453 457 public function file($asset_name) 454 458 { 459 $files = array_filter($this->episode->media_files(['identifier' => $asset_name]), function ($file) { 460 return (bool) $file->active; 461 }); 455 462 $files = array_map(function ($file) { 456 463 return new File($file); 457 }, $ this->episode->media_files(['identifier' => $asset_name]));464 }, $files); 458 465 459 466 if ($files) { -
podlove-podcasting-plugin-for-wordpress/tags/4.3.3/podlove.php
r3431480 r3445642 3 3 * Plugin Name: Podlove Podcast Publisher 4 4 * Plugin URI: https://podlove.org/podlove-podcast-publisher/ 5 * Version: 4.3. 25 * Version: 4.3.3 6 6 * Requires at least: 4.9.6 7 7 * Requires PHP: 8.0 -
podlove-podcasting-plugin-for-wordpress/tags/4.3.3/readme.txt
r3431480 r3445642 4 4 Tags: podlove, podcast, publishing, rss, audio 5 5 Tested up to: 6.9.0 6 Stable tag: 4.3. 26 Stable tag: 4.3.3 7 7 Requires at least: 4.9.6 8 8 Requires PHP: 8.0 … … 119 119 120 120 == Changelog == 121 122 = 4.3.3 = 123 124 * fix: allow selecting chapter images from the media library 125 * fix: prevent media files module from hanging on new episodes without an ID 126 * change: default new contributors to visible 127 * fix: treat inactive episode files as nonexistent in templates 121 128 122 129 = 4.3.2 = -
podlove-podcasting-plugin-for-wordpress/tags/4.3.3/vendor/composer/installed.php
r3431480 r3445642 2 2 'root' => array( 3 3 'name' => 'podlove/podcast-publisher', 4 'pretty_version' => '4.3. 2',5 'version' => '4.3. 2.0',6 'reference' => '3 3e9cba1955e4e1f85e02ef280191a69a1813e50',4 'pretty_version' => '4.3.3', 5 'version' => '4.3.3.0', 6 'reference' => '3ffd3af891956ea3787784416d8ee3ad20e955ca', 7 7 'type' => 'library', 8 8 'install_path' => __DIR__ . '/../../', … … 144 144 ), 145 145 'podlove/podcast-publisher' => array( 146 'pretty_version' => '4.3. 2',147 'version' => '4.3. 2.0',148 'reference' => '3 3e9cba1955e4e1f85e02ef280191a69a1813e50',146 'pretty_version' => '4.3.3', 147 'version' => '4.3.3.0', 148 'reference' => '3ffd3af891956ea3787784416d8ee3ad20e955ca', 149 149 'type' => 'library', 150 150 'install_path' => __DIR__ . '/../../', -
podlove-podcasting-plugin-for-wordpress/trunk/client/dist/client.js
r3380427 r3445642 1 (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function mm(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o<r.length;o++)n[r[o]]=!0;return o=>!!n[o]}const GI="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt",XI=mm(GI);function oo(e){if(Je(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=ln(r)?QI(r):oo(r);if(o)for(const i in o)t[i]=o[i]}return t}else{if(ln(e))return e;if(Kt(e))return e}}const YI=/;(?![^(]*\))/g,JI=/:([^]+)/,ZI=/\/\*.*?\*\//gs;function QI(e){const t={};return e.replace(ZI,"").split(YI).forEach(n=>{if(n){const r=n.split(JI);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function gt(e){let t="";if(ln(e))t=e;else if(Je(e))for(let n=0;n<e.length;n++){const r=gt(e[n]);r&&(t+=r+" ")}else if(Kt(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function eP(e){if(!e)return null;let{class:t,style:n}=e;return t&&!ln(t)&&(e.class=gt(t)),n&&(e.style=oo(n)),e}const L=e=>ln(e)?e:e==null?"":Je(e)||Kt(e)&&(e.toString===jb||!nt(e.toString))?JSON.stringify(e,Db,2):String(e),Db=(e,t)=>t&&t.__v_isRef?Db(e,t.value):Bi(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o])=>(n[`${r} =>`]=o,n),{})}:Bb(t)?{[`Set(${t.size})`]:[...t.values()]}:Kt(t)&&!Je(t)&&!Vb(t)?String(t):t,jt={},Ui=[],So=()=>{},tP=()=>!1,nP=/^on[^a-z]/,ld=e=>nP.test(e),Ub=e=>e.startsWith("onUpdate:"),kn=Object.assign,gm=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},rP=Object.prototype.hasOwnProperty,Et=(e,t)=>rP.call(e,t),Je=Array.isArray,Bi=e=>Ra(e)==="[object Map]",Bb=e=>Ra(e)==="[object Set]",oP=e=>Ra(e)==="[object RegExp]",nt=e=>typeof e=="function",ln=e=>typeof e=="string",vm=e=>typeof e=="symbol",Kt=e=>e!==null&&typeof e=="object",ym=e=>Kt(e)&&nt(e.then)&&nt(e.catch),jb=Object.prototype.toString,Ra=e=>jb.call(e),sP=e=>Ra(e).slice(8,-1),Vb=e=>Ra(e)==="[object Object]",_m=e=>ln(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Kl=mm(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ad=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},iP=/-(\w)/g,so=ad(e=>e.replace(iP,(t,n)=>n?n.toUpperCase():"")),lP=/\B([A-Z])/g,ud=ad(e=>e.replace(lP,"-$1").toLowerCase()),cd=ad(e=>e.charAt(0).toUpperCase()+e.slice(1)),Gl=ad(e=>e?`on${cd(e)}`:""),qi=(e,t)=>!Object.is(e,t),Xl=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Oc=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},aP=e=>{const t=parseFloat(e);return isNaN(t)?e:t},uP=e=>{const t=ln(e)?Number(e):NaN;return isNaN(t)?e:t};let g1;const cP=()=>g1||(g1=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let gr;class bm{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=gr,!t&&gr&&(this.index=(gr.scopes||(gr.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=gr;try{return gr=this,t()}finally{gr=n}}}on(){gr=this}off(){gr=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0,this._active=!1}}}function dP(e){return new bm(e)}function Hb(e,t=gr){t&&t.active&&t.effects.push(e)}function zb(){return gr}function Wb(e){gr&&gr.cleanups.push(e)}const wm=e=>{const t=new Set(e);return t.w=0,t.n=0,t},qb=e=>(e.w&bs)>0,Kb=e=>(e.n&bs)>0,fP=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=bs},pP=e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const o=t[r];qb(o)&&!Kb(o)?o.delete(e):t[n++]=o,o.w&=~bs,o.n&=~bs}t.length=n}},Ac=new WeakMap;let Hl=0,bs=1;const ch=30;let Zr;const Zs=Symbol(""),dh=Symbol("");class La{constructor(t,n=null,r){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,Hb(this,r)}run(){if(!this.active)return this.fn();let t=Zr,n=vs;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=Zr,Zr=this,vs=!0,bs=1<<++Hl,Hl<=ch?fP(this):v1(this),this.fn()}finally{Hl<=ch&&pP(this),bs=1<<--Hl,Zr=this.parent,vs=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Zr===this?this.deferStop=!0:this.active&&(v1(this),this.onStop&&this.onStop(),this.active=!1)}}function v1(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}function hP(e,t){e.effect&&(e=e.effect.fn);const n=new La(e);t&&(kn(n,t),t.scope&&Hb(n,t.scope)),(!t||!t.lazy)&&n.run();const r=n.run.bind(n);return r.effect=n,r}function mP(e){e.effect.stop()}let vs=!0;const Gb=[];function cl(){Gb.push(vs),vs=!1}function dl(){const e=Gb.pop();vs=e===void 0?!0:e}function ir(e,t,n){if(vs&&Zr){let r=Ac.get(e);r||Ac.set(e,r=new Map);let o=r.get(n);o||r.set(n,o=wm()),Xb(o)}}function Xb(e,t){let n=!1;Hl<=ch?Kb(e)||(e.n|=bs,n=!qb(e)):n=!e.has(Zr),n&&(e.add(Zr),Zr.deps.push(e))}function Ko(e,t,n,r,o,i){const l=Ac.get(e);if(!l)return;let a=[];if(t==="clear")a=[...l.values()];else if(n==="length"&&Je(e)){const c=Number(r);l.forEach((d,p)=>{(p==="length"||p>=c)&&a.push(d)})}else switch(n!==void 0&&a.push(l.get(n)),t){case"add":Je(e)?_m(n)&&a.push(l.get("length")):(a.push(l.get(Zs)),Bi(e)&&a.push(l.get(dh)));break;case"delete":Je(e)||(a.push(l.get(Zs)),Bi(e)&&a.push(l.get(dh)));break;case"set":Bi(e)&&a.push(l.get(Zs));break}if(a.length===1)a[0]&&fh(a[0]);else{const c=[];for(const d of a)d&&c.push(...d);fh(wm(c))}}function fh(e,t){const n=Je(e)?e:[...e];for(const r of n)r.computed&&y1(r);for(const r of n)r.computed||y1(r)}function y1(e,t){(e!==Zr||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function gP(e,t){var n;return(n=Ac.get(e))===null||n===void 0?void 0:n.get(t)}const vP=mm("__proto__,__v_isRef,__isVue"),Yb=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(vm)),yP=dd(),_P=dd(!1,!0),bP=dd(!0),wP=dd(!0,!0),_1=SP();function SP(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=He(this);for(let i=0,l=this.length;i<l;i++)ir(r,"get",i+"");const o=r[t](...n);return o===-1||o===!1?r[t](...n.map(He)):o}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){cl();const r=He(this)[t].apply(this,n);return dl(),r}}),e}function EP(e){const t=He(this);return ir(t,"has",e),t.hasOwnProperty(e)}function dd(e=!1,t=!1){return function(r,o,i){if(o==="__v_isReactive")return!e;if(o==="__v_isReadonly")return e;if(o==="__v_isShallow")return t;if(o==="__v_raw"&&i===(e?t?rw:nw:t?tw:ew).get(r))return r;const l=Je(r);if(!e){if(l&&Et(_1,o))return Reflect.get(_1,o,i);if(o==="hasOwnProperty")return EP}const a=Reflect.get(r,o,i);return(vm(o)?Yb.has(o):vP(o))||(e||ir(r,"get",o),t)?a:pn(a)?l&&_m(o)?a:a.value:Kt(a)?e?Em(a):Ts(a):a}}const $P=Jb(),xP=Jb(!0);function Jb(e=!1){return function(n,r,o,i){let l=n[r];if(li(l)&&pn(l)&&!pn(o))return!1;if(!e&&(!ca(o)&&!li(o)&&(l=He(l),o=He(o)),!Je(n)&&pn(l)&&!pn(o)))return l.value=o,!0;const a=Je(n)&&_m(r)?Number(r)<n.length:Et(n,r),c=Reflect.set(n,r,o,i);return n===He(i)&&(a?qi(o,l)&&Ko(n,"set",r,o):Ko(n,"add",r,o)),c}}function TP(e,t){const n=Et(e,t);e[t];const r=Reflect.deleteProperty(e,t);return r&&n&&Ko(e,"delete",t,void 0),r}function CP(e,t){const n=Reflect.has(e,t);return(!vm(t)||!Yb.has(t))&&ir(e,"has",t),n}function OP(e){return ir(e,"iterate",Je(e)?"length":Zs),Reflect.ownKeys(e)}const Zb={get:yP,set:$P,deleteProperty:TP,has:CP,ownKeys:OP},Qb={get:bP,set(e,t){return!0},deleteProperty(e,t){return!0}},AP=kn({},Zb,{get:_P,set:xP}),kP=kn({},Qb,{get:wP}),Sm=e=>e,fd=e=>Reflect.getPrototypeOf(e);function Wu(e,t,n=!1,r=!1){e=e.__v_raw;const o=He(e),i=He(t);n||(t!==i&&ir(o,"get",t),ir(o,"get",i));const{has:l}=fd(o),a=r?Sm:n?Tm:da;if(l.call(o,t))return a(e.get(t));if(l.call(o,i))return a(e.get(i));e!==o&&e.get(t)}function qu(e,t=!1){const n=this.__v_raw,r=He(n),o=He(e);return t||(e!==o&&ir(r,"has",e),ir(r,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function Ku(e,t=!1){return e=e.__v_raw,!t&&ir(He(e),"iterate",Zs),Reflect.get(e,"size",e)}function b1(e){e=He(e);const t=He(this);return fd(t).has.call(t,e)||(t.add(e),Ko(t,"add",e,e)),this}function w1(e,t){t=He(t);const n=He(this),{has:r,get:o}=fd(n);let i=r.call(n,e);i||(e=He(e),i=r.call(n,e));const l=o.call(n,e);return n.set(e,t),i?qi(t,l)&&Ko(n,"set",e,t):Ko(n,"add",e,t),this}function S1(e){const t=He(this),{has:n,get:r}=fd(t);let o=n.call(t,e);o||(e=He(e),o=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return o&&Ko(t,"delete",e,void 0),i}function E1(){const e=He(this),t=e.size!==0,n=e.clear();return t&&Ko(e,"clear",void 0,void 0),n}function Gu(e,t){return function(r,o){const i=this,l=i.__v_raw,a=He(l),c=t?Sm:e?Tm:da;return!e&&ir(a,"iterate",Zs),l.forEach((d,p)=>r.call(o,c(d),c(p),i))}}function Xu(e,t,n){return function(...r){const o=this.__v_raw,i=He(o),l=Bi(i),a=e==="entries"||e===Symbol.iterator&&l,c=e==="keys"&&l,d=o[e](...r),p=n?Sm:t?Tm:da;return!t&&ir(i,"iterate",c?dh:Zs),{next(){const{value:h,done:v}=d.next();return v?{value:h,done:v}:{value:a?[p(h[0]),p(h[1])]:p(h),done:v}},[Symbol.iterator](){return this}}}}function ls(e){return function(...t){return e==="delete"?!1:this}}function IP(){const e={get(i){return Wu(this,i)},get size(){return Ku(this)},has:qu,add:b1,set:w1,delete:S1,clear:E1,forEach:Gu(!1,!1)},t={get(i){return Wu(this,i,!1,!0)},get size(){return Ku(this)},has:qu,add:b1,set:w1,delete:S1,clear:E1,forEach:Gu(!1,!0)},n={get(i){return Wu(this,i,!0)},get size(){return Ku(this,!0)},has(i){return qu.call(this,i,!0)},add:ls("add"),set:ls("set"),delete:ls("delete"),clear:ls("clear"),forEach:Gu(!0,!1)},r={get(i){return Wu(this,i,!0,!0)},get size(){return Ku(this,!0)},has(i){return qu.call(this,i,!0)},add:ls("add"),set:ls("set"),delete:ls("delete"),clear:ls("clear"),forEach:Gu(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Xu(i,!1,!1),n[i]=Xu(i,!0,!1),t[i]=Xu(i,!1,!0),r[i]=Xu(i,!0,!0)}),[e,n,t,r]}const[PP,RP,LP,FP]=IP();function pd(e,t){const n=t?e?FP:LP:e?RP:PP;return(r,o,i)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(Et(n,o)&&o in r?n:r,o,i)}const NP={get:pd(!1,!1)},MP={get:pd(!1,!0)},DP={get:pd(!0,!1)},UP={get:pd(!0,!0)},ew=new WeakMap,tw=new WeakMap,nw=new WeakMap,rw=new WeakMap;function BP(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function jP(e){return e.__v_skip||!Object.isExtensible(e)?0:BP(sP(e))}function Ts(e){return li(e)?e:hd(e,!1,Zb,NP,ew)}function ow(e){return hd(e,!1,AP,MP,tw)}function Em(e){return hd(e,!0,Qb,DP,nw)}function VP(e){return hd(e,!0,kP,UP,rw)}function hd(e,t,n,r,o){if(!Kt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=o.get(e);if(i)return i;const l=jP(e);if(l===0)return e;const a=new Proxy(e,l===2?r:n);return o.set(e,a),a}function Qs(e){return li(e)?Qs(e.__v_raw):!!(e&&e.__v_isReactive)}function li(e){return!!(e&&e.__v_isReadonly)}function ca(e){return!!(e&&e.__v_isShallow)}function $m(e){return Qs(e)||li(e)}function He(e){const t=e&&e.__v_raw;return t?He(t):e}function xm(e){return Oc(e,"__v_skip",!0),e}const da=e=>Kt(e)?Ts(e):e,Tm=e=>Kt(e)?Em(e):e;function Cm(e){vs&&Zr&&(e=He(e),Xb(e.dep||(e.dep=wm())))}function md(e,t){e=He(e);const n=e.dep;n&&fh(n)}function pn(e){return!!(e&&e.__v_isRef===!0)}function $e(e){return sw(e,!1)}function gd(e){return sw(e,!0)}function sw(e,t){return pn(e)?e:new HP(e,t)}class HP{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:He(t),this._value=n?t:da(t)}get value(){return Cm(this),this._value}set value(t){const n=this.__v_isShallow||ca(t)||li(t);t=n?t:He(t),qi(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:da(t),md(this))}}function ph(e){md(e)}function vn(e){return pn(e)?e.value:e}const zP={get:(e,t,n)=>vn(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return pn(o)&&!pn(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function Om(e){return Qs(e)?e:new Proxy(e,zP)}class WP{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:r}=t(()=>Cm(this),()=>md(this));this._get=n,this._set=r}get value(){return this._get()}set value(t){this._set(t)}}function qP(e){return new WP(e)}function Am(e){const t=Je(e)?new Array(e.length):{};for(const n in e)t[n]=iw(e,n);return t}class KP{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return gP(He(this._object),this._key)}}function iw(e,t,n){const r=e[t];return pn(r)?r:new KP(e,t,n)}var lw;class GP{constructor(t,n,r,o){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[lw]=!1,this._dirty=!0,this.effect=new La(t,()=>{this._dirty||(this._dirty=!0,md(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=r}get value(){const t=He(this);return Cm(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}lw="__v_isReadonly";function XP(e,t,n=!1){let r,o;const i=nt(e);return i?(r=e,o=So):(r=e.get,o=e.set),new GP(r,o,i||!o,n)}function YP(e,...t){}function JP(e,t){}function zo(e,t,n,r){let o;try{o=r?e(...r):e()}catch(i){pi(i,t,n)}return o}function br(e,t,n,r){if(nt(e)){const i=zo(e,t,n,r);return i&&ym(i)&&i.catch(l=>{pi(l,t,n)}),i}const o=[];for(let i=0;i<e.length;i++)o.push(br(e[i],t,n,r));return o}function pi(e,t,n,r=!0){const o=t?t.vnode:null;if(t){let i=t.parent;const l=t.proxy,a=n;for(;i;){const d=i.ec;if(d){for(let p=0;p<d.length;p++)if(d[p](e,l,a)===!1)return}i=i.parent}const c=t.appContext.config.errorHandler;if(c){zo(c,null,10,[e,l,a]);return}}ZP(e,n,o,r)}function ZP(e,t,n,r=!0){console.error(e)}let fa=!1,hh=!1;const Nn=[];let wo=0;const ji=[];let Uo=null,Ws=0;const aw=Promise.resolve();let km=null;function sn(e){const t=km||aw;return e?t.then(this?e.bind(this):e):t}function QP(e){let t=wo+1,n=Nn.length;for(;t<n;){const r=t+n>>>1;pa(Nn[r])<e?t=r+1:n=r}return t}function vd(e){(!Nn.length||!Nn.includes(e,fa&&e.allowRecurse?wo+1:wo))&&(e.id==null?Nn.push(e):Nn.splice(QP(e.id),0,e),uw())}function uw(){!fa&&!hh&&(hh=!0,km=aw.then(cw))}function eR(e){const t=Nn.indexOf(e);t>wo&&Nn.splice(t,1)}function Im(e){Je(e)?ji.push(...e):(!Uo||!Uo.includes(e,e.allowRecurse?Ws+1:Ws))&&ji.push(e),uw()}function $1(e,t=fa?wo+1:0){for(;t<Nn.length;t++){const n=Nn[t];n&&n.pre&&(Nn.splice(t,1),t--,n())}}function kc(e){if(ji.length){const t=[...new Set(ji)];if(ji.length=0,Uo){Uo.push(...t);return}for(Uo=t,Uo.sort((n,r)=>pa(n)-pa(r)),Ws=0;Ws<Uo.length;Ws++)Uo[Ws]();Uo=null,Ws=0}}const pa=e=>e.id==null?1/0:e.id,tR=(e,t)=>{const n=pa(e)-pa(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function cw(e){hh=!1,fa=!0,Nn.sort(tR);try{for(wo=0;wo<Nn.length;wo++){const t=Nn[wo];t&&t.active!==!1&&zo(t,null,14)}}finally{wo=0,Nn.length=0,kc(),fa=!1,km=null,(Nn.length||ji.length)&&cw()}}let Mi,Yu=[];function dw(e,t){var n,r;Mi=e,Mi?(Mi.enabled=!0,Yu.forEach(({event:o,args:i})=>Mi.emit(o,...i)),Yu=[]):typeof window<"u"&&window.HTMLElement&&!(!((r=(n=window.navigator)===null||n===void 0?void 0:n.userAgent)===null||r===void 0)&&r.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(i=>{dw(i,t)}),setTimeout(()=>{Mi||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Yu=[])},3e3)):Yu=[]}function nR(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||jt;let o=n;const i=t.startsWith("update:"),l=i&&t.slice(7);if(l&&l in r){const p=`${l==="modelValue"?"model":l}Modifiers`,{number:h,trim:v}=r[p]||jt;v&&(o=n.map(y=>ln(y)?y.trim():y)),h&&(o=n.map(aP))}let a,c=r[a=Gl(t)]||r[a=Gl(so(t))];!c&&i&&(c=r[a=Gl(ud(t))]),c&&br(c,e,6,o);const d=r[a+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,br(d,e,6,o)}}function fw(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(o!==void 0)return o;const i=e.emits;let l={},a=!1;if(!nt(e)){const c=d=>{const p=fw(d,t,!0);p&&(a=!0,kn(l,p))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!i&&!a?(Kt(e)&&r.set(e,null),null):(Je(i)?i.forEach(c=>l[c]=null):kn(l,i),Kt(e)&&r.set(e,l),l)}function yd(e,t){return!e||!ld(t)?!1:(t=t.slice(2).replace(/Once$/,""),Et(e,t[0].toLowerCase()+t.slice(1))||Et(e,ud(t))||Et(e,t))}let An=null,_d=null;function ha(e){const t=An;return An=e,_d=e&&e.type.__scopeId||null,t}function rR(e){_d=e}function oR(){_d=null}const sR=e=>_e;function _e(e,t=An,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&wh(-1);const i=ha(t);let l;try{l=e(...o)}finally{ha(i),r._d&&wh(1)}return l};return r._n=!0,r._c=!0,r._d=!0,r}function mc(e){const{type:t,vnode:n,proxy:r,withProxy:o,props:i,propsOptions:[l],slots:a,attrs:c,emit:d,render:p,renderCache:h,data:v,setupState:y,ctx:b,inheritAttrs:S}=e;let T,C;const w=ha(e);try{if(n.shapeFlag&4){const O=o||r;T=vr(p.call(O,O,h,i,y,v,b)),C=c}else{const O=t;T=vr(O.length>1?O(i,{attrs:c,slots:a,emit:d}):O(i,null)),C=t.props?c:lR(c)}}catch(O){Zl.length=0,pi(O,e,1),T=z(Un)}let E=T;if(C&&S!==!1){const O=Object.keys(C),{shapeFlag:$}=E;O.length&&$&7&&(l&&O.some(Ub)&&(C=aR(C,l)),E=jr(E,C))}return n.dirs&&(E=jr(E),E.dirs=E.dirs?E.dirs.concat(n.dirs):n.dirs),n.transition&&(E.transition=n.transition),T=E,ha(w),T}function iR(e){let t;for(let n=0;n<e.length;n++){const r=e[n];if(ws(r)){if(r.type!==Un||r.children==="v-if"){if(t)return;t=r}}else return}return t}const lR=e=>{let t;for(const n in e)(n==="class"||n==="style"||ld(n))&&((t||(t={}))[n]=e[n]);return t},aR=(e,t)=>{const n={};for(const r in e)(!Ub(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function uR(e,t,n){const{props:r,children:o,component:i}=e,{props:l,children:a,patchFlag:c}=t,d=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?x1(r,l,d):!!l;if(c&8){const p=t.dynamicProps;for(let h=0;h<p.length;h++){const v=p[h];if(l[v]!==r[v]&&!yd(d,v))return!0}}}else return(o||a)&&(!a||!a.$stable)?!0:r===l?!1:r?l?x1(r,l,d):!0:!!l;return!1}function x1(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let o=0;o<r.length;o++){const i=r[o];if(t[i]!==e[i]&&!yd(n,i))return!0}return!1}function Pm({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const pw=e=>e.__isSuspense,cR={name:"Suspense",__isSuspense:!0,process(e,t,n,r,o,i,l,a,c,d){e==null?fR(t,n,r,o,i,l,a,c,d):pR(e,t,n,r,o,l,a,c,d)},hydrate:hR,create:Rm,normalize:mR},dR=cR;function ma(e,t){const n=e.props&&e.props[t];nt(n)&&n()}function fR(e,t,n,r,o,i,l,a,c){const{p:d,o:{createElement:p}}=c,h=p("div"),v=e.suspense=Rm(e,o,r,t,h,n,i,l,a,c);d(null,v.pendingBranch=e.ssContent,h,null,r,v,i,l),v.deps>0?(ma(e,"onPending"),ma(e,"onFallback"),d(null,e.ssFallback,t,n,r,null,i,l),Vi(v,e.ssFallback)):v.resolve()}function pR(e,t,n,r,o,i,l,a,{p:c,um:d,o:{createElement:p}}){const h=t.suspense=e.suspense;h.vnode=t,t.el=e.el;const v=t.ssContent,y=t.ssFallback,{activeBranch:b,pendingBranch:S,isInFallback:T,isHydrating:C}=h;if(S)h.pendingBranch=v,Qr(v,S)?(c(S,v,h.hiddenContainer,null,o,h,i,l,a),h.deps<=0?h.resolve():T&&(c(b,y,n,r,o,null,i,l,a),Vi(h,y))):(h.pendingId++,C?(h.isHydrating=!1,h.activeBranch=S):d(S,o,h),h.deps=0,h.effects.length=0,h.hiddenContainer=p("div"),T?(c(null,v,h.hiddenContainer,null,o,h,i,l,a),h.deps<=0?h.resolve():(c(b,y,n,r,o,null,i,l,a),Vi(h,y))):b&&Qr(v,b)?(c(b,v,n,r,o,h,i,l,a),h.resolve(!0)):(c(null,v,h.hiddenContainer,null,o,h,i,l,a),h.deps<=0&&h.resolve()));else if(b&&Qr(v,b))c(b,v,n,r,o,h,i,l,a),Vi(h,v);else if(ma(t,"onPending"),h.pendingBranch=v,h.pendingId++,c(null,v,h.hiddenContainer,null,o,h,i,l,a),h.deps<=0)h.resolve();else{const{timeout:w,pendingId:E}=h;w>0?setTimeout(()=>{h.pendingId===E&&h.fallback(y)},w):w===0&&h.fallback(y)}}function Rm(e,t,n,r,o,i,l,a,c,d,p=!1){const{p:h,m:v,um:y,n:b,o:{parentNode:S,remove:T}}=d,C=e.props?uP(e.props.timeout):void 0,w={vnode:e,parent:t,parentComponent:n,isSVG:l,container:r,hiddenContainer:o,anchor:i,deps:0,pendingId:0,timeout:typeof C=="number"?C:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:p,isUnmounted:!1,effects:[],resolve(E=!1){const{vnode:O,activeBranch:$,pendingBranch:P,pendingId:R,effects:k,parentComponent:W,container:U}=w;if(w.isHydrating)w.isHydrating=!1;else if(!E){const X=$&&P.transition&&P.transition.mode==="out-in";X&&($.transition.afterLeave=()=>{R===w.pendingId&&v(P,U,ne,0)});let{anchor:ne}=w;$&&(ne=b($),y($,W,w,!0)),X||v(P,U,ne,0)}Vi(w,P),w.pendingBranch=null,w.isInFallback=!1;let j=w.parent,G=!1;for(;j;){if(j.pendingBranch){j.effects.push(...k),G=!0;break}j=j.parent}G||Im(k),w.effects=[],ma(O,"onResolve")},fallback(E){if(!w.pendingBranch)return;const{vnode:O,activeBranch:$,parentComponent:P,container:R,isSVG:k}=w;ma(O,"onFallback");const W=b($),U=()=>{w.isInFallback&&(h(null,E,R,W,P,null,k,a,c),Vi(w,E))},j=E.transition&&E.transition.mode==="out-in";j&&($.transition.afterLeave=U),w.isInFallback=!0,y($,P,null,!0),j||U()},move(E,O,$){w.activeBranch&&v(w.activeBranch,E,O,$),w.container=E},next(){return w.activeBranch&&b(w.activeBranch)},registerDep(E,O){const $=!!w.pendingBranch;$&&w.deps++;const P=E.vnode.el;E.asyncDep.catch(R=>{pi(R,E,0)}).then(R=>{if(E.isUnmounted||w.isUnmounted||w.pendingId!==E.suspenseId)return;E.asyncResolved=!0;const{vnode:k}=E;Sh(E,R,!1),P&&(k.el=P);const W=!P&&E.subTree.el;O(E,k,S(P||E.subTree.el),P?null:b(E.subTree),w,l,c),W&&T(W),Pm(E,k.el),$&&--w.deps===0&&w.resolve()})},unmount(E,O){w.isUnmounted=!0,w.activeBranch&&y(w.activeBranch,n,E,O),w.pendingBranch&&y(w.pendingBranch,n,E,O)}};return w}function hR(e,t,n,r,o,i,l,a,c){const d=t.suspense=Rm(t,r,n,e.parentNode,document.createElement("div"),null,o,i,l,a,!0),p=c(e,d.pendingBranch=t.ssContent,n,d,i,l);return d.deps===0&&d.resolve(),p}function mR(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=T1(r?n.default:n),e.ssFallback=r?T1(n.fallback):z(Un)}function T1(e){let t;if(nt(e)){const n=ci&&e._c;n&&(e._d=!1,I()),e=e(),n&&(e._d=!0,t=er,Hw())}return Je(e)&&(e=iR(e)),e=vr(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function hw(e,t){t&&t.pendingBranch?Je(e)?t.effects.push(...e):t.effects.push(e):Im(e)}function Vi(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e,o=n.el=t.el;r&&r.subTree===n&&(r.vnode.el=o,Pm(r,o))}function Qt(e,t){if(Jt){let n=Jt.provides;const r=Jt.parent&&Jt.parent.provides;r===n&&(n=Jt.provides=Object.create(r)),n[e]=t}}function Ft(e,t,n=!1){const r=Jt||An;if(r){const o=r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&nt(t)?t.call(r.proxy):t}}function Vt(e,t){return Fa(e,null,t)}function mw(e,t){return Fa(e,null,{flush:"post"})}function gR(e,t){return Fa(e,null,{flush:"sync"})}const Ju={};function Ut(e,t,n){return Fa(e,t,n)}function Fa(e,t,{immediate:n,deep:r,flush:o,onTrack:i,onTrigger:l}=jt){const a=zb()===(Jt==null?void 0:Jt.scope)?Jt:null;let c,d=!1,p=!1;if(pn(e)?(c=()=>e.value,d=ca(e)):Qs(e)?(c=()=>e,r=!0):Je(e)?(p=!0,d=e.some(E=>Qs(E)||ca(E)),c=()=>e.map(E=>{if(pn(E))return E.value;if(Qs(E))return Gs(E);if(nt(E))return zo(E,a,2)})):nt(e)?t?c=()=>zo(e,a,2):c=()=>{if(!(a&&a.isUnmounted))return h&&h(),br(e,a,3,[v])}:c=So,t&&r){const E=c;c=()=>Gs(E())}let h,v=E=>{h=C.onStop=()=>{zo(E,a,4)}},y;if(Gi)if(v=So,t?n&&br(t,a,3,[c(),p?[]:void 0,v]):c(),o==="sync"){const E=r2();y=E.__watcherHandles||(E.__watcherHandles=[])}else return So;let b=p?new Array(e.length).fill(Ju):Ju;const S=()=>{if(C.active)if(t){const E=C.run();(r||d||(p?E.some((O,$)=>qi(O,b[$])):qi(E,b)))&&(h&&h(),br(t,a,3,[E,b===Ju?void 0:p&&b[0]===Ju?[]:b,v]),b=E)}else C.run()};S.allowRecurse=!!t;let T;o==="sync"?T=S:o==="post"?T=()=>Cn(S,a&&a.suspense):(S.pre=!0,a&&(S.id=a.uid),T=()=>vd(S));const C=new La(c,T);t?n?S():b=C.run():o==="post"?Cn(C.run.bind(C),a&&a.suspense):C.run();const w=()=>{C.stop(),a&&a.scope&&gm(a.scope.effects,C)};return y&&y.push(w),w}function vR(e,t,n){const r=this.proxy,o=ln(e)?e.includes(".")?gw(r,e):()=>r[e]:e.bind(r,r);let i;nt(t)?i=t:(i=t.handler,n=t);const l=Jt;Ss(this);const a=Fa(o,i.bind(r),n);return l?Ss(l):ys(),a}function gw(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o<n.length&&r;o++)r=r[n[o]];return r}}function Gs(e,t){if(!Kt(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),pn(e))Gs(e.value,t);else if(Je(e))for(let n=0;n<e.length;n++)Gs(e[n],t);else if(Bb(e)||Bi(e))e.forEach(n=>{Gs(n,t)});else if(Vb(e))for(const n in e)Gs(e[n],t);return e}function Lm(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return wt(()=>{e.isMounted=!0}),hi(()=>{e.isUnmounting=!0}),e}const Rr=[Function,Array],yR={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Rr,onEnter:Rr,onAfterEnter:Rr,onEnterCancelled:Rr,onBeforeLeave:Rr,onLeave:Rr,onAfterLeave:Rr,onLeaveCancelled:Rr,onBeforeAppear:Rr,onAppear:Rr,onAfterAppear:Rr,onAppearCancelled:Rr},setup(e,{slots:t}){const n=Jo(),r=Lm();let o;return()=>{const i=t.default&&bd(t.default(),!0);if(!i||!i.length)return;let l=i[0];if(i.length>1){for(const S of i)if(S.type!==Un){l=S;break}}const a=He(e),{mode:c}=a;if(r.isLeaving)return Op(l);const d=C1(l);if(!d)return Op(l);const p=Ki(d,a,r,n);ai(d,p);const h=n.subTree,v=h&&C1(h);let y=!1;const{getTransitionKey:b}=d.type;if(b){const S=b();o===void 0?o=S:S!==o&&(o=S,y=!0)}if(v&&v.type!==Un&&(!Qr(d,v)||y)){const S=Ki(v,a,r,n);if(ai(v,S),c==="out-in")return r.isLeaving=!0,S.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},Op(l);c==="in-out"&&d.type!==Un&&(S.delayLeave=(T,C,w)=>{const E=vw(r,v);E[String(v.key)]=v,T._leaveCb=()=>{C(),T._leaveCb=void 0,delete p.delayedLeave},p.delayedLeave=w})}return l}}},Fm=yR;function vw(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Ki(e,t,n,r){const{appear:o,mode:i,persisted:l=!1,onBeforeEnter:a,onEnter:c,onAfterEnter:d,onEnterCancelled:p,onBeforeLeave:h,onLeave:v,onAfterLeave:y,onLeaveCancelled:b,onBeforeAppear:S,onAppear:T,onAfterAppear:C,onAppearCancelled:w}=t,E=String(e.key),O=vw(n,e),$=(k,W)=>{k&&br(k,r,9,W)},P=(k,W)=>{const U=W[1];$(k,W),Je(k)?k.every(j=>j.length<=1)&&U():k.length<=1&&U()},R={mode:i,persisted:l,beforeEnter(k){let W=a;if(!n.isMounted)if(o)W=S||a;else return;k._leaveCb&&k._leaveCb(!0);const U=O[E];U&&Qr(e,U)&&U.el._leaveCb&&U.el._leaveCb(),$(W,[k])},enter(k){let W=c,U=d,j=p;if(!n.isMounted)if(o)W=T||c,U=C||d,j=w||p;else return;let G=!1;const X=k._enterCb=ne=>{G||(G=!0,ne?$(j,[k]):$(U,[k]),R.delayedLeave&&R.delayedLeave(),k._enterCb=void 0)};W?P(W,[k,X]):X()},leave(k,W){const U=String(e.key);if(k._enterCb&&k._enterCb(!0),n.isUnmounting)return W();$(h,[k]);let j=!1;const G=k._leaveCb=X=>{j||(j=!0,W(),X?$(b,[k]):$(y,[k]),k._leaveCb=void 0,O[U]===e&&delete O[U])};O[U]=e,v?P(v,[k,G]):G()},clone(k){return Ki(k,t,n,r)}};return R}function Op(e){if(Na(e))return e=jr(e),e.children=null,e}function C1(e){return Na(e)?e.children?e.children[0]:void 0:e}function ai(e,t){e.shapeFlag&6&&e.component?ai(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 bd(e,t=!1,n){let r=[],o=0;for(let i=0;i<e.length;i++){let l=e[i];const a=n==null?l.key:String(n)+String(l.key!=null?l.key:i);l.type===Me?(l.patchFlag&128&&o++,r=r.concat(bd(l.children,t,a))):(t||l.type!==Un)&&r.push(a!=null?jr(l,{key:a}):l)}if(o>1)for(let i=0;i<r.length;i++)r[i].patchFlag=-2;return r}function ge(e){return nt(e)?{setup:e,name:e.name}:e}const ei=e=>!!e.type.__asyncLoader;function _R(e){nt(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:o=200,timeout:i,suspensible:l=!0,onError:a}=e;let c=null,d,p=0;const h=()=>(p++,c=null,v()),v=()=>{let y;return c||(y=c=t().catch(b=>{if(b=b instanceof Error?b:new Error(String(b)),a)return new Promise((S,T)=>{a(b,()=>S(h()),()=>T(b),p+1)});throw b}).then(b=>y!==c&&c?c:(b&&(b.__esModule||b[Symbol.toStringTag]==="Module")&&(b=b.default),d=b,b)))};return ge({name:"AsyncComponentWrapper",__asyncLoader:v,get __asyncResolved(){return d},setup(){const y=Jt;if(d)return()=>Ap(d,y);const b=w=>{c=null,pi(w,y,13,!r)};if(l&&y.suspense||Gi)return v().then(w=>()=>Ap(w,y)).catch(w=>(b(w),()=>r?z(r,{error:w}):null));const S=$e(!1),T=$e(),C=$e(!!o);return o&&setTimeout(()=>{C.value=!1},o),i!=null&&setTimeout(()=>{if(!S.value&&!T.value){const w=new Error(`Async component timed out after ${i}ms.`);b(w),T.value=w}},i),v().then(()=>{S.value=!0,y.parent&&Na(y.parent.vnode)&&vd(y.parent.update)}).catch(w=>{b(w),T.value=w}),()=>{if(S.value&&d)return Ap(d,y);if(T.value&&r)return z(r,{error:T.value});if(n&&!C.value)return z(n)}}})}function Ap(e,t){const{ref:n,props:r,children:o,ce:i}=t.vnode,l=z(e,r,o);return l.ref=n,l.ce=i,delete t.vnode.ce,l}const Na=e=>e.type.__isKeepAlive,bR={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Jo(),r=n.ctx;if(!r.renderer)return()=>{const w=t.default&&t.default();return w&&w.length===1?w[0]:w};const o=new Map,i=new Set;let l=null;const a=n.suspense,{renderer:{p:c,m:d,um:p,o:{createElement:h}}}=r,v=h("div");r.activate=(w,E,O,$,P)=>{const R=w.component;d(w,E,O,0,a),c(R.vnode,w,E,O,R,a,$,w.slotScopeIds,P),Cn(()=>{R.isDeactivated=!1,R.a&&Xl(R.a);const k=w.props&&w.props.onVnodeMounted;k&&Qn(k,R.parent,w)},a)},r.deactivate=w=>{const E=w.component;d(w,v,null,1,a),Cn(()=>{E.da&&Xl(E.da);const O=w.props&&w.props.onVnodeUnmounted;O&&Qn(O,E.parent,w),E.isDeactivated=!0},a)};function y(w){kp(w),p(w,n,a,!0)}function b(w){o.forEach((E,O)=>{const $=$h(E.type);$&&(!w||!w($))&&S(O)})}function S(w){const E=o.get(w);!l||!Qr(E,l)?y(E):l&&kp(l),o.delete(w),i.delete(w)}Ut(()=>[e.include,e.exclude],([w,E])=>{w&&b(O=>zl(w,O)),E&&b(O=>!zl(E,O))},{flush:"post",deep:!0});let T=null;const C=()=>{T!=null&&o.set(T,Ip(n.subTree))};return wt(C),Sd(C),hi(()=>{o.forEach(w=>{const{subTree:E,suspense:O}=n,$=Ip(E);if(w.type===$.type&&w.key===$.key){kp($);const P=$.component.da;P&&Cn(P,O);return}y(w)})}),()=>{if(T=null,!t.default)return null;const w=t.default(),E=w[0];if(w.length>1)return l=null,w;if(!ws(E)||!(E.shapeFlag&4)&&!(E.shapeFlag&128))return l=null,E;let O=Ip(E);const $=O.type,P=$h(ei(O)?O.type.__asyncResolved||{}:$),{include:R,exclude:k,max:W}=e;if(R&&(!P||!zl(R,P))||k&&P&&zl(k,P))return l=O,E;const U=O.key==null?$:O.key,j=o.get(U);return O.el&&(O=jr(O),E.shapeFlag&128&&(E.ssContent=O)),T=U,j?(O.el=j.el,O.component=j.component,O.transition&&ai(O,O.transition),O.shapeFlag|=512,i.delete(U),i.add(U)):(i.add(U),W&&i.size>parseInt(W,10)&&S(i.values().next().value)),O.shapeFlag|=256,l=O,pw(E.type)?E:O}}},wR=bR;function zl(e,t){return Je(e)?e.some(n=>zl(n,t)):ln(e)?e.split(",").includes(t):oP(e)?e.test(t):!1}function yw(e,t){bw(e,"a",t)}function _w(e,t){bw(e,"da",t)}function bw(e,t,n=Jt){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(wd(t,r,n),n){let o=n.parent;for(;o&&o.parent;)Na(o.parent.vnode)&&SR(r,t,n,o),o=o.parent}}function SR(e,t,n,r){const o=wd(t,e,r,!0);en(()=>{gm(r[t],o)},n)}function kp(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Ip(e){return e.shapeFlag&128?e.ssContent:e}function wd(e,t,n=Jt,r=!1){if(n){const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...l)=>{if(n.isUnmounted)return;cl(),Ss(n);const a=br(t,n,e,l);return ys(),dl(),a});return r?o.unshift(i):o.push(i),i}}const Yo=e=>(t,n=Jt)=>(!Gi||e==="sp")&&wd(e,(...r)=>t(...r),n),ww=Yo("bm"),wt=Yo("m"),Sw=Yo("bu"),Sd=Yo("u"),hi=Yo("bum"),en=Yo("um"),Ew=Yo("sp"),$w=Yo("rtg"),xw=Yo("rtc");function Tw(e,t=Jt){wd("ec",e,t)}function Cw(e,t){const n=An;if(n===null)return e;const r=$d(n)||n.proxy,o=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[l,a,c,d=jt]=t[i];l&&(nt(l)&&(l={mounted:l,updated:l}),l.deep&&Gs(a),o.push({dir:l,instance:r,value:a,oldValue:void 0,arg:c,modifiers:d}))}return e}function bo(e,t,n,r){const o=e.dirs,i=t&&t.dirs;for(let l=0;l<o.length;l++){const a=o[l];i&&(a.oldValue=i[l].value);let c=a.dir[r];c&&(cl(),br(c,n,8,[e.el,a,e,t]),dl())}}const Nm="components",ER="directives";function q(e,t){return Mm(Nm,e,!0,t)||e}const Ow=Symbol();function $R(e){return ln(e)?Mm(Nm,e,!1)||e:e||Ow}function xR(e){return Mm(ER,e)}function Mm(e,t,n=!0,r=!1){const o=An||Jt;if(o){const i=o.type;if(e===Nm){const a=$h(i,!1);if(a&&(a===t||a===so(t)||a===cd(so(t))))return i}const l=O1(o[e]||i[e],t)||O1(o.appContext[e],t);return!l&&r?i:l}}function O1(e,t){return e&&(e[t]||e[so(t)]||e[cd(so(t))])}function Ot(e,t,n,r){let o;const i=n&&n[r];if(Je(e)||ln(e)){o=new Array(e.length);for(let l=0,a=e.length;l<a;l++)o[l]=t(e[l],l,void 0,i&&i[l])}else if(typeof e=="number"){o=new Array(e);for(let l=0;l<e;l++)o[l]=t(l+1,l,void 0,i&&i[l])}else if(Kt(e))if(e[Symbol.iterator])o=Array.from(e,(l,a)=>t(l,a,void 0,i&&i[a]));else{const l=Object.keys(e);o=new Array(l.length);for(let a=0,c=l.length;a<c;a++){const d=l[a];o[a]=t(e[d],d,a,i&&i[a])}}else o=[];return n&&(n[r]=o),o}function Aw(e,t){for(let n=0;n<t.length;n++){const r=t[n];if(Je(r))for(let o=0;o<r.length;o++)e[r[o].name]=r[o].fn;else r&&(e[r.name]=r.key?(...o)=>{const i=r.fn(...o);return i&&(i.key=r.key),i}:r.fn)}return e}function yn(e,t,n={},r,o){if(An.isCE||An.parent&&ei(An.parent)&&An.parent.isCE)return t!=="default"&&(n.name=t),z("slot",n,r&&r());let i=e[t];i&&i._c&&(i._d=!1),I();const l=i&&kw(i(n)),a=Ye(Me,{key:n.key||l&&l.key||`_${t}`},l||(r?r():[]),l&&e._===1?64:-2);return!o&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),i&&i._c&&(i._d=!0),a}function kw(e){return e.some(t=>ws(t)?!(t.type===Un||t.type===Me&&!kw(t.children)):!0)?e:null}function TR(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:Gl(r)]=e[r];return n}const mh=e=>e?Xw(e)?$d(e)||e.proxy:mh(e.parent):null,Yl=kn(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>mh(e.parent),$root:e=>mh(e.root),$emit:e=>e.emit,$options:e=>Dm(e),$forceUpdate:e=>e.f||(e.f=()=>vd(e.update)),$nextTick:e=>e.n||(e.n=sn.bind(e.proxy)),$watch:e=>vR.bind(e)}),Pp=(e,t)=>e!==jt&&!e.__isScriptSetup&&Et(e,t),gh={get({_:e},t){const{ctx:n,setupState:r,data:o,props:i,accessCache:l,type:a,appContext:c}=e;let d;if(t[0]!=="$"){const y=l[t];if(y!==void 0)switch(y){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return i[t]}else{if(Pp(r,t))return l[t]=1,r[t];if(o!==jt&&Et(o,t))return l[t]=2,o[t];if((d=e.propsOptions[0])&&Et(d,t))return l[t]=3,i[t];if(n!==jt&&Et(n,t))return l[t]=4,n[t];vh&&(l[t]=0)}}const p=Yl[t];let h,v;if(p)return t==="$attrs"&&ir(e,"get",t),p(e);if((h=a.__cssModules)&&(h=h[t]))return h;if(n!==jt&&Et(n,t))return l[t]=4,n[t];if(v=c.config.globalProperties,Et(v,t))return v[t]},set({_:e},t,n){const{data:r,setupState:o,ctx:i}=e;return Pp(o,t)?(o[t]=n,!0):r!==jt&&Et(r,t)?(r[t]=n,!0):Et(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:i}},l){let a;return!!n[l]||e!==jt&&Et(e,l)||Pp(t,l)||(a=i[0])&&Et(a,l)||Et(r,l)||Et(Yl,l)||Et(o.config.globalProperties,l)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Et(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},CR=kn({},gh,{get(e,t){if(t!==Symbol.unscopables)return gh.get(e,t,e)},has(e,t){return t[0]!=="_"&&!XI(t)}});let vh=!0;function OR(e){const t=Dm(e),n=e.proxy,r=e.ctx;vh=!1,t.beforeCreate&&A1(t.beforeCreate,e,"bc");const{data:o,computed:i,methods:l,watch:a,provide:c,inject:d,created:p,beforeMount:h,mounted:v,beforeUpdate:y,updated:b,activated:S,deactivated:T,beforeDestroy:C,beforeUnmount:w,destroyed:E,unmounted:O,render:$,renderTracked:P,renderTriggered:R,errorCaptured:k,serverPrefetch:W,expose:U,inheritAttrs:j,components:G,directives:X,filters:ne}=t;if(d&&AR(d,r,null,e.appContext.config.unwrapInjectedRef),l)for(const ke in l){const Ie=l[ke];nt(Ie)&&(r[ke]=Ie.bind(n))}if(o){const ke=o.call(n,n);Kt(ke)&&(e.data=Ts(ke))}if(vh=!0,i)for(const ke in i){const Ie=i[ke],Qe=nt(Ie)?Ie.bind(n,n):nt(Ie.get)?Ie.get.bind(n,n):So,ht=!nt(Ie)&&nt(Ie.set)?Ie.set.bind(n):So,De=fe({get:Qe,set:ht});Object.defineProperty(r,ke,{enumerable:!0,configurable:!0,get:()=>De.value,set:Xe=>De.value=Xe})}if(a)for(const ke in a)Iw(a[ke],r,n,ke);if(c){const ke=nt(c)?c.call(n):c;Reflect.ownKeys(ke).forEach(Ie=>{Qt(Ie,ke[Ie])})}p&&A1(p,e,"c");function Ee(ke,Ie){Je(Ie)?Ie.forEach(Qe=>ke(Qe.bind(n))):Ie&&ke(Ie.bind(n))}if(Ee(ww,h),Ee(wt,v),Ee(Sw,y),Ee(Sd,b),Ee(yw,S),Ee(_w,T),Ee(Tw,k),Ee(xw,P),Ee($w,R),Ee(hi,w),Ee(en,O),Ee(Ew,W),Je(U))if(U.length){const ke=e.exposed||(e.exposed={});U.forEach(Ie=>{Object.defineProperty(ke,Ie,{get:()=>n[Ie],set:Qe=>n[Ie]=Qe})})}else e.exposed||(e.exposed={});$&&e.render===So&&(e.render=$),j!=null&&(e.inheritAttrs=j),G&&(e.components=G),X&&(e.directives=X)}function AR(e,t,n=So,r=!1){Je(e)&&(e=yh(e));for(const o in e){const i=e[o];let l;Kt(i)?"default"in i?l=Ft(i.from||o,i.default,!0):l=Ft(i.from||o):l=Ft(i),pn(l)&&r?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>l.value,set:a=>l.value=a}):t[o]=l}}function A1(e,t,n){br(Je(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Iw(e,t,n,r){const o=r.includes(".")?gw(n,r):()=>n[r];if(ln(e)){const i=t[e];nt(i)&&Ut(o,i)}else if(nt(e))Ut(o,e.bind(n));else if(Kt(e))if(Je(e))e.forEach(i=>Iw(i,t,n,r));else{const i=nt(e.handler)?e.handler.bind(n):t[e.handler];nt(i)&&Ut(o,i,e)}}function Dm(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:l}}=e.appContext,a=i.get(t);let c;return a?c=a:!o.length&&!n&&!r?c=t:(c={},o.length&&o.forEach(d=>Ic(c,d,l,!0)),Ic(c,t,l)),Kt(t)&&i.set(t,c),c}function Ic(e,t,n,r=!1){const{mixins:o,extends:i}=t;i&&Ic(e,i,n,!0),o&&o.forEach(l=>Ic(e,l,n,!0));for(const l in t)if(!(r&&l==="expose")){const a=kR[l]||n&&n[l];e[l]=a?a(e[l],t[l]):t[l]}return e}const kR={data:k1,props:zs,emits:zs,methods:zs,computed:zs,beforeCreate:qn,created:qn,beforeMount:qn,mounted:qn,beforeUpdate:qn,updated:qn,beforeDestroy:qn,beforeUnmount:qn,destroyed:qn,unmounted:qn,activated:qn,deactivated:qn,errorCaptured:qn,serverPrefetch:qn,components:zs,directives:zs,watch:PR,provide:k1,inject:IR};function k1(e,t){return t?e?function(){return kn(nt(e)?e.call(this,this):e,nt(t)?t.call(this,this):t)}:t:e}function IR(e,t){return zs(yh(e),yh(t))}function yh(e){if(Je(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function qn(e,t){return e?[...new Set([].concat(e,t))]:t}function zs(e,t){return e?kn(kn(Object.create(null),e),t):t}function PR(e,t){if(!e)return t;if(!t)return e;const n=kn(Object.create(null),e);for(const r in t)n[r]=qn(e[r],t[r]);return n}function RR(e,t,n,r=!1){const o={},i={};Oc(i,Ed,1),e.propsDefaults=Object.create(null),Pw(e,t,o,i);for(const l in e.propsOptions[0])l in o||(o[l]=void 0);n?e.props=r?o:ow(o):e.type.props?e.props=o:e.props=i,e.attrs=i}function LR(e,t,n,r){const{props:o,attrs:i,vnode:{patchFlag:l}}=e,a=He(o),[c]=e.propsOptions;let d=!1;if((r||l>0)&&!(l&16)){if(l&8){const p=e.vnode.dynamicProps;for(let h=0;h<p.length;h++){let v=p[h];if(yd(e.emitsOptions,v))continue;const y=t[v];if(c)if(Et(i,v))y!==i[v]&&(i[v]=y,d=!0);else{const b=so(v);o[b]=_h(c,a,b,y,e,!1)}else y!==i[v]&&(i[v]=y,d=!0)}}}else{Pw(e,t,o,i)&&(d=!0);let p;for(const h in a)(!t||!Et(t,h)&&((p=ud(h))===h||!Et(t,p)))&&(c?n&&(n[h]!==void 0||n[p]!==void 0)&&(o[h]=_h(c,a,h,void 0,e,!0)):delete o[h]);if(i!==a)for(const h in i)(!t||!Et(t,h))&&(delete i[h],d=!0)}d&&Ko(e,"set","$attrs")}function Pw(e,t,n,r){const[o,i]=e.propsOptions;let l=!1,a;if(t)for(let c in t){if(Kl(c))continue;const d=t[c];let p;o&&Et(o,p=so(c))?!i||!i.includes(p)?n[p]=d:(a||(a={}))[p]=d:yd(e.emitsOptions,c)||(!(c in r)||d!==r[c])&&(r[c]=d,l=!0)}if(i){const c=He(n),d=a||jt;for(let p=0;p<i.length;p++){const h=i[p];n[h]=_h(o,c,h,d[h],e,!Et(d,h))}}return l}function _h(e,t,n,r,o,i){const l=e[n];if(l!=null){const a=Et(l,"default");if(a&&r===void 0){const c=l.default;if(l.type!==Function&&nt(c)){const{propsDefaults:d}=o;n in d?r=d[n]:(Ss(o),r=d[n]=c.call(null,t),ys())}else r=c}l[0]&&(i&&!a?r=!1:l[1]&&(r===""||r===ud(n))&&(r=!0))}return r}function Rw(e,t,n=!1){const r=t.propsCache,o=r.get(e);if(o)return o;const i=e.props,l={},a=[];let c=!1;if(!nt(e)){const p=h=>{c=!0;const[v,y]=Rw(h,t,!0);kn(l,v),y&&a.push(...y)};!n&&t.mixins.length&&t.mixins.forEach(p),e.extends&&p(e.extends),e.mixins&&e.mixins.forEach(p)}if(!i&&!c)return Kt(e)&&r.set(e,Ui),Ui;if(Je(i))for(let p=0;p<i.length;p++){const h=so(i[p]);I1(h)&&(l[h]=jt)}else if(i)for(const p in i){const h=so(p);if(I1(h)){const v=i[p],y=l[h]=Je(v)||nt(v)?{type:v}:Object.assign({},v);if(y){const b=L1(Boolean,y.type),S=L1(String,y.type);y[0]=b>-1,y[1]=S<0||b<S,(b>-1||Et(y,"default"))&&a.push(h)}}}const d=[l,a];return Kt(e)&&r.set(e,d),d}function I1(e){return e[0]!=="$"}function P1(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function R1(e,t){return P1(e)===P1(t)}function L1(e,t){return Je(t)?t.findIndex(n=>R1(n,e)):nt(t)&&R1(t,e)?0:-1}const Lw=e=>e[0]==="_"||e==="$stable",Um=e=>Je(e)?e.map(vr):[vr(e)],FR=(e,t,n)=>{if(t._n)return t;const r=_e((...o)=>Um(t(...o)),n);return r._c=!1,r},Fw=(e,t,n)=>{const r=e._ctx;for(const o in e){if(Lw(o))continue;const i=e[o];if(nt(i))t[o]=FR(o,i,r);else if(i!=null){const l=Um(i);t[o]=()=>l}}},Nw=(e,t)=>{const n=Um(t);e.slots.default=()=>n},NR=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=He(t),Oc(t,"_",n)):Fw(t,e.slots={})}else e.slots={},t&&Nw(e,t);Oc(e.slots,Ed,1)},MR=(e,t,n)=>{const{vnode:r,slots:o}=e;let i=!0,l=jt;if(r.shapeFlag&32){const a=t._;a?n&&a===1?i=!1:(kn(o,t),!n&&a===1&&delete o._):(i=!t.$stable,Fw(t,o)),l=t}else t&&(Nw(e,t),l={default:1});if(i)for(const a in o)!Lw(a)&&!(a in l)&&delete o[a]};function Mw(){return{app:null,config:{isNativeTag:tP,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}}let DR=0;function UR(e,t){return function(r,o=null){nt(r)||(r=Object.assign({},r)),o!=null&&!Kt(o)&&(o=null);const i=Mw(),l=new Set;let a=!1;const c=i.app={_uid:DR++,_component:r,_props:o,_container:null,_context:i,_instance:null,version:s2,get config(){return i.config},set config(d){},use(d,...p){return l.has(d)||(d&&nt(d.install)?(l.add(d),d.install(c,...p)):nt(d)&&(l.add(d),d(c,...p))),c},mixin(d){return i.mixins.includes(d)||i.mixins.push(d),c},component(d,p){return p?(i.components[d]=p,c):i.components[d]},directive(d,p){return p?(i.directives[d]=p,c):i.directives[d]},mount(d,p,h){if(!a){const v=z(r,o);return v.appContext=i,p&&t?t(v,d):e(v,d,h),a=!0,c._container=d,d.__vue_app__=c,$d(v.component)||v.component.proxy}},unmount(){a&&(e(null,c._container),delete c._container.__vue_app__)},provide(d,p){return i.provides[d]=p,c}};return c}}function Pc(e,t,n,r,o=!1){if(Je(e)){e.forEach((v,y)=>Pc(v,t&&(Je(t)?t[y]:t),n,r,o));return}if(ei(r)&&!o)return;const i=r.shapeFlag&4?$d(r.component)||r.component.proxy:r.el,l=o?null:i,{i:a,r:c}=e,d=t&&t.r,p=a.refs===jt?a.refs={}:a.refs,h=a.setupState;if(d!=null&&d!==c&&(ln(d)?(p[d]=null,Et(h,d)&&(h[d]=null)):pn(d)&&(d.value=null)),nt(c))zo(c,a,12,[l,p]);else{const v=ln(c),y=pn(c);if(v||y){const b=()=>{if(e.f){const S=v?Et(h,c)?h[c]:p[c]:c.value;o?Je(S)&&gm(S,i):Je(S)?S.includes(i)||S.push(i):v?(p[c]=[i],Et(h,c)&&(h[c]=p[c])):(c.value=[i],e.k&&(p[e.k]=c.value))}else v?(p[c]=l,Et(h,c)&&(h[c]=l)):y&&(c.value=l,e.k&&(p[e.k]=l))};l?(b.id=-1,Cn(b,n)):b()}}}let as=!1;const Zu=e=>/svg/.test(e.namespaceURI)&&e.tagName!=="foreignObject",Qu=e=>e.nodeType===8;function BR(e){const{mt:t,p:n,o:{patchProp:r,createText:o,nextSibling:i,parentNode:l,remove:a,insert:c,createComment:d}}=e,p=(C,w)=>{if(!w.hasChildNodes()){n(null,C,w),kc(),w._vnode=C;return}as=!1,h(w.firstChild,C,null,null,null),kc(),w._vnode=C,as&&console.error("Hydration completed but contains mismatches.")},h=(C,w,E,O,$,P=!1)=>{const R=Qu(C)&&C.data==="[",k=()=>S(C,w,E,O,$,R),{type:W,ref:U,shapeFlag:j,patchFlag:G}=w;let X=C.nodeType;w.el=C,G===-2&&(P=!1,w.dynamicChildren=null);let ne=null;switch(W){case ui:X!==3?w.children===""?(c(w.el=o(""),l(C),C),ne=C):ne=k():(C.data!==w.children&&(as=!0,C.data=w.children),ne=i(C));break;case Un:X!==8||R?ne=k():ne=i(C);break;case ti:if(R&&(C=i(C),X=C.nodeType),X===1||X===3){ne=C;const xe=!w.children.length;for(let Ee=0;Ee<w.staticCount;Ee++)xe&&(w.children+=ne.nodeType===1?ne.outerHTML:ne.data),Ee===w.staticCount-1&&(w.anchor=ne),ne=i(ne);return R?i(ne):ne}else k();break;case Me:R?ne=b(C,w,E,O,$,P):ne=k();break;default:if(j&1)X!==1||w.type.toLowerCase()!==C.tagName.toLowerCase()?ne=k():ne=v(C,w,E,O,$,P);else if(j&6){w.slotScopeIds=$;const xe=l(C);if(t(w,xe,null,E,O,Zu(xe),P),ne=R?T(C):i(C),ne&&Qu(ne)&&ne.data==="teleport end"&&(ne=i(ne)),ei(w)){let Ee;R?(Ee=z(Me),Ee.anchor=ne?ne.previousSibling:xe.lastChild):Ee=C.nodeType===3?Be(""):z("div"),Ee.el=C,w.component.subTree=Ee}}else j&64?X!==8?ne=k():ne=w.type.hydrate(C,w,E,O,$,P,e,y):j&128&&(ne=w.type.hydrate(C,w,E,O,Zu(l(C)),$,P,e,h))}return U!=null&&Pc(U,null,O,w),ne},v=(C,w,E,O,$,P)=>{P=P||!!w.dynamicChildren;const{type:R,props:k,patchFlag:W,shapeFlag:U,dirs:j}=w,G=R==="input"&&j||R==="option";if(G||W!==-1){if(j&&bo(w,null,E,"created"),k)if(G||!P||W&48)for(const ne in k)(G&&ne.endsWith("value")||ld(ne)&&!Kl(ne))&&r(C,ne,null,k[ne],!1,void 0,E);else k.onClick&&r(C,"onClick",null,k.onClick,!1,void 0,E);let X;if((X=k&&k.onVnodeBeforeMount)&&Qn(X,E,w),j&&bo(w,null,E,"beforeMount"),((X=k&&k.onVnodeMounted)||j)&&hw(()=>{X&&Qn(X,E,w),j&&bo(w,null,E,"mounted")},O),U&16&&!(k&&(k.innerHTML||k.textContent))){let ne=y(C.firstChild,w,C,E,O,$,P);for(;ne;){as=!0;const xe=ne;ne=ne.nextSibling,a(xe)}}else U&8&&C.textContent!==w.children&&(as=!0,C.textContent=w.children)}return C.nextSibling},y=(C,w,E,O,$,P,R)=>{R=R||!!w.dynamicChildren;const k=w.children,W=k.length;for(let U=0;U<W;U++){const j=R?k[U]:k[U]=vr(k[U]);if(C)C=h(C,j,O,$,P,R);else{if(j.type===ui&&!j.children)continue;as=!0,n(null,j,E,null,O,$,Zu(E),P)}}return C},b=(C,w,E,O,$,P)=>{const{slotScopeIds:R}=w;R&&($=$?$.concat(R):R);const k=l(C),W=y(i(C),w,k,E,O,$,P);return W&&Qu(W)&&W.data==="]"?i(w.anchor=W):(as=!0,c(w.anchor=d("]"),k,W),W)},S=(C,w,E,O,$,P)=>{if(as=!0,w.el=null,P){const W=T(C);for(;;){const U=i(C);if(U&&U!==W)a(U);else break}}const R=i(C),k=l(C);return a(C),n(null,w,k,R,E,O,Zu(k),$),R},T=C=>{let w=0;for(;C;)if(C=i(C),C&&Qu(C)&&(C.data==="["&&w++,C.data==="]")){if(w===0)return i(C);w--}return C};return[p,h]}const Cn=hw;function Dw(e){return Bw(e)}function Uw(e){return Bw(e,BR)}function Bw(e,t){const n=cP();n.__VUE__=!0;const{insert:r,remove:o,patchProp:i,createElement:l,createText:a,createComment:c,setText:d,setElementText:p,parentNode:h,nextSibling:v,setScopeId:y=So,insertStaticContent:b}=e,S=(M,V,Z,ue=null,le=null,ye=null,Oe=!1,we=null,Se=!!V.dynamicChildren)=>{if(M===V)return;M&&!Qr(M,V)&&(ue=We(M),Xe(M,le,ye,!0),M=null),V.patchFlag===-2&&(Se=!1,V.dynamicChildren=null);const{type:ae,ref:Fe,shapeFlag:Pe}=V;switch(ae){case ui:T(M,V,Z,ue);break;case Un:C(M,V,Z,ue);break;case ti:M==null&&w(V,Z,ue,Oe);break;case Me:G(M,V,Z,ue,le,ye,Oe,we,Se);break;default:Pe&1?$(M,V,Z,ue,le,ye,Oe,we,Se):Pe&6?X(M,V,Z,ue,le,ye,Oe,we,Se):(Pe&64||Pe&128)&&ae.process(M,V,Z,ue,le,ye,Oe,we,Se,rt)}Fe!=null&&le&&Pc(Fe,M&&M.ref,ye,V||M,!V)},T=(M,V,Z,ue)=>{if(M==null)r(V.el=a(V.children),Z,ue);else{const le=V.el=M.el;V.children!==M.children&&d(le,V.children)}},C=(M,V,Z,ue)=>{M==null?r(V.el=c(V.children||""),Z,ue):V.el=M.el},w=(M,V,Z,ue)=>{[M.el,M.anchor]=b(M.children,V,Z,ue,M.el,M.anchor)},E=({el:M,anchor:V},Z,ue)=>{let le;for(;M&&M!==V;)le=v(M),r(M,Z,ue),M=le;r(V,Z,ue)},O=({el:M,anchor:V})=>{let Z;for(;M&&M!==V;)Z=v(M),o(M),M=Z;o(V)},$=(M,V,Z,ue,le,ye,Oe,we,Se)=>{Oe=Oe||V.type==="svg",M==null?P(V,Z,ue,le,ye,Oe,we,Se):W(M,V,le,ye,Oe,we,Se)},P=(M,V,Z,ue,le,ye,Oe,we)=>{let Se,ae;const{type:Fe,props:Pe,shapeFlag:je,transition:ze,dirs:st}=M;if(Se=M.el=l(M.type,ye,Pe&&Pe.is,Pe),je&8?p(Se,M.children):je&16&&k(M.children,Se,null,ue,le,ye&&Fe!=="foreignObject",Oe,we),st&&bo(M,null,ue,"created"),R(Se,M,M.scopeId,Oe,ue),Pe){for(const ft in Pe)ft!=="value"&&!Kl(ft)&&i(Se,ft,null,Pe[ft],ye,M.children,ue,le,Ce);"value"in Pe&&i(Se,"value",null,Pe.value),(ae=Pe.onVnodeBeforeMount)&&Qn(ae,ue,M)}st&&bo(M,null,ue,"beforeMount");const yt=(!le||le&&!le.pendingBranch)&&ze&&!ze.persisted;yt&&ze.beforeEnter(Se),r(Se,V,Z),((ae=Pe&&Pe.onVnodeMounted)||yt||st)&&Cn(()=>{ae&&Qn(ae,ue,M),yt&&ze.enter(Se),st&&bo(M,null,ue,"mounted")},le)},R=(M,V,Z,ue,le)=>{if(Z&&y(M,Z),ue)for(let ye=0;ye<ue.length;ye++)y(M,ue[ye]);if(le){let ye=le.subTree;if(V===ye){const Oe=le.vnode;R(M,Oe,Oe.scopeId,Oe.slotScopeIds,le.parent)}}},k=(M,V,Z,ue,le,ye,Oe,we,Se=0)=>{for(let ae=Se;ae<M.length;ae++){const Fe=M[ae]=we?ps(M[ae]):vr(M[ae]);S(null,Fe,V,Z,ue,le,ye,Oe,we)}},W=(M,V,Z,ue,le,ye,Oe)=>{const we=V.el=M.el;let{patchFlag:Se,dynamicChildren:ae,dirs:Fe}=V;Se|=M.patchFlag&16;const Pe=M.props||jt,je=V.props||jt;let ze;Z&&Bs(Z,!1),(ze=je.onVnodeBeforeUpdate)&&Qn(ze,Z,V,M),Fe&&bo(V,M,Z,"beforeUpdate"),Z&&Bs(Z,!0);const st=le&&V.type!=="foreignObject";if(ae?U(M.dynamicChildren,ae,we,Z,ue,st,ye):Oe||Ie(M,V,we,null,Z,ue,st,ye,!1),Se>0){if(Se&16)j(we,V,Pe,je,Z,ue,le);else if(Se&2&&Pe.class!==je.class&&i(we,"class",null,je.class,le),Se&4&&i(we,"style",Pe.style,je.style,le),Se&8){const yt=V.dynamicProps;for(let ft=0;ft<yt.length;ft++){const Ht=yt[ft],Vn=Pe[Ht],mo=je[Ht];(mo!==Vn||Ht==="value")&&i(we,Ht,Vn,mo,le,M.children,Z,ue,Ce)}}Se&1&&M.children!==V.children&&p(we,V.children)}else!Oe&&ae==null&&j(we,V,Pe,je,Z,ue,le);((ze=je.onVnodeUpdated)||Fe)&&Cn(()=>{ze&&Qn(ze,Z,V,M),Fe&&bo(V,M,Z,"updated")},ue)},U=(M,V,Z,ue,le,ye,Oe)=>{for(let we=0;we<V.length;we++){const Se=M[we],ae=V[we],Fe=Se.el&&(Se.type===Me||!Qr(Se,ae)||Se.shapeFlag&70)?h(Se.el):Z;S(Se,ae,Fe,null,ue,le,ye,Oe,!0)}},j=(M,V,Z,ue,le,ye,Oe)=>{if(Z!==ue){if(Z!==jt)for(const we in Z)!Kl(we)&&!(we in ue)&&i(M,we,Z[we],null,Oe,V.children,le,ye,Ce);for(const we in ue){if(Kl(we))continue;const Se=ue[we],ae=Z[we];Se!==ae&&we!=="value"&&i(M,we,ae,Se,Oe,V.children,le,ye,Ce)}"value"in ue&&i(M,"value",Z.value,ue.value)}},G=(M,V,Z,ue,le,ye,Oe,we,Se)=>{const ae=V.el=M?M.el:a(""),Fe=V.anchor=M?M.anchor:a("");let{patchFlag:Pe,dynamicChildren:je,slotScopeIds:ze}=V;ze&&(we=we?we.concat(ze):ze),M==null?(r(ae,Z,ue),r(Fe,Z,ue),k(V.children,Z,Fe,le,ye,Oe,we,Se)):Pe>0&&Pe&64&&je&&M.dynamicChildren?(U(M.dynamicChildren,je,Z,le,ye,Oe,we),(V.key!=null||le&&V===le.subTree)&&Bm(M,V,!0)):Ie(M,V,Z,Fe,le,ye,Oe,we,Se)},X=(M,V,Z,ue,le,ye,Oe,we,Se)=>{V.slotScopeIds=we,M==null?V.shapeFlag&512?le.ctx.activate(V,Z,ue,Oe,Se):ne(V,Z,ue,le,ye,Oe,Se):xe(M,V,Se)},ne=(M,V,Z,ue,le,ye,Oe)=>{const we=M.component=Gw(M,ue,le);if(Na(M)&&(we.ctx.renderer=rt),Yw(we),we.asyncDep){if(le&&le.registerDep(we,Ee),!M.el){const Se=we.subTree=z(Un);C(null,Se,V,Z)}return}Ee(we,M,V,Z,le,ye,Oe)},xe=(M,V,Z)=>{const ue=V.component=M.component;if(uR(M,V,Z))if(ue.asyncDep&&!ue.asyncResolved){ke(ue,V,Z);return}else ue.next=V,eR(ue.update),ue.update();else V.el=M.el,ue.vnode=V},Ee=(M,V,Z,ue,le,ye,Oe)=>{const we=()=>{if(M.isMounted){let{next:Fe,bu:Pe,u:je,parent:ze,vnode:st}=M,yt=Fe,ft;Bs(M,!1),Fe?(Fe.el=st.el,ke(M,Fe,Oe)):Fe=st,Pe&&Xl(Pe),(ft=Fe.props&&Fe.props.onVnodeBeforeUpdate)&&Qn(ft,ze,Fe,st),Bs(M,!0);const Ht=mc(M),Vn=M.subTree;M.subTree=Ht,S(Vn,Ht,h(Vn.el),We(Vn),M,le,ye),Fe.el=Ht.el,yt===null&&Pm(M,Ht.el),je&&Cn(je,le),(ft=Fe.props&&Fe.props.onVnodeUpdated)&&Cn(()=>Qn(ft,ze,Fe,st),le)}else{let Fe;const{el:Pe,props:je}=V,{bm:ze,m:st,parent:yt}=M,ft=ei(V);if(Bs(M,!1),ze&&Xl(ze),!ft&&(Fe=je&&je.onVnodeBeforeMount)&&Qn(Fe,yt,V),Bs(M,!0),Pe&&an){const Ht=()=>{M.subTree=mc(M),an(Pe,M.subTree,M,le,null)};ft?V.type.__asyncLoader().then(()=>!M.isUnmounted&&Ht()):Ht()}else{const Ht=M.subTree=mc(M);S(null,Ht,Z,ue,M,le,ye),V.el=Ht.el}if(st&&Cn(st,le),!ft&&(Fe=je&&je.onVnodeMounted)){const Ht=V;Cn(()=>Qn(Fe,yt,Ht),le)}(V.shapeFlag&256||yt&&ei(yt.vnode)&&yt.vnode.shapeFlag&256)&&M.a&&Cn(M.a,le),M.isMounted=!0,V=Z=ue=null}},Se=M.effect=new La(we,()=>vd(ae),M.scope),ae=M.update=()=>Se.run();ae.id=M.uid,Bs(M,!0),ae()},ke=(M,V,Z)=>{V.component=M;const ue=M.vnode.props;M.vnode=V,M.next=null,LR(M,V.props,ue,Z),MR(M,V.children,Z),cl(),$1(),dl()},Ie=(M,V,Z,ue,le,ye,Oe,we,Se=!1)=>{const ae=M&&M.children,Fe=M?M.shapeFlag:0,Pe=V.children,{patchFlag:je,shapeFlag:ze}=V;if(je>0){if(je&128){ht(ae,Pe,Z,ue,le,ye,Oe,we,Se);return}else if(je&256){Qe(ae,Pe,Z,ue,le,ye,Oe,we,Se);return}}ze&8?(Fe&16&&Ce(ae,le,ye),Pe!==ae&&p(Z,Pe)):Fe&16?ze&16?ht(ae,Pe,Z,ue,le,ye,Oe,we,Se):Ce(ae,le,ye,!0):(Fe&8&&p(Z,""),ze&16&&k(Pe,Z,ue,le,ye,Oe,we,Se))},Qe=(M,V,Z,ue,le,ye,Oe,we,Se)=>{M=M||Ui,V=V||Ui;const ae=M.length,Fe=V.length,Pe=Math.min(ae,Fe);let je;for(je=0;je<Pe;je++){const ze=V[je]=Se?ps(V[je]):vr(V[je]);S(M[je],ze,Z,null,le,ye,Oe,we,Se)}ae>Fe?Ce(M,le,ye,!0,!1,Pe):k(V,Z,ue,le,ye,Oe,we,Se,Pe)},ht=(M,V,Z,ue,le,ye,Oe,we,Se)=>{let ae=0;const Fe=V.length;let Pe=M.length-1,je=Fe-1;for(;ae<=Pe&&ae<=je;){const ze=M[ae],st=V[ae]=Se?ps(V[ae]):vr(V[ae]);if(Qr(ze,st))S(ze,st,Z,null,le,ye,Oe,we,Se);else break;ae++}for(;ae<=Pe&&ae<=je;){const ze=M[Pe],st=V[je]=Se?ps(V[je]):vr(V[je]);if(Qr(ze,st))S(ze,st,Z,null,le,ye,Oe,we,Se);else break;Pe--,je--}if(ae>Pe){if(ae<=je){const ze=je+1,st=ze<Fe?V[ze].el:ue;for(;ae<=je;)S(null,V[ae]=Se?ps(V[ae]):vr(V[ae]),Z,st,le,ye,Oe,we,Se),ae++}}else if(ae>je)for(;ae<=Pe;)Xe(M[ae],le,ye,!0),ae++;else{const ze=ae,st=ae,yt=new Map;for(ae=st;ae<=je;ae++){const Sn=V[ae]=Se?ps(V[ae]):vr(V[ae]);Sn.key!=null&&yt.set(Sn.key,ae)}let ft,Ht=0;const Vn=je-st+1;let mo=!1,_i=0;const Oo=new Array(Vn);for(ae=0;ae<Vn;ae++)Oo[ae]=0;for(ae=ze;ae<=Pe;ae++){const Sn=M[ae];if(Ht>=Vn){Xe(Sn,le,ye,!0);continue}let Gn;if(Sn.key!=null)Gn=yt.get(Sn.key);else for(ft=st;ft<=je;ft++)if(Oo[ft-st]===0&&Qr(Sn,V[ft])){Gn=ft;break}Gn===void 0?Xe(Sn,le,ye,!0):(Oo[Gn-st]=ae+1,Gn>=_i?_i=Gn:mo=!0,S(Sn,V[Gn],Z,null,le,ye,Oe,we,Se),Ht++)}const bi=mo?jR(Oo):Ui;for(ft=bi.length-1,ae=Vn-1;ae>=0;ae--){const Sn=st+ae,Gn=V[Sn],wi=Sn+1<Fe?V[Sn+1].el:ue;Oo[ae]===0?S(null,Gn,Z,wi,le,ye,Oe,we,Se):mo&&(ft<0||ae!==bi[ft]?De(Gn,Z,wi,2):ft--)}}},De=(M,V,Z,ue,le=null)=>{const{el:ye,type:Oe,transition:we,children:Se,shapeFlag:ae}=M;if(ae&6){De(M.component.subTree,V,Z,ue);return}if(ae&128){M.suspense.move(V,Z,ue);return}if(ae&64){Oe.move(M,V,Z,rt);return}if(Oe===Me){r(ye,V,Z);for(let Pe=0;Pe<Se.length;Pe++)De(Se[Pe],V,Z,ue);r(M.anchor,V,Z);return}if(Oe===ti){E(M,V,Z);return}if(ue!==2&&ae&1&&we)if(ue===0)we.beforeEnter(ye),r(ye,V,Z),Cn(()=>we.enter(ye),le);else{const{leave:Pe,delayLeave:je,afterLeave:ze}=we,st=()=>r(ye,V,Z),yt=()=>{Pe(ye,()=>{st(),ze&&ze()})};je?je(ye,st,yt):yt()}else r(ye,V,Z)},Xe=(M,V,Z,ue=!1,le=!1)=>{const{type:ye,props:Oe,ref:we,children:Se,dynamicChildren:ae,shapeFlag:Fe,patchFlag:Pe,dirs:je}=M;if(we!=null&&Pc(we,null,Z,M,!0),Fe&256){V.ctx.deactivate(M);return}const ze=Fe&1&&je,st=!ei(M);let yt;if(st&&(yt=Oe&&Oe.onVnodeBeforeUnmount)&&Qn(yt,V,M),Fe&6)ve(M.component,Z,ue);else{if(Fe&128){M.suspense.unmount(Z,ue);return}ze&&bo(M,null,V,"beforeUnmount"),Fe&64?M.type.remove(M,V,Z,le,rt,ue):ae&&(ye!==Me||Pe>0&&Pe&64)?Ce(ae,V,Z,!1,!0):(ye===Me&&Pe&384||!le&&Fe&16)&&Ce(Se,V,Z),ue&&Q(M)}(st&&(yt=Oe&&Oe.onVnodeUnmounted)||ze)&&Cn(()=>{yt&&Qn(yt,V,M),ze&&bo(M,null,V,"unmounted")},Z)},Q=M=>{const{type:V,el:Z,anchor:ue,transition:le}=M;if(V===Me){ce(Z,ue);return}if(V===ti){O(M);return}const ye=()=>{o(Z),le&&!le.persisted&&le.afterLeave&&le.afterLeave()};if(M.shapeFlag&1&&le&&!le.persisted){const{leave:Oe,delayLeave:we}=le,Se=()=>Oe(Z,ye);we?we(M.el,ye,Se):Se()}else ye()},ce=(M,V)=>{let Z;for(;M!==V;)Z=v(M),o(M),M=Z;o(V)},ve=(M,V,Z)=>{const{bum:ue,scope:le,update:ye,subTree:Oe,um:we}=M;ue&&Xl(ue),le.stop(),ye&&(ye.active=!1,Xe(Oe,M,V,Z)),we&&Cn(we,V),Cn(()=>{M.isUnmounted=!0},V),V&&V.pendingBranch&&!V.isUnmounted&&M.asyncDep&&!M.asyncResolved&&M.suspenseId===V.pendingId&&(V.deps--,V.deps===0&&V.resolve())},Ce=(M,V,Z,ue=!1,le=!1,ye=0)=>{for(let Oe=ye;Oe<M.length;Oe++)Xe(M[Oe],V,Z,ue,le)},We=M=>M.shapeFlag&6?We(M.component.subTree):M.shapeFlag&128?M.suspense.next():v(M.anchor||M.el),Ve=(M,V,Z)=>{M==null?V._vnode&&Xe(V._vnode,null,null,!0):S(V._vnode||null,M,V,null,null,null,Z),$1(),kc(),V._vnode=M},rt={p:S,um:Xe,m:De,r:Q,mt:ne,mc:k,pc:Ie,pbc:U,n:We,o:e};let wn,an;return t&&([wn,an]=t(rt)),{render:Ve,hydrate:wn,createApp:UR(Ve,wn)}}function Bs({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Bm(e,t,n=!1){const r=e.children,o=t.children;if(Je(r)&&Je(o))for(let i=0;i<r.length;i++){const l=r[i];let a=o[i];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=o[i]=ps(o[i]),a.el=l.el),n||Bm(l,a)),a.type===ui&&(a.el=l.el)}}function jR(e){const t=e.slice(),n=[0];let r,o,i,l,a;const c=e.length;for(r=0;r<c;r++){const d=e[r];if(d!==0){if(o=n[n.length-1],e[o]<d){t[r]=o,n.push(r);continue}for(i=0,l=n.length-1;i<l;)a=i+l>>1,e[n[a]]<d?i=a+1:l=a;d<e[n[i]]&&(i>0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,l=n[i-1];i-- >0;)n[i]=l,l=t[l];return n}const VR=e=>e.__isTeleport,Jl=e=>e&&(e.disabled||e.disabled===""),F1=e=>typeof SVGElement<"u"&&e instanceof SVGElement,bh=(e,t)=>{const n=e&&e.to;return ln(n)?t?t(n):null:n},HR={__isTeleport:!0,process(e,t,n,r,o,i,l,a,c,d){const{mc:p,pc:h,pbc:v,o:{insert:y,querySelector:b,createText:S,createComment:T}}=d,C=Jl(t.props);let{shapeFlag:w,children:E,dynamicChildren:O}=t;if(e==null){const $=t.el=S(""),P=t.anchor=S("");y($,n,r),y(P,n,r);const R=t.target=bh(t.props,b),k=t.targetAnchor=S("");R&&(y(k,R),l=l||F1(R));const W=(U,j)=>{w&16&&p(E,U,j,o,i,l,a,c)};C?W(n,P):R&&W(R,k)}else{t.el=e.el;const $=t.anchor=e.anchor,P=t.target=e.target,R=t.targetAnchor=e.targetAnchor,k=Jl(e.props),W=k?n:P,U=k?$:R;if(l=l||F1(P),O?(v(e.dynamicChildren,O,W,o,i,l,a),Bm(e,t,!0)):c||h(e,t,W,U,o,i,l,a,!1),C)k||ec(t,n,$,d,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const j=t.target=bh(t.props,b);j&&ec(t,j,null,d,0)}else k&&ec(t,P,R,d,1)}Vw(t)},remove(e,t,n,r,{um:o,o:{remove:i}},l){const{shapeFlag:a,children:c,anchor:d,targetAnchor:p,target:h,props:v}=e;if(h&&i(p),(l||!Jl(v))&&(i(d),a&16))for(let y=0;y<c.length;y++){const b=c[y];o(b,t,n,!0,!!b.dynamicChildren)}},move:ec,hydrate:zR};function ec(e,t,n,{o:{insert:r},m:o},i=2){i===0&&r(e.targetAnchor,t,n);const{el:l,anchor:a,shapeFlag:c,children:d,props:p}=e,h=i===2;if(h&&r(l,t,n),(!h||Jl(p))&&c&16)for(let v=0;v<d.length;v++)o(d[v],t,n,2);h&&r(a,t,n)}function zR(e,t,n,r,o,i,{o:{nextSibling:l,parentNode:a,querySelector:c}},d){const p=t.target=bh(t.props,c);if(p){const h=p._lpa||p.firstChild;if(t.shapeFlag&16)if(Jl(t.props))t.anchor=d(l(e),t,a(e),n,r,o,i),t.targetAnchor=h;else{t.anchor=l(e);let v=h;for(;v;)if(v=l(v),v&&v.nodeType===8&&v.data==="teleport anchor"){t.targetAnchor=v,p._lpa=t.targetAnchor&&l(t.targetAnchor);break}d(h,t,p,n,r,o,i)}Vw(t)}return t.anchor&&l(t.anchor)}const jw=HR;function Vw(e){const t=e.ctx;if(t&&t.ut){let n=e.children[0].el;for(;n!==e.targetAnchor;)n.nodeType===1&&n.setAttribute("data-v-owner",t.uid),n=n.nextSibling;t.ut()}}const Me=Symbol(void 0),ui=Symbol(void 0),Un=Symbol(void 0),ti=Symbol(void 0),Zl=[];let er=null;function I(e=!1){Zl.push(er=e?null:[])}function Hw(){Zl.pop(),er=Zl[Zl.length-1]||null}let ci=1;function wh(e){ci+=e}function zw(e){return e.dynamicChildren=ci>0?er||Ui:null,Hw(),ci>0&&er&&er.push(e),e}function F(e,t,n,r,o,i){return zw(m(e,t,n,r,o,i,!0))}function Ye(e,t,n,r,o){return zw(z(e,t,n,r,o,!0))}function ws(e){return e?e.__v_isVNode===!0:!1}function Qr(e,t){return e.type===t.type&&e.key===t.key}function WR(e){}const Ed="__vInternal",Ww=({key:e})=>e??null,gc=({ref:e,ref_key:t,ref_for:n})=>e!=null?ln(e)||pn(e)||nt(e)?{i:An,r:e,k:t,f:!!n}:e:null;function m(e,t=null,n=null,r=0,o=null,i=e===Me?0:1,l=!1,a=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ww(t),ref:t&&gc(t),scopeId:_d,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:An};return a?(jm(c,n),i&128&&e.normalize(c)):n&&(c.shapeFlag|=ln(n)?8:16),ci>0&&!l&&er&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&&er.push(c),c}const z=qR;function qR(e,t=null,n=null,r=0,o=null,i=!1){if((!e||e===Ow)&&(e=Un),ws(e)){const a=jr(e,t,!0);return n&&jm(a,n),ci>0&&!i&&er&&(a.shapeFlag&6?er[er.indexOf(e)]=a:er.push(a)),a.patchFlag|=-2,a}if(QR(e)&&(e=e.__vccOpts),t){t=qw(t);let{class:a,style:c}=t;a&&!ln(a)&&(t.class=gt(a)),Kt(c)&&($m(c)&&!Je(c)&&(c=kn({},c)),t.style=oo(c))}const l=ln(e)?1:pw(e)?128:VR(e)?64:Kt(e)?4:nt(e)?2:0;return m(e,t,n,r,o,l,i,!0)}function qw(e){return e?$m(e)||Ed in e?kn({},e):e:null}function jr(e,t,n=!1){const{props:r,ref:o,patchFlag:i,children:l}=e,a=t?Kw(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&Ww(a),ref:t&&t.ref?n&&o?Je(o)?o.concat(gc(t)):[o,gc(t)]:gc(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Me?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&jr(e.ssContent),ssFallback:e.ssFallback&&jr(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Be(e=" ",t=0){return z(ui,null,e,t)}function KR(e,t){const n=z(ti,null,e);return n.staticCount=t,n}function Te(e="",t=!1){return t?(I(),Ye(Un,null,e)):z(Un,null,e)}function vr(e){return e==null||typeof e=="boolean"?z(Un):Je(e)?z(Me,null,e.slice()):typeof e=="object"?ps(e):z(ui,null,String(e))}function ps(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:jr(e)}function jm(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Je(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),jm(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(Ed in t)?t._ctx=An:o===3&&An&&(An.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else nt(t)?(t={default:t,_ctx:An},n=32):(t=String(t),r&64?(n=16,t=[Be(t)]):n=8);e.children=t,e.shapeFlag|=n}function Kw(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const o in r)if(o==="class")t.class!==r.class&&(t.class=gt([t.class,r.class]));else if(o==="style")t.style=oo([t.style,r.style]);else if(ld(o)){const i=t[o],l=r[o];l&&i!==l&&!(Je(i)&&i.includes(l))&&(t[o]=i?[].concat(i,l):l)}else o!==""&&(t[o]=r[o])}return t}function Qn(e,t,n,r=null){br(e,t,7,[n,r])}const GR=Mw();let XR=0;function Gw(e,t,n){const r=e.type,o=(t?t.appContext:e.appContext)||GR,i={uid:XR++,vnode:e,type:r,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,scope:new bm(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Rw(r,o),emitsOptions:fw(r,o),emit:null,emitted:null,propsDefaults:jt,inheritAttrs:r.inheritAttrs,ctx:jt,data:jt,props:jt,attrs:jt,slots:jt,refs:jt,setupState:jt,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 i.ctx={_:i},i.root=t?t.root:i,i.emit=nR.bind(null,i),e.ce&&e.ce(i),i}let Jt=null;const Jo=()=>Jt||An,Ss=e=>{Jt=e,e.scope.on()},ys=()=>{Jt&&Jt.scope.off(),Jt=null};function Xw(e){return e.vnode.shapeFlag&4}let Gi=!1;function Yw(e,t=!1){Gi=t;const{props:n,children:r}=e.vnode,o=Xw(e);RR(e,n,o,t),NR(e,r);const i=o?YR(e,t):void 0;return Gi=!1,i}function YR(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=xm(new Proxy(e.ctx,gh));const{setup:r}=n;if(r){const o=e.setupContext=r.length>1?Qw(e):null;Ss(e),cl();const i=zo(r,e,0,[e.props,o]);if(dl(),ys(),ym(i)){if(i.then(ys,ys),t)return i.then(l=>{Sh(e,l,t)}).catch(l=>{pi(l,e,0)});e.asyncDep=i}else Sh(e,i,t)}else Zw(e,t)}function Sh(e,t,n){nt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Kt(t)&&(e.setupState=Om(t)),Zw(e,n)}let Rc,Eh;function Jw(e){Rc=e,Eh=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,CR))}}const JR=()=>!Rc;function Zw(e,t,n){const r=e.type;if(!e.render){if(!t&&Rc&&!r.render){const o=r.template||Dm(e).template;if(o){const{isCustomElement:i,compilerOptions:l}=e.appContext.config,{delimiters:a,compilerOptions:c}=r,d=kn(kn({isCustomElement:i,delimiters:a},l),c);r.render=Rc(o,d)}}e.render=r.render||So,Eh&&Eh(e)}Ss(e),cl(),OR(e),dl(),ys()}function ZR(e){return new Proxy(e.attrs,{get(t,n){return ir(e,"get","$attrs"),t[n]}})}function Qw(e){const t=r=>{e.exposed=r||{}};let n;return{get attrs(){return n||(n=ZR(e))},slots:e.slots,emit:e.emit,expose:t}}function $d(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Om(xm(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Yl)return Yl[n](e)},has(t,n){return n in t||n in Yl}}))}function $h(e,t=!0){return nt(e)?e.displayName||e.name:e.name||t&&e.__name}function QR(e){return nt(e)&&"__vccOpts"in e}const fe=(e,t)=>XP(e,t,Gi);function eL(){return null}function tL(){return null}function nL(e){}function rL(e,t){return null}function e2(){return t2().slots}function oL(){return t2().attrs}function t2(){const e=Jo();return e.setupContext||(e.setupContext=Qw(e))}function sL(e,t){const n=Je(e)?e.reduce((r,o)=>(r[o]={},r),{}):e;for(const r in t){const o=n[r];o?Je(o)||nt(o)?n[r]={type:o,default:t[r]}:o.default=t[r]:o===null&&(n[r]={default:t[r]})}return n}function iL(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function lL(e){const t=Jo();let n=e();return ys(),ym(n)&&(n=n.catch(r=>{throw Ss(t),r})),[n,()=>Ss(t)]}function pt(e,t,n){const r=arguments.length;return r===2?Kt(t)&&!Je(t)?ws(t)?z(e,null,[t]):z(e,t):z(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&ws(n)&&(n=[n]),z(e,t,n))}const n2=Symbol(""),r2=()=>Ft(n2);function aL(){}function uL(e,t,n,r){const o=n[r];if(o&&o2(o,e))return o;const i=t();return i.memo=e.slice(),n[r]=i}function o2(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r<n.length;r++)if(qi(n[r],t[r]))return!1;return ci>0&&er&&er.push(e),!0}const s2="3.2.47",cL={createComponentInstance:Gw,setupComponent:Yw,renderComponentRoot:mc,setCurrentRenderingInstance:ha,isVNode:ws,normalizeVNode:vr},dL=cL,fL=null,pL=null;function hL(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o<r.length;o++)n[r[o]]=!0;return o=>!!n[o]}const mL="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",gL=hL(mL);function i2(e){return!!e||e===""}function vL(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Es(e[r],t[r]);return n}function Es(e,t){if(e===t)return!0;let n=N1(e),r=N1(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=M1(e),r=M1(t),n||r)return e===t;if(n=lr(e),r=lr(t),n||r)return n&&r?vL(e,t):!1;if(n=xh(e),r=xh(t),n||r){if(!n||!r)return!1;const o=Object.keys(e).length,i=Object.keys(t).length;if(o!==i)return!1;for(const l in e){const a=e.hasOwnProperty(l),c=t.hasOwnProperty(l);if(a&&!c||!a&&c||!Es(e[l],t[l]))return!1}}return String(e)===String(t)}function xd(e,t){return e.findIndex(n=>Es(n,t))}const Rp={},yL=/^on[^a-z]/,_L=e=>yL.test(e),bL=e=>e.startsWith("onUpdate:"),Ma=Object.assign,lr=Array.isArray,Da=e=>a2(e)==="[object Set]",N1=e=>a2(e)==="[object Date]",l2=e=>typeof e=="function",ga=e=>typeof e=="string",M1=e=>typeof e=="symbol",xh=e=>e!==null&&typeof e=="object",wL=Object.prototype.toString,a2=e=>wL.call(e),Vm=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},SL=/-(\w)/g,Lp=Vm(e=>e.replace(SL,(t,n)=>n?n.toUpperCase():"")),EL=/\B([A-Z])/g,hs=Vm(e=>e.replace(EL,"-$1").toLowerCase()),$L=Vm(e=>e.charAt(0).toUpperCase()+e.slice(1)),xL=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Th=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Ch=e=>{const t=ga(e)?Number(e):NaN;return isNaN(t)?e:t},TL="http://www.w3.org/2000/svg",qs=typeof document<"u"?document:null,D1=qs&&qs.createElement("template"),CL={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t?qs.createElementNS(TL,e):qs.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>qs.createTextNode(e),createComment:e=>qs.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>qs.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,i){const l=n?n.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===i||!(o=o.nextSibling)););else{D1.innerHTML=r?`<svg>${e}</svg>`:e;const a=D1.content;if(r){const c=a.firstChild;for(;c.firstChild;)a.appendChild(c.firstChild);a.removeChild(c)}t.insertBefore(a,n)}return[l?l.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function OL(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function AL(e,t,n){const r=e.style,o=ga(n);if(n&&!o){if(t&&!ga(t))for(const i in t)n[i]==null&&Oh(r,i,"");for(const i in n)Oh(r,i,n[i])}else{const i=r.display;o?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=i)}}const U1=/\s*!important$/;function Oh(e,t,n){if(lr(n))n.forEach(r=>Oh(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=kL(e,t);U1.test(n)?e.setProperty(hs(r),n.replace(U1,""),"important"):e[r]=n}}const B1=["Webkit","Moz","ms"],Fp={};function kL(e,t){const n=Fp[t];if(n)return n;let r=so(t);if(r!=="filter"&&r in e)return Fp[t]=r;r=$L(r);for(let o=0;o<B1.length;o++){const i=B1[o]+r;if(i in e)return Fp[t]=i}return t}const j1="http://www.w3.org/1999/xlink";function IL(e,t,n,r,o){if(r&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(j1,t.slice(6,t.length)):e.setAttributeNS(j1,t,n);else{const i=gL(t);n==null||i&&!i2(n)?e.removeAttribute(t):e.setAttribute(t,i?"":n)}}function PL(e,t,n,r,o,i,l){if(t==="innerHTML"||t==="textContent"){r&&l(r,o,i),e[t]=n??"";return}if(t==="value"&&e.tagName!=="PROGRESS"&&!e.tagName.includes("-")){e._value=n;const c=n??"";(e.value!==c||e.tagName==="OPTION")&&(e.value=c),n==null&&e.removeAttribute(t);return}let a=!1;if(n===""||n==null){const c=typeof e[t];c==="boolean"?n=i2(n):n==null&&c==="string"?(n="",a=!0):c==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(t)}function jo(e,t,n,r){e.addEventListener(t,n,r)}function RL(e,t,n,r){e.removeEventListener(t,n,r)}function LL(e,t,n,r,o=null){const i=e._vei||(e._vei={}),l=i[t];if(r&&l)l.value=r;else{const[a,c]=FL(t);if(r){const d=i[t]=DL(r,o);jo(e,a,d,c)}else l&&(RL(e,a,l,c),i[t]=void 0)}}const V1=/(?:Once|Passive|Capture)$/;function FL(e){let t;if(V1.test(e)){t={};let r;for(;r=e.match(V1);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):hs(e.slice(2)),t]}let Np=0;const NL=Promise.resolve(),ML=()=>Np||(NL.then(()=>Np=0),Np=Date.now());function DL(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;br(UL(r,n.value),t,5,[r])};return n.value=e,n.attached=ML(),n}function UL(e,t){if(lr(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>o=>!o._stopped&&r&&r(o))}else return t}const H1=/^on[a-z]/,BL=(e,t,n,r,o=!1,i,l,a,c)=>{t==="class"?OL(e,r,o):t==="style"?AL(e,n,r):_L(t)?bL(t)||LL(e,t,n,r,l):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):jL(e,t,r,o))?PL(e,t,r,i,l,a,c):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),IL(e,t,r,o))};function jL(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&H1.test(t)&&l2(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||H1.test(t)&&ga(n)?!1:t in e}function u2(e,t){const n=ge(e);class r extends Td{constructor(i){super(n,i,t)}}return r.def=n,r}const VL=e=>u2(e,T2),HL=typeof HTMLElement<"u"?HTMLElement:class{};class Td extends HL{constructor(t,n={},r){super(),this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&r?r(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,sn(()=>{this._connected||(Ih(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let r=0;r<this.attributes.length;r++)this._setAttr(this.attributes[r].name);new MutationObserver(r=>{for(const o of r)this._setAttr(o.attributeName)}).observe(this,{attributes:!0});const t=(r,o=!1)=>{const{props:i,styles:l}=r;let a;if(i&&!lr(i))for(const c in i){const d=i[c];(d===Number||d&&d.type===Number)&&(c in this._props&&(this._props[c]=Ch(this._props[c])),(a||(a=Object.create(null)))[Lp(c)]=!0)}this._numberProps=a,o&&this._resolveProps(r),this._applyStyles(l),this._update()},n=this._def.__asyncLoader;n?n().then(r=>t(r,!0)):t(this._def)}_resolveProps(t){const{props:n}=t,r=lr(n)?n:Object.keys(n||{});for(const o of Object.keys(this))o[0]!=="_"&&r.includes(o)&&this._setProp(o,this[o],!0,!1);for(const o of r.map(Lp))Object.defineProperty(this,o,{get(){return this._getProp(o)},set(i){this._setProp(o,i)}})}_setAttr(t){let n=this.getAttribute(t);const r=Lp(t);this._numberProps&&this._numberProps[r]&&(n=Ch(n)),this._setProp(r,n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,r=!0,o=!0){n!==this._props[t]&&(this._props[t]=n,o&&this._instance&&this._update(),r&&(n===!0?this.setAttribute(hs(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(hs(t),n+""):n||this.removeAttribute(hs(t))))}_update(){Ih(this._createVNode(),this.shadowRoot)}_createVNode(){const t=z(this._def,Ma({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0;const r=(i,l)=>{this.dispatchEvent(new CustomEvent(i,{detail:l}))};n.emit=(i,...l)=>{r(i,l),hs(i)!==i&&r(hs(i),l)};let o=this;for(;o=o&&(o.parentNode||o.host);)if(o instanceof Td){n.parent=o._instance,n.provides=o._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(n=>{const r=document.createElement("style");r.textContent=n,this.shadowRoot.appendChild(r)})}}function zL(e="$style"){{const t=Jo();if(!t)return Rp;const n=t.type.__cssModules;if(!n)return Rp;const r=n[e];return r||Rp}}function c2(e){const t=Jo();if(!t)return;const n=t.ut=(o=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(i=>kh(i,o))},r=()=>{const o=e(t.proxy);Ah(t.subTree,o),n(o)};mw(r),wt(()=>{const o=new MutationObserver(r);o.observe(t.subTree.el.parentNode,{childList:!0}),en(()=>o.disconnect())})}function Ah(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{Ah(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)kh(e.el,t);else if(e.type===Me)e.children.forEach(n=>Ah(n,t));else if(e.type===ti){let{el:n,anchor:r}=e;for(;n&&(kh(n,t),n!==r);)n=n.nextSibling}}function kh(e,t){if(e.nodeType===1){const n=e.style;for(const r in t)n.setProperty(`--${r}`,t[r])}}const us="transition",Il="animation",Cs=(e,{slots:t})=>pt(Fm,f2(e),t);Cs.displayName="Transition";const d2={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},WL=Cs.props=Ma({},Fm.props,d2),js=(e,t=[])=>{lr(e)?e.forEach(n=>n(...t)):e&&e(...t)},z1=e=>e?lr(e)?e.some(t=>t.length>1):e.length>1:!1;function f2(e){const t={};for(const G in e)G in d2||(t[G]=e[G]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:i=`${n}-enter-from`,enterActiveClass:l=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:c=i,appearActiveClass:d=l,appearToClass:p=a,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:v=`${n}-leave-active`,leaveToClass:y=`${n}-leave-to`}=e,b=qL(o),S=b&&b[0],T=b&&b[1],{onBeforeEnter:C,onEnter:w,onEnterCancelled:E,onLeave:O,onLeaveCancelled:$,onBeforeAppear:P=C,onAppear:R=w,onAppearCancelled:k=E}=t,W=(G,X,ne)=>{fs(G,X?p:a),fs(G,X?d:l),ne&&ne()},U=(G,X)=>{G._isLeaving=!1,fs(G,h),fs(G,y),fs(G,v),X&&X()},j=G=>(X,ne)=>{const xe=G?R:w,Ee=()=>W(X,G,ne);js(xe,[X,Ee]),W1(()=>{fs(X,G?c:i),Do(X,G?p:a),z1(xe)||q1(X,r,S,Ee)})};return Ma(t,{onBeforeEnter(G){js(C,[G]),Do(G,i),Do(G,l)},onBeforeAppear(G){js(P,[G]),Do(G,c),Do(G,d)},onEnter:j(!1),onAppear:j(!0),onLeave(G,X){G._isLeaving=!0;const ne=()=>U(G,X);Do(G,h),h2(),Do(G,v),W1(()=>{G._isLeaving&&(fs(G,h),Do(G,y),z1(O)||q1(G,r,T,ne))}),js(O,[G,ne])},onEnterCancelled(G){W(G,!1),js(E,[G])},onAppearCancelled(G){W(G,!0),js(k,[G])},onLeaveCancelled(G){U(G),js($,[G])}})}function qL(e){if(e==null)return null;if(xh(e))return[Mp(e.enter),Mp(e.leave)];{const t=Mp(e);return[t,t]}}function Mp(e){return Ch(e)}function Do(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function fs(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function W1(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let KL=0;function q1(e,t,n,r){const o=e._endId=++KL,i=()=>{o===e._endId&&r()};if(n)return setTimeout(i,n);const{type:l,timeout:a,propCount:c}=p2(e,t);if(!l)return r();const d=l+"end";let p=0;const h=()=>{e.removeEventListener(d,v),i()},v=y=>{y.target===e&&++p>=c&&h()};setTimeout(()=>{p<c&&h()},a+1),e.addEventListener(d,v)}function p2(e,t){const n=window.getComputedStyle(e),r=b=>(n[b]||"").split(", "),o=r(`${us}Delay`),i=r(`${us}Duration`),l=K1(o,i),a=r(`${Il}Delay`),c=r(`${Il}Duration`),d=K1(a,c);let p=null,h=0,v=0;t===us?l>0&&(p=us,h=l,v=i.length):t===Il?d>0&&(p=Il,h=d,v=c.length):(h=Math.max(l,d),p=h>0?l>d?us:Il:null,v=p?p===us?i.length:c.length:0);const y=p===us&&/\b(transform|all)(,|$)/.test(r(`${us}Property`).toString());return{type:p,timeout:h,propCount:v,hasTransform:y}}function K1(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>G1(n)+G1(e[r])))}function G1(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function h2(){return document.body.offsetHeight}const m2=new WeakMap,g2=new WeakMap,v2={name:"TransitionGroup",props:Ma({},WL,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Jo(),r=Lm();let o,i;return Sd(()=>{if(!o.length)return;const l=e.moveClass||`${e.name||"v"}-move`;if(!QL(o[0].el,n.vnode.el,l))return;o.forEach(YL),o.forEach(JL);const a=o.filter(ZL);h2(),a.forEach(c=>{const d=c.el,p=d.style;Do(d,l),p.transform=p.webkitTransform=p.transitionDuration="";const h=d._moveCb=v=>{v&&v.target!==d||(!v||/transform$/.test(v.propertyName))&&(d.removeEventListener("transitionend",h),d._moveCb=null,fs(d,l))};d.addEventListener("transitionend",h)})}),()=>{const l=He(e),a=f2(l);let c=l.tag||Me;o=i,i=t.default?bd(t.default()):[];for(let d=0;d<i.length;d++){const p=i[d];p.key!=null&&ai(p,Ki(p,a,r,n))}if(o)for(let d=0;d<o.length;d++){const p=o[d];ai(p,Ki(p,a,r,n)),m2.set(p,p.el.getBoundingClientRect())}return z(c,null,i)}}},GL=e=>delete e.mode;v2.props;const XL=v2;function YL(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function JL(e){g2.set(e,e.el.getBoundingClientRect())}function ZL(e){const t=m2.get(e),n=g2.get(e),r=t.left-n.left,o=t.top-n.top;if(r||o){const i=e.el.style;return i.transform=i.webkitTransform=`translate(${r}px,${o}px)`,i.transitionDuration="0s",e}}function QL(e,t,n){const r=e.cloneNode();e._vtc&&e._vtc.forEach(l=>{l.split(/\s+/).forEach(a=>a&&r.classList.remove(a))}),n.split(/\s+/).forEach(l=>l&&r.classList.add(l)),r.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(r);const{hasTransform:i}=p2(r);return o.removeChild(r),i}const $s=e=>{const t=e.props["onUpdate:modelValue"]||!1;return lr(t)?n=>xL(t,n):t};function e6(e){e.target.composing=!0}function X1(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Lc={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e._assign=$s(o);const i=r||o.props&&o.props.type==="number";jo(e,t?"change":"input",l=>{if(l.target.composing)return;let a=e.value;n&&(a=a.trim()),i&&(a=Th(a)),e._assign(a)}),n&&jo(e,"change",()=>{e.value=e.value.trim()}),t||(jo(e,"compositionstart",e6),jo(e,"compositionend",X1),jo(e,"change",X1))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:o}},i){if(e._assign=$s(i),e.composing||document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===t||(o||e.type==="number")&&Th(e.value)===t))return;const l=t??"";e.value!==l&&(e.value=l)}},Hm={deep:!0,created(e,t,n){e._assign=$s(n),jo(e,"change",()=>{const r=e._modelValue,o=Xi(e),i=e.checked,l=e._assign;if(lr(r)){const a=xd(r,o),c=a!==-1;if(i&&!c)l(r.concat(o));else if(!i&&c){const d=[...r];d.splice(a,1),l(d)}}else if(Da(r)){const a=new Set(r);i?a.add(o):a.delete(o),l(a)}else l(_2(e,i))})},mounted:Y1,beforeUpdate(e,t,n){e._assign=$s(n),Y1(e,t,n)}};function Y1(e,{value:t,oldValue:n},r){e._modelValue=t,lr(t)?e.checked=xd(t,r.props.value)>-1:Da(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=Es(t,_2(e,!0)))}const zm={created(e,{value:t},n){e.checked=Es(t,n.props.value),e._assign=$s(n),jo(e,"change",()=>{e._assign(Xi(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e._assign=$s(r),t!==n&&(e.checked=Es(t,r.props.value))}},y2={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const o=Da(t);jo(e,"change",()=>{const i=Array.prototype.filter.call(e.options,l=>l.selected).map(l=>n?Th(Xi(l)):Xi(l));e._assign(e.multiple?o?new Set(i):i:i[0])}),e._assign=$s(r)},mounted(e,{value:t}){J1(e,t)},beforeUpdate(e,t,n){e._assign=$s(n)},updated(e,{value:t}){J1(e,t)}};function J1(e,t){const n=e.multiple;if(!(n&&!lr(t)&&!Da(t))){for(let r=0,o=e.options.length;r<o;r++){const i=e.options[r],l=Xi(i);if(n)lr(t)?i.selected=xd(t,l)>-1:i.selected=t.has(l);else if(Es(Xi(i),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Xi(e){return"_value"in e?e._value:e.value}function _2(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const b2={created(e,t,n){tc(e,t,n,null,"created")},mounted(e,t,n){tc(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){tc(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){tc(e,t,n,r,"updated")}};function w2(e,t){switch(e){case"SELECT":return y2;case"TEXTAREA":return Lc;default:switch(t){case"checkbox":return Hm;case"radio":return zm;default:return Lc}}}function tc(e,t,n,r,o){const l=w2(e.tagName,n.props&&n.props.type)[o];l&&l(e,t,n,r)}function t6(){Lc.getSSRProps=({value:e})=>({value:e}),zm.getSSRProps=({value:e},t)=>{if(t.props&&Es(t.props.value,e))return{checked:!0}},Hm.getSSRProps=({value:e},t)=>{if(lr(e)){if(t.props&&xd(e,t.props.value)>-1)return{checked:!0}}else if(Da(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},b2.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=w2(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const n6=["ctrl","shift","alt","meta"],r6={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)=>n6.some(n=>e[`${n}Key`]&&!t.includes(n))},va=(e,t)=>(n,...r)=>{for(let o=0;o<t.length;o++){const i=r6[t[o]];if(i&&i(n,t))return}return e(n,...r)},o6={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},S2=(e,t)=>n=>{if(!("key"in n))return;const r=hs(n.key);if(t.some(o=>o===r||o6[o]===r))return e(n)},Wm={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Pl(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),Pl(e,!0),r.enter(e)):r.leave(e,()=>{Pl(e,!1)}):Pl(e,t))},beforeUnmount(e,{value:t}){Pl(e,t)}};function Pl(e,t){e.style.display=t?e._vod:"none"}function s6(){Wm.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const E2=Ma({patchProp:BL},CL);let Ql,Z1=!1;function $2(){return Ql||(Ql=Dw(E2))}function x2(){return Ql=Z1?Ql:Uw(E2),Z1=!0,Ql}const Ih=(...e)=>{$2().render(...e)},T2=(...e)=>{x2().hydrate(...e)},C2=(...e)=>{const t=$2().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=O2(r);if(!o)return;const i=t._component;!l2(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.innerHTML="";const l=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),l},t},i6=(...e)=>{const t=x2().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=O2(r);if(o)return n(o,!0,o instanceof SVGElement)},t};function O2(e){return ga(e)?document.querySelector(e):e}let Q1=!1;const l6=()=>{Q1||(Q1=!0,t6(),s6())},a6=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:Fm,Comment:Un,EffectScope:bm,Fragment:Me,KeepAlive:wR,ReactiveEffect:La,Static:ti,Suspense:dR,Teleport:jw,Text:ui,Transition:Cs,TransitionGroup:XL,VueElement:Td,assertNumber:JP,callWithAsyncErrorHandling:br,callWithErrorHandling:zo,camelize:so,capitalize:cd,cloneVNode:jr,compatUtils:pL,computed:fe,createApp:C2,createBlock:Ye,createCommentVNode:Te,createElementBlock:F,createElementVNode:m,createHydrationRenderer:Uw,createPropsRestProxy:iL,createRenderer:Dw,createSSRApp:i6,createSlots:Aw,createStaticVNode:KR,createTextVNode:Be,createVNode:z,customRef:qP,defineAsyncComponent:_R,defineComponent:ge,defineCustomElement:u2,defineEmits:tL,defineExpose:nL,defineProps:eL,defineSSRCustomElement:VL,get devtools(){return Mi},effect:hP,effectScope:dP,getCurrentInstance:Jo,getCurrentScope:zb,getTransitionRawChildren:bd,guardReactiveProps:qw,h:pt,handleError:pi,hydrate:T2,initCustomFormatter:aL,initDirectivesForSSR:l6,inject:Ft,isMemoSame:o2,isProxy:$m,isReactive:Qs,isReadonly:li,isRef:pn,isRuntimeOnly:JR,isShallow:ca,isVNode:ws,markRaw:xm,mergeDefaults:sL,mergeProps:Kw,nextTick:sn,normalizeClass:gt,normalizeProps:eP,normalizeStyle:oo,onActivated:yw,onBeforeMount:ww,onBeforeUnmount:hi,onBeforeUpdate:Sw,onDeactivated:_w,onErrorCaptured:Tw,onMounted:wt,onRenderTracked:xw,onRenderTriggered:$w,onScopeDispose:Wb,onServerPrefetch:Ew,onUnmounted:en,onUpdated:Sd,openBlock:I,popScopeId:oR,provide:Qt,proxyRefs:Om,pushScopeId:rR,queuePostFlushCb:Im,reactive:Ts,readonly:Em,ref:$e,registerRuntimeCompiler:Jw,render:Ih,renderList:Ot,renderSlot:yn,resolveComponent:q,resolveDirective:xR,resolveDynamicComponent:$R,resolveFilter:fL,resolveTransitionHooks:Ki,setBlockTracking:wh,setDevtoolsHook:dw,setTransitionHooks:ai,shallowReactive:ow,shallowReadonly:VP,shallowRef:gd,ssrContextKey:n2,ssrUtils:dL,stop:mP,toDisplayString:L,toHandlerKey:Gl,toHandlers:TR,toRaw:He,toRef:iw,toRefs:Am,transformVNodeArgs:WR,triggerRef:ph,unref:vn,useAttrs:oL,useCssModule:zL,useCssVars:c2,useSSRContext:r2,useSlots:e2,useTransitionState:Lm,vModelCheckbox:Hm,vModelDynamic:b2,vModelRadio:zm,vModelSelect:y2,vModelText:Lc,vShow:Wm,version:s2,warn:YP,watch:Ut,watchEffect:Vt,watchPostEffect:mw,watchSyncEffect:gR,withAsyncContext:lL,withCtx:_e,withDefaults:rL,withDirectives:Cw,withKeys:S2,withMemo:uL,withModifiers:va,withScopeId:sR},Symbol.toStringTag,{value:"Module"}));function uo(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o<r.length;o++)n[r[o]]=!0;return t?o=>!!n[o.toLowerCase()]:o=>!!n[o]}const u6=/;(?![^(]*\))/g,c6=/:([^]+)/,d6=/\/\*.*?\*\//gs;function f6(e){const t={};return e.replace(d6,"").split(u6).forEach(n=>{if(n){const r=n.split(c6);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}const p6="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",h6="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",m6="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",g6=uo(p6),v6=uo(h6),y6=uo(m6),_6={},Fc=()=>{},Dp=()=>!1,b6=/^on[^a-z]/,A2=e=>b6.test(e),Wo=Object.assign,Yi=Array.isArray,_n=e=>typeof e=="string",qm=e=>typeof e=="symbol",w6=e=>e!==null&&typeof e=="object",e_=uo(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),S6=uo("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),Cd=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},E6=/-(\w)/g,Od=Cd(e=>e.replace(E6,(t,n)=>n?n.toUpperCase():"")),$6=/\B([A-Z])/g,x6=Cd(e=>e.replace($6,"-$1").toLowerCase()),Km=Cd(e=>e.charAt(0).toUpperCase()+e.slice(1)),T6=Cd(e=>e?`on${Km(e)}`:"");function Gm(e){throw e}function k2(e){}function Wt(e,t,n,r){const o=e,i=new SyntaxError(String(o));return i.code=e,i.loc=t,i}const ya=Symbol(""),ea=Symbol(""),Xm=Symbol(""),Nc=Symbol(""),I2=Symbol(""),di=Symbol(""),P2=Symbol(""),R2=Symbol(""),Ym=Symbol(""),Jm=Symbol(""),Ua=Symbol(""),Zm=Symbol(""),L2=Symbol(""),Qm=Symbol(""),Mc=Symbol(""),eg=Symbol(""),tg=Symbol(""),ng=Symbol(""),rg=Symbol(""),F2=Symbol(""),N2=Symbol(""),Ad=Symbol(""),Dc=Symbol(""),og=Symbol(""),sg=Symbol(""),_a=Symbol(""),Ba=Symbol(""),ig=Symbol(""),Ph=Symbol(""),C6=Symbol(""),Rh=Symbol(""),Uc=Symbol(""),O6=Symbol(""),A6=Symbol(""),lg=Symbol(""),k6=Symbol(""),I6=Symbol(""),ag=Symbol(""),M2=Symbol(""),Ji={[ya]:"Fragment",[ea]:"Teleport",[Xm]:"Suspense",[Nc]:"KeepAlive",[I2]:"BaseTransition",[di]:"openBlock",[P2]:"createBlock",[R2]:"createElementBlock",[Ym]:"createVNode",[Jm]:"createElementVNode",[Ua]:"createCommentVNode",[Zm]:"createTextVNode",[L2]:"createStaticVNode",[Qm]:"resolveComponent",[Mc]:"resolveDynamicComponent",[eg]:"resolveDirective",[tg]:"resolveFilter",[ng]:"withDirectives",[rg]:"renderList",[F2]:"renderSlot",[N2]:"createSlots",[Ad]:"toDisplayString",[Dc]:"mergeProps",[og]:"normalizeClass",[sg]:"normalizeStyle",[_a]:"normalizeProps",[Ba]:"guardReactiveProps",[ig]:"toHandlers",[Ph]:"camelize",[C6]:"capitalize",[Rh]:"toHandlerKey",[Uc]:"setBlockTracking",[O6]:"pushScopeId",[A6]:"popScopeId",[lg]:"withCtx",[k6]:"unref",[I6]:"isRef",[ag]:"withMemo",[M2]:"isMemoSame"};function P6(e){Object.getOwnPropertySymbols(e).forEach(t=>{Ji[t]=e[t]})}const $r={source:"",start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}};function R6(e,t=$r){return{type:0,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:t}}function ba(e,t,n,r,o,i,l,a=!1,c=!1,d=!1,p=$r){return e&&(a?(e.helper(di),e.helper(el(e.inSSR,d))):e.helper(Qi(e.inSSR,d)),l&&e.helper(ng)),{type:13,tag:t,props:n,children:r,patchFlag:o,dynamicProps:i,directives:l,isBlock:a,disableTracking:c,isComponent:d,loc:p}}function ja(e,t=$r){return{type:17,loc:t,elements:e}}function Fr(e,t=$r){return{type:15,loc:t,properties:e}}function Zt(e,t){return{type:16,loc:$r,key:_n(e)?dt(e,!0):e,value:t}}function dt(e,t=!1,n=$r,r=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:r}}function no(e,t=$r){return{type:8,loc:t,children:e}}function on(e,t=[],n=$r){return{type:14,loc:n,callee:e,arguments:t}}function Zi(e,t=void 0,n=!1,r=!1,o=$r){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:o}}function Lh(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:$r}}function L6(e,t,n=!1){return{type:20,index:e,value:t,isVNode:n,loc:$r}}function F6(e){return{type:21,body:e,loc:$r}}const tr=e=>e.type===4&&e.isStatic,Di=(e,t)=>e===t||e===x6(t);function D2(e){if(Di(e,"Teleport"))return ea;if(Di(e,"Suspense"))return Xm;if(Di(e,"KeepAlive"))return Nc;if(Di(e,"BaseTransition"))return I2}const N6=/^\d|[^\$\w]/,ug=e=>!N6.test(e),M6=/[A-Za-z_$\xA0-\uFFFF]/,D6=/[\.\?\w$\xA0-\uFFFF]/,U6=/\s+[.[]\s*|\s*[.[]\s+/g,B6=e=>{e=e.trim().replace(U6,l=>l.trim());let t=0,n=[],r=0,o=0,i=null;for(let l=0;l<e.length;l++){const a=e.charAt(l);switch(t){case 0:if(a==="[")n.push(t),t=1,r++;else if(a==="(")n.push(t),t=2,o++;else if(!(l===0?M6:D6).test(a))return!1;break;case 1:a==="'"||a==='"'||a==="`"?(n.push(t),t=3,i=a):a==="["?r++:a==="]"&&(--r||(t=n.pop()));break;case 2:if(a==="'"||a==='"'||a==="`")n.push(t),t=3,i=a;else if(a==="(")o++;else if(a===")"){if(l===e.length-1)return!1;--o||(t=n.pop())}break;case 3:a===i&&(t=n.pop(),i=null);break}}return!r&&!o},U2=B6;function B2(e,t,n){const o={source:e.source.slice(t,t+n),start:Bc(e.start,e.source,t),end:e.end};return n!=null&&(o.end=Bc(e.start,e.source,t+n)),o}function Bc(e,t,n=t.length){return jc(Wo({},e),t,n)}function jc(e,t,n=t.length){let r=0,o=-1;for(let i=0;i<n;i++)t.charCodeAt(i)===10&&(r++,o=i);return e.offset+=n,e.line+=r,e.column=o===-1?e.column+n:n-o,e}function Lr(e,t,n=!1){for(let r=0;r<e.props.length;r++){const o=e.props[r];if(o.type===7&&(n||o.exp)&&(_n(t)?o.name===t:t.test(o.name)))return o}}function kd(e,t,n=!1,r=!1){for(let o=0;o<e.props.length;o++){const i=e.props[o];if(i.type===6){if(n)continue;if(i.name===t&&(i.value||r))return i}else if(i.name==="bind"&&(i.exp||r)&&Xs(i.arg,t))return i}}function Xs(e,t){return!!(e&&tr(e)&&e.content===t)}function j6(e){return e.props.some(t=>t.type===7&&t.name==="bind"&&(!t.arg||t.arg.type!==4||!t.arg.isStatic))}function Up(e){return e.type===5||e.type===2}function V6(e){return e.type===7&&e.name==="slot"}function Vc(e){return e.type===1&&e.tagType===3}function Hc(e){return e.type===1&&e.tagType===2}function Qi(e,t){return e||t?Ym:Jm}function el(e,t){return e||t?P2:R2}const H6=new Set([_a,Ba]);function j2(e,t=[]){if(e&&!_n(e)&&e.type===14){const n=e.callee;if(!_n(n)&&H6.has(n))return j2(e.arguments[0],t.concat(e))}return[e,t]}function zc(e,t,n){let r,o=e.type===13?e.props:e.arguments[2],i=[],l;if(o&&!_n(o)&&o.type===14){const a=j2(o);o=a[0],i=a[1],l=i[i.length-1]}if(o==null||_n(o))r=Fr([t]);else if(o.type===14){const a=o.arguments[0];!_n(a)&&a.type===15?t_(t,a)||a.properties.unshift(t):o.callee===ig?r=on(n.helper(Dc),[Fr([t]),o]):o.arguments.unshift(Fr([t])),!r&&(r=o)}else o.type===15?(t_(t,o)||o.properties.unshift(t),r=o):(r=on(n.helper(Dc),[Fr([t]),o]),l&&l.callee===Ba&&(l=i[i.length-2]));e.type===13?l?l.arguments[0]=r:e.props=r:l?l.arguments[0]=r:e.arguments[2]=r}function t_(e,t){let n=!1;if(e.key.type===4){const r=e.key.content;n=t.properties.some(o=>o.key.type===4&&o.key.content===r)}return n}function wa(e,t){return`_${t}_${e.replace(/[^\w]/g,(n,r)=>n==="-"?"_":e.charCodeAt(r).toString())}`}function z6(e){return e.type===14&&e.callee===ag?e.arguments[1].returns:e}function cg(e,{helper:t,removeHelper:n,inSSR:r}){e.isBlock||(e.isBlock=!0,n(Qi(r,e.isComponent)),t(di),t(el(r,e.isComponent)))}function n_(e,t){const n=t.options?t.options.compatConfig:t.compatConfig,r=n&&n[e];return e==="MODE"?r||3:r}function ni(e,t){const n=n_("MODE",t),r=n_(e,t);return n===3?r===!0:r!==!1}function Sa(e,t,n,...r){return ni(e,t)}const W6=/&(gt|lt|amp|apos|quot);/g,q6={gt:">",lt:"<",amp:"&",apos:"'",quot:'"'},r_={delimiters:["{{","}}"],getNamespace:()=>0,getTextMode:()=>0,isVoidTag:Dp,isPreTag:Dp,isCustomElement:Dp,decodeEntities:e=>e.replace(W6,(t,n)=>q6[n]),onError:Gm,onWarn:k2,comments:!1};function K6(e,t={}){const n=G6(e,t),r=wr(n);return R6(dg(n,0,[]),Vr(n,r))}function G6(e,t){const n=Wo({},r_);let r;for(r in t)n[r]=t[r]===void 0?r_[r]:t[r];return{options:n,column:1,line:1,offset:0,originalSource:e,source:e,inPre:!1,inVPre:!1,onWarn:n.onWarn}}function dg(e,t,n){const r=Id(n),o=r?r.ns:0,i=[];for(;!rF(e,t,n);){const a=e.source;let c;if(t===0||t===1){if(!e.inVPre&&Dn(a,e.options.delimiters[0]))c=tF(e,t);else if(t===0&&a[0]==="<")if(a.length===1)Pt(e,5,1);else if(a[1]==="!")Dn(a,"<!--")?c=Y6(e):Dn(a,"<!DOCTYPE")?c=Rl(e):Dn(a,"<![CDATA[")?o!==0?c=X6(e,n):(Pt(e,1),c=Rl(e)):(Pt(e,11),c=Rl(e));else if(a[1]==="/")if(a.length===2)Pt(e,5,2);else if(a[2]===">"){Pt(e,14,2),hn(e,3);continue}else if(/[a-z]/i.test(a[2])){Pt(e,23),Fh(e,1,r);continue}else Pt(e,12,2),c=Rl(e);else/[a-z]/i.test(a[1])?(c=J6(e,n),ni("COMPILER_NATIVE_TEMPLATE",e)&&c&&c.tag==="template"&&!c.props.some(d=>d.type===7&&V2(d.name))&&(c=c.children)):a[1]==="?"?(Pt(e,21,1),c=Rl(e)):Pt(e,12,1)}if(c||(c=nF(e,t)),Yi(c))for(let d=0;d<c.length;d++)o_(i,c[d]);else o_(i,c)}let l=!1;if(t!==2&&t!==1){const a=e.options.whitespace!=="preserve";for(let c=0;c<i.length;c++){const d=i[c];if(d.type===2)if(e.inPre)d.content=d.content.replace(/\r\n/g,`2 `);else if(/[^\t\r\n\f ]/.test(d.content))a&&(d.content=d.content.replace(/[\t\r\n\f ]+/g," "));else{const p=i[c-1],h=i[c+1];!p||!h||a&&(p.type===3&&h.type===3||p.type===3&&h.type===1||p.type===1&&h.type===3||p.type===1&&h.type===1&&/[\r\n]/.test(d.content))?(l=!0,i[c]=null):d.content=" "}else d.type===3&&!e.options.comments&&(l=!0,i[c]=null)}if(e.inPre&&r&&e.options.isPreTag(r.tag)){const c=i[0];c&&c.type===2&&(c.content=c.content.replace(/^\r?\n/,""))}}return l?i.filter(Boolean):i}function o_(e,t){if(t.type===2){const n=Id(e);if(n&&n.type===2&&n.loc.end.offset===t.loc.start.offset){n.content+=t.content,n.loc.end=t.loc.end,n.loc.source+=t.loc.source;return}}e.push(t)}function X6(e,t){hn(e,9);const n=dg(e,3,t);return e.source.length===0?Pt(e,6):hn(e,3),n}function Y6(e){const t=wr(e);let n;const r=/--(\!)?>/.exec(e.source);if(!r)n=e.source.slice(4),hn(e,e.source.length),Pt(e,7);else{r.index<=3&&Pt(e,0),r[1]&&Pt(e,10),n=e.source.slice(4,r.index);const o=e.source.slice(0,r.index);let i=1,l=0;for(;(l=o.indexOf("<!--",i))!==-1;)hn(e,l-i+1),l+4<o.length&&Pt(e,16),i=l+1;hn(e,r.index+r[0].length-i+1)}return{type:3,content:n,loc:Vr(e,t)}}function Rl(e){const t=wr(e),n=e.source[1]==="?"?1:2;let r;const o=e.source.indexOf(">");return o===-1?(r=e.source.slice(n),hn(e,e.source.length)):(r=e.source.slice(n,o),hn(e,o+1)),{type:3,content:r,loc:Vr(e,t)}}function J6(e,t){const n=e.inPre,r=e.inVPre,o=Id(t),i=Fh(e,0,o),l=e.inPre&&!n,a=e.inVPre&&!r;if(i.isSelfClosing||e.options.isVoidTag(i.tag))return l&&(e.inPre=!1),a&&(e.inVPre=!1),i;t.push(i);const c=e.options.getTextMode(i,o),d=dg(e,c,t);t.pop();{const p=i.props.find(h=>h.type===6&&h.name==="inline-template");if(p&&Sa("COMPILER_INLINE_TEMPLATE",e,p.loc)){const h=Vr(e,i.loc.end);p.value={type:2,content:h.source,loc:h}}}if(i.children=d,Nh(e.source,i.tag))Fh(e,1,o);else if(Pt(e,24,0,i.loc.start),e.source.length===0&&i.tag.toLowerCase()==="script"){const p=d[0];p&&Dn(p.loc.source,"<!--")&&Pt(e,8)}return i.loc=Vr(e,i.loc.start),l&&(e.inPre=!1),a&&(e.inVPre=!1),i}const V2=uo("if,else,else-if,for,slot");function Fh(e,t,n){const r=wr(e),o=/^<\/?([a-z][^\t\r\n\f />]*)/i.exec(e.source),i=o[1],l=e.options.getNamespace(i,n);hn(e,o[0].length),Ea(e);const a=wr(e),c=e.source;e.options.isPreTag(i)&&(e.inPre=!0);let d=s_(e,t);t===0&&!e.inVPre&&d.some(v=>v.type===7&&v.name==="pre")&&(e.inVPre=!0,Wo(e,a),e.source=c,d=s_(e,t).filter(v=>v.name!=="v-pre"));let p=!1;if(e.source.length===0?Pt(e,9):(p=Dn(e.source,"/>"),t===1&&p&&Pt(e,4),hn(e,p?2:1)),t===1)return;let h=0;return e.inVPre||(i==="slot"?h=2:i==="template"?d.some(v=>v.type===7&&V2(v.name))&&(h=3):Z6(i,d,e)&&(h=1)),{type:1,ns:l,tag:i,tagType:h,props:d,isSelfClosing:p,children:[],loc:Vr(e,r),codegenNode:void 0}}function Z6(e,t,n){const r=n.options;if(r.isCustomElement(e))return!1;if(e==="component"||/^[A-Z]/.test(e)||D2(e)||r.isBuiltInComponent&&r.isBuiltInComponent(e)||r.isNativeTag&&!r.isNativeTag(e))return!0;for(let o=0;o<t.length;o++){const i=t[o];if(i.type===6){if(i.name==="is"&&i.value){if(i.value.content.startsWith("vue:"))return!0;if(Sa("COMPILER_IS_ON_ELEMENT",n,i.loc))return!0}}else{if(i.name==="is")return!0;if(i.name==="bind"&&Xs(i.arg,"is")&&Sa("COMPILER_IS_ON_ELEMENT",n,i.loc))return!0}}}function s_(e,t){const n=[],r=new Set;for(;e.source.length>0&&!Dn(e.source,">")&&!Dn(e.source,"/>");){if(Dn(e.source,"/")){Pt(e,22),hn(e,1),Ea(e);continue}t===1&&Pt(e,3);const o=Q6(e,r);o.type===6&&o.value&&o.name==="class"&&(o.value.content=o.value.content.replace(/\s+/g," ").trim()),t===0&&n.push(o),/^[^\t\r\n\f />]/.test(e.source)&&Pt(e,15),Ea(e)}return n}function Q6(e,t){const n=wr(e),o=/^[^\t\r\n\f />][^\t\r\n\f />=]*/.exec(e.source)[0];t.has(o)&&Pt(e,2),t.add(o),o[0]==="="&&Pt(e,19);{const a=/["'<]/g;let c;for(;c=a.exec(o);)Pt(e,17,c.index)}hn(e,o.length);let i;/^[\t\r\n\f ]*=/.test(e.source)&&(Ea(e),hn(e,1),Ea(e),i=eF(e),i||Pt(e,13));const l=Vr(e,n);if(!e.inVPre&&/^(v-[A-Za-z0-9-]|:|\.|@|#)/.test(o)){const a=/(?:^v-([a-z0-9-]+))?(?:(?::|^\.|^@|^#)(\[[^\]]+\]|[^\.]+))?(.+)?$/i.exec(o);let c=Dn(o,"."),d=a[1]||(c||Dn(o,":")?"bind":Dn(o,"@")?"on":"slot"),p;if(a[2]){const v=d==="slot",y=o.lastIndexOf(a[2]),b=Vr(e,i_(e,n,y),i_(e,n,y+a[2].length+(v&&a[3]||"").length));let S=a[2],T=!0;S.startsWith("[")?(T=!1,S.endsWith("]")?S=S.slice(1,S.length-1):(Pt(e,27),S=S.slice(1))):v&&(S+=a[3]||""),p={type:4,content:S,isStatic:T,constType:T?3:0,loc:b}}if(i&&i.isQuoted){const v=i.loc;v.start.offset++,v.start.column++,v.end=Bc(v.start,i.content),v.source=v.source.slice(1,-1)}const h=a[3]?a[3].slice(1).split("."):[];return c&&h.push("prop"),d==="bind"&&p&&h.includes("sync")&&Sa("COMPILER_V_BIND_SYNC",e,l,p.loc.source)&&(d="model",h.splice(h.indexOf("sync"),1)),{type:7,name:d,exp:i&&{type:4,content:i.content,isStatic:!1,constType:0,loc:i.loc},arg:p,modifiers:h,loc:l}}return!e.inVPre&&Dn(o,"v-")&&Pt(e,26),{type:6,name:o,value:i&&{type:2,content:i.content,loc:i.loc},loc:l}}function eF(e){const t=wr(e);let n;const r=e.source[0],o=r==='"'||r==="'";if(o){hn(e,1);const i=e.source.indexOf(r);i===-1?n=ta(e,e.source.length,4):(n=ta(e,i,4),hn(e,1))}else{const i=/^[^\t\r\n\f >]+/.exec(e.source);if(!i)return;const l=/["'<=`]/g;let a;for(;a=l.exec(i[0]);)Pt(e,18,a.index);n=ta(e,i[0].length,4)}return{content:n,isQuoted:o,loc:Vr(e,t)}}function tF(e,t){const[n,r]=e.options.delimiters,o=e.source.indexOf(r,n.length);if(o===-1){Pt(e,25);return}const i=wr(e);hn(e,n.length);const l=wr(e),a=wr(e),c=o-n.length,d=e.source.slice(0,c),p=ta(e,c,t),h=p.trim(),v=p.indexOf(h);v>0&&jc(l,d,v);const y=c-(p.length-h.length-v);return jc(a,d,y),hn(e,r.length),{type:5,content:{type:4,isStatic:!1,constType:0,content:h,loc:Vr(e,l,a)},loc:Vr(e,i)}}function nF(e,t){const n=t===3?["]]>"]:["<",e.options.delimiters[0]];let r=e.source.length;for(let l=0;l<n.length;l++){const a=e.source.indexOf(n[l],1);a!==-1&&r>a&&(r=a)}const o=wr(e);return{type:2,content:ta(e,r,t),loc:Vr(e,o)}}function ta(e,t,n){const r=e.source.slice(0,t);return hn(e,t),n===2||n===3||!r.includes("&")?r:e.options.decodeEntities(r,n===4)}function wr(e){const{column:t,line:n,offset:r}=e;return{column:t,line:n,offset:r}}function Vr(e,t,n){return n=n||wr(e),{start:t,end:n,source:e.originalSource.slice(t.offset,n.offset)}}function Id(e){return e[e.length-1]}function Dn(e,t){return e.startsWith(t)}function hn(e,t){const{source:n}=e;jc(e,n,t),e.source=n.slice(t)}function Ea(e){const t=/^[\t\r\n\f ]+/.exec(e.source);t&&hn(e,t[0].length)}function i_(e,t,n){return Bc(t,e.originalSource.slice(t.offset,n),n)}function Pt(e,t,n,r=wr(e)){n&&(r.offset+=n,r.column+=n),e.options.onError(Wt(t,{start:r,end:r,source:""}))}function rF(e,t,n){const r=e.source;switch(t){case 0:if(Dn(r,"</")){for(let o=n.length-1;o>=0;--o)if(Nh(r,n[o].tag))return!0}break;case 1:case 2:{const o=Id(n);if(o&&Nh(r,o.tag))return!0;break}case 3:if(Dn(r,"]]>"))return!0;break}return!r}function Nh(e,t){return Dn(e,"</")&&e.slice(2,2+t.length).toLowerCase()===t.toLowerCase()&&/[\t\r\n\f />]/.test(e[2+t.length]||">")}function oF(e,t){vc(e,t,H2(e,e.children[0]))}function H2(e,t){const{children:n}=e;return n.length===1&&t.type===1&&!Hc(t)}function vc(e,t,n=!1){const{children:r}=e,o=r.length;let i=0;for(let l=0;l<r.length;l++){const a=r[l];if(a.type===1&&a.tagType===0){const c=n?0:Nr(a,t);if(c>0){if(c>=2){a.codegenNode.patchFlag="-1",a.codegenNode=t.hoist(a.codegenNode),i++;continue}}else{const d=a.codegenNode;if(d.type===13){const p=K2(d);if((!p||p===512||p===1)&&W2(a,t)>=2){const h=q2(a);h&&(d.props=t.hoist(h))}d.dynamicProps&&(d.dynamicProps=t.hoist(d.dynamicProps))}}}if(a.type===1){const c=a.tagType===1;c&&t.scopes.vSlot++,vc(a,t),c&&t.scopes.vSlot--}else if(a.type===11)vc(a,t,a.children.length===1);else if(a.type===9)for(let c=0;c<a.branches.length;c++)vc(a.branches[c],t,a.branches[c].children.length===1)}i&&t.transformHoist&&t.transformHoist(r,t,e),i&&i===o&&e.type===1&&e.tagType===0&&e.codegenNode&&e.codegenNode.type===13&&Yi(e.codegenNode.children)&&(e.codegenNode.children=t.hoist(ja(e.codegenNode.children)))}function Nr(e,t){const{constantCache:n}=t;switch(e.type){case 1:if(e.tagType!==0)return 0;const r=n.get(e);if(r!==void 0)return r;const o=e.codegenNode;if(o.type!==13||o.isBlock&&e.tag!=="svg"&&e.tag!=="foreignObject")return 0;if(K2(o))return n.set(e,0),0;{let a=3;const c=W2(e,t);if(c===0)return n.set(e,0),0;c<a&&(a=c);for(let d=0;d<e.children.length;d++){const p=Nr(e.children[d],t);if(p===0)return n.set(e,0),0;p<a&&(a=p)}if(a>1)for(let d=0;d<e.props.length;d++){const p=e.props[d];if(p.type===7&&p.name==="bind"&&p.exp){const h=Nr(p.exp,t);if(h===0)return n.set(e,0),0;h<a&&(a=h)}}if(o.isBlock){for(let d=0;d<e.props.length;d++)if(e.props[d].type===7)return n.set(e,0),0;t.removeHelper(di),t.removeHelper(el(t.inSSR,o.isComponent)),o.isBlock=!1,t.helper(Qi(t.inSSR,o.isComponent))}return n.set(e,a),a}case 2:case 3:return 3;case 9:case 11:case 10:return 0;case 5:case 12:return Nr(e.content,t);case 4:return e.constType;case 8:let l=3;for(let a=0;a<e.children.length;a++){const c=e.children[a];if(_n(c)||qm(c))continue;const d=Nr(c,t);if(d===0)return 0;d<l&&(l=d)}return l;default:return 0}}const sF=new Set([og,sg,_a,Ba]);function z2(e,t){if(e.type===14&&!_n(e.callee)&&sF.has(e.callee)){const n=e.arguments[0];if(n.type===4)return Nr(n,t);if(n.type===14)return z2(n,t)}return 0}function W2(e,t){let n=3;const r=q2(e);if(r&&r.type===15){const{properties:o}=r;for(let i=0;i<o.length;i++){const{key:l,value:a}=o[i],c=Nr(l,t);if(c===0)return c;c<n&&(n=c);let d;if(a.type===4?d=Nr(a,t):a.type===14?d=z2(a,t):d=0,d===0)return d;d<n&&(n=d)}}return n}function q2(e){const t=e.codegenNode;if(t.type===13)return t.props}function K2(e){const t=e.patchFlag;return t?parseInt(t,10):void 0}function iF(e,{filename:t="",prefixIdentifiers:n=!1,hoistStatic:r=!1,cacheHandlers:o=!1,nodeTransforms:i=[],directiveTransforms:l={},transformHoist:a=null,isBuiltInComponent:c=Fc,isCustomElement:d=Fc,expressionPlugins:p=[],scopeId:h=null,slotted:v=!0,ssr:y=!1,inSSR:b=!1,ssrCssVars:S="",bindingMetadata:T=_6,inline:C=!1,isTS:w=!1,onError:E=Gm,onWarn:O=k2,compatConfig:$}){const P=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),R={selfName:P&&Km(Od(P[1])),prefixIdentifiers:n,hoistStatic:r,cacheHandlers:o,nodeTransforms:i,directiveTransforms:l,transformHoist:a,isBuiltInComponent:c,isCustomElement:d,expressionPlugins:p,scopeId:h,slotted:v,ssr:y,inSSR:b,ssrCssVars:S,bindingMetadata:T,inline:C,isTS:w,onError:E,onWarn:O,compatConfig:$,root:e,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],constantCache:new Map,temps:0,cached:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,currentNode:e,childIndex:0,inVOnce:!1,helper(k){const W=R.helpers.get(k)||0;return R.helpers.set(k,W+1),k},removeHelper(k){const W=R.helpers.get(k);if(W){const U=W-1;U?R.helpers.set(k,U):R.helpers.delete(k)}},helperString(k){return`_${Ji[R.helper(k)]}`},replaceNode(k){R.parent.children[R.childIndex]=R.currentNode=k},removeNode(k){const W=R.parent.children,U=k?W.indexOf(k):R.currentNode?R.childIndex:-1;!k||k===R.currentNode?(R.currentNode=null,R.onNodeRemoved()):R.childIndex>U&&(R.childIndex--,R.onNodeRemoved()),R.parent.children.splice(U,1)},onNodeRemoved:()=>{},addIdentifiers(k){},removeIdentifiers(k){},hoist(k){_n(k)&&(k=dt(k)),R.hoists.push(k);const W=dt(`_hoisted_${R.hoists.length}`,!1,k.loc,2);return W.hoisted=k,W},cache(k,W=!1){return L6(R.cached++,k,W)}};return R.filters=new Set,R}function lF(e,t){const n=iF(e,t);Pd(e,n),t.hoistStatic&&oF(e,n),t.ssr||aF(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.filters=[...n.filters]}function aF(e,t){const{helper:n}=t,{children:r}=e;if(r.length===1){const o=r[0];if(H2(e,o)&&o.codegenNode){const i=o.codegenNode;i.type===13&&cg(i,t),e.codegenNode=i}else e.codegenNode=o}else if(r.length>1){let o=64;e.codegenNode=ba(t,n(ya),void 0,e.children,o+"",void 0,void 0,!0,void 0,!1)}}function uF(e,t){let n=0;const r=()=>{n--};for(;n<e.children.length;n++){const o=e.children[n];_n(o)||(t.parent=e,t.childIndex=n,t.onNodeRemoved=r,Pd(o,t))}}function Pd(e,t){t.currentNode=e;const{nodeTransforms:n}=t,r=[];for(let i=0;i<n.length;i++){const l=n[i](e,t);if(l&&(Yi(l)?r.push(...l):r.push(l)),t.currentNode)e=t.currentNode;else return}switch(e.type){case 3:t.ssr||t.helper(Ua);break;case 5:t.ssr||t.helper(Ad);break;case 9:for(let i=0;i<e.branches.length;i++)Pd(e.branches[i],t);break;case 10:case 11:case 1:case 0:uF(e,t);break}t.currentNode=e;let o=r.length;for(;o--;)r[o]()}function G2(e,t){const n=_n(e)?r=>r===e:r=>e.test(r);return(r,o)=>{if(r.type===1){const{props:i}=r;if(r.tagType===3&&i.some(V6))return;const l=[];for(let a=0;a<i.length;a++){const c=i[a];if(c.type===7&&n(c.name)){i.splice(a,1),a--;const d=t(r,c,o);d&&l.push(d)}}return l}}}const Rd="/*#__PURE__*/",X2=e=>`${Ji[e]}: _${Ji[e]}`;function cF(e,{mode:t="function",prefixIdentifiers:n=t==="module",sourceMap:r=!1,filename:o="template.vue.html",scopeId:i=null,optimizeImports:l=!1,runtimeGlobalName:a="Vue",runtimeModuleName:c="vue",ssrRuntimeModuleName:d="vue/server-renderer",ssr:p=!1,isTS:h=!1,inSSR:v=!1}){const y={mode:t,prefixIdentifiers:n,sourceMap:r,filename:o,scopeId:i,optimizeImports:l,runtimeGlobalName:a,runtimeModuleName:c,ssrRuntimeModuleName:d,ssr:p,isTS:h,inSSR:v,source:e.loc.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(S){return`_${Ji[S]}`},push(S,T){y.code+=S},indent(){b(++y.indentLevel)},deindent(S=!1){S?--y.indentLevel:b(--y.indentLevel)},newline(){b(y.indentLevel)}};function b(S){y.push(`3 `+" ".repeat(S))}return y}function dF(e,t={}){const n=cF(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:r,push:o,prefixIdentifiers:i,indent:l,deindent:a,newline:c,scopeId:d,ssr:p}=n,h=Array.from(e.helpers),v=h.length>0,y=!i&&r!=="module";fF(e,n);const S=p?"ssrRender":"render",C=(p?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ");if(o(`function ${S}(${C}) {`),l(),y&&(o("with (_ctx) {"),l(),v&&(o(`const { ${h.map( X2).join(", ")} } = _Vue`),o(`4 `),c())),e.components.length&&( Bp(e.components,"component",n),(e.directives.length||e.temps>0)&&c()),e.directives.length&&(Bp(e.directives,"directive",n),e.temps>0&&c()),e.filters&&e.filters.length&&(c(),Bp(e.filters,"filter",n),c()),e.temps>0){o("let ");for(let w=0;w<e.temps;w++)o(`${w>0?", ":""}_temp${w}`)}return(e.components.length||e.directives.length||e.temps)&&(o(`1 (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function gm(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o<r.length;o++)n[r[o]]=!0;return o=>!!n[o]}const GI="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt",XI=gm(GI);function so(e){if(Je(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=ln(r)?QI(r):so(r);if(o)for(const i in o)t[i]=o[i]}return t}else{if(ln(e))return e;if(Kt(e))return e}}const YI=/;(?![^(]*\))/g,JI=/:([^]+)/,ZI=/\/\*.*?\*\//gs;function QI(e){const t={};return e.replace(ZI,"").split(YI).forEach(n=>{if(n){const r=n.split(JI);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function gt(e){let t="";if(ln(e))t=e;else if(Je(e))for(let n=0;n<e.length;n++){const r=gt(e[n]);r&&(t+=r+" ")}else if(Kt(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function eP(e){if(!e)return null;let{class:t,style:n}=e;return t&&!ln(t)&&(e.class=gt(t)),n&&(e.style=so(n)),e}const L=e=>ln(e)?e:e==null?"":Je(e)||Kt(e)&&(e.toString===Bb||!nt(e.toString))?JSON.stringify(e,Mb,2):String(e),Mb=(e,t)=>t&&t.__v_isRef?Mb(e,t.value):Bi(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o])=>(n[`${r} =>`]=o,n),{})}:Ub(t)?{[`Set(${t.size})`]:[...t.values()]}:Kt(t)&&!Je(t)&&!jb(t)?String(t):t,jt={},Ui=[],Eo=()=>{},tP=()=>!1,nP=/^on[^a-z]/,ld=e=>nP.test(e),Db=e=>e.startsWith("onUpdate:"),kn=Object.assign,vm=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},rP=Object.prototype.hasOwnProperty,Et=(e,t)=>rP.call(e,t),Je=Array.isArray,Bi=e=>Ra(e)==="[object Map]",Ub=e=>Ra(e)==="[object Set]",oP=e=>Ra(e)==="[object RegExp]",nt=e=>typeof e=="function",ln=e=>typeof e=="string",ym=e=>typeof e=="symbol",Kt=e=>e!==null&&typeof e=="object",_m=e=>Kt(e)&&nt(e.then)&&nt(e.catch),Bb=Object.prototype.toString,Ra=e=>Bb.call(e),sP=e=>Ra(e).slice(8,-1),jb=e=>Ra(e)==="[object Object]",bm=e=>ln(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Kl=gm(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ad=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},iP=/-(\w)/g,io=ad(e=>e.replace(iP,(t,n)=>n?n.toUpperCase():"")),lP=/\B([A-Z])/g,ud=ad(e=>e.replace(lP,"-$1").toLowerCase()),cd=ad(e=>e.charAt(0).toUpperCase()+e.slice(1)),Gl=ad(e=>e?`on${cd(e)}`:""),qi=(e,t)=>!Object.is(e,t),Xl=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Oc=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},aP=e=>{const t=parseFloat(e);return isNaN(t)?e:t},uP=e=>{const t=ln(e)?Number(e):NaN;return isNaN(t)?e:t};let m_;const cP=()=>m_||(m_=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let vr;class wm{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=vr,!t&&vr&&(this.index=(vr.scopes||(vr.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=vr;try{return vr=this,t()}finally{vr=n}}}on(){vr=this}off(){vr=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0,this._active=!1}}}function dP(e){return new wm(e)}function Vb(e,t=vr){t&&t.active&&t.effects.push(e)}function Hb(){return vr}function zb(e){vr&&vr.cleanups.push(e)}const Sm=e=>{const t=new Set(e);return t.w=0,t.n=0,t},Wb=e=>(e.w&bs)>0,qb=e=>(e.n&bs)>0,fP=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=bs},pP=e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const o=t[r];Wb(o)&&!qb(o)?o.delete(e):t[n++]=o,o.w&=~bs,o.n&=~bs}t.length=n}},Ac=new WeakMap;let Hl=0,bs=1;const dh=30;let Qr;const Zs=Symbol(""),fh=Symbol("");class La{constructor(t,n=null,r){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,Vb(this,r)}run(){if(!this.active)return this.fn();let t=Qr,n=vs;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=Qr,Qr=this,vs=!0,bs=1<<++Hl,Hl<=dh?fP(this):g_(this),this.fn()}finally{Hl<=dh&&pP(this),bs=1<<--Hl,Qr=this.parent,vs=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Qr===this?this.deferStop=!0:this.active&&(g_(this),this.onStop&&this.onStop(),this.active=!1)}}function g_(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}function hP(e,t){e.effect&&(e=e.effect.fn);const n=new La(e);t&&(kn(n,t),t.scope&&Vb(n,t.scope)),(!t||!t.lazy)&&n.run();const r=n.run.bind(n);return r.effect=n,r}function mP(e){e.effect.stop()}let vs=!0;const Kb=[];function cl(){Kb.push(vs),vs=!1}function dl(){const e=Kb.pop();vs=e===void 0?!0:e}function lr(e,t,n){if(vs&&Qr){let r=Ac.get(e);r||Ac.set(e,r=new Map);let o=r.get(n);o||r.set(n,o=Sm()),Gb(o)}}function Gb(e,t){let n=!1;Hl<=dh?qb(e)||(e.n|=bs,n=!Wb(e)):n=!e.has(Qr),n&&(e.add(Qr),Qr.deps.push(e))}function Ko(e,t,n,r,o,i){const l=Ac.get(e);if(!l)return;let a=[];if(t==="clear")a=[...l.values()];else if(n==="length"&&Je(e)){const c=Number(r);l.forEach((d,p)=>{(p==="length"||p>=c)&&a.push(d)})}else switch(n!==void 0&&a.push(l.get(n)),t){case"add":Je(e)?bm(n)&&a.push(l.get("length")):(a.push(l.get(Zs)),Bi(e)&&a.push(l.get(fh)));break;case"delete":Je(e)||(a.push(l.get(Zs)),Bi(e)&&a.push(l.get(fh)));break;case"set":Bi(e)&&a.push(l.get(Zs));break}if(a.length===1)a[0]&&ph(a[0]);else{const c=[];for(const d of a)d&&c.push(...d);ph(Sm(c))}}function ph(e,t){const n=Je(e)?e:[...e];for(const r of n)r.computed&&v_(r);for(const r of n)r.computed||v_(r)}function v_(e,t){(e!==Qr||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function gP(e,t){var n;return(n=Ac.get(e))===null||n===void 0?void 0:n.get(t)}const vP=gm("__proto__,__v_isRef,__isVue"),Xb=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ym)),yP=dd(),_P=dd(!1,!0),bP=dd(!0),wP=dd(!0,!0),y_=SP();function SP(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=He(this);for(let i=0,l=this.length;i<l;i++)lr(r,"get",i+"");const o=r[t](...n);return o===-1||o===!1?r[t](...n.map(He)):o}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){cl();const r=He(this)[t].apply(this,n);return dl(),r}}),e}function EP(e){const t=He(this);return lr(t,"has",e),t.hasOwnProperty(e)}function dd(e=!1,t=!1){return function(r,o,i){if(o==="__v_isReactive")return!e;if(o==="__v_isReadonly")return e;if(o==="__v_isShallow")return t;if(o==="__v_raw"&&i===(e?t?nw:tw:t?ew:Qb).get(r))return r;const l=Je(r);if(!e){if(l&&Et(y_,o))return Reflect.get(y_,o,i);if(o==="hasOwnProperty")return EP}const a=Reflect.get(r,o,i);return(ym(o)?Xb.has(o):vP(o))||(e||lr(r,"get",o),t)?a:pn(a)?l&&bm(o)?a:a.value:Kt(a)?e?$m(a):Ts(a):a}}const $P=Yb(),xP=Yb(!0);function Yb(e=!1){return function(n,r,o,i){let l=n[r];if(li(l)&&pn(l)&&!pn(o))return!1;if(!e&&(!ca(o)&&!li(o)&&(l=He(l),o=He(o)),!Je(n)&&pn(l)&&!pn(o)))return l.value=o,!0;const a=Je(n)&&bm(r)?Number(r)<n.length:Et(n,r),c=Reflect.set(n,r,o,i);return n===He(i)&&(a?qi(o,l)&&Ko(n,"set",r,o):Ko(n,"add",r,o)),c}}function TP(e,t){const n=Et(e,t);e[t];const r=Reflect.deleteProperty(e,t);return r&&n&&Ko(e,"delete",t,void 0),r}function CP(e,t){const n=Reflect.has(e,t);return(!ym(t)||!Xb.has(t))&&lr(e,"has",t),n}function OP(e){return lr(e,"iterate",Je(e)?"length":Zs),Reflect.ownKeys(e)}const Jb={get:yP,set:$P,deleteProperty:TP,has:CP,ownKeys:OP},Zb={get:bP,set(e,t){return!0},deleteProperty(e,t){return!0}},AP=kn({},Jb,{get:_P,set:xP}),kP=kn({},Zb,{get:wP}),Em=e=>e,fd=e=>Reflect.getPrototypeOf(e);function Wu(e,t,n=!1,r=!1){e=e.__v_raw;const o=He(e),i=He(t);n||(t!==i&&lr(o,"get",t),lr(o,"get",i));const{has:l}=fd(o),a=r?Em:n?Cm:da;if(l.call(o,t))return a(e.get(t));if(l.call(o,i))return a(e.get(i));e!==o&&e.get(t)}function qu(e,t=!1){const n=this.__v_raw,r=He(n),o=He(e);return t||(e!==o&&lr(r,"has",e),lr(r,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function Ku(e,t=!1){return e=e.__v_raw,!t&&lr(He(e),"iterate",Zs),Reflect.get(e,"size",e)}function __(e){e=He(e);const t=He(this);return fd(t).has.call(t,e)||(t.add(e),Ko(t,"add",e,e)),this}function b_(e,t){t=He(t);const n=He(this),{has:r,get:o}=fd(n);let i=r.call(n,e);i||(e=He(e),i=r.call(n,e));const l=o.call(n,e);return n.set(e,t),i?qi(t,l)&&Ko(n,"set",e,t):Ko(n,"add",e,t),this}function w_(e){const t=He(this),{has:n,get:r}=fd(t);let o=n.call(t,e);o||(e=He(e),o=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return o&&Ko(t,"delete",e,void 0),i}function S_(){const e=He(this),t=e.size!==0,n=e.clear();return t&&Ko(e,"clear",void 0,void 0),n}function Gu(e,t){return function(r,o){const i=this,l=i.__v_raw,a=He(l),c=t?Em:e?Cm:da;return!e&&lr(a,"iterate",Zs),l.forEach((d,p)=>r.call(o,c(d),c(p),i))}}function Xu(e,t,n){return function(...r){const o=this.__v_raw,i=He(o),l=Bi(i),a=e==="entries"||e===Symbol.iterator&&l,c=e==="keys"&&l,d=o[e](...r),p=n?Em:t?Cm:da;return!t&&lr(i,"iterate",c?fh:Zs),{next(){const{value:h,done:v}=d.next();return v?{value:h,done:v}:{value:a?[p(h[0]),p(h[1])]:p(h),done:v}},[Symbol.iterator](){return this}}}}function ls(e){return function(...t){return e==="delete"?!1:this}}function IP(){const e={get(i){return Wu(this,i)},get size(){return Ku(this)},has:qu,add:__,set:b_,delete:w_,clear:S_,forEach:Gu(!1,!1)},t={get(i){return Wu(this,i,!1,!0)},get size(){return Ku(this)},has:qu,add:__,set:b_,delete:w_,clear:S_,forEach:Gu(!1,!0)},n={get(i){return Wu(this,i,!0)},get size(){return Ku(this,!0)},has(i){return qu.call(this,i,!0)},add:ls("add"),set:ls("set"),delete:ls("delete"),clear:ls("clear"),forEach:Gu(!0,!1)},r={get(i){return Wu(this,i,!0,!0)},get size(){return Ku(this,!0)},has(i){return qu.call(this,i,!0)},add:ls("add"),set:ls("set"),delete:ls("delete"),clear:ls("clear"),forEach:Gu(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Xu(i,!1,!1),n[i]=Xu(i,!0,!1),t[i]=Xu(i,!1,!0),r[i]=Xu(i,!0,!0)}),[e,n,t,r]}const[PP,RP,LP,FP]=IP();function pd(e,t){const n=t?e?FP:LP:e?RP:PP;return(r,o,i)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(Et(n,o)&&o in r?n:r,o,i)}const NP={get:pd(!1,!1)},MP={get:pd(!1,!0)},DP={get:pd(!0,!1)},UP={get:pd(!0,!0)},Qb=new WeakMap,ew=new WeakMap,tw=new WeakMap,nw=new WeakMap;function BP(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function jP(e){return e.__v_skip||!Object.isExtensible(e)?0:BP(sP(e))}function Ts(e){return li(e)?e:hd(e,!1,Jb,NP,Qb)}function rw(e){return hd(e,!1,AP,MP,ew)}function $m(e){return hd(e,!0,Zb,DP,tw)}function VP(e){return hd(e,!0,kP,UP,nw)}function hd(e,t,n,r,o){if(!Kt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=o.get(e);if(i)return i;const l=jP(e);if(l===0)return e;const a=new Proxy(e,l===2?r:n);return o.set(e,a),a}function Qs(e){return li(e)?Qs(e.__v_raw):!!(e&&e.__v_isReactive)}function li(e){return!!(e&&e.__v_isReadonly)}function ca(e){return!!(e&&e.__v_isShallow)}function xm(e){return Qs(e)||li(e)}function He(e){const t=e&&e.__v_raw;return t?He(t):e}function Tm(e){return Oc(e,"__v_skip",!0),e}const da=e=>Kt(e)?Ts(e):e,Cm=e=>Kt(e)?$m(e):e;function Om(e){vs&&Qr&&(e=He(e),Gb(e.dep||(e.dep=Sm())))}function md(e,t){e=He(e);const n=e.dep;n&&ph(n)}function pn(e){return!!(e&&e.__v_isRef===!0)}function $e(e){return ow(e,!1)}function gd(e){return ow(e,!0)}function ow(e,t){return pn(e)?e:new HP(e,t)}class HP{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:He(t),this._value=n?t:da(t)}get value(){return Om(this),this._value}set value(t){const n=this.__v_isShallow||ca(t)||li(t);t=n?t:He(t),qi(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:da(t),md(this))}}function hh(e){md(e)}function vn(e){return pn(e)?e.value:e}const zP={get:(e,t,n)=>vn(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return pn(o)&&!pn(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function Am(e){return Qs(e)?e:new Proxy(e,zP)}class WP{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:r}=t(()=>Om(this),()=>md(this));this._get=n,this._set=r}get value(){return this._get()}set value(t){this._set(t)}}function qP(e){return new WP(e)}function km(e){const t=Je(e)?new Array(e.length):{};for(const n in e)t[n]=sw(e,n);return t}class KP{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return gP(He(this._object),this._key)}}function sw(e,t,n){const r=e[t];return pn(r)?r:new KP(e,t,n)}var iw;class GP{constructor(t,n,r,o){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[iw]=!1,this._dirty=!0,this.effect=new La(t,()=>{this._dirty||(this._dirty=!0,md(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=r}get value(){const t=He(this);return Om(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}iw="__v_isReadonly";function XP(e,t,n=!1){let r,o;const i=nt(e);return i?(r=e,o=Eo):(r=e.get,o=e.set),new GP(r,o,i||!o,n)}function YP(e,...t){}function JP(e,t){}function zo(e,t,n,r){let o;try{o=r?e(...r):e()}catch(i){pi(i,t,n)}return o}function wr(e,t,n,r){if(nt(e)){const i=zo(e,t,n,r);return i&&_m(i)&&i.catch(l=>{pi(l,t,n)}),i}const o=[];for(let i=0;i<e.length;i++)o.push(wr(e[i],t,n,r));return o}function pi(e,t,n,r=!0){const o=t?t.vnode:null;if(t){let i=t.parent;const l=t.proxy,a=n;for(;i;){const d=i.ec;if(d){for(let p=0;p<d.length;p++)if(d[p](e,l,a)===!1)return}i=i.parent}const c=t.appContext.config.errorHandler;if(c){zo(c,null,10,[e,l,a]);return}}ZP(e,n,o,r)}function ZP(e,t,n,r=!0){console.error(e)}let fa=!1,mh=!1;const Nn=[];let So=0;const ji=[];let Bo=null,Ws=0;const lw=Promise.resolve();let Im=null;function sn(e){const t=Im||lw;return e?t.then(this?e.bind(this):e):t}function QP(e){let t=So+1,n=Nn.length;for(;t<n;){const r=t+n>>>1;pa(Nn[r])<e?t=r+1:n=r}return t}function vd(e){(!Nn.length||!Nn.includes(e,fa&&e.allowRecurse?So+1:So))&&(e.id==null?Nn.push(e):Nn.splice(QP(e.id),0,e),aw())}function aw(){!fa&&!mh&&(mh=!0,Im=lw.then(uw))}function eR(e){const t=Nn.indexOf(e);t>So&&Nn.splice(t,1)}function Pm(e){Je(e)?ji.push(...e):(!Bo||!Bo.includes(e,e.allowRecurse?Ws+1:Ws))&&ji.push(e),aw()}function E_(e,t=fa?So+1:0){for(;t<Nn.length;t++){const n=Nn[t];n&&n.pre&&(Nn.splice(t,1),t--,n())}}function kc(e){if(ji.length){const t=[...new Set(ji)];if(ji.length=0,Bo){Bo.push(...t);return}for(Bo=t,Bo.sort((n,r)=>pa(n)-pa(r)),Ws=0;Ws<Bo.length;Ws++)Bo[Ws]();Bo=null,Ws=0}}const pa=e=>e.id==null?1/0:e.id,tR=(e,t)=>{const n=pa(e)-pa(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function uw(e){mh=!1,fa=!0,Nn.sort(tR);try{for(So=0;So<Nn.length;So++){const t=Nn[So];t&&t.active!==!1&&zo(t,null,14)}}finally{So=0,Nn.length=0,kc(),fa=!1,Im=null,(Nn.length||ji.length)&&uw()}}let Mi,Yu=[];function cw(e,t){var n,r;Mi=e,Mi?(Mi.enabled=!0,Yu.forEach(({event:o,args:i})=>Mi.emit(o,...i)),Yu=[]):typeof window<"u"&&window.HTMLElement&&!(!((r=(n=window.navigator)===null||n===void 0?void 0:n.userAgent)===null||r===void 0)&&r.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(i=>{cw(i,t)}),setTimeout(()=>{Mi||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Yu=[])},3e3)):Yu=[]}function nR(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||jt;let o=n;const i=t.startsWith("update:"),l=i&&t.slice(7);if(l&&l in r){const p=`${l==="modelValue"?"model":l}Modifiers`,{number:h,trim:v}=r[p]||jt;v&&(o=n.map(y=>ln(y)?y.trim():y)),h&&(o=n.map(aP))}let a,c=r[a=Gl(t)]||r[a=Gl(io(t))];!c&&i&&(c=r[a=Gl(ud(t))]),c&&wr(c,e,6,o);const d=r[a+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,wr(d,e,6,o)}}function dw(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(o!==void 0)return o;const i=e.emits;let l={},a=!1;if(!nt(e)){const c=d=>{const p=dw(d,t,!0);p&&(a=!0,kn(l,p))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!i&&!a?(Kt(e)&&r.set(e,null),null):(Je(i)?i.forEach(c=>l[c]=null):kn(l,i),Kt(e)&&r.set(e,l),l)}function yd(e,t){return!e||!ld(t)?!1:(t=t.slice(2).replace(/Once$/,""),Et(e,t[0].toLowerCase()+t.slice(1))||Et(e,ud(t))||Et(e,t))}let An=null,_d=null;function ha(e){const t=An;return An=e,_d=e&&e.type.__scopeId||null,t}function rR(e){_d=e}function oR(){_d=null}const sR=e=>_e;function _e(e,t=An,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&Sh(-1);const i=ha(t);let l;try{l=e(...o)}finally{ha(i),r._d&&Sh(1)}return l};return r._n=!0,r._c=!0,r._d=!0,r}function mc(e){const{type:t,vnode:n,proxy:r,withProxy:o,props:i,propsOptions:[l],slots:a,attrs:c,emit:d,render:p,renderCache:h,data:v,setupState:y,ctx:b,inheritAttrs:S}=e;let T,C;const w=ha(e);try{if(n.shapeFlag&4){const O=o||r;T=yr(p.call(O,O,h,i,y,v,b)),C=c}else{const O=t;T=yr(O.length>1?O(i,{attrs:c,slots:a,emit:d}):O(i,null)),C=t.props?c:lR(c)}}catch(O){Zl.length=0,pi(O,e,1),T=z(Un)}let E=T;if(C&&S!==!1){const O=Object.keys(C),{shapeFlag:$}=E;O.length&&$&7&&(l&&O.some(Db)&&(C=aR(C,l)),E=Vr(E,C))}return n.dirs&&(E=Vr(E),E.dirs=E.dirs?E.dirs.concat(n.dirs):n.dirs),n.transition&&(E.transition=n.transition),T=E,ha(w),T}function iR(e){let t;for(let n=0;n<e.length;n++){const r=e[n];if(ws(r)){if(r.type!==Un||r.children==="v-if"){if(t)return;t=r}}else return}return t}const lR=e=>{let t;for(const n in e)(n==="class"||n==="style"||ld(n))&&((t||(t={}))[n]=e[n]);return t},aR=(e,t)=>{const n={};for(const r in e)(!Db(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function uR(e,t,n){const{props:r,children:o,component:i}=e,{props:l,children:a,patchFlag:c}=t,d=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?$_(r,l,d):!!l;if(c&8){const p=t.dynamicProps;for(let h=0;h<p.length;h++){const v=p[h];if(l[v]!==r[v]&&!yd(d,v))return!0}}}else return(o||a)&&(!a||!a.$stable)?!0:r===l?!1:r?l?$_(r,l,d):!0:!!l;return!1}function $_(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let o=0;o<r.length;o++){const i=r[o];if(t[i]!==e[i]&&!yd(n,i))return!0}return!1}function Rm({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const fw=e=>e.__isSuspense,cR={name:"Suspense",__isSuspense:!0,process(e,t,n,r,o,i,l,a,c,d){e==null?fR(t,n,r,o,i,l,a,c,d):pR(e,t,n,r,o,l,a,c,d)},hydrate:hR,create:Lm,normalize:mR},dR=cR;function ma(e,t){const n=e.props&&e.props[t];nt(n)&&n()}function fR(e,t,n,r,o,i,l,a,c){const{p:d,o:{createElement:p}}=c,h=p("div"),v=e.suspense=Lm(e,o,r,t,h,n,i,l,a,c);d(null,v.pendingBranch=e.ssContent,h,null,r,v,i,l),v.deps>0?(ma(e,"onPending"),ma(e,"onFallback"),d(null,e.ssFallback,t,n,r,null,i,l),Vi(v,e.ssFallback)):v.resolve()}function pR(e,t,n,r,o,i,l,a,{p:c,um:d,o:{createElement:p}}){const h=t.suspense=e.suspense;h.vnode=t,t.el=e.el;const v=t.ssContent,y=t.ssFallback,{activeBranch:b,pendingBranch:S,isInFallback:T,isHydrating:C}=h;if(S)h.pendingBranch=v,eo(v,S)?(c(S,v,h.hiddenContainer,null,o,h,i,l,a),h.deps<=0?h.resolve():T&&(c(b,y,n,r,o,null,i,l,a),Vi(h,y))):(h.pendingId++,C?(h.isHydrating=!1,h.activeBranch=S):d(S,o,h),h.deps=0,h.effects.length=0,h.hiddenContainer=p("div"),T?(c(null,v,h.hiddenContainer,null,o,h,i,l,a),h.deps<=0?h.resolve():(c(b,y,n,r,o,null,i,l,a),Vi(h,y))):b&&eo(v,b)?(c(b,v,n,r,o,h,i,l,a),h.resolve(!0)):(c(null,v,h.hiddenContainer,null,o,h,i,l,a),h.deps<=0&&h.resolve()));else if(b&&eo(v,b))c(b,v,n,r,o,h,i,l,a),Vi(h,v);else if(ma(t,"onPending"),h.pendingBranch=v,h.pendingId++,c(null,v,h.hiddenContainer,null,o,h,i,l,a),h.deps<=0)h.resolve();else{const{timeout:w,pendingId:E}=h;w>0?setTimeout(()=>{h.pendingId===E&&h.fallback(y)},w):w===0&&h.fallback(y)}}function Lm(e,t,n,r,o,i,l,a,c,d,p=!1){const{p:h,m:v,um:y,n:b,o:{parentNode:S,remove:T}}=d,C=e.props?uP(e.props.timeout):void 0,w={vnode:e,parent:t,parentComponent:n,isSVG:l,container:r,hiddenContainer:o,anchor:i,deps:0,pendingId:0,timeout:typeof C=="number"?C:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:p,isUnmounted:!1,effects:[],resolve(E=!1){const{vnode:O,activeBranch:$,pendingBranch:P,pendingId:R,effects:k,parentComponent:W,container:U}=w;if(w.isHydrating)w.isHydrating=!1;else if(!E){const X=$&&P.transition&&P.transition.mode==="out-in";X&&($.transition.afterLeave=()=>{R===w.pendingId&&v(P,U,ne,0)});let{anchor:ne}=w;$&&(ne=b($),y($,W,w,!0)),X||v(P,U,ne,0)}Vi(w,P),w.pendingBranch=null,w.isInFallback=!1;let j=w.parent,G=!1;for(;j;){if(j.pendingBranch){j.effects.push(...k),G=!0;break}j=j.parent}G||Pm(k),w.effects=[],ma(O,"onResolve")},fallback(E){if(!w.pendingBranch)return;const{vnode:O,activeBranch:$,parentComponent:P,container:R,isSVG:k}=w;ma(O,"onFallback");const W=b($),U=()=>{w.isInFallback&&(h(null,E,R,W,P,null,k,a,c),Vi(w,E))},j=E.transition&&E.transition.mode==="out-in";j&&($.transition.afterLeave=U),w.isInFallback=!0,y($,P,null,!0),j||U()},move(E,O,$){w.activeBranch&&v(w.activeBranch,E,O,$),w.container=E},next(){return w.activeBranch&&b(w.activeBranch)},registerDep(E,O){const $=!!w.pendingBranch;$&&w.deps++;const P=E.vnode.el;E.asyncDep.catch(R=>{pi(R,E,0)}).then(R=>{if(E.isUnmounted||w.isUnmounted||w.pendingId!==E.suspenseId)return;E.asyncResolved=!0;const{vnode:k}=E;Eh(E,R,!1),P&&(k.el=P);const W=!P&&E.subTree.el;O(E,k,S(P||E.subTree.el),P?null:b(E.subTree),w,l,c),W&&T(W),Rm(E,k.el),$&&--w.deps===0&&w.resolve()})},unmount(E,O){w.isUnmounted=!0,w.activeBranch&&y(w.activeBranch,n,E,O),w.pendingBranch&&y(w.pendingBranch,n,E,O)}};return w}function hR(e,t,n,r,o,i,l,a,c){const d=t.suspense=Lm(t,r,n,e.parentNode,document.createElement("div"),null,o,i,l,a,!0),p=c(e,d.pendingBranch=t.ssContent,n,d,i,l);return d.deps===0&&d.resolve(),p}function mR(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=x_(r?n.default:n),e.ssFallback=r?x_(n.fallback):z(Un)}function x_(e){let t;if(nt(e)){const n=ci&&e._c;n&&(e._d=!1,I()),e=e(),n&&(e._d=!0,t=tr,Vw())}return Je(e)&&(e=iR(e)),e=yr(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function pw(e,t){t&&t.pendingBranch?Je(e)?t.effects.push(...e):t.effects.push(e):Pm(e)}function Vi(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e,o=n.el=t.el;r&&r.subTree===n&&(r.vnode.el=o,Rm(r,o))}function Qt(e,t){if(Jt){let n=Jt.provides;const r=Jt.parent&&Jt.parent.provides;r===n&&(n=Jt.provides=Object.create(r)),n[e]=t}}function Ft(e,t,n=!1){const r=Jt||An;if(r){const o=r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&nt(t)?t.call(r.proxy):t}}function Vt(e,t){return Fa(e,null,t)}function hw(e,t){return Fa(e,null,{flush:"post"})}function gR(e,t){return Fa(e,null,{flush:"sync"})}const Ju={};function Ut(e,t,n){return Fa(e,t,n)}function Fa(e,t,{immediate:n,deep:r,flush:o,onTrack:i,onTrigger:l}=jt){const a=Hb()===(Jt==null?void 0:Jt.scope)?Jt:null;let c,d=!1,p=!1;if(pn(e)?(c=()=>e.value,d=ca(e)):Qs(e)?(c=()=>e,r=!0):Je(e)?(p=!0,d=e.some(E=>Qs(E)||ca(E)),c=()=>e.map(E=>{if(pn(E))return E.value;if(Qs(E))return Gs(E);if(nt(E))return zo(E,a,2)})):nt(e)?t?c=()=>zo(e,a,2):c=()=>{if(!(a&&a.isUnmounted))return h&&h(),wr(e,a,3,[v])}:c=Eo,t&&r){const E=c;c=()=>Gs(E())}let h,v=E=>{h=C.onStop=()=>{zo(E,a,4)}},y;if(Gi)if(v=Eo,t?n&&wr(t,a,3,[c(),p?[]:void 0,v]):c(),o==="sync"){const E=n2();y=E.__watcherHandles||(E.__watcherHandles=[])}else return Eo;let b=p?new Array(e.length).fill(Ju):Ju;const S=()=>{if(C.active)if(t){const E=C.run();(r||d||(p?E.some((O,$)=>qi(O,b[$])):qi(E,b)))&&(h&&h(),wr(t,a,3,[E,b===Ju?void 0:p&&b[0]===Ju?[]:b,v]),b=E)}else C.run()};S.allowRecurse=!!t;let T;o==="sync"?T=S:o==="post"?T=()=>Cn(S,a&&a.suspense):(S.pre=!0,a&&(S.id=a.uid),T=()=>vd(S));const C=new La(c,T);t?n?S():b=C.run():o==="post"?Cn(C.run.bind(C),a&&a.suspense):C.run();const w=()=>{C.stop(),a&&a.scope&&vm(a.scope.effects,C)};return y&&y.push(w),w}function vR(e,t,n){const r=this.proxy,o=ln(e)?e.includes(".")?mw(r,e):()=>r[e]:e.bind(r,r);let i;nt(t)?i=t:(i=t.handler,n=t);const l=Jt;Ss(this);const a=Fa(o,i.bind(r),n);return l?Ss(l):ys(),a}function mw(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o<n.length&&r;o++)r=r[n[o]];return r}}function Gs(e,t){if(!Kt(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),pn(e))Gs(e.value,t);else if(Je(e))for(let n=0;n<e.length;n++)Gs(e[n],t);else if(Ub(e)||Bi(e))e.forEach(n=>{Gs(n,t)});else if(jb(e))for(const n in e)Gs(e[n],t);return e}function Fm(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return wt(()=>{e.isMounted=!0}),hi(()=>{e.isUnmounting=!0}),e}const Lr=[Function,Array],yR={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Lr,onEnter:Lr,onAfterEnter:Lr,onEnterCancelled:Lr,onBeforeLeave:Lr,onLeave:Lr,onAfterLeave:Lr,onLeaveCancelled:Lr,onBeforeAppear:Lr,onAppear:Lr,onAfterAppear:Lr,onAppearCancelled:Lr},setup(e,{slots:t}){const n=Jo(),r=Fm();let o;return()=>{const i=t.default&&bd(t.default(),!0);if(!i||!i.length)return;let l=i[0];if(i.length>1){for(const S of i)if(S.type!==Un){l=S;break}}const a=He(e),{mode:c}=a;if(r.isLeaving)return Ap(l);const d=T_(l);if(!d)return Ap(l);const p=Ki(d,a,r,n);ai(d,p);const h=n.subTree,v=h&&T_(h);let y=!1;const{getTransitionKey:b}=d.type;if(b){const S=b();o===void 0?o=S:S!==o&&(o=S,y=!0)}if(v&&v.type!==Un&&(!eo(d,v)||y)){const S=Ki(v,a,r,n);if(ai(v,S),c==="out-in")return r.isLeaving=!0,S.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},Ap(l);c==="in-out"&&d.type!==Un&&(S.delayLeave=(T,C,w)=>{const E=gw(r,v);E[String(v.key)]=v,T._leaveCb=()=>{C(),T._leaveCb=void 0,delete p.delayedLeave},p.delayedLeave=w})}return l}}},Nm=yR;function gw(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Ki(e,t,n,r){const{appear:o,mode:i,persisted:l=!1,onBeforeEnter:a,onEnter:c,onAfterEnter:d,onEnterCancelled:p,onBeforeLeave:h,onLeave:v,onAfterLeave:y,onLeaveCancelled:b,onBeforeAppear:S,onAppear:T,onAfterAppear:C,onAppearCancelled:w}=t,E=String(e.key),O=gw(n,e),$=(k,W)=>{k&&wr(k,r,9,W)},P=(k,W)=>{const U=W[1];$(k,W),Je(k)?k.every(j=>j.length<=1)&&U():k.length<=1&&U()},R={mode:i,persisted:l,beforeEnter(k){let W=a;if(!n.isMounted)if(o)W=S||a;else return;k._leaveCb&&k._leaveCb(!0);const U=O[E];U&&eo(e,U)&&U.el._leaveCb&&U.el._leaveCb(),$(W,[k])},enter(k){let W=c,U=d,j=p;if(!n.isMounted)if(o)W=T||c,U=C||d,j=w||p;else return;let G=!1;const X=k._enterCb=ne=>{G||(G=!0,ne?$(j,[k]):$(U,[k]),R.delayedLeave&&R.delayedLeave(),k._enterCb=void 0)};W?P(W,[k,X]):X()},leave(k,W){const U=String(e.key);if(k._enterCb&&k._enterCb(!0),n.isUnmounting)return W();$(h,[k]);let j=!1;const G=k._leaveCb=X=>{j||(j=!0,W(),X?$(b,[k]):$(y,[k]),k._leaveCb=void 0,O[U]===e&&delete O[U])};O[U]=e,v?P(v,[k,G]):G()},clone(k){return Ki(k,t,n,r)}};return R}function Ap(e){if(Na(e))return e=Vr(e),e.children=null,e}function T_(e){return Na(e)?e.children?e.children[0]:void 0:e}function ai(e,t){e.shapeFlag&6&&e.component?ai(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 bd(e,t=!1,n){let r=[],o=0;for(let i=0;i<e.length;i++){let l=e[i];const a=n==null?l.key:String(n)+String(l.key!=null?l.key:i);l.type===Me?(l.patchFlag&128&&o++,r=r.concat(bd(l.children,t,a))):(t||l.type!==Un)&&r.push(a!=null?Vr(l,{key:a}):l)}if(o>1)for(let i=0;i<r.length;i++)r[i].patchFlag=-2;return r}function ge(e){return nt(e)?{setup:e,name:e.name}:e}const ei=e=>!!e.type.__asyncLoader;function _R(e){nt(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:o=200,timeout:i,suspensible:l=!0,onError:a}=e;let c=null,d,p=0;const h=()=>(p++,c=null,v()),v=()=>{let y;return c||(y=c=t().catch(b=>{if(b=b instanceof Error?b:new Error(String(b)),a)return new Promise((S,T)=>{a(b,()=>S(h()),()=>T(b),p+1)});throw b}).then(b=>y!==c&&c?c:(b&&(b.__esModule||b[Symbol.toStringTag]==="Module")&&(b=b.default),d=b,b)))};return ge({name:"AsyncComponentWrapper",__asyncLoader:v,get __asyncResolved(){return d},setup(){const y=Jt;if(d)return()=>kp(d,y);const b=w=>{c=null,pi(w,y,13,!r)};if(l&&y.suspense||Gi)return v().then(w=>()=>kp(w,y)).catch(w=>(b(w),()=>r?z(r,{error:w}):null));const S=$e(!1),T=$e(),C=$e(!!o);return o&&setTimeout(()=>{C.value=!1},o),i!=null&&setTimeout(()=>{if(!S.value&&!T.value){const w=new Error(`Async component timed out after ${i}ms.`);b(w),T.value=w}},i),v().then(()=>{S.value=!0,y.parent&&Na(y.parent.vnode)&&vd(y.parent.update)}).catch(w=>{b(w),T.value=w}),()=>{if(S.value&&d)return kp(d,y);if(T.value&&r)return z(r,{error:T.value});if(n&&!C.value)return z(n)}}})}function kp(e,t){const{ref:n,props:r,children:o,ce:i}=t.vnode,l=z(e,r,o);return l.ref=n,l.ce=i,delete t.vnode.ce,l}const Na=e=>e.type.__isKeepAlive,bR={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Jo(),r=n.ctx;if(!r.renderer)return()=>{const w=t.default&&t.default();return w&&w.length===1?w[0]:w};const o=new Map,i=new Set;let l=null;const a=n.suspense,{renderer:{p:c,m:d,um:p,o:{createElement:h}}}=r,v=h("div");r.activate=(w,E,O,$,P)=>{const R=w.component;d(w,E,O,0,a),c(R.vnode,w,E,O,R,a,$,w.slotScopeIds,P),Cn(()=>{R.isDeactivated=!1,R.a&&Xl(R.a);const k=w.props&&w.props.onVnodeMounted;k&&er(k,R.parent,w)},a)},r.deactivate=w=>{const E=w.component;d(w,v,null,1,a),Cn(()=>{E.da&&Xl(E.da);const O=w.props&&w.props.onVnodeUnmounted;O&&er(O,E.parent,w),E.isDeactivated=!0},a)};function y(w){Ip(w),p(w,n,a,!0)}function b(w){o.forEach((E,O)=>{const $=xh(E.type);$&&(!w||!w($))&&S(O)})}function S(w){const E=o.get(w);!l||!eo(E,l)?y(E):l&&Ip(l),o.delete(w),i.delete(w)}Ut(()=>[e.include,e.exclude],([w,E])=>{w&&b(O=>zl(w,O)),E&&b(O=>!zl(E,O))},{flush:"post",deep:!0});let T=null;const C=()=>{T!=null&&o.set(T,Pp(n.subTree))};return wt(C),Sd(C),hi(()=>{o.forEach(w=>{const{subTree:E,suspense:O}=n,$=Pp(E);if(w.type===$.type&&w.key===$.key){Ip($);const P=$.component.da;P&&Cn(P,O);return}y(w)})}),()=>{if(T=null,!t.default)return null;const w=t.default(),E=w[0];if(w.length>1)return l=null,w;if(!ws(E)||!(E.shapeFlag&4)&&!(E.shapeFlag&128))return l=null,E;let O=Pp(E);const $=O.type,P=xh(ei(O)?O.type.__asyncResolved||{}:$),{include:R,exclude:k,max:W}=e;if(R&&(!P||!zl(R,P))||k&&P&&zl(k,P))return l=O,E;const U=O.key==null?$:O.key,j=o.get(U);return O.el&&(O=Vr(O),E.shapeFlag&128&&(E.ssContent=O)),T=U,j?(O.el=j.el,O.component=j.component,O.transition&&ai(O,O.transition),O.shapeFlag|=512,i.delete(U),i.add(U)):(i.add(U),W&&i.size>parseInt(W,10)&&S(i.values().next().value)),O.shapeFlag|=256,l=O,fw(E.type)?E:O}}},wR=bR;function zl(e,t){return Je(e)?e.some(n=>zl(n,t)):ln(e)?e.split(",").includes(t):oP(e)?e.test(t):!1}function vw(e,t){_w(e,"a",t)}function yw(e,t){_w(e,"da",t)}function _w(e,t,n=Jt){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(wd(t,r,n),n){let o=n.parent;for(;o&&o.parent;)Na(o.parent.vnode)&&SR(r,t,n,o),o=o.parent}}function SR(e,t,n,r){const o=wd(t,e,r,!0);en(()=>{vm(r[t],o)},n)}function Ip(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Pp(e){return e.shapeFlag&128?e.ssContent:e}function wd(e,t,n=Jt,r=!1){if(n){const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...l)=>{if(n.isUnmounted)return;cl(),Ss(n);const a=wr(t,n,e,l);return ys(),dl(),a});return r?o.unshift(i):o.push(i),i}}const Yo=e=>(t,n=Jt)=>(!Gi||e==="sp")&&wd(e,(...r)=>t(...r),n),bw=Yo("bm"),wt=Yo("m"),ww=Yo("bu"),Sd=Yo("u"),hi=Yo("bum"),en=Yo("um"),Sw=Yo("sp"),Ew=Yo("rtg"),$w=Yo("rtc");function xw(e,t=Jt){wd("ec",e,t)}function Tw(e,t){const n=An;if(n===null)return e;const r=$d(n)||n.proxy,o=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[l,a,c,d=jt]=t[i];l&&(nt(l)&&(l={mounted:l,updated:l}),l.deep&&Gs(a),o.push({dir:l,instance:r,value:a,oldValue:void 0,arg:c,modifiers:d}))}return e}function wo(e,t,n,r){const o=e.dirs,i=t&&t.dirs;for(let l=0;l<o.length;l++){const a=o[l];i&&(a.oldValue=i[l].value);let c=a.dir[r];c&&(cl(),wr(c,n,8,[e.el,a,e,t]),dl())}}const Mm="components",ER="directives";function q(e,t){return Dm(Mm,e,!0,t)||e}const Cw=Symbol();function $R(e){return ln(e)?Dm(Mm,e,!1)||e:e||Cw}function xR(e){return Dm(ER,e)}function Dm(e,t,n=!0,r=!1){const o=An||Jt;if(o){const i=o.type;if(e===Mm){const a=xh(i,!1);if(a&&(a===t||a===io(t)||a===cd(io(t))))return i}const l=C_(o[e]||i[e],t)||C_(o.appContext[e],t);return!l&&r?i:l}}function C_(e,t){return e&&(e[t]||e[io(t)]||e[cd(io(t))])}function Ot(e,t,n,r){let o;const i=n&&n[r];if(Je(e)||ln(e)){o=new Array(e.length);for(let l=0,a=e.length;l<a;l++)o[l]=t(e[l],l,void 0,i&&i[l])}else if(typeof e=="number"){o=new Array(e);for(let l=0;l<e;l++)o[l]=t(l+1,l,void 0,i&&i[l])}else if(Kt(e))if(e[Symbol.iterator])o=Array.from(e,(l,a)=>t(l,a,void 0,i&&i[a]));else{const l=Object.keys(e);o=new Array(l.length);for(let a=0,c=l.length;a<c;a++){const d=l[a];o[a]=t(e[d],d,a,i&&i[a])}}else o=[];return n&&(n[r]=o),o}function Ow(e,t){for(let n=0;n<t.length;n++){const r=t[n];if(Je(r))for(let o=0;o<r.length;o++)e[r[o].name]=r[o].fn;else r&&(e[r.name]=r.key?(...o)=>{const i=r.fn(...o);return i&&(i.key=r.key),i}:r.fn)}return e}function yn(e,t,n={},r,o){if(An.isCE||An.parent&&ei(An.parent)&&An.parent.isCE)return t!=="default"&&(n.name=t),z("slot",n,r&&r());let i=e[t];i&&i._c&&(i._d=!1),I();const l=i&&Aw(i(n)),a=Ye(Me,{key:n.key||l&&l.key||`_${t}`},l||(r?r():[]),l&&e._===1?64:-2);return!o&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),i&&i._c&&(i._d=!0),a}function Aw(e){return e.some(t=>ws(t)?!(t.type===Un||t.type===Me&&!Aw(t.children)):!0)?e:null}function TR(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:Gl(r)]=e[r];return n}const gh=e=>e?Gw(e)?$d(e)||e.proxy:gh(e.parent):null,Yl=kn(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>gh(e.parent),$root:e=>gh(e.root),$emit:e=>e.emit,$options:e=>Um(e),$forceUpdate:e=>e.f||(e.f=()=>vd(e.update)),$nextTick:e=>e.n||(e.n=sn.bind(e.proxy)),$watch:e=>vR.bind(e)}),Rp=(e,t)=>e!==jt&&!e.__isScriptSetup&&Et(e,t),vh={get({_:e},t){const{ctx:n,setupState:r,data:o,props:i,accessCache:l,type:a,appContext:c}=e;let d;if(t[0]!=="$"){const y=l[t];if(y!==void 0)switch(y){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return i[t]}else{if(Rp(r,t))return l[t]=1,r[t];if(o!==jt&&Et(o,t))return l[t]=2,o[t];if((d=e.propsOptions[0])&&Et(d,t))return l[t]=3,i[t];if(n!==jt&&Et(n,t))return l[t]=4,n[t];yh&&(l[t]=0)}}const p=Yl[t];let h,v;if(p)return t==="$attrs"&&lr(e,"get",t),p(e);if((h=a.__cssModules)&&(h=h[t]))return h;if(n!==jt&&Et(n,t))return l[t]=4,n[t];if(v=c.config.globalProperties,Et(v,t))return v[t]},set({_:e},t,n){const{data:r,setupState:o,ctx:i}=e;return Rp(o,t)?(o[t]=n,!0):r!==jt&&Et(r,t)?(r[t]=n,!0):Et(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:i}},l){let a;return!!n[l]||e!==jt&&Et(e,l)||Rp(t,l)||(a=i[0])&&Et(a,l)||Et(r,l)||Et(Yl,l)||Et(o.config.globalProperties,l)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Et(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},CR=kn({},vh,{get(e,t){if(t!==Symbol.unscopables)return vh.get(e,t,e)},has(e,t){return t[0]!=="_"&&!XI(t)}});let yh=!0;function OR(e){const t=Um(e),n=e.proxy,r=e.ctx;yh=!1,t.beforeCreate&&O_(t.beforeCreate,e,"bc");const{data:o,computed:i,methods:l,watch:a,provide:c,inject:d,created:p,beforeMount:h,mounted:v,beforeUpdate:y,updated:b,activated:S,deactivated:T,beforeDestroy:C,beforeUnmount:w,destroyed:E,unmounted:O,render:$,renderTracked:P,renderTriggered:R,errorCaptured:k,serverPrefetch:W,expose:U,inheritAttrs:j,components:G,directives:X,filters:ne}=t;if(d&&AR(d,r,null,e.appContext.config.unwrapInjectedRef),l)for(const ke in l){const Ie=l[ke];nt(Ie)&&(r[ke]=Ie.bind(n))}if(o){const ke=o.call(n,n);Kt(ke)&&(e.data=Ts(ke))}if(yh=!0,i)for(const ke in i){const Ie=i[ke],Qe=nt(Ie)?Ie.bind(n,n):nt(Ie.get)?Ie.get.bind(n,n):Eo,ht=!nt(Ie)&&nt(Ie.set)?Ie.set.bind(n):Eo,De=fe({get:Qe,set:ht});Object.defineProperty(r,ke,{enumerable:!0,configurable:!0,get:()=>De.value,set:Xe=>De.value=Xe})}if(a)for(const ke in a)kw(a[ke],r,n,ke);if(c){const ke=nt(c)?c.call(n):c;Reflect.ownKeys(ke).forEach(Ie=>{Qt(Ie,ke[Ie])})}p&&O_(p,e,"c");function Ee(ke,Ie){Je(Ie)?Ie.forEach(Qe=>ke(Qe.bind(n))):Ie&&ke(Ie.bind(n))}if(Ee(bw,h),Ee(wt,v),Ee(ww,y),Ee(Sd,b),Ee(vw,S),Ee(yw,T),Ee(xw,k),Ee($w,P),Ee(Ew,R),Ee(hi,w),Ee(en,O),Ee(Sw,W),Je(U))if(U.length){const ke=e.exposed||(e.exposed={});U.forEach(Ie=>{Object.defineProperty(ke,Ie,{get:()=>n[Ie],set:Qe=>n[Ie]=Qe})})}else e.exposed||(e.exposed={});$&&e.render===Eo&&(e.render=$),j!=null&&(e.inheritAttrs=j),G&&(e.components=G),X&&(e.directives=X)}function AR(e,t,n=Eo,r=!1){Je(e)&&(e=_h(e));for(const o in e){const i=e[o];let l;Kt(i)?"default"in i?l=Ft(i.from||o,i.default,!0):l=Ft(i.from||o):l=Ft(i),pn(l)&&r?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>l.value,set:a=>l.value=a}):t[o]=l}}function O_(e,t,n){wr(Je(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function kw(e,t,n,r){const o=r.includes(".")?mw(n,r):()=>n[r];if(ln(e)){const i=t[e];nt(i)&&Ut(o,i)}else if(nt(e))Ut(o,e.bind(n));else if(Kt(e))if(Je(e))e.forEach(i=>kw(i,t,n,r));else{const i=nt(e.handler)?e.handler.bind(n):t[e.handler];nt(i)&&Ut(o,i,e)}}function Um(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:l}}=e.appContext,a=i.get(t);let c;return a?c=a:!o.length&&!n&&!r?c=t:(c={},o.length&&o.forEach(d=>Ic(c,d,l,!0)),Ic(c,t,l)),Kt(t)&&i.set(t,c),c}function Ic(e,t,n,r=!1){const{mixins:o,extends:i}=t;i&&Ic(e,i,n,!0),o&&o.forEach(l=>Ic(e,l,n,!0));for(const l in t)if(!(r&&l==="expose")){const a=kR[l]||n&&n[l];e[l]=a?a(e[l],t[l]):t[l]}return e}const kR={data:A_,props:zs,emits:zs,methods:zs,computed:zs,beforeCreate:qn,created:qn,beforeMount:qn,mounted:qn,beforeUpdate:qn,updated:qn,beforeDestroy:qn,beforeUnmount:qn,destroyed:qn,unmounted:qn,activated:qn,deactivated:qn,errorCaptured:qn,serverPrefetch:qn,components:zs,directives:zs,watch:PR,provide:A_,inject:IR};function A_(e,t){return t?e?function(){return kn(nt(e)?e.call(this,this):e,nt(t)?t.call(this,this):t)}:t:e}function IR(e,t){return zs(_h(e),_h(t))}function _h(e){if(Je(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function qn(e,t){return e?[...new Set([].concat(e,t))]:t}function zs(e,t){return e?kn(kn(Object.create(null),e),t):t}function PR(e,t){if(!e)return t;if(!t)return e;const n=kn(Object.create(null),e);for(const r in t)n[r]=qn(e[r],t[r]);return n}function RR(e,t,n,r=!1){const o={},i={};Oc(i,Ed,1),e.propsDefaults=Object.create(null),Iw(e,t,o,i);for(const l in e.propsOptions[0])l in o||(o[l]=void 0);n?e.props=r?o:rw(o):e.type.props?e.props=o:e.props=i,e.attrs=i}function LR(e,t,n,r){const{props:o,attrs:i,vnode:{patchFlag:l}}=e,a=He(o),[c]=e.propsOptions;let d=!1;if((r||l>0)&&!(l&16)){if(l&8){const p=e.vnode.dynamicProps;for(let h=0;h<p.length;h++){let v=p[h];if(yd(e.emitsOptions,v))continue;const y=t[v];if(c)if(Et(i,v))y!==i[v]&&(i[v]=y,d=!0);else{const b=io(v);o[b]=bh(c,a,b,y,e,!1)}else y!==i[v]&&(i[v]=y,d=!0)}}}else{Iw(e,t,o,i)&&(d=!0);let p;for(const h in a)(!t||!Et(t,h)&&((p=ud(h))===h||!Et(t,p)))&&(c?n&&(n[h]!==void 0||n[p]!==void 0)&&(o[h]=bh(c,a,h,void 0,e,!0)):delete o[h]);if(i!==a)for(const h in i)(!t||!Et(t,h))&&(delete i[h],d=!0)}d&&Ko(e,"set","$attrs")}function Iw(e,t,n,r){const[o,i]=e.propsOptions;let l=!1,a;if(t)for(let c in t){if(Kl(c))continue;const d=t[c];let p;o&&Et(o,p=io(c))?!i||!i.includes(p)?n[p]=d:(a||(a={}))[p]=d:yd(e.emitsOptions,c)||(!(c in r)||d!==r[c])&&(r[c]=d,l=!0)}if(i){const c=He(n),d=a||jt;for(let p=0;p<i.length;p++){const h=i[p];n[h]=bh(o,c,h,d[h],e,!Et(d,h))}}return l}function bh(e,t,n,r,o,i){const l=e[n];if(l!=null){const a=Et(l,"default");if(a&&r===void 0){const c=l.default;if(l.type!==Function&&nt(c)){const{propsDefaults:d}=o;n in d?r=d[n]:(Ss(o),r=d[n]=c.call(null,t),ys())}else r=c}l[0]&&(i&&!a?r=!1:l[1]&&(r===""||r===ud(n))&&(r=!0))}return r}function Pw(e,t,n=!1){const r=t.propsCache,o=r.get(e);if(o)return o;const i=e.props,l={},a=[];let c=!1;if(!nt(e)){const p=h=>{c=!0;const[v,y]=Pw(h,t,!0);kn(l,v),y&&a.push(...y)};!n&&t.mixins.length&&t.mixins.forEach(p),e.extends&&p(e.extends),e.mixins&&e.mixins.forEach(p)}if(!i&&!c)return Kt(e)&&r.set(e,Ui),Ui;if(Je(i))for(let p=0;p<i.length;p++){const h=io(i[p]);k_(h)&&(l[h]=jt)}else if(i)for(const p in i){const h=io(p);if(k_(h)){const v=i[p],y=l[h]=Je(v)||nt(v)?{type:v}:Object.assign({},v);if(y){const b=R_(Boolean,y.type),S=R_(String,y.type);y[0]=b>-1,y[1]=S<0||b<S,(b>-1||Et(y,"default"))&&a.push(h)}}}const d=[l,a];return Kt(e)&&r.set(e,d),d}function k_(e){return e[0]!=="$"}function I_(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function P_(e,t){return I_(e)===I_(t)}function R_(e,t){return Je(t)?t.findIndex(n=>P_(n,e)):nt(t)&&P_(t,e)?0:-1}const Rw=e=>e[0]==="_"||e==="$stable",Bm=e=>Je(e)?e.map(yr):[yr(e)],FR=(e,t,n)=>{if(t._n)return t;const r=_e((...o)=>Bm(t(...o)),n);return r._c=!1,r},Lw=(e,t,n)=>{const r=e._ctx;for(const o in e){if(Rw(o))continue;const i=e[o];if(nt(i))t[o]=FR(o,i,r);else if(i!=null){const l=Bm(i);t[o]=()=>l}}},Fw=(e,t)=>{const n=Bm(t);e.slots.default=()=>n},NR=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=He(t),Oc(t,"_",n)):Lw(t,e.slots={})}else e.slots={},t&&Fw(e,t);Oc(e.slots,Ed,1)},MR=(e,t,n)=>{const{vnode:r,slots:o}=e;let i=!0,l=jt;if(r.shapeFlag&32){const a=t._;a?n&&a===1?i=!1:(kn(o,t),!n&&a===1&&delete o._):(i=!t.$stable,Lw(t,o)),l=t}else t&&(Fw(e,t),l={default:1});if(i)for(const a in o)!Rw(a)&&!(a in l)&&delete o[a]};function Nw(){return{app:null,config:{isNativeTag:tP,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}}let DR=0;function UR(e,t){return function(r,o=null){nt(r)||(r=Object.assign({},r)),o!=null&&!Kt(o)&&(o=null);const i=Nw(),l=new Set;let a=!1;const c=i.app={_uid:DR++,_component:r,_props:o,_container:null,_context:i,_instance:null,version:o2,get config(){return i.config},set config(d){},use(d,...p){return l.has(d)||(d&&nt(d.install)?(l.add(d),d.install(c,...p)):nt(d)&&(l.add(d),d(c,...p))),c},mixin(d){return i.mixins.includes(d)||i.mixins.push(d),c},component(d,p){return p?(i.components[d]=p,c):i.components[d]},directive(d,p){return p?(i.directives[d]=p,c):i.directives[d]},mount(d,p,h){if(!a){const v=z(r,o);return v.appContext=i,p&&t?t(v,d):e(v,d,h),a=!0,c._container=d,d.__vue_app__=c,$d(v.component)||v.component.proxy}},unmount(){a&&(e(null,c._container),delete c._container.__vue_app__)},provide(d,p){return i.provides[d]=p,c}};return c}}function Pc(e,t,n,r,o=!1){if(Je(e)){e.forEach((v,y)=>Pc(v,t&&(Je(t)?t[y]:t),n,r,o));return}if(ei(r)&&!o)return;const i=r.shapeFlag&4?$d(r.component)||r.component.proxy:r.el,l=o?null:i,{i:a,r:c}=e,d=t&&t.r,p=a.refs===jt?a.refs={}:a.refs,h=a.setupState;if(d!=null&&d!==c&&(ln(d)?(p[d]=null,Et(h,d)&&(h[d]=null)):pn(d)&&(d.value=null)),nt(c))zo(c,a,12,[l,p]);else{const v=ln(c),y=pn(c);if(v||y){const b=()=>{if(e.f){const S=v?Et(h,c)?h[c]:p[c]:c.value;o?Je(S)&&vm(S,i):Je(S)?S.includes(i)||S.push(i):v?(p[c]=[i],Et(h,c)&&(h[c]=p[c])):(c.value=[i],e.k&&(p[e.k]=c.value))}else v?(p[c]=l,Et(h,c)&&(h[c]=l)):y&&(c.value=l,e.k&&(p[e.k]=l))};l?(b.id=-1,Cn(b,n)):b()}}}let as=!1;const Zu=e=>/svg/.test(e.namespaceURI)&&e.tagName!=="foreignObject",Qu=e=>e.nodeType===8;function BR(e){const{mt:t,p:n,o:{patchProp:r,createText:o,nextSibling:i,parentNode:l,remove:a,insert:c,createComment:d}}=e,p=(C,w)=>{if(!w.hasChildNodes()){n(null,C,w),kc(),w._vnode=C;return}as=!1,h(w.firstChild,C,null,null,null),kc(),w._vnode=C,as&&console.error("Hydration completed but contains mismatches.")},h=(C,w,E,O,$,P=!1)=>{const R=Qu(C)&&C.data==="[",k=()=>S(C,w,E,O,$,R),{type:W,ref:U,shapeFlag:j,patchFlag:G}=w;let X=C.nodeType;w.el=C,G===-2&&(P=!1,w.dynamicChildren=null);let ne=null;switch(W){case ui:X!==3?w.children===""?(c(w.el=o(""),l(C),C),ne=C):ne=k():(C.data!==w.children&&(as=!0,C.data=w.children),ne=i(C));break;case Un:X!==8||R?ne=k():ne=i(C);break;case ti:if(R&&(C=i(C),X=C.nodeType),X===1||X===3){ne=C;const xe=!w.children.length;for(let Ee=0;Ee<w.staticCount;Ee++)xe&&(w.children+=ne.nodeType===1?ne.outerHTML:ne.data),Ee===w.staticCount-1&&(w.anchor=ne),ne=i(ne);return R?i(ne):ne}else k();break;case Me:R?ne=b(C,w,E,O,$,P):ne=k();break;default:if(j&1)X!==1||w.type.toLowerCase()!==C.tagName.toLowerCase()?ne=k():ne=v(C,w,E,O,$,P);else if(j&6){w.slotScopeIds=$;const xe=l(C);if(t(w,xe,null,E,O,Zu(xe),P),ne=R?T(C):i(C),ne&&Qu(ne)&&ne.data==="teleport end"&&(ne=i(ne)),ei(w)){let Ee;R?(Ee=z(Me),Ee.anchor=ne?ne.previousSibling:xe.lastChild):Ee=C.nodeType===3?Be(""):z("div"),Ee.el=C,w.component.subTree=Ee}}else j&64?X!==8?ne=k():ne=w.type.hydrate(C,w,E,O,$,P,e,y):j&128&&(ne=w.type.hydrate(C,w,E,O,Zu(l(C)),$,P,e,h))}return U!=null&&Pc(U,null,O,w),ne},v=(C,w,E,O,$,P)=>{P=P||!!w.dynamicChildren;const{type:R,props:k,patchFlag:W,shapeFlag:U,dirs:j}=w,G=R==="input"&&j||R==="option";if(G||W!==-1){if(j&&wo(w,null,E,"created"),k)if(G||!P||W&48)for(const ne in k)(G&&ne.endsWith("value")||ld(ne)&&!Kl(ne))&&r(C,ne,null,k[ne],!1,void 0,E);else k.onClick&&r(C,"onClick",null,k.onClick,!1,void 0,E);let X;if((X=k&&k.onVnodeBeforeMount)&&er(X,E,w),j&&wo(w,null,E,"beforeMount"),((X=k&&k.onVnodeMounted)||j)&&pw(()=>{X&&er(X,E,w),j&&wo(w,null,E,"mounted")},O),U&16&&!(k&&(k.innerHTML||k.textContent))){let ne=y(C.firstChild,w,C,E,O,$,P);for(;ne;){as=!0;const xe=ne;ne=ne.nextSibling,a(xe)}}else U&8&&C.textContent!==w.children&&(as=!0,C.textContent=w.children)}return C.nextSibling},y=(C,w,E,O,$,P,R)=>{R=R||!!w.dynamicChildren;const k=w.children,W=k.length;for(let U=0;U<W;U++){const j=R?k[U]:k[U]=yr(k[U]);if(C)C=h(C,j,O,$,P,R);else{if(j.type===ui&&!j.children)continue;as=!0,n(null,j,E,null,O,$,Zu(E),P)}}return C},b=(C,w,E,O,$,P)=>{const{slotScopeIds:R}=w;R&&($=$?$.concat(R):R);const k=l(C),W=y(i(C),w,k,E,O,$,P);return W&&Qu(W)&&W.data==="]"?i(w.anchor=W):(as=!0,c(w.anchor=d("]"),k,W),W)},S=(C,w,E,O,$,P)=>{if(as=!0,w.el=null,P){const W=T(C);for(;;){const U=i(C);if(U&&U!==W)a(U);else break}}const R=i(C),k=l(C);return a(C),n(null,w,k,R,E,O,Zu(k),$),R},T=C=>{let w=0;for(;C;)if(C=i(C),C&&Qu(C)&&(C.data==="["&&w++,C.data==="]")){if(w===0)return i(C);w--}return C};return[p,h]}const Cn=pw;function Mw(e){return Uw(e)}function Dw(e){return Uw(e,BR)}function Uw(e,t){const n=cP();n.__VUE__=!0;const{insert:r,remove:o,patchProp:i,createElement:l,createText:a,createComment:c,setText:d,setElementText:p,parentNode:h,nextSibling:v,setScopeId:y=Eo,insertStaticContent:b}=e,S=(M,V,Z,ue=null,le=null,ye=null,Oe=!1,we=null,Se=!!V.dynamicChildren)=>{if(M===V)return;M&&!eo(M,V)&&(ue=We(M),Xe(M,le,ye,!0),M=null),V.patchFlag===-2&&(Se=!1,V.dynamicChildren=null);const{type:ae,ref:Fe,shapeFlag:Pe}=V;switch(ae){case ui:T(M,V,Z,ue);break;case Un:C(M,V,Z,ue);break;case ti:M==null&&w(V,Z,ue,Oe);break;case Me:G(M,V,Z,ue,le,ye,Oe,we,Se);break;default:Pe&1?$(M,V,Z,ue,le,ye,Oe,we,Se):Pe&6?X(M,V,Z,ue,le,ye,Oe,we,Se):(Pe&64||Pe&128)&&ae.process(M,V,Z,ue,le,ye,Oe,we,Se,rt)}Fe!=null&&le&&Pc(Fe,M&&M.ref,ye,V||M,!V)},T=(M,V,Z,ue)=>{if(M==null)r(V.el=a(V.children),Z,ue);else{const le=V.el=M.el;V.children!==M.children&&d(le,V.children)}},C=(M,V,Z,ue)=>{M==null?r(V.el=c(V.children||""),Z,ue):V.el=M.el},w=(M,V,Z,ue)=>{[M.el,M.anchor]=b(M.children,V,Z,ue,M.el,M.anchor)},E=({el:M,anchor:V},Z,ue)=>{let le;for(;M&&M!==V;)le=v(M),r(M,Z,ue),M=le;r(V,Z,ue)},O=({el:M,anchor:V})=>{let Z;for(;M&&M!==V;)Z=v(M),o(M),M=Z;o(V)},$=(M,V,Z,ue,le,ye,Oe,we,Se)=>{Oe=Oe||V.type==="svg",M==null?P(V,Z,ue,le,ye,Oe,we,Se):W(M,V,le,ye,Oe,we,Se)},P=(M,V,Z,ue,le,ye,Oe,we)=>{let Se,ae;const{type:Fe,props:Pe,shapeFlag:je,transition:ze,dirs:st}=M;if(Se=M.el=l(M.type,ye,Pe&&Pe.is,Pe),je&8?p(Se,M.children):je&16&&k(M.children,Se,null,ue,le,ye&&Fe!=="foreignObject",Oe,we),st&&wo(M,null,ue,"created"),R(Se,M,M.scopeId,Oe,ue),Pe){for(const ft in Pe)ft!=="value"&&!Kl(ft)&&i(Se,ft,null,Pe[ft],ye,M.children,ue,le,Ce);"value"in Pe&&i(Se,"value",null,Pe.value),(ae=Pe.onVnodeBeforeMount)&&er(ae,ue,M)}st&&wo(M,null,ue,"beforeMount");const yt=(!le||le&&!le.pendingBranch)&&ze&&!ze.persisted;yt&&ze.beforeEnter(Se),r(Se,V,Z),((ae=Pe&&Pe.onVnodeMounted)||yt||st)&&Cn(()=>{ae&&er(ae,ue,M),yt&&ze.enter(Se),st&&wo(M,null,ue,"mounted")},le)},R=(M,V,Z,ue,le)=>{if(Z&&y(M,Z),ue)for(let ye=0;ye<ue.length;ye++)y(M,ue[ye]);if(le){let ye=le.subTree;if(V===ye){const Oe=le.vnode;R(M,Oe,Oe.scopeId,Oe.slotScopeIds,le.parent)}}},k=(M,V,Z,ue,le,ye,Oe,we,Se=0)=>{for(let ae=Se;ae<M.length;ae++){const Fe=M[ae]=we?ps(M[ae]):yr(M[ae]);S(null,Fe,V,Z,ue,le,ye,Oe,we)}},W=(M,V,Z,ue,le,ye,Oe)=>{const we=V.el=M.el;let{patchFlag:Se,dynamicChildren:ae,dirs:Fe}=V;Se|=M.patchFlag&16;const Pe=M.props||jt,je=V.props||jt;let ze;Z&&Bs(Z,!1),(ze=je.onVnodeBeforeUpdate)&&er(ze,Z,V,M),Fe&&wo(V,M,Z,"beforeUpdate"),Z&&Bs(Z,!0);const st=le&&V.type!=="foreignObject";if(ae?U(M.dynamicChildren,ae,we,Z,ue,st,ye):Oe||Ie(M,V,we,null,Z,ue,st,ye,!1),Se>0){if(Se&16)j(we,V,Pe,je,Z,ue,le);else if(Se&2&&Pe.class!==je.class&&i(we,"class",null,je.class,le),Se&4&&i(we,"style",Pe.style,je.style,le),Se&8){const yt=V.dynamicProps;for(let ft=0;ft<yt.length;ft++){const Ht=yt[ft],Vn=Pe[Ht],go=je[Ht];(go!==Vn||Ht==="value")&&i(we,Ht,Vn,go,le,M.children,Z,ue,Ce)}}Se&1&&M.children!==V.children&&p(we,V.children)}else!Oe&&ae==null&&j(we,V,Pe,je,Z,ue,le);((ze=je.onVnodeUpdated)||Fe)&&Cn(()=>{ze&&er(ze,Z,V,M),Fe&&wo(V,M,Z,"updated")},ue)},U=(M,V,Z,ue,le,ye,Oe)=>{for(let we=0;we<V.length;we++){const Se=M[we],ae=V[we],Fe=Se.el&&(Se.type===Me||!eo(Se,ae)||Se.shapeFlag&70)?h(Se.el):Z;S(Se,ae,Fe,null,ue,le,ye,Oe,!0)}},j=(M,V,Z,ue,le,ye,Oe)=>{if(Z!==ue){if(Z!==jt)for(const we in Z)!Kl(we)&&!(we in ue)&&i(M,we,Z[we],null,Oe,V.children,le,ye,Ce);for(const we in ue){if(Kl(we))continue;const Se=ue[we],ae=Z[we];Se!==ae&&we!=="value"&&i(M,we,ae,Se,Oe,V.children,le,ye,Ce)}"value"in ue&&i(M,"value",Z.value,ue.value)}},G=(M,V,Z,ue,le,ye,Oe,we,Se)=>{const ae=V.el=M?M.el:a(""),Fe=V.anchor=M?M.anchor:a("");let{patchFlag:Pe,dynamicChildren:je,slotScopeIds:ze}=V;ze&&(we=we?we.concat(ze):ze),M==null?(r(ae,Z,ue),r(Fe,Z,ue),k(V.children,Z,Fe,le,ye,Oe,we,Se)):Pe>0&&Pe&64&&je&&M.dynamicChildren?(U(M.dynamicChildren,je,Z,le,ye,Oe,we),(V.key!=null||le&&V===le.subTree)&&jm(M,V,!0)):Ie(M,V,Z,Fe,le,ye,Oe,we,Se)},X=(M,V,Z,ue,le,ye,Oe,we,Se)=>{V.slotScopeIds=we,M==null?V.shapeFlag&512?le.ctx.activate(V,Z,ue,Oe,Se):ne(V,Z,ue,le,ye,Oe,Se):xe(M,V,Se)},ne=(M,V,Z,ue,le,ye,Oe)=>{const we=M.component=Kw(M,ue,le);if(Na(M)&&(we.ctx.renderer=rt),Xw(we),we.asyncDep){if(le&&le.registerDep(we,Ee),!M.el){const Se=we.subTree=z(Un);C(null,Se,V,Z)}return}Ee(we,M,V,Z,le,ye,Oe)},xe=(M,V,Z)=>{const ue=V.component=M.component;if(uR(M,V,Z))if(ue.asyncDep&&!ue.asyncResolved){ke(ue,V,Z);return}else ue.next=V,eR(ue.update),ue.update();else V.el=M.el,ue.vnode=V},Ee=(M,V,Z,ue,le,ye,Oe)=>{const we=()=>{if(M.isMounted){let{next:Fe,bu:Pe,u:je,parent:ze,vnode:st}=M,yt=Fe,ft;Bs(M,!1),Fe?(Fe.el=st.el,ke(M,Fe,Oe)):Fe=st,Pe&&Xl(Pe),(ft=Fe.props&&Fe.props.onVnodeBeforeUpdate)&&er(ft,ze,Fe,st),Bs(M,!0);const Ht=mc(M),Vn=M.subTree;M.subTree=Ht,S(Vn,Ht,h(Vn.el),We(Vn),M,le,ye),Fe.el=Ht.el,yt===null&&Rm(M,Ht.el),je&&Cn(je,le),(ft=Fe.props&&Fe.props.onVnodeUpdated)&&Cn(()=>er(ft,ze,Fe,st),le)}else{let Fe;const{el:Pe,props:je}=V,{bm:ze,m:st,parent:yt}=M,ft=ei(V);if(Bs(M,!1),ze&&Xl(ze),!ft&&(Fe=je&&je.onVnodeBeforeMount)&&er(Fe,yt,V),Bs(M,!0),Pe&&an){const Ht=()=>{M.subTree=mc(M),an(Pe,M.subTree,M,le,null)};ft?V.type.__asyncLoader().then(()=>!M.isUnmounted&&Ht()):Ht()}else{const Ht=M.subTree=mc(M);S(null,Ht,Z,ue,M,le,ye),V.el=Ht.el}if(st&&Cn(st,le),!ft&&(Fe=je&&je.onVnodeMounted)){const Ht=V;Cn(()=>er(Fe,yt,Ht),le)}(V.shapeFlag&256||yt&&ei(yt.vnode)&&yt.vnode.shapeFlag&256)&&M.a&&Cn(M.a,le),M.isMounted=!0,V=Z=ue=null}},Se=M.effect=new La(we,()=>vd(ae),M.scope),ae=M.update=()=>Se.run();ae.id=M.uid,Bs(M,!0),ae()},ke=(M,V,Z)=>{V.component=M;const ue=M.vnode.props;M.vnode=V,M.next=null,LR(M,V.props,ue,Z),MR(M,V.children,Z),cl(),E_(),dl()},Ie=(M,V,Z,ue,le,ye,Oe,we,Se=!1)=>{const ae=M&&M.children,Fe=M?M.shapeFlag:0,Pe=V.children,{patchFlag:je,shapeFlag:ze}=V;if(je>0){if(je&128){ht(ae,Pe,Z,ue,le,ye,Oe,we,Se);return}else if(je&256){Qe(ae,Pe,Z,ue,le,ye,Oe,we,Se);return}}ze&8?(Fe&16&&Ce(ae,le,ye),Pe!==ae&&p(Z,Pe)):Fe&16?ze&16?ht(ae,Pe,Z,ue,le,ye,Oe,we,Se):Ce(ae,le,ye,!0):(Fe&8&&p(Z,""),ze&16&&k(Pe,Z,ue,le,ye,Oe,we,Se))},Qe=(M,V,Z,ue,le,ye,Oe,we,Se)=>{M=M||Ui,V=V||Ui;const ae=M.length,Fe=V.length,Pe=Math.min(ae,Fe);let je;for(je=0;je<Pe;je++){const ze=V[je]=Se?ps(V[je]):yr(V[je]);S(M[je],ze,Z,null,le,ye,Oe,we,Se)}ae>Fe?Ce(M,le,ye,!0,!1,Pe):k(V,Z,ue,le,ye,Oe,we,Se,Pe)},ht=(M,V,Z,ue,le,ye,Oe,we,Se)=>{let ae=0;const Fe=V.length;let Pe=M.length-1,je=Fe-1;for(;ae<=Pe&&ae<=je;){const ze=M[ae],st=V[ae]=Se?ps(V[ae]):yr(V[ae]);if(eo(ze,st))S(ze,st,Z,null,le,ye,Oe,we,Se);else break;ae++}for(;ae<=Pe&&ae<=je;){const ze=M[Pe],st=V[je]=Se?ps(V[je]):yr(V[je]);if(eo(ze,st))S(ze,st,Z,null,le,ye,Oe,we,Se);else break;Pe--,je--}if(ae>Pe){if(ae<=je){const ze=je+1,st=ze<Fe?V[ze].el:ue;for(;ae<=je;)S(null,V[ae]=Se?ps(V[ae]):yr(V[ae]),Z,st,le,ye,Oe,we,Se),ae++}}else if(ae>je)for(;ae<=Pe;)Xe(M[ae],le,ye,!0),ae++;else{const ze=ae,st=ae,yt=new Map;for(ae=st;ae<=je;ae++){const Sn=V[ae]=Se?ps(V[ae]):yr(V[ae]);Sn.key!=null&&yt.set(Sn.key,ae)}let ft,Ht=0;const Vn=je-st+1;let go=!1,_i=0;const Ao=new Array(Vn);for(ae=0;ae<Vn;ae++)Ao[ae]=0;for(ae=ze;ae<=Pe;ae++){const Sn=M[ae];if(Ht>=Vn){Xe(Sn,le,ye,!0);continue}let Xn;if(Sn.key!=null)Xn=yt.get(Sn.key);else for(ft=st;ft<=je;ft++)if(Ao[ft-st]===0&&eo(Sn,V[ft])){Xn=ft;break}Xn===void 0?Xe(Sn,le,ye,!0):(Ao[Xn-st]=ae+1,Xn>=_i?_i=Xn:go=!0,S(Sn,V[Xn],Z,null,le,ye,Oe,we,Se),Ht++)}const bi=go?jR(Ao):Ui;for(ft=bi.length-1,ae=Vn-1;ae>=0;ae--){const Sn=st+ae,Xn=V[Sn],wi=Sn+1<Fe?V[Sn+1].el:ue;Ao[ae]===0?S(null,Xn,Z,wi,le,ye,Oe,we,Se):go&&(ft<0||ae!==bi[ft]?De(Xn,Z,wi,2):ft--)}}},De=(M,V,Z,ue,le=null)=>{const{el:ye,type:Oe,transition:we,children:Se,shapeFlag:ae}=M;if(ae&6){De(M.component.subTree,V,Z,ue);return}if(ae&128){M.suspense.move(V,Z,ue);return}if(ae&64){Oe.move(M,V,Z,rt);return}if(Oe===Me){r(ye,V,Z);for(let Pe=0;Pe<Se.length;Pe++)De(Se[Pe],V,Z,ue);r(M.anchor,V,Z);return}if(Oe===ti){E(M,V,Z);return}if(ue!==2&&ae&1&&we)if(ue===0)we.beforeEnter(ye),r(ye,V,Z),Cn(()=>we.enter(ye),le);else{const{leave:Pe,delayLeave:je,afterLeave:ze}=we,st=()=>r(ye,V,Z),yt=()=>{Pe(ye,()=>{st(),ze&&ze()})};je?je(ye,st,yt):yt()}else r(ye,V,Z)},Xe=(M,V,Z,ue=!1,le=!1)=>{const{type:ye,props:Oe,ref:we,children:Se,dynamicChildren:ae,shapeFlag:Fe,patchFlag:Pe,dirs:je}=M;if(we!=null&&Pc(we,null,Z,M,!0),Fe&256){V.ctx.deactivate(M);return}const ze=Fe&1&&je,st=!ei(M);let yt;if(st&&(yt=Oe&&Oe.onVnodeBeforeUnmount)&&er(yt,V,M),Fe&6)ve(M.component,Z,ue);else{if(Fe&128){M.suspense.unmount(Z,ue);return}ze&&wo(M,null,V,"beforeUnmount"),Fe&64?M.type.remove(M,V,Z,le,rt,ue):ae&&(ye!==Me||Pe>0&&Pe&64)?Ce(ae,V,Z,!1,!0):(ye===Me&&Pe&384||!le&&Fe&16)&&Ce(Se,V,Z),ue&&Q(M)}(st&&(yt=Oe&&Oe.onVnodeUnmounted)||ze)&&Cn(()=>{yt&&er(yt,V,M),ze&&wo(M,null,V,"unmounted")},Z)},Q=M=>{const{type:V,el:Z,anchor:ue,transition:le}=M;if(V===Me){ce(Z,ue);return}if(V===ti){O(M);return}const ye=()=>{o(Z),le&&!le.persisted&&le.afterLeave&&le.afterLeave()};if(M.shapeFlag&1&&le&&!le.persisted){const{leave:Oe,delayLeave:we}=le,Se=()=>Oe(Z,ye);we?we(M.el,ye,Se):Se()}else ye()},ce=(M,V)=>{let Z;for(;M!==V;)Z=v(M),o(M),M=Z;o(V)},ve=(M,V,Z)=>{const{bum:ue,scope:le,update:ye,subTree:Oe,um:we}=M;ue&&Xl(ue),le.stop(),ye&&(ye.active=!1,Xe(Oe,M,V,Z)),we&&Cn(we,V),Cn(()=>{M.isUnmounted=!0},V),V&&V.pendingBranch&&!V.isUnmounted&&M.asyncDep&&!M.asyncResolved&&M.suspenseId===V.pendingId&&(V.deps--,V.deps===0&&V.resolve())},Ce=(M,V,Z,ue=!1,le=!1,ye=0)=>{for(let Oe=ye;Oe<M.length;Oe++)Xe(M[Oe],V,Z,ue,le)},We=M=>M.shapeFlag&6?We(M.component.subTree):M.shapeFlag&128?M.suspense.next():v(M.anchor||M.el),Ve=(M,V,Z)=>{M==null?V._vnode&&Xe(V._vnode,null,null,!0):S(V._vnode||null,M,V,null,null,null,Z),E_(),kc(),V._vnode=M},rt={p:S,um:Xe,m:De,r:Q,mt:ne,mc:k,pc:Ie,pbc:U,n:We,o:e};let wn,an;return t&&([wn,an]=t(rt)),{render:Ve,hydrate:wn,createApp:UR(Ve,wn)}}function Bs({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function jm(e,t,n=!1){const r=e.children,o=t.children;if(Je(r)&&Je(o))for(let i=0;i<r.length;i++){const l=r[i];let a=o[i];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=o[i]=ps(o[i]),a.el=l.el),n||jm(l,a)),a.type===ui&&(a.el=l.el)}}function jR(e){const t=e.slice(),n=[0];let r,o,i,l,a;const c=e.length;for(r=0;r<c;r++){const d=e[r];if(d!==0){if(o=n[n.length-1],e[o]<d){t[r]=o,n.push(r);continue}for(i=0,l=n.length-1;i<l;)a=i+l>>1,e[n[a]]<d?i=a+1:l=a;d<e[n[i]]&&(i>0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,l=n[i-1];i-- >0;)n[i]=l,l=t[l];return n}const VR=e=>e.__isTeleport,Jl=e=>e&&(e.disabled||e.disabled===""),L_=e=>typeof SVGElement<"u"&&e instanceof SVGElement,wh=(e,t)=>{const n=e&&e.to;return ln(n)?t?t(n):null:n},HR={__isTeleport:!0,process(e,t,n,r,o,i,l,a,c,d){const{mc:p,pc:h,pbc:v,o:{insert:y,querySelector:b,createText:S,createComment:T}}=d,C=Jl(t.props);let{shapeFlag:w,children:E,dynamicChildren:O}=t;if(e==null){const $=t.el=S(""),P=t.anchor=S("");y($,n,r),y(P,n,r);const R=t.target=wh(t.props,b),k=t.targetAnchor=S("");R&&(y(k,R),l=l||L_(R));const W=(U,j)=>{w&16&&p(E,U,j,o,i,l,a,c)};C?W(n,P):R&&W(R,k)}else{t.el=e.el;const $=t.anchor=e.anchor,P=t.target=e.target,R=t.targetAnchor=e.targetAnchor,k=Jl(e.props),W=k?n:P,U=k?$:R;if(l=l||L_(P),O?(v(e.dynamicChildren,O,W,o,i,l,a),jm(e,t,!0)):c||h(e,t,W,U,o,i,l,a,!1),C)k||ec(t,n,$,d,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const j=t.target=wh(t.props,b);j&&ec(t,j,null,d,0)}else k&&ec(t,P,R,d,1)}jw(t)},remove(e,t,n,r,{um:o,o:{remove:i}},l){const{shapeFlag:a,children:c,anchor:d,targetAnchor:p,target:h,props:v}=e;if(h&&i(p),(l||!Jl(v))&&(i(d),a&16))for(let y=0;y<c.length;y++){const b=c[y];o(b,t,n,!0,!!b.dynamicChildren)}},move:ec,hydrate:zR};function ec(e,t,n,{o:{insert:r},m:o},i=2){i===0&&r(e.targetAnchor,t,n);const{el:l,anchor:a,shapeFlag:c,children:d,props:p}=e,h=i===2;if(h&&r(l,t,n),(!h||Jl(p))&&c&16)for(let v=0;v<d.length;v++)o(d[v],t,n,2);h&&r(a,t,n)}function zR(e,t,n,r,o,i,{o:{nextSibling:l,parentNode:a,querySelector:c}},d){const p=t.target=wh(t.props,c);if(p){const h=p._lpa||p.firstChild;if(t.shapeFlag&16)if(Jl(t.props))t.anchor=d(l(e),t,a(e),n,r,o,i),t.targetAnchor=h;else{t.anchor=l(e);let v=h;for(;v;)if(v=l(v),v&&v.nodeType===8&&v.data==="teleport anchor"){t.targetAnchor=v,p._lpa=t.targetAnchor&&l(t.targetAnchor);break}d(h,t,p,n,r,o,i)}jw(t)}return t.anchor&&l(t.anchor)}const Bw=HR;function jw(e){const t=e.ctx;if(t&&t.ut){let n=e.children[0].el;for(;n!==e.targetAnchor;)n.nodeType===1&&n.setAttribute("data-v-owner",t.uid),n=n.nextSibling;t.ut()}}const Me=Symbol(void 0),ui=Symbol(void 0),Un=Symbol(void 0),ti=Symbol(void 0),Zl=[];let tr=null;function I(e=!1){Zl.push(tr=e?null:[])}function Vw(){Zl.pop(),tr=Zl[Zl.length-1]||null}let ci=1;function Sh(e){ci+=e}function Hw(e){return e.dynamicChildren=ci>0?tr||Ui:null,Vw(),ci>0&&tr&&tr.push(e),e}function F(e,t,n,r,o,i){return Hw(m(e,t,n,r,o,i,!0))}function Ye(e,t,n,r,o){return Hw(z(e,t,n,r,o,!0))}function ws(e){return e?e.__v_isVNode===!0:!1}function eo(e,t){return e.type===t.type&&e.key===t.key}function WR(e){}const Ed="__vInternal",zw=({key:e})=>e??null,gc=({ref:e,ref_key:t,ref_for:n})=>e!=null?ln(e)||pn(e)||nt(e)?{i:An,r:e,k:t,f:!!n}:e:null;function m(e,t=null,n=null,r=0,o=null,i=e===Me?0:1,l=!1,a=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&zw(t),ref:t&&gc(t),scopeId:_d,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:An};return a?(Vm(c,n),i&128&&e.normalize(c)):n&&(c.shapeFlag|=ln(n)?8:16),ci>0&&!l&&tr&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&&tr.push(c),c}const z=qR;function qR(e,t=null,n=null,r=0,o=null,i=!1){if((!e||e===Cw)&&(e=Un),ws(e)){const a=Vr(e,t,!0);return n&&Vm(a,n),ci>0&&!i&&tr&&(a.shapeFlag&6?tr[tr.indexOf(e)]=a:tr.push(a)),a.patchFlag|=-2,a}if(QR(e)&&(e=e.__vccOpts),t){t=Ww(t);let{class:a,style:c}=t;a&&!ln(a)&&(t.class=gt(a)),Kt(c)&&(xm(c)&&!Je(c)&&(c=kn({},c)),t.style=so(c))}const l=ln(e)?1:fw(e)?128:VR(e)?64:Kt(e)?4:nt(e)?2:0;return m(e,t,n,r,o,l,i,!0)}function Ww(e){return e?xm(e)||Ed in e?kn({},e):e:null}function Vr(e,t,n=!1){const{props:r,ref:o,patchFlag:i,children:l}=e,a=t?qw(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&zw(a),ref:t&&t.ref?n&&o?Je(o)?o.concat(gc(t)):[o,gc(t)]:gc(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Me?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Vr(e.ssContent),ssFallback:e.ssFallback&&Vr(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Be(e=" ",t=0){return z(ui,null,e,t)}function KR(e,t){const n=z(ti,null,e);return n.staticCount=t,n}function Te(e="",t=!1){return t?(I(),Ye(Un,null,e)):z(Un,null,e)}function yr(e){return e==null||typeof e=="boolean"?z(Un):Je(e)?z(Me,null,e.slice()):typeof e=="object"?ps(e):z(ui,null,String(e))}function ps(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Vr(e)}function Vm(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Je(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),Vm(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(Ed in t)?t._ctx=An:o===3&&An&&(An.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else nt(t)?(t={default:t,_ctx:An},n=32):(t=String(t),r&64?(n=16,t=[Be(t)]):n=8);e.children=t,e.shapeFlag|=n}function qw(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const o in r)if(o==="class")t.class!==r.class&&(t.class=gt([t.class,r.class]));else if(o==="style")t.style=so([t.style,r.style]);else if(ld(o)){const i=t[o],l=r[o];l&&i!==l&&!(Je(i)&&i.includes(l))&&(t[o]=i?[].concat(i,l):l)}else o!==""&&(t[o]=r[o])}return t}function er(e,t,n,r=null){wr(e,t,7,[n,r])}const GR=Nw();let XR=0;function Kw(e,t,n){const r=e.type,o=(t?t.appContext:e.appContext)||GR,i={uid:XR++,vnode:e,type:r,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,scope:new wm(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Pw(r,o),emitsOptions:dw(r,o),emit:null,emitted:null,propsDefaults:jt,inheritAttrs:r.inheritAttrs,ctx:jt,data:jt,props:jt,attrs:jt,slots:jt,refs:jt,setupState:jt,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 i.ctx={_:i},i.root=t?t.root:i,i.emit=nR.bind(null,i),e.ce&&e.ce(i),i}let Jt=null;const Jo=()=>Jt||An,Ss=e=>{Jt=e,e.scope.on()},ys=()=>{Jt&&Jt.scope.off(),Jt=null};function Gw(e){return e.vnode.shapeFlag&4}let Gi=!1;function Xw(e,t=!1){Gi=t;const{props:n,children:r}=e.vnode,o=Gw(e);RR(e,n,o,t),NR(e,r);const i=o?YR(e,t):void 0;return Gi=!1,i}function YR(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Tm(new Proxy(e.ctx,vh));const{setup:r}=n;if(r){const o=e.setupContext=r.length>1?Zw(e):null;Ss(e),cl();const i=zo(r,e,0,[e.props,o]);if(dl(),ys(),_m(i)){if(i.then(ys,ys),t)return i.then(l=>{Eh(e,l,t)}).catch(l=>{pi(l,e,0)});e.asyncDep=i}else Eh(e,i,t)}else Jw(e,t)}function Eh(e,t,n){nt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Kt(t)&&(e.setupState=Am(t)),Jw(e,n)}let Rc,$h;function Yw(e){Rc=e,$h=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,CR))}}const JR=()=>!Rc;function Jw(e,t,n){const r=e.type;if(!e.render){if(!t&&Rc&&!r.render){const o=r.template||Um(e).template;if(o){const{isCustomElement:i,compilerOptions:l}=e.appContext.config,{delimiters:a,compilerOptions:c}=r,d=kn(kn({isCustomElement:i,delimiters:a},l),c);r.render=Rc(o,d)}}e.render=r.render||Eo,$h&&$h(e)}Ss(e),cl(),OR(e),dl(),ys()}function ZR(e){return new Proxy(e.attrs,{get(t,n){return lr(e,"get","$attrs"),t[n]}})}function Zw(e){const t=r=>{e.exposed=r||{}};let n;return{get attrs(){return n||(n=ZR(e))},slots:e.slots,emit:e.emit,expose:t}}function $d(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Am(Tm(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Yl)return Yl[n](e)},has(t,n){return n in t||n in Yl}}))}function xh(e,t=!0){return nt(e)?e.displayName||e.name:e.name||t&&e.__name}function QR(e){return nt(e)&&"__vccOpts"in e}const fe=(e,t)=>XP(e,t,Gi);function eL(){return null}function tL(){return null}function nL(e){}function rL(e,t){return null}function Qw(){return e2().slots}function oL(){return e2().attrs}function e2(){const e=Jo();return e.setupContext||(e.setupContext=Zw(e))}function sL(e,t){const n=Je(e)?e.reduce((r,o)=>(r[o]={},r),{}):e;for(const r in t){const o=n[r];o?Je(o)||nt(o)?n[r]={type:o,default:t[r]}:o.default=t[r]:o===null&&(n[r]={default:t[r]})}return n}function iL(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function lL(e){const t=Jo();let n=e();return ys(),_m(n)&&(n=n.catch(r=>{throw Ss(t),r})),[n,()=>Ss(t)]}function pt(e,t,n){const r=arguments.length;return r===2?Kt(t)&&!Je(t)?ws(t)?z(e,null,[t]):z(e,t):z(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&ws(n)&&(n=[n]),z(e,t,n))}const t2=Symbol(""),n2=()=>Ft(t2);function aL(){}function uL(e,t,n,r){const o=n[r];if(o&&r2(o,e))return o;const i=t();return i.memo=e.slice(),n[r]=i}function r2(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r<n.length;r++)if(qi(n[r],t[r]))return!1;return ci>0&&tr&&tr.push(e),!0}const o2="3.2.47",cL={createComponentInstance:Kw,setupComponent:Xw,renderComponentRoot:mc,setCurrentRenderingInstance:ha,isVNode:ws,normalizeVNode:yr},dL=cL,fL=null,pL=null;function hL(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o<r.length;o++)n[r[o]]=!0;return o=>!!n[o]}const mL="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",gL=hL(mL);function s2(e){return!!e||e===""}function vL(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Es(e[r],t[r]);return n}function Es(e,t){if(e===t)return!0;let n=F_(e),r=F_(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=N_(e),r=N_(t),n||r)return e===t;if(n=ar(e),r=ar(t),n||r)return n&&r?vL(e,t):!1;if(n=Th(e),r=Th(t),n||r){if(!n||!r)return!1;const o=Object.keys(e).length,i=Object.keys(t).length;if(o!==i)return!1;for(const l in e){const a=e.hasOwnProperty(l),c=t.hasOwnProperty(l);if(a&&!c||!a&&c||!Es(e[l],t[l]))return!1}}return String(e)===String(t)}function xd(e,t){return e.findIndex(n=>Es(n,t))}const Lp={},yL=/^on[^a-z]/,_L=e=>yL.test(e),bL=e=>e.startsWith("onUpdate:"),Ma=Object.assign,ar=Array.isArray,Da=e=>l2(e)==="[object Set]",F_=e=>l2(e)==="[object Date]",i2=e=>typeof e=="function",ga=e=>typeof e=="string",N_=e=>typeof e=="symbol",Th=e=>e!==null&&typeof e=="object",wL=Object.prototype.toString,l2=e=>wL.call(e),Hm=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},SL=/-(\w)/g,Fp=Hm(e=>e.replace(SL,(t,n)=>n?n.toUpperCase():"")),EL=/\B([A-Z])/g,hs=Hm(e=>e.replace(EL,"-$1").toLowerCase()),$L=Hm(e=>e.charAt(0).toUpperCase()+e.slice(1)),xL=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Ch=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Oh=e=>{const t=ga(e)?Number(e):NaN;return isNaN(t)?e:t},TL="http://www.w3.org/2000/svg",qs=typeof document<"u"?document:null,M_=qs&&qs.createElement("template"),CL={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t?qs.createElementNS(TL,e):qs.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>qs.createTextNode(e),createComment:e=>qs.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>qs.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,i){const l=n?n.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===i||!(o=o.nextSibling)););else{M_.innerHTML=r?`<svg>${e}</svg>`:e;const a=M_.content;if(r){const c=a.firstChild;for(;c.firstChild;)a.appendChild(c.firstChild);a.removeChild(c)}t.insertBefore(a,n)}return[l?l.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function OL(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function AL(e,t,n){const r=e.style,o=ga(n);if(n&&!o){if(t&&!ga(t))for(const i in t)n[i]==null&&Ah(r,i,"");for(const i in n)Ah(r,i,n[i])}else{const i=r.display;o?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=i)}}const D_=/\s*!important$/;function Ah(e,t,n){if(ar(n))n.forEach(r=>Ah(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=kL(e,t);D_.test(n)?e.setProperty(hs(r),n.replace(D_,""),"important"):e[r]=n}}const U_=["Webkit","Moz","ms"],Np={};function kL(e,t){const n=Np[t];if(n)return n;let r=io(t);if(r!=="filter"&&r in e)return Np[t]=r;r=$L(r);for(let o=0;o<U_.length;o++){const i=U_[o]+r;if(i in e)return Np[t]=i}return t}const B_="http://www.w3.org/1999/xlink";function IL(e,t,n,r,o){if(r&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(B_,t.slice(6,t.length)):e.setAttributeNS(B_,t,n);else{const i=gL(t);n==null||i&&!s2(n)?e.removeAttribute(t):e.setAttribute(t,i?"":n)}}function PL(e,t,n,r,o,i,l){if(t==="innerHTML"||t==="textContent"){r&&l(r,o,i),e[t]=n??"";return}if(t==="value"&&e.tagName!=="PROGRESS"&&!e.tagName.includes("-")){e._value=n;const c=n??"";(e.value!==c||e.tagName==="OPTION")&&(e.value=c),n==null&&e.removeAttribute(t);return}let a=!1;if(n===""||n==null){const c=typeof e[t];c==="boolean"?n=s2(n):n==null&&c==="string"?(n="",a=!0):c==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(t)}function jo(e,t,n,r){e.addEventListener(t,n,r)}function RL(e,t,n,r){e.removeEventListener(t,n,r)}function LL(e,t,n,r,o=null){const i=e._vei||(e._vei={}),l=i[t];if(r&&l)l.value=r;else{const[a,c]=FL(t);if(r){const d=i[t]=DL(r,o);jo(e,a,d,c)}else l&&(RL(e,a,l,c),i[t]=void 0)}}const j_=/(?:Once|Passive|Capture)$/;function FL(e){let t;if(j_.test(e)){t={};let r;for(;r=e.match(j_);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):hs(e.slice(2)),t]}let Mp=0;const NL=Promise.resolve(),ML=()=>Mp||(NL.then(()=>Mp=0),Mp=Date.now());function DL(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;wr(UL(r,n.value),t,5,[r])};return n.value=e,n.attached=ML(),n}function UL(e,t){if(ar(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>o=>!o._stopped&&r&&r(o))}else return t}const V_=/^on[a-z]/,BL=(e,t,n,r,o=!1,i,l,a,c)=>{t==="class"?OL(e,r,o):t==="style"?AL(e,n,r):_L(t)?bL(t)||LL(e,t,n,r,l):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):jL(e,t,r,o))?PL(e,t,r,i,l,a,c):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),IL(e,t,r,o))};function jL(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&V_.test(t)&&i2(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||V_.test(t)&&ga(n)?!1:t in e}function a2(e,t){const n=ge(e);class r extends Td{constructor(i){super(n,i,t)}}return r.def=n,r}const VL=e=>a2(e,x2),HL=typeof HTMLElement<"u"?HTMLElement:class{};class Td extends HL{constructor(t,n={},r){super(),this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&r?r(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,sn(()=>{this._connected||(Ph(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let r=0;r<this.attributes.length;r++)this._setAttr(this.attributes[r].name);new MutationObserver(r=>{for(const o of r)this._setAttr(o.attributeName)}).observe(this,{attributes:!0});const t=(r,o=!1)=>{const{props:i,styles:l}=r;let a;if(i&&!ar(i))for(const c in i){const d=i[c];(d===Number||d&&d.type===Number)&&(c in this._props&&(this._props[c]=Oh(this._props[c])),(a||(a=Object.create(null)))[Fp(c)]=!0)}this._numberProps=a,o&&this._resolveProps(r),this._applyStyles(l),this._update()},n=this._def.__asyncLoader;n?n().then(r=>t(r,!0)):t(this._def)}_resolveProps(t){const{props:n}=t,r=ar(n)?n:Object.keys(n||{});for(const o of Object.keys(this))o[0]!=="_"&&r.includes(o)&&this._setProp(o,this[o],!0,!1);for(const o of r.map(Fp))Object.defineProperty(this,o,{get(){return this._getProp(o)},set(i){this._setProp(o,i)}})}_setAttr(t){let n=this.getAttribute(t);const r=Fp(t);this._numberProps&&this._numberProps[r]&&(n=Oh(n)),this._setProp(r,n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,r=!0,o=!0){n!==this._props[t]&&(this._props[t]=n,o&&this._instance&&this._update(),r&&(n===!0?this.setAttribute(hs(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(hs(t),n+""):n||this.removeAttribute(hs(t))))}_update(){Ph(this._createVNode(),this.shadowRoot)}_createVNode(){const t=z(this._def,Ma({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0;const r=(i,l)=>{this.dispatchEvent(new CustomEvent(i,{detail:l}))};n.emit=(i,...l)=>{r(i,l),hs(i)!==i&&r(hs(i),l)};let o=this;for(;o=o&&(o.parentNode||o.host);)if(o instanceof Td){n.parent=o._instance,n.provides=o._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(n=>{const r=document.createElement("style");r.textContent=n,this.shadowRoot.appendChild(r)})}}function zL(e="$style"){{const t=Jo();if(!t)return Lp;const n=t.type.__cssModules;if(!n)return Lp;const r=n[e];return r||Lp}}function u2(e){const t=Jo();if(!t)return;const n=t.ut=(o=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(i=>Ih(i,o))},r=()=>{const o=e(t.proxy);kh(t.subTree,o),n(o)};hw(r),wt(()=>{const o=new MutationObserver(r);o.observe(t.subTree.el.parentNode,{childList:!0}),en(()=>o.disconnect())})}function kh(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{kh(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)Ih(e.el,t);else if(e.type===Me)e.children.forEach(n=>kh(n,t));else if(e.type===ti){let{el:n,anchor:r}=e;for(;n&&(Ih(n,t),n!==r);)n=n.nextSibling}}function Ih(e,t){if(e.nodeType===1){const n=e.style;for(const r in t)n.setProperty(`--${r}`,t[r])}}const us="transition",Il="animation",Cs=(e,{slots:t})=>pt(Nm,d2(e),t);Cs.displayName="Transition";const c2={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},WL=Cs.props=Ma({},Nm.props,c2),js=(e,t=[])=>{ar(e)?e.forEach(n=>n(...t)):e&&e(...t)},H_=e=>e?ar(e)?e.some(t=>t.length>1):e.length>1:!1;function d2(e){const t={};for(const G in e)G in c2||(t[G]=e[G]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:i=`${n}-enter-from`,enterActiveClass:l=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:c=i,appearActiveClass:d=l,appearToClass:p=a,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:v=`${n}-leave-active`,leaveToClass:y=`${n}-leave-to`}=e,b=qL(o),S=b&&b[0],T=b&&b[1],{onBeforeEnter:C,onEnter:w,onEnterCancelled:E,onLeave:O,onLeaveCancelled:$,onBeforeAppear:P=C,onAppear:R=w,onAppearCancelled:k=E}=t,W=(G,X,ne)=>{fs(G,X?p:a),fs(G,X?d:l),ne&&ne()},U=(G,X)=>{G._isLeaving=!1,fs(G,h),fs(G,y),fs(G,v),X&&X()},j=G=>(X,ne)=>{const xe=G?R:w,Ee=()=>W(X,G,ne);js(xe,[X,Ee]),z_(()=>{fs(X,G?c:i),Uo(X,G?p:a),H_(xe)||W_(X,r,S,Ee)})};return Ma(t,{onBeforeEnter(G){js(C,[G]),Uo(G,i),Uo(G,l)},onBeforeAppear(G){js(P,[G]),Uo(G,c),Uo(G,d)},onEnter:j(!1),onAppear:j(!0),onLeave(G,X){G._isLeaving=!0;const ne=()=>U(G,X);Uo(G,h),p2(),Uo(G,v),z_(()=>{G._isLeaving&&(fs(G,h),Uo(G,y),H_(O)||W_(G,r,T,ne))}),js(O,[G,ne])},onEnterCancelled(G){W(G,!1),js(E,[G])},onAppearCancelled(G){W(G,!0),js(k,[G])},onLeaveCancelled(G){U(G),js($,[G])}})}function qL(e){if(e==null)return null;if(Th(e))return[Dp(e.enter),Dp(e.leave)];{const t=Dp(e);return[t,t]}}function Dp(e){return Oh(e)}function Uo(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function fs(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function z_(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let KL=0;function W_(e,t,n,r){const o=e._endId=++KL,i=()=>{o===e._endId&&r()};if(n)return setTimeout(i,n);const{type:l,timeout:a,propCount:c}=f2(e,t);if(!l)return r();const d=l+"end";let p=0;const h=()=>{e.removeEventListener(d,v),i()},v=y=>{y.target===e&&++p>=c&&h()};setTimeout(()=>{p<c&&h()},a+1),e.addEventListener(d,v)}function f2(e,t){const n=window.getComputedStyle(e),r=b=>(n[b]||"").split(", "),o=r(`${us}Delay`),i=r(`${us}Duration`),l=q_(o,i),a=r(`${Il}Delay`),c=r(`${Il}Duration`),d=q_(a,c);let p=null,h=0,v=0;t===us?l>0&&(p=us,h=l,v=i.length):t===Il?d>0&&(p=Il,h=d,v=c.length):(h=Math.max(l,d),p=h>0?l>d?us:Il:null,v=p?p===us?i.length:c.length:0);const y=p===us&&/\b(transform|all)(,|$)/.test(r(`${us}Property`).toString());return{type:p,timeout:h,propCount:v,hasTransform:y}}function q_(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>K_(n)+K_(e[r])))}function K_(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function p2(){return document.body.offsetHeight}const h2=new WeakMap,m2=new WeakMap,g2={name:"TransitionGroup",props:Ma({},WL,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Jo(),r=Fm();let o,i;return Sd(()=>{if(!o.length)return;const l=e.moveClass||`${e.name||"v"}-move`;if(!QL(o[0].el,n.vnode.el,l))return;o.forEach(YL),o.forEach(JL);const a=o.filter(ZL);p2(),a.forEach(c=>{const d=c.el,p=d.style;Uo(d,l),p.transform=p.webkitTransform=p.transitionDuration="";const h=d._moveCb=v=>{v&&v.target!==d||(!v||/transform$/.test(v.propertyName))&&(d.removeEventListener("transitionend",h),d._moveCb=null,fs(d,l))};d.addEventListener("transitionend",h)})}),()=>{const l=He(e),a=d2(l);let c=l.tag||Me;o=i,i=t.default?bd(t.default()):[];for(let d=0;d<i.length;d++){const p=i[d];p.key!=null&&ai(p,Ki(p,a,r,n))}if(o)for(let d=0;d<o.length;d++){const p=o[d];ai(p,Ki(p,a,r,n)),h2.set(p,p.el.getBoundingClientRect())}return z(c,null,i)}}},GL=e=>delete e.mode;g2.props;const XL=g2;function YL(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function JL(e){m2.set(e,e.el.getBoundingClientRect())}function ZL(e){const t=h2.get(e),n=m2.get(e),r=t.left-n.left,o=t.top-n.top;if(r||o){const i=e.el.style;return i.transform=i.webkitTransform=`translate(${r}px,${o}px)`,i.transitionDuration="0s",e}}function QL(e,t,n){const r=e.cloneNode();e._vtc&&e._vtc.forEach(l=>{l.split(/\s+/).forEach(a=>a&&r.classList.remove(a))}),n.split(/\s+/).forEach(l=>l&&r.classList.add(l)),r.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(r);const{hasTransform:i}=f2(r);return o.removeChild(r),i}const $s=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ar(t)?n=>xL(t,n):t};function e6(e){e.target.composing=!0}function G_(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Lc={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e._assign=$s(o);const i=r||o.props&&o.props.type==="number";jo(e,t?"change":"input",l=>{if(l.target.composing)return;let a=e.value;n&&(a=a.trim()),i&&(a=Ch(a)),e._assign(a)}),n&&jo(e,"change",()=>{e.value=e.value.trim()}),t||(jo(e,"compositionstart",e6),jo(e,"compositionend",G_),jo(e,"change",G_))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:o}},i){if(e._assign=$s(i),e.composing||document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===t||(o||e.type==="number")&&Ch(e.value)===t))return;const l=t??"";e.value!==l&&(e.value=l)}},zm={deep:!0,created(e,t,n){e._assign=$s(n),jo(e,"change",()=>{const r=e._modelValue,o=Xi(e),i=e.checked,l=e._assign;if(ar(r)){const a=xd(r,o),c=a!==-1;if(i&&!c)l(r.concat(o));else if(!i&&c){const d=[...r];d.splice(a,1),l(d)}}else if(Da(r)){const a=new Set(r);i?a.add(o):a.delete(o),l(a)}else l(y2(e,i))})},mounted:X_,beforeUpdate(e,t,n){e._assign=$s(n),X_(e,t,n)}};function X_(e,{value:t,oldValue:n},r){e._modelValue=t,ar(t)?e.checked=xd(t,r.props.value)>-1:Da(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=Es(t,y2(e,!0)))}const Wm={created(e,{value:t},n){e.checked=Es(t,n.props.value),e._assign=$s(n),jo(e,"change",()=>{e._assign(Xi(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e._assign=$s(r),t!==n&&(e.checked=Es(t,r.props.value))}},v2={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const o=Da(t);jo(e,"change",()=>{const i=Array.prototype.filter.call(e.options,l=>l.selected).map(l=>n?Ch(Xi(l)):Xi(l));e._assign(e.multiple?o?new Set(i):i:i[0])}),e._assign=$s(r)},mounted(e,{value:t}){Y_(e,t)},beforeUpdate(e,t,n){e._assign=$s(n)},updated(e,{value:t}){Y_(e,t)}};function Y_(e,t){const n=e.multiple;if(!(n&&!ar(t)&&!Da(t))){for(let r=0,o=e.options.length;r<o;r++){const i=e.options[r],l=Xi(i);if(n)ar(t)?i.selected=xd(t,l)>-1:i.selected=t.has(l);else if(Es(Xi(i),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Xi(e){return"_value"in e?e._value:e.value}function y2(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const _2={created(e,t,n){tc(e,t,n,null,"created")},mounted(e,t,n){tc(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){tc(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){tc(e,t,n,r,"updated")}};function b2(e,t){switch(e){case"SELECT":return v2;case"TEXTAREA":return Lc;default:switch(t){case"checkbox":return zm;case"radio":return Wm;default:return Lc}}}function tc(e,t,n,r,o){const l=b2(e.tagName,n.props&&n.props.type)[o];l&&l(e,t,n,r)}function t6(){Lc.getSSRProps=({value:e})=>({value:e}),Wm.getSSRProps=({value:e},t)=>{if(t.props&&Es(t.props.value,e))return{checked:!0}},zm.getSSRProps=({value:e},t)=>{if(ar(e)){if(t.props&&xd(e,t.props.value)>-1)return{checked:!0}}else if(Da(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},_2.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=b2(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const n6=["ctrl","shift","alt","meta"],r6={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)=>n6.some(n=>e[`${n}Key`]&&!t.includes(n))},va=(e,t)=>(n,...r)=>{for(let o=0;o<t.length;o++){const i=r6[t[o]];if(i&&i(n,t))return}return e(n,...r)},o6={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},w2=(e,t)=>n=>{if(!("key"in n))return;const r=hs(n.key);if(t.some(o=>o===r||o6[o]===r))return e(n)},qm={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Pl(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),Pl(e,!0),r.enter(e)):r.leave(e,()=>{Pl(e,!1)}):Pl(e,t))},beforeUnmount(e,{value:t}){Pl(e,t)}};function Pl(e,t){e.style.display=t?e._vod:"none"}function s6(){qm.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const S2=Ma({patchProp:BL},CL);let Ql,J_=!1;function E2(){return Ql||(Ql=Mw(S2))}function $2(){return Ql=J_?Ql:Dw(S2),J_=!0,Ql}const Ph=(...e)=>{E2().render(...e)},x2=(...e)=>{$2().hydrate(...e)},T2=(...e)=>{const t=E2().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=C2(r);if(!o)return;const i=t._component;!i2(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.innerHTML="";const l=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),l},t},i6=(...e)=>{const t=$2().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=C2(r);if(o)return n(o,!0,o instanceof SVGElement)},t};function C2(e){return ga(e)?document.querySelector(e):e}let Z_=!1;const l6=()=>{Z_||(Z_=!0,t6(),s6())},a6=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:Nm,Comment:Un,EffectScope:wm,Fragment:Me,KeepAlive:wR,ReactiveEffect:La,Static:ti,Suspense:dR,Teleport:Bw,Text:ui,Transition:Cs,TransitionGroup:XL,VueElement:Td,assertNumber:JP,callWithAsyncErrorHandling:wr,callWithErrorHandling:zo,camelize:io,capitalize:cd,cloneVNode:Vr,compatUtils:pL,computed:fe,createApp:T2,createBlock:Ye,createCommentVNode:Te,createElementBlock:F,createElementVNode:m,createHydrationRenderer:Dw,createPropsRestProxy:iL,createRenderer:Mw,createSSRApp:i6,createSlots:Ow,createStaticVNode:KR,createTextVNode:Be,createVNode:z,customRef:qP,defineAsyncComponent:_R,defineComponent:ge,defineCustomElement:a2,defineEmits:tL,defineExpose:nL,defineProps:eL,defineSSRCustomElement:VL,get devtools(){return Mi},effect:hP,effectScope:dP,getCurrentInstance:Jo,getCurrentScope:Hb,getTransitionRawChildren:bd,guardReactiveProps:Ww,h:pt,handleError:pi,hydrate:x2,initCustomFormatter:aL,initDirectivesForSSR:l6,inject:Ft,isMemoSame:r2,isProxy:xm,isReactive:Qs,isReadonly:li,isRef:pn,isRuntimeOnly:JR,isShallow:ca,isVNode:ws,markRaw:Tm,mergeDefaults:sL,mergeProps:qw,nextTick:sn,normalizeClass:gt,normalizeProps:eP,normalizeStyle:so,onActivated:vw,onBeforeMount:bw,onBeforeUnmount:hi,onBeforeUpdate:ww,onDeactivated:yw,onErrorCaptured:xw,onMounted:wt,onRenderTracked:$w,onRenderTriggered:Ew,onScopeDispose:zb,onServerPrefetch:Sw,onUnmounted:en,onUpdated:Sd,openBlock:I,popScopeId:oR,provide:Qt,proxyRefs:Am,pushScopeId:rR,queuePostFlushCb:Pm,reactive:Ts,readonly:$m,ref:$e,registerRuntimeCompiler:Yw,render:Ph,renderList:Ot,renderSlot:yn,resolveComponent:q,resolveDirective:xR,resolveDynamicComponent:$R,resolveFilter:fL,resolveTransitionHooks:Ki,setBlockTracking:Sh,setDevtoolsHook:cw,setTransitionHooks:ai,shallowReactive:rw,shallowReadonly:VP,shallowRef:gd,ssrContextKey:t2,ssrUtils:dL,stop:mP,toDisplayString:L,toHandlerKey:Gl,toHandlers:TR,toRaw:He,toRef:sw,toRefs:km,transformVNodeArgs:WR,triggerRef:hh,unref:vn,useAttrs:oL,useCssModule:zL,useCssVars:u2,useSSRContext:n2,useSlots:Qw,useTransitionState:Fm,vModelCheckbox:zm,vModelDynamic:_2,vModelRadio:Wm,vModelSelect:v2,vModelText:Lc,vShow:qm,version:o2,warn:YP,watch:Ut,watchEffect:Vt,watchPostEffect:hw,watchSyncEffect:gR,withAsyncContext:lL,withCtx:_e,withDefaults:rL,withDirectives:Tw,withKeys:w2,withMemo:uL,withModifiers:va,withScopeId:sR},Symbol.toStringTag,{value:"Module"}));function co(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o<r.length;o++)n[r[o]]=!0;return t?o=>!!n[o.toLowerCase()]:o=>!!n[o]}const u6=/;(?![^(]*\))/g,c6=/:([^]+)/,d6=/\/\*.*?\*\//gs;function f6(e){const t={};return e.replace(d6,"").split(u6).forEach(n=>{if(n){const r=n.split(c6);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}const p6="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",h6="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",m6="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",g6=co(p6),v6=co(h6),y6=co(m6),_6={},Fc=()=>{},Up=()=>!1,b6=/^on[^a-z]/,O2=e=>b6.test(e),Wo=Object.assign,Yi=Array.isArray,_n=e=>typeof e=="string",Km=e=>typeof e=="symbol",w6=e=>e!==null&&typeof e=="object",Q_=co(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),S6=co("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),Cd=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},E6=/-(\w)/g,Od=Cd(e=>e.replace(E6,(t,n)=>n?n.toUpperCase():"")),$6=/\B([A-Z])/g,x6=Cd(e=>e.replace($6,"-$1").toLowerCase()),Gm=Cd(e=>e.charAt(0).toUpperCase()+e.slice(1)),T6=Cd(e=>e?`on${Gm(e)}`:"");function Xm(e){throw e}function A2(e){}function Wt(e,t,n,r){const o=e,i=new SyntaxError(String(o));return i.code=e,i.loc=t,i}const ya=Symbol(""),ea=Symbol(""),Ym=Symbol(""),Nc=Symbol(""),k2=Symbol(""),di=Symbol(""),I2=Symbol(""),P2=Symbol(""),Jm=Symbol(""),Zm=Symbol(""),Ua=Symbol(""),Qm=Symbol(""),R2=Symbol(""),eg=Symbol(""),Mc=Symbol(""),tg=Symbol(""),ng=Symbol(""),rg=Symbol(""),og=Symbol(""),L2=Symbol(""),F2=Symbol(""),Ad=Symbol(""),Dc=Symbol(""),sg=Symbol(""),ig=Symbol(""),_a=Symbol(""),Ba=Symbol(""),lg=Symbol(""),Rh=Symbol(""),C6=Symbol(""),Lh=Symbol(""),Uc=Symbol(""),O6=Symbol(""),A6=Symbol(""),ag=Symbol(""),k6=Symbol(""),I6=Symbol(""),ug=Symbol(""),N2=Symbol(""),Ji={[ya]:"Fragment",[ea]:"Teleport",[Ym]:"Suspense",[Nc]:"KeepAlive",[k2]:"BaseTransition",[di]:"openBlock",[I2]:"createBlock",[P2]:"createElementBlock",[Jm]:"createVNode",[Zm]:"createElementVNode",[Ua]:"createCommentVNode",[Qm]:"createTextVNode",[R2]:"createStaticVNode",[eg]:"resolveComponent",[Mc]:"resolveDynamicComponent",[tg]:"resolveDirective",[ng]:"resolveFilter",[rg]:"withDirectives",[og]:"renderList",[L2]:"renderSlot",[F2]:"createSlots",[Ad]:"toDisplayString",[Dc]:"mergeProps",[sg]:"normalizeClass",[ig]:"normalizeStyle",[_a]:"normalizeProps",[Ba]:"guardReactiveProps",[lg]:"toHandlers",[Rh]:"camelize",[C6]:"capitalize",[Lh]:"toHandlerKey",[Uc]:"setBlockTracking",[O6]:"pushScopeId",[A6]:"popScopeId",[ag]:"withCtx",[k6]:"unref",[I6]:"isRef",[ug]:"withMemo",[N2]:"isMemoSame"};function P6(e){Object.getOwnPropertySymbols(e).forEach(t=>{Ji[t]=e[t]})}const xr={source:"",start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}};function R6(e,t=xr){return{type:0,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:t}}function ba(e,t,n,r,o,i,l,a=!1,c=!1,d=!1,p=xr){return e&&(a?(e.helper(di),e.helper(el(e.inSSR,d))):e.helper(Qi(e.inSSR,d)),l&&e.helper(rg)),{type:13,tag:t,props:n,children:r,patchFlag:o,dynamicProps:i,directives:l,isBlock:a,disableTracking:c,isComponent:d,loc:p}}function ja(e,t=xr){return{type:17,loc:t,elements:e}}function Nr(e,t=xr){return{type:15,loc:t,properties:e}}function Zt(e,t){return{type:16,loc:xr,key:_n(e)?dt(e,!0):e,value:t}}function dt(e,t=!1,n=xr,r=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:r}}function ro(e,t=xr){return{type:8,loc:t,children:e}}function on(e,t=[],n=xr){return{type:14,loc:n,callee:e,arguments:t}}function Zi(e,t=void 0,n=!1,r=!1,o=xr){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:o}}function Fh(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:xr}}function L6(e,t,n=!1){return{type:20,index:e,value:t,isVNode:n,loc:xr}}function F6(e){return{type:21,body:e,loc:xr}}const nr=e=>e.type===4&&e.isStatic,Di=(e,t)=>e===t||e===x6(t);function M2(e){if(Di(e,"Teleport"))return ea;if(Di(e,"Suspense"))return Ym;if(Di(e,"KeepAlive"))return Nc;if(Di(e,"BaseTransition"))return k2}const N6=/^\d|[^\$\w]/,cg=e=>!N6.test(e),M6=/[A-Za-z_$\xA0-\uFFFF]/,D6=/[\.\?\w$\xA0-\uFFFF]/,U6=/\s+[.[]\s*|\s*[.[]\s+/g,B6=e=>{e=e.trim().replace(U6,l=>l.trim());let t=0,n=[],r=0,o=0,i=null;for(let l=0;l<e.length;l++){const a=e.charAt(l);switch(t){case 0:if(a==="[")n.push(t),t=1,r++;else if(a==="(")n.push(t),t=2,o++;else if(!(l===0?M6:D6).test(a))return!1;break;case 1:a==="'"||a==='"'||a==="`"?(n.push(t),t=3,i=a):a==="["?r++:a==="]"&&(--r||(t=n.pop()));break;case 2:if(a==="'"||a==='"'||a==="`")n.push(t),t=3,i=a;else if(a==="(")o++;else if(a===")"){if(l===e.length-1)return!1;--o||(t=n.pop())}break;case 3:a===i&&(t=n.pop(),i=null);break}}return!r&&!o},D2=B6;function U2(e,t,n){const o={source:e.source.slice(t,t+n),start:Bc(e.start,e.source,t),end:e.end};return n!=null&&(o.end=Bc(e.start,e.source,t+n)),o}function Bc(e,t,n=t.length){return jc(Wo({},e),t,n)}function jc(e,t,n=t.length){let r=0,o=-1;for(let i=0;i<n;i++)t.charCodeAt(i)===10&&(r++,o=i);return e.offset+=n,e.line+=r,e.column=o===-1?e.column+n:n-o,e}function Fr(e,t,n=!1){for(let r=0;r<e.props.length;r++){const o=e.props[r];if(o.type===7&&(n||o.exp)&&(_n(t)?o.name===t:t.test(o.name)))return o}}function kd(e,t,n=!1,r=!1){for(let o=0;o<e.props.length;o++){const i=e.props[o];if(i.type===6){if(n)continue;if(i.name===t&&(i.value||r))return i}else if(i.name==="bind"&&(i.exp||r)&&Xs(i.arg,t))return i}}function Xs(e,t){return!!(e&&nr(e)&&e.content===t)}function j6(e){return e.props.some(t=>t.type===7&&t.name==="bind"&&(!t.arg||t.arg.type!==4||!t.arg.isStatic))}function Bp(e){return e.type===5||e.type===2}function V6(e){return e.type===7&&e.name==="slot"}function Vc(e){return e.type===1&&e.tagType===3}function Hc(e){return e.type===1&&e.tagType===2}function Qi(e,t){return e||t?Jm:Zm}function el(e,t){return e||t?I2:P2}const H6=new Set([_a,Ba]);function B2(e,t=[]){if(e&&!_n(e)&&e.type===14){const n=e.callee;if(!_n(n)&&H6.has(n))return B2(e.arguments[0],t.concat(e))}return[e,t]}function zc(e,t,n){let r,o=e.type===13?e.props:e.arguments[2],i=[],l;if(o&&!_n(o)&&o.type===14){const a=B2(o);o=a[0],i=a[1],l=i[i.length-1]}if(o==null||_n(o))r=Nr([t]);else if(o.type===14){const a=o.arguments[0];!_n(a)&&a.type===15?e1(t,a)||a.properties.unshift(t):o.callee===lg?r=on(n.helper(Dc),[Nr([t]),o]):o.arguments.unshift(Nr([t])),!r&&(r=o)}else o.type===15?(e1(t,o)||o.properties.unshift(t),r=o):(r=on(n.helper(Dc),[Nr([t]),o]),l&&l.callee===Ba&&(l=i[i.length-2]));e.type===13?l?l.arguments[0]=r:e.props=r:l?l.arguments[0]=r:e.arguments[2]=r}function e1(e,t){let n=!1;if(e.key.type===4){const r=e.key.content;n=t.properties.some(o=>o.key.type===4&&o.key.content===r)}return n}function wa(e,t){return`_${t}_${e.replace(/[^\w]/g,(n,r)=>n==="-"?"_":e.charCodeAt(r).toString())}`}function z6(e){return e.type===14&&e.callee===ug?e.arguments[1].returns:e}function dg(e,{helper:t,removeHelper:n,inSSR:r}){e.isBlock||(e.isBlock=!0,n(Qi(r,e.isComponent)),t(di),t(el(r,e.isComponent)))}function t1(e,t){const n=t.options?t.options.compatConfig:t.compatConfig,r=n&&n[e];return e==="MODE"?r||3:r}function ni(e,t){const n=t1("MODE",t),r=t1(e,t);return n===3?r===!0:r!==!1}function Sa(e,t,n,...r){return ni(e,t)}const W6=/&(gt|lt|amp|apos|quot);/g,q6={gt:">",lt:"<",amp:"&",apos:"'",quot:'"'},n1={delimiters:["{{","}}"],getNamespace:()=>0,getTextMode:()=>0,isVoidTag:Up,isPreTag:Up,isCustomElement:Up,decodeEntities:e=>e.replace(W6,(t,n)=>q6[n]),onError:Xm,onWarn:A2,comments:!1};function K6(e,t={}){const n=G6(e,t),r=Sr(n);return R6(fg(n,0,[]),Hr(n,r))}function G6(e,t){const n=Wo({},n1);let r;for(r in t)n[r]=t[r]===void 0?n1[r]:t[r];return{options:n,column:1,line:1,offset:0,originalSource:e,source:e,inPre:!1,inVPre:!1,onWarn:n.onWarn}}function fg(e,t,n){const r=Id(n),o=r?r.ns:0,i=[];for(;!rF(e,t,n);){const a=e.source;let c;if(t===0||t===1){if(!e.inVPre&&Dn(a,e.options.delimiters[0]))c=tF(e,t);else if(t===0&&a[0]==="<")if(a.length===1)Pt(e,5,1);else if(a[1]==="!")Dn(a,"<!--")?c=Y6(e):Dn(a,"<!DOCTYPE")?c=Rl(e):Dn(a,"<![CDATA[")?o!==0?c=X6(e,n):(Pt(e,1),c=Rl(e)):(Pt(e,11),c=Rl(e));else if(a[1]==="/")if(a.length===2)Pt(e,5,2);else if(a[2]===">"){Pt(e,14,2),hn(e,3);continue}else if(/[a-z]/i.test(a[2])){Pt(e,23),Nh(e,1,r);continue}else Pt(e,12,2),c=Rl(e);else/[a-z]/i.test(a[1])?(c=J6(e,n),ni("COMPILER_NATIVE_TEMPLATE",e)&&c&&c.tag==="template"&&!c.props.some(d=>d.type===7&&j2(d.name))&&(c=c.children)):a[1]==="?"?(Pt(e,21,1),c=Rl(e)):Pt(e,12,1)}if(c||(c=nF(e,t)),Yi(c))for(let d=0;d<c.length;d++)r1(i,c[d]);else r1(i,c)}let l=!1;if(t!==2&&t!==1){const a=e.options.whitespace!=="preserve";for(let c=0;c<i.length;c++){const d=i[c];if(d.type===2)if(e.inPre)d.content=d.content.replace(/\r\n/g,` 2 `);else if(/[^\t\r\n\f ]/.test(d.content))a&&(d.content=d.content.replace(/[\t\r\n\f ]+/g," "));else{const p=i[c-1],h=i[c+1];!p||!h||a&&(p.type===3&&h.type===3||p.type===3&&h.type===1||p.type===1&&h.type===3||p.type===1&&h.type===1&&/[\r\n]/.test(d.content))?(l=!0,i[c]=null):d.content=" "}else d.type===3&&!e.options.comments&&(l=!0,i[c]=null)}if(e.inPre&&r&&e.options.isPreTag(r.tag)){const c=i[0];c&&c.type===2&&(c.content=c.content.replace(/^\r?\n/,""))}}return l?i.filter(Boolean):i}function r1(e,t){if(t.type===2){const n=Id(e);if(n&&n.type===2&&n.loc.end.offset===t.loc.start.offset){n.content+=t.content,n.loc.end=t.loc.end,n.loc.source+=t.loc.source;return}}e.push(t)}function X6(e,t){hn(e,9);const n=fg(e,3,t);return e.source.length===0?Pt(e,6):hn(e,3),n}function Y6(e){const t=Sr(e);let n;const r=/--(\!)?>/.exec(e.source);if(!r)n=e.source.slice(4),hn(e,e.source.length),Pt(e,7);else{r.index<=3&&Pt(e,0),r[1]&&Pt(e,10),n=e.source.slice(4,r.index);const o=e.source.slice(0,r.index);let i=1,l=0;for(;(l=o.indexOf("<!--",i))!==-1;)hn(e,l-i+1),l+4<o.length&&Pt(e,16),i=l+1;hn(e,r.index+r[0].length-i+1)}return{type:3,content:n,loc:Hr(e,t)}}function Rl(e){const t=Sr(e),n=e.source[1]==="?"?1:2;let r;const o=e.source.indexOf(">");return o===-1?(r=e.source.slice(n),hn(e,e.source.length)):(r=e.source.slice(n,o),hn(e,o+1)),{type:3,content:r,loc:Hr(e,t)}}function J6(e,t){const n=e.inPre,r=e.inVPre,o=Id(t),i=Nh(e,0,o),l=e.inPre&&!n,a=e.inVPre&&!r;if(i.isSelfClosing||e.options.isVoidTag(i.tag))return l&&(e.inPre=!1),a&&(e.inVPre=!1),i;t.push(i);const c=e.options.getTextMode(i,o),d=fg(e,c,t);t.pop();{const p=i.props.find(h=>h.type===6&&h.name==="inline-template");if(p&&Sa("COMPILER_INLINE_TEMPLATE",e,p.loc)){const h=Hr(e,i.loc.end);p.value={type:2,content:h.source,loc:h}}}if(i.children=d,Mh(e.source,i.tag))Nh(e,1,o);else if(Pt(e,24,0,i.loc.start),e.source.length===0&&i.tag.toLowerCase()==="script"){const p=d[0];p&&Dn(p.loc.source,"<!--")&&Pt(e,8)}return i.loc=Hr(e,i.loc.start),l&&(e.inPre=!1),a&&(e.inVPre=!1),i}const j2=co("if,else,else-if,for,slot");function Nh(e,t,n){const r=Sr(e),o=/^<\/?([a-z][^\t\r\n\f />]*)/i.exec(e.source),i=o[1],l=e.options.getNamespace(i,n);hn(e,o[0].length),Ea(e);const a=Sr(e),c=e.source;e.options.isPreTag(i)&&(e.inPre=!0);let d=o1(e,t);t===0&&!e.inVPre&&d.some(v=>v.type===7&&v.name==="pre")&&(e.inVPre=!0,Wo(e,a),e.source=c,d=o1(e,t).filter(v=>v.name!=="v-pre"));let p=!1;if(e.source.length===0?Pt(e,9):(p=Dn(e.source,"/>"),t===1&&p&&Pt(e,4),hn(e,p?2:1)),t===1)return;let h=0;return e.inVPre||(i==="slot"?h=2:i==="template"?d.some(v=>v.type===7&&j2(v.name))&&(h=3):Z6(i,d,e)&&(h=1)),{type:1,ns:l,tag:i,tagType:h,props:d,isSelfClosing:p,children:[],loc:Hr(e,r),codegenNode:void 0}}function Z6(e,t,n){const r=n.options;if(r.isCustomElement(e))return!1;if(e==="component"||/^[A-Z]/.test(e)||M2(e)||r.isBuiltInComponent&&r.isBuiltInComponent(e)||r.isNativeTag&&!r.isNativeTag(e))return!0;for(let o=0;o<t.length;o++){const i=t[o];if(i.type===6){if(i.name==="is"&&i.value){if(i.value.content.startsWith("vue:"))return!0;if(Sa("COMPILER_IS_ON_ELEMENT",n,i.loc))return!0}}else{if(i.name==="is")return!0;if(i.name==="bind"&&Xs(i.arg,"is")&&Sa("COMPILER_IS_ON_ELEMENT",n,i.loc))return!0}}}function o1(e,t){const n=[],r=new Set;for(;e.source.length>0&&!Dn(e.source,">")&&!Dn(e.source,"/>");){if(Dn(e.source,"/")){Pt(e,22),hn(e,1),Ea(e);continue}t===1&&Pt(e,3);const o=Q6(e,r);o.type===6&&o.value&&o.name==="class"&&(o.value.content=o.value.content.replace(/\s+/g," ").trim()),t===0&&n.push(o),/^[^\t\r\n\f />]/.test(e.source)&&Pt(e,15),Ea(e)}return n}function Q6(e,t){const n=Sr(e),o=/^[^\t\r\n\f />][^\t\r\n\f />=]*/.exec(e.source)[0];t.has(o)&&Pt(e,2),t.add(o),o[0]==="="&&Pt(e,19);{const a=/["'<]/g;let c;for(;c=a.exec(o);)Pt(e,17,c.index)}hn(e,o.length);let i;/^[\t\r\n\f ]*=/.test(e.source)&&(Ea(e),hn(e,1),Ea(e),i=eF(e),i||Pt(e,13));const l=Hr(e,n);if(!e.inVPre&&/^(v-[A-Za-z0-9-]|:|\.|@|#)/.test(o)){const a=/(?:^v-([a-z0-9-]+))?(?:(?::|^\.|^@|^#)(\[[^\]]+\]|[^\.]+))?(.+)?$/i.exec(o);let c=Dn(o,"."),d=a[1]||(c||Dn(o,":")?"bind":Dn(o,"@")?"on":"slot"),p;if(a[2]){const v=d==="slot",y=o.lastIndexOf(a[2]),b=Hr(e,s1(e,n,y),s1(e,n,y+a[2].length+(v&&a[3]||"").length));let S=a[2],T=!0;S.startsWith("[")?(T=!1,S.endsWith("]")?S=S.slice(1,S.length-1):(Pt(e,27),S=S.slice(1))):v&&(S+=a[3]||""),p={type:4,content:S,isStatic:T,constType:T?3:0,loc:b}}if(i&&i.isQuoted){const v=i.loc;v.start.offset++,v.start.column++,v.end=Bc(v.start,i.content),v.source=v.source.slice(1,-1)}const h=a[3]?a[3].slice(1).split("."):[];return c&&h.push("prop"),d==="bind"&&p&&h.includes("sync")&&Sa("COMPILER_V_BIND_SYNC",e,l,p.loc.source)&&(d="model",h.splice(h.indexOf("sync"),1)),{type:7,name:d,exp:i&&{type:4,content:i.content,isStatic:!1,constType:0,loc:i.loc},arg:p,modifiers:h,loc:l}}return!e.inVPre&&Dn(o,"v-")&&Pt(e,26),{type:6,name:o,value:i&&{type:2,content:i.content,loc:i.loc},loc:l}}function eF(e){const t=Sr(e);let n;const r=e.source[0],o=r==='"'||r==="'";if(o){hn(e,1);const i=e.source.indexOf(r);i===-1?n=ta(e,e.source.length,4):(n=ta(e,i,4),hn(e,1))}else{const i=/^[^\t\r\n\f >]+/.exec(e.source);if(!i)return;const l=/["'<=`]/g;let a;for(;a=l.exec(i[0]);)Pt(e,18,a.index);n=ta(e,i[0].length,4)}return{content:n,isQuoted:o,loc:Hr(e,t)}}function tF(e,t){const[n,r]=e.options.delimiters,o=e.source.indexOf(r,n.length);if(o===-1){Pt(e,25);return}const i=Sr(e);hn(e,n.length);const l=Sr(e),a=Sr(e),c=o-n.length,d=e.source.slice(0,c),p=ta(e,c,t),h=p.trim(),v=p.indexOf(h);v>0&&jc(l,d,v);const y=c-(p.length-h.length-v);return jc(a,d,y),hn(e,r.length),{type:5,content:{type:4,isStatic:!1,constType:0,content:h,loc:Hr(e,l,a)},loc:Hr(e,i)}}function nF(e,t){const n=t===3?["]]>"]:["<",e.options.delimiters[0]];let r=e.source.length;for(let l=0;l<n.length;l++){const a=e.source.indexOf(n[l],1);a!==-1&&r>a&&(r=a)}const o=Sr(e);return{type:2,content:ta(e,r,t),loc:Hr(e,o)}}function ta(e,t,n){const r=e.source.slice(0,t);return hn(e,t),n===2||n===3||!r.includes("&")?r:e.options.decodeEntities(r,n===4)}function Sr(e){const{column:t,line:n,offset:r}=e;return{column:t,line:n,offset:r}}function Hr(e,t,n){return n=n||Sr(e),{start:t,end:n,source:e.originalSource.slice(t.offset,n.offset)}}function Id(e){return e[e.length-1]}function Dn(e,t){return e.startsWith(t)}function hn(e,t){const{source:n}=e;jc(e,n,t),e.source=n.slice(t)}function Ea(e){const t=/^[\t\r\n\f ]+/.exec(e.source);t&&hn(e,t[0].length)}function s1(e,t,n){return Bc(t,e.originalSource.slice(t.offset,n),n)}function Pt(e,t,n,r=Sr(e)){n&&(r.offset+=n,r.column+=n),e.options.onError(Wt(t,{start:r,end:r,source:""}))}function rF(e,t,n){const r=e.source;switch(t){case 0:if(Dn(r,"</")){for(let o=n.length-1;o>=0;--o)if(Mh(r,n[o].tag))return!0}break;case 1:case 2:{const o=Id(n);if(o&&Mh(r,o.tag))return!0;break}case 3:if(Dn(r,"]]>"))return!0;break}return!r}function Mh(e,t){return Dn(e,"</")&&e.slice(2,2+t.length).toLowerCase()===t.toLowerCase()&&/[\t\r\n\f />]/.test(e[2+t.length]||">")}function oF(e,t){vc(e,t,V2(e,e.children[0]))}function V2(e,t){const{children:n}=e;return n.length===1&&t.type===1&&!Hc(t)}function vc(e,t,n=!1){const{children:r}=e,o=r.length;let i=0;for(let l=0;l<r.length;l++){const a=r[l];if(a.type===1&&a.tagType===0){const c=n?0:Mr(a,t);if(c>0){if(c>=2){a.codegenNode.patchFlag="-1",a.codegenNode=t.hoist(a.codegenNode),i++;continue}}else{const d=a.codegenNode;if(d.type===13){const p=q2(d);if((!p||p===512||p===1)&&z2(a,t)>=2){const h=W2(a);h&&(d.props=t.hoist(h))}d.dynamicProps&&(d.dynamicProps=t.hoist(d.dynamicProps))}}}if(a.type===1){const c=a.tagType===1;c&&t.scopes.vSlot++,vc(a,t),c&&t.scopes.vSlot--}else if(a.type===11)vc(a,t,a.children.length===1);else if(a.type===9)for(let c=0;c<a.branches.length;c++)vc(a.branches[c],t,a.branches[c].children.length===1)}i&&t.transformHoist&&t.transformHoist(r,t,e),i&&i===o&&e.type===1&&e.tagType===0&&e.codegenNode&&e.codegenNode.type===13&&Yi(e.codegenNode.children)&&(e.codegenNode.children=t.hoist(ja(e.codegenNode.children)))}function Mr(e,t){const{constantCache:n}=t;switch(e.type){case 1:if(e.tagType!==0)return 0;const r=n.get(e);if(r!==void 0)return r;const o=e.codegenNode;if(o.type!==13||o.isBlock&&e.tag!=="svg"&&e.tag!=="foreignObject")return 0;if(q2(o))return n.set(e,0),0;{let a=3;const c=z2(e,t);if(c===0)return n.set(e,0),0;c<a&&(a=c);for(let d=0;d<e.children.length;d++){const p=Mr(e.children[d],t);if(p===0)return n.set(e,0),0;p<a&&(a=p)}if(a>1)for(let d=0;d<e.props.length;d++){const p=e.props[d];if(p.type===7&&p.name==="bind"&&p.exp){const h=Mr(p.exp,t);if(h===0)return n.set(e,0),0;h<a&&(a=h)}}if(o.isBlock){for(let d=0;d<e.props.length;d++)if(e.props[d].type===7)return n.set(e,0),0;t.removeHelper(di),t.removeHelper(el(t.inSSR,o.isComponent)),o.isBlock=!1,t.helper(Qi(t.inSSR,o.isComponent))}return n.set(e,a),a}case 2:case 3:return 3;case 9:case 11:case 10:return 0;case 5:case 12:return Mr(e.content,t);case 4:return e.constType;case 8:let l=3;for(let a=0;a<e.children.length;a++){const c=e.children[a];if(_n(c)||Km(c))continue;const d=Mr(c,t);if(d===0)return 0;d<l&&(l=d)}return l;default:return 0}}const sF=new Set([sg,ig,_a,Ba]);function H2(e,t){if(e.type===14&&!_n(e.callee)&&sF.has(e.callee)){const n=e.arguments[0];if(n.type===4)return Mr(n,t);if(n.type===14)return H2(n,t)}return 0}function z2(e,t){let n=3;const r=W2(e);if(r&&r.type===15){const{properties:o}=r;for(let i=0;i<o.length;i++){const{key:l,value:a}=o[i],c=Mr(l,t);if(c===0)return c;c<n&&(n=c);let d;if(a.type===4?d=Mr(a,t):a.type===14?d=H2(a,t):d=0,d===0)return d;d<n&&(n=d)}}return n}function W2(e){const t=e.codegenNode;if(t.type===13)return t.props}function q2(e){const t=e.patchFlag;return t?parseInt(t,10):void 0}function iF(e,{filename:t="",prefixIdentifiers:n=!1,hoistStatic:r=!1,cacheHandlers:o=!1,nodeTransforms:i=[],directiveTransforms:l={},transformHoist:a=null,isBuiltInComponent:c=Fc,isCustomElement:d=Fc,expressionPlugins:p=[],scopeId:h=null,slotted:v=!0,ssr:y=!1,inSSR:b=!1,ssrCssVars:S="",bindingMetadata:T=_6,inline:C=!1,isTS:w=!1,onError:E=Xm,onWarn:O=A2,compatConfig:$}){const P=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),R={selfName:P&&Gm(Od(P[1])),prefixIdentifiers:n,hoistStatic:r,cacheHandlers:o,nodeTransforms:i,directiveTransforms:l,transformHoist:a,isBuiltInComponent:c,isCustomElement:d,expressionPlugins:p,scopeId:h,slotted:v,ssr:y,inSSR:b,ssrCssVars:S,bindingMetadata:T,inline:C,isTS:w,onError:E,onWarn:O,compatConfig:$,root:e,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],constantCache:new Map,temps:0,cached:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,currentNode:e,childIndex:0,inVOnce:!1,helper(k){const W=R.helpers.get(k)||0;return R.helpers.set(k,W+1),k},removeHelper(k){const W=R.helpers.get(k);if(W){const U=W-1;U?R.helpers.set(k,U):R.helpers.delete(k)}},helperString(k){return`_${Ji[R.helper(k)]}`},replaceNode(k){R.parent.children[R.childIndex]=R.currentNode=k},removeNode(k){const W=R.parent.children,U=k?W.indexOf(k):R.currentNode?R.childIndex:-1;!k||k===R.currentNode?(R.currentNode=null,R.onNodeRemoved()):R.childIndex>U&&(R.childIndex--,R.onNodeRemoved()),R.parent.children.splice(U,1)},onNodeRemoved:()=>{},addIdentifiers(k){},removeIdentifiers(k){},hoist(k){_n(k)&&(k=dt(k)),R.hoists.push(k);const W=dt(`_hoisted_${R.hoists.length}`,!1,k.loc,2);return W.hoisted=k,W},cache(k,W=!1){return L6(R.cached++,k,W)}};return R.filters=new Set,R}function lF(e,t){const n=iF(e,t);Pd(e,n),t.hoistStatic&&oF(e,n),t.ssr||aF(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.filters=[...n.filters]}function aF(e,t){const{helper:n}=t,{children:r}=e;if(r.length===1){const o=r[0];if(V2(e,o)&&o.codegenNode){const i=o.codegenNode;i.type===13&&dg(i,t),e.codegenNode=i}else e.codegenNode=o}else if(r.length>1){let o=64;e.codegenNode=ba(t,n(ya),void 0,e.children,o+"",void 0,void 0,!0,void 0,!1)}}function uF(e,t){let n=0;const r=()=>{n--};for(;n<e.children.length;n++){const o=e.children[n];_n(o)||(t.parent=e,t.childIndex=n,t.onNodeRemoved=r,Pd(o,t))}}function Pd(e,t){t.currentNode=e;const{nodeTransforms:n}=t,r=[];for(let i=0;i<n.length;i++){const l=n[i](e,t);if(l&&(Yi(l)?r.push(...l):r.push(l)),t.currentNode)e=t.currentNode;else return}switch(e.type){case 3:t.ssr||t.helper(Ua);break;case 5:t.ssr||t.helper(Ad);break;case 9:for(let i=0;i<e.branches.length;i++)Pd(e.branches[i],t);break;case 10:case 11:case 1:case 0:uF(e,t);break}t.currentNode=e;let o=r.length;for(;o--;)r[o]()}function K2(e,t){const n=_n(e)?r=>r===e:r=>e.test(r);return(r,o)=>{if(r.type===1){const{props:i}=r;if(r.tagType===3&&i.some(V6))return;const l=[];for(let a=0;a<i.length;a++){const c=i[a];if(c.type===7&&n(c.name)){i.splice(a,1),a--;const d=t(r,c,o);d&&l.push(d)}}return l}}}const Rd="/*#__PURE__*/",G2=e=>`${Ji[e]}: _${Ji[e]}`;function cF(e,{mode:t="function",prefixIdentifiers:n=t==="module",sourceMap:r=!1,filename:o="template.vue.html",scopeId:i=null,optimizeImports:l=!1,runtimeGlobalName:a="Vue",runtimeModuleName:c="vue",ssrRuntimeModuleName:d="vue/server-renderer",ssr:p=!1,isTS:h=!1,inSSR:v=!1}){const y={mode:t,prefixIdentifiers:n,sourceMap:r,filename:o,scopeId:i,optimizeImports:l,runtimeGlobalName:a,runtimeModuleName:c,ssrRuntimeModuleName:d,ssr:p,isTS:h,inSSR:v,source:e.loc.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(S){return`_${Ji[S]}`},push(S,T){y.code+=S},indent(){b(++y.indentLevel)},deindent(S=!1){S?--y.indentLevel:b(--y.indentLevel)},newline(){b(y.indentLevel)}};function b(S){y.push(` 3 `+" ".repeat(S))}return y}function dF(e,t={}){const n=cF(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:r,push:o,prefixIdentifiers:i,indent:l,deindent:a,newline:c,scopeId:d,ssr:p}=n,h=Array.from(e.helpers),v=h.length>0,y=!i&&r!=="module";fF(e,n);const S=p?"ssrRender":"render",C=(p?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ");if(o(`function ${S}(${C}) {`),l(),y&&(o("with (_ctx) {"),l(),v&&(o(`const { ${h.map(G2).join(", ")} } = _Vue`),o(` 4 `),c())),e.components.length&&(jp(e.components,"component",n),(e.directives.length||e.temps>0)&&c()),e.directives.length&&(jp(e.directives,"directive",n),e.temps>0&&c()),e.filters&&e.filters.length&&(c(),jp(e.filters,"filter",n),c()),e.temps>0){o("let ");for(let w=0;w<e.temps;w++)o(`${w>0?", ":""}_temp${w}`)}return(e.components.length||e.directives.length||e.temps)&&(o(` 5 5 `),c()),p||o("return "),e.codegenNode?Bn(e.codegenNode,n):o("null"),y&&(a(),o("}")),a(),o("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}function fF(e,t){const{ssr:n,prefixIdentifiers:r,push:o,newline:i,runtimeModuleName:l,runtimeGlobalName:a,ssrRuntimeModuleName:c}=t,d=a,p=Array.from(e.helpers);if(p.length>0&&(o(`const _Vue = ${d} 6 `),e.hoists.length)){const h=[ Ym,Jm,Ua,Zm,L2].filter(v=>p.includes(v)).map(X2).join(", ");o(`const { ${h} } = _Vue7 `)}pF(e.hoists,t),i(),o("return ")}function Bp(e,t,{helper:n,push:r,newline:o,isTS:i}){const l=n(t==="filter"?tg:t==="component"?Qm:eg);for(let a=0;a<e.length;a++){let c=e[a];const d=c.endsWith("__self");d&&(c=c.slice(0,-6)),r(`const ${wa(c,t)} = ${l}(${JSON.stringify(c)}${d?", true":""})${i?"!":""}`),a<e.length-1&&o()}}function pF(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:r,helper:o,scopeId:i,mode:l}=t;r();for(let a=0;a<e.length;a++){const c=e[a];c&&(n(`const _hoisted_${a+1} = `),Bn(c,t),r())}t.pure=!1}function fg(e,t){const n=e.length>3||!1;t.push("["),n&&t.indent(),Va(e,t,n),n&&t.deindent(),t.push("]")}function Va(e,t,n=!1,r=!0){const{push:o,newline:i}=t;for(let l=0;l<e.length;l++){const a=e[l];_n(a)?o(a):Yi(a)?fg(a,t):Bn(a,t),l<e.length-1&&(n?(r&&o(","),i()):r&&o(", "))}}function Bn(e,t){if(_n(e)){t.push(e);return}if(qm(e)){t.push(t.helper(e));return}switch(e.type){case 1:case 9:case 11:Bn(e.codegenNode,t);break;case 2:hF(e,t);break;case 4:Y2(e,t);break;case 5:mF(e,t);break;case 12:Bn(e.codegenNode,t);break;case 8:J2(e,t);break;case 3:vF(e,t);break;case 13:yF(e,t);break;case 14:bF(e,t);break;case 15:wF(e,t);break;case 17:SF(e,t);break;case 18:EF(e,t);break;case 19:$F(e,t);break;case 20:xF(e,t);break;case 21:Va(e.body,t,!0,!1);break}}function hF(e,t){t.push(JSON.stringify(e.content),e)}function Y2(e,t){const{content:n,isStatic:r}=e;t.push(r?JSON.stringify(n):n,e)}function mF(e,t){const{push:n,helper:r,pure:o}=t;o&&n(Rd),n(`${r(Ad)}(`),Bn(e.content,t),n(")")}function J2(e,t){for(let n=0;n<e.children.length;n++){const r=e.children[n];_n(r)?t.push(r):Bn(r,t)}}function gF(e,t){const{push:n}=t;if(e.type===8)n("["),J2(e,t),n("]");else if(e.isStatic){const r=ug(e.content)?e.content:JSON.stringify(e.content);n(r,e)}else n(`[${e.content}]`,e)}function vF(e,t){const{push:n,helper:r,pure:o}=t;o&&n(Rd),n(`${r(Ua)}(${JSON.stringify(e.content)})`,e)}function yF(e,t){const{push:n,helper:r,pure:o}=t,{tag:i,props:l,children:a,patchFlag:c,dynamicProps:d,directives:p,isBlock:h,disableTracking:v,isComponent:y}=e;p&&n(r(ng)+"("),h&&n(`(${r(di)}(${v?"true":""}), `),o&&n(Rd);const b=h?el(t.inSSR,y):Qi(t.inSSR,y);n(r(b)+"(",e),Va(_F([i,l,a,c,d]),t),n(")"),h&&n(")"),p&&(n(", "),Bn(p,t),n(")"))}function _F(e){let t=e.length;for(;t--&&e[t]==null;);return e.slice(0,t+1).map(n=>n||"null")}function bF(e,t){const{push:n,helper:r,pure:o}=t,i=_n(e.callee)?e.callee:r(e.callee);o&&n(Rd),n(i+"(",e),Va(e.arguments,t),n(")")}function wF(e,t){const{push:n,indent:r,deindent:o,newline:i}=t,{properties:l}=e;if(!l.length){n("{}",e);return}const a=l.length>1||!1;n(a?"{":"{ "),a&&r();for(let c=0;c<l.length;c++){const{key:d,value:p}=l[c];gF(d,t),n(": "),Bn(p,t),c<l.length-1&&(n(","),i())}a&&o(),n(a?"}":" }")}function SF(e,t){fg(e.elements,t)}function EF(e,t){const{push:n,indent:r,deindent:o}=t,{params:i,returns:l,body:a,newline:c,isSlot:d}=e;d&&n(`_${Ji[lg]}(`),n("(",e),Yi(i)?Va(i,t):i&&Bn(i,t),n(") => "),(c||a)&&(n("{"),r()),l?(c&&n("return "),Yi(l)?fg(l,t):Bn(l,t)):a&&Bn(a,t),(c||a)&&(o(),n("}")),d&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}function $F(e,t){const{test:n,consequent:r,alternate:o,newline:i}=e,{push:l,indent:a,deindent:c,newline:d}=t;if(n.type===4){const h=!ug(n.content);h&&l("("),Y2(n,t),h&&l(")")}else l("("),Bn(n,t),l(")");i&&a(),t.indentLevel++,i||l(" "),l("? "),Bn(r,t),t.indentLevel--,i&&d(),i||l(" "),l(": ");const p=o.type===19;p||t.indentLevel++,Bn(o,t),p||t.indentLevel--,i&&c(!0)}function xF(e,t){const{push:n,helper:r,indent:o,deindent:i,newline:l}=t;n(`_cache[${e.index}] || (`),e.isVNode&&(o(),n(`${r(Uc)}(-1),`),l()),n(`_cache[${e.index}] = `),Bn(e.value,t),e.isVNode&&(n(","),l(),n(`${r(Uc)}(1),`),l(),n(`_cache[${e.index}]`),i()),n(")")}new RegExp("\\b"+"arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b")+"\\b");const TF=G2(/^(if|else|else-if)$/,(e,t,n)=>CF(e,t,n,(r,o,i)=>{const l=n.parent.children;let a=l.indexOf(r),c=0;for(;a-->=0;){const d=l[a];d&&d.type===9&&(c+=d.branches.length)}return()=>{if(i)r.codegenNode=a_(o,c,n);else{const d=OF(r.codegenNode);d.alternate=a_(o,c+r.branches.length-1,n)}}}));function CF(e,t,n,r){if(t.name!=="else"&&(!t.exp||!t.exp.content.trim())){const o=t.exp?t.exp.loc:e.loc;n.onError(Wt(28,t.loc)),t.exp=dt("true",!1,o)}if(t.name==="if"){const o=l_(e,t),i={type:9,loc:e.loc,branches:[o]};if(n.replaceNode(i),r)return r(i,o,!0)}else{const o=n.parent.children;let i=o.indexOf(e);for(;i-->=-1;){const l=o[i];if(l&&l.type===3){n.removeNode(l);continue}if(l&&l.type===2&&!l.content.trim().length){n.removeNode(l);continue}if(l&&l.type===9){t.name==="else-if"&&l.branches[l.branches.length-1].condition===void 0&&n.onError(Wt(30,e.loc)),n.removeNode();const a=l_(e,t);l.branches.push(a);const c=r&&r(l,a,!1);Pd(a,n),c&&c(),n.currentNode=null}else n.onError(Wt(30,e.loc));break}}}function l_(e,t){const n=e.tagType===3;return{type:10,loc:e.loc,condition:t.name==="else"?void 0:t.exp,children:n&&!Lr(e,"for")?e.children:[e],userKey:kd(e,"key"),isTemplateIf:n}}function a_(e,t,n){return e.condition?Lh(e.condition,u_(e,t,n),on(n.helper(Ua),['""',"true"])):u_(e,t,n)}function u_(e,t,n){const{helper:r}=n,o=Zt("key",dt(`${t}`,!1,$r,2)),{children:i}=e,l=i[0];if(i.length!==1||l.type!==1)if(i.length===1&&l.type===11){const c=l.codegenNode;return zc(c,o,n),c}else return ba(n,r(ya),Fr([o]),i,64+"",void 0,void 0,!0,!1,!1,e.loc);else{const c=l.codegenNode,d=z6(c);return d.type===13&&cg(d,n),zc(d,o,n),c}}function OF(e){for(;;)if(e.type===19)if(e.alternate.type===19)e=e.alternate;else return e;else e.type===20&&(e=e.value)}const AF=G2("for",(e,t,n)=>{const{helper:r,removeHelper:o}=n;return kF(e,t,n,i=>{const l=on(r(rg),[i.source]),a=Vc(e),c=Lr(e,"memo"),d=kd(e,"key"),p=d&&(d.type===6?dt(d.value.content,!0):d.exp),h=d?Zt("key",p):null,v=i.source.type===4&&i.source.constType>0,y=v?64:d?128:256;return i.codegenNode=ba(n,r(ya),void 0,l,y+"",void 0,void 0,!0,!v,!1,e.loc),()=>{let b;const{children:S}=i,T=S.length!==1||S[0].type!==1,C=Hc(e)?e:a&&e.children.length===1&&Hc(e.children[0])?e.children[0]:null;if(C?(b=C.codegenNode,a&&h&&zc(b,h,n)):T?b=ba(n,r(ya),h?Fr([h]):void 0,e.children,"64",void 0,void 0,!0,void 0,!1):(b=S[0].codegenNode,a&&h&&zc(b,h,n),b.isBlock!==!v&&(b.isBlock?(o(di),o(el(n.inSSR,b.isComponent))):o(Qi(n.inSSR,b.isComponent))),b.isBlock=!v,b.isBlock?(r(di),r(el(n.inSSR,b.isComponent))):r(Qi(n.inSSR,b.isComponent))),c){const w=Zi(Mh(i.parseResult,[dt("_cached")]));w.body=F6([no(["const _memo = (",c.exp,")"]),no(["if (_cached",...p?[" && _cached.key === ",p]:[],` && ${n.helperString(M2)}(_cached, _memo)) return _cached`]),no(["const _item = ",b]),dt("_item.memo = _memo"),dt("return _item")]),l.arguments.push(w,dt("_cache"),dt(String(n.cached++)))}else l.arguments.push(Zi(Mh(i.parseResult),b,!0))}})});function kF(e,t,n,r){if(!t.exp){n.onError(Wt(31,t.loc));return}const o=Z2(t.exp);if(!o){n.onError(Wt(32,t.loc));return}const{addIdentifiers:i,removeIdentifiers:l,scopes:a}=n,{source:c,value:d,key:p,index:h}=o,v={type:11,loc:t.loc,source:c,valueAlias:d,keyAlias:p,objectIndexAlias:h,parseResult:o,children:Vc(e)?e.children:[e]};n.replaceNode(v),a.vFor++;const y=r&&r(v);return()=>{a.vFor--,y&&y()}}const IF=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,c_=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,PF=/^\(|\)$/g;function Z2(e,t){const n=e.loc,r=e.content,o=r.match(IF);if(!o)return;const[,i,l]=o,a={source:nc(n,l.trim(),r.indexOf(l,i.length)),value:void 0,key:void 0,index:void 0};let c=i.trim().replace(PF,"").trim();const d=i.indexOf(c),p=c.match(c_);if(p){c=c.replace(c_,"").trim();const h=p[1].trim();let v;if(h&&(v=r.indexOf(h,d+c.length),a.key=nc(n,h,v)),p[2]){const y=p[2].trim();y&&(a.index=nc(n,y,r.indexOf(y,a.key?v+h.length:d+c.length)))}}return c&&(a.value=nc(n,c,d)),a}function nc(e,t,n){return dt(t,!1,B2(e,n,t.length))}function Mh({value:e,key:t,index:n},r=[]){return RF([e,t,n,...r])}function RF(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((n,r)=>n||dt("_".repeat(r+1),!1))}const d_=dt("undefined",!1),LF=(e,t)=>{if(e.type===1&&(e.tagType===1||e.tagType===3)){const n=Lr(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},FF=(e,t,n)=>Zi(e,t,!1,!0,t.length?t[0].loc:n);function NF(e,t,n=FF){t.helper(lg);const{children:r,loc:o}=e,i=[],l=[];let a=t.scopes.vSlot>0||t.scopes.vFor>0;const c=Lr(e,"slot",!0);if(c){const{arg:T,exp:C}=c;T&&!tr(T)&&(a=!0),i.push(Zt(T||dt("default",!0),n(C,r,o)))}let d=!1,p=!1;const h=[],v=new Set;let y=0;for(let T=0;T<r.length;T++){const C=r[T];let w;if(!Vc(C)||!(w=Lr(C,"slot",!0))){C.type!==3&&h.push(C);continue}if(c){t.onError(Wt(37,w.loc));break}d=!0;const{children:E,loc:O}=C,{arg:$=dt("default",!0),exp:P,loc:R}=w;let k;tr($)?k=$?$.content:"default":a=!0;const W=n(P,E,O);let U,j,G;if(U=Lr(C,"if"))a=!0,l.push(Lh(U.exp,rc($,W,y++),d_));else if(j=Lr(C,/^else(-if)?$/,!0)){let X=T,ne;for(;X--&&(ne=r[X],ne.type===3););if(ne&&Vc(ne)&&Lr(ne,"if")){r.splice(T,1),T--;let xe=l[l.length-1];for(;xe.alternate.type===19;)xe=xe.alternate;xe.alternate=j.exp?Lh(j.exp,rc($,W,y++),d_):rc($,W,y++)}else t.onError(Wt(30,j.loc))}else if(G=Lr(C,"for")){a=!0;const X=G.parseResult||Z2(G.exp);X?l.push(on(t.helper(rg),[X.source,Zi(Mh(X),rc($,W),!0)])):t.onError(Wt(32,G.loc))}else{if(k){if(v.has(k)){t.onError(Wt(38,R));continue}v.add(k),k==="default"&&(p=!0)}i.push(Zt($,W))}}if(!c){const T=(C,w)=>{const E=n(C,w,o);return t.compatConfig&&(E.isNonScopedSlot=!0),Zt("default",E)};d?h.length&&h.some(C=>Q2(C))&&(p?t.onError(Wt(39,h[0].loc)):i.push(T(void 0,h))):i.push(T(void 0,r))}const b=a?2:yc(e.children)?3:1;let S=Fr(i.concat(Zt("_",dt(b+"",!1))),o);return l.length&&(S=on(t.helper(N2),[S,ja(l)])),{slots:S,hasDynamicSlots:a}}function rc(e,t,n){const r=[Zt("name",e),Zt("fn",t)];return n!=null&&r.push(Zt("key",dt(String(n),!0))),Fr(r)}function yc(e){for(let t=0;t<e.length;t++){const n=e[t];switch(n.type){case 1:if(n.tagType===2||yc(n.children))return!0;break;case 9:if(yc(n.branches))return!0;break;case 10:case 11:if(yc(n.children))return!0;break}}return!1}function Q2(e){return e.type!==2&&e.type!==12?!0:e.type===2?!!e.content.trim():Q2(e.content)}const eS=new WeakMap,MF=(e,t)=>function(){if(e=t.currentNode,!(e.type===1&&(e.tagType===0||e.tagType===1)))return;const{tag:r,props:o}=e,i=e.tagType===1;let l=i?DF(e,t):`"${r}"`;const a=w6(l)&&l.callee===Mc;let c,d,p,h=0,v,y,b,S=a||l===ea||l===Xm||!i&&(r==="svg"||r==="foreignObject");if(o.length>0){const T=tS(e,t,void 0,i,a);c=T.props,h=T.patchFlag,y=T.dynamicPropNames;const C=T.directives;b=C&&C.length?ja(C.map(w=>BF(w,t))):void 0,T.shouldUseBlock&&(S=!0)}if(e.children.length>0)if(l===Nc&&(S=!0,h|=1024),i&&l!==ea&&l!==Nc){const{slots:C,hasDynamicSlots:w}=NF(e,t);d=C,w&&(h|=1024)}else if(e.children.length===1&&l!==ea){const C=e.children[0],w=C.type,E=w===5||w===8;E&&Nr(C,t)===0&&(h|=1),E||w===2?d=C:d=e.children}else d=e.children;h!==0&&(p=String(h),y&&y.length&&(v=jF(y))),e.codegenNode=ba(t,l,c,d,p,v,b,!!S,!1,i,e.loc)};function DF(e,t,n=!1){let{tag:r}=e;const o=Dh(r),i=kd(e,"is");if(i)if(o||ni("COMPILER_IS_ON_ELEMENT",t)){const c=i.type===6?i.value&&dt(i.value.content,!0):i.exp;if(c)return on(t.helper(Mc),[c])}else i.type===6&&i.value.content.startsWith("vue:")&&(r=i.value.content.slice(4));const l=!o&&Lr(e,"is");if(l&&l.exp)return on(t.helper(Mc),[l.exp]);const a=D2(r)||t.isBuiltInComponent(r);return a?(n||t.helper(a),a):(t.helper(Qm),t.components.add(r),wa(r,"component"))}function tS(e,t,n=e.props,r,o,i=!1){const{tag:l,loc:a,children:c}=e;let d=[];const p=[],h=[],v=c.length>0;let y=!1,b=0,S=!1,T=!1,C=!1,w=!1,E=!1,O=!1;const $=[],P=W=>{d.length&&(p.push(Fr(f_(d),a)),d=[]),W&&p.push(W)},R=({key:W,value:U})=>{if(tr(W)){const j=W.content,G=A2(j);if(G&&(!r||o)&&j.toLowerCase()!=="onclick"&&j!=="onUpdate:modelValue"&&!e_(j)&&(w=!0),G&&e_(j)&&(O=!0),U.type===20||(U.type===4||U.type===8)&&Nr(U,t)>0)return;j==="ref"?S=!0:j==="class"?T=!0:j==="style"?C=!0:j!=="key"&&!$.includes(j)&&$.push(j),r&&(j==="class"||j==="style")&&!$.includes(j)&&$.push(j)}else E=!0};for(let W=0;W<n.length;W++){const U=n[W];if(U.type===6){const{loc:j,name:G,value:X}=U;let ne=!0;if(G==="ref"&&(S=!0,t.scopes.vFor>0&&d.push(Zt(dt("ref_for",!0),dt("true")))),G==="is"&&(Dh(l)||X&&X.content.startsWith("vue:")||ni("COMPILER_IS_ON_ELEMENT",t)))continue;d.push(Zt(dt(G,!0,B2(j,0,G.length)),dt(X?X.content:"",ne,X?X.loc:j)))}else{const{name:j,arg:G,exp:X,loc:ne}=U,xe=j==="bind",Ee=j==="on";if(j==="slot"){r||t.onError(Wt(40,ne));continue}if(j==="once"||j==="memo"||j==="is"||xe&&Xs(G,"is")&&(Dh(l)||ni("COMPILER_IS_ON_ELEMENT",t))||Ee&&i)continue;if((xe&&Xs(G,"key")||Ee&&v&&Xs(G,"vue:before-update"))&&(y=!0),xe&&Xs(G,"ref")&&t.scopes.vFor>0&&d.push(Zt(dt("ref_for",!0),dt("true"))),!G&&(xe||Ee)){if(E=!0,X)if(xe){if(P(),ni("COMPILER_V_BIND_OBJECT_ORDER",t)){p.unshift(X);continue}p.push(X)}else P({type:14,loc:ne,callee:t.helper(ig),arguments:r?[X]:[X,"true"]});else t.onError(Wt(xe?34:35,ne));continue}const ke=t.directiveTransforms[j];if(ke){const{props:Ie,needRuntime:Qe}=ke(U,e,t);!i&&Ie.forEach(R),Ee&&G&&!tr(G)?P(Fr(Ie,a)):d.push(...Ie),Qe&&(h.push(U),qm(Qe)&&eS.set(U,Qe))}else S6(j)||(h.push(U),v&&(y=!0))}}let k;if(p.length?(P(),p.length>1?k=on(t.helper(Dc),p,a):k=p[0]):d.length&&(k=Fr(f_(d),a)),E?b|=16:(T&&!r&&(b|=2),C&&!r&&(b|=4),$.length&&(b|=8),w&&(b|=32)),!y&&(b===0||b===32)&&(S||O||h.length>0)&&(b|=512),!t.inSSR&&k)switch(k.type){case 15:let W=-1,U=-1,j=!1;for(let ne=0;ne<k.properties.length;ne++){const xe=k.properties[ne].key;tr(xe)?xe.content==="class"?W=ne:xe.content==="style"&&(U=ne):xe.isHandlerKey||(j=!0)}const G=k.properties[W],X=k.properties[U];j?k=on(t.helper(_a),[k]):(G&&!tr(G.value)&&(G.value=on(t.helper(og),[G.value])),X&&(C||X.value.type===4&&X.value.content.trim()[0]==="["||X.value.type===17)&&(X.value=on(t.helper(sg),[X.value])));break;case 14:break;default:k=on(t.helper(_a),[on(t.helper(Ba),[k])]);break}return{props:k,directives:h,patchFlag:b,dynamicPropNames:$,shouldUseBlock:y}}function f_(e){const t=new Map,n=[];for(let r=0;r<e.length;r++){const o=e[r];if(o.key.type===8||!o.key.isStatic){n.push(o);continue}const i=o.key.content,l=t.get(i);l?(i==="style"||i==="class"||A2(i))&&UF(l,o):(t.set(i,o),n.push(o))}return n}function UF(e,t){e.value.type===17?e.value.elements.push(t.value):e.value=ja([e.value,t.value],e.loc)}function BF(e,t){const n=[],r=eS.get(e);r?n.push(t.helperString(r)):(t.helper(eg),t.directives.add(e.name),n.push(wa(e.name,"directive")));const{loc:o}=e;if(e.exp&&n.push(e.exp),e.arg&&(e.exp||n.push("void 0"),n.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));const i=dt("true",!1,o);n.push(Fr(e.modifiers.map(l=>Zt(l,i)),o))}return ja(n,e.loc)}function jF(e){let t="[";for(let n=0,r=e.length;n<r;n++)t+=JSON.stringify(e[n]),n<r-1&&(t+=", ");return t+"]"}function Dh(e){return e==="component"||e==="Component"}const VF=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},HF=/-(\w)/g,p_=VF(e=>e.replace(HF,(t,n)=>n?n.toUpperCase():"")),zF=(e,t)=>{if(Hc(e)){const{children:n,loc:r}=e,{slotName:o,slotProps:i}=WF(e,t),l=[t.prefixIdentifiers?"_ctx.$slots":"$slots",o,"{}","undefined","true"];let a=2;i&&(l[2]=i,a=3),n.length&&(l[3]=Zi([],n,!1,!1,r),a=4),t.scopeId&&!t.slotted&&(a=5),l.splice(a),e.codegenNode=on(t.helper(F2),l,r)}};function WF(e,t){let n='"default"',r;const o=[];for(let i=0;i<e.props.length;i++){const l=e.props[i];l.type===6?l.value&&(l.name==="name"?n=JSON.stringify(l.value.content):(l.name=p_(l.name),o.push(l))):l.name==="bind"&&Xs(l.arg,"name")?l.exp&&(n=l.exp):(l.name==="bind"&&l.arg&&tr(l.arg)&&(l.arg.content=p_(l.arg.content)),o.push(l))}if(o.length>0){const{props:i,directives:l}=tS(e,t,o,!1,!1);r=i,l.length&&t.onError(Wt(36,l[0].loc))}return{slotName:n,slotProps:r}}const qF=/^\s*([\w$_]+|(async\s*)?\([^)]*?\))\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,nS=(e,t,n,r)=>{const{loc:o,modifiers:i,arg:l}=e;!e.exp&&!i.length&&n.onError(Wt(35,o));let a;if(l.type===4)if(l.isStatic){let h=l.content;h.startsWith("vue:")&&(h=`vnode-${h.slice(4)}`);const v=t.tagType!==0||h.startsWith("vnode")||!/[A-Z]/.test(h)?T6(Od(h)):`on:${h}`;a=dt(v,!0,l.loc)}else a=no([`${n.helperString(Rh)}(`,l,")"]);else a=l,a.children.unshift(`${n.helperString(Rh)}(`),a.children.push(")");let c=e.exp;c&&!c.content.trim()&&(c=void 0);let d=n.cacheHandlers&&!c&&!n.inVOnce;if(c){const h=U2(c.content),v=!(h||qF.test(c.content)),y=c.content.includes(";");(v||d&&h)&&(c=no([`${v?"$event":"(...args)"} => ${y?"{":"("}`,c,y?"}":")"]))}let p={props:[Zt(a,c||dt("() => {}",!1,o))]};return r&&(p=r(p)),d&&(p.props[0].value=n.cache(p.props[0].value)),p.props.forEach(h=>h.key.isHandlerKey=!0),p},KF=(e,t,n)=>{const{exp:r,modifiers:o,loc:i}=e,l=e.arg;return l.type!==4?(l.children.unshift("("),l.children.push(') || ""')):l.isStatic||(l.content=`${l.content} || ""`),o.includes("camel")&&(l.type===4?l.isStatic?l.content=Od(l.content):l.content=`${n.helperString(Ph)}(${l.content})`:(l.children.unshift(`${n.helperString(Ph)}(`),l.children.push(")"))),n.inSSR||(o.includes("prop")&&h_(l,"."),o.includes("attr")&&h_(l,"^")),!r||r.type===4&&!r.content.trim()?(n.onError(Wt(34,i)),{props:[Zt(l,dt("",!0,i))]}):{props:[Zt(l,r)]}},h_=(e,t)=>{e.type===4?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},GF=(e,t)=>{if(e.type===0||e.type===1||e.type===11||e.type===10)return()=>{const n=e.children;let r,o=!1;for(let i=0;i<n.length;i++){const l=n[i];if(Up(l)){o=!0;for(let a=i+1;a<n.length;a++){const c=n[a];if(Up(c))r||(r=n[i]=no([l],l.loc)),r.children.push(" + ",c),n.splice(a,1),a--;else{r=void 0;break}}}}if(!(!o||n.length===1&&(e.type===0||e.type===1&&e.tagType===0&&!e.props.find(i=>i.type===7&&!t.directiveTransforms[i.name])&&e.tag!=="template")))for(let i=0;i<n.length;i++){const l=n[i];if(Up(l)||l.type===8){const a=[];(l.type!==2||l.content!==" ")&&a.push(l),!t.ssr&&Nr(l,t)===0&&a.push("1"),n[i]={type:12,content:l,loc:l.loc,codegenNode:on(t.helper(Zm),a)}}}}},m_=new WeakSet,XF=(e,t)=>{if(e.type===1&&Lr(e,"once",!0))return m_.has(e)||t.inVOnce?void 0:(m_.add(e),t.inVOnce=!0,t.helper(Uc),()=>{t.inVOnce=!1;const n=t.currentNode;n.codegenNode&&(n.codegenNode=t.cache(n.codegenNode,!0))})},rS=(e,t,n)=>{const{exp:r,arg:o}=e;if(!r)return n.onError(Wt(41,e.loc)),oc();const i=r.loc.source,l=r.type===4?r.content:i,a=n.bindingMetadata[i];if(a==="props"||a==="props-aliased")return n.onError(Wt(44,r.loc)),oc();if(!l.trim()||!U2(l)&&!!1)return n.onError(Wt(42,r.loc)),oc();const d=o||dt("modelValue",!0),p=o?tr(o)?`onUpdate:${Od(o.content)}`:no(['"onUpdate:" + ',o]):"onUpdate:modelValue";let h;const v=n.isTS?"($event: any)":"$event";h=no([`${v} => ((`,r,") = $event)"]);const y=[Zt(d,e.exp),Zt(p,h)];if(e.modifiers.length&&t.tagType===1){const b=e.modifiers.map(T=>(ug(T)?T:JSON.stringify(T))+": true").join(", "),S=o?tr(o)?`${o.content}Modifiers`:no([o,' + "Modifiers"']):"modelModifiers";y.push(Zt(S,dt(`{ ${b} }`,!1,e.loc,2)))}return oc(y)};function oc(e=[]){return{props:e}}const YF=/[\w).+\-_$\]]/,JF=(e,t)=>{ni("COMPILER_FILTER",t)&&(e.type===5&&Wc(e.content,t),e.type===1&&e.props.forEach(n=>{n.type===7&&n.name!=="for"&&n.exp&&Wc(n.exp,t)}))};function Wc(e,t){if(e.type===4)g_(e,t);else for(let n=0;n<e.children.length;n++){const r=e.children[n];typeof r=="object"&&(r.type===4?g_(r,t):r.type===8?Wc(e,t):r.type===5&&Wc(r.content,t))}}function g_(e,t){const n=e.content;let r=!1,o=!1,i=!1,l=!1,a=0,c=0,d=0,p=0,h,v,y,b,S=[];for(y=0;y<n.length;y++)if(v=h,h=n.charCodeAt(y),r)h===39&&v!==92&&(r=!1);else if(o)h===34&&v!==92&&(o=!1);else if(i)h===96&&v!==92&&(i=!1);else if(l)h===47&&v!==92&&(l=!1);else if(h===124&&n.charCodeAt(y+1)!==124&&n.charCodeAt(y-1)!==124&&!a&&!c&&!d)b===void 0?(p=y+1,b=n.slice(0,y).trim()):T();else{switch(h){case 34:o=!0;break;case 39:r=!0;break;case 96:i=!0;break;case 40:d++;break;case 41:d--;break;case 91:c++;break;case 93:c--;break;case 123:a++;break;case 125:a--;break}if(h===47){let C=y-1,w;for(;C>=0&&(w=n.charAt(C),w===" ");C--);(!w||!YF.test(w))&&(l=!0)}}b===void 0?b=n.slice(0,y).trim():p!==0&&T();function T(){S.push(n.slice(p,y).trim()),p=y+1}if(S.length){for(y=0;y<S.length;y++)b=ZF(b,S[y],t);e.content=b}}function ZF(e,t,n){n.helper(tg);const r=t.indexOf("(");if(r<0)return n.filters.add(t),`${wa(t,"filter")}(${e})`;{const o=t.slice(0,r),i=t.slice(r+1);return n.filters.add(o),`${wa(o,"filter")}(${e}${i!==")"?","+i:i}`}}const v_=new WeakSet,QF=(e,t)=>{if(e.type===1){const n=Lr(e,"memo");return!n||v_.has(e)?void 0:(v_.add(e),()=>{const r=e.codegenNode||t.currentNode.codegenNode;r&&r.type===13&&(e.tagType!==1&&cg(r,t),e.codegenNode=on(t.helper(ag),[n.exp,Zi(void 0,r),"_cache",String(t.cached++)]))})}};function e7(e){return[[XF,TF,QF,AF,JF,zF,MF,LF,GF],{on:nS,bind:KF,model:rS}]}function t7(e,t={}){const n=t.onError||Gm,r=t.mode==="module";t.prefixIdentifiers===!0?n(Wt(47)):r&&n(Wt(48));const o=!1;t.cacheHandlers&&n(Wt(49)),t.scopeId&&!r&&n(Wt(50));const i=_n(e)?K6(e,t):e,[l,a]=e7();return lF(i,Wo({},t,{prefixIdentifiers:o,nodeTransforms:[...l,...t.nodeTransforms||[]],directiveTransforms:Wo({},a,t.directiveTransforms||{})})),dF(i,Wo({},t,{prefixIdentifiers:o}))}const n7=()=>({props:[]}),oS=Symbol(""),sS=Symbol(""),iS=Symbol(""),lS=Symbol(""),Uh=Symbol(""),aS=Symbol(""),uS=Symbol(""),cS=Symbol(""),dS=Symbol(""),fS=Symbol("");P6({[oS]:"vModelRadio",[sS]:"vModelCheckbox",[iS]:"vModelText",[lS]:"vModelSelect",[Uh]:"vModelDynamic",[aS]:"withModifiers",[uS]:"withKeys",[cS]:"vShow",[dS]:"Transition",[fS]:"TransitionGroup"});let Ni;function r7(e,t=!1){return Ni||(Ni=document.createElement("div")),t?(Ni.innerHTML=`<div foo="${e.replace(/"/g,""")}">`,Ni.children[0].getAttribute("foo")):(Ni.innerHTML=e,Ni.textContent)}const o7=uo("style,iframe,script,noscript",!0),s7={isVoidTag:y6,isNativeTag:e=>g6(e)||v6(e),isPreTag:e=>e==="pre",decodeEntities:r7,isBuiltInComponent:e=>{if(Di(e,"Transition"))return dS;if(Di(e,"TransitionGroup"))return fS},getNamespace(e,t){let n=t?t.ns:0;if(t&&n===2)if(t.tag==="annotation-xml"){if(e==="svg")return 1;t.props.some(r=>r.type===6&&r.name==="encoding"&&r.value!=null&&(r.value.content==="text/html"||r.value.content==="application/xhtml+xml"))&&(n=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&e!=="mglyph"&&e!=="malignmark"&&(n=0);else t&&n===1&&(t.tag==="foreignObject"||t.tag==="desc"||t.tag==="title")&&(n=0);if(n===0){if(e==="svg")return 1;if(e==="math")return 2}return n},getTextMode({tag:e,ns:t}){if(t===0){if(e==="textarea"||e==="title")return 1;if(o7(e))return 2}return 0}},i7=e=>{e.type===1&&e.props.forEach((t,n)=>{t.type===6&&t.name==="style"&&t.value&&(e.props[n]={type:7,name:"bind",arg:dt("style",!0,t.loc),exp:l7(t.value.content,t.loc),modifiers:[],loc:t.loc})})},l7=(e,t)=>{const n=f6(e);return dt(JSON.stringify(n),!1,t,3)};function qo(e,t){return Wt(e,t)}const a7=(e,t,n)=>{const{exp:r,loc:o}=e;return r||n.onError(qo(51,o)),t.children.length&&(n.onError(qo(52,o)),t.children.length=0),{props:[Zt(dt("innerHTML",!0,o),r||dt("",!0))]}},u7=(e,t,n)=>{const{exp:r,loc:o}=e;return r||n.onError(qo(53,o)),t.children.length&&(n.onError(qo(54,o)),t.children.length=0),{props:[Zt(dt("textContent",!0),r?Nr(r,n)>0?r:on(n.helperString(Ad),[r],o):dt("",!0))]}},c7=(e,t,n)=>{const r=rS(e,t,n);if(!r.props.length||t.tagType===1)return r;e.arg&&n.onError(qo(56,e.arg.loc));const{tag:o}=t,i=n.isCustomElement(o);if(o==="input"||o==="textarea"||o==="select"||i){let l=iS,a=!1;if(o==="input"||i){const c=kd(t,"type");if(c){if(c.type===7)l=Uh;else if(c.value)switch(c.value.content){case"radio":l=oS;break;case"checkbox":l=sS;break;case"file":a=!0,n.onError(qo(57,e.loc));break}}else j6(t)&&(l=Uh)}else o==="select"&&(l=lS);a||(r.needRuntime=n.helper(l))}else n.onError(qo(55,e.loc));return r.props=r.props.filter(l=>!(l.key.type===4&&l.key.content==="modelValue")),r},d7=uo("passive,once,capture"),f7=uo("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),p7=uo("left,right"),pS=uo("onkeyup,onkeydown,onkeypress",!0),h7=(e,t,n,r)=>{const o=[],i=[],l=[];for(let a=0;a<t.length;a++){const c=t[a];c==="native"&&Sa("COMPILER_V_ON_NATIVE",n)||d7(c)?l.push(c):p7(c)?tr(e)?pS(e.content)?o.push(c):i.push(c):(o.push(c),i.push(c)):f7(c)?i.push(c):o.push(c)}return{keyModifiers:o,nonKeyModifiers:i,eventOptionModifiers:l}},y_=(e,t)=>tr(e)&&e.content.toLowerCase()==="onclick"?dt(t,!0):e.type!==4?no(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,m7=(e,t,n)=>nS(e,t,n,r=>{const{modifiers:o}=e;if(!o.length)return r;let{key:i,value:l}=r.props[0];const{keyModifiers:a,nonKeyModifiers:c,eventOptionModifiers:d}=h7(i,o,n,e.loc);if(c.includes("right")&&(i=y_(i,"onContextmenu")),c.includes("middle")&&(i=y_(i,"onMouseup")),c.length&&(l=on(n.helper(aS),[l,JSON.stringify(c)])),a.length&&(!tr(i)||pS(i.content))&&(l=on(n.helper(uS),[l,JSON.stringify(a)])),d.length){const p=d.map(Km).join("");i=tr(i)?dt(`${i.content}${p}`,!0):no(["(",i,`) + "${p}"`])}return{props:[Zt(i,l)]}}),g7=(e,t,n)=>{const{exp:r,loc:o}=e;return r||n.onError(qo(59,o)),{props:[],needRuntime:n.helper(cS)}},v7=(e,t)=>{e.type===1&&e.tagType===0&&(e.tag==="script"||e.tag==="style")&&(t.onError(qo(61,e.loc)),t.removeNode())},y7=[i7],_7={cloak:n7,html:a7,text:u7,model:c7,on:m7,show:g7};function b7(e,t={}){return t7(e,Wo({},s7,t,{nodeTransforms:[v7,...y7,...t.nodeTransforms||[]],directiveTransforms:Wo({},_7,t.directiveTransforms||{}),transformHoist:null}))}const __=Object.create(null);function w7(e,t){if(!_n(e))if(e.nodeType)e=e.innerHTML;else return Fc;const n=e,r=__[n];if(r)return r;if(e[0]==="#"){const a=document.querySelector(e);e=a?a.innerHTML:""}const o=Wo({hoistStatic:!0,onError:void 0,onWarn:Fc},t);!o.isCustomElement&&typeof customElements<"u"&&(o.isCustomElement=a=>!!customElements.get(a));const{code:i}=b7(e,o),l=new Function("Vue",i)(a6);return l._rc=!0,__[n]=l}Jw(w7);function $a(e){"@babel/helpers - typeof";return $a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$a(e)}function S7(e,t){if($a(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if($a(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function E7(e){var t=S7(e,"string");return $a(t)=="symbol"?t:String(t)}function $7(e,t,n){return t=E7(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function w_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?b_(Object(n),!0).forEach(function(r){$7(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Fn(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var S_=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),jp=function(){return Math.random().toString(36).substring(7).split("").join(".")},qc={INIT:"@@redux/INIT"+jp(),REPLACE:"@@redux/REPLACE"+jp(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+jp()}};function x7(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function pg(e,t,n){var r;if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(Fn(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Fn(1));return n(pg)(e,t)}if(typeof e!="function")throw new Error(Fn(2));var o=e,i=t,l=[],a=l,c=!1;function d(){a===l&&(a=l.slice())}function p(){if(c)throw new Error(Fn(3));return i}function h(S){if(typeof S!="function")throw new Error(Fn(4));if(c)throw new Error(Fn(5));var T=!0;return d(),a.push(S),function(){if(T){if(c)throw new Error(Fn(6));T=!1,d();var w=a.indexOf(S);a.splice(w,1),l=null}}}function v(S){if(!x7(S))throw new Error(Fn(7));if(typeof S.type>"u")throw new Error(Fn(8));if(c)throw new Error(Fn(9));try{c=!0,i=o(i,S)}finally{c=!1}for(var T=l=a,C=0;C<T.length;C++){var w=T[C];w()}return S}function y(S){if(typeof S!="function")throw new Error(Fn(10));o=S,v({type:qc.REPLACE})}function b(){var S,T=h;return S={subscribe:function(w){if(typeof w!="object"||w===null)throw new Error(Fn(11));function E(){w.next&&w.next(p())}E();var O=T(E);return{unsubscribe:O}}},S[S_]=function(){return this},S}return v({type:qc.INIT}),r={dispatch:v,subscribe:h,getState:p,replaceReducer:y},r[S_]=b,r}function T7(e){Object.keys(e).forEach(function(t){var n=e[t],r=n(void 0,{type:qc.INIT});if(typeof r>"u")throw new Error(Fn(12));if(typeof n(void 0,{type:qc.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Fn(13))})}function hS(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];typeof e[o]=="function"&&(n[o]=e[o])}var i=Object.keys(n),l;try{T7(n)}catch(a){l=a}return function(c,d){if(c===void 0&&(c={}),l)throw l;for(var p=!1,h={},v=0;v<i.length;v++){var y=i[v],b=n[y],S=c[y],T=b(S,d);if(typeof T>"u")throw d&&d.type,new Error(Fn(14));h[y]=T,p=p||T!==S}return p=p||i.length!==Object.keys(c).length,p?h:c}}function mS(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.length===0?function(r){return r}:t.length===1?t[0]:t.reduce(function(r,o){return function(){return r(o.apply(void 0,arguments))}})}function C7(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){return function(){var o=r.apply(void 0,arguments),i=function(){throw new Error(Fn(15))},l={getState:o.getState,dispatch:function(){return i.apply(void 0,arguments)}},a=t.map(function(c){return c(l)});return i=mS.apply(void 0,a)(o.dispatch),w_(w_({},o),{},{dispatch:i})}}}function O7(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(r,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const Bh=Symbol("ReduxStore"),E_=Symbol("ReduxActions"),A7=(e,t)=>{if(!e)throw new Error("[redux-vuex]: store is not defined");t?t.provide(Bh,e):Qt(Bh,e)},k7=(e,t)=>{!e||(t?t.provide(E_,e):Qt(E_,e))},Ze=()=>Ft(Bh)||(console.warn("[redux-vuex]: couldn't find a store, make sure you have provided it"),pg(hS({})));function I7(e){A7(e.store,e.app),k7(e.actions,e.app)}/*!6 `),e.hoists.length)){const h=[Jm,Zm,Ua,Qm,R2].filter(v=>p.includes(v)).map(G2).join(", ");o(`const { ${h} } = _Vue 7 `)}pF(e.hoists,t),i(),o("return ")}function jp(e,t,{helper:n,push:r,newline:o,isTS:i}){const l=n(t==="filter"?ng:t==="component"?eg:tg);for(let a=0;a<e.length;a++){let c=e[a];const d=c.endsWith("__self");d&&(c=c.slice(0,-6)),r(`const ${wa(c,t)} = ${l}(${JSON.stringify(c)}${d?", true":""})${i?"!":""}`),a<e.length-1&&o()}}function pF(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:r,helper:o,scopeId:i,mode:l}=t;r();for(let a=0;a<e.length;a++){const c=e[a];c&&(n(`const _hoisted_${a+1} = `),Bn(c,t),r())}t.pure=!1}function pg(e,t){const n=e.length>3||!1;t.push("["),n&&t.indent(),Va(e,t,n),n&&t.deindent(),t.push("]")}function Va(e,t,n=!1,r=!0){const{push:o,newline:i}=t;for(let l=0;l<e.length;l++){const a=e[l];_n(a)?o(a):Yi(a)?pg(a,t):Bn(a,t),l<e.length-1&&(n?(r&&o(","),i()):r&&o(", "))}}function Bn(e,t){if(_n(e)){t.push(e);return}if(Km(e)){t.push(t.helper(e));return}switch(e.type){case 1:case 9:case 11:Bn(e.codegenNode,t);break;case 2:hF(e,t);break;case 4:X2(e,t);break;case 5:mF(e,t);break;case 12:Bn(e.codegenNode,t);break;case 8:Y2(e,t);break;case 3:vF(e,t);break;case 13:yF(e,t);break;case 14:bF(e,t);break;case 15:wF(e,t);break;case 17:SF(e,t);break;case 18:EF(e,t);break;case 19:$F(e,t);break;case 20:xF(e,t);break;case 21:Va(e.body,t,!0,!1);break}}function hF(e,t){t.push(JSON.stringify(e.content),e)}function X2(e,t){const{content:n,isStatic:r}=e;t.push(r?JSON.stringify(n):n,e)}function mF(e,t){const{push:n,helper:r,pure:o}=t;o&&n(Rd),n(`${r(Ad)}(`),Bn(e.content,t),n(")")}function Y2(e,t){for(let n=0;n<e.children.length;n++){const r=e.children[n];_n(r)?t.push(r):Bn(r,t)}}function gF(e,t){const{push:n}=t;if(e.type===8)n("["),Y2(e,t),n("]");else if(e.isStatic){const r=cg(e.content)?e.content:JSON.stringify(e.content);n(r,e)}else n(`[${e.content}]`,e)}function vF(e,t){const{push:n,helper:r,pure:o}=t;o&&n(Rd),n(`${r(Ua)}(${JSON.stringify(e.content)})`,e)}function yF(e,t){const{push:n,helper:r,pure:o}=t,{tag:i,props:l,children:a,patchFlag:c,dynamicProps:d,directives:p,isBlock:h,disableTracking:v,isComponent:y}=e;p&&n(r(rg)+"("),h&&n(`(${r(di)}(${v?"true":""}), `),o&&n(Rd);const b=h?el(t.inSSR,y):Qi(t.inSSR,y);n(r(b)+"(",e),Va(_F([i,l,a,c,d]),t),n(")"),h&&n(")"),p&&(n(", "),Bn(p,t),n(")"))}function _F(e){let t=e.length;for(;t--&&e[t]==null;);return e.slice(0,t+1).map(n=>n||"null")}function bF(e,t){const{push:n,helper:r,pure:o}=t,i=_n(e.callee)?e.callee:r(e.callee);o&&n(Rd),n(i+"(",e),Va(e.arguments,t),n(")")}function wF(e,t){const{push:n,indent:r,deindent:o,newline:i}=t,{properties:l}=e;if(!l.length){n("{}",e);return}const a=l.length>1||!1;n(a?"{":"{ "),a&&r();for(let c=0;c<l.length;c++){const{key:d,value:p}=l[c];gF(d,t),n(": "),Bn(p,t),c<l.length-1&&(n(","),i())}a&&o(),n(a?"}":" }")}function SF(e,t){pg(e.elements,t)}function EF(e,t){const{push:n,indent:r,deindent:o}=t,{params:i,returns:l,body:a,newline:c,isSlot:d}=e;d&&n(`_${Ji[ag]}(`),n("(",e),Yi(i)?Va(i,t):i&&Bn(i,t),n(") => "),(c||a)&&(n("{"),r()),l?(c&&n("return "),Yi(l)?pg(l,t):Bn(l,t)):a&&Bn(a,t),(c||a)&&(o(),n("}")),d&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}function $F(e,t){const{test:n,consequent:r,alternate:o,newline:i}=e,{push:l,indent:a,deindent:c,newline:d}=t;if(n.type===4){const h=!cg(n.content);h&&l("("),X2(n,t),h&&l(")")}else l("("),Bn(n,t),l(")");i&&a(),t.indentLevel++,i||l(" "),l("? "),Bn(r,t),t.indentLevel--,i&&d(),i||l(" "),l(": ");const p=o.type===19;p||t.indentLevel++,Bn(o,t),p||t.indentLevel--,i&&c(!0)}function xF(e,t){const{push:n,helper:r,indent:o,deindent:i,newline:l}=t;n(`_cache[${e.index}] || (`),e.isVNode&&(o(),n(`${r(Uc)}(-1),`),l()),n(`_cache[${e.index}] = `),Bn(e.value,t),e.isVNode&&(n(","),l(),n(`${r(Uc)}(1),`),l(),n(`_cache[${e.index}]`),i()),n(")")}new RegExp("\\b"+"arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b")+"\\b");const TF=K2(/^(if|else|else-if)$/,(e,t,n)=>CF(e,t,n,(r,o,i)=>{const l=n.parent.children;let a=l.indexOf(r),c=0;for(;a-->=0;){const d=l[a];d&&d.type===9&&(c+=d.branches.length)}return()=>{if(i)r.codegenNode=l1(o,c,n);else{const d=OF(r.codegenNode);d.alternate=l1(o,c+r.branches.length-1,n)}}}));function CF(e,t,n,r){if(t.name!=="else"&&(!t.exp||!t.exp.content.trim())){const o=t.exp?t.exp.loc:e.loc;n.onError(Wt(28,t.loc)),t.exp=dt("true",!1,o)}if(t.name==="if"){const o=i1(e,t),i={type:9,loc:e.loc,branches:[o]};if(n.replaceNode(i),r)return r(i,o,!0)}else{const o=n.parent.children;let i=o.indexOf(e);for(;i-->=-1;){const l=o[i];if(l&&l.type===3){n.removeNode(l);continue}if(l&&l.type===2&&!l.content.trim().length){n.removeNode(l);continue}if(l&&l.type===9){t.name==="else-if"&&l.branches[l.branches.length-1].condition===void 0&&n.onError(Wt(30,e.loc)),n.removeNode();const a=i1(e,t);l.branches.push(a);const c=r&&r(l,a,!1);Pd(a,n),c&&c(),n.currentNode=null}else n.onError(Wt(30,e.loc));break}}}function i1(e,t){const n=e.tagType===3;return{type:10,loc:e.loc,condition:t.name==="else"?void 0:t.exp,children:n&&!Fr(e,"for")?e.children:[e],userKey:kd(e,"key"),isTemplateIf:n}}function l1(e,t,n){return e.condition?Fh(e.condition,a1(e,t,n),on(n.helper(Ua),['""',"true"])):a1(e,t,n)}function a1(e,t,n){const{helper:r}=n,o=Zt("key",dt(`${t}`,!1,xr,2)),{children:i}=e,l=i[0];if(i.length!==1||l.type!==1)if(i.length===1&&l.type===11){const c=l.codegenNode;return zc(c,o,n),c}else return ba(n,r(ya),Nr([o]),i,64+"",void 0,void 0,!0,!1,!1,e.loc);else{const c=l.codegenNode,d=z6(c);return d.type===13&&dg(d,n),zc(d,o,n),c}}function OF(e){for(;;)if(e.type===19)if(e.alternate.type===19)e=e.alternate;else return e;else e.type===20&&(e=e.value)}const AF=K2("for",(e,t,n)=>{const{helper:r,removeHelper:o}=n;return kF(e,t,n,i=>{const l=on(r(og),[i.source]),a=Vc(e),c=Fr(e,"memo"),d=kd(e,"key"),p=d&&(d.type===6?dt(d.value.content,!0):d.exp),h=d?Zt("key",p):null,v=i.source.type===4&&i.source.constType>0,y=v?64:d?128:256;return i.codegenNode=ba(n,r(ya),void 0,l,y+"",void 0,void 0,!0,!v,!1,e.loc),()=>{let b;const{children:S}=i,T=S.length!==1||S[0].type!==1,C=Hc(e)?e:a&&e.children.length===1&&Hc(e.children[0])?e.children[0]:null;if(C?(b=C.codegenNode,a&&h&&zc(b,h,n)):T?b=ba(n,r(ya),h?Nr([h]):void 0,e.children,"64",void 0,void 0,!0,void 0,!1):(b=S[0].codegenNode,a&&h&&zc(b,h,n),b.isBlock!==!v&&(b.isBlock?(o(di),o(el(n.inSSR,b.isComponent))):o(Qi(n.inSSR,b.isComponent))),b.isBlock=!v,b.isBlock?(r(di),r(el(n.inSSR,b.isComponent))):r(Qi(n.inSSR,b.isComponent))),c){const w=Zi(Dh(i.parseResult,[dt("_cached")]));w.body=F6([ro(["const _memo = (",c.exp,")"]),ro(["if (_cached",...p?[" && _cached.key === ",p]:[],` && ${n.helperString(N2)}(_cached, _memo)) return _cached`]),ro(["const _item = ",b]),dt("_item.memo = _memo"),dt("return _item")]),l.arguments.push(w,dt("_cache"),dt(String(n.cached++)))}else l.arguments.push(Zi(Dh(i.parseResult),b,!0))}})});function kF(e,t,n,r){if(!t.exp){n.onError(Wt(31,t.loc));return}const o=J2(t.exp);if(!o){n.onError(Wt(32,t.loc));return}const{addIdentifiers:i,removeIdentifiers:l,scopes:a}=n,{source:c,value:d,key:p,index:h}=o,v={type:11,loc:t.loc,source:c,valueAlias:d,keyAlias:p,objectIndexAlias:h,parseResult:o,children:Vc(e)?e.children:[e]};n.replaceNode(v),a.vFor++;const y=r&&r(v);return()=>{a.vFor--,y&&y()}}const IF=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,u1=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,PF=/^\(|\)$/g;function J2(e,t){const n=e.loc,r=e.content,o=r.match(IF);if(!o)return;const[,i,l]=o,a={source:nc(n,l.trim(),r.indexOf(l,i.length)),value:void 0,key:void 0,index:void 0};let c=i.trim().replace(PF,"").trim();const d=i.indexOf(c),p=c.match(u1);if(p){c=c.replace(u1,"").trim();const h=p[1].trim();let v;if(h&&(v=r.indexOf(h,d+c.length),a.key=nc(n,h,v)),p[2]){const y=p[2].trim();y&&(a.index=nc(n,y,r.indexOf(y,a.key?v+h.length:d+c.length)))}}return c&&(a.value=nc(n,c,d)),a}function nc(e,t,n){return dt(t,!1,U2(e,n,t.length))}function Dh({value:e,key:t,index:n},r=[]){return RF([e,t,n,...r])}function RF(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((n,r)=>n||dt("_".repeat(r+1),!1))}const c1=dt("undefined",!1),LF=(e,t)=>{if(e.type===1&&(e.tagType===1||e.tagType===3)){const n=Fr(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},FF=(e,t,n)=>Zi(e,t,!1,!0,t.length?t[0].loc:n);function NF(e,t,n=FF){t.helper(ag);const{children:r,loc:o}=e,i=[],l=[];let a=t.scopes.vSlot>0||t.scopes.vFor>0;const c=Fr(e,"slot",!0);if(c){const{arg:T,exp:C}=c;T&&!nr(T)&&(a=!0),i.push(Zt(T||dt("default",!0),n(C,r,o)))}let d=!1,p=!1;const h=[],v=new Set;let y=0;for(let T=0;T<r.length;T++){const C=r[T];let w;if(!Vc(C)||!(w=Fr(C,"slot",!0))){C.type!==3&&h.push(C);continue}if(c){t.onError(Wt(37,w.loc));break}d=!0;const{children:E,loc:O}=C,{arg:$=dt("default",!0),exp:P,loc:R}=w;let k;nr($)?k=$?$.content:"default":a=!0;const W=n(P,E,O);let U,j,G;if(U=Fr(C,"if"))a=!0,l.push(Fh(U.exp,rc($,W,y++),c1));else if(j=Fr(C,/^else(-if)?$/,!0)){let X=T,ne;for(;X--&&(ne=r[X],ne.type===3););if(ne&&Vc(ne)&&Fr(ne,"if")){r.splice(T,1),T--;let xe=l[l.length-1];for(;xe.alternate.type===19;)xe=xe.alternate;xe.alternate=j.exp?Fh(j.exp,rc($,W,y++),c1):rc($,W,y++)}else t.onError(Wt(30,j.loc))}else if(G=Fr(C,"for")){a=!0;const X=G.parseResult||J2(G.exp);X?l.push(on(t.helper(og),[X.source,Zi(Dh(X),rc($,W),!0)])):t.onError(Wt(32,G.loc))}else{if(k){if(v.has(k)){t.onError(Wt(38,R));continue}v.add(k),k==="default"&&(p=!0)}i.push(Zt($,W))}}if(!c){const T=(C,w)=>{const E=n(C,w,o);return t.compatConfig&&(E.isNonScopedSlot=!0),Zt("default",E)};d?h.length&&h.some(C=>Z2(C))&&(p?t.onError(Wt(39,h[0].loc)):i.push(T(void 0,h))):i.push(T(void 0,r))}const b=a?2:yc(e.children)?3:1;let S=Nr(i.concat(Zt("_",dt(b+"",!1))),o);return l.length&&(S=on(t.helper(F2),[S,ja(l)])),{slots:S,hasDynamicSlots:a}}function rc(e,t,n){const r=[Zt("name",e),Zt("fn",t)];return n!=null&&r.push(Zt("key",dt(String(n),!0))),Nr(r)}function yc(e){for(let t=0;t<e.length;t++){const n=e[t];switch(n.type){case 1:if(n.tagType===2||yc(n.children))return!0;break;case 9:if(yc(n.branches))return!0;break;case 10:case 11:if(yc(n.children))return!0;break}}return!1}function Z2(e){return e.type!==2&&e.type!==12?!0:e.type===2?!!e.content.trim():Z2(e.content)}const Q2=new WeakMap,MF=(e,t)=>function(){if(e=t.currentNode,!(e.type===1&&(e.tagType===0||e.tagType===1)))return;const{tag:r,props:o}=e,i=e.tagType===1;let l=i?DF(e,t):`"${r}"`;const a=w6(l)&&l.callee===Mc;let c,d,p,h=0,v,y,b,S=a||l===ea||l===Ym||!i&&(r==="svg"||r==="foreignObject");if(o.length>0){const T=eS(e,t,void 0,i,a);c=T.props,h=T.patchFlag,y=T.dynamicPropNames;const C=T.directives;b=C&&C.length?ja(C.map(w=>BF(w,t))):void 0,T.shouldUseBlock&&(S=!0)}if(e.children.length>0)if(l===Nc&&(S=!0,h|=1024),i&&l!==ea&&l!==Nc){const{slots:C,hasDynamicSlots:w}=NF(e,t);d=C,w&&(h|=1024)}else if(e.children.length===1&&l!==ea){const C=e.children[0],w=C.type,E=w===5||w===8;E&&Mr(C,t)===0&&(h|=1),E||w===2?d=C:d=e.children}else d=e.children;h!==0&&(p=String(h),y&&y.length&&(v=jF(y))),e.codegenNode=ba(t,l,c,d,p,v,b,!!S,!1,i,e.loc)};function DF(e,t,n=!1){let{tag:r}=e;const o=Uh(r),i=kd(e,"is");if(i)if(o||ni("COMPILER_IS_ON_ELEMENT",t)){const c=i.type===6?i.value&&dt(i.value.content,!0):i.exp;if(c)return on(t.helper(Mc),[c])}else i.type===6&&i.value.content.startsWith("vue:")&&(r=i.value.content.slice(4));const l=!o&&Fr(e,"is");if(l&&l.exp)return on(t.helper(Mc),[l.exp]);const a=M2(r)||t.isBuiltInComponent(r);return a?(n||t.helper(a),a):(t.helper(eg),t.components.add(r),wa(r,"component"))}function eS(e,t,n=e.props,r,o,i=!1){const{tag:l,loc:a,children:c}=e;let d=[];const p=[],h=[],v=c.length>0;let y=!1,b=0,S=!1,T=!1,C=!1,w=!1,E=!1,O=!1;const $=[],P=W=>{d.length&&(p.push(Nr(d1(d),a)),d=[]),W&&p.push(W)},R=({key:W,value:U})=>{if(nr(W)){const j=W.content,G=O2(j);if(G&&(!r||o)&&j.toLowerCase()!=="onclick"&&j!=="onUpdate:modelValue"&&!Q_(j)&&(w=!0),G&&Q_(j)&&(O=!0),U.type===20||(U.type===4||U.type===8)&&Mr(U,t)>0)return;j==="ref"?S=!0:j==="class"?T=!0:j==="style"?C=!0:j!=="key"&&!$.includes(j)&&$.push(j),r&&(j==="class"||j==="style")&&!$.includes(j)&&$.push(j)}else E=!0};for(let W=0;W<n.length;W++){const U=n[W];if(U.type===6){const{loc:j,name:G,value:X}=U;let ne=!0;if(G==="ref"&&(S=!0,t.scopes.vFor>0&&d.push(Zt(dt("ref_for",!0),dt("true")))),G==="is"&&(Uh(l)||X&&X.content.startsWith("vue:")||ni("COMPILER_IS_ON_ELEMENT",t)))continue;d.push(Zt(dt(G,!0,U2(j,0,G.length)),dt(X?X.content:"",ne,X?X.loc:j)))}else{const{name:j,arg:G,exp:X,loc:ne}=U,xe=j==="bind",Ee=j==="on";if(j==="slot"){r||t.onError(Wt(40,ne));continue}if(j==="once"||j==="memo"||j==="is"||xe&&Xs(G,"is")&&(Uh(l)||ni("COMPILER_IS_ON_ELEMENT",t))||Ee&&i)continue;if((xe&&Xs(G,"key")||Ee&&v&&Xs(G,"vue:before-update"))&&(y=!0),xe&&Xs(G,"ref")&&t.scopes.vFor>0&&d.push(Zt(dt("ref_for",!0),dt("true"))),!G&&(xe||Ee)){if(E=!0,X)if(xe){if(P(),ni("COMPILER_V_BIND_OBJECT_ORDER",t)){p.unshift(X);continue}p.push(X)}else P({type:14,loc:ne,callee:t.helper(lg),arguments:r?[X]:[X,"true"]});else t.onError(Wt(xe?34:35,ne));continue}const ke=t.directiveTransforms[j];if(ke){const{props:Ie,needRuntime:Qe}=ke(U,e,t);!i&&Ie.forEach(R),Ee&&G&&!nr(G)?P(Nr(Ie,a)):d.push(...Ie),Qe&&(h.push(U),Km(Qe)&&Q2.set(U,Qe))}else S6(j)||(h.push(U),v&&(y=!0))}}let k;if(p.length?(P(),p.length>1?k=on(t.helper(Dc),p,a):k=p[0]):d.length&&(k=Nr(d1(d),a)),E?b|=16:(T&&!r&&(b|=2),C&&!r&&(b|=4),$.length&&(b|=8),w&&(b|=32)),!y&&(b===0||b===32)&&(S||O||h.length>0)&&(b|=512),!t.inSSR&&k)switch(k.type){case 15:let W=-1,U=-1,j=!1;for(let ne=0;ne<k.properties.length;ne++){const xe=k.properties[ne].key;nr(xe)?xe.content==="class"?W=ne:xe.content==="style"&&(U=ne):xe.isHandlerKey||(j=!0)}const G=k.properties[W],X=k.properties[U];j?k=on(t.helper(_a),[k]):(G&&!nr(G.value)&&(G.value=on(t.helper(sg),[G.value])),X&&(C||X.value.type===4&&X.value.content.trim()[0]==="["||X.value.type===17)&&(X.value=on(t.helper(ig),[X.value])));break;case 14:break;default:k=on(t.helper(_a),[on(t.helper(Ba),[k])]);break}return{props:k,directives:h,patchFlag:b,dynamicPropNames:$,shouldUseBlock:y}}function d1(e){const t=new Map,n=[];for(let r=0;r<e.length;r++){const o=e[r];if(o.key.type===8||!o.key.isStatic){n.push(o);continue}const i=o.key.content,l=t.get(i);l?(i==="style"||i==="class"||O2(i))&&UF(l,o):(t.set(i,o),n.push(o))}return n}function UF(e,t){e.value.type===17?e.value.elements.push(t.value):e.value=ja([e.value,t.value],e.loc)}function BF(e,t){const n=[],r=Q2.get(e);r?n.push(t.helperString(r)):(t.helper(tg),t.directives.add(e.name),n.push(wa(e.name,"directive")));const{loc:o}=e;if(e.exp&&n.push(e.exp),e.arg&&(e.exp||n.push("void 0"),n.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));const i=dt("true",!1,o);n.push(Nr(e.modifiers.map(l=>Zt(l,i)),o))}return ja(n,e.loc)}function jF(e){let t="[";for(let n=0,r=e.length;n<r;n++)t+=JSON.stringify(e[n]),n<r-1&&(t+=", ");return t+"]"}function Uh(e){return e==="component"||e==="Component"}const VF=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},HF=/-(\w)/g,f1=VF(e=>e.replace(HF,(t,n)=>n?n.toUpperCase():"")),zF=(e,t)=>{if(Hc(e)){const{children:n,loc:r}=e,{slotName:o,slotProps:i}=WF(e,t),l=[t.prefixIdentifiers?"_ctx.$slots":"$slots",o,"{}","undefined","true"];let a=2;i&&(l[2]=i,a=3),n.length&&(l[3]=Zi([],n,!1,!1,r),a=4),t.scopeId&&!t.slotted&&(a=5),l.splice(a),e.codegenNode=on(t.helper(L2),l,r)}};function WF(e,t){let n='"default"',r;const o=[];for(let i=0;i<e.props.length;i++){const l=e.props[i];l.type===6?l.value&&(l.name==="name"?n=JSON.stringify(l.value.content):(l.name=f1(l.name),o.push(l))):l.name==="bind"&&Xs(l.arg,"name")?l.exp&&(n=l.exp):(l.name==="bind"&&l.arg&&nr(l.arg)&&(l.arg.content=f1(l.arg.content)),o.push(l))}if(o.length>0){const{props:i,directives:l}=eS(e,t,o,!1,!1);r=i,l.length&&t.onError(Wt(36,l[0].loc))}return{slotName:n,slotProps:r}}const qF=/^\s*([\w$_]+|(async\s*)?\([^)]*?\))\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,tS=(e,t,n,r)=>{const{loc:o,modifiers:i,arg:l}=e;!e.exp&&!i.length&&n.onError(Wt(35,o));let a;if(l.type===4)if(l.isStatic){let h=l.content;h.startsWith("vue:")&&(h=`vnode-${h.slice(4)}`);const v=t.tagType!==0||h.startsWith("vnode")||!/[A-Z]/.test(h)?T6(Od(h)):`on:${h}`;a=dt(v,!0,l.loc)}else a=ro([`${n.helperString(Lh)}(`,l,")"]);else a=l,a.children.unshift(`${n.helperString(Lh)}(`),a.children.push(")");let c=e.exp;c&&!c.content.trim()&&(c=void 0);let d=n.cacheHandlers&&!c&&!n.inVOnce;if(c){const h=D2(c.content),v=!(h||qF.test(c.content)),y=c.content.includes(";");(v||d&&h)&&(c=ro([`${v?"$event":"(...args)"} => ${y?"{":"("}`,c,y?"}":")"]))}let p={props:[Zt(a,c||dt("() => {}",!1,o))]};return r&&(p=r(p)),d&&(p.props[0].value=n.cache(p.props[0].value)),p.props.forEach(h=>h.key.isHandlerKey=!0),p},KF=(e,t,n)=>{const{exp:r,modifiers:o,loc:i}=e,l=e.arg;return l.type!==4?(l.children.unshift("("),l.children.push(') || ""')):l.isStatic||(l.content=`${l.content} || ""`),o.includes("camel")&&(l.type===4?l.isStatic?l.content=Od(l.content):l.content=`${n.helperString(Rh)}(${l.content})`:(l.children.unshift(`${n.helperString(Rh)}(`),l.children.push(")"))),n.inSSR||(o.includes("prop")&&p1(l,"."),o.includes("attr")&&p1(l,"^")),!r||r.type===4&&!r.content.trim()?(n.onError(Wt(34,i)),{props:[Zt(l,dt("",!0,i))]}):{props:[Zt(l,r)]}},p1=(e,t)=>{e.type===4?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},GF=(e,t)=>{if(e.type===0||e.type===1||e.type===11||e.type===10)return()=>{const n=e.children;let r,o=!1;for(let i=0;i<n.length;i++){const l=n[i];if(Bp(l)){o=!0;for(let a=i+1;a<n.length;a++){const c=n[a];if(Bp(c))r||(r=n[i]=ro([l],l.loc)),r.children.push(" + ",c),n.splice(a,1),a--;else{r=void 0;break}}}}if(!(!o||n.length===1&&(e.type===0||e.type===1&&e.tagType===0&&!e.props.find(i=>i.type===7&&!t.directiveTransforms[i.name])&&e.tag!=="template")))for(let i=0;i<n.length;i++){const l=n[i];if(Bp(l)||l.type===8){const a=[];(l.type!==2||l.content!==" ")&&a.push(l),!t.ssr&&Mr(l,t)===0&&a.push("1"),n[i]={type:12,content:l,loc:l.loc,codegenNode:on(t.helper(Qm),a)}}}}},h1=new WeakSet,XF=(e,t)=>{if(e.type===1&&Fr(e,"once",!0))return h1.has(e)||t.inVOnce?void 0:(h1.add(e),t.inVOnce=!0,t.helper(Uc),()=>{t.inVOnce=!1;const n=t.currentNode;n.codegenNode&&(n.codegenNode=t.cache(n.codegenNode,!0))})},nS=(e,t,n)=>{const{exp:r,arg:o}=e;if(!r)return n.onError(Wt(41,e.loc)),oc();const i=r.loc.source,l=r.type===4?r.content:i,a=n.bindingMetadata[i];if(a==="props"||a==="props-aliased")return n.onError(Wt(44,r.loc)),oc();if(!l.trim()||!D2(l)&&!!1)return n.onError(Wt(42,r.loc)),oc();const d=o||dt("modelValue",!0),p=o?nr(o)?`onUpdate:${Od(o.content)}`:ro(['"onUpdate:" + ',o]):"onUpdate:modelValue";let h;const v=n.isTS?"($event: any)":"$event";h=ro([`${v} => ((`,r,") = $event)"]);const y=[Zt(d,e.exp),Zt(p,h)];if(e.modifiers.length&&t.tagType===1){const b=e.modifiers.map(T=>(cg(T)?T:JSON.stringify(T))+": true").join(", "),S=o?nr(o)?`${o.content}Modifiers`:ro([o,' + "Modifiers"']):"modelModifiers";y.push(Zt(S,dt(`{ ${b} }`,!1,e.loc,2)))}return oc(y)};function oc(e=[]){return{props:e}}const YF=/[\w).+\-_$\]]/,JF=(e,t)=>{ni("COMPILER_FILTER",t)&&(e.type===5&&Wc(e.content,t),e.type===1&&e.props.forEach(n=>{n.type===7&&n.name!=="for"&&n.exp&&Wc(n.exp,t)}))};function Wc(e,t){if(e.type===4)m1(e,t);else for(let n=0;n<e.children.length;n++){const r=e.children[n];typeof r=="object"&&(r.type===4?m1(r,t):r.type===8?Wc(e,t):r.type===5&&Wc(r.content,t))}}function m1(e,t){const n=e.content;let r=!1,o=!1,i=!1,l=!1,a=0,c=0,d=0,p=0,h,v,y,b,S=[];for(y=0;y<n.length;y++)if(v=h,h=n.charCodeAt(y),r)h===39&&v!==92&&(r=!1);else if(o)h===34&&v!==92&&(o=!1);else if(i)h===96&&v!==92&&(i=!1);else if(l)h===47&&v!==92&&(l=!1);else if(h===124&&n.charCodeAt(y+1)!==124&&n.charCodeAt(y-1)!==124&&!a&&!c&&!d)b===void 0?(p=y+1,b=n.slice(0,y).trim()):T();else{switch(h){case 34:o=!0;break;case 39:r=!0;break;case 96:i=!0;break;case 40:d++;break;case 41:d--;break;case 91:c++;break;case 93:c--;break;case 123:a++;break;case 125:a--;break}if(h===47){let C=y-1,w;for(;C>=0&&(w=n.charAt(C),w===" ");C--);(!w||!YF.test(w))&&(l=!0)}}b===void 0?b=n.slice(0,y).trim():p!==0&&T();function T(){S.push(n.slice(p,y).trim()),p=y+1}if(S.length){for(y=0;y<S.length;y++)b=ZF(b,S[y],t);e.content=b}}function ZF(e,t,n){n.helper(ng);const r=t.indexOf("(");if(r<0)return n.filters.add(t),`${wa(t,"filter")}(${e})`;{const o=t.slice(0,r),i=t.slice(r+1);return n.filters.add(o),`${wa(o,"filter")}(${e}${i!==")"?","+i:i}`}}const g1=new WeakSet,QF=(e,t)=>{if(e.type===1){const n=Fr(e,"memo");return!n||g1.has(e)?void 0:(g1.add(e),()=>{const r=e.codegenNode||t.currentNode.codegenNode;r&&r.type===13&&(e.tagType!==1&&dg(r,t),e.codegenNode=on(t.helper(ug),[n.exp,Zi(void 0,r),"_cache",String(t.cached++)]))})}};function e7(e){return[[XF,TF,QF,AF,JF,zF,MF,LF,GF],{on:tS,bind:KF,model:nS}]}function t7(e,t={}){const n=t.onError||Xm,r=t.mode==="module";t.prefixIdentifiers===!0?n(Wt(47)):r&&n(Wt(48));const o=!1;t.cacheHandlers&&n(Wt(49)),t.scopeId&&!r&&n(Wt(50));const i=_n(e)?K6(e,t):e,[l,a]=e7();return lF(i,Wo({},t,{prefixIdentifiers:o,nodeTransforms:[...l,...t.nodeTransforms||[]],directiveTransforms:Wo({},a,t.directiveTransforms||{})})),dF(i,Wo({},t,{prefixIdentifiers:o}))}const n7=()=>({props:[]}),rS=Symbol(""),oS=Symbol(""),sS=Symbol(""),iS=Symbol(""),Bh=Symbol(""),lS=Symbol(""),aS=Symbol(""),uS=Symbol(""),cS=Symbol(""),dS=Symbol("");P6({[rS]:"vModelRadio",[oS]:"vModelCheckbox",[sS]:"vModelText",[iS]:"vModelSelect",[Bh]:"vModelDynamic",[lS]:"withModifiers",[aS]:"withKeys",[uS]:"vShow",[cS]:"Transition",[dS]:"TransitionGroup"});let Ni;function r7(e,t=!1){return Ni||(Ni=document.createElement("div")),t?(Ni.innerHTML=`<div foo="${e.replace(/"/g,""")}">`,Ni.children[0].getAttribute("foo")):(Ni.innerHTML=e,Ni.textContent)}const o7=co("style,iframe,script,noscript",!0),s7={isVoidTag:y6,isNativeTag:e=>g6(e)||v6(e),isPreTag:e=>e==="pre",decodeEntities:r7,isBuiltInComponent:e=>{if(Di(e,"Transition"))return cS;if(Di(e,"TransitionGroup"))return dS},getNamespace(e,t){let n=t?t.ns:0;if(t&&n===2)if(t.tag==="annotation-xml"){if(e==="svg")return 1;t.props.some(r=>r.type===6&&r.name==="encoding"&&r.value!=null&&(r.value.content==="text/html"||r.value.content==="application/xhtml+xml"))&&(n=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&e!=="mglyph"&&e!=="malignmark"&&(n=0);else t&&n===1&&(t.tag==="foreignObject"||t.tag==="desc"||t.tag==="title")&&(n=0);if(n===0){if(e==="svg")return 1;if(e==="math")return 2}return n},getTextMode({tag:e,ns:t}){if(t===0){if(e==="textarea"||e==="title")return 1;if(o7(e))return 2}return 0}},i7=e=>{e.type===1&&e.props.forEach((t,n)=>{t.type===6&&t.name==="style"&&t.value&&(e.props[n]={type:7,name:"bind",arg:dt("style",!0,t.loc),exp:l7(t.value.content,t.loc),modifiers:[],loc:t.loc})})},l7=(e,t)=>{const n=f6(e);return dt(JSON.stringify(n),!1,t,3)};function qo(e,t){return Wt(e,t)}const a7=(e,t,n)=>{const{exp:r,loc:o}=e;return r||n.onError(qo(51,o)),t.children.length&&(n.onError(qo(52,o)),t.children.length=0),{props:[Zt(dt("innerHTML",!0,o),r||dt("",!0))]}},u7=(e,t,n)=>{const{exp:r,loc:o}=e;return r||n.onError(qo(53,o)),t.children.length&&(n.onError(qo(54,o)),t.children.length=0),{props:[Zt(dt("textContent",!0),r?Mr(r,n)>0?r:on(n.helperString(Ad),[r],o):dt("",!0))]}},c7=(e,t,n)=>{const r=nS(e,t,n);if(!r.props.length||t.tagType===1)return r;e.arg&&n.onError(qo(56,e.arg.loc));const{tag:o}=t,i=n.isCustomElement(o);if(o==="input"||o==="textarea"||o==="select"||i){let l=sS,a=!1;if(o==="input"||i){const c=kd(t,"type");if(c){if(c.type===7)l=Bh;else if(c.value)switch(c.value.content){case"radio":l=rS;break;case"checkbox":l=oS;break;case"file":a=!0,n.onError(qo(57,e.loc));break}}else j6(t)&&(l=Bh)}else o==="select"&&(l=iS);a||(r.needRuntime=n.helper(l))}else n.onError(qo(55,e.loc));return r.props=r.props.filter(l=>!(l.key.type===4&&l.key.content==="modelValue")),r},d7=co("passive,once,capture"),f7=co("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),p7=co("left,right"),fS=co("onkeyup,onkeydown,onkeypress",!0),h7=(e,t,n,r)=>{const o=[],i=[],l=[];for(let a=0;a<t.length;a++){const c=t[a];c==="native"&&Sa("COMPILER_V_ON_NATIVE",n)||d7(c)?l.push(c):p7(c)?nr(e)?fS(e.content)?o.push(c):i.push(c):(o.push(c),i.push(c)):f7(c)?i.push(c):o.push(c)}return{keyModifiers:o,nonKeyModifiers:i,eventOptionModifiers:l}},v1=(e,t)=>nr(e)&&e.content.toLowerCase()==="onclick"?dt(t,!0):e.type!==4?ro(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,m7=(e,t,n)=>tS(e,t,n,r=>{const{modifiers:o}=e;if(!o.length)return r;let{key:i,value:l}=r.props[0];const{keyModifiers:a,nonKeyModifiers:c,eventOptionModifiers:d}=h7(i,o,n,e.loc);if(c.includes("right")&&(i=v1(i,"onContextmenu")),c.includes("middle")&&(i=v1(i,"onMouseup")),c.length&&(l=on(n.helper(lS),[l,JSON.stringify(c)])),a.length&&(!nr(i)||fS(i.content))&&(l=on(n.helper(aS),[l,JSON.stringify(a)])),d.length){const p=d.map(Gm).join("");i=nr(i)?dt(`${i.content}${p}`,!0):ro(["(",i,`) + "${p}"`])}return{props:[Zt(i,l)]}}),g7=(e,t,n)=>{const{exp:r,loc:o}=e;return r||n.onError(qo(59,o)),{props:[],needRuntime:n.helper(uS)}},v7=(e,t)=>{e.type===1&&e.tagType===0&&(e.tag==="script"||e.tag==="style")&&(t.onError(qo(61,e.loc)),t.removeNode())},y7=[i7],_7={cloak:n7,html:a7,text:u7,model:c7,on:m7,show:g7};function b7(e,t={}){return t7(e,Wo({},s7,t,{nodeTransforms:[v7,...y7,...t.nodeTransforms||[]],directiveTransforms:Wo({},_7,t.directiveTransforms||{}),transformHoist:null}))}const y1=Object.create(null);function w7(e,t){if(!_n(e))if(e.nodeType)e=e.innerHTML;else return Fc;const n=e,r=y1[n];if(r)return r;if(e[0]==="#"){const a=document.querySelector(e);e=a?a.innerHTML:""}const o=Wo({hoistStatic:!0,onError:void 0,onWarn:Fc},t);!o.isCustomElement&&typeof customElements<"u"&&(o.isCustomElement=a=>!!customElements.get(a));const{code:i}=b7(e,o),l=new Function("Vue",i)(a6);return l._rc=!0,y1[n]=l}Yw(w7);function $a(e){"@babel/helpers - typeof";return $a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$a(e)}function S7(e,t){if($a(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if($a(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function E7(e){var t=S7(e,"string");return $a(t)=="symbol"?t:String(t)}function $7(e,t,n){return t=E7(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function b1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_1(Object(n),!0).forEach(function(r){$7(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Fn(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var w1=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Vp=function(){return Math.random().toString(36).substring(7).split("").join(".")},qc={INIT:"@@redux/INIT"+Vp(),REPLACE:"@@redux/REPLACE"+Vp(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Vp()}};function x7(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function hg(e,t,n){var r;if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(Fn(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Fn(1));return n(hg)(e,t)}if(typeof e!="function")throw new Error(Fn(2));var o=e,i=t,l=[],a=l,c=!1;function d(){a===l&&(a=l.slice())}function p(){if(c)throw new Error(Fn(3));return i}function h(S){if(typeof S!="function")throw new Error(Fn(4));if(c)throw new Error(Fn(5));var T=!0;return d(),a.push(S),function(){if(T){if(c)throw new Error(Fn(6));T=!1,d();var w=a.indexOf(S);a.splice(w,1),l=null}}}function v(S){if(!x7(S))throw new Error(Fn(7));if(typeof S.type>"u")throw new Error(Fn(8));if(c)throw new Error(Fn(9));try{c=!0,i=o(i,S)}finally{c=!1}for(var T=l=a,C=0;C<T.length;C++){var w=T[C];w()}return S}function y(S){if(typeof S!="function")throw new Error(Fn(10));o=S,v({type:qc.REPLACE})}function b(){var S,T=h;return S={subscribe:function(w){if(typeof w!="object"||w===null)throw new Error(Fn(11));function E(){w.next&&w.next(p())}E();var O=T(E);return{unsubscribe:O}}},S[w1]=function(){return this},S}return v({type:qc.INIT}),r={dispatch:v,subscribe:h,getState:p,replaceReducer:y},r[w1]=b,r}function T7(e){Object.keys(e).forEach(function(t){var n=e[t],r=n(void 0,{type:qc.INIT});if(typeof r>"u")throw new Error(Fn(12));if(typeof n(void 0,{type:qc.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Fn(13))})}function pS(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];typeof e[o]=="function"&&(n[o]=e[o])}var i=Object.keys(n),l;try{T7(n)}catch(a){l=a}return function(c,d){if(c===void 0&&(c={}),l)throw l;for(var p=!1,h={},v=0;v<i.length;v++){var y=i[v],b=n[y],S=c[y],T=b(S,d);if(typeof T>"u")throw d&&d.type,new Error(Fn(14));h[y]=T,p=p||T!==S}return p=p||i.length!==Object.keys(c).length,p?h:c}}function hS(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.length===0?function(r){return r}:t.length===1?t[0]:t.reduce(function(r,o){return function(){return r(o.apply(void 0,arguments))}})}function C7(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){return function(){var o=r.apply(void 0,arguments),i=function(){throw new Error(Fn(15))},l={getState:o.getState,dispatch:function(){return i.apply(void 0,arguments)}},a=t.map(function(c){return c(l)});return i=hS.apply(void 0,a)(o.dispatch),b1(b1({},o),{},{dispatch:i})}}}function O7(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(r,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const jh=Symbol("ReduxStore"),S1=Symbol("ReduxActions"),A7=(e,t)=>{if(!e)throw new Error("[redux-vuex]: store is not defined");t?t.provide(jh,e):Qt(jh,e)},k7=(e,t)=>{!e||(t?t.provide(S1,e):Qt(S1,e))},Ze=()=>Ft(jh)||(console.warn("[redux-vuex]: couldn't find a store, make sure you have provided it"),hg(pS({})));function I7(e){A7(e.store,e.app),k7(e.actions,e.app)}/*! 8 8 * isobject <https://github.com/jonschlinkert/isobject> 9 9 * … … 15 15 * Copyright (c) 2014-2018, Jon Schlinkert. 16 16 * Released under the MIT License. 17 */const gS=P7;var $_=function(e,t,n){if(gS(n)||(n={default:n}),!T_(e))return typeof n.default<"u"?n.default:e;typeof t=="number"&&(t=String(t));const r=Array.isArray(t),o=typeof t=="string",i=n.separator||".",l=n.joinChar||(typeof i=="string"?i:".");if(!o&&!r)return e;if(o&&t in e)return Vp(t,e,n)?e[t]:n.default;let a=r?t:R7(t,i,n),c=a.length,d=0;do{let p=a[d];for(typeof p=="number"&&(p=String(p));p&&p.slice(-1)==="\\";)p=x_([p.slice(0,-1),a[++d]||""],l,n);if(p in e){if(!Vp(p,e,n))return n.default;e=e[p]}else{let h=!1,v=d+1;for(;v<c;)if(p=x_([p,a[v++]],l,n),h=p in e){if(!Vp(p,e,n))return n.default;e=e[p],d=v-1;break}if(!h)return n.default}}while(++d<c&&T_(e));return d===c?e:n.default};function x_(e,t,n){return typeof n.join=="function"?n.join(e):e[0]+t+e[1]}function R7(e,t,n){return typeof n.split=="function"?n.split(e):e.split(t)}function Vp(e,t,n){return typeof n.isValid=="function"?n.isValid(e,t):!0}function T_(e){return gS(e)||Array.isArray(e)||typeof e=="function"}const L7=O7({__proto__:null,default:$_},[$_]),F7=e=>{const[t]=e;if(!Array.isArray(t)&&typeof t=="object")return Object.keys(t).reduce((r,o)=>{const i=t[o];return{...r,[o]:i}},{});const n=e;return[].concat.apply([],n).reduce((r,o)=>({...r,[o]:o}),{})},C_=(e,t)=>Object.keys(e).reduce((n,r)=>{const o=e[r];return{...n,[r]:t(r,o)}},{});function ut(...e){const t=c=>d=>L7(d,c),n=Ze(),r=F7(e),o=C_(r,(c,d)=>typeof d=="string"?t(d):d),i=Ts(C_(r,c=>$e(c))),l=()=>{Object.keys(r).forEach(c=>{i[c]=o[c].call(null,n.getState())})};l();const a=n.subscribe(l);return en(a),i}var co=function(t){return"@@redux-saga/"+t},vS=co("CANCEL_PROMISE"),yS=co("CHANNEL_END"),_S=co("IO"),O_=co("MATCH"),bS=co("MULTICAST"),wS=co("SAGA_ACTION"),SS=co("SELF_CANCELLATION"),N7=co("TASK"),Hi=co("TASK_CANCEL"),ES=co("TERMINATE"),M7=co("LOCATION");function xa(){return xa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xa.apply(this,arguments)}function D7(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var $S=function(t){return t==null},_c=function(t){return t!=null},Kn=function(t){return typeof t=="function"},hg=function(t){return typeof t=="string"},Os=Array.isArray,Ld=function(t){return t&&Kn(t.then)},mg=function(t){return t&&Kn(t.next)&&Kn(t.throw)},A_=function e(t){return t&&(hg(t)||TS(t)||Kn(t)||Os(t)&&t.every(e))},Fd=function(t){return t&&Kn(t.take)&&Kn(t.close)},xS=function(t){return Kn(t)&&t.hasOwnProperty("toString")},TS=function(t){return!!t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype},U7=function(t){return Fd(t)&&t[bS]},B7=2147483647;function j7(e,t){t===void 0&&(t=!0);var n,r=new Promise(function(o){n=setTimeout(o,Math.min(B7,e),t)});return r[vS]=function(){clearTimeout(n)},r}var V7=function(t){return function(){return t}},CS=V7(!0),On=function(){},OS=function(t){return t},gg=function(t,n){xa(t,n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(n).forEach(function(r){t[r]=n[r]})},H7=function(t,n){var r;return(r=[]).concat.apply(r,n.map(t))};function Nd(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}function AS(e){var t=!1;return function(){t||(t=!0,e())}}var z7=function(t){throw t},W7=function(t){return{value:t,done:!0}};function jh(e,t,n){t===void 0&&(t=z7),n===void 0&&(n="iterator");var r={meta:{name:n},next:e,throw:t,return:W7,isSagaIterator:!0};return typeof Symbol<"u"&&(r[Symbol.iterator]=function(){return r}),r}function q7(e,t){var n=t.sagaStack;console.error(e),console.error(n)}var kS=function(t){return Array.apply(null,new Array(t))},K7=function(t){return function(n){return t(Object.defineProperty(n,wS,{value:!0}))}},IS=function(t){return t===ES},PS=function(t){return t===Hi},RS=function(t){return IS(t)||PS(t)};function LS(e,t){var n=Object.keys(e),r=n.length,o=0,i,l=Os(e)?kS(r):{},a={};function c(){o===r&&(i=!0,t(l))}return n.forEach(function(d){var p=function(v,y){i||(y||RS(v)?(t.cancel(),t(v,y)):(l[d]=v,o++,c()))};p.cancel=On,a[d]=p}),t.cancel=function(){i||(i=!0,n.forEach(function(d){return a[d].cancel()}))},a}function vg(e){return{name:e.name||"anonymous",location:FS(e)}}function FS(e){return e[M7]}function G7(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.length===0?function(r){return r}:t.length===1?t[0]:t.reduce(function(r,o){return function(){return r(o.apply(void 0,arguments))}})}var X7="Channel's Buffer overflow!",Y7=1,NS=3,MS=4,J7={isEmpty:CS,put:On,take:On};function DS(e,t){e===void 0&&(e=10);var n=new Array(e),r=0,o=0,i=0,l=function(p){n[o]=p,o=(o+1)%e,r++},a=function(){if(r!=0){var p=n[i];return n[i]=null,r--,i=(i+1)%e,p}},c=function(){for(var p=[];r;)p.push(a());return p};return{isEmpty:function(){return r==0},put:function(p){if(r<e)l(p);else{var h;switch(t){case Y7:throw new Error(X7);case NS:n[o]=p,o=(o+1)%e,i=o;break;case MS:h=2*e,n=c(),r=n.length,o=n.length,i=0,n.length=h,e=h,l(p);break}}},take:a,flush:c}}var Z7=function(){return J7},Q7=function(t){return DS(t,NS)},eN=function(t){return DS(t,MS)},bc="TAKE",US="PUT",BS="ALL",jS="RACE",VS="CALL",tN="CPS",yg="FORK",nN="JOIN",HS="CANCEL",zS="SELECT",WS="ACTION_CHANNEL",qS="CANCELLED",rN="FLUSH",oN="GET_CONTEXT",sN="SET_CONTEXT",Sr=function(t,n){var r;return r={},r[_S]=!0,r.combinator=!1,r.type=t,r.payload=n,r},iN=function(t){return Sr(yg,xa({},t.payload,{detached:!0}))};function ro(e,t){if(e===void 0&&(e="*"),A_(e))return _c(t)&&console.warn("take(pattern) takes one argument but two were provided. Consider passing an array for listening to several action types"),Sr(bc,{pattern:e});if(U7(e)&&_c(t)&&A_(t))return Sr(bc,{channel:e,pattern:t});if(Fd(e))return _c(t)&&console.warn("take(channel) takes one argument but two were provided. Second argument is ignored."),Sr(bc,{channel:e})}function te(e,t){return $S(t)&&(t=e,e=void 0),Sr(US,{channel:e,action:t})}function KS(e){var t=Sr(BS,e);return t.combinator=!0,t}function Vh(e){var t=Sr(jS,e);return t.combinator=!0,t}function GS(e,t){var n=null,r;return Kn(e)?r=e:(Os(e)?(n=e[0],r=e[1]):(n=e.context,r=e.fn),n&&hg(r)&&Kn(n[r])&&(r=n[r])),{context:n,fn:r,args:t}}function $t(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Sr(VS,GS(e,n))}function St(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Sr(yg,GS(e,n))}function lN(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return iN(St.apply(void 0,[e].concat(n)))}function aN(e){return e===void 0&&(e=SS),Sr(HS,e)}function be(e){e===void 0&&(e=OS);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Sr(zS,{selector:e,args:n})}function uN(e,t){return Sr(WS,{pattern:e,buffer:t})}function cN(){return Sr(qS,{})}var Md=$t.bind(null,j7);function dN(){var e={};return e.promise=new Promise(function(t,n){e.resolve=t,e.reject=n}),e}var XS=[],Dd=0;function fN(e){try{_g(),e()}finally{ZS()}}function YS(e){XS.push(e),Dd||(_g(),QS())}function JS(e){try{return _g(),e()}finally{QS()}}function _g(){Dd++}function ZS(){Dd--}function QS(){ZS();for(var e;!Dd&&(e=XS.shift())!==void 0;)fN(e)}var pN=function(t){return function(n){return t.some(function(r){return bg(r)(n)})}},hN=function(t){return function(n){return t(n)}},k_=function(t){return function(n){return n.type===String(t)}},mN=function(t){return function(n){return n.type===t}},eE=function(){return CS};function bg(e){var t=e==="*"?eE:hg(e)?k_:Os(e)?pN:xS(e)?k_:Kn(e)?hN:TS(e)?mN:null;if(t===null)throw new Error("invalid pattern: "+e);return t(e)}var zi={type:yS},Ud=function(t){return t&&t.type===yS};function wg(e){e===void 0&&(e=eN());var t=!1,n=[];function r(a){if(!t){if(n.length===0)return e.put(a);var c=n.shift();c(a)}}function o(a){t&&e.isEmpty()?a(zi):e.isEmpty()?(n.push(a),a.cancel=function(){Nd(n,a)}):a(e.take())}function i(a){if(t&&e.isEmpty()){a(zi);return}a(e.flush())}function l(){if(!t){t=!0;var a=n;n=[];for(var c=0,d=a.length;c<d;c++){var p=a[c];p(zi)}}}return{take:o,put:r,flush:i,close:l}}function tE(e,t){t===void 0&&(t=Z7());var n=!1,r,o=wg(t),i=function(){n||(n=!0,Kn(r)&&r(),o.close())};return r=e(function(l){if(Ud(l)){i();return}o.put(l)}),r=AS(r),n&&r(),{take:o.take,flush:o.flush,close:i}}function gN(){var e,t=!1,n=[],r=n,o=function(){r===n&&(r=n.slice())},i=function(){t=!0;var a=n=r;r=[],a.forEach(function(c){c(zi)})};return e={},e[bS]=!0,e.put=function(a){if(!t){if(Ud(a)){i();return}for(var c=n=r,d=0,p=c.length;d<p;d++){var h=c[d];h[O_](a)&&(h.cancel(),h(a))}}},e.take=function(a,c){if(c===void 0&&(c=eE),t){a(zi);return}a[O_]=c,o(),r.push(a),a.cancel=AS(function(){o(),Nd(r,a)})},e.close=i,e}function nE(){var e=gN(),t=e.put;return e.put=function(n){if(n[wS]){t(n);return}YS(function(){t(n)})},e}var Ks=0,Vo=1,wc=2,rE=3;function Sg(e,t){var n=e[vS];Kn(n)&&(t.cancel=n),e.then(t,function(r){t(r,!0)})}var Ha=0,oE=function(){return++Ha},xn;function vN(e,t){return e.isSagaIterator?{name:e.meta.name}:vg(t)}function yN(e){var t=e.context,n=e.fn,r=e.args;try{var o=n.apply(t,r);if(mg(o))return o;var i=!1,l=function(c){return i?{value:c,done:!0}:(i=!0,{value:o,done:!Ld(o)})};return jh(l)}catch(a){return jh(function(){throw a})}}function _N(e,t,n){var r=t.channel,o=t.action,i=t.resolve;YS(function(){var l;try{l=(r?r.put:e.dispatch)(o)}catch(a){n(a,!0);return}i&&Ld(l)?Sg(l,n):n(l)})}function bN(e,t,n){var r=t.channel,o=r===void 0?e.channel:r,i=t.pattern,l=t.maybe,a=function(d){if(d instanceof Error){n(d,!0);return}if(Ud(d)&&!l){n(ES);return}n(d)};try{o.take(a,_c(i)?bg(i):null)}catch(c){n(c,!0);return}n.cancel=a.cancel}function wN(e,t,n,r){var o=t.context,i=t.fn,l=t.args,a=r.task;try{var c=i.apply(o,l);if(Ld(c)){Sg(c,n);return}if(mg(c)){Bd(e,c,a.context,Ha,vg(i),!1,n);return}n(c)}catch(d){n(d,!0)}}function SN(e,t,n){var r=t.context,o=t.fn,i=t.args;try{var l=function(c,d){$S(c)?n(d):n(c,!0)};o.apply(r,i.concat(l)),l.cancel&&(n.cancel=l.cancel)}catch(a){n(a,!0)}}function EN(e,t,n,r){var o=t.context,i=t.fn,l=t.args,a=t.detached,c=r.task,d=yN({context:o,fn:i,args:l}),p=vN(d,i);JS(function(){var h=Bd(e,d,c.context,Ha,p,a,void 0);a?n(h):h.isRunning()?(c.queue.addTask(h),n(h)):h.isAborted()?c.queue.abort(h.error()):n(h)})}function $N(e,t,n,r){var o=r.task,i=function(c,d){if(c.isRunning()){var p={task:o,cb:d};d.cancel=function(){c.isRunning()&&Nd(c.joiners,p)},c.joiners.push(p)}else c.isAborted()?d(c.error(),!0):d(c.result())};if(Os(t)){if(t.length===0){n([]);return}var l=LS(t,n);t.forEach(function(a,c){i(a,l[c])})}else i(t,n)}function Hp(e){e.isRunning()&&e.cancel()}function xN(e,t,n,r){var o=r.task;t===SS?Hp(o):Os(t)?t.forEach(Hp):Hp(t),n()}function TN(e,t,n,r){var o=r.digestEffect,i=Ha,l=Object.keys(t);if(l.length===0){n(Os(t)?[]:{});return}var a=LS(t,n);l.forEach(function(c){o(t[c],i,a[c],c)})}function CN(e,t,n,r){var o=r.digestEffect,i=Ha,l=Object.keys(t),a=Os(t)?kS(l.length):{},c={},d=!1;l.forEach(function(p){var h=function(y,b){d||(b||RS(y)?(n.cancel(),n(y,b)):(n.cancel(),d=!0,a[p]=y,n(a)))};h.cancel=On,c[p]=h}),n.cancel=function(){d||(d=!0,l.forEach(function(p){return c[p].cancel()}))},l.forEach(function(p){d||o(t[p],i,c[p],p)})}function ON(e,t,n){var r=t.selector,o=t.args;try{var i=r.apply(void 0,[e.getState()].concat(o));n(i)}catch(l){n(l,!0)}}function AN(e,t,n){var r=t.pattern,o=t.buffer,i=wg(o),l=bg(r),a=function d(p){Ud(p)||e.channel.take(d,l),i.put(p)},c=i.close;i.close=function(){a.cancel(),c()},e.channel.take(a,l),n(i)}function kN(e,t,n,r){var o=r.task;n(o.isCancelled())}function IN(e,t,n){t.flush(n)}function PN(e,t,n,r){var o=r.task;n(o.context[t])}function RN(e,t,n,r){var o=r.task;gg(o.context,t),n()}var LN=(xn={},xn[bc]=bN,xn[US]=_N,xn[BS]=TN,xn[jS]=CN,xn[VS]=wN,xn[tN]=SN,xn[yg]=EN,xn[nN]=$N,xn[HS]=xN,xn[zS]=ON,xn[WS]=AN,xn[qS]=kN,xn[rN]=IN,xn[oN]=PN,xn[sN]=RN,xn);function FN(e,t,n){var r=[],o,i=!1;c(e);var l=function(){return r};function a(p){t(),d(),n(p,!0)}function c(p){r.push(p),p.cont=function(h,v){i||(Nd(r,p),p.cont=On,v?a(h):(p===e&&(o=h),r.length||(i=!0,n(o))))}}function d(){i||(i=!0,r.forEach(function(p){p.cont=On,p.cancel()}),r=[])}return{addTask:c,cancelAll:d,abort:a,getTasks:l}}function sE(e,t){return e+"?"+t}function NN(e){var t=FS(e);if(t){var n=t.code,r=t.fileName,o=t.lineNumber,i=n+" "+sE(r,o);return i}return""}function I_(e){var t=e.name,n=e.location;return n?t+" "+sE(n.fileName,n.lineNumber):t}function MN(e){var t=H7(function(n){return n.cancelledTasks},e);return t.length?["Tasks cancelled due to error:"].concat(t).join(`18 `):""}var Eg=null,na=[],DN=function(t){t.crashedEffect=Eg,na.push(t)},iE=function(){Eg=null,na.length=0},UN=function(t){Eg=t},BN=function(){var t=na[0],n=na.slice(1),r=t.crashedEffect?NN(t.crashedEffect):null,o="The above error occurred in task "+I_(t.meta)+(r?`19 when executing effect `+r:"");return[o].concat(n.map(function(i){return" created by "+ I_(i.meta)}),[MN(na)]).join(`20 `)};function jN(e,t,n,r,o,i,l){var a;l===void 0&&(l=On);var c=Ks,d,p,h=null,v=[],y=Object.create(n),b=FN(t,function(){v.push.apply(v,b.getTasks().map(function($){return $.meta.name}))},T);function S(){c===Ks&&(c=Vo,b.cancelAll(),T(Hi,!1))}function T(O,$){if(!$)O===Hi?c=Vo:c!==Vo&&(c= rE),d=O,h&&h.resolve(O);else{if(c=wc,DN({meta:o,cancelledTasks:v}),E.isRoot){var P=BN();iE(),e.onError(O,{sagaStack:P})}p=O,h&&h.reject(O)}E.cont(O,$),E.joiners.forEach(function(R){R.cb(O,$)}),E.joiners=null}function C(O){gg(y,O)}function w(){return h||(h=dN(),c===wc?h.reject(p):c!==Ks&&h.resolve(d)),h.promise}var E=(a={},a[N7]=!0,a.id=r,a.meta=o,a.isRoot=i,a.context=y,a.joiners=[],a.queue=b,a.cancel=S,a.cont=l,a.end=T,a.setContext=C,a.toPromise=w,a.isRunning=function(){return c===Ks},a.isCancelled=function(){return c===Vo||c===Ks&&t.status===Vo},a.isAborted=function(){return c===wc},a.result=function(){return d},a.error=function(){return p},a);return E}function Bd(e,t,n,r,o,i,l){var a=e.finalizeRunEffect(y);v.cancel=On;var c={meta:o,cancel:h,status:Ks},d=jN(e,c,n,r,o,i,l),p={task:d,digestEffect:b};function h(){c.status===Ks&&(c.status=Vo,v(Hi))}return l&&(l.cancel=d.cancel),v(),d;function v(S,T){try{var C;T?(C=t.throw(S),iE()):PS(S)?(c.status=Vo,v.cancel(),C=Kn(t.return)?t.return(Hi):{done:!0,value:Hi}):IS(S)?C=Kn(t.return)?t.return():{done:!0}:C=t.next(S),C.done?(c.status!==Vo&&(c.status=rE),c.cont(C.value)):b(C.value,r,v)}catch(w){if(c.status===Vo)throw w;c.status=wc,c.cont(w,!0)}}function y(S,T,C){if(Ld(S))Sg(S,C);else if(mg(S))Bd(e,S,d.context,T,o,!1,C);else if(S&&S[_S]){var w=LN[S.type];w(e,S.payload,C,p)}else C(S)}function b(S,T,C,w){w===void 0&&(w="");var E=oE();e.sagaMonitor&&e.sagaMonitor.effectTriggered({effectId:E,parentEffectId:T,label:w,effect:S});var O;function $(P,R){O||(O=!0,C.cancel=On,e.sagaMonitor&&(R?e.sagaMonitor.effectRejected(E,P):e.sagaMonitor.effectResolved(E,P)),R&&UN(S),C(P,R))}$.cancel=On,C.cancel=function(){O||(O=!0,$.cancel(),$.cancel=On,e.sagaMonitor&&e.sagaMonitor.effectCancelled(E))},a(S,E,$)}}function VN(e,t){for(var n=e.channel,r=n===void 0?nE():n,o=e.dispatch,i=e.getState,l=e.context,a=l===void 0?{}:l,c=e.sagaMonitor,d=e.effectMiddlewares,p=e.onError,h=p===void 0?q7:p,v=arguments.length,y=new Array(v>2?v-2:0),b=2;b<v;b++)y[b-2]=arguments[b];var S=t.apply(void 0,y),T=oE();c&&(c.rootSagaStarted=c.rootSagaStarted||On,c.effectTriggered=c.effectTriggered||On,c.effectResolved=c.effectResolved||On,c.effectRejected=c.effectRejected||On,c.effectCancelled=c.effectCancelled||On,c.actionDispatched=c.actionDispatched||On,c.rootSagaStarted({effectId:T,saga:t,args:y}));var C;if(d){var w=G7.apply(void 0,d);C=function($){return function(P,R,k){var W=function(j){return $(j,R,k)};return w(W)(P)}}}else C=OS;var E={channel:r,dispatch:K7(o),getState:i,sagaMonitor:c,onError:h,finalizeRunEffect:C};return JS(function(){var O=Bd(E,S,a,T,vg(t),!0,void 0);return c&&c.effectResolved(T,O),O})}function HN(e){var t={},n=t.context,r=n===void 0?{}:n,o=t.channel,i=o===void 0?nE():o,l=t.sagaMonitor,a=D7(t,["context","channel","sagaMonitor"]),c;function d(p){var h=p.getState,v=p.dispatch;return c=VN.bind(null,xa({},a,{context:r,channel:i,dispatch:v,getState:h,sagaMonitor:l})),function(y){return function(b){l&&l.actionDispatched&&l.actionDispatched(b);var S=y(b);return i.put(b),S}}}return d.run=function(){return c.apply(void 0,arguments)},d.setContext=function(p){gg(r,p)},d}var Kc="NOT_FOUND";function zN(e){var t;return{get:function(r){return t&&e(t.key,r)?t.value:Kc},put:function(r,o){t={key:r,value:o}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function WN(e,t){var n=[];function r(a){var c=n.findIndex(function(p){return t(a,p.key)});if(c>-1){var d=n[c];return c>0&&(n.splice(c,1),n.unshift(d)),d.value}return Kc}function o(a,c){r(a)===Kc&&(n.unshift({key:a,value:c}),n.length>e&&n.pop())}function i(){return n}function l(){n=[]}return{get:r,put:o,getEntries:i,clear:l}}var qN=function(t,n){return t===n};function KN(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;for(var o=n.length,i=0;i<o;i++)if(!e(n[i],r[i]))return!1;return!0}}function GN(e,t){var n=typeof t=="object"?t:{equalityCheck:t},r=n.equalityCheck,o=r===void 0?qN:r,i=n.maxSize,l=i===void 0?1:i,a=n.resultEqualityCheck,c=KN(o),d=l===1?zN(c):WN(l,c);function p(){var h=d.get(arguments);if(h===Kc){if(h=e.apply(null,arguments),a){var v=d.getEntries(),y=v.find(function(b){return a(b.value,h)});y&&(h=y.value)}d.put(arguments,h)}return h}return p.clearCache=function(){return d.clear()},p}function XN(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every(function(r){return typeof r=="function"})){var n=t.map(function(r){return typeof r=="function"?"function "+(r.name||"unnamed")+"()":typeof r}).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+n+"]")}return t}function YN(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=function(){for(var l=arguments.length,a=new Array(l),c=0;c<l;c++)a[c]=arguments[c];var d=0,p,h={memoizeOptions:void 0},v=a.pop();if(typeof v=="object"&&(h=v,v=a.pop()),typeof v!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof v+"]");var y=h,b=y.memoizeOptions,S=b===void 0?n:b,T=Array.isArray(S)?S:[S],C=XN(a),w=e.apply(void 0,[function(){return d++,v.apply(null,arguments)}].concat(T)),E=e(function(){for(var O=[],$=C.length,P=0;P<$;P++)O.push(C[P].apply(null,arguments));return p=w.apply(null,O),p});return Object.assign(E,{resultFunc:v,memoizedResultFunc:w,dependencies:C,lastResult:function(){return p},recomputations:function(){return d},resetRecomputations:function(){return d=0}}),E};return o}var he=YN(GN),Ll=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function JN(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ZN=function(e,t,n,r,o,i,l,a){if(!e){var c;if(t===void 0)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var d=[n,r,o,i,l,a],p=0;c=new Error(t.replace(/%s/g,function(){return d[p++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}},QN=ZN;const Gc=JN(QN),Xc=function(e){return typeof e=="function"},P_=function(e){return e.toString()};var eM="/",Sc="||";const ra=function(e){return e},R_=function(e){return e===null};function oe(e,t,n){t===void 0&&(t=ra),Gc(Xc(t)||R_(t),"Expected payloadCreator to be a function, undefined or null");var r=R_(t)||t===ra?ra:function(a){for(var c=arguments.length,d=new Array(c>1?c-1:0),p=1;p<c;p++)d[p-1]=arguments[p];return a instanceof Error?a:t.apply(void 0,[a].concat(d))},o=Xc(n),i=e.toString(),l=function(){var c=r.apply(void 0,arguments),d={type:e};return c instanceof Error&&(d.error=!0),c!==void 0&&(d.payload=c),o&&(d.meta=n.apply(void 0,arguments)),d};return l.toString=function(){return i},l}const $g=function(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t},tM=function(e){return e==null},jd=function(e){return typeof Map<"u"&&e instanceof Map};function xg(e){if(jd(e))return Array.from(e.keys());if(typeof Reflect<"u"&&typeof Reflect.ownKeys=="function")return Reflect.ownKeys(e);var t=Object.getOwnPropertyNames(e);return typeof Object.getOwnPropertySymbols=="function"&&(t=t.concat(Object.getOwnPropertySymbols(e))),t}function lE(e,t){return jd(t)?t.get(e):t[e]}const nM=function(e){return function t(n,r,o,i){var l=r===void 0?{}:r,a=l.namespace,c=a===void 0?eM:a,d=l.prefix;o===void 0&&(o={}),i===void 0&&(i="");function p(v){var y;if(!i)return v;var b=v.toString().split(Sc),S=i.split(Sc);return(y=[]).concat.apply(y,S.map(function(T){return b.map(function(C){return""+T+c+C})})).join(Sc)}function h(v){return i||!d||d&&new RegExp("^"+d+c).test(v)?v:""+d+c+v}return xg(n).forEach(function(v){var y=h(p(v)),b=lE(v,n);e(b)?t(b,{namespace:c,prefix:d},o,y):o[y]=b}),o}},rM=function(e){return e===void 0};function oM(e,t,n){t===void 0&&(t=ra);var r=P_(e).split(Sc);Gc(!rM(n),"defaultState for reducer handling "+r.join(", ")+" should be defined"),Gc(Xc(t)||$g(t),"Expected reducer to be a function or object with next and throw reducers");var o=Xc(t)?[t,t]:[t.next,t.throw].map(function(a){return tM(a)?ra:a}),i=o[0],l=o[1];return function(a,c){a===void 0&&(a=n);var d=c.type;return!d||r.indexOf(P_(d))===-1?a:(c.error===!0?l:i)(a,c)}}const sM=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=typeof t[t.length-1]!="function"&&t.pop(),o=t;if(typeof r>"u")throw new TypeError("The initial state may not be undefined. If you do not want to set a value for this reducer, you can use null instead of undefined.");return function(i,l){for(var a=arguments.length,c=Array(a>2?a-2:0),d=2;d<a;d++)c[d-2]=arguments[d];var p=typeof i>"u",h=typeof l>"u";return p&&h&&r?r:o.reduce(function(v,y){return y.apply(void 0,[v,l].concat(c))},p&&!h&&r?r:i)}};function iM(e){var t=xg(e),n=t.every(function(r){return r==="next"||r==="throw"});return t.length&&t.length<=2&&n}const lM=nM(function(e){return($g(e)||jd(e))&&!iM(e)});function bn(e,t,n){n===void 0&&(n={}),Gc($g(e)||jd(e),"Expected handlers to be a plain object.");var r=lM(e,n),o=xg(r).map(function(l){return oM(l,lE(l,r),t)}),i=sM.apply(void 0,o.concat([t]));return function(l,a){return l===void 0&&(l=t),i(l,a)}}const Wr="podlove/publisher/INIT",aM="podlove/publisher/READY",uM="podlove/publisher/SAVE",cM="podlove/publisher/ERROR",dM=oe(Wr),fM=oe(uM);oe(cM);const pM=oe(aM),hM={saved:!1,changes:!1,bootstrapped:!1},mM=bn({[Wr]:e=>({...e,bootstrapped:!0})},hM),gM={bootstrapped:e=>e.bootstrapped};var Yc={exports:{}};/**17 */const mS=P7;var E1=function(e,t,n){if(mS(n)||(n={default:n}),!x1(e))return typeof n.default<"u"?n.default:e;typeof t=="number"&&(t=String(t));const r=Array.isArray(t),o=typeof t=="string",i=n.separator||".",l=n.joinChar||(typeof i=="string"?i:".");if(!o&&!r)return e;if(o&&t in e)return Hp(t,e,n)?e[t]:n.default;let a=r?t:R7(t,i,n),c=a.length,d=0;do{let p=a[d];for(typeof p=="number"&&(p=String(p));p&&p.slice(-1)==="\\";)p=$1([p.slice(0,-1),a[++d]||""],l,n);if(p in e){if(!Hp(p,e,n))return n.default;e=e[p]}else{let h=!1,v=d+1;for(;v<c;)if(p=$1([p,a[v++]],l,n),h=p in e){if(!Hp(p,e,n))return n.default;e=e[p],d=v-1;break}if(!h)return n.default}}while(++d<c&&x1(e));return d===c?e:n.default};function $1(e,t,n){return typeof n.join=="function"?n.join(e):e[0]+t+e[1]}function R7(e,t,n){return typeof n.split=="function"?n.split(e):e.split(t)}function Hp(e,t,n){return typeof n.isValid=="function"?n.isValid(e,t):!0}function x1(e){return mS(e)||Array.isArray(e)||typeof e=="function"}const L7=O7({__proto__:null,default:E1},[E1]),F7=e=>{const[t]=e;if(!Array.isArray(t)&&typeof t=="object")return Object.keys(t).reduce((r,o)=>{const i=t[o];return{...r,[o]:i}},{});const n=e;return[].concat.apply([],n).reduce((r,o)=>({...r,[o]:o}),{})},T1=(e,t)=>Object.keys(e).reduce((n,r)=>{const o=e[r];return{...n,[r]:t(r,o)}},{});function ut(...e){const t=c=>d=>L7(d,c),n=Ze(),r=F7(e),o=T1(r,(c,d)=>typeof d=="string"?t(d):d),i=Ts(T1(r,c=>$e(c))),l=()=>{Object.keys(r).forEach(c=>{i[c]=o[c].call(null,n.getState())})};l();const a=n.subscribe(l);return en(a),i}var fo=function(t){return"@@redux-saga/"+t},gS=fo("CANCEL_PROMISE"),vS=fo("CHANNEL_END"),yS=fo("IO"),C1=fo("MATCH"),_S=fo("MULTICAST"),bS=fo("SAGA_ACTION"),wS=fo("SELF_CANCELLATION"),N7=fo("TASK"),Hi=fo("TASK_CANCEL"),SS=fo("TERMINATE"),M7=fo("LOCATION");function xa(){return xa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xa.apply(this,arguments)}function D7(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var ES=function(t){return t==null},_c=function(t){return t!=null},Gn=function(t){return typeof t=="function"},mg=function(t){return typeof t=="string"},Os=Array.isArray,Ld=function(t){return t&&Gn(t.then)},gg=function(t){return t&&Gn(t.next)&&Gn(t.throw)},O1=function e(t){return t&&(mg(t)||xS(t)||Gn(t)||Os(t)&&t.every(e))},Fd=function(t){return t&&Gn(t.take)&&Gn(t.close)},$S=function(t){return Gn(t)&&t.hasOwnProperty("toString")},xS=function(t){return!!t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype},U7=function(t){return Fd(t)&&t[_S]},B7=2147483647;function j7(e,t){t===void 0&&(t=!0);var n,r=new Promise(function(o){n=setTimeout(o,Math.min(B7,e),t)});return r[gS]=function(){clearTimeout(n)},r}var V7=function(t){return function(){return t}},TS=V7(!0),On=function(){},CS=function(t){return t},vg=function(t,n){xa(t,n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(n).forEach(function(r){t[r]=n[r]})},H7=function(t,n){var r;return(r=[]).concat.apply(r,n.map(t))};function Nd(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}function OS(e){var t=!1;return function(){t||(t=!0,e())}}var z7=function(t){throw t},W7=function(t){return{value:t,done:!0}};function Vh(e,t,n){t===void 0&&(t=z7),n===void 0&&(n="iterator");var r={meta:{name:n},next:e,throw:t,return:W7,isSagaIterator:!0};return typeof Symbol<"u"&&(r[Symbol.iterator]=function(){return r}),r}function q7(e,t){var n=t.sagaStack;console.error(e),console.error(n)}var AS=function(t){return Array.apply(null,new Array(t))},K7=function(t){return function(n){return t(Object.defineProperty(n,bS,{value:!0}))}},kS=function(t){return t===SS},IS=function(t){return t===Hi},PS=function(t){return kS(t)||IS(t)};function RS(e,t){var n=Object.keys(e),r=n.length,o=0,i,l=Os(e)?AS(r):{},a={};function c(){o===r&&(i=!0,t(l))}return n.forEach(function(d){var p=function(v,y){i||(y||PS(v)?(t.cancel(),t(v,y)):(l[d]=v,o++,c()))};p.cancel=On,a[d]=p}),t.cancel=function(){i||(i=!0,n.forEach(function(d){return a[d].cancel()}))},a}function yg(e){return{name:e.name||"anonymous",location:LS(e)}}function LS(e){return e[M7]}function G7(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.length===0?function(r){return r}:t.length===1?t[0]:t.reduce(function(r,o){return function(){return r(o.apply(void 0,arguments))}})}var X7="Channel's Buffer overflow!",Y7=1,FS=3,NS=4,J7={isEmpty:TS,put:On,take:On};function MS(e,t){e===void 0&&(e=10);var n=new Array(e),r=0,o=0,i=0,l=function(p){n[o]=p,o=(o+1)%e,r++},a=function(){if(r!=0){var p=n[i];return n[i]=null,r--,i=(i+1)%e,p}},c=function(){for(var p=[];r;)p.push(a());return p};return{isEmpty:function(){return r==0},put:function(p){if(r<e)l(p);else{var h;switch(t){case Y7:throw new Error(X7);case FS:n[o]=p,o=(o+1)%e,i=o;break;case NS:h=2*e,n=c(),r=n.length,o=n.length,i=0,n.length=h,e=h,l(p);break}}},take:a,flush:c}}var Z7=function(){return J7},Q7=function(t){return MS(t,FS)},eN=function(t){return MS(t,NS)},bc="TAKE",DS="PUT",US="ALL",BS="RACE",jS="CALL",tN="CPS",_g="FORK",nN="JOIN",VS="CANCEL",HS="SELECT",zS="ACTION_CHANNEL",WS="CANCELLED",rN="FLUSH",oN="GET_CONTEXT",sN="SET_CONTEXT",Er=function(t,n){var r;return r={},r[yS]=!0,r.combinator=!1,r.type=t,r.payload=n,r},iN=function(t){return Er(_g,xa({},t.payload,{detached:!0}))};function oo(e,t){if(e===void 0&&(e="*"),O1(e))return _c(t)&&console.warn("take(pattern) takes one argument but two were provided. Consider passing an array for listening to several action types"),Er(bc,{pattern:e});if(U7(e)&&_c(t)&&O1(t))return Er(bc,{channel:e,pattern:t});if(Fd(e))return _c(t)&&console.warn("take(channel) takes one argument but two were provided. Second argument is ignored."),Er(bc,{channel:e})}function te(e,t){return ES(t)&&(t=e,e=void 0),Er(DS,{channel:e,action:t})}function qS(e){var t=Er(US,e);return t.combinator=!0,t}function Hh(e){var t=Er(BS,e);return t.combinator=!0,t}function KS(e,t){var n=null,r;return Gn(e)?r=e:(Os(e)?(n=e[0],r=e[1]):(n=e.context,r=e.fn),n&&mg(r)&&Gn(n[r])&&(r=n[r])),{context:n,fn:r,args:t}}function $t(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Er(jS,KS(e,n))}function St(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Er(_g,KS(e,n))}function lN(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return iN(St.apply(void 0,[e].concat(n)))}function aN(e){return e===void 0&&(e=wS),Er(VS,e)}function be(e){e===void 0&&(e=CS);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Er(HS,{selector:e,args:n})}function uN(e,t){return Er(zS,{pattern:e,buffer:t})}function cN(){return Er(WS,{})}var Md=$t.bind(null,j7);function dN(){var e={};return e.promise=new Promise(function(t,n){e.resolve=t,e.reject=n}),e}var GS=[],Dd=0;function fN(e){try{bg(),e()}finally{JS()}}function XS(e){GS.push(e),Dd||(bg(),ZS())}function YS(e){try{return bg(),e()}finally{ZS()}}function bg(){Dd++}function JS(){Dd--}function ZS(){JS();for(var e;!Dd&&(e=GS.shift())!==void 0;)fN(e)}var pN=function(t){return function(n){return t.some(function(r){return wg(r)(n)})}},hN=function(t){return function(n){return t(n)}},A1=function(t){return function(n){return n.type===String(t)}},mN=function(t){return function(n){return n.type===t}},QS=function(){return TS};function wg(e){var t=e==="*"?QS:mg(e)?A1:Os(e)?pN:$S(e)?A1:Gn(e)?hN:xS(e)?mN:null;if(t===null)throw new Error("invalid pattern: "+e);return t(e)}var zi={type:vS},Ud=function(t){return t&&t.type===vS};function Sg(e){e===void 0&&(e=eN());var t=!1,n=[];function r(a){if(!t){if(n.length===0)return e.put(a);var c=n.shift();c(a)}}function o(a){t&&e.isEmpty()?a(zi):e.isEmpty()?(n.push(a),a.cancel=function(){Nd(n,a)}):a(e.take())}function i(a){if(t&&e.isEmpty()){a(zi);return}a(e.flush())}function l(){if(!t){t=!0;var a=n;n=[];for(var c=0,d=a.length;c<d;c++){var p=a[c];p(zi)}}}return{take:o,put:r,flush:i,close:l}}function eE(e,t){t===void 0&&(t=Z7());var n=!1,r,o=Sg(t),i=function(){n||(n=!0,Gn(r)&&r(),o.close())};return r=e(function(l){if(Ud(l)){i();return}o.put(l)}),r=OS(r),n&&r(),{take:o.take,flush:o.flush,close:i}}function gN(){var e,t=!1,n=[],r=n,o=function(){r===n&&(r=n.slice())},i=function(){t=!0;var a=n=r;r=[],a.forEach(function(c){c(zi)})};return e={},e[_S]=!0,e.put=function(a){if(!t){if(Ud(a)){i();return}for(var c=n=r,d=0,p=c.length;d<p;d++){var h=c[d];h[C1](a)&&(h.cancel(),h(a))}}},e.take=function(a,c){if(c===void 0&&(c=QS),t){a(zi);return}a[C1]=c,o(),r.push(a),a.cancel=OS(function(){o(),Nd(r,a)})},e.close=i,e}function tE(){var e=gN(),t=e.put;return e.put=function(n){if(n[bS]){t(n);return}XS(function(){t(n)})},e}var Ks=0,Vo=1,wc=2,nE=3;function Eg(e,t){var n=e[gS];Gn(n)&&(t.cancel=n),e.then(t,function(r){t(r,!0)})}var Ha=0,rE=function(){return++Ha},xn;function vN(e,t){return e.isSagaIterator?{name:e.meta.name}:yg(t)}function yN(e){var t=e.context,n=e.fn,r=e.args;try{var o=n.apply(t,r);if(gg(o))return o;var i=!1,l=function(c){return i?{value:c,done:!0}:(i=!0,{value:o,done:!Ld(o)})};return Vh(l)}catch(a){return Vh(function(){throw a})}}function _N(e,t,n){var r=t.channel,o=t.action,i=t.resolve;XS(function(){var l;try{l=(r?r.put:e.dispatch)(o)}catch(a){n(a,!0);return}i&&Ld(l)?Eg(l,n):n(l)})}function bN(e,t,n){var r=t.channel,o=r===void 0?e.channel:r,i=t.pattern,l=t.maybe,a=function(d){if(d instanceof Error){n(d,!0);return}if(Ud(d)&&!l){n(SS);return}n(d)};try{o.take(a,_c(i)?wg(i):null)}catch(c){n(c,!0);return}n.cancel=a.cancel}function wN(e,t,n,r){var o=t.context,i=t.fn,l=t.args,a=r.task;try{var c=i.apply(o,l);if(Ld(c)){Eg(c,n);return}if(gg(c)){Bd(e,c,a.context,Ha,yg(i),!1,n);return}n(c)}catch(d){n(d,!0)}}function SN(e,t,n){var r=t.context,o=t.fn,i=t.args;try{var l=function(c,d){ES(c)?n(d):n(c,!0)};o.apply(r,i.concat(l)),l.cancel&&(n.cancel=l.cancel)}catch(a){n(a,!0)}}function EN(e,t,n,r){var o=t.context,i=t.fn,l=t.args,a=t.detached,c=r.task,d=yN({context:o,fn:i,args:l}),p=vN(d,i);YS(function(){var h=Bd(e,d,c.context,Ha,p,a,void 0);a?n(h):h.isRunning()?(c.queue.addTask(h),n(h)):h.isAborted()?c.queue.abort(h.error()):n(h)})}function $N(e,t,n,r){var o=r.task,i=function(c,d){if(c.isRunning()){var p={task:o,cb:d};d.cancel=function(){c.isRunning()&&Nd(c.joiners,p)},c.joiners.push(p)}else c.isAborted()?d(c.error(),!0):d(c.result())};if(Os(t)){if(t.length===0){n([]);return}var l=RS(t,n);t.forEach(function(a,c){i(a,l[c])})}else i(t,n)}function zp(e){e.isRunning()&&e.cancel()}function xN(e,t,n,r){var o=r.task;t===wS?zp(o):Os(t)?t.forEach(zp):zp(t),n()}function TN(e,t,n,r){var o=r.digestEffect,i=Ha,l=Object.keys(t);if(l.length===0){n(Os(t)?[]:{});return}var a=RS(t,n);l.forEach(function(c){o(t[c],i,a[c],c)})}function CN(e,t,n,r){var o=r.digestEffect,i=Ha,l=Object.keys(t),a=Os(t)?AS(l.length):{},c={},d=!1;l.forEach(function(p){var h=function(y,b){d||(b||PS(y)?(n.cancel(),n(y,b)):(n.cancel(),d=!0,a[p]=y,n(a)))};h.cancel=On,c[p]=h}),n.cancel=function(){d||(d=!0,l.forEach(function(p){return c[p].cancel()}))},l.forEach(function(p){d||o(t[p],i,c[p],p)})}function ON(e,t,n){var r=t.selector,o=t.args;try{var i=r.apply(void 0,[e.getState()].concat(o));n(i)}catch(l){n(l,!0)}}function AN(e,t,n){var r=t.pattern,o=t.buffer,i=Sg(o),l=wg(r),a=function d(p){Ud(p)||e.channel.take(d,l),i.put(p)},c=i.close;i.close=function(){a.cancel(),c()},e.channel.take(a,l),n(i)}function kN(e,t,n,r){var o=r.task;n(o.isCancelled())}function IN(e,t,n){t.flush(n)}function PN(e,t,n,r){var o=r.task;n(o.context[t])}function RN(e,t,n,r){var o=r.task;vg(o.context,t),n()}var LN=(xn={},xn[bc]=bN,xn[DS]=_N,xn[US]=TN,xn[BS]=CN,xn[jS]=wN,xn[tN]=SN,xn[_g]=EN,xn[nN]=$N,xn[VS]=xN,xn[HS]=ON,xn[zS]=AN,xn[WS]=kN,xn[rN]=IN,xn[oN]=PN,xn[sN]=RN,xn);function FN(e,t,n){var r=[],o,i=!1;c(e);var l=function(){return r};function a(p){t(),d(),n(p,!0)}function c(p){r.push(p),p.cont=function(h,v){i||(Nd(r,p),p.cont=On,v?a(h):(p===e&&(o=h),r.length||(i=!0,n(o))))}}function d(){i||(i=!0,r.forEach(function(p){p.cont=On,p.cancel()}),r=[])}return{addTask:c,cancelAll:d,abort:a,getTasks:l}}function oE(e,t){return e+"?"+t}function NN(e){var t=LS(e);if(t){var n=t.code,r=t.fileName,o=t.lineNumber,i=n+" "+oE(r,o);return i}return""}function k1(e){var t=e.name,n=e.location;return n?t+" "+oE(n.fileName,n.lineNumber):t}function MN(e){var t=H7(function(n){return n.cancelledTasks},e);return t.length?["Tasks cancelled due to error:"].concat(t).join(` 18 `):""}var $g=null,na=[],DN=function(t){t.crashedEffect=$g,na.push(t)},sE=function(){$g=null,na.length=0},UN=function(t){$g=t},BN=function(){var t=na[0],n=na.slice(1),r=t.crashedEffect?NN(t.crashedEffect):null,o="The above error occurred in task "+k1(t.meta)+(r?` 19 when executing effect `+r:"");return[o].concat(n.map(function(i){return" created by "+k1(i.meta)}),[MN(na)]).join(` 20 `)};function jN(e,t,n,r,o,i,l){var a;l===void 0&&(l=On);var c=Ks,d,p,h=null,v=[],y=Object.create(n),b=FN(t,function(){v.push.apply(v,b.getTasks().map(function($){return $.meta.name}))},T);function S(){c===Ks&&(c=Vo,b.cancelAll(),T(Hi,!1))}function T(O,$){if(!$)O===Hi?c=Vo:c!==Vo&&(c=nE),d=O,h&&h.resolve(O);else{if(c=wc,DN({meta:o,cancelledTasks:v}),E.isRoot){var P=BN();sE(),e.onError(O,{sagaStack:P})}p=O,h&&h.reject(O)}E.cont(O,$),E.joiners.forEach(function(R){R.cb(O,$)}),E.joiners=null}function C(O){vg(y,O)}function w(){return h||(h=dN(),c===wc?h.reject(p):c!==Ks&&h.resolve(d)),h.promise}var E=(a={},a[N7]=!0,a.id=r,a.meta=o,a.isRoot=i,a.context=y,a.joiners=[],a.queue=b,a.cancel=S,a.cont=l,a.end=T,a.setContext=C,a.toPromise=w,a.isRunning=function(){return c===Ks},a.isCancelled=function(){return c===Vo||c===Ks&&t.status===Vo},a.isAborted=function(){return c===wc},a.result=function(){return d},a.error=function(){return p},a);return E}function Bd(e,t,n,r,o,i,l){var a=e.finalizeRunEffect(y);v.cancel=On;var c={meta:o,cancel:h,status:Ks},d=jN(e,c,n,r,o,i,l),p={task:d,digestEffect:b};function h(){c.status===Ks&&(c.status=Vo,v(Hi))}return l&&(l.cancel=d.cancel),v(),d;function v(S,T){try{var C;T?(C=t.throw(S),sE()):IS(S)?(c.status=Vo,v.cancel(),C=Gn(t.return)?t.return(Hi):{done:!0,value:Hi}):kS(S)?C=Gn(t.return)?t.return():{done:!0}:C=t.next(S),C.done?(c.status!==Vo&&(c.status=nE),c.cont(C.value)):b(C.value,r,v)}catch(w){if(c.status===Vo)throw w;c.status=wc,c.cont(w,!0)}}function y(S,T,C){if(Ld(S))Eg(S,C);else if(gg(S))Bd(e,S,d.context,T,o,!1,C);else if(S&&S[yS]){var w=LN[S.type];w(e,S.payload,C,p)}else C(S)}function b(S,T,C,w){w===void 0&&(w="");var E=rE();e.sagaMonitor&&e.sagaMonitor.effectTriggered({effectId:E,parentEffectId:T,label:w,effect:S});var O;function $(P,R){O||(O=!0,C.cancel=On,e.sagaMonitor&&(R?e.sagaMonitor.effectRejected(E,P):e.sagaMonitor.effectResolved(E,P)),R&&UN(S),C(P,R))}$.cancel=On,C.cancel=function(){O||(O=!0,$.cancel(),$.cancel=On,e.sagaMonitor&&e.sagaMonitor.effectCancelled(E))},a(S,E,$)}}function VN(e,t){for(var n=e.channel,r=n===void 0?tE():n,o=e.dispatch,i=e.getState,l=e.context,a=l===void 0?{}:l,c=e.sagaMonitor,d=e.effectMiddlewares,p=e.onError,h=p===void 0?q7:p,v=arguments.length,y=new Array(v>2?v-2:0),b=2;b<v;b++)y[b-2]=arguments[b];var S=t.apply(void 0,y),T=rE();c&&(c.rootSagaStarted=c.rootSagaStarted||On,c.effectTriggered=c.effectTriggered||On,c.effectResolved=c.effectResolved||On,c.effectRejected=c.effectRejected||On,c.effectCancelled=c.effectCancelled||On,c.actionDispatched=c.actionDispatched||On,c.rootSagaStarted({effectId:T,saga:t,args:y}));var C;if(d){var w=G7.apply(void 0,d);C=function($){return function(P,R,k){var W=function(j){return $(j,R,k)};return w(W)(P)}}}else C=CS;var E={channel:r,dispatch:K7(o),getState:i,sagaMonitor:c,onError:h,finalizeRunEffect:C};return YS(function(){var O=Bd(E,S,a,T,yg(t),!0,void 0);return c&&c.effectResolved(T,O),O})}function HN(e){var t={},n=t.context,r=n===void 0?{}:n,o=t.channel,i=o===void 0?tE():o,l=t.sagaMonitor,a=D7(t,["context","channel","sagaMonitor"]),c;function d(p){var h=p.getState,v=p.dispatch;return c=VN.bind(null,xa({},a,{context:r,channel:i,dispatch:v,getState:h,sagaMonitor:l})),function(y){return function(b){l&&l.actionDispatched&&l.actionDispatched(b);var S=y(b);return i.put(b),S}}}return d.run=function(){return c.apply(void 0,arguments)},d.setContext=function(p){vg(r,p)},d}var Kc="NOT_FOUND";function zN(e){var t;return{get:function(r){return t&&e(t.key,r)?t.value:Kc},put:function(r,o){t={key:r,value:o}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function WN(e,t){var n=[];function r(a){var c=n.findIndex(function(p){return t(a,p.key)});if(c>-1){var d=n[c];return c>0&&(n.splice(c,1),n.unshift(d)),d.value}return Kc}function o(a,c){r(a)===Kc&&(n.unshift({key:a,value:c}),n.length>e&&n.pop())}function i(){return n}function l(){n=[]}return{get:r,put:o,getEntries:i,clear:l}}var qN=function(t,n){return t===n};function KN(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;for(var o=n.length,i=0;i<o;i++)if(!e(n[i],r[i]))return!1;return!0}}function GN(e,t){var n=typeof t=="object"?t:{equalityCheck:t},r=n.equalityCheck,o=r===void 0?qN:r,i=n.maxSize,l=i===void 0?1:i,a=n.resultEqualityCheck,c=KN(o),d=l===1?zN(c):WN(l,c);function p(){var h=d.get(arguments);if(h===Kc){if(h=e.apply(null,arguments),a){var v=d.getEntries(),y=v.find(function(b){return a(b.value,h)});y&&(h=y.value)}d.put(arguments,h)}return h}return p.clearCache=function(){return d.clear()},p}function XN(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every(function(r){return typeof r=="function"})){var n=t.map(function(r){return typeof r=="function"?"function "+(r.name||"unnamed")+"()":typeof r}).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+n+"]")}return t}function YN(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=function(){for(var l=arguments.length,a=new Array(l),c=0;c<l;c++)a[c]=arguments[c];var d=0,p,h={memoizeOptions:void 0},v=a.pop();if(typeof v=="object"&&(h=v,v=a.pop()),typeof v!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof v+"]");var y=h,b=y.memoizeOptions,S=b===void 0?n:b,T=Array.isArray(S)?S:[S],C=XN(a),w=e.apply(void 0,[function(){return d++,v.apply(null,arguments)}].concat(T)),E=e(function(){for(var O=[],$=C.length,P=0;P<$;P++)O.push(C[P].apply(null,arguments));return p=w.apply(null,O),p});return Object.assign(E,{resultFunc:v,memoizedResultFunc:w,dependencies:C,lastResult:function(){return p},recomputations:function(){return d},resetRecomputations:function(){return d=0}}),E};return o}var he=YN(GN),Ll=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function JN(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ZN=function(e,t,n,r,o,i,l,a){if(!e){var c;if(t===void 0)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var d=[n,r,o,i,l,a],p=0;c=new Error(t.replace(/%s/g,function(){return d[p++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}},QN=ZN;const Gc=JN(QN),Xc=function(e){return typeof e=="function"},I1=function(e){return e.toString()};var eM="/",Sc="||";const ra=function(e){return e},P1=function(e){return e===null};function oe(e,t,n){t===void 0&&(t=ra),Gc(Xc(t)||P1(t),"Expected payloadCreator to be a function, undefined or null");var r=P1(t)||t===ra?ra:function(a){for(var c=arguments.length,d=new Array(c>1?c-1:0),p=1;p<c;p++)d[p-1]=arguments[p];return a instanceof Error?a:t.apply(void 0,[a].concat(d))},o=Xc(n),i=e.toString(),l=function(){var c=r.apply(void 0,arguments),d={type:e};return c instanceof Error&&(d.error=!0),c!==void 0&&(d.payload=c),o&&(d.meta=n.apply(void 0,arguments)),d};return l.toString=function(){return i},l}const xg=function(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t},tM=function(e){return e==null},jd=function(e){return typeof Map<"u"&&e instanceof Map};function Tg(e){if(jd(e))return Array.from(e.keys());if(typeof Reflect<"u"&&typeof Reflect.ownKeys=="function")return Reflect.ownKeys(e);var t=Object.getOwnPropertyNames(e);return typeof Object.getOwnPropertySymbols=="function"&&(t=t.concat(Object.getOwnPropertySymbols(e))),t}function iE(e,t){return jd(t)?t.get(e):t[e]}const nM=function(e){return function t(n,r,o,i){var l=r===void 0?{}:r,a=l.namespace,c=a===void 0?eM:a,d=l.prefix;o===void 0&&(o={}),i===void 0&&(i="");function p(v){var y;if(!i)return v;var b=v.toString().split(Sc),S=i.split(Sc);return(y=[]).concat.apply(y,S.map(function(T){return b.map(function(C){return""+T+c+C})})).join(Sc)}function h(v){return i||!d||d&&new RegExp("^"+d+c).test(v)?v:""+d+c+v}return Tg(n).forEach(function(v){var y=h(p(v)),b=iE(v,n);e(b)?t(b,{namespace:c,prefix:d},o,y):o[y]=b}),o}},rM=function(e){return e===void 0};function oM(e,t,n){t===void 0&&(t=ra);var r=I1(e).split(Sc);Gc(!rM(n),"defaultState for reducer handling "+r.join(", ")+" should be defined"),Gc(Xc(t)||xg(t),"Expected reducer to be a function or object with next and throw reducers");var o=Xc(t)?[t,t]:[t.next,t.throw].map(function(a){return tM(a)?ra:a}),i=o[0],l=o[1];return function(a,c){a===void 0&&(a=n);var d=c.type;return!d||r.indexOf(I1(d))===-1?a:(c.error===!0?l:i)(a,c)}}const sM=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=typeof t[t.length-1]!="function"&&t.pop(),o=t;if(typeof r>"u")throw new TypeError("The initial state may not be undefined. If you do not want to set a value for this reducer, you can use null instead of undefined.");return function(i,l){for(var a=arguments.length,c=Array(a>2?a-2:0),d=2;d<a;d++)c[d-2]=arguments[d];var p=typeof i>"u",h=typeof l>"u";return p&&h&&r?r:o.reduce(function(v,y){return y.apply(void 0,[v,l].concat(c))},p&&!h&&r?r:i)}};function iM(e){var t=Tg(e),n=t.every(function(r){return r==="next"||r==="throw"});return t.length&&t.length<=2&&n}const lM=nM(function(e){return(xg(e)||jd(e))&&!iM(e)});function bn(e,t,n){n===void 0&&(n={}),Gc(xg(e)||jd(e),"Expected handlers to be a plain object.");var r=lM(e,n),o=Tg(r).map(function(l){return oM(l,iE(l,r),t)}),i=sM.apply(void 0,o.concat([t]));return function(l,a){return l===void 0&&(l=t),i(l,a)}}const qr="podlove/publisher/INIT",aM="podlove/publisher/READY",uM="podlove/publisher/SAVE",cM="podlove/publisher/ERROR",dM=oe(qr),fM=oe(uM);oe(cM);const pM=oe(aM),hM={saved:!1,changes:!1,bootstrapped:!1},mM=bn({[qr]:e=>({...e,bootstrapped:!0})},hM),gM={bootstrapped:e=>e.bootstrapped};var Yc={exports:{}};/** 21 21 * @license 22 22 * Lodash <https://lodash.com/> … … 25 25 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE> 26 26 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors 27 */Yc.exports;(function(e,t){(function(){var n,r="4.17.21",o=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",a="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",d=500,p="__lodash_placeholder__",h=1,v=2,y=4,b=1,S=2,T=1,C=2,w=4,E=8,O=16,$=32,P=64,R=128,k=256,W=512,U=30,j="...",G=800,X=16,ne=1,xe=2,Ee=3,ke=1/0,Ie=9007199254740991,Qe=17976931348623157e292,ht=NaN,De=4294967295,Xe=De-1,Q=De>>>1,ce=[["ary",R],["bind",T],["bindKey",C],["curry",E],["curryRight",O],["flip",W],["partial",$],["partialRight",P],["rearg",k]],ve="[object Arguments]",Ce="[object Array]",We="[object AsyncFunction]",Ve="[object Boolean]",rt="[object Date]",wn="[object DOMException]",an="[object Error]",M="[object Function]",V="[object GeneratorFunction]",Z="[object Map]",ue="[object Number]",le="[object Null]",ye="[object Object]",Oe="[object Promise]",we="[object Proxy]",Se="[object RegExp]",ae="[object Set]",Fe="[object String]",Pe="[object Symbol]",je="[object Undefined]",ze="[object WeakMap]",st="[object WeakSet]",yt="[object ArrayBuffer]",ft="[object DataView]",Ht="[object Float32Array]",Vn="[object Float64Array]", mo="[object Int8Array]",_i="[object Int16Array]",Oo="[object Int32Array]",bi="[object Uint8Array]",Sn="[object Uint8ClampedArray]",Gn="[object Uint16Array]",wi="[object Uint32Array]",mC=/\b__p \+= '';/g,gC=/\b(__p \+=) '' \+/g,vC=/(__e\(.*?\)|\b__t\)) \+\n'';/g,jv=/&(?:amp|lt|gt|quot|#39);/g,Vv=/[&<>"']/g,yC=RegExp(jv.source),_C=RegExp(Vv.source),bC=/<%-([\s\S]+?)%>/g,wC=/<%([\s\S]+?)%>/g,Hv=/<%=([\s\S]+?)%>/g,SC=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,EC=/^\w*$/,$C=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,gf=/[\\^$.*+?()[\]{}|]/g,xC=RegExp(gf.source),vf=/^\s+/,TC=/\s/,CC=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,OC=/\{\n\/\* \[wrapped with (.+)\] \*/,AC=/,? & /,kC=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,IC=/[()=,{}\[\]\/\s]/,PC=/\\(\\)?/g,RC=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,zv=/\w*$/,LC=/^[-+]0x[0-9a-f]+$/i,FC=/^0b[01]+$/i,NC=/^\[object .+?Constructor\]$/,MC=/^0o[0-7]+$/i,DC=/^(?:0|[1-9]\d*)$/,UC=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ru=/($^)/,BC=/['\n\r\u2028\u2029\\]/g,ou="\\ud800-\\udfff",jC="\\u0300-\\u036f",VC="\\ufe20-\\ufe2f",HC="\\u20d0-\\u20ff",Wv=jC+VC+HC,qv="\\u2700-\\u27bf",Kv="a-z\\xdf-\\xf6\\xf8-\\xff",zC="\\xac\\xb1\\xd7\\xf7",WC="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",qC="\\u2000-\\u206f",KC=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Gv="A-Z\\xc0-\\xd6\\xd8-\\xde",Xv="\\ufe0e\\ufe0f",Yv=zC+WC+qC+KC,yf="['’]",GC="["+ou+"]",Jv="["+Yv+"]",su="["+Wv+"]",Zv="\\d+",XC="["+qv+"]",Qv="["+Kv+"]",e0="[^"+ou+Yv+Zv+qv+Kv+Gv+"]",_f="\\ud83c[\\udffb-\\udfff]",YC="(?:"+su+"|"+_f+")",t0="[^"+ou+"]",bf="(?:\\ud83c[\\udde6-\\uddff]){2}",wf="[\\ud800-\\udbff][\\udc00-\\udfff]",Si="["+Gv+"]",n0="\\u200d",r0="(?:"+Qv+"|"+e0+")",JC="(?:"+Si+"|"+e0+")",o0="(?:"+yf+"(?:d|ll|m|re|s|t|ve))?",s0="(?:"+yf+"(?:D|LL|M|RE|S|T|VE))?",i0=YC+"?",l0="["+Xv+"]?",ZC="(?:"+n0+"(?:"+[t0,bf,wf].join("|")+")"+l0+i0+")*",QC="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",e5="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",a0=l0+i0+ZC,t5="(?:"+[XC,bf,wf].join("|")+")"+a0,n5="(?:"+[t0+su+"?",su,bf,wf,GC].join("|")+")",r5=RegExp(yf,"g"),o5=RegExp(su,"g"),Sf=RegExp(_f+"(?="+_f+")|"+n5+a0,"g"),s5=RegExp([Si+"?"+Qv+"+"+o0+"(?="+[Jv,Si,"$"].join("|")+")",JC+"+"+s0+"(?="+[Jv,Si+r0,"$"].join("|")+")",Si+"?"+r0+"+"+o0,Si+"+"+s0,e5,QC,Zv,t5].join("|"),"g"),i5=RegExp("["+n0+ou+Wv+Xv+"]"),l5=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,a5=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],u5=-1,Bt={};Bt[Ht]=Bt[Vn]=Bt[mo]=Bt[_i]=Bt[Oo]=Bt[bi]=Bt[Sn]=Bt[Gn]=Bt[wi]=!0,Bt[ve]=Bt[Ce]=Bt[yt]=Bt[Ve]=Bt[ft]=Bt[rt]=Bt[an]=Bt[M]=Bt[Z]=Bt[ue]=Bt[ye]=Bt[Se]=Bt[ae]=Bt[Fe]=Bt[ze]=!1;var Nt={};Nt[ve]=Nt[Ce]=Nt[yt]=Nt[ft]=Nt[Ve]=Nt[rt]=Nt[Ht]=Nt[Vn]=Nt[mo]=Nt[_i]=Nt[Oo]=Nt[Z]=Nt[ue]=Nt[ye]=Nt[Se]=Nt[ae]=Nt[Fe]=Nt[Pe]=Nt[bi]=Nt[Sn]=Nt[Gn]=Nt[wi]=!0,Nt[an]=Nt[M]=Nt[ze]=!1;var c5={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},d5={"&":"&","<":"<",">":">",'"':""","'":"'"},f5={"&":"&","<":"<",">":">",""":'"',"'":"'"},p5={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},h5=parseFloat,m5=parseInt,u0=typeof Ll=="object"&&Ll&&Ll.Object===Object&&Ll,g5=typeof self=="object"&&self&&self.Object===Object&&self,En=u0||g5||Function("return this")(),Ef=t&&!t.nodeType&&t,Is=Ef&&!0&&e&&!e.nodeType&&e,c0=Is&&Is.exports===Ef,$f=c0&&u0.process,xr=function(){try{var H=Is&&Is.require&&Is.require("util").types;return H||$f&&$f.binding&&$f.binding("util")}catch{}}(),d0=xr&&xr.isArrayBuffer,f0=xr&&xr.isDate,p0=xr&&xr.isMap,h0=xr&&xr.isRegExp,m0=xr&&xr.isSet,g0=xr&&xr.isTypedArray;function cr(H,re,J){switch(J.length){case 0:return H.call(re);case 1:return H.call(re,J[0]);case 2:return H.call(re,J[0],J[1]);case 3:return H.call(re,J[0],J[1],J[2])}return H.apply(re,J)}function v5(H,re,J,Re){for(var et=-1,Tt=H==null?0:H.length;++et<Tt;){var un=H[et];re(Re,un,J(un),H)}return Re}function Tr(H,re){for(var J=-1,Re=H==null?0:H.length;++J<Re&&re(H[J],J,H)!==!1;);return H}function y5(H,re){for(var J=H==null?0:H.length;J--&&re(H[J],J,H)!==!1;);return H}function v0(H,re){for(var J=-1,Re=H==null?0:H.length;++J<Re;)if(!re(H[J],J,H))return!1;return!0}function Zo(H,re){for(var J=-1,Re=H==null?0:H.length,et=0,Tt=[];++J<Re;){var un=H[J];re(un,J,H)&&(Tt[et++]=un)}return Tt}function iu(H,re){var J=H==null?0:H.length;return!!J&&Ei(H,re,0)>-1}function xf(H,re,J){for(var Re=-1,et=H==null?0:H.length;++Re<et;)if(J(re,H[Re]))return!0;return!1}function zt(H,re){for(var J=-1,Re=H==null?0:H.length,et=Array(Re);++J<Re;)et[J]=re(H[J],J,H);return et}function Qo(H,re){for(var J=-1,Re=re.length,et=H.length;++J<Re;)H[et+J]=re[J];return H}function Tf(H,re,J,Re){var et=-1,Tt=H==null?0:H.length;for(Re&&Tt&&(J=H[++et]);++et<Tt;)J=re(J,H[et],et,H);return J}function _5(H,re,J,Re){var et=H==null?0:H.length;for(Re&&et&&(J=H[--et]);et--;)J=re(J,H[et],et,H);return J}function Cf(H,re){for(var J=-1,Re=H==null?0:H.length;++J<Re;)if(re(H[J],J,H))return!0;return!1}var b5=Of("length");function w5(H){return H.split("")}function S5(H){return H.match(kC)||[]}function y0(H,re,J){var Re;return J(H,function(et,Tt,un){if(re(et,Tt,un))return Re=Tt,!1}),Re}function lu(H,re,J,Re){for(var et=H.length,Tt=J+(Re?1:-1);Re?Tt--:++Tt<et;)if(re(H[Tt],Tt,H))return Tt;return-1}function Ei(H,re,J){return re===re?L5(H,re,J):lu(H,_0,J)}function E5(H,re,J,Re){for(var et=J-1,Tt=H.length;++et<Tt;)if(Re(H[et],re))return et;return-1}function _0(H){return H!==H}function b0(H,re){var J=H==null?0:H.length;return J?kf(H,re)/J:ht}function Of(H){return function(re){return re==null?n:re[H]}}function Af(H){return function(re){return H==null?n:H[re]}}function w0(H,re,J,Re,et){return et(H,function(Tt,un,Rt){J=Re?(Re=!1,Tt):re(J,Tt,un,Rt)}),J}function $5(H,re){var J=H.length;for(H.sort(re);J--;)H[J]=H[J].value;return H}function kf(H,re){for(var J,Re=-1,et=H.length;++Re<et;){var Tt=re(H[Re]);Tt!==n&&(J=J===n?Tt:J+Tt)}return J}function If(H,re){for(var J=-1,Re=Array(H);++J<H;)Re[J]=re(J);return Re}function x5(H,re){return zt(re,function(J){return[J,H[J]]})}function S0(H){return H&&H.slice(0,T0(H)+1).replace(vf,"")}function dr(H){return function(re){return H(re)}}function Pf(H,re){return zt(re,function(J){return H[J]})}function gl(H,re){return H.has(re)}function E0(H,re){for(var J=-1,Re=H.length;++J<Re&&Ei(re,H[J],0)>-1;);return J}function $0(H,re){for(var J=H.length;J--&&Ei(re,H[J],0)>-1;);return J}function T5(H,re){for(var J=H.length,Re=0;J--;)H[J]===re&&++Re;return Re}var C5=Af(c5),O5=Af(d5);function A5(H){return"\\"+p5[H]}function k5(H,re){return H==null?n:H[re]}function $i(H){return i5.test(H)}function I5(H){return l5.test(H)}function P5(H){for(var re,J=[];!(re=H.next()).done;)J.push(re.value);return J}function Rf(H){var re=-1,J=Array(H.size);return H.forEach(function(Re,et){J[++re]=[et,Re]}),J}function x0(H,re){return function(J){return H(re(J))}}function es(H,re){for(var J=-1,Re=H.length,et=0,Tt=[];++J<Re;){var un=H[J];(un===re||un===p)&&(H[J]=p,Tt[et++]=J)}return Tt}function au(H){var re=-1,J=Array(H.size);return H.forEach(function(Re){J[++re]=Re}),J}function R5(H){var re=-1,J=Array(H.size);return H.forEach(function(Re){J[++re]=[Re,Re]}),J}function L5(H,re,J){for(var Re=J-1,et=H.length;++Re<et;)if(H[Re]===re)return Re;return-1}function F5(H,re,J){for(var Re=J+1;Re--;)if(H[Re]===re)return Re;return Re}function xi(H){return $i(H)?M5(H):b5(H)}function Gr(H){return $i(H)?D5(H):w5(H)}function T0(H){for(var re=H.length;re--&&TC.test(H.charAt(re)););return re}var N5=Af(f5);function M5(H){for(var re=Sf.lastIndex=0;Sf.test(H);)++re;return re}function D5(H){return H.match(Sf)||[]}function U5(H){return H.match(s5)||[]}var B5=function H(re){re=re==null?En:Ti.defaults(En.Object(),re,Ti.pick(En,a5));var J=re.Array,Re=re.Date,et=re.Error,Tt=re.Function,un=re.Math,Rt=re.Object,Lf=re.RegExp,j5=re.String,Cr=re.TypeError,uu=J.prototype,V5=Tt.prototype,Ci=Rt.prototype,cu=re["__core-js_shared__"],du=V5.toString,It=Ci.hasOwnProperty,H5=0,C0=function(){var s=/[^.]+$/.exec(cu&&cu.keys&&cu.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""}(),fu=Ci.toString,z5=du.call(Rt),W5=En._,q5=Lf("^"+du.call(It).replace(gf,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),pu=c0?re.Buffer:n,ts=re.Symbol,hu=re.Uint8Array,O0=pu?pu.allocUnsafe:n,mu=x0(Rt.getPrototypeOf,Rt),A0=Rt.create,k0=Ci.propertyIsEnumerable,gu=uu.splice,I0=ts?ts.isConcatSpreadable:n,vl=ts?ts.iterator:n,Ps=ts?ts.toStringTag:n,vu=function(){try{var s=Ms(Rt,"defineProperty");return s({},"",{}),s}catch{}}(),K5=re.clearTimeout!==En.clearTimeout&&re.clearTimeout,G5=Re&&Re.now!==En.Date.now&&Re.now,X5=re.setTimeout!==En.setTimeout&&re.setTimeout,yu=un.ceil,_u=un.floor,Ff=Rt.getOwnPropertySymbols,Y5=pu?pu.isBuffer:n,P0=re.isFinite,J5=uu.join,Z5=x0(Rt.keys,Rt),cn=un.max,Rn=un.min,Q5=Re.now,e3=re.parseInt,R0=un.random,t3=uu.reverse,Nf=Ms(re,"DataView"),yl=Ms(re,"Map"),Mf=Ms(re,"Promise"),Oi=Ms(re,"Set"),_l=Ms(re,"WeakMap"),bl=Ms(Rt,"create"),bu=_l&&new _l,Ai={},n3=Ds(Nf),r3=Ds(yl),o3=Ds(Mf),s3=Ds(Oi),i3=Ds(_l),wu=ts?ts.prototype:n,wl=wu?wu.valueOf:n,L0=wu?wu.toString:n;function x(s){if(Yt(s)&&!tt(s)&&!(s instanceof vt)){if(s instanceof Or)return s;if(It.call(s,"__wrapped__"))return Fy(s)}return new Or(s)}var ki=function(){function s(){}return function(u){if(!Gt(u))return{};if(A0)return A0(u);s.prototype=u;var f=new s;return s.prototype=n,f}}();function Su(){}function Or(s,u){this.__wrapped__=s,this.__actions__=[],this.__chain__=!!u,this.__index__=0,this.__values__=n}x.templateSettings={escape:bC,evaluate:wC,interpolate:Hv,variable:"",imports:{_:x}},x.prototype=Su.prototype,x.prototype.constructor=x,Or.prototype=ki(Su.prototype),Or.prototype.constructor=Or;function vt(s){this.__wrapped__=s,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=De,this.__views__=[]}function l3(){var s=new vt(this.__wrapped__);return s.__actions__=Xn(this.__actions__),s.__dir__=this.__dir__,s.__filtered__=this.__filtered__,s.__iteratees__=Xn(this.__iteratees__),s.__takeCount__=this.__takeCount__,s.__views__=Xn(this.__views__),s}function a3(){if(this.__filtered__){var s=new vt(this);s.__dir__=-1,s.__filtered__=!0}else s=this.clone(),s.__dir__*=-1;return s}function u3(){var s=this.__wrapped__.value(),u=this.__dir__,f=tt(s),g=u<0,_=f?s.length:0,A=wO(0,_,this.__views__),N=A.start,D=A.end,K=D-N,se=g?D:N-1,ie=this.__iteratees__,pe=ie.length,Ae=0,Ue=Rn(K,this.__takeCount__);if(!f||!g&&_==K&&Ue==K)return oy(s,this.__actions__);var Ke=[];e:for(;K--&&Ae<Ue;){se+=u;for(var lt=-1,Ge=s[se];++lt<pe;){var mt=ie[lt],_t=mt.iteratee,hr=mt.type,Wn=_t(Ge);if(hr==xe)Ge=Wn;else if(!Wn){if(hr==ne)continue e;break e}}Ke[Ae++]=Ge}return Ke}vt.prototype=ki(Su.prototype),vt.prototype.constructor=vt;function Rs(s){var u=-1,f=s==null?0:s.length;for(this.clear();++u<f;){var g=s[u];this.set(g[0],g[1])}}function c3(){this.__data__=bl?bl(null):{},this.size=0}function d3(s){var u=this.has(s)&&delete this.__data__[s];return this.size-=u?1:0,u}function f3(s){var u=this.__data__;if(bl){var f=u[s];return f===c?n:f}return It.call(u,s)?u[s]:n}function p3(s){var u=this.__data__;return bl?u[s]!==n:It.call(u,s)}function h3(s,u){var f=this.__data__;return this.size+=this.has(s)?0:1,f[s]=bl&&u===n?c:u,this}Rs.prototype.clear=c3,Rs.prototype.delete=d3,Rs.prototype.get=f3,Rs.prototype.has=p3,Rs.prototype.set=h3;function Ao(s){var u=-1,f=s==null?0:s.length;for(this.clear();++u<f;){var g=s[u];this.set(g[0],g[1])}}function m3(){this.__data__=[],this.size=0}function g3(s){var u=this.__data__,f=Eu(u,s);if(f<0)return!1;var g=u.length-1;return f==g?u.pop():gu.call(u,f,1),--this.size,!0}function v3(s){var u=this.__data__,f=Eu(u,s);return f<0?n:u[f][1]}function y3(s){return Eu(this.__data__,s)>-1}function _3(s,u){var f=this.__data__,g=Eu(f,s);return g<0?(++this.size,f.push([s,u])):f[g][1]=u,this}Ao.prototype.clear=m3,Ao.prototype.delete=g3,Ao.prototype.get=v3,Ao.prototype.has=y3,Ao.prototype.set=_3;function ko(s){var u=-1,f=s==null?0:s.length;for(this.clear();++u<f;){var g=s[u];this.set(g[0],g[1])}}function b3(){this.size=0,this.__data__={hash:new Rs,map:new(yl||Ao),string:new Rs}}function w3(s){var u=Fu(this,s).delete(s);return this.size-=u?1:0,u}function S3(s){return Fu(this,s).get(s)}function E3(s){return Fu(this,s).has(s)}function $3(s,u){var f=Fu(this,s),g=f.size;return f.set(s,u),this.size+=f.size==g?0:1,this}ko.prototype.clear=b3,ko.prototype.delete=w3,ko.prototype.get=S3,ko.prototype.has=E3,ko.prototype.set=$3;function Ls(s){var u=-1,f=s==null?0:s.length;for(this.__data__=new ko;++u<f;)this.add(s[u])}function x3(s){return this.__data__.set(s,c),this}function T3(s){return this.__data__.has(s)}Ls.prototype.add=Ls.prototype.push=x3,Ls.prototype.has=T3;function Xr(s){var u=this.__data__=new Ao(s);this.size=u.size}function C3(){this.__data__=new Ao,this.size=0}function O3(s){var u=this.__data__,f=u.delete(s);return this.size=u.size,f}function A3(s){return this.__data__.get(s)}function k3(s){return this.__data__.has(s)}function I3(s,u){var f=this.__data__;if(f instanceof Ao){var g=f.__data__;if(!yl||g.length<o-1)return g.push([s,u]),this.size=++f.size,this;f=this.__data__=new ko(g)}return f.set(s,u),this.size=f.size,this}Xr.prototype.clear=C3,Xr.prototype.delete=O3,Xr.prototype.get=A3,Xr.prototype.has=k3,Xr.prototype.set=I3;function F0(s,u){var f=tt(s),g=!f&&Us(s),_=!f&&!g&&is(s),A=!f&&!g&&!_&&Li(s),N=f||g||_||A,D=N?If(s.length,j5):[],K=D.length;for(var se in s)(u||It.call(s,se))&&!(N&&(se=="length"||_&&(se=="offset"||se=="parent")||A&&(se=="buffer"||se=="byteLength"||se=="byteOffset")||Lo(se,K)))&&D.push(se);return D}function N0(s){var u=s.length;return u?s[Gf(0,u-1)]:n}function P3(s,u){return Nu(Xn(s),Fs(u,0,s.length))}function R3(s){return Nu(Xn(s))}function Df(s,u,f){(f!==n&&!Yr(s[u],f)||f===n&&!(u in s))&&Io(s,u,f)}function Sl(s,u,f){var g=s[u];(!(It.call(s,u)&&Yr(g,f))||f===n&&!(u in s))&&Io(s,u,f)}function Eu(s,u){for(var f=s.length;f--;)if(Yr(s[f][0],u))return f;return-1}function L3(s,u,f,g){return ns(s,function(_,A,N){u(g,_,f(_),N)}),g}function M0(s,u){return s&&vo(u,mn(u),s)}function F3(s,u){return s&&vo(u,Jn(u),s)}function Io(s,u,f){u=="__proto__"&&vu?vu(s,u,{configurable:!0,enumerable:!0,value:f,writable:!0}):s[u]=f}function Uf(s,u){for(var f=-1,g=u.length,_=J(g),A=s==null;++f<g;)_[f]=A?n:_p(s,u[f]);return _}function Fs(s,u,f){return s===s&&(f!==n&&(s=s<=f?s:f),u!==n&&(s=s>=u?s:u)),s}function Ar(s,u,f,g,_,A){var N,D=u&h,K=u&v,se=u&y;if(f&&(N=_?f(s,g,_,A):f(s)),N!==n)return N;if(!Gt(s))return s;var ie=tt(s);if(ie){if(N=EO(s),!D)return Xn(s,N)}else{var pe=Ln(s),Ae=pe==M||pe==V;if(is(s))return ly(s,D);if(pe==ye||pe==ve||Ae&&!_){if(N=K||Ae?{}:Ty(s),!D)return K?fO(s,F3(N,s)):dO(s,M0(N,s))}else{if(!Nt[pe])return _?s:{};N=$O(s,pe,D)}}A||(A=new Xr);var Ue=A.get(s);if(Ue)return Ue;A.set(s,N),t1(s)?s.forEach(function(Ge){N.add(Ar(Ge,u,f,Ge,s,A))}):Qy(s)&&s.forEach(function(Ge,mt){N.set(mt,Ar(Ge,u,f,mt,s,A))});var Ke=se?K?sp:op:K?Jn:mn,lt=ie?n:Ke(s);return Tr(lt||s,function(Ge,mt){lt&&(mt=Ge,Ge=s[mt]),Sl(N,mt,Ar(Ge,u,f,mt,s,A))}),N}function N3(s){var u=mn(s);return function(f){return D0(f,s,u)}}function D0(s,u,f){var g=f.length;if(s==null)return!g;for(s=Rt(s);g--;){var _=f[g],A=u[_],N=s[_];if(N===n&&!(_ in s)||!A(N))return!1}return!0}function U0(s,u,f){if(typeof s!="function")throw new Cr(l);return Al(function(){s.apply(n,f)},u)}function El(s,u,f,g){var _=-1,A=iu,N=!0,D=s.length,K=[],se=u.length;if(!D)return K;f&&(u=zt(u,dr(f))),g?(A=xf,N=!1):u.length>=o&&(A=gl,N=!1,u=new Ls(u));e:for(;++_<D;){var ie=s[_],pe=f==null?ie:f(ie);if(ie=g||ie!==0?ie:0,N&&pe===pe){for(var Ae=se;Ae--;)if(u[Ae]===pe)continue e;K.push(ie)}else A(u,pe,g)||K.push(ie)}return K}var ns=fy(go),B0=fy(jf,!0);function M3(s,u){var f=!0;return ns(s,function(g,_,A){return f=!!u(g,_,A),f}),f}function $u(s,u,f){for(var g=-1,_=s.length;++g<_;){var A=s[g],N=u(A);if(N!=null&&(D===n?N===N&&!pr(N):f(N,D)))var D=N,K=A}return K}function D3(s,u,f,g){var _=s.length;for(f=it(f),f<0&&(f=-f>_?0:_+f),g=g===n||g>_?_:it(g),g<0&&(g+=_),g=f>g?0:r1(g);f<g;)s[f++]=u;return s}function j0(s,u){var f=[];return ns(s,function(g,_,A){u(g,_,A)&&f.push(g)}),f}function $n(s,u,f,g,_){var A=-1,N=s.length;for(f||(f=TO),_||(_=[]);++A<N;){var D=s[A];u>0&&f(D)?u>1?$n(D,u-1,f,g,_):Qo(_,D):g||(_[_.length]=D)}return _}var Bf=py(),V0=py(!0);function go(s,u){return s&&Bf(s,u,mn)}function jf(s,u){return s&&V0(s,u,mn)}function xu(s,u){return Zo(u,function(f){return Fo(s[f])})}function Ns(s,u){u=os(u,s);for(var f=0,g=u.length;s!=null&&f<g;)s=s[yo(u[f++])];return f&&f==g?s:n}function H0(s,u,f){var g=u(s);return tt(s)?g:Qo(g,f(s))}function Hn(s){return s==null?s===n?je:le:Ps&&Ps in Rt(s)?bO(s):RO(s)}function Vf(s,u){return s>u}function U3(s,u){return s!=null&&It.call(s,u)}function B3(s,u){return s!=null&&u in Rt(s)}function j3(s,u,f){return s>=Rn(u,f)&&s<cn(u,f)}function Hf(s,u,f){for(var g=f?xf:iu,_=s[0].length,A=s.length,N=A,D=J(A),K=1/0,se=[];N--;){var ie=s[N];N&&u&&(ie=zt(ie,dr(u))),K=Rn(ie.length,K),D[N]=!f&&(u||_>=120&&ie.length>=120)?new Ls(N&&ie):n}ie=s[0];var pe=-1,Ae=D[0];e:for(;++pe<_&&se.length<K;){var Ue=ie[pe],Ke=u?u(Ue):Ue;if(Ue=f||Ue!==0?Ue:0,!(Ae?gl(Ae,Ke):g(se,Ke,f))){for(N=A;--N;){var lt=D[N];if(!(lt?gl(lt,Ke):g(s[N],Ke,f)))continue e}Ae&&Ae.push(Ke),se.push(Ue)}}return se}function V3(s,u,f,g){return go(s,function(_,A,N){u(g,f(_),A,N)}),g}function $l(s,u,f){u=os(u,s),s=ky(s,u);var g=s==null?s:s[yo(Ir(u))];return g==null?n:cr(g,s,f)}function z0(s){return Yt(s)&&Hn(s)==ve}function H3(s){return Yt(s)&&Hn(s)==yt}function z3(s){return Yt(s)&&Hn(s)==rt}function xl(s,u,f,g,_){return s===u?!0:s==null||u==null||!Yt(s)&&!Yt(u)?s!==s&&u!==u:W3(s,u,f,g,xl,_)}function W3(s,u,f,g,_,A){var N=tt(s),D=tt(u),K=N?Ce:Ln(s),se=D?Ce:Ln(u);K=K==ve?ye:K,se=se==ve?ye:se;var ie=K==ye,pe=se==ye,Ae=K==se;if(Ae&&is(s)){if(!is(u))return!1;N=!0,ie=!1}if(Ae&&!ie)return A||(A=new Xr),N||Li(s)?Ey(s,u,f,g,_,A):yO(s,u,K,f,g,_,A);if(!(f&b)){var Ue=ie&&It.call(s,"__wrapped__"),Ke=pe&&It.call(u,"__wrapped__");if(Ue||Ke){var lt=Ue?s.value():s,Ge=Ke?u.value():u;return A||(A=new Xr),_(lt,Ge,f,g,A)}}return Ae?(A||(A=new Xr),_O(s,u,f,g,_,A)):!1}function q3(s){return Yt(s)&&Ln(s)==Z}function zf(s,u,f,g){var _=f.length,A=_,N=!g;if(s==null)return!A;for(s=Rt(s);_--;){var D=f[_];if(N&&D[2]?D[1]!==s[D[0]]:!(D[0]in s))return!1}for(;++_<A;){D=f[_];var K=D[0],se=s[K],ie=D[1];if(N&&D[2]){if(se===n&&!(K in s))return!1}else{var pe=new Xr;if(g)var Ae=g(se,ie,K,s,u,pe);if(!(Ae===n?xl(ie,se,b|S,g,pe):Ae))return!1}}return!0}function W0(s){if(!Gt(s)||OO(s))return!1;var u=Fo(s)?q5:NC;return u.test(Ds(s))}function K3(s){return Yt(s)&&Hn(s)==Se}function G3(s){return Yt(s)&&Ln(s)==ae}function X3(s){return Yt(s)&&Vu(s.length)&&!!Bt[Hn(s)]}function q0(s){return typeof s=="function"?s:s==null?Zn:typeof s=="object"?tt(s)?X0(s[0],s[1]):G0(s):h1(s)}function Wf(s){if(!Ol(s))return Z5(s);var u=[];for(var f in Rt(s))It.call(s,f)&&f!="constructor"&&u.push(f);return u}function Y3(s){if(!Gt(s))return PO(s);var u=Ol(s),f=[];for(var g in s)g=="constructor"&&(u||!It.call(s,g))||f.push(g);return f}function qf(s,u){return s<u}function K0(s,u){var f=-1,g=Yn(s)?J(s.length):[];return ns(s,function(_,A,N){g[++f]=u(_,A,N)}),g}function G0(s){var u=lp(s);return u.length==1&&u[0][2]?Oy(u[0][0],u[0][1]):function(f){return f===s||zf(f,s,u)}}function X0(s,u){return up(s)&&Cy(u)?Oy(yo(s),u):function(f){var g=_p(f,s);return g===n&&g===u?bp(f,s):xl(u,g,b|S)}}function Tu(s,u,f,g,_){s!==u&&Bf(u,function(A,N){if(_||(_=new Xr),Gt(A))J3(s,u,N,f,Tu,g,_);else{var D=g?g(dp(s,N),A,N+"",s,u,_):n;D===n&&(D=A),Df(s,N,D)}},Jn)}function J3(s,u,f,g,_,A,N){var D=dp(s,f),K=dp(u,f),se=N.get(K);if(se){Df(s,f,se);return}var ie=A?A(D,K,f+"",s,u,N):n,pe=ie===n;if(pe){var Ae=tt(K),Ue=!Ae&&is(K),Ke=!Ae&&!Ue&&Li(K);ie=K,Ae||Ue||Ke?tt(D)?ie=D:tn(D)?ie=Xn(D):Ue?(pe=!1,ie=ly(K,!0)):Ke?(pe=!1,ie=ay(K,!0)):ie=[]:kl(K)||Us(K)?(ie=D,Us(D)?ie=o1(D):(!Gt(D)||Fo(D))&&(ie=Ty(K))):pe=!1}pe&&(N.set(K,ie),_(ie,K,g,A,N),N.delete(K)),Df(s,f,ie)}function Y0(s,u){var f=s.length;if(f)return u+=u<0?f:0,Lo(u,f)?s[u]:n}function J0(s,u,f){u.length?u=zt(u,function(A){return tt(A)?function(N){return Ns(N,A.length===1?A[0]:A)}:A}):u=[Zn];var g=-1;u=zt(u,dr(qe()));var _=K0(s,function(A,N,D){var K=zt(u,function(se){return se(A)});return{criteria:K,index:++g,value:A}});return $5(_,function(A,N){return cO(A,N,f)})}function Z3(s,u){return Z0(s,u,function(f,g){return bp(s,g)})}function Z0(s,u,f){for(var g=-1,_=u.length,A={};++g<_;){var N=u[g],D=Ns(s,N);f(D,N)&&Tl(A,os(N,s),D)}return A}function Q3(s){return function(u){return Ns(u,s)}}function Kf(s,u,f,g){var _=g?E5:Ei,A=-1,N=u.length,D=s;for(s===u&&(u=Xn(u)),f&&(D=zt(s,dr(f)));++A<N;)for(var K=0,se=u[A],ie=f?f(se):se;(K=_(D,ie,K,g))>-1;)D!==s&&gu.call(D,K,1),gu.call(s,K,1);return s}function Q0(s,u){for(var f=s?u.length:0,g=f-1;f--;){var _=u[f];if(f==g||_!==A){var A=_;Lo(_)?gu.call(s,_,1):Jf(s,_)}}return s}function Gf(s,u){return s+_u(R0()*(u-s+1))}function eO(s,u,f,g){for(var _=-1,A=cn(yu((u-s)/(f||1)),0),N=J(A);A--;)N[g?A:++_]=s,s+=f;return N}function Xf(s,u){var f="";if(!s||u<1||u>Ie)return f;do u%2&&(f+=s),u=_u(u/2),u&&(s+=s);while(u);return f}function ct(s,u){return fp(Ay(s,u,Zn),s+"")}function tO(s){return N0(Fi(s))}function nO(s,u){var f=Fi(s);return Nu(f,Fs(u,0,f.length))}function Tl(s,u,f,g){if(!Gt(s))return s;u=os(u,s);for(var _=-1,A=u.length,N=A-1,D=s;D!=null&&++_<A;){var K=yo(u[_]),se=f;if(K==="__proto__"||K==="constructor"||K==="prototype")return s;if(_!=N){var ie=D[K];se=g?g(ie,K,D):n,se===n&&(se=Gt(ie)?ie:Lo(u[_+1])?[]:{})}Sl(D,K,se),D=D[K]}return s}var ey=bu?function(s,u){return bu.set(s,u),s}:Zn,rO=vu?function(s,u){return vu(s,"toString",{configurable:!0,enumerable:!1,value:Sp(u),writable:!0})}:Zn;function oO(s){return Nu(Fi(s))}function kr(s,u,f){var g=-1,_=s.length;u<0&&(u=-u>_?0:_+u),f=f>_?_:f,f<0&&(f+=_),_=u>f?0:f-u>>>0,u>>>=0;for(var A=J(_);++g<_;)A[g]=s[g+u];return A}function sO(s,u){var f;return ns(s,function(g,_,A){return f=u(g,_,A),!f}),!!f}function Cu(s,u,f){var g=0,_=s==null?g:s.length;if(typeof u=="number"&&u===u&&_<=Q){for(;g<_;){var A=g+_>>>1,N=s[A];N!==null&&!pr(N)&&(f?N<=u:N<u)?g=A+1:_=A}return _}return Yf(s,u,Zn,f)}function Yf(s,u,f,g){var _=0,A=s==null?0:s.length;if(A===0)return 0;u=f(u);for(var N=u!==u,D=u===null,K=pr(u),se=u===n;_<A;){var ie=_u((_+A)/2),pe=f(s[ie]),Ae=pe!==n,Ue=pe===null,Ke=pe===pe,lt=pr(pe);if(N)var Ge=g||Ke;else se?Ge=Ke&&(g||Ae):D?Ge=Ke&&Ae&&(g||!Ue):K?Ge=Ke&&Ae&&!Ue&&(g||!lt):Ue||lt?Ge=!1:Ge=g?pe<=u:pe<u;Ge?_=ie+1:A=ie}return Rn(A,Xe)}function ty(s,u){for(var f=-1,g=s.length,_=0,A=[];++f<g;){var N=s[f],D=u?u(N):N;if(!f||!Yr(D,K)){var K=D;A[_++]=N===0?0:N}}return A}function ny(s){return typeof s=="number"?s:pr(s)?ht:+s}function fr(s){if(typeof s=="string")return s;if(tt(s))return zt(s,fr)+"";if(pr(s))return L0?L0.call(s):"";var u=s+"";return u=="0"&&1/s==-ke?"-0":u}function rs(s,u,f){var g=-1,_=iu,A=s.length,N=!0,D=[],K=D;if(f)N=!1,_=xf;else if(A>=o){var se=u?null:gO(s);if(se)return au(se);N=!1,_=gl,K=new Ls}else K=u?[]:D;e:for(;++g<A;){var ie=s[g],pe=u?u(ie):ie;if(ie=f||ie!==0?ie:0,N&&pe===pe){for(var Ae=K.length;Ae--;)if(K[Ae]===pe)continue e;u&&K.push(pe),D.push(ie)}else _(K,pe,f)||(K!==D&&K.push(pe),D.push(ie))}return D}function Jf(s,u){return u=os(u,s),s=ky(s,u),s==null||delete s[yo(Ir(u))]}function ry(s,u,f,g){return Tl(s,u,f(Ns(s,u)),g)}function Ou(s,u,f,g){for(var _=s.length,A=g?_:-1;(g?A--:++A<_)&&u(s[A],A,s););return f?kr(s,g?0:A,g?A+1:_):kr(s,g?A+1:0,g?_:A)}function oy(s,u){var f=s;return f instanceof vt&&(f=f.value()),Tf(u,function(g,_){return _.func.apply(_.thisArg,Qo([g],_.args))},f)}function Zf(s,u,f){var g=s.length;if(g<2)return g?rs(s[0]):[];for(var _=-1,A=J(g);++_<g;)for(var N=s[_],D=-1;++D<g;)D!=_&&(A[_]=El(A[_]||N,s[D],u,f));return rs($n(A,1),u,f)}function sy(s,u,f){for(var g=-1,_=s.length,A=u.length,N={};++g<_;){var D=g<A?u[g]:n;f(N,s[g],D)}return N}function Qf(s){return tn(s)?s:[]}function ep(s){return typeof s=="function"?s:Zn}function os(s,u){return tt(s)?s:up(s,u)?[s]:Ly(At(s))}var iO=ct;function ss(s,u,f){var g=s.length;return f=f===n?g:f,!u&&f>=g?s:kr(s,u,f)}var iy=K5||function(s){return En.clearTimeout(s)};function ly(s,u){if(u)return s.slice();var f=s.length,g=O0?O0(f):new s.constructor(f);return s.copy(g),g}function tp(s){var u=new s.constructor(s.byteLength);return new hu(u).set(new hu(s)),u}function lO(s,u){var f=u?tp(s.buffer):s.buffer;return new s.constructor(f,s.byteOffset,s.byteLength)}function aO(s){var u=new s.constructor(s.source,zv.exec(s));return u.lastIndex=s.lastIndex,u}function uO(s){return wl?Rt(wl.call(s)):{}}function ay(s,u){var f=u?tp(s.buffer):s.buffer;return new s.constructor(f,s.byteOffset,s.length)}function uy(s,u){if(s!==u){var f=s!==n,g=s===null,_=s===s,A=pr(s),N=u!==n,D=u===null,K=u===u,se=pr(u);if(!D&&!se&&!A&&s>u||A&&N&&K&&!D&&!se||g&&N&&K||!f&&K||!_)return 1;if(!g&&!A&&!se&&s<u||se&&f&&_&&!g&&!A||D&&f&&_||!N&&_||!K)return-1}return 0}function cO(s,u,f){for(var g=-1,_=s.criteria,A=u.criteria,N=_.length,D=f.length;++g<N;){var K=uy(_[g],A[g]);if(K){if(g>=D)return K;var se=f[g];return K*(se=="desc"?-1:1)}}return s.index-u.index}function cy(s,u,f,g){for(var _=-1,A=s.length,N=f.length,D=-1,K=u.length,se=cn(A-N,0),ie=J(K+se),pe=!g;++D<K;)ie[D]=u[D];for(;++_<N;)(pe||_<A)&&(ie[f[_]]=s[_]);for(;se--;)ie[D++]=s[_++];return ie}function dy(s,u,f,g){for(var _=-1,A=s.length,N=-1,D=f.length,K=-1,se=u.length,ie=cn(A-D,0),pe=J(ie+se),Ae=!g;++_<ie;)pe[_]=s[_];for(var Ue=_;++K<se;)pe[Ue+K]=u[K];for(;++N<D;)(Ae||_<A)&&(pe[Ue+f[N]]=s[_++]);return pe}function Xn(s,u){var f=-1,g=s.length;for(u||(u=J(g));++f<g;)u[f]=s[f];return u}function vo(s,u,f,g){var _=!f;f||(f={});for(var A=-1,N=u.length;++A<N;){var D=u[A],K=g?g(f[D],s[D],D,f,s):n;K===n&&(K=s[D]),_?Io(f,D,K):Sl(f,D,K)}return f}function dO(s,u){return vo(s,ap(s),u)}function fO(s,u){return vo(s,$y(s),u)}function Au(s,u){return function(f,g){var _=tt(f)?v5:L3,A=u?u():{};return _(f,s,qe(g,2),A)}}function Ii(s){return ct(function(u,f){var g=-1,_=f.length,A=_>1?f[_-1]:n,N=_>2?f[2]:n;for(A=s.length>3&&typeof A=="function"?(_--,A):n,N&&zn(f[0],f[1],N)&&(A=_<3?n:A,_=1),u=Rt(u);++g<_;){var D=f[g];D&&s(u,D,g,A)}return u})}function fy(s,u){return function(f,g){if(f==null)return f;if(!Yn(f))return s(f,g);for(var _=f.length,A=u?_:-1,N=Rt(f);(u?A--:++A<_)&&g(N[A],A,N)!==!1;);return f}}function py(s){return function(u,f,g){for(var _=-1,A=Rt(u),N=g(u),D=N.length;D--;){var K=N[s?D:++_];if(f(A[K],K,A)===!1)break}return u}}function pO(s,u,f){var g=u&T,_=Cl(s);function A(){var N=this&&this!==En&&this instanceof A?_:s;return N.apply(g?f:this,arguments)}return A}function hy(s){return function(u){u=At(u);var f=$i(u)?Gr(u):n,g=f?f[0]:u.charAt(0),_=f?ss(f,1).join(""):u.slice(1);return g[s]()+_}}function Pi(s){return function(u){return Tf(f1(d1(u).replace(r5,"")),s,"")}}function Cl(s){return function(){var u=arguments;switch(u.length){case 0:return new s;case 1:return new s(u[0]);case 2:return new s(u[0],u[1]);case 3:return new s(u[0],u[1],u[2]);case 4:return new s(u[0],u[1],u[2],u[3]);case 5:return new s(u[0],u[1],u[2],u[3],u[4]);case 6:return new s(u[0],u[1],u[2],u[3],u[4],u[5]);case 7:return new s(u[0],u[1],u[2],u[3],u[4],u[5],u[6])}var f=ki(s.prototype),g=s.apply(f,u);return Gt(g)?g:f}}function hO(s,u,f){var g=Cl(s);function _(){for(var A=arguments.length,N=J(A),D=A,K=Ri(_);D--;)N[D]=arguments[D];var se=A<3&&N[0]!==K&&N[A-1]!==K?[]:es(N,K);if(A-=se.length,A<f)return _y(s,u,ku,_.placeholder,n,N,se,n,n,f-A);var ie=this&&this!==En&&this instanceof _?g:s;return cr(ie,this,N)}return _}function my(s){return function(u,f,g){var _=Rt(u);if(!Yn(u)){var A=qe(f,3);u=mn(u),f=function(D){return A(_[D],D,_)}}var N=s(u,f,g);return N>-1?_[A?u[N]:N]:n}}function gy(s){return Ro(function(u){var f=u.length,g=f,_=Or.prototype.thru;for(s&&u.reverse();g--;){var A=u[g];if(typeof A!="function")throw new Cr(l);if(_&&!N&&Lu(A)=="wrapper")var N=new Or([],!0)}for(g=N?g:f;++g<f;){A=u[g];var D=Lu(A),K=D=="wrapper"?ip(A):n;K&&cp(K[0])&&K[1]==(R|E|$|k)&&!K[4].length&&K[9]==1?N=N[Lu(K[0])].apply(N,K[3]):N=A.length==1&&cp(A)?N[D]():N.thru(A)}return function(){var se=arguments,ie=se[0];if(N&&se.length==1&&tt(ie))return N.plant(ie).value();for(var pe=0,Ae=f?u[pe].apply(this,se):ie;++pe<f;)Ae=u[pe].call(this,Ae);return Ae}})}function ku(s,u,f,g,_,A,N,D,K,se){var ie=u&R,pe=u&T,Ae=u&C,Ue=u&(E|O),Ke=u&W,lt=Ae?n:Cl(s);function Ge(){for(var mt=arguments.length,_t=J(mt),hr=mt;hr--;)_t[hr]=arguments[hr];if(Ue)var Wn=Ri(Ge),mr=T5(_t,Wn);if(g&&(_t=cy(_t,g,_,Ue)),A&&(_t=dy(_t,A,N,Ue)),mt-=mr,Ue&&mt<se){var nn=es(_t,Wn);return _y(s,u,ku,Ge.placeholder,f,_t,nn,D,K,se-mt)}var Jr=pe?f:this,Mo=Ae?Jr[s]:s;return mt=_t.length,D?_t=LO(_t,D):Ke&&mt>1&&_t.reverse(),ie&&K<mt&&(_t.length=K),this&&this!==En&&this instanceof Ge&&(Mo=lt||Cl(Mo)),Mo.apply(Jr,_t)}return Ge}function vy(s,u){return function(f,g){return V3(f,s,u(g),{})}}function Iu(s,u){return function(f,g){var _;if(f===n&&g===n)return u;if(f!==n&&(_=f),g!==n){if(_===n)return g;typeof f=="string"||typeof g=="string"?(f=fr(f),g=fr(g)):(f=ny(f),g=ny(g)),_=s(f,g)}return _}}function np(s){return Ro(function(u){return u=zt(u,dr(qe())),ct(function(f){var g=this;return s(u,function(_){return cr(_,g,f)})})})}function Pu(s,u){u=u===n?" ":fr(u);var f=u.length;if(f<2)return f?Xf(u,s):u;var g=Xf(u,yu(s/xi(u)));return $i(u)?ss(Gr(g),0,s).join(""):g.slice(0,s)}function mO(s,u,f,g){var _=u&T,A=Cl(s);function N(){for(var D=-1,K=arguments.length,se=-1,ie=g.length,pe=J(ie+K),Ae=this&&this!==En&&this instanceof N?A:s;++se<ie;)pe[se]=g[se];for(;K--;)pe[se++]=arguments[++D];return cr(Ae,_?f:this,pe)}return N}function yy(s){return function(u,f,g){return g&&typeof g!="number"&&zn(u,f,g)&&(f=g=n),u=No(u),f===n?(f=u,u=0):f=No(f),g=g===n?u<f?1:-1:No(g),eO(u,f,g,s)}}function Ru(s){return function(u,f){return typeof u=="string"&&typeof f=="string"||(u=Pr(u),f=Pr(f)),s(u,f)}}function _y(s,u,f,g,_,A,N,D,K,se){var ie=u&E,pe=ie?N:n,Ae=ie?n:N,Ue=ie?A:n,Ke=ie?n:A;u|=ie?$:P,u&=~(ie?P:$),u&w||(u&=~(T|C));var lt=[s,u,_,Ue,pe,Ke,Ae,D,K,se],Ge=f.apply(n,lt);return cp(s)&&Iy(Ge,lt),Ge.placeholder=g,Py(Ge,s,u)}function rp(s){var u=un[s];return function(f,g){if(f=Pr(f),g=g==null?0:Rn(it(g),292),g&&P0(f)){var _=(At(f)+"e").split("e"),A=u(_[0]+"e"+(+_[1]+g));return _=(At(A)+"e").split("e"),+(_[0]+"e"+(+_[1]-g))}return u(f)}}var gO=Oi&&1/au(new Oi([,-0]))[1]==ke?function(s){return new Oi(s)}:xp;function by(s){return function(u){var f=Ln(u);return f==Z?Rf(u):f==ae?R5(u):x5(u,s(u))}}function Po(s,u,f,g,_,A,N,D){var K=u&C;if(!K&&typeof s!="function")throw new Cr(l);var se=g?g.length:0;if(se||(u&=~($|P),g=_=n),N=N===n?N:cn(it(N),0),D=D===n?D:it(D),se-=_?_.length:0,u&P){var ie=g,pe=_;g=_=n}var Ae=K?n:ip(s),Ue=[s,u,f,g,_,ie,pe,A,N,D];if(Ae&&IO(Ue,Ae),s=Ue[0],u=Ue[1],f=Ue[2],g=Ue[3],_=Ue[4],D=Ue[9]=Ue[9]===n?K?0:s.length:cn(Ue[9]-se,0),!D&&u&(E|O)&&(u&=~(E|O)),!u||u==T)var Ke=pO(s,u,f);else u==E||u==O?Ke=hO(s,u,D):(u==$||u==(T|$))&&!_.length?Ke=mO(s,u,f,g):Ke=ku.apply(n,Ue);var lt=Ae?ey:Iy;return Py(lt(Ke,Ue),s,u)}function wy(s,u,f,g){return s===n||Yr(s,Ci[f])&&!It.call(g,f)?u:s}function Sy(s,u,f,g,_,A){return Gt(s)&&Gt(u)&&(A.set(u,s),Tu(s,u,n,Sy,A),A.delete(u)),s}function vO(s){return kl(s)?n:s}function Ey(s,u,f,g,_,A){var N=f&b,D=s.length,K=u.length;if(D!=K&&!(N&&K>D))return!1;var se=A.get(s),ie=A.get(u);if(se&&ie)return se==u&&ie==s;var pe=-1,Ae=!0,Ue=f&S?new Ls:n;for(A.set(s,u),A.set(u,s);++pe<D;){var Ke=s[pe],lt=u[pe];if(g)var Ge=N?g(lt,Ke,pe,u,s,A):g(Ke,lt,pe,s,u,A);if(Ge!==n){if(Ge)continue;Ae=!1;break}if(Ue){if(!Cf(u,function(mt,_t){if(!gl(Ue,_t)&&(Ke===mt||_(Ke,mt,f,g,A)))return Ue.push(_t)})){Ae=!1;break}}else if(!(Ke===lt||_(Ke,lt,f,g,A))){Ae=!1;break}}return A.delete(s),A.delete(u),Ae}function yO(s,u,f,g,_,A,N){switch(f){case ft:if(s.byteLength!=u.byteLength||s.byteOffset!=u.byteOffset)return!1;s=s.buffer,u=u.buffer;case yt:return!(s.byteLength!=u.byteLength||!A(new hu(s),new hu(u)));case Ve:case rt:case ue:return Yr(+s,+u);case an:return s.name==u.name&&s.message==u.message;case Se:case Fe:return s==u+"";case Z:var D=Rf;case ae:var K=g&b;if(D||(D=au),s.size!=u.size&&!K)return!1;var se=N.get(s);if(se)return se==u;g|=S,N.set(s,u);var ie=Ey(D(s),D(u),g,_,A,N);return N.delete(s),ie;case Pe:if(wl)return wl.call(s)==wl.call(u)}return!1}function _O(s,u,f,g,_,A){var N=f&b,D=op(s),K=D.length,se=op(u),ie=se.length;if(K!=ie&&!N)return!1;for(var pe=K;pe--;){var Ae=D[pe];if(!(N?Ae in u:It.call(u,Ae)))return!1}var Ue=A.get(s),Ke=A.get(u);if(Ue&&Ke)return Ue==u&&Ke==s;var lt=!0;A.set(s,u),A.set(u,s);for(var Ge=N;++pe<K;){Ae=D[pe];var mt=s[Ae],_t=u[Ae];if(g)var hr=N?g(_t,mt,Ae,u,s,A):g(mt,_t,Ae,s,u,A);if(!(hr===n?mt===_t||_(mt,_t,f,g,A):hr)){lt=!1;break}Ge||(Ge=Ae=="constructor")}if(lt&&!Ge){var Wn=s.constructor,mr=u.constructor;Wn!=mr&&"constructor"in s&&"constructor"in u&&!(typeof Wn=="function"&&Wn instanceof Wn&&typeof mr=="function"&&mr instanceof mr)&&(lt=!1)}return A.delete(s),A.delete(u),lt}function Ro(s){return fp(Ay(s,n,Dy),s+"")}function op(s){return H0(s,mn,ap)}function sp(s){return H0(s,Jn,$y)}var ip=bu?function(s){return bu.get(s)}:xp;function Lu(s){for(var u=s.name+"",f=Ai[u],g=It.call(Ai,u)?f.length:0;g--;){var _=f[g],A=_.func;if(A==null||A==s)return _.name}return u}function Ri(s){var u=It.call(x,"placeholder")?x:s;return u.placeholder}function qe(){var s=x.iteratee||Ep;return s=s===Ep?q0:s,arguments.length?s(arguments[0],arguments[1]):s}function Fu(s,u){var f=s.__data__;return CO(u)?f[typeof u=="string"?"string":"hash"]:f.map}function lp(s){for(var u=mn(s),f=u.length;f--;){var g=u[f],_=s[g];u[f]=[g,_,Cy(_)]}return u}function Ms(s,u){var f=k5(s,u);return W0(f)?f:n}function bO(s){var u=It.call(s,Ps),f=s[Ps];try{s[Ps]=n;var g=!0}catch{}var _=fu.call(s);return g&&(u?s[Ps]=f:delete s[Ps]),_}var ap=Ff?function(s){return s==null?[]:(s=Rt(s),Zo(Ff(s),function(u){return k0.call(s,u)}))}:Tp,$y=Ff?function(s){for(var u=[];s;)Qo(u,ap(s)),s=mu(s);return u}:Tp,Ln=Hn;(Nf&&Ln(new Nf(new ArrayBuffer(1)))!=ft||yl&&Ln(new yl)!=Z||Mf&&Ln(Mf.resolve())!=Oe||Oi&&Ln(new Oi)!=ae||_l&&Ln(new _l)!=ze)&&(Ln=function(s){var u=Hn(s),f=u==ye?s.constructor:n,g=f?Ds(f):"";if(g)switch(g){case n3:return ft;case r3:return Z;case o3:return Oe;case s3:return ae;case i3:return ze}return u});function wO(s,u,f){for(var g=-1,_=f.length;++g<_;){var A=f[g],N=A.size;switch(A.type){case"drop":s+=N;break;case"dropRight":u-=N;break;case"take":u=Rn(u,s+N);break;case"takeRight":s=cn(s,u-N);break}}return{start:s,end:u}}function SO(s){var u=s.match(OC);return u?u[1].split(AC):[]}function xy(s,u,f){u=os(u,s);for(var g=-1,_=u.length,A=!1;++g<_;){var N=yo(u[g]);if(!(A=s!=null&&f(s,N)))break;s=s[N]}return A||++g!=_?A:(_=s==null?0:s.length,!!_&&Vu(_)&&Lo(N,_)&&(tt(s)||Us(s)))}function EO(s){var u=s.length,f=new s.constructor(u);return u&&typeof s[0]=="string"&&It.call(s,"index")&&(f.index=s.index,f.input=s.input),f}function Ty(s){return typeof s.constructor=="function"&&!Ol(s)?ki(mu(s)):{}}function $O(s,u,f){var g=s.constructor;switch(u){case yt:return tp(s);case Ve:case rt:return new g(+s);case ft:return lO(s,f);case Ht:case Vn:case mo:case _i:case Oo:case bi:case Sn:case Gn:case wi:return ay(s,f);case Z:return new g;case ue:case Fe:return new g(s);case Se:return aO(s);case ae:return new g;case Pe:return uO(s)}}function xO(s,u){var f=u.length;if(!f)return s;var g=f-1;return u[g]=(f>1?"& ":"")+u[g],u=u.join(f>2?", ":" "),s.replace(CC,`{27 */Yc.exports;(function(e,t){(function(){var n,r="4.17.21",o=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",a="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",d=500,p="__lodash_placeholder__",h=1,v=2,y=4,b=1,S=2,T=1,C=2,w=4,E=8,O=16,$=32,P=64,R=128,k=256,W=512,U=30,j="...",G=800,X=16,ne=1,xe=2,Ee=3,ke=1/0,Ie=9007199254740991,Qe=17976931348623157e292,ht=NaN,De=4294967295,Xe=De-1,Q=De>>>1,ce=[["ary",R],["bind",T],["bindKey",C],["curry",E],["curryRight",O],["flip",W],["partial",$],["partialRight",P],["rearg",k]],ve="[object Arguments]",Ce="[object Array]",We="[object AsyncFunction]",Ve="[object Boolean]",rt="[object Date]",wn="[object DOMException]",an="[object Error]",M="[object Function]",V="[object GeneratorFunction]",Z="[object Map]",ue="[object Number]",le="[object Null]",ye="[object Object]",Oe="[object Promise]",we="[object Proxy]",Se="[object RegExp]",ae="[object Set]",Fe="[object String]",Pe="[object Symbol]",je="[object Undefined]",ze="[object WeakMap]",st="[object WeakSet]",yt="[object ArrayBuffer]",ft="[object DataView]",Ht="[object Float32Array]",Vn="[object Float64Array]",go="[object Int8Array]",_i="[object Int16Array]",Ao="[object Int32Array]",bi="[object Uint8Array]",Sn="[object Uint8ClampedArray]",Xn="[object Uint16Array]",wi="[object Uint32Array]",mC=/\b__p \+= '';/g,gC=/\b(__p \+=) '' \+/g,vC=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Bv=/&(?:amp|lt|gt|quot|#39);/g,jv=/[&<>"']/g,yC=RegExp(Bv.source),_C=RegExp(jv.source),bC=/<%-([\s\S]+?)%>/g,wC=/<%([\s\S]+?)%>/g,Vv=/<%=([\s\S]+?)%>/g,SC=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,EC=/^\w*$/,$C=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,vf=/[\\^$.*+?()[\]{}|]/g,xC=RegExp(vf.source),yf=/^\s+/,TC=/\s/,CC=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,OC=/\{\n\/\* \[wrapped with (.+)\] \*/,AC=/,? & /,kC=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,IC=/[()=,{}\[\]\/\s]/,PC=/\\(\\)?/g,RC=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Hv=/\w*$/,LC=/^[-+]0x[0-9a-f]+$/i,FC=/^0b[01]+$/i,NC=/^\[object .+?Constructor\]$/,MC=/^0o[0-7]+$/i,DC=/^(?:0|[1-9]\d*)$/,UC=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ru=/($^)/,BC=/['\n\r\u2028\u2029\\]/g,ou="\\ud800-\\udfff",jC="\\u0300-\\u036f",VC="\\ufe20-\\ufe2f",HC="\\u20d0-\\u20ff",zv=jC+VC+HC,Wv="\\u2700-\\u27bf",qv="a-z\\xdf-\\xf6\\xf8-\\xff",zC="\\xac\\xb1\\xd7\\xf7",WC="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",qC="\\u2000-\\u206f",KC=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Kv="A-Z\\xc0-\\xd6\\xd8-\\xde",Gv="\\ufe0e\\ufe0f",Xv=zC+WC+qC+KC,_f="['’]",GC="["+ou+"]",Yv="["+Xv+"]",su="["+zv+"]",Jv="\\d+",XC="["+Wv+"]",Zv="["+qv+"]",Qv="[^"+ou+Xv+Jv+Wv+qv+Kv+"]",bf="\\ud83c[\\udffb-\\udfff]",YC="(?:"+su+"|"+bf+")",e0="[^"+ou+"]",wf="(?:\\ud83c[\\udde6-\\uddff]){2}",Sf="[\\ud800-\\udbff][\\udc00-\\udfff]",Si="["+Kv+"]",t0="\\u200d",n0="(?:"+Zv+"|"+Qv+")",JC="(?:"+Si+"|"+Qv+")",r0="(?:"+_f+"(?:d|ll|m|re|s|t|ve))?",o0="(?:"+_f+"(?:D|LL|M|RE|S|T|VE))?",s0=YC+"?",i0="["+Gv+"]?",ZC="(?:"+t0+"(?:"+[e0,wf,Sf].join("|")+")"+i0+s0+")*",QC="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",e5="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",l0=i0+s0+ZC,t5="(?:"+[XC,wf,Sf].join("|")+")"+l0,n5="(?:"+[e0+su+"?",su,wf,Sf,GC].join("|")+")",r5=RegExp(_f,"g"),o5=RegExp(su,"g"),Ef=RegExp(bf+"(?="+bf+")|"+n5+l0,"g"),s5=RegExp([Si+"?"+Zv+"+"+r0+"(?="+[Yv,Si,"$"].join("|")+")",JC+"+"+o0+"(?="+[Yv,Si+n0,"$"].join("|")+")",Si+"?"+n0+"+"+r0,Si+"+"+o0,e5,QC,Jv,t5].join("|"),"g"),i5=RegExp("["+t0+ou+zv+Gv+"]"),l5=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,a5=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],u5=-1,Bt={};Bt[Ht]=Bt[Vn]=Bt[go]=Bt[_i]=Bt[Ao]=Bt[bi]=Bt[Sn]=Bt[Xn]=Bt[wi]=!0,Bt[ve]=Bt[Ce]=Bt[yt]=Bt[Ve]=Bt[ft]=Bt[rt]=Bt[an]=Bt[M]=Bt[Z]=Bt[ue]=Bt[ye]=Bt[Se]=Bt[ae]=Bt[Fe]=Bt[ze]=!1;var Nt={};Nt[ve]=Nt[Ce]=Nt[yt]=Nt[ft]=Nt[Ve]=Nt[rt]=Nt[Ht]=Nt[Vn]=Nt[go]=Nt[_i]=Nt[Ao]=Nt[Z]=Nt[ue]=Nt[ye]=Nt[Se]=Nt[ae]=Nt[Fe]=Nt[Pe]=Nt[bi]=Nt[Sn]=Nt[Xn]=Nt[wi]=!0,Nt[an]=Nt[M]=Nt[ze]=!1;var c5={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},d5={"&":"&","<":"<",">":">",'"':""","'":"'"},f5={"&":"&","<":"<",">":">",""":'"',"'":"'"},p5={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},h5=parseFloat,m5=parseInt,a0=typeof Ll=="object"&&Ll&&Ll.Object===Object&&Ll,g5=typeof self=="object"&&self&&self.Object===Object&&self,En=a0||g5||Function("return this")(),$f=t&&!t.nodeType&&t,Is=$f&&!0&&e&&!e.nodeType&&e,u0=Is&&Is.exports===$f,xf=u0&&a0.process,Tr=function(){try{var H=Is&&Is.require&&Is.require("util").types;return H||xf&&xf.binding&&xf.binding("util")}catch{}}(),c0=Tr&&Tr.isArrayBuffer,d0=Tr&&Tr.isDate,f0=Tr&&Tr.isMap,p0=Tr&&Tr.isRegExp,h0=Tr&&Tr.isSet,m0=Tr&&Tr.isTypedArray;function dr(H,re,J){switch(J.length){case 0:return H.call(re);case 1:return H.call(re,J[0]);case 2:return H.call(re,J[0],J[1]);case 3:return H.call(re,J[0],J[1],J[2])}return H.apply(re,J)}function v5(H,re,J,Re){for(var et=-1,Tt=H==null?0:H.length;++et<Tt;){var un=H[et];re(Re,un,J(un),H)}return Re}function Cr(H,re){for(var J=-1,Re=H==null?0:H.length;++J<Re&&re(H[J],J,H)!==!1;);return H}function y5(H,re){for(var J=H==null?0:H.length;J--&&re(H[J],J,H)!==!1;);return H}function g0(H,re){for(var J=-1,Re=H==null?0:H.length;++J<Re;)if(!re(H[J],J,H))return!1;return!0}function Zo(H,re){for(var J=-1,Re=H==null?0:H.length,et=0,Tt=[];++J<Re;){var un=H[J];re(un,J,H)&&(Tt[et++]=un)}return Tt}function iu(H,re){var J=H==null?0:H.length;return!!J&&Ei(H,re,0)>-1}function Tf(H,re,J){for(var Re=-1,et=H==null?0:H.length;++Re<et;)if(J(re,H[Re]))return!0;return!1}function zt(H,re){for(var J=-1,Re=H==null?0:H.length,et=Array(Re);++J<Re;)et[J]=re(H[J],J,H);return et}function Qo(H,re){for(var J=-1,Re=re.length,et=H.length;++J<Re;)H[et+J]=re[J];return H}function Cf(H,re,J,Re){var et=-1,Tt=H==null?0:H.length;for(Re&&Tt&&(J=H[++et]);++et<Tt;)J=re(J,H[et],et,H);return J}function _5(H,re,J,Re){var et=H==null?0:H.length;for(Re&&et&&(J=H[--et]);et--;)J=re(J,H[et],et,H);return J}function Of(H,re){for(var J=-1,Re=H==null?0:H.length;++J<Re;)if(re(H[J],J,H))return!0;return!1}var b5=Af("length");function w5(H){return H.split("")}function S5(H){return H.match(kC)||[]}function v0(H,re,J){var Re;return J(H,function(et,Tt,un){if(re(et,Tt,un))return Re=Tt,!1}),Re}function lu(H,re,J,Re){for(var et=H.length,Tt=J+(Re?1:-1);Re?Tt--:++Tt<et;)if(re(H[Tt],Tt,H))return Tt;return-1}function Ei(H,re,J){return re===re?L5(H,re,J):lu(H,y0,J)}function E5(H,re,J,Re){for(var et=J-1,Tt=H.length;++et<Tt;)if(Re(H[et],re))return et;return-1}function y0(H){return H!==H}function _0(H,re){var J=H==null?0:H.length;return J?If(H,re)/J:ht}function Af(H){return function(re){return re==null?n:re[H]}}function kf(H){return function(re){return H==null?n:H[re]}}function b0(H,re,J,Re,et){return et(H,function(Tt,un,Rt){J=Re?(Re=!1,Tt):re(J,Tt,un,Rt)}),J}function $5(H,re){var J=H.length;for(H.sort(re);J--;)H[J]=H[J].value;return H}function If(H,re){for(var J,Re=-1,et=H.length;++Re<et;){var Tt=re(H[Re]);Tt!==n&&(J=J===n?Tt:J+Tt)}return J}function Pf(H,re){for(var J=-1,Re=Array(H);++J<H;)Re[J]=re(J);return Re}function x5(H,re){return zt(re,function(J){return[J,H[J]]})}function w0(H){return H&&H.slice(0,x0(H)+1).replace(yf,"")}function fr(H){return function(re){return H(re)}}function Rf(H,re){return zt(re,function(J){return H[J]})}function gl(H,re){return H.has(re)}function S0(H,re){for(var J=-1,Re=H.length;++J<Re&&Ei(re,H[J],0)>-1;);return J}function E0(H,re){for(var J=H.length;J--&&Ei(re,H[J],0)>-1;);return J}function T5(H,re){for(var J=H.length,Re=0;J--;)H[J]===re&&++Re;return Re}var C5=kf(c5),O5=kf(d5);function A5(H){return"\\"+p5[H]}function k5(H,re){return H==null?n:H[re]}function $i(H){return i5.test(H)}function I5(H){return l5.test(H)}function P5(H){for(var re,J=[];!(re=H.next()).done;)J.push(re.value);return J}function Lf(H){var re=-1,J=Array(H.size);return H.forEach(function(Re,et){J[++re]=[et,Re]}),J}function $0(H,re){return function(J){return H(re(J))}}function es(H,re){for(var J=-1,Re=H.length,et=0,Tt=[];++J<Re;){var un=H[J];(un===re||un===p)&&(H[J]=p,Tt[et++]=J)}return Tt}function au(H){var re=-1,J=Array(H.size);return H.forEach(function(Re){J[++re]=Re}),J}function R5(H){var re=-1,J=Array(H.size);return H.forEach(function(Re){J[++re]=[Re,Re]}),J}function L5(H,re,J){for(var Re=J-1,et=H.length;++Re<et;)if(H[Re]===re)return Re;return-1}function F5(H,re,J){for(var Re=J+1;Re--;)if(H[Re]===re)return Re;return Re}function xi(H){return $i(H)?M5(H):b5(H)}function Xr(H){return $i(H)?D5(H):w5(H)}function x0(H){for(var re=H.length;re--&&TC.test(H.charAt(re)););return re}var N5=kf(f5);function M5(H){for(var re=Ef.lastIndex=0;Ef.test(H);)++re;return re}function D5(H){return H.match(Ef)||[]}function U5(H){return H.match(s5)||[]}var B5=function H(re){re=re==null?En:Ti.defaults(En.Object(),re,Ti.pick(En,a5));var J=re.Array,Re=re.Date,et=re.Error,Tt=re.Function,un=re.Math,Rt=re.Object,Ff=re.RegExp,j5=re.String,Or=re.TypeError,uu=J.prototype,V5=Tt.prototype,Ci=Rt.prototype,cu=re["__core-js_shared__"],du=V5.toString,It=Ci.hasOwnProperty,H5=0,T0=function(){var s=/[^.]+$/.exec(cu&&cu.keys&&cu.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""}(),fu=Ci.toString,z5=du.call(Rt),W5=En._,q5=Ff("^"+du.call(It).replace(vf,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),pu=u0?re.Buffer:n,ts=re.Symbol,hu=re.Uint8Array,C0=pu?pu.allocUnsafe:n,mu=$0(Rt.getPrototypeOf,Rt),O0=Rt.create,A0=Ci.propertyIsEnumerable,gu=uu.splice,k0=ts?ts.isConcatSpreadable:n,vl=ts?ts.iterator:n,Ps=ts?ts.toStringTag:n,vu=function(){try{var s=Ms(Rt,"defineProperty");return s({},"",{}),s}catch{}}(),K5=re.clearTimeout!==En.clearTimeout&&re.clearTimeout,G5=Re&&Re.now!==En.Date.now&&Re.now,X5=re.setTimeout!==En.setTimeout&&re.setTimeout,yu=un.ceil,_u=un.floor,Nf=Rt.getOwnPropertySymbols,Y5=pu?pu.isBuffer:n,I0=re.isFinite,J5=uu.join,Z5=$0(Rt.keys,Rt),cn=un.max,Rn=un.min,Q5=Re.now,e3=re.parseInt,P0=un.random,t3=uu.reverse,Mf=Ms(re,"DataView"),yl=Ms(re,"Map"),Df=Ms(re,"Promise"),Oi=Ms(re,"Set"),_l=Ms(re,"WeakMap"),bl=Ms(Rt,"create"),bu=_l&&new _l,Ai={},n3=Ds(Mf),r3=Ds(yl),o3=Ds(Df),s3=Ds(Oi),i3=Ds(_l),wu=ts?ts.prototype:n,wl=wu?wu.valueOf:n,R0=wu?wu.toString:n;function x(s){if(Yt(s)&&!tt(s)&&!(s instanceof vt)){if(s instanceof Ar)return s;if(It.call(s,"__wrapped__"))return Ly(s)}return new Ar(s)}var ki=function(){function s(){}return function(u){if(!Gt(u))return{};if(O0)return O0(u);s.prototype=u;var f=new s;return s.prototype=n,f}}();function Su(){}function Ar(s,u){this.__wrapped__=s,this.__actions__=[],this.__chain__=!!u,this.__index__=0,this.__values__=n}x.templateSettings={escape:bC,evaluate:wC,interpolate:Vv,variable:"",imports:{_:x}},x.prototype=Su.prototype,x.prototype.constructor=x,Ar.prototype=ki(Su.prototype),Ar.prototype.constructor=Ar;function vt(s){this.__wrapped__=s,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=De,this.__views__=[]}function l3(){var s=new vt(this.__wrapped__);return s.__actions__=Yn(this.__actions__),s.__dir__=this.__dir__,s.__filtered__=this.__filtered__,s.__iteratees__=Yn(this.__iteratees__),s.__takeCount__=this.__takeCount__,s.__views__=Yn(this.__views__),s}function a3(){if(this.__filtered__){var s=new vt(this);s.__dir__=-1,s.__filtered__=!0}else s=this.clone(),s.__dir__*=-1;return s}function u3(){var s=this.__wrapped__.value(),u=this.__dir__,f=tt(s),g=u<0,_=f?s.length:0,A=wO(0,_,this.__views__),N=A.start,D=A.end,K=D-N,se=g?D:N-1,ie=this.__iteratees__,pe=ie.length,Ae=0,Ue=Rn(K,this.__takeCount__);if(!f||!g&&_==K&&Ue==K)return ry(s,this.__actions__);var Ke=[];e:for(;K--&&Ae<Ue;){se+=u;for(var lt=-1,Ge=s[se];++lt<pe;){var mt=ie[lt],_t=mt.iteratee,mr=mt.type,Wn=_t(Ge);if(mr==xe)Ge=Wn;else if(!Wn){if(mr==ne)continue e;break e}}Ke[Ae++]=Ge}return Ke}vt.prototype=ki(Su.prototype),vt.prototype.constructor=vt;function Rs(s){var u=-1,f=s==null?0:s.length;for(this.clear();++u<f;){var g=s[u];this.set(g[0],g[1])}}function c3(){this.__data__=bl?bl(null):{},this.size=0}function d3(s){var u=this.has(s)&&delete this.__data__[s];return this.size-=u?1:0,u}function f3(s){var u=this.__data__;if(bl){var f=u[s];return f===c?n:f}return It.call(u,s)?u[s]:n}function p3(s){var u=this.__data__;return bl?u[s]!==n:It.call(u,s)}function h3(s,u){var f=this.__data__;return this.size+=this.has(s)?0:1,f[s]=bl&&u===n?c:u,this}Rs.prototype.clear=c3,Rs.prototype.delete=d3,Rs.prototype.get=f3,Rs.prototype.has=p3,Rs.prototype.set=h3;function ko(s){var u=-1,f=s==null?0:s.length;for(this.clear();++u<f;){var g=s[u];this.set(g[0],g[1])}}function m3(){this.__data__=[],this.size=0}function g3(s){var u=this.__data__,f=Eu(u,s);if(f<0)return!1;var g=u.length-1;return f==g?u.pop():gu.call(u,f,1),--this.size,!0}function v3(s){var u=this.__data__,f=Eu(u,s);return f<0?n:u[f][1]}function y3(s){return Eu(this.__data__,s)>-1}function _3(s,u){var f=this.__data__,g=Eu(f,s);return g<0?(++this.size,f.push([s,u])):f[g][1]=u,this}ko.prototype.clear=m3,ko.prototype.delete=g3,ko.prototype.get=v3,ko.prototype.has=y3,ko.prototype.set=_3;function Io(s){var u=-1,f=s==null?0:s.length;for(this.clear();++u<f;){var g=s[u];this.set(g[0],g[1])}}function b3(){this.size=0,this.__data__={hash:new Rs,map:new(yl||ko),string:new Rs}}function w3(s){var u=Fu(this,s).delete(s);return this.size-=u?1:0,u}function S3(s){return Fu(this,s).get(s)}function E3(s){return Fu(this,s).has(s)}function $3(s,u){var f=Fu(this,s),g=f.size;return f.set(s,u),this.size+=f.size==g?0:1,this}Io.prototype.clear=b3,Io.prototype.delete=w3,Io.prototype.get=S3,Io.prototype.has=E3,Io.prototype.set=$3;function Ls(s){var u=-1,f=s==null?0:s.length;for(this.__data__=new Io;++u<f;)this.add(s[u])}function x3(s){return this.__data__.set(s,c),this}function T3(s){return this.__data__.has(s)}Ls.prototype.add=Ls.prototype.push=x3,Ls.prototype.has=T3;function Yr(s){var u=this.__data__=new ko(s);this.size=u.size}function C3(){this.__data__=new ko,this.size=0}function O3(s){var u=this.__data__,f=u.delete(s);return this.size=u.size,f}function A3(s){return this.__data__.get(s)}function k3(s){return this.__data__.has(s)}function I3(s,u){var f=this.__data__;if(f instanceof ko){var g=f.__data__;if(!yl||g.length<o-1)return g.push([s,u]),this.size=++f.size,this;f=this.__data__=new Io(g)}return f.set(s,u),this.size=f.size,this}Yr.prototype.clear=C3,Yr.prototype.delete=O3,Yr.prototype.get=A3,Yr.prototype.has=k3,Yr.prototype.set=I3;function L0(s,u){var f=tt(s),g=!f&&Us(s),_=!f&&!g&&is(s),A=!f&&!g&&!_&&Li(s),N=f||g||_||A,D=N?Pf(s.length,j5):[],K=D.length;for(var se in s)(u||It.call(s,se))&&!(N&&(se=="length"||_&&(se=="offset"||se=="parent")||A&&(se=="buffer"||se=="byteLength"||se=="byteOffset")||Fo(se,K)))&&D.push(se);return D}function F0(s){var u=s.length;return u?s[Xf(0,u-1)]:n}function P3(s,u){return Nu(Yn(s),Fs(u,0,s.length))}function R3(s){return Nu(Yn(s))}function Uf(s,u,f){(f!==n&&!Jr(s[u],f)||f===n&&!(u in s))&&Po(s,u,f)}function Sl(s,u,f){var g=s[u];(!(It.call(s,u)&&Jr(g,f))||f===n&&!(u in s))&&Po(s,u,f)}function Eu(s,u){for(var f=s.length;f--;)if(Jr(s[f][0],u))return f;return-1}function L3(s,u,f,g){return ns(s,function(_,A,N){u(g,_,f(_),N)}),g}function N0(s,u){return s&&yo(u,mn(u),s)}function F3(s,u){return s&&yo(u,Zn(u),s)}function Po(s,u,f){u=="__proto__"&&vu?vu(s,u,{configurable:!0,enumerable:!0,value:f,writable:!0}):s[u]=f}function Bf(s,u){for(var f=-1,g=u.length,_=J(g),A=s==null;++f<g;)_[f]=A?n:bp(s,u[f]);return _}function Fs(s,u,f){return s===s&&(f!==n&&(s=s<=f?s:f),u!==n&&(s=s>=u?s:u)),s}function kr(s,u,f,g,_,A){var N,D=u&h,K=u&v,se=u&y;if(f&&(N=_?f(s,g,_,A):f(s)),N!==n)return N;if(!Gt(s))return s;var ie=tt(s);if(ie){if(N=EO(s),!D)return Yn(s,N)}else{var pe=Ln(s),Ae=pe==M||pe==V;if(is(s))return iy(s,D);if(pe==ye||pe==ve||Ae&&!_){if(N=K||Ae?{}:xy(s),!D)return K?fO(s,F3(N,s)):dO(s,N0(N,s))}else{if(!Nt[pe])return _?s:{};N=$O(s,pe,D)}}A||(A=new Yr);var Ue=A.get(s);if(Ue)return Ue;A.set(s,N),e_(s)?s.forEach(function(Ge){N.add(kr(Ge,u,f,Ge,s,A))}):Zy(s)&&s.forEach(function(Ge,mt){N.set(mt,kr(Ge,u,f,mt,s,A))});var Ke=se?K?ip:sp:K?Zn:mn,lt=ie?n:Ke(s);return Cr(lt||s,function(Ge,mt){lt&&(mt=Ge,Ge=s[mt]),Sl(N,mt,kr(Ge,u,f,mt,s,A))}),N}function N3(s){var u=mn(s);return function(f){return M0(f,s,u)}}function M0(s,u,f){var g=f.length;if(s==null)return!g;for(s=Rt(s);g--;){var _=f[g],A=u[_],N=s[_];if(N===n&&!(_ in s)||!A(N))return!1}return!0}function D0(s,u,f){if(typeof s!="function")throw new Or(l);return Al(function(){s.apply(n,f)},u)}function El(s,u,f,g){var _=-1,A=iu,N=!0,D=s.length,K=[],se=u.length;if(!D)return K;f&&(u=zt(u,fr(f))),g?(A=Tf,N=!1):u.length>=o&&(A=gl,N=!1,u=new Ls(u));e:for(;++_<D;){var ie=s[_],pe=f==null?ie:f(ie);if(ie=g||ie!==0?ie:0,N&&pe===pe){for(var Ae=se;Ae--;)if(u[Ae]===pe)continue e;K.push(ie)}else A(u,pe,g)||K.push(ie)}return K}var ns=dy(vo),U0=dy(Vf,!0);function M3(s,u){var f=!0;return ns(s,function(g,_,A){return f=!!u(g,_,A),f}),f}function $u(s,u,f){for(var g=-1,_=s.length;++g<_;){var A=s[g],N=u(A);if(N!=null&&(D===n?N===N&&!hr(N):f(N,D)))var D=N,K=A}return K}function D3(s,u,f,g){var _=s.length;for(f=it(f),f<0&&(f=-f>_?0:_+f),g=g===n||g>_?_:it(g),g<0&&(g+=_),g=f>g?0:n_(g);f<g;)s[f++]=u;return s}function B0(s,u){var f=[];return ns(s,function(g,_,A){u(g,_,A)&&f.push(g)}),f}function $n(s,u,f,g,_){var A=-1,N=s.length;for(f||(f=TO),_||(_=[]);++A<N;){var D=s[A];u>0&&f(D)?u>1?$n(D,u-1,f,g,_):Qo(_,D):g||(_[_.length]=D)}return _}var jf=fy(),j0=fy(!0);function vo(s,u){return s&&jf(s,u,mn)}function Vf(s,u){return s&&j0(s,u,mn)}function xu(s,u){return Zo(u,function(f){return No(s[f])})}function Ns(s,u){u=os(u,s);for(var f=0,g=u.length;s!=null&&f<g;)s=s[_o(u[f++])];return f&&f==g?s:n}function V0(s,u,f){var g=u(s);return tt(s)?g:Qo(g,f(s))}function Hn(s){return s==null?s===n?je:le:Ps&&Ps in Rt(s)?bO(s):RO(s)}function Hf(s,u){return s>u}function U3(s,u){return s!=null&&It.call(s,u)}function B3(s,u){return s!=null&&u in Rt(s)}function j3(s,u,f){return s>=Rn(u,f)&&s<cn(u,f)}function zf(s,u,f){for(var g=f?Tf:iu,_=s[0].length,A=s.length,N=A,D=J(A),K=1/0,se=[];N--;){var ie=s[N];N&&u&&(ie=zt(ie,fr(u))),K=Rn(ie.length,K),D[N]=!f&&(u||_>=120&&ie.length>=120)?new Ls(N&&ie):n}ie=s[0];var pe=-1,Ae=D[0];e:for(;++pe<_&&se.length<K;){var Ue=ie[pe],Ke=u?u(Ue):Ue;if(Ue=f||Ue!==0?Ue:0,!(Ae?gl(Ae,Ke):g(se,Ke,f))){for(N=A;--N;){var lt=D[N];if(!(lt?gl(lt,Ke):g(s[N],Ke,f)))continue e}Ae&&Ae.push(Ke),se.push(Ue)}}return se}function V3(s,u,f,g){return vo(s,function(_,A,N){u(g,f(_),A,N)}),g}function $l(s,u,f){u=os(u,s),s=Ay(s,u);var g=s==null?s:s[_o(Pr(u))];return g==null?n:dr(g,s,f)}function H0(s){return Yt(s)&&Hn(s)==ve}function H3(s){return Yt(s)&&Hn(s)==yt}function z3(s){return Yt(s)&&Hn(s)==rt}function xl(s,u,f,g,_){return s===u?!0:s==null||u==null||!Yt(s)&&!Yt(u)?s!==s&&u!==u:W3(s,u,f,g,xl,_)}function W3(s,u,f,g,_,A){var N=tt(s),D=tt(u),K=N?Ce:Ln(s),se=D?Ce:Ln(u);K=K==ve?ye:K,se=se==ve?ye:se;var ie=K==ye,pe=se==ye,Ae=K==se;if(Ae&&is(s)){if(!is(u))return!1;N=!0,ie=!1}if(Ae&&!ie)return A||(A=new Yr),N||Li(s)?Sy(s,u,f,g,_,A):yO(s,u,K,f,g,_,A);if(!(f&b)){var Ue=ie&&It.call(s,"__wrapped__"),Ke=pe&&It.call(u,"__wrapped__");if(Ue||Ke){var lt=Ue?s.value():s,Ge=Ke?u.value():u;return A||(A=new Yr),_(lt,Ge,f,g,A)}}return Ae?(A||(A=new Yr),_O(s,u,f,g,_,A)):!1}function q3(s){return Yt(s)&&Ln(s)==Z}function Wf(s,u,f,g){var _=f.length,A=_,N=!g;if(s==null)return!A;for(s=Rt(s);_--;){var D=f[_];if(N&&D[2]?D[1]!==s[D[0]]:!(D[0]in s))return!1}for(;++_<A;){D=f[_];var K=D[0],se=s[K],ie=D[1];if(N&&D[2]){if(se===n&&!(K in s))return!1}else{var pe=new Yr;if(g)var Ae=g(se,ie,K,s,u,pe);if(!(Ae===n?xl(ie,se,b|S,g,pe):Ae))return!1}}return!0}function z0(s){if(!Gt(s)||OO(s))return!1;var u=No(s)?q5:NC;return u.test(Ds(s))}function K3(s){return Yt(s)&&Hn(s)==Se}function G3(s){return Yt(s)&&Ln(s)==ae}function X3(s){return Yt(s)&&Vu(s.length)&&!!Bt[Hn(s)]}function W0(s){return typeof s=="function"?s:s==null?Qn:typeof s=="object"?tt(s)?G0(s[0],s[1]):K0(s):p_(s)}function qf(s){if(!Ol(s))return Z5(s);var u=[];for(var f in Rt(s))It.call(s,f)&&f!="constructor"&&u.push(f);return u}function Y3(s){if(!Gt(s))return PO(s);var u=Ol(s),f=[];for(var g in s)g=="constructor"&&(u||!It.call(s,g))||f.push(g);return f}function Kf(s,u){return s<u}function q0(s,u){var f=-1,g=Jn(s)?J(s.length):[];return ns(s,function(_,A,N){g[++f]=u(_,A,N)}),g}function K0(s){var u=ap(s);return u.length==1&&u[0][2]?Cy(u[0][0],u[0][1]):function(f){return f===s||Wf(f,s,u)}}function G0(s,u){return cp(s)&&Ty(u)?Cy(_o(s),u):function(f){var g=bp(f,s);return g===n&&g===u?wp(f,s):xl(u,g,b|S)}}function Tu(s,u,f,g,_){s!==u&&jf(u,function(A,N){if(_||(_=new Yr),Gt(A))J3(s,u,N,f,Tu,g,_);else{var D=g?g(fp(s,N),A,N+"",s,u,_):n;D===n&&(D=A),Uf(s,N,D)}},Zn)}function J3(s,u,f,g,_,A,N){var D=fp(s,f),K=fp(u,f),se=N.get(K);if(se){Uf(s,f,se);return}var ie=A?A(D,K,f+"",s,u,N):n,pe=ie===n;if(pe){var Ae=tt(K),Ue=!Ae&&is(K),Ke=!Ae&&!Ue&&Li(K);ie=K,Ae||Ue||Ke?tt(D)?ie=D:tn(D)?ie=Yn(D):Ue?(pe=!1,ie=iy(K,!0)):Ke?(pe=!1,ie=ly(K,!0)):ie=[]:kl(K)||Us(K)?(ie=D,Us(D)?ie=r_(D):(!Gt(D)||No(D))&&(ie=xy(K))):pe=!1}pe&&(N.set(K,ie),_(ie,K,g,A,N),N.delete(K)),Uf(s,f,ie)}function X0(s,u){var f=s.length;if(f)return u+=u<0?f:0,Fo(u,f)?s[u]:n}function Y0(s,u,f){u.length?u=zt(u,function(A){return tt(A)?function(N){return Ns(N,A.length===1?A[0]:A)}:A}):u=[Qn];var g=-1;u=zt(u,fr(qe()));var _=q0(s,function(A,N,D){var K=zt(u,function(se){return se(A)});return{criteria:K,index:++g,value:A}});return $5(_,function(A,N){return cO(A,N,f)})}function Z3(s,u){return J0(s,u,function(f,g){return wp(s,g)})}function J0(s,u,f){for(var g=-1,_=u.length,A={};++g<_;){var N=u[g],D=Ns(s,N);f(D,N)&&Tl(A,os(N,s),D)}return A}function Q3(s){return function(u){return Ns(u,s)}}function Gf(s,u,f,g){var _=g?E5:Ei,A=-1,N=u.length,D=s;for(s===u&&(u=Yn(u)),f&&(D=zt(s,fr(f)));++A<N;)for(var K=0,se=u[A],ie=f?f(se):se;(K=_(D,ie,K,g))>-1;)D!==s&&gu.call(D,K,1),gu.call(s,K,1);return s}function Z0(s,u){for(var f=s?u.length:0,g=f-1;f--;){var _=u[f];if(f==g||_!==A){var A=_;Fo(_)?gu.call(s,_,1):Zf(s,_)}}return s}function Xf(s,u){return s+_u(P0()*(u-s+1))}function eO(s,u,f,g){for(var _=-1,A=cn(yu((u-s)/(f||1)),0),N=J(A);A--;)N[g?A:++_]=s,s+=f;return N}function Yf(s,u){var f="";if(!s||u<1||u>Ie)return f;do u%2&&(f+=s),u=_u(u/2),u&&(s+=s);while(u);return f}function ct(s,u){return pp(Oy(s,u,Qn),s+"")}function tO(s){return F0(Fi(s))}function nO(s,u){var f=Fi(s);return Nu(f,Fs(u,0,f.length))}function Tl(s,u,f,g){if(!Gt(s))return s;u=os(u,s);for(var _=-1,A=u.length,N=A-1,D=s;D!=null&&++_<A;){var K=_o(u[_]),se=f;if(K==="__proto__"||K==="constructor"||K==="prototype")return s;if(_!=N){var ie=D[K];se=g?g(ie,K,D):n,se===n&&(se=Gt(ie)?ie:Fo(u[_+1])?[]:{})}Sl(D,K,se),D=D[K]}return s}var Q0=bu?function(s,u){return bu.set(s,u),s}:Qn,rO=vu?function(s,u){return vu(s,"toString",{configurable:!0,enumerable:!1,value:Ep(u),writable:!0})}:Qn;function oO(s){return Nu(Fi(s))}function Ir(s,u,f){var g=-1,_=s.length;u<0&&(u=-u>_?0:_+u),f=f>_?_:f,f<0&&(f+=_),_=u>f?0:f-u>>>0,u>>>=0;for(var A=J(_);++g<_;)A[g]=s[g+u];return A}function sO(s,u){var f;return ns(s,function(g,_,A){return f=u(g,_,A),!f}),!!f}function Cu(s,u,f){var g=0,_=s==null?g:s.length;if(typeof u=="number"&&u===u&&_<=Q){for(;g<_;){var A=g+_>>>1,N=s[A];N!==null&&!hr(N)&&(f?N<=u:N<u)?g=A+1:_=A}return _}return Jf(s,u,Qn,f)}function Jf(s,u,f,g){var _=0,A=s==null?0:s.length;if(A===0)return 0;u=f(u);for(var N=u!==u,D=u===null,K=hr(u),se=u===n;_<A;){var ie=_u((_+A)/2),pe=f(s[ie]),Ae=pe!==n,Ue=pe===null,Ke=pe===pe,lt=hr(pe);if(N)var Ge=g||Ke;else se?Ge=Ke&&(g||Ae):D?Ge=Ke&&Ae&&(g||!Ue):K?Ge=Ke&&Ae&&!Ue&&(g||!lt):Ue||lt?Ge=!1:Ge=g?pe<=u:pe<u;Ge?_=ie+1:A=ie}return Rn(A,Xe)}function ey(s,u){for(var f=-1,g=s.length,_=0,A=[];++f<g;){var N=s[f],D=u?u(N):N;if(!f||!Jr(D,K)){var K=D;A[_++]=N===0?0:N}}return A}function ty(s){return typeof s=="number"?s:hr(s)?ht:+s}function pr(s){if(typeof s=="string")return s;if(tt(s))return zt(s,pr)+"";if(hr(s))return R0?R0.call(s):"";var u=s+"";return u=="0"&&1/s==-ke?"-0":u}function rs(s,u,f){var g=-1,_=iu,A=s.length,N=!0,D=[],K=D;if(f)N=!1,_=Tf;else if(A>=o){var se=u?null:gO(s);if(se)return au(se);N=!1,_=gl,K=new Ls}else K=u?[]:D;e:for(;++g<A;){var ie=s[g],pe=u?u(ie):ie;if(ie=f||ie!==0?ie:0,N&&pe===pe){for(var Ae=K.length;Ae--;)if(K[Ae]===pe)continue e;u&&K.push(pe),D.push(ie)}else _(K,pe,f)||(K!==D&&K.push(pe),D.push(ie))}return D}function Zf(s,u){return u=os(u,s),s=Ay(s,u),s==null||delete s[_o(Pr(u))]}function ny(s,u,f,g){return Tl(s,u,f(Ns(s,u)),g)}function Ou(s,u,f,g){for(var _=s.length,A=g?_:-1;(g?A--:++A<_)&&u(s[A],A,s););return f?Ir(s,g?0:A,g?A+1:_):Ir(s,g?A+1:0,g?_:A)}function ry(s,u){var f=s;return f instanceof vt&&(f=f.value()),Cf(u,function(g,_){return _.func.apply(_.thisArg,Qo([g],_.args))},f)}function Qf(s,u,f){var g=s.length;if(g<2)return g?rs(s[0]):[];for(var _=-1,A=J(g);++_<g;)for(var N=s[_],D=-1;++D<g;)D!=_&&(A[_]=El(A[_]||N,s[D],u,f));return rs($n(A,1),u,f)}function oy(s,u,f){for(var g=-1,_=s.length,A=u.length,N={};++g<_;){var D=g<A?u[g]:n;f(N,s[g],D)}return N}function ep(s){return tn(s)?s:[]}function tp(s){return typeof s=="function"?s:Qn}function os(s,u){return tt(s)?s:cp(s,u)?[s]:Ry(At(s))}var iO=ct;function ss(s,u,f){var g=s.length;return f=f===n?g:f,!u&&f>=g?s:Ir(s,u,f)}var sy=K5||function(s){return En.clearTimeout(s)};function iy(s,u){if(u)return s.slice();var f=s.length,g=C0?C0(f):new s.constructor(f);return s.copy(g),g}function np(s){var u=new s.constructor(s.byteLength);return new hu(u).set(new hu(s)),u}function lO(s,u){var f=u?np(s.buffer):s.buffer;return new s.constructor(f,s.byteOffset,s.byteLength)}function aO(s){var u=new s.constructor(s.source,Hv.exec(s));return u.lastIndex=s.lastIndex,u}function uO(s){return wl?Rt(wl.call(s)):{}}function ly(s,u){var f=u?np(s.buffer):s.buffer;return new s.constructor(f,s.byteOffset,s.length)}function ay(s,u){if(s!==u){var f=s!==n,g=s===null,_=s===s,A=hr(s),N=u!==n,D=u===null,K=u===u,se=hr(u);if(!D&&!se&&!A&&s>u||A&&N&&K&&!D&&!se||g&&N&&K||!f&&K||!_)return 1;if(!g&&!A&&!se&&s<u||se&&f&&_&&!g&&!A||D&&f&&_||!N&&_||!K)return-1}return 0}function cO(s,u,f){for(var g=-1,_=s.criteria,A=u.criteria,N=_.length,D=f.length;++g<N;){var K=ay(_[g],A[g]);if(K){if(g>=D)return K;var se=f[g];return K*(se=="desc"?-1:1)}}return s.index-u.index}function uy(s,u,f,g){for(var _=-1,A=s.length,N=f.length,D=-1,K=u.length,se=cn(A-N,0),ie=J(K+se),pe=!g;++D<K;)ie[D]=u[D];for(;++_<N;)(pe||_<A)&&(ie[f[_]]=s[_]);for(;se--;)ie[D++]=s[_++];return ie}function cy(s,u,f,g){for(var _=-1,A=s.length,N=-1,D=f.length,K=-1,se=u.length,ie=cn(A-D,0),pe=J(ie+se),Ae=!g;++_<ie;)pe[_]=s[_];for(var Ue=_;++K<se;)pe[Ue+K]=u[K];for(;++N<D;)(Ae||_<A)&&(pe[Ue+f[N]]=s[_++]);return pe}function Yn(s,u){var f=-1,g=s.length;for(u||(u=J(g));++f<g;)u[f]=s[f];return u}function yo(s,u,f,g){var _=!f;f||(f={});for(var A=-1,N=u.length;++A<N;){var D=u[A],K=g?g(f[D],s[D],D,f,s):n;K===n&&(K=s[D]),_?Po(f,D,K):Sl(f,D,K)}return f}function dO(s,u){return yo(s,up(s),u)}function fO(s,u){return yo(s,Ey(s),u)}function Au(s,u){return function(f,g){var _=tt(f)?v5:L3,A=u?u():{};return _(f,s,qe(g,2),A)}}function Ii(s){return ct(function(u,f){var g=-1,_=f.length,A=_>1?f[_-1]:n,N=_>2?f[2]:n;for(A=s.length>3&&typeof A=="function"?(_--,A):n,N&&zn(f[0],f[1],N)&&(A=_<3?n:A,_=1),u=Rt(u);++g<_;){var D=f[g];D&&s(u,D,g,A)}return u})}function dy(s,u){return function(f,g){if(f==null)return f;if(!Jn(f))return s(f,g);for(var _=f.length,A=u?_:-1,N=Rt(f);(u?A--:++A<_)&&g(N[A],A,N)!==!1;);return f}}function fy(s){return function(u,f,g){for(var _=-1,A=Rt(u),N=g(u),D=N.length;D--;){var K=N[s?D:++_];if(f(A[K],K,A)===!1)break}return u}}function pO(s,u,f){var g=u&T,_=Cl(s);function A(){var N=this&&this!==En&&this instanceof A?_:s;return N.apply(g?f:this,arguments)}return A}function py(s){return function(u){u=At(u);var f=$i(u)?Xr(u):n,g=f?f[0]:u.charAt(0),_=f?ss(f,1).join(""):u.slice(1);return g[s]()+_}}function Pi(s){return function(u){return Cf(d_(c_(u).replace(r5,"")),s,"")}}function Cl(s){return function(){var u=arguments;switch(u.length){case 0:return new s;case 1:return new s(u[0]);case 2:return new s(u[0],u[1]);case 3:return new s(u[0],u[1],u[2]);case 4:return new s(u[0],u[1],u[2],u[3]);case 5:return new s(u[0],u[1],u[2],u[3],u[4]);case 6:return new s(u[0],u[1],u[2],u[3],u[4],u[5]);case 7:return new s(u[0],u[1],u[2],u[3],u[4],u[5],u[6])}var f=ki(s.prototype),g=s.apply(f,u);return Gt(g)?g:f}}function hO(s,u,f){var g=Cl(s);function _(){for(var A=arguments.length,N=J(A),D=A,K=Ri(_);D--;)N[D]=arguments[D];var se=A<3&&N[0]!==K&&N[A-1]!==K?[]:es(N,K);if(A-=se.length,A<f)return yy(s,u,ku,_.placeholder,n,N,se,n,n,f-A);var ie=this&&this!==En&&this instanceof _?g:s;return dr(ie,this,N)}return _}function hy(s){return function(u,f,g){var _=Rt(u);if(!Jn(u)){var A=qe(f,3);u=mn(u),f=function(D){return A(_[D],D,_)}}var N=s(u,f,g);return N>-1?_[A?u[N]:N]:n}}function my(s){return Lo(function(u){var f=u.length,g=f,_=Ar.prototype.thru;for(s&&u.reverse();g--;){var A=u[g];if(typeof A!="function")throw new Or(l);if(_&&!N&&Lu(A)=="wrapper")var N=new Ar([],!0)}for(g=N?g:f;++g<f;){A=u[g];var D=Lu(A),K=D=="wrapper"?lp(A):n;K&&dp(K[0])&&K[1]==(R|E|$|k)&&!K[4].length&&K[9]==1?N=N[Lu(K[0])].apply(N,K[3]):N=A.length==1&&dp(A)?N[D]():N.thru(A)}return function(){var se=arguments,ie=se[0];if(N&&se.length==1&&tt(ie))return N.plant(ie).value();for(var pe=0,Ae=f?u[pe].apply(this,se):ie;++pe<f;)Ae=u[pe].call(this,Ae);return Ae}})}function ku(s,u,f,g,_,A,N,D,K,se){var ie=u&R,pe=u&T,Ae=u&C,Ue=u&(E|O),Ke=u&W,lt=Ae?n:Cl(s);function Ge(){for(var mt=arguments.length,_t=J(mt),mr=mt;mr--;)_t[mr]=arguments[mr];if(Ue)var Wn=Ri(Ge),gr=T5(_t,Wn);if(g&&(_t=uy(_t,g,_,Ue)),A&&(_t=cy(_t,A,N,Ue)),mt-=gr,Ue&&mt<se){var nn=es(_t,Wn);return yy(s,u,ku,Ge.placeholder,f,_t,nn,D,K,se-mt)}var Zr=pe?f:this,Do=Ae?Zr[s]:s;return mt=_t.length,D?_t=LO(_t,D):Ke&&mt>1&&_t.reverse(),ie&&K<mt&&(_t.length=K),this&&this!==En&&this instanceof Ge&&(Do=lt||Cl(Do)),Do.apply(Zr,_t)}return Ge}function gy(s,u){return function(f,g){return V3(f,s,u(g),{})}}function Iu(s,u){return function(f,g){var _;if(f===n&&g===n)return u;if(f!==n&&(_=f),g!==n){if(_===n)return g;typeof f=="string"||typeof g=="string"?(f=pr(f),g=pr(g)):(f=ty(f),g=ty(g)),_=s(f,g)}return _}}function rp(s){return Lo(function(u){return u=zt(u,fr(qe())),ct(function(f){var g=this;return s(u,function(_){return dr(_,g,f)})})})}function Pu(s,u){u=u===n?" ":pr(u);var f=u.length;if(f<2)return f?Yf(u,s):u;var g=Yf(u,yu(s/xi(u)));return $i(u)?ss(Xr(g),0,s).join(""):g.slice(0,s)}function mO(s,u,f,g){var _=u&T,A=Cl(s);function N(){for(var D=-1,K=arguments.length,se=-1,ie=g.length,pe=J(ie+K),Ae=this&&this!==En&&this instanceof N?A:s;++se<ie;)pe[se]=g[se];for(;K--;)pe[se++]=arguments[++D];return dr(Ae,_?f:this,pe)}return N}function vy(s){return function(u,f,g){return g&&typeof g!="number"&&zn(u,f,g)&&(f=g=n),u=Mo(u),f===n?(f=u,u=0):f=Mo(f),g=g===n?u<f?1:-1:Mo(g),eO(u,f,g,s)}}function Ru(s){return function(u,f){return typeof u=="string"&&typeof f=="string"||(u=Rr(u),f=Rr(f)),s(u,f)}}function yy(s,u,f,g,_,A,N,D,K,se){var ie=u&E,pe=ie?N:n,Ae=ie?n:N,Ue=ie?A:n,Ke=ie?n:A;u|=ie?$:P,u&=~(ie?P:$),u&w||(u&=~(T|C));var lt=[s,u,_,Ue,pe,Ke,Ae,D,K,se],Ge=f.apply(n,lt);return dp(s)&&ky(Ge,lt),Ge.placeholder=g,Iy(Ge,s,u)}function op(s){var u=un[s];return function(f,g){if(f=Rr(f),g=g==null?0:Rn(it(g),292),g&&I0(f)){var _=(At(f)+"e").split("e"),A=u(_[0]+"e"+(+_[1]+g));return _=(At(A)+"e").split("e"),+(_[0]+"e"+(+_[1]-g))}return u(f)}}var gO=Oi&&1/au(new Oi([,-0]))[1]==ke?function(s){return new Oi(s)}:Tp;function _y(s){return function(u){var f=Ln(u);return f==Z?Lf(u):f==ae?R5(u):x5(u,s(u))}}function Ro(s,u,f,g,_,A,N,D){var K=u&C;if(!K&&typeof s!="function")throw new Or(l);var se=g?g.length:0;if(se||(u&=~($|P),g=_=n),N=N===n?N:cn(it(N),0),D=D===n?D:it(D),se-=_?_.length:0,u&P){var ie=g,pe=_;g=_=n}var Ae=K?n:lp(s),Ue=[s,u,f,g,_,ie,pe,A,N,D];if(Ae&&IO(Ue,Ae),s=Ue[0],u=Ue[1],f=Ue[2],g=Ue[3],_=Ue[4],D=Ue[9]=Ue[9]===n?K?0:s.length:cn(Ue[9]-se,0),!D&&u&(E|O)&&(u&=~(E|O)),!u||u==T)var Ke=pO(s,u,f);else u==E||u==O?Ke=hO(s,u,D):(u==$||u==(T|$))&&!_.length?Ke=mO(s,u,f,g):Ke=ku.apply(n,Ue);var lt=Ae?Q0:ky;return Iy(lt(Ke,Ue),s,u)}function by(s,u,f,g){return s===n||Jr(s,Ci[f])&&!It.call(g,f)?u:s}function wy(s,u,f,g,_,A){return Gt(s)&&Gt(u)&&(A.set(u,s),Tu(s,u,n,wy,A),A.delete(u)),s}function vO(s){return kl(s)?n:s}function Sy(s,u,f,g,_,A){var N=f&b,D=s.length,K=u.length;if(D!=K&&!(N&&K>D))return!1;var se=A.get(s),ie=A.get(u);if(se&&ie)return se==u&&ie==s;var pe=-1,Ae=!0,Ue=f&S?new Ls:n;for(A.set(s,u),A.set(u,s);++pe<D;){var Ke=s[pe],lt=u[pe];if(g)var Ge=N?g(lt,Ke,pe,u,s,A):g(Ke,lt,pe,s,u,A);if(Ge!==n){if(Ge)continue;Ae=!1;break}if(Ue){if(!Of(u,function(mt,_t){if(!gl(Ue,_t)&&(Ke===mt||_(Ke,mt,f,g,A)))return Ue.push(_t)})){Ae=!1;break}}else if(!(Ke===lt||_(Ke,lt,f,g,A))){Ae=!1;break}}return A.delete(s),A.delete(u),Ae}function yO(s,u,f,g,_,A,N){switch(f){case ft:if(s.byteLength!=u.byteLength||s.byteOffset!=u.byteOffset)return!1;s=s.buffer,u=u.buffer;case yt:return!(s.byteLength!=u.byteLength||!A(new hu(s),new hu(u)));case Ve:case rt:case ue:return Jr(+s,+u);case an:return s.name==u.name&&s.message==u.message;case Se:case Fe:return s==u+"";case Z:var D=Lf;case ae:var K=g&b;if(D||(D=au),s.size!=u.size&&!K)return!1;var se=N.get(s);if(se)return se==u;g|=S,N.set(s,u);var ie=Sy(D(s),D(u),g,_,A,N);return N.delete(s),ie;case Pe:if(wl)return wl.call(s)==wl.call(u)}return!1}function _O(s,u,f,g,_,A){var N=f&b,D=sp(s),K=D.length,se=sp(u),ie=se.length;if(K!=ie&&!N)return!1;for(var pe=K;pe--;){var Ae=D[pe];if(!(N?Ae in u:It.call(u,Ae)))return!1}var Ue=A.get(s),Ke=A.get(u);if(Ue&&Ke)return Ue==u&&Ke==s;var lt=!0;A.set(s,u),A.set(u,s);for(var Ge=N;++pe<K;){Ae=D[pe];var mt=s[Ae],_t=u[Ae];if(g)var mr=N?g(_t,mt,Ae,u,s,A):g(mt,_t,Ae,s,u,A);if(!(mr===n?mt===_t||_(mt,_t,f,g,A):mr)){lt=!1;break}Ge||(Ge=Ae=="constructor")}if(lt&&!Ge){var Wn=s.constructor,gr=u.constructor;Wn!=gr&&"constructor"in s&&"constructor"in u&&!(typeof Wn=="function"&&Wn instanceof Wn&&typeof gr=="function"&&gr instanceof gr)&&(lt=!1)}return A.delete(s),A.delete(u),lt}function Lo(s){return pp(Oy(s,n,My),s+"")}function sp(s){return V0(s,mn,up)}function ip(s){return V0(s,Zn,Ey)}var lp=bu?function(s){return bu.get(s)}:Tp;function Lu(s){for(var u=s.name+"",f=Ai[u],g=It.call(Ai,u)?f.length:0;g--;){var _=f[g],A=_.func;if(A==null||A==s)return _.name}return u}function Ri(s){var u=It.call(x,"placeholder")?x:s;return u.placeholder}function qe(){var s=x.iteratee||$p;return s=s===$p?W0:s,arguments.length?s(arguments[0],arguments[1]):s}function Fu(s,u){var f=s.__data__;return CO(u)?f[typeof u=="string"?"string":"hash"]:f.map}function ap(s){for(var u=mn(s),f=u.length;f--;){var g=u[f],_=s[g];u[f]=[g,_,Ty(_)]}return u}function Ms(s,u){var f=k5(s,u);return z0(f)?f:n}function bO(s){var u=It.call(s,Ps),f=s[Ps];try{s[Ps]=n;var g=!0}catch{}var _=fu.call(s);return g&&(u?s[Ps]=f:delete s[Ps]),_}var up=Nf?function(s){return s==null?[]:(s=Rt(s),Zo(Nf(s),function(u){return A0.call(s,u)}))}:Cp,Ey=Nf?function(s){for(var u=[];s;)Qo(u,up(s)),s=mu(s);return u}:Cp,Ln=Hn;(Mf&&Ln(new Mf(new ArrayBuffer(1)))!=ft||yl&&Ln(new yl)!=Z||Df&&Ln(Df.resolve())!=Oe||Oi&&Ln(new Oi)!=ae||_l&&Ln(new _l)!=ze)&&(Ln=function(s){var u=Hn(s),f=u==ye?s.constructor:n,g=f?Ds(f):"";if(g)switch(g){case n3:return ft;case r3:return Z;case o3:return Oe;case s3:return ae;case i3:return ze}return u});function wO(s,u,f){for(var g=-1,_=f.length;++g<_;){var A=f[g],N=A.size;switch(A.type){case"drop":s+=N;break;case"dropRight":u-=N;break;case"take":u=Rn(u,s+N);break;case"takeRight":s=cn(s,u-N);break}}return{start:s,end:u}}function SO(s){var u=s.match(OC);return u?u[1].split(AC):[]}function $y(s,u,f){u=os(u,s);for(var g=-1,_=u.length,A=!1;++g<_;){var N=_o(u[g]);if(!(A=s!=null&&f(s,N)))break;s=s[N]}return A||++g!=_?A:(_=s==null?0:s.length,!!_&&Vu(_)&&Fo(N,_)&&(tt(s)||Us(s)))}function EO(s){var u=s.length,f=new s.constructor(u);return u&&typeof s[0]=="string"&&It.call(s,"index")&&(f.index=s.index,f.input=s.input),f}function xy(s){return typeof s.constructor=="function"&&!Ol(s)?ki(mu(s)):{}}function $O(s,u,f){var g=s.constructor;switch(u){case yt:return np(s);case Ve:case rt:return new g(+s);case ft:return lO(s,f);case Ht:case Vn:case go:case _i:case Ao:case bi:case Sn:case Xn:case wi:return ly(s,f);case Z:return new g;case ue:case Fe:return new g(s);case Se:return aO(s);case ae:return new g;case Pe:return uO(s)}}function xO(s,u){var f=u.length;if(!f)return s;var g=f-1;return u[g]=(f>1?"& ":"")+u[g],u=u.join(f>2?", ":" "),s.replace(CC,`{ 28 28 /* [wrapped with `+u+`] */ 29 `)}function TO(s){return tt(s)||Us(s)||!!( I0&&s&&s[I0])}function Lo(s,u){var f=typeof s;return u=u??Ie,!!u&&(f=="number"||f!="symbol"&&DC.test(s))&&s>-1&&s%1==0&&s<u}function zn(s,u,f){if(!Gt(f))return!1;var g=typeof u;return(g=="number"?Yn(f)&&Lo(u,f.length):g=="string"&&u in f)?Yr(f[u],s):!1}function up(s,u){if(tt(s))return!1;var f=typeof s;return f=="number"||f=="symbol"||f=="boolean"||s==null||pr(s)?!0:EC.test(s)||!SC.test(s)||u!=null&&s in Rt(u)}function CO(s){var u=typeof s;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?s!=="__proto__":s===null}function cp(s){var u=Lu(s),f=x[u];if(typeof f!="function"||!(u in vt.prototype))return!1;if(s===f)return!0;var g=ip(f);return!!g&&s===g[0]}function OO(s){return!!C0&&C0 in s}var AO=cu?Fo:Cp;function Ol(s){var u=s&&s.constructor,f=typeof u=="function"&&u.prototype||Ci;return s===f}function Cy(s){return s===s&&!Gt(s)}function Oy(s,u){return function(f){return f==null?!1:f[s]===u&&(u!==n||s in Rt(f))}}function kO(s){var u=Bu(s,function(g){return f.size===d&&f.clear(),g}),f=u.cache;return u}function IO(s,u){var f=s[1],g=u[1],_=f|g,A=_<(T|C|R),N=g==R&&f==E||g==R&&f==k&&s[7].length<=u[8]||g==(R|k)&&u[7].length<=u[8]&&f==E;if(!(A||N))return s;g&T&&(s[2]=u[2],_|=f&T?0:w);var D=u[3];if(D){var K=s[3];s[3]=K?cy(K,D,u[4]):D,s[4]=K?es(s[3],p):u[4]}return D=u[5],D&&(K=s[5],s[5]=K?dy(K,D,u[6]):D,s[6]=K?es(s[5],p):u[6]),D=u[7],D&&(s[7]=D),g&R&&(s[8]=s[8]==null?u[8]:Rn(s[8],u[8])),s[9]==null&&(s[9]=u[9]),s[0]=u[0],s[1]=_,s}function PO(s){var u=[];if(s!=null)for(var f in Rt(s))u.push(f);return u}function RO(s){return fu.call(s)}function Ay(s,u,f){return u=cn(u===n?s.length-1:u,0),function(){for(var g=arguments,_=-1,A=cn(g.length-u,0),N=J(A);++_<A;)N[_]=g[u+_];_=-1;for(var D=J(u+1);++_<u;)D[_]=g[_];return D[u]=f(N),cr(s,this,D)}}function ky(s,u){return u.length<2?s:Ns(s,kr(u,0,-1))}function LO(s,u){for(var f=s.length,g=Rn(u.length,f),_=Xn(s);g--;){var A=u[g];s[g]=Lo(A,f)?_[A]:n}return s}function dp(s,u){if(!(u==="constructor"&&typeof s[u]=="function")&&u!="__proto__")return s[u]}var Iy=Ry(ey),Al=X5||function(s,u){return En.setTimeout(s,u)},fp=Ry(rO);function Py(s,u,f){var g=u+"";return fp(s,xO(g,FO(SO(g),f)))}function Ry(s){var u=0,f=0;return function(){var g=Q5(),_=X-(g-f);if(f=g,_>0){if(++u>=G)return arguments[0]}else u=0;return s.apply(n,arguments)}}function Nu(s,u){var f=-1,g=s.length,_=g-1;for(u=u===n?g:u;++f<u;){var A=Gf(f,_),N=s[A];s[A]=s[f],s[f]=N}return s.length=u,s}var Ly=kO(function(s){var u=[];return s.charCodeAt(0)===46&&u.push(""),s.replace($C,function(f,g,_,A){u.push(_?A.replace(PC,"$1"):g||f)}),u});function yo(s){if(typeof s=="string"||pr(s))return s;var u=s+"";return u=="0"&&1/s==-ke?"-0":u}function Ds(s){if(s!=null){try{return du.call(s)}catch{}try{return s+""}catch{}}return""}function FO(s,u){return Tr(ce,function(f){var g="_."+f[0];u&f[1]&&!iu(s,g)&&s.push(g)}),s.sort()}function Fy(s){if(s instanceof vt)return s.clone();var u=new Or(s.__wrapped__,s.__chain__);return u.__actions__=Xn(s.__actions__),u.__index__=s.__index__,u.__values__=s.__values__,u}function NO(s,u,f){(f?zn(s,u,f):u===n)?u=1:u=cn(it(u),0);var g=s==null?0:s.length;if(!g||u<1)return[];for(var _=0,A=0,N=J(yu(g/u));_<g;)N[A++]=kr(s,_,_+=u);return N}function MO(s){for(var u=-1,f=s==null?0:s.length,g=0,_=[];++u<f;){var A=s[u];A&&(_[g++]=A)}return _}function DO(){var s=arguments.length;if(!s)return[];for(var u=J(s-1),f=arguments[0],g=s;g--;)u[g-1]=arguments[g];return Qo(tt(f)?Xn(f):[f],$n(u,1))}var UO=ct(function(s,u){return tn(s)?El(s,$n(u,1,tn,!0)):[]}),BO=ct(function(s,u){var f=Ir(u);return tn(f)&&(f=n),tn(s)?El(s,$n(u,1,tn,!0),qe(f,2)):[]}),jO=ct(function(s,u){var f=Ir(u);return tn(f)&&(f=n),tn(s)?El(s,$n(u,1,tn,!0),n,f):[]});function VO(s,u,f){var g=s==null?0:s.length;return g?(u=f||u===n?1:it(u),kr(s,u<0?0:u,g)):[]}function HO(s,u,f){var g=s==null?0:s.length;return g?(u=f||u===n?1:it(u),u=g-u,kr(s,0,u<0?0:u)):[]}function zO(s,u){return s&&s.length?Ou(s,qe(u,3),!0,!0):[]}function WO(s,u){return s&&s.length?Ou(s,qe(u,3),!0):[]}function qO(s,u,f,g){var _=s==null?0:s.length;return _?(f&&typeof f!="number"&&zn(s,u,f)&&(f=0,g=_),D3(s,u,f,g)):[]}function Ny(s,u,f){var g=s==null?0:s.length;if(!g)return-1;var _=f==null?0:it(f);return _<0&&(_=cn(g+_,0)),lu(s,qe(u,3),_)}function My(s,u,f){var g=s==null?0:s.length;if(!g)return-1;var _=g-1;return f!==n&&(_=it(f),_=f<0?cn(g+_,0):Rn(_,g-1)),lu(s,qe(u,3),_,!0)}function Dy(s){var u=s==null?0:s.length;return u?$n(s,1):[]}function KO(s){var u=s==null?0:s.length;return u?$n(s,ke):[]}function GO(s,u){var f=s==null?0:s.length;return f?(u=u===n?1:it(u),$n(s,u)):[]}function XO(s){for(var u=-1,f=s==null?0:s.length,g={};++u<f;){var _=s[u];g[_[0]]=_[1]}return g}function Uy(s){return s&&s.length?s[0]:n}function YO(s,u,f){var g=s==null?0:s.length;if(!g)return-1;var _=f==null?0:it(f);return _<0&&(_=cn(g+_,0)),Ei(s,u,_)}function JO(s){var u=s==null?0:s.length;return u?kr(s,0,-1):[]}var ZO=ct(function(s){var u=zt(s,Qf);return u.length&&u[0]===s[0]?Hf(u):[]}),QO=ct(function(s){var u=Ir(s),f=zt(s,Qf);return u===Ir(f)?u=n:f.pop(),f.length&&f[0]===s[0]?Hf(f,qe(u,2)):[]}),e4=ct(function(s){var u=Ir(s),f=zt(s,Qf);return u=typeof u=="function"?u:n,u&&f.pop(),f.length&&f[0]===s[0]?Hf(f,n,u):[]});function t4(s,u){return s==null?"":J5.call(s,u)}function Ir(s){var u=s==null?0:s.length;return u?s[u-1]:n}function n4(s,u,f){var g=s==null?0:s.length;if(!g)return-1;var _=g;return f!==n&&(_=it(f),_=_<0?cn(g+_,0):Rn(_,g-1)),u===u?F5(s,u,_):lu(s,_0,_,!0)}function r4(s,u){return s&&s.length?Y0(s,it(u)):n}var o4=ct(By);function By(s,u){return s&&s.length&&u&&u.length?Kf(s,u):s}function s4(s,u,f){return s&&s.length&&u&&u.length?Kf(s,u,qe(f,2)):s}function i4(s,u,f){return s&&s.length&&u&&u.length?Kf(s,u,n,f):s}var l4=Ro(function(s,u){var f=s==null?0:s.length,g=Uf(s,u);return Q0(s,zt(u,function(_){return Lo(_,f)?+_:_}).sort(uy)),g});function a4(s,u){var f=[];if(!(s&&s.length))return f;var g=-1,_=[],A=s.length;for(u=qe(u,3);++g<A;){var N=s[g];u(N,g,s)&&(f.push(N),_.push(g))}return Q0(s,_),f}function pp(s){return s==null?s:t3.call(s)}function u4(s,u,f){var g=s==null?0:s.length;return g?(f&&typeof f!="number"&&zn(s,u,f)?(u=0,f=g):(u=u==null?0:it(u),f=f===n?g:it(f)),kr(s,u,f)):[]}function c4(s,u){return Cu(s,u)}function d4(s,u,f){return Yf(s,u,qe(f,2))}function f4(s,u){var f=s==null?0:s.length;if(f){var g=Cu(s,u);if(g<f&&Yr(s[g],u))return g}return-1}function p4(s,u){return Cu(s,u,!0)}function h4(s,u,f){return Yf(s,u,qe(f,2),!0)}function m4(s,u){var f=s==null?0:s.length;if(f){var g=Cu(s,u,!0)-1;if(Yr(s[g],u))return g}return-1}function g4(s){return s&&s.length?ty(s):[]}function v4(s,u){return s&&s.length?ty(s,qe(u,2)):[]}function y4(s){var u=s==null?0:s.length;return u?kr(s,1,u):[]}function _4(s,u,f){return s&&s.length?(u=f||u===n?1:it(u),kr(s,0,u<0?0:u)):[]}function b4(s,u,f){var g=s==null?0:s.length;return g?(u=f||u===n?1:it(u),u=g-u,kr(s,u<0?0:u,g)):[]}function w4(s,u){return s&&s.length?Ou(s,qe(u,3),!1,!0):[]}function S4(s,u){return s&&s.length?Ou(s,qe(u,3)):[]}var E4=ct(function(s){return rs($n(s,1,tn,!0))}),$4=ct(function(s){var u=Ir(s);return tn(u)&&(u=n),rs($n(s,1,tn,!0),qe(u,2))}),x4=ct(function(s){var u=Ir(s);return u=typeof u=="function"?u:n,rs($n(s,1,tn,!0),n,u)});function T4(s){return s&&s.length?rs(s):[]}function C4(s,u){return s&&s.length?rs(s,qe(u,2)):[]}function O4(s,u){return u=typeof u=="function"?u:n,s&&s.length?rs(s,n,u):[]}function hp(s){if(!(s&&s.length))return[];var u=0;return s=Zo(s,function(f){if(tn(f))return u=cn(f.length,u),!0}),If(u,function(f){return zt(s,Of(f))})}function jy(s,u){if(!(s&&s.length))return[];var f=hp(s);return u==null?f:zt(f,function(g){return cr(u,n,g)})}var A4=ct(function(s,u){return tn(s)?El(s,u):[]}),k4=ct(function(s){return Zf(Zo(s,tn))}),I4=ct(function(s){var u=Ir(s);return tn(u)&&(u=n),Zf(Zo(s,tn),qe(u,2))}),P4=ct(function(s){var u=Ir(s);return u=typeof u=="function"?u:n,Zf(Zo(s,tn),n,u)}),R4=ct(hp);function L4(s,u){return sy(s||[],u||[],Sl)}function F4(s,u){return sy(s||[],u||[],Tl)}var N4=ct(function(s){var u=s.length,f=u>1?s[u-1]:n;return f=typeof f=="function"?(s.pop(),f):n,jy(s,f)});function Vy(s){var u=x(s);return u.__chain__=!0,u}function M4(s,u){return u(s),s}function Mu(s,u){return u(s)}var D4=Ro(function(s){var u=s.length,f=u?s[0]:0,g=this.__wrapped__,_=function(A){return Uf(A,s)};return u>1||this.__actions__.length||!(g instanceof vt)||!Lo(f)?this.thru(_):(g=g.slice(f,+f+(u?1:0)),g.__actions__.push({func:Mu,args:[_],thisArg:n}),new Or(g,this.__chain__).thru(function(A){return u&&!A.length&&A.push(n),A}))});function U4(){return Vy(this)}function B4(){return new Or(this.value(),this.__chain__)}function j4(){this.__values__===n&&(this.__values__=n1(this.value()));var s=this.__index__>=this.__values__.length,u=s?n:this.__values__[this.__index__++];return{done:s,value:u}}function V4(){return this}function H4(s){for(var u,f=this;f instanceof Su;){var g=Fy(f);g.__index__=0,g.__values__=n,u?_.__wrapped__=g:u=g;var _=g;f=f.__wrapped__}return _.__wrapped__=s,u}function z4(){var s=this.__wrapped__;if(s instanceof vt){var u=s;return this.__actions__.length&&(u=new vt(this)),u=u.reverse(),u.__actions__.push({func:Mu,args:[pp],thisArg:n}),new Or(u,this.__chain__)}return this.thru(pp)}function W4(){return oy(this.__wrapped__,this.__actions__)}var q4=Au(function(s,u,f){It.call(s,f)?++s[f]:Io(s,f,1)});function K4(s,u,f){var g=tt(s)?v0:M3;return f&&zn(s,u,f)&&(u=n),g(s,qe(u,3))}function G4(s,u){var f=tt(s)?Zo:j0;return f(s,qe(u,3))}var X4=my(Ny),Y4=my(My);function J4(s,u){return $n(Du(s,u),1)}function Z4(s,u){return $n(Du(s,u),ke)}function Q4(s,u,f){return f=f===n?1:it(f),$n(Du(s,u),f)}function Hy(s,u){var f=tt(s)?Tr:ns;return f(s,qe(u,3))}function zy(s,u){var f=tt(s)?y5:B0;return f(s,qe(u,3))}var eA=Au(function(s,u,f){It.call(s,f)?s[f].push(u):Io(s,f,[u])});function tA(s,u,f,g){s=Yn(s)?s:Fi(s),f=f&&!g?it(f):0;var _=s.length;return f<0&&(f=cn(_+f,0)),Hu(s)?f<=_&&s.indexOf(u,f)>-1:!!_&&Ei(s,u,f)>-1}var nA=ct(function(s,u,f){var g=-1,_=typeof u=="function",A=Yn(s)?J(s.length):[];return ns(s,function(N){A[++g]=_?cr(u,N,f):$l(N,u,f)}),A}),rA=Au(function(s,u,f){Io(s,f,u)});function Du(s,u){var f=tt(s)?zt:K0;return f(s,qe(u,3))}function oA(s,u,f,g){return s==null?[]:(tt(u)||(u=u==null?[]:[u]),f=g?n:f,tt(f)||(f=f==null?[]:[f]),J0(s,u,f))}var sA=Au(function(s,u,f){s[f?0:1].push(u)},function(){return[[],[]]});function iA(s,u,f){var g=tt(s)?Tf:w0,_=arguments.length<3;return g(s,qe(u,4),f,_,ns)}function lA(s,u,f){var g=tt(s)?_5:w0,_=arguments.length<3;return g(s,qe(u,4),f,_,B0)}function aA(s,u){var f=tt(s)?Zo:j0;return f(s,ju(qe(u,3)))}function uA(s){var u=tt(s)?N0:tO;return u(s)}function cA(s,u,f){(f?zn(s,u,f):u===n)?u=1:u=it(u);var g=tt(s)?P3:nO;return g(s,u)}function dA(s){var u=tt(s)?R3:oO;return u(s)}function fA(s){if(s==null)return 0;if(Yn(s))return Hu(s)?xi(s):s.length;var u=Ln(s);return u==Z||u==ae?s.size:Wf(s).length}function pA(s,u,f){var g=tt(s)?Cf:sO;return f&&zn(s,u,f)&&(u=n),g(s,qe(u,3))}var hA=ct(function(s,u){if(s==null)return[];var f=u.length;return f>1&&zn(s,u[0],u[1])?u=[]:f>2&&zn(u[0],u[1],u[2])&&(u=[u[0]]),J0(s,$n(u,1),[])}),Uu=G5||function(){return En.Date.now()};function mA(s,u){if(typeof u!="function")throw new Cr(l);return s=it(s),function(){if(--s<1)return u.apply(this,arguments)}}function Wy(s,u,f){return u=f?n:u,u=s&&u==null?s.length:u,Po(s,R,n,n,n,n,u)}function qy(s,u){var f;if(typeof u!="function")throw new Cr(l);return s=it(s),function(){return--s>0&&(f=u.apply(this,arguments)),s<=1&&(u=n),f}}var mp=ct(function(s,u,f){var g=T;if(f.length){var _=es(f,Ri(mp));g|=$}return Po(s,g,u,f,_)}),Ky=ct(function(s,u,f){var g=T|C;if(f.length){var _=es(f,Ri(Ky));g|=$}return Po(u,g,s,f,_)});function Gy(s,u,f){u=f?n:u;var g=Po(s,E,n,n,n,n,n,u);return g.placeholder=Gy.placeholder,g}function Xy(s,u,f){u=f?n:u;var g=Po(s,O,n,n,n,n,n,u);return g.placeholder=Xy.placeholder,g}function Yy(s,u,f){var g,_,A,N,D,K,se=0,ie=!1,pe=!1,Ae=!0;if(typeof s!="function")throw new Cr(l);u=Pr(u)||0,Gt(f)&&(ie=!!f.leading,pe="maxWait"in f,A=pe?cn(Pr(f.maxWait)||0,u):A,Ae="trailing"in f?!!f.trailing:Ae);function Ue(nn){var Jr=g,Mo=_;return g=_=n,se=nn,N=s.apply(Mo,Jr),N}function Ke(nn){return se=nn,D=Al(mt,u),ie?Ue(nn):N}function lt(nn){var Jr=nn-K,Mo=nn-se,m1=u-Jr;return pe?Rn(m1,A-Mo):m1}function Ge(nn){var Jr=nn-K,Mo=nn-se;return K===n||Jr>=u||Jr<0||pe&&Mo>=A}function mt(){var nn=Uu();if(Ge(nn))return _t(nn);D=Al(mt,lt(nn))}function _t(nn){return D=n,Ae&&g?Ue(nn):(g=_=n,N)}function hr(){D!==n&&iy(D),se=0,g=K=_=D=n}function Wn(){return D===n?N:_t(Uu())}function mr(){var nn=Uu(),Jr=Ge(nn);if(g=arguments,_=this,K=nn,Jr){if(D===n)return Ke(K);if(pe)return iy(D),D=Al(mt,u),Ue(K)}return D===n&&(D=Al(mt,u)),N}return mr.cancel=hr,mr.flush=Wn,mr}var gA=ct(function(s,u){return U0(s,1,u)}),vA=ct(function(s,u,f){return U0(s,Pr(u)||0,f)});function yA(s){return Po(s,W)}function Bu(s,u){if(typeof s!="function"||u!=null&&typeof u!="function")throw new Cr(l);var f=function(){var g=arguments,_=u?u.apply(this,g):g[0],A=f.cache;if(A.has(_))return A.get(_);var N=s.apply(this,g);return f.cache=A.set(_,N)||A,N};return f.cache=new(Bu.Cache||ko),f}Bu.Cache=ko;function ju(s){if(typeof s!="function")throw new Cr(l);return function(){var u=arguments;switch(u.length){case 0:return!s.call(this);case 1:return!s.call(this,u[0]);case 2:return!s.call(this,u[0],u[1]);case 3:return!s.call(this,u[0],u[1],u[2])}return!s.apply(this,u)}}function _A(s){return qy(2,s)}var bA=iO(function(s,u){u=u.length==1&&tt(u[0])?zt(u[0],dr(qe())):zt($n(u,1),dr(qe()));var f=u.length;return ct(function(g){for(var _=-1,A=Rn(g.length,f);++_<A;)g[_]=u[_].call(this,g[_]);return cr(s,this,g)})}),gp=ct(function(s,u){var f=es(u,Ri(gp));return Po(s,$,n,u,f)}),Jy=ct(function(s,u){var f=es(u,Ri(Jy));return Po(s,P,n,u,f)}),wA=Ro(function(s,u){return Po(s,k,n,n,n,u)});function SA(s,u){if(typeof s!="function")throw new Cr(l);return u=u===n?u:it(u),ct(s,u)}function EA(s,u){if(typeof s!="function")throw new Cr(l);return u=u==null?0:cn(it(u),0),ct(function(f){var g=f[u],_=ss(f,0,u);return g&&Qo(_,g),cr(s,this,_)})}function $A(s,u,f){var g=!0,_=!0;if(typeof s!="function")throw new Cr(l);return Gt(f)&&(g="leading"in f?!!f.leading:g,_="trailing"in f?!!f.trailing:_),Yy(s,u,{leading:g,maxWait:u,trailing:_})}function xA(s){return Wy(s,1)}function TA(s,u){return gp(ep(u),s)}function CA(){if(!arguments.length)return[];var s=arguments[0];return tt(s)?s:[s]}function OA(s){return Ar(s,y)}function AA(s,u){return u=typeof u=="function"?u:n,Ar(s,y,u)}function kA(s){return Ar(s,h|y)}function IA(s,u){return u=typeof u=="function"?u:n,Ar(s,h|y,u)}function PA(s,u){return u==null||D0(s,u,mn(u))}function Yr(s,u){return s===u||s!==s&&u!==u}var RA=Ru(Vf),LA=Ru(function(s,u){return s>=u}),Us=z0(function(){return arguments}())?z0:function(s){return Yt(s)&&It.call(s,"callee")&&!k0.call(s,"callee")},tt=J.isArray,FA=d0?dr(d0):H3;function Yn(s){return s!=null&&Vu(s.length)&&!Fo(s)}function tn(s){return Yt(s)&&Yn(s)}function NA(s){return s===!0||s===!1||Yt(s)&&Hn(s)==Ve}var is=Y5||Cp,MA=f0?dr(f0):z3;function DA(s){return Yt(s)&&s.nodeType===1&&!kl(s)}function UA(s){if(s==null)return!0;if(Yn(s)&&(tt(s)||typeof s=="string"||typeof s.splice=="function"||is(s)||Li(s)||Us(s)))return!s.length;var u=Ln(s);if(u==Z||u==ae)return!s.size;if(Ol(s))return!Wf(s).length;for(var f in s)if(It.call(s,f))return!1;return!0}function BA(s,u){return xl(s,u)}function jA(s,u,f){f=typeof f=="function"?f:n;var g=f?f(s,u):n;return g===n?xl(s,u,n,f):!!g}function vp(s){if(!Yt(s))return!1;var u=Hn(s);return u==an||u==wn||typeof s.message=="string"&&typeof s.name=="string"&&!kl(s)}function VA(s){return typeof s=="number"&&P0(s)}function Fo(s){if(!Gt(s))return!1;var u=Hn(s);return u==M||u==V||u==We||u==we}function Zy(s){return typeof s=="number"&&s==it(s)}function Vu(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=Ie}function Gt(s){var u=typeof s;return s!=null&&(u=="object"||u=="function")}function Yt(s){return s!=null&&typeof s=="object"}var Qy=p0?dr(p0):q3;function HA(s,u){return s===u||zf(s,u,lp(u))}function zA(s,u,f){return f=typeof f=="function"?f:n,zf(s,u,lp(u),f)}function WA(s){return e1(s)&&s!=+s}function qA(s){if(AO(s))throw new et(i);return W0(s)}function KA(s){return s===null}function GA(s){return s==null}function e1(s){return typeof s=="number"||Yt(s)&&Hn(s)==ue}function kl(s){if(!Yt(s)||Hn(s)!=ye)return!1;var u=mu(s);if(u===null)return!0;var f=It.call(u,"constructor")&&u.constructor;return typeof f=="function"&&f instanceof f&&du.call(f)==z5}var yp=h0?dr(h0):K3;function XA(s){return Zy(s)&&s>=-Ie&&s<=Ie}var t1=m0?dr(m0):G3;function Hu(s){return typeof s=="string"||!tt(s)&&Yt(s)&&Hn(s)==Fe}function pr(s){return typeof s=="symbol"||Yt(s)&&Hn(s)==Pe}var Li=g0?dr(g0):X3;function YA(s){return s===n}function JA(s){return Yt(s)&&Ln(s)==ze}function ZA(s){return Yt(s)&&Hn(s)==st}var QA=Ru(qf),ek=Ru(function(s,u){return s<=u});function n1(s){if(!s)return[];if(Yn(s))return Hu(s)?Gr(s):Xn(s);if(vl&&s[vl])return P5(s[vl]());var u=Ln(s),f=u==Z?Rf:u==ae?au:Fi;return f(s)}function No(s){if(!s)return s===0?s:0;if(s=Pr(s),s===ke||s===-ke){var u=s<0?-1:1;return u*Qe}return s===s?s:0}function it(s){var u=No(s),f=u%1;return u===u?f?u-f:u:0}function r1(s){return s?Fs(it(s),0,De):0}function Pr(s){if(typeof s=="number")return s;if(pr(s))return ht;if(Gt(s)){var u=typeof s.valueOf=="function"?s.valueOf():s;s=Gt(u)?u+"":u}if(typeof s!="string")return s===0?s:+s;s=S0(s);var f=FC.test(s);return f||MC.test(s)?m5(s.slice(2),f?2:8):LC.test(s)?ht:+s}function o1(s){return vo(s,Jn(s))}function tk(s){return s?Fs(it(s),-Ie,Ie):s===0?s:0}function At(s){return s==null?"":fr(s)}var nk=Ii(function(s,u){if(Ol(u)||Yn(u)){vo(u,mn(u),s);return}for(var f in u)It.call(u,f)&&Sl(s,f,u[f])}),s1=Ii(function(s,u){vo(u,Jn(u),s)}),zu=Ii(function(s,u,f,g){vo(u,Jn(u),s,g)}),rk=Ii(function(s,u,f,g){vo(u,mn(u),s,g)}),ok=Ro(Uf);function sk(s,u){var f=ki(s);return u==null?f:M0(f,u)}var ik=ct(function(s,u){s=Rt(s);var f=-1,g=u.length,_=g>2?u[2]:n;for(_&&zn(u[0],u[1],_)&&(g=1);++f<g;)for(var A=u[f],N=Jn(A),D=-1,K=N.length;++D<K;){var se=N[D],ie=s[se];(ie===n||Yr(ie,Ci[se])&&!It.call(s,se))&&(s[se]=A[se])}return s}),lk=ct(function(s){return s.push(n,Sy),cr(i1,n,s)});function ak(s,u){return y0(s,qe(u,3),go)}function uk(s,u){return y0(s,qe(u,3),jf)}function ck(s,u){return s==null?s:Bf(s,qe(u,3),Jn)}function dk(s,u){return s==null?s:V0(s,qe(u,3),Jn)}function fk(s,u){return s&&go(s,qe(u,3))}function pk(s,u){return s&&jf(s,qe(u,3))}function hk(s){return s==null?[]:xu(s,mn(s))}function mk(s){return s==null?[]:xu(s,Jn(s))}function _p(s,u,f){var g=s==null?n:Ns(s,u);return g===n?f:g}function gk(s,u){return s!=null&&xy(s,u,U3)}function bp(s,u){return s!=null&&xy(s,u,B3)}var vk=vy(function(s,u,f){u!=null&&typeof u.toString!="function"&&(u=fu.call(u)),s[u]=f},Sp(Zn)),yk=vy(function(s,u,f){u!=null&&typeof u.toString!="function"&&(u=fu.call(u)),It.call(s,u)?s[u].push(f):s[u]=[f]},qe),_k=ct($l);function mn(s){return Yn(s)?F0(s):Wf(s)}function Jn(s){return Yn(s)?F0(s,!0):Y3(s)}function bk(s,u){var f={};return u=qe(u,3),go(s,function(g,_,A){Io(f,u(g,_,A),g)}),f}function wk(s,u){var f={};return u=qe(u,3),go(s,function(g,_,A){Io(f,_,u(g,_,A))}),f}var Sk=Ii(function(s,u,f){Tu(s,u,f)}),i1=Ii(function(s,u,f,g){Tu(s,u,f,g)}),Ek=Ro(function(s,u){var f={};if(s==null)return f;var g=!1;u=zt(u,function(A){return A=os(A,s),g||(g=A.length>1),A}),vo(s,sp(s),f),g&&(f=Ar(f,h|v|y,vO));for(var _=u.length;_--;)Jf(f,u[_]);return f});function $k(s,u){return l1(s,ju(qe(u)))}var xk=Ro(function(s,u){return s==null?{}:Z3(s,u)});function l1(s,u){if(s==null)return{};var f=zt(sp(s),function(g){return[g]});return u=qe(u),Z0(s,f,function(g,_){return u(g,_[0])})}function Tk(s,u,f){u=os(u,s);var g=-1,_=u.length;for(_||(_=1,s=n);++g<_;){var A=s==null?n:s[yo(u[g])];A===n&&(g=_,A=f),s=Fo(A)?A.call(s):A}return s}function Ck(s,u,f){return s==null?s:Tl(s,u,f)}function Ok(s,u,f,g){return g=typeof g=="function"?g:n,s==null?s:Tl(s,u,f,g)}var a1=by(mn),u1=by(Jn);function Ak(s,u,f){var g=tt(s),_=g||is(s)||Li(s);if(u=qe(u,4),f==null){var A=s&&s.constructor;_?f=g?new A:[]:Gt(s)?f=Fo(A)?ki(mu(s)):{}:f={}}return(_?Tr:go)(s,function(N,D,K){return u(f,N,D,K)}),f}function kk(s,u){return s==null?!0:Jf(s,u)}function Ik(s,u,f){return s==null?s:ry(s,u,ep(f))}function Pk(s,u,f,g){return g=typeof g=="function"?g:n,s==null?s:ry(s,u,ep(f),g)}function Fi(s){return s==null?[]:Pf(s,mn(s))}function Rk(s){return s==null?[]:Pf(s,Jn(s))}function Lk(s,u,f){return f===n&&(f=u,u=n),f!==n&&(f=Pr(f),f=f===f?f:0),u!==n&&(u=Pr(u),u=u===u?u:0),Fs(Pr(s),u,f)}function Fk(s,u,f){return u=No(u),f===n?(f=u,u=0):f=No(f),s=Pr(s),j3(s,u,f)}function Nk(s,u,f){if(f&&typeof f!="boolean"&&zn(s,u,f)&&(u=f=n),f===n&&(typeof u=="boolean"?(f=u,u=n):typeof s=="boolean"&&(f=s,s=n)),s===n&&u===n?(s=0,u=1):(s=No(s),u===n?(u=s,s=0):u=No(u)),s>u){var g=s;s=u,u=g}if(f||s%1||u%1){var _=R0();return Rn(s+_*(u-s+h5("1e-"+((_+"").length-1))),u)}return Gf(s,u)}var Mk=Pi(function(s,u,f){return u=u.toLowerCase(),s+(f?c1(u):u)});function c1(s){return wp(At(s).toLowerCase())}function d1(s){return s=At(s),s&&s.replace(UC,C5).replace(o5,"")}function Dk(s,u,f){s=At(s),u=fr(u);var g=s.length;f=f===n?g:Fs(it(f),0,g);var _=f;return f-=u.length,f>=0&&s.slice(f,_)==u}function Uk(s){return s=At(s),s&&_C.test(s)?s.replace(Vv,O5):s}function Bk(s){return s=At(s),s&&xC.test(s)?s.replace(gf,"\\$&"):s}var jk=Pi(function(s,u,f){return s+(f?"-":"")+u.toLowerCase()}),Vk=Pi(function(s,u,f){return s+(f?" ":"")+u.toLowerCase()}),Hk=hy("toLowerCase");function zk(s,u,f){s=At(s),u=it(u);var g=u?xi(s):0;if(!u||g>=u)return s;var _=(u-g)/2;return Pu(_u(_),f)+s+Pu(yu(_),f)}function Wk(s,u,f){s=At(s),u=it(u);var g=u?xi(s):0;return u&&g<u?s+Pu(u-g,f):s}function qk(s,u,f){s=At(s),u=it(u);var g=u?xi(s):0;return u&&g<u?Pu(u-g,f)+s:s}function Kk(s,u,f){return f||u==null?u=0:u&&(u=+u),e3(At(s).replace(vf,""),u||0)}function Gk(s,u,f){return(f?zn(s,u,f):u===n)?u=1:u=it(u),Xf(At(s),u)}function Xk(){var s=arguments,u=At(s[0]);return s.length<3?u:u.replace(s[1],s[2])}var Yk=Pi(function(s,u,f){return s+(f?"_":"")+u.toLowerCase()});function Jk(s,u,f){return f&&typeof f!="number"&&zn(s,u,f)&&(u=f=n),f=f===n?De:f>>>0,f?(s=At(s),s&&(typeof u=="string"||u!=null&&!yp(u))&&(u=fr(u),!u&&$i(s))?ss(Gr(s),0,f):s.split(u,f)):[]}var Zk=Pi(function(s,u,f){return s+(f?" ":"")+wp(u)});function Qk(s,u,f){return s=At(s),f=f==null?0:Fs(it(f),0,s.length),u=fr(u),s.slice(f,f+u.length)==u}function eI(s,u,f){var g=x.templateSettings;f&&zn(s,u,f)&&(u=n),s=At(s),u=zu({},u,g,wy);var _=zu({},u.imports,g.imports,wy),A=mn(_),N=Pf(_,A),D,K,se=0,ie=u.interpolate||ru,pe="__p += '",Ae=Lf((u.escape||ru).source+"|"+ie.source+"|"+(ie===Hv?RC:ru).source+"|"+(u.evaluate||ru).source+"|$","g"),Ue="//# sourceURL="+(It.call(u,"sourceURL")?(u.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++u5+"]")+`30 `;s.replace(Ae,function(Ge,mt,_t, hr,Wn,mr){return _t||(_t=hr),pe+=s.slice(se,mr).replace(BC,A5),mt&&(D=!0,pe+=`' +29 `)}function TO(s){return tt(s)||Us(s)||!!(k0&&s&&s[k0])}function Fo(s,u){var f=typeof s;return u=u??Ie,!!u&&(f=="number"||f!="symbol"&&DC.test(s))&&s>-1&&s%1==0&&s<u}function zn(s,u,f){if(!Gt(f))return!1;var g=typeof u;return(g=="number"?Jn(f)&&Fo(u,f.length):g=="string"&&u in f)?Jr(f[u],s):!1}function cp(s,u){if(tt(s))return!1;var f=typeof s;return f=="number"||f=="symbol"||f=="boolean"||s==null||hr(s)?!0:EC.test(s)||!SC.test(s)||u!=null&&s in Rt(u)}function CO(s){var u=typeof s;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?s!=="__proto__":s===null}function dp(s){var u=Lu(s),f=x[u];if(typeof f!="function"||!(u in vt.prototype))return!1;if(s===f)return!0;var g=lp(f);return!!g&&s===g[0]}function OO(s){return!!T0&&T0 in s}var AO=cu?No:Op;function Ol(s){var u=s&&s.constructor,f=typeof u=="function"&&u.prototype||Ci;return s===f}function Ty(s){return s===s&&!Gt(s)}function Cy(s,u){return function(f){return f==null?!1:f[s]===u&&(u!==n||s in Rt(f))}}function kO(s){var u=Bu(s,function(g){return f.size===d&&f.clear(),g}),f=u.cache;return u}function IO(s,u){var f=s[1],g=u[1],_=f|g,A=_<(T|C|R),N=g==R&&f==E||g==R&&f==k&&s[7].length<=u[8]||g==(R|k)&&u[7].length<=u[8]&&f==E;if(!(A||N))return s;g&T&&(s[2]=u[2],_|=f&T?0:w);var D=u[3];if(D){var K=s[3];s[3]=K?uy(K,D,u[4]):D,s[4]=K?es(s[3],p):u[4]}return D=u[5],D&&(K=s[5],s[5]=K?cy(K,D,u[6]):D,s[6]=K?es(s[5],p):u[6]),D=u[7],D&&(s[7]=D),g&R&&(s[8]=s[8]==null?u[8]:Rn(s[8],u[8])),s[9]==null&&(s[9]=u[9]),s[0]=u[0],s[1]=_,s}function PO(s){var u=[];if(s!=null)for(var f in Rt(s))u.push(f);return u}function RO(s){return fu.call(s)}function Oy(s,u,f){return u=cn(u===n?s.length-1:u,0),function(){for(var g=arguments,_=-1,A=cn(g.length-u,0),N=J(A);++_<A;)N[_]=g[u+_];_=-1;for(var D=J(u+1);++_<u;)D[_]=g[_];return D[u]=f(N),dr(s,this,D)}}function Ay(s,u){return u.length<2?s:Ns(s,Ir(u,0,-1))}function LO(s,u){for(var f=s.length,g=Rn(u.length,f),_=Yn(s);g--;){var A=u[g];s[g]=Fo(A,f)?_[A]:n}return s}function fp(s,u){if(!(u==="constructor"&&typeof s[u]=="function")&&u!="__proto__")return s[u]}var ky=Py(Q0),Al=X5||function(s,u){return En.setTimeout(s,u)},pp=Py(rO);function Iy(s,u,f){var g=u+"";return pp(s,xO(g,FO(SO(g),f)))}function Py(s){var u=0,f=0;return function(){var g=Q5(),_=X-(g-f);if(f=g,_>0){if(++u>=G)return arguments[0]}else u=0;return s.apply(n,arguments)}}function Nu(s,u){var f=-1,g=s.length,_=g-1;for(u=u===n?g:u;++f<u;){var A=Xf(f,_),N=s[A];s[A]=s[f],s[f]=N}return s.length=u,s}var Ry=kO(function(s){var u=[];return s.charCodeAt(0)===46&&u.push(""),s.replace($C,function(f,g,_,A){u.push(_?A.replace(PC,"$1"):g||f)}),u});function _o(s){if(typeof s=="string"||hr(s))return s;var u=s+"";return u=="0"&&1/s==-ke?"-0":u}function Ds(s){if(s!=null){try{return du.call(s)}catch{}try{return s+""}catch{}}return""}function FO(s,u){return Cr(ce,function(f){var g="_."+f[0];u&f[1]&&!iu(s,g)&&s.push(g)}),s.sort()}function Ly(s){if(s instanceof vt)return s.clone();var u=new Ar(s.__wrapped__,s.__chain__);return u.__actions__=Yn(s.__actions__),u.__index__=s.__index__,u.__values__=s.__values__,u}function NO(s,u,f){(f?zn(s,u,f):u===n)?u=1:u=cn(it(u),0);var g=s==null?0:s.length;if(!g||u<1)return[];for(var _=0,A=0,N=J(yu(g/u));_<g;)N[A++]=Ir(s,_,_+=u);return N}function MO(s){for(var u=-1,f=s==null?0:s.length,g=0,_=[];++u<f;){var A=s[u];A&&(_[g++]=A)}return _}function DO(){var s=arguments.length;if(!s)return[];for(var u=J(s-1),f=arguments[0],g=s;g--;)u[g-1]=arguments[g];return Qo(tt(f)?Yn(f):[f],$n(u,1))}var UO=ct(function(s,u){return tn(s)?El(s,$n(u,1,tn,!0)):[]}),BO=ct(function(s,u){var f=Pr(u);return tn(f)&&(f=n),tn(s)?El(s,$n(u,1,tn,!0),qe(f,2)):[]}),jO=ct(function(s,u){var f=Pr(u);return tn(f)&&(f=n),tn(s)?El(s,$n(u,1,tn,!0),n,f):[]});function VO(s,u,f){var g=s==null?0:s.length;return g?(u=f||u===n?1:it(u),Ir(s,u<0?0:u,g)):[]}function HO(s,u,f){var g=s==null?0:s.length;return g?(u=f||u===n?1:it(u),u=g-u,Ir(s,0,u<0?0:u)):[]}function zO(s,u){return s&&s.length?Ou(s,qe(u,3),!0,!0):[]}function WO(s,u){return s&&s.length?Ou(s,qe(u,3),!0):[]}function qO(s,u,f,g){var _=s==null?0:s.length;return _?(f&&typeof f!="number"&&zn(s,u,f)&&(f=0,g=_),D3(s,u,f,g)):[]}function Fy(s,u,f){var g=s==null?0:s.length;if(!g)return-1;var _=f==null?0:it(f);return _<0&&(_=cn(g+_,0)),lu(s,qe(u,3),_)}function Ny(s,u,f){var g=s==null?0:s.length;if(!g)return-1;var _=g-1;return f!==n&&(_=it(f),_=f<0?cn(g+_,0):Rn(_,g-1)),lu(s,qe(u,3),_,!0)}function My(s){var u=s==null?0:s.length;return u?$n(s,1):[]}function KO(s){var u=s==null?0:s.length;return u?$n(s,ke):[]}function GO(s,u){var f=s==null?0:s.length;return f?(u=u===n?1:it(u),$n(s,u)):[]}function XO(s){for(var u=-1,f=s==null?0:s.length,g={};++u<f;){var _=s[u];g[_[0]]=_[1]}return g}function Dy(s){return s&&s.length?s[0]:n}function YO(s,u,f){var g=s==null?0:s.length;if(!g)return-1;var _=f==null?0:it(f);return _<0&&(_=cn(g+_,0)),Ei(s,u,_)}function JO(s){var u=s==null?0:s.length;return u?Ir(s,0,-1):[]}var ZO=ct(function(s){var u=zt(s,ep);return u.length&&u[0]===s[0]?zf(u):[]}),QO=ct(function(s){var u=Pr(s),f=zt(s,ep);return u===Pr(f)?u=n:f.pop(),f.length&&f[0]===s[0]?zf(f,qe(u,2)):[]}),e4=ct(function(s){var u=Pr(s),f=zt(s,ep);return u=typeof u=="function"?u:n,u&&f.pop(),f.length&&f[0]===s[0]?zf(f,n,u):[]});function t4(s,u){return s==null?"":J5.call(s,u)}function Pr(s){var u=s==null?0:s.length;return u?s[u-1]:n}function n4(s,u,f){var g=s==null?0:s.length;if(!g)return-1;var _=g;return f!==n&&(_=it(f),_=_<0?cn(g+_,0):Rn(_,g-1)),u===u?F5(s,u,_):lu(s,y0,_,!0)}function r4(s,u){return s&&s.length?X0(s,it(u)):n}var o4=ct(Uy);function Uy(s,u){return s&&s.length&&u&&u.length?Gf(s,u):s}function s4(s,u,f){return s&&s.length&&u&&u.length?Gf(s,u,qe(f,2)):s}function i4(s,u,f){return s&&s.length&&u&&u.length?Gf(s,u,n,f):s}var l4=Lo(function(s,u){var f=s==null?0:s.length,g=Bf(s,u);return Z0(s,zt(u,function(_){return Fo(_,f)?+_:_}).sort(ay)),g});function a4(s,u){var f=[];if(!(s&&s.length))return f;var g=-1,_=[],A=s.length;for(u=qe(u,3);++g<A;){var N=s[g];u(N,g,s)&&(f.push(N),_.push(g))}return Z0(s,_),f}function hp(s){return s==null?s:t3.call(s)}function u4(s,u,f){var g=s==null?0:s.length;return g?(f&&typeof f!="number"&&zn(s,u,f)?(u=0,f=g):(u=u==null?0:it(u),f=f===n?g:it(f)),Ir(s,u,f)):[]}function c4(s,u){return Cu(s,u)}function d4(s,u,f){return Jf(s,u,qe(f,2))}function f4(s,u){var f=s==null?0:s.length;if(f){var g=Cu(s,u);if(g<f&&Jr(s[g],u))return g}return-1}function p4(s,u){return Cu(s,u,!0)}function h4(s,u,f){return Jf(s,u,qe(f,2),!0)}function m4(s,u){var f=s==null?0:s.length;if(f){var g=Cu(s,u,!0)-1;if(Jr(s[g],u))return g}return-1}function g4(s){return s&&s.length?ey(s):[]}function v4(s,u){return s&&s.length?ey(s,qe(u,2)):[]}function y4(s){var u=s==null?0:s.length;return u?Ir(s,1,u):[]}function _4(s,u,f){return s&&s.length?(u=f||u===n?1:it(u),Ir(s,0,u<0?0:u)):[]}function b4(s,u,f){var g=s==null?0:s.length;return g?(u=f||u===n?1:it(u),u=g-u,Ir(s,u<0?0:u,g)):[]}function w4(s,u){return s&&s.length?Ou(s,qe(u,3),!1,!0):[]}function S4(s,u){return s&&s.length?Ou(s,qe(u,3)):[]}var E4=ct(function(s){return rs($n(s,1,tn,!0))}),$4=ct(function(s){var u=Pr(s);return tn(u)&&(u=n),rs($n(s,1,tn,!0),qe(u,2))}),x4=ct(function(s){var u=Pr(s);return u=typeof u=="function"?u:n,rs($n(s,1,tn,!0),n,u)});function T4(s){return s&&s.length?rs(s):[]}function C4(s,u){return s&&s.length?rs(s,qe(u,2)):[]}function O4(s,u){return u=typeof u=="function"?u:n,s&&s.length?rs(s,n,u):[]}function mp(s){if(!(s&&s.length))return[];var u=0;return s=Zo(s,function(f){if(tn(f))return u=cn(f.length,u),!0}),Pf(u,function(f){return zt(s,Af(f))})}function By(s,u){if(!(s&&s.length))return[];var f=mp(s);return u==null?f:zt(f,function(g){return dr(u,n,g)})}var A4=ct(function(s,u){return tn(s)?El(s,u):[]}),k4=ct(function(s){return Qf(Zo(s,tn))}),I4=ct(function(s){var u=Pr(s);return tn(u)&&(u=n),Qf(Zo(s,tn),qe(u,2))}),P4=ct(function(s){var u=Pr(s);return u=typeof u=="function"?u:n,Qf(Zo(s,tn),n,u)}),R4=ct(mp);function L4(s,u){return oy(s||[],u||[],Sl)}function F4(s,u){return oy(s||[],u||[],Tl)}var N4=ct(function(s){var u=s.length,f=u>1?s[u-1]:n;return f=typeof f=="function"?(s.pop(),f):n,By(s,f)});function jy(s){var u=x(s);return u.__chain__=!0,u}function M4(s,u){return u(s),s}function Mu(s,u){return u(s)}var D4=Lo(function(s){var u=s.length,f=u?s[0]:0,g=this.__wrapped__,_=function(A){return Bf(A,s)};return u>1||this.__actions__.length||!(g instanceof vt)||!Fo(f)?this.thru(_):(g=g.slice(f,+f+(u?1:0)),g.__actions__.push({func:Mu,args:[_],thisArg:n}),new Ar(g,this.__chain__).thru(function(A){return u&&!A.length&&A.push(n),A}))});function U4(){return jy(this)}function B4(){return new Ar(this.value(),this.__chain__)}function j4(){this.__values__===n&&(this.__values__=t_(this.value()));var s=this.__index__>=this.__values__.length,u=s?n:this.__values__[this.__index__++];return{done:s,value:u}}function V4(){return this}function H4(s){for(var u,f=this;f instanceof Su;){var g=Ly(f);g.__index__=0,g.__values__=n,u?_.__wrapped__=g:u=g;var _=g;f=f.__wrapped__}return _.__wrapped__=s,u}function z4(){var s=this.__wrapped__;if(s instanceof vt){var u=s;return this.__actions__.length&&(u=new vt(this)),u=u.reverse(),u.__actions__.push({func:Mu,args:[hp],thisArg:n}),new Ar(u,this.__chain__)}return this.thru(hp)}function W4(){return ry(this.__wrapped__,this.__actions__)}var q4=Au(function(s,u,f){It.call(s,f)?++s[f]:Po(s,f,1)});function K4(s,u,f){var g=tt(s)?g0:M3;return f&&zn(s,u,f)&&(u=n),g(s,qe(u,3))}function G4(s,u){var f=tt(s)?Zo:B0;return f(s,qe(u,3))}var X4=hy(Fy),Y4=hy(Ny);function J4(s,u){return $n(Du(s,u),1)}function Z4(s,u){return $n(Du(s,u),ke)}function Q4(s,u,f){return f=f===n?1:it(f),$n(Du(s,u),f)}function Vy(s,u){var f=tt(s)?Cr:ns;return f(s,qe(u,3))}function Hy(s,u){var f=tt(s)?y5:U0;return f(s,qe(u,3))}var eA=Au(function(s,u,f){It.call(s,f)?s[f].push(u):Po(s,f,[u])});function tA(s,u,f,g){s=Jn(s)?s:Fi(s),f=f&&!g?it(f):0;var _=s.length;return f<0&&(f=cn(_+f,0)),Hu(s)?f<=_&&s.indexOf(u,f)>-1:!!_&&Ei(s,u,f)>-1}var nA=ct(function(s,u,f){var g=-1,_=typeof u=="function",A=Jn(s)?J(s.length):[];return ns(s,function(N){A[++g]=_?dr(u,N,f):$l(N,u,f)}),A}),rA=Au(function(s,u,f){Po(s,f,u)});function Du(s,u){var f=tt(s)?zt:q0;return f(s,qe(u,3))}function oA(s,u,f,g){return s==null?[]:(tt(u)||(u=u==null?[]:[u]),f=g?n:f,tt(f)||(f=f==null?[]:[f]),Y0(s,u,f))}var sA=Au(function(s,u,f){s[f?0:1].push(u)},function(){return[[],[]]});function iA(s,u,f){var g=tt(s)?Cf:b0,_=arguments.length<3;return g(s,qe(u,4),f,_,ns)}function lA(s,u,f){var g=tt(s)?_5:b0,_=arguments.length<3;return g(s,qe(u,4),f,_,U0)}function aA(s,u){var f=tt(s)?Zo:B0;return f(s,ju(qe(u,3)))}function uA(s){var u=tt(s)?F0:tO;return u(s)}function cA(s,u,f){(f?zn(s,u,f):u===n)?u=1:u=it(u);var g=tt(s)?P3:nO;return g(s,u)}function dA(s){var u=tt(s)?R3:oO;return u(s)}function fA(s){if(s==null)return 0;if(Jn(s))return Hu(s)?xi(s):s.length;var u=Ln(s);return u==Z||u==ae?s.size:qf(s).length}function pA(s,u,f){var g=tt(s)?Of:sO;return f&&zn(s,u,f)&&(u=n),g(s,qe(u,3))}var hA=ct(function(s,u){if(s==null)return[];var f=u.length;return f>1&&zn(s,u[0],u[1])?u=[]:f>2&&zn(u[0],u[1],u[2])&&(u=[u[0]]),Y0(s,$n(u,1),[])}),Uu=G5||function(){return En.Date.now()};function mA(s,u){if(typeof u!="function")throw new Or(l);return s=it(s),function(){if(--s<1)return u.apply(this,arguments)}}function zy(s,u,f){return u=f?n:u,u=s&&u==null?s.length:u,Ro(s,R,n,n,n,n,u)}function Wy(s,u){var f;if(typeof u!="function")throw new Or(l);return s=it(s),function(){return--s>0&&(f=u.apply(this,arguments)),s<=1&&(u=n),f}}var gp=ct(function(s,u,f){var g=T;if(f.length){var _=es(f,Ri(gp));g|=$}return Ro(s,g,u,f,_)}),qy=ct(function(s,u,f){var g=T|C;if(f.length){var _=es(f,Ri(qy));g|=$}return Ro(u,g,s,f,_)});function Ky(s,u,f){u=f?n:u;var g=Ro(s,E,n,n,n,n,n,u);return g.placeholder=Ky.placeholder,g}function Gy(s,u,f){u=f?n:u;var g=Ro(s,O,n,n,n,n,n,u);return g.placeholder=Gy.placeholder,g}function Xy(s,u,f){var g,_,A,N,D,K,se=0,ie=!1,pe=!1,Ae=!0;if(typeof s!="function")throw new Or(l);u=Rr(u)||0,Gt(f)&&(ie=!!f.leading,pe="maxWait"in f,A=pe?cn(Rr(f.maxWait)||0,u):A,Ae="trailing"in f?!!f.trailing:Ae);function Ue(nn){var Zr=g,Do=_;return g=_=n,se=nn,N=s.apply(Do,Zr),N}function Ke(nn){return se=nn,D=Al(mt,u),ie?Ue(nn):N}function lt(nn){var Zr=nn-K,Do=nn-se,h_=u-Zr;return pe?Rn(h_,A-Do):h_}function Ge(nn){var Zr=nn-K,Do=nn-se;return K===n||Zr>=u||Zr<0||pe&&Do>=A}function mt(){var nn=Uu();if(Ge(nn))return _t(nn);D=Al(mt,lt(nn))}function _t(nn){return D=n,Ae&&g?Ue(nn):(g=_=n,N)}function mr(){D!==n&&sy(D),se=0,g=K=_=D=n}function Wn(){return D===n?N:_t(Uu())}function gr(){var nn=Uu(),Zr=Ge(nn);if(g=arguments,_=this,K=nn,Zr){if(D===n)return Ke(K);if(pe)return sy(D),D=Al(mt,u),Ue(K)}return D===n&&(D=Al(mt,u)),N}return gr.cancel=mr,gr.flush=Wn,gr}var gA=ct(function(s,u){return D0(s,1,u)}),vA=ct(function(s,u,f){return D0(s,Rr(u)||0,f)});function yA(s){return Ro(s,W)}function Bu(s,u){if(typeof s!="function"||u!=null&&typeof u!="function")throw new Or(l);var f=function(){var g=arguments,_=u?u.apply(this,g):g[0],A=f.cache;if(A.has(_))return A.get(_);var N=s.apply(this,g);return f.cache=A.set(_,N)||A,N};return f.cache=new(Bu.Cache||Io),f}Bu.Cache=Io;function ju(s){if(typeof s!="function")throw new Or(l);return function(){var u=arguments;switch(u.length){case 0:return!s.call(this);case 1:return!s.call(this,u[0]);case 2:return!s.call(this,u[0],u[1]);case 3:return!s.call(this,u[0],u[1],u[2])}return!s.apply(this,u)}}function _A(s){return Wy(2,s)}var bA=iO(function(s,u){u=u.length==1&&tt(u[0])?zt(u[0],fr(qe())):zt($n(u,1),fr(qe()));var f=u.length;return ct(function(g){for(var _=-1,A=Rn(g.length,f);++_<A;)g[_]=u[_].call(this,g[_]);return dr(s,this,g)})}),vp=ct(function(s,u){var f=es(u,Ri(vp));return Ro(s,$,n,u,f)}),Yy=ct(function(s,u){var f=es(u,Ri(Yy));return Ro(s,P,n,u,f)}),wA=Lo(function(s,u){return Ro(s,k,n,n,n,u)});function SA(s,u){if(typeof s!="function")throw new Or(l);return u=u===n?u:it(u),ct(s,u)}function EA(s,u){if(typeof s!="function")throw new Or(l);return u=u==null?0:cn(it(u),0),ct(function(f){var g=f[u],_=ss(f,0,u);return g&&Qo(_,g),dr(s,this,_)})}function $A(s,u,f){var g=!0,_=!0;if(typeof s!="function")throw new Or(l);return Gt(f)&&(g="leading"in f?!!f.leading:g,_="trailing"in f?!!f.trailing:_),Xy(s,u,{leading:g,maxWait:u,trailing:_})}function xA(s){return zy(s,1)}function TA(s,u){return vp(tp(u),s)}function CA(){if(!arguments.length)return[];var s=arguments[0];return tt(s)?s:[s]}function OA(s){return kr(s,y)}function AA(s,u){return u=typeof u=="function"?u:n,kr(s,y,u)}function kA(s){return kr(s,h|y)}function IA(s,u){return u=typeof u=="function"?u:n,kr(s,h|y,u)}function PA(s,u){return u==null||M0(s,u,mn(u))}function Jr(s,u){return s===u||s!==s&&u!==u}var RA=Ru(Hf),LA=Ru(function(s,u){return s>=u}),Us=H0(function(){return arguments}())?H0:function(s){return Yt(s)&&It.call(s,"callee")&&!A0.call(s,"callee")},tt=J.isArray,FA=c0?fr(c0):H3;function Jn(s){return s!=null&&Vu(s.length)&&!No(s)}function tn(s){return Yt(s)&&Jn(s)}function NA(s){return s===!0||s===!1||Yt(s)&&Hn(s)==Ve}var is=Y5||Op,MA=d0?fr(d0):z3;function DA(s){return Yt(s)&&s.nodeType===1&&!kl(s)}function UA(s){if(s==null)return!0;if(Jn(s)&&(tt(s)||typeof s=="string"||typeof s.splice=="function"||is(s)||Li(s)||Us(s)))return!s.length;var u=Ln(s);if(u==Z||u==ae)return!s.size;if(Ol(s))return!qf(s).length;for(var f in s)if(It.call(s,f))return!1;return!0}function BA(s,u){return xl(s,u)}function jA(s,u,f){f=typeof f=="function"?f:n;var g=f?f(s,u):n;return g===n?xl(s,u,n,f):!!g}function yp(s){if(!Yt(s))return!1;var u=Hn(s);return u==an||u==wn||typeof s.message=="string"&&typeof s.name=="string"&&!kl(s)}function VA(s){return typeof s=="number"&&I0(s)}function No(s){if(!Gt(s))return!1;var u=Hn(s);return u==M||u==V||u==We||u==we}function Jy(s){return typeof s=="number"&&s==it(s)}function Vu(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=Ie}function Gt(s){var u=typeof s;return s!=null&&(u=="object"||u=="function")}function Yt(s){return s!=null&&typeof s=="object"}var Zy=f0?fr(f0):q3;function HA(s,u){return s===u||Wf(s,u,ap(u))}function zA(s,u,f){return f=typeof f=="function"?f:n,Wf(s,u,ap(u),f)}function WA(s){return Qy(s)&&s!=+s}function qA(s){if(AO(s))throw new et(i);return z0(s)}function KA(s){return s===null}function GA(s){return s==null}function Qy(s){return typeof s=="number"||Yt(s)&&Hn(s)==ue}function kl(s){if(!Yt(s)||Hn(s)!=ye)return!1;var u=mu(s);if(u===null)return!0;var f=It.call(u,"constructor")&&u.constructor;return typeof f=="function"&&f instanceof f&&du.call(f)==z5}var _p=p0?fr(p0):K3;function XA(s){return Jy(s)&&s>=-Ie&&s<=Ie}var e_=h0?fr(h0):G3;function Hu(s){return typeof s=="string"||!tt(s)&&Yt(s)&&Hn(s)==Fe}function hr(s){return typeof s=="symbol"||Yt(s)&&Hn(s)==Pe}var Li=m0?fr(m0):X3;function YA(s){return s===n}function JA(s){return Yt(s)&&Ln(s)==ze}function ZA(s){return Yt(s)&&Hn(s)==st}var QA=Ru(Kf),ek=Ru(function(s,u){return s<=u});function t_(s){if(!s)return[];if(Jn(s))return Hu(s)?Xr(s):Yn(s);if(vl&&s[vl])return P5(s[vl]());var u=Ln(s),f=u==Z?Lf:u==ae?au:Fi;return f(s)}function Mo(s){if(!s)return s===0?s:0;if(s=Rr(s),s===ke||s===-ke){var u=s<0?-1:1;return u*Qe}return s===s?s:0}function it(s){var u=Mo(s),f=u%1;return u===u?f?u-f:u:0}function n_(s){return s?Fs(it(s),0,De):0}function Rr(s){if(typeof s=="number")return s;if(hr(s))return ht;if(Gt(s)){var u=typeof s.valueOf=="function"?s.valueOf():s;s=Gt(u)?u+"":u}if(typeof s!="string")return s===0?s:+s;s=w0(s);var f=FC.test(s);return f||MC.test(s)?m5(s.slice(2),f?2:8):LC.test(s)?ht:+s}function r_(s){return yo(s,Zn(s))}function tk(s){return s?Fs(it(s),-Ie,Ie):s===0?s:0}function At(s){return s==null?"":pr(s)}var nk=Ii(function(s,u){if(Ol(u)||Jn(u)){yo(u,mn(u),s);return}for(var f in u)It.call(u,f)&&Sl(s,f,u[f])}),o_=Ii(function(s,u){yo(u,Zn(u),s)}),zu=Ii(function(s,u,f,g){yo(u,Zn(u),s,g)}),rk=Ii(function(s,u,f,g){yo(u,mn(u),s,g)}),ok=Lo(Bf);function sk(s,u){var f=ki(s);return u==null?f:N0(f,u)}var ik=ct(function(s,u){s=Rt(s);var f=-1,g=u.length,_=g>2?u[2]:n;for(_&&zn(u[0],u[1],_)&&(g=1);++f<g;)for(var A=u[f],N=Zn(A),D=-1,K=N.length;++D<K;){var se=N[D],ie=s[se];(ie===n||Jr(ie,Ci[se])&&!It.call(s,se))&&(s[se]=A[se])}return s}),lk=ct(function(s){return s.push(n,wy),dr(s_,n,s)});function ak(s,u){return v0(s,qe(u,3),vo)}function uk(s,u){return v0(s,qe(u,3),Vf)}function ck(s,u){return s==null?s:jf(s,qe(u,3),Zn)}function dk(s,u){return s==null?s:j0(s,qe(u,3),Zn)}function fk(s,u){return s&&vo(s,qe(u,3))}function pk(s,u){return s&&Vf(s,qe(u,3))}function hk(s){return s==null?[]:xu(s,mn(s))}function mk(s){return s==null?[]:xu(s,Zn(s))}function bp(s,u,f){var g=s==null?n:Ns(s,u);return g===n?f:g}function gk(s,u){return s!=null&&$y(s,u,U3)}function wp(s,u){return s!=null&&$y(s,u,B3)}var vk=gy(function(s,u,f){u!=null&&typeof u.toString!="function"&&(u=fu.call(u)),s[u]=f},Ep(Qn)),yk=gy(function(s,u,f){u!=null&&typeof u.toString!="function"&&(u=fu.call(u)),It.call(s,u)?s[u].push(f):s[u]=[f]},qe),_k=ct($l);function mn(s){return Jn(s)?L0(s):qf(s)}function Zn(s){return Jn(s)?L0(s,!0):Y3(s)}function bk(s,u){var f={};return u=qe(u,3),vo(s,function(g,_,A){Po(f,u(g,_,A),g)}),f}function wk(s,u){var f={};return u=qe(u,3),vo(s,function(g,_,A){Po(f,_,u(g,_,A))}),f}var Sk=Ii(function(s,u,f){Tu(s,u,f)}),s_=Ii(function(s,u,f,g){Tu(s,u,f,g)}),Ek=Lo(function(s,u){var f={};if(s==null)return f;var g=!1;u=zt(u,function(A){return A=os(A,s),g||(g=A.length>1),A}),yo(s,ip(s),f),g&&(f=kr(f,h|v|y,vO));for(var _=u.length;_--;)Zf(f,u[_]);return f});function $k(s,u){return i_(s,ju(qe(u)))}var xk=Lo(function(s,u){return s==null?{}:Z3(s,u)});function i_(s,u){if(s==null)return{};var f=zt(ip(s),function(g){return[g]});return u=qe(u),J0(s,f,function(g,_){return u(g,_[0])})}function Tk(s,u,f){u=os(u,s);var g=-1,_=u.length;for(_||(_=1,s=n);++g<_;){var A=s==null?n:s[_o(u[g])];A===n&&(g=_,A=f),s=No(A)?A.call(s):A}return s}function Ck(s,u,f){return s==null?s:Tl(s,u,f)}function Ok(s,u,f,g){return g=typeof g=="function"?g:n,s==null?s:Tl(s,u,f,g)}var l_=_y(mn),a_=_y(Zn);function Ak(s,u,f){var g=tt(s),_=g||is(s)||Li(s);if(u=qe(u,4),f==null){var A=s&&s.constructor;_?f=g?new A:[]:Gt(s)?f=No(A)?ki(mu(s)):{}:f={}}return(_?Cr:vo)(s,function(N,D,K){return u(f,N,D,K)}),f}function kk(s,u){return s==null?!0:Zf(s,u)}function Ik(s,u,f){return s==null?s:ny(s,u,tp(f))}function Pk(s,u,f,g){return g=typeof g=="function"?g:n,s==null?s:ny(s,u,tp(f),g)}function Fi(s){return s==null?[]:Rf(s,mn(s))}function Rk(s){return s==null?[]:Rf(s,Zn(s))}function Lk(s,u,f){return f===n&&(f=u,u=n),f!==n&&(f=Rr(f),f=f===f?f:0),u!==n&&(u=Rr(u),u=u===u?u:0),Fs(Rr(s),u,f)}function Fk(s,u,f){return u=Mo(u),f===n?(f=u,u=0):f=Mo(f),s=Rr(s),j3(s,u,f)}function Nk(s,u,f){if(f&&typeof f!="boolean"&&zn(s,u,f)&&(u=f=n),f===n&&(typeof u=="boolean"?(f=u,u=n):typeof s=="boolean"&&(f=s,s=n)),s===n&&u===n?(s=0,u=1):(s=Mo(s),u===n?(u=s,s=0):u=Mo(u)),s>u){var g=s;s=u,u=g}if(f||s%1||u%1){var _=P0();return Rn(s+_*(u-s+h5("1e-"+((_+"").length-1))),u)}return Xf(s,u)}var Mk=Pi(function(s,u,f){return u=u.toLowerCase(),s+(f?u_(u):u)});function u_(s){return Sp(At(s).toLowerCase())}function c_(s){return s=At(s),s&&s.replace(UC,C5).replace(o5,"")}function Dk(s,u,f){s=At(s),u=pr(u);var g=s.length;f=f===n?g:Fs(it(f),0,g);var _=f;return f-=u.length,f>=0&&s.slice(f,_)==u}function Uk(s){return s=At(s),s&&_C.test(s)?s.replace(jv,O5):s}function Bk(s){return s=At(s),s&&xC.test(s)?s.replace(vf,"\\$&"):s}var jk=Pi(function(s,u,f){return s+(f?"-":"")+u.toLowerCase()}),Vk=Pi(function(s,u,f){return s+(f?" ":"")+u.toLowerCase()}),Hk=py("toLowerCase");function zk(s,u,f){s=At(s),u=it(u);var g=u?xi(s):0;if(!u||g>=u)return s;var _=(u-g)/2;return Pu(_u(_),f)+s+Pu(yu(_),f)}function Wk(s,u,f){s=At(s),u=it(u);var g=u?xi(s):0;return u&&g<u?s+Pu(u-g,f):s}function qk(s,u,f){s=At(s),u=it(u);var g=u?xi(s):0;return u&&g<u?Pu(u-g,f)+s:s}function Kk(s,u,f){return f||u==null?u=0:u&&(u=+u),e3(At(s).replace(yf,""),u||0)}function Gk(s,u,f){return(f?zn(s,u,f):u===n)?u=1:u=it(u),Yf(At(s),u)}function Xk(){var s=arguments,u=At(s[0]);return s.length<3?u:u.replace(s[1],s[2])}var Yk=Pi(function(s,u,f){return s+(f?"_":"")+u.toLowerCase()});function Jk(s,u,f){return f&&typeof f!="number"&&zn(s,u,f)&&(u=f=n),f=f===n?De:f>>>0,f?(s=At(s),s&&(typeof u=="string"||u!=null&&!_p(u))&&(u=pr(u),!u&&$i(s))?ss(Xr(s),0,f):s.split(u,f)):[]}var Zk=Pi(function(s,u,f){return s+(f?" ":"")+Sp(u)});function Qk(s,u,f){return s=At(s),f=f==null?0:Fs(it(f),0,s.length),u=pr(u),s.slice(f,f+u.length)==u}function eI(s,u,f){var g=x.templateSettings;f&&zn(s,u,f)&&(u=n),s=At(s),u=zu({},u,g,by);var _=zu({},u.imports,g.imports,by),A=mn(_),N=Rf(_,A),D,K,se=0,ie=u.interpolate||ru,pe="__p += '",Ae=Ff((u.escape||ru).source+"|"+ie.source+"|"+(ie===Vv?RC:ru).source+"|"+(u.evaluate||ru).source+"|$","g"),Ue="//# sourceURL="+(It.call(u,"sourceURL")?(u.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++u5+"]")+` 30 `;s.replace(Ae,function(Ge,mt,_t,mr,Wn,gr){return _t||(_t=mr),pe+=s.slice(se,gr).replace(BC,A5),mt&&(D=!0,pe+=`' + 31 31 __e(`+mt+`) + 32 32 '`),Wn&&(K=!0,pe+=`'; … … 34 34 __p += '`),_t&&(pe+=`' + 35 35 ((__t = (`+_t+`)) == null ? '' : __t) + 36 '`),se= mr+Ge.length,Ge}),pe+=`';36 '`),se=gr+Ge.length,Ge}),pe+=`'; 37 37 `;var Ke=It.call(u,"variable")&&u.variable;if(!Ke)pe=`with (obj) { 38 38 `+pe+` … … 44 44 `:`; 45 45 `)+pe+`return __p 46 }`;var lt= p1(function(){return Tt(A,Ue+"return "+pe).apply(n,N)});if(lt.source=pe,vp(lt))throw lt;return lt}function tI(s){return At(s).toLowerCase()}function nI(s){return At(s).toUpperCase()}function rI(s,u,f){if(s=At(s),s&&(f||u===n))return S0(s);if(!s||!(u=fr(u)))return s;var g=Gr(s),_=Gr(u),A=E0(g,_),N=$0(g,_)+1;return ss(g,A,N).join("")}function oI(s,u,f){if(s=At(s),s&&(f||u===n))return s.slice(0,T0(s)+1);if(!s||!(u=fr(u)))return s;var g=Gr(s),_=$0(g,Gr(u))+1;return ss(g,0,_).join("")}function sI(s,u,f){if(s=At(s),s&&(f||u===n))return s.replace(vf,"");if(!s||!(u=fr(u)))return s;var g=Gr(s),_=E0(g,Gr(u));return ss(g,_).join("")}function iI(s,u){var f=U,g=j;if(Gt(u)){var _="separator"in u?u.separator:_;f="length"in u?it(u.length):f,g="omission"in u?fr(u.omission):g}s=At(s);var A=s.length;if($i(s)){var N=Gr(s);A=N.length}if(f>=A)return s;var D=f-xi(g);if(D<1)return g;var K=N?ss(N,0,D).join(""):s.slice(0,D);if(_===n)return K+g;if(N&&(D+=K.length-D),yp(_)){if(s.slice(D).search(_)){var se,ie=K;for(_.global||(_=Lf(_.source,At(zv.exec(_))+"g")),_.lastIndex=0;se=_.exec(ie);)var pe=se.index;K=K.slice(0,pe===n?D:pe)}}else if(s.indexOf(fr(_),D)!=D){var Ae=K.lastIndexOf(_);Ae>-1&&(K=K.slice(0,Ae))}return K+g}function lI(s){return s=At(s),s&&yC.test(s)?s.replace(jv,N5):s}var aI=Pi(function(s,u,f){return s+(f?" ":"")+u.toUpperCase()}),wp=hy("toUpperCase");function f1(s,u,f){return s=At(s),u=f?n:u,u===n?I5(s)?U5(s):S5(s):s.match(u)||[]}var p1=ct(function(s,u){try{return cr(s,n,u)}catch(f){return vp(f)?f:new et(f)}}),uI=Ro(function(s,u){return Tr(u,function(f){f=yo(f),Io(s,f,mp(s[f],s))}),s});function cI(s){var u=s==null?0:s.length,f=qe();return s=u?zt(s,function(g){if(typeof g[1]!="function")throw new Cr(l);return[f(g[0]),g[1]]}):[],ct(function(g){for(var _=-1;++_<u;){var A=s[_];if(cr(A[0],this,g))return cr(A[1],this,g)}})}function dI(s){return N3(Ar(s,h))}function Sp(s){return function(){return s}}function fI(s,u){return s==null||s!==s?u:s}var pI=gy(),hI=gy(!0);function Zn(s){return s}function Ep(s){return q0(typeof s=="function"?s:Ar(s,h))}function mI(s){return G0(Ar(s,h))}function gI(s,u){return X0(s,Ar(u,h))}var vI=ct(function(s,u){return function(f){return $l(f,s,u)}}),yI=ct(function(s,u){return function(f){return $l(s,f,u)}});function $p(s,u,f){var g=mn(u),_=xu(u,g);f==null&&!(Gt(u)&&(_.length||!g.length))&&(f=u,u=s,s=this,_=xu(u,mn(u)));var A=!(Gt(f)&&"chain"in f)||!!f.chain,N=Fo(s);return Tr(_,function(D){var K=u[D];s[D]=K,N&&(s.prototype[D]=function(){var se=this.__chain__;if(A||se){var ie=s(this.__wrapped__),pe=ie.__actions__=Xn(this.__actions__);return pe.push({func:K,args:arguments,thisArg:s}),ie.__chain__=se,ie}return K.apply(s,Qo([this.value()],arguments))})}),s}function _I(){return En._===this&&(En._=W5),this}function xp(){}function bI(s){return s=it(s),ct(function(u){return Y0(u,s)})}var wI=np(zt),SI=np(v0),EI=np(Cf);function h1(s){return up(s)?Of(yo(s)):Q3(s)}function $I(s){return function(u){return s==null?n:Ns(s,u)}}var xI=yy(),TI=yy(!0);function Tp(){return[]}function Cp(){return!1}function CI(){return{}}function OI(){return""}function AI(){return!0}function kI(s,u){if(s=it(s),s<1||s>Ie)return[];var f=De,g=Rn(s,De);u=qe(u),s-=De;for(var _=If(g,u);++f<s;)u(f);return _}function II(s){return tt(s)?zt(s,yo):pr(s)?[s]:Xn(Ly(At(s)))}function PI(s){var u=++H5;return At(s)+u}var RI=Iu(function(s,u){return s+u},0),LI=rp("ceil"),FI=Iu(function(s,u){return s/u},1),NI=rp("floor");function MI(s){return s&&s.length?$u(s,Zn,Vf):n}function DI(s,u){return s&&s.length?$u(s,qe(u,2),Vf):n}function UI(s){return b0(s,Zn)}function BI(s,u){return b0(s,qe(u,2))}function jI(s){return s&&s.length?$u(s,Zn,qf):n}function VI(s,u){return s&&s.length?$u(s,qe(u,2),qf):n}var HI=Iu(function(s,u){return s*u},1),zI=rp("round"),WI=Iu(function(s,u){return s-u},0);function qI(s){return s&&s.length?kf(s,Zn):0}function KI(s,u){return s&&s.length?kf(s,qe(u,2)):0}return x.after=mA,x.ary=Wy,x.assign=nk,x.assignIn=s1,x.assignInWith=zu,x.assignWith=rk,x.at=ok,x.before=qy,x.bind=mp,x.bindAll=uI,x.bindKey=Ky,x.castArray=CA,x.chain=Vy,x.chunk=NO,x.compact=MO,x.concat=DO,x.cond=cI,x.conforms=dI,x.constant=Sp,x.countBy=q4,x.create=sk,x.curry=Gy,x.curryRight=Xy,x.debounce=Yy,x.defaults=ik,x.defaultsDeep=lk,x.defer=gA,x.delay=vA,x.difference=UO,x.differenceBy=BO,x.differenceWith=jO,x.drop=VO,x.dropRight=HO,x.dropRightWhile=zO,x.dropWhile=WO,x.fill=qO,x.filter=G4,x.flatMap=J4,x.flatMapDeep=Z4,x.flatMapDepth=Q4,x.flatten=Dy,x.flattenDeep=KO,x.flattenDepth=GO,x.flip=yA,x.flow=pI,x.flowRight=hI,x.fromPairs=XO,x.functions=hk,x.functionsIn=mk,x.groupBy=eA,x.initial=JO,x.intersection=ZO,x.intersectionBy=QO,x.intersectionWith=e4,x.invert=vk,x.invertBy=yk,x.invokeMap=nA,x.iteratee=Ep,x.keyBy=rA,x.keys=mn,x.keysIn=Jn,x.map=Du,x.mapKeys=bk,x.mapValues=wk,x.matches=mI,x.matchesProperty=gI,x.memoize=Bu,x.merge=Sk,x.mergeWith=i1,x.method=vI,x.methodOf=yI,x.mixin=$p,x.negate=ju,x.nthArg=bI,x.omit=Ek,x.omitBy=$k,x.once=_A,x.orderBy=oA,x.over=wI,x.overArgs=bA,x.overEvery=SI,x.overSome=EI,x.partial=gp,x.partialRight=Jy,x.partition=sA,x.pick=xk,x.pickBy=l1,x.property=h1,x.propertyOf=$I,x.pull=o4,x.pullAll=By,x.pullAllBy=s4,x.pullAllWith=i4,x.pullAt=l4,x.range=xI,x.rangeRight=TI,x.rearg=wA,x.reject=aA,x.remove=a4,x.rest=SA,x.reverse=pp,x.sampleSize=cA,x.set=Ck,x.setWith=Ok,x.shuffle=dA,x.slice=u4,x.sortBy=hA,x.sortedUniq=g4,x.sortedUniqBy=v4,x.split=Jk,x.spread=EA,x.tail=y4,x.take=_4,x.takeRight=b4,x.takeRightWhile=w4,x.takeWhile=S4,x.tap=M4,x.throttle=$A,x.thru=Mu,x.toArray=n1,x.toPairs=a1,x.toPairsIn=u1,x.toPath=II,x.toPlainObject=o1,x.transform=Ak,x.unary=xA,x.union=E4,x.unionBy=$4,x.unionWith=x4,x.uniq=T4,x.uniqBy=C4,x.uniqWith=O4,x.unset=kk,x.unzip=hp,x.unzipWith=jy,x.update=Ik,x.updateWith=Pk,x.values=Fi,x.valuesIn=Rk,x.without=A4,x.words=f1,x.wrap=TA,x.xor=k4,x.xorBy=I4,x.xorWith=P4,x.zip=R4,x.zipObject=L4,x.zipObjectDeep=F4,x.zipWith=N4,x.entries=a1,x.entriesIn=u1,x.extend=s1,x.extendWith=zu,$p(x,x),x.add=RI,x.attempt=p1,x.camelCase=Mk,x.capitalize=c1,x.ceil=LI,x.clamp=Lk,x.clone=OA,x.cloneDeep=kA,x.cloneDeepWith=IA,x.cloneWith=AA,x.conformsTo=PA,x.deburr=d1,x.defaultTo=fI,x.divide=FI,x.endsWith=Dk,x.eq=Yr,x.escape=Uk,x.escapeRegExp=Bk,x.every=K4,x.find=X4,x.findIndex=Ny,x.findKey=ak,x.findLast=Y4,x.findLastIndex=My,x.findLastKey=uk,x.floor=NI,x.forEach=Hy,x.forEachRight=zy,x.forIn=ck,x.forInRight=dk,x.forOwn=fk,x.forOwnRight=pk,x.get=_p,x.gt=RA,x.gte=LA,x.has=gk,x.hasIn=bp,x.head=Uy,x.identity=Zn,x.includes=tA,x.indexOf=YO,x.inRange=Fk,x.invoke=_k,x.isArguments=Us,x.isArray=tt,x.isArrayBuffer=FA,x.isArrayLike=Yn,x.isArrayLikeObject=tn,x.isBoolean=NA,x.isBuffer=is,x.isDate=MA,x.isElement=DA,x.isEmpty=UA,x.isEqual=BA,x.isEqualWith=jA,x.isError=vp,x.isFinite=VA,x.isFunction=Fo,x.isInteger=Zy,x.isLength=Vu,x.isMap=Qy,x.isMatch=HA,x.isMatchWith=zA,x.isNaN=WA,x.isNative=qA,x.isNil=GA,x.isNull=KA,x.isNumber=e1,x.isObject=Gt,x.isObjectLike=Yt,x.isPlainObject=kl,x.isRegExp=yp,x.isSafeInteger=XA,x.isSet=t1,x.isString=Hu,x.isSymbol=pr,x.isTypedArray=Li,x.isUndefined=YA,x.isWeakMap=JA,x.isWeakSet=ZA,x.join=t4,x.kebabCase=jk,x.last=Ir,x.lastIndexOf=n4,x.lowerCase=Vk,x.lowerFirst=Hk,x.lt=QA,x.lte=ek,x.max=MI,x.maxBy=DI,x.mean=UI,x.meanBy=BI,x.min=jI,x.minBy=VI,x.stubArray=Tp,x.stubFalse=Cp,x.stubObject=CI,x.stubString=OI,x.stubTrue=AI,x.multiply=HI,x.nth=r4,x.noConflict=_I,x.noop=xp,x.now=Uu,x.pad=zk,x.padEnd=Wk,x.padStart=qk,x.parseInt=Kk,x.random=Nk,x.reduce=iA,x.reduceRight=lA,x.repeat=Gk,x.replace=Xk,x.result=Tk,x.round=zI,x.runInContext=H,x.sample=uA,x.size=fA,x.snakeCase=Yk,x.some=pA,x.sortedIndex=c4,x.sortedIndexBy=d4,x.sortedIndexOf=f4,x.sortedLastIndex=p4,x.sortedLastIndexBy=h4,x.sortedLastIndexOf=m4,x.startCase=Zk,x.startsWith=Qk,x.subtract=WI,x.sum=qI,x.sumBy=KI,x.template=eI,x.times=kI,x.toFinite=No,x.toInteger=it,x.toLength=r1,x.toLower=tI,x.toNumber=Pr,x.toSafeInteger=tk,x.toString=At,x.toUpper=nI,x.trim=rI,x.trimEnd=oI,x.trimStart=sI,x.truncate=iI,x.unescape=lI,x.uniqueId=PI,x.upperCase=aI,x.upperFirst=wp,x.each=Hy,x.eachRight=zy,x.first=Uy,$p(x,function(){var s={};return go(x,function(u,f){It.call(x.prototype,f)||(s[f]=u)}),s}(),{chain:!1}),x.VERSION=r,Tr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){x[s].placeholder=x}),Tr(["drop","take"],function(s,u){vt.prototype[s]=function(f){f=f===n?1:cn(it(f),0);var g=this.__filtered__&&!u?new vt(this):this.clone();return g.__filtered__?g.__takeCount__=Rn(f,g.__takeCount__):g.__views__.push({size:Rn(f,De),type:s+(g.__dir__<0?"Right":"")}),g},vt.prototype[s+"Right"]=function(f){return this.reverse()[s](f).reverse()}}),Tr(["filter","map","takeWhile"],function(s,u){var f=u+1,g=f==ne||f==Ee;vt.prototype[s]=function(_){var A=this.clone();return A.__iteratees__.push({iteratee:qe(_,3),type:f}),A.__filtered__=A.__filtered__||g,A}}),Tr(["head","last"],function(s,u){var f="take"+(u?"Right":"");vt.prototype[s]=function(){return this[f](1).value()[0]}}),Tr(["initial","tail"],function(s,u){var f="drop"+(u?"":"Right");vt.prototype[s]=function(){return this.__filtered__?new vt(this):this[f](1)}}),vt.prototype.compact=function(){return this.filter(Zn)},vt.prototype.find=function(s){return this.filter(s).head()},vt.prototype.findLast=function(s){return this.reverse().find(s)},vt.prototype.invokeMap=ct(function(s,u){return typeof s=="function"?new vt(this):this.map(function(f){return $l(f,s,u)})}),vt.prototype.reject=function(s){return this.filter(ju(qe(s)))},vt.prototype.slice=function(s,u){s=it(s);var f=this;return f.__filtered__&&(s>0||u<0)?new vt(f):(s<0?f=f.takeRight(-s):s&&(f=f.drop(s)),u!==n&&(u=it(u),f=u<0?f.dropRight(-u):f.take(u-s)),f)},vt.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},vt.prototype.toArray=function(){return this.take(De)},go(vt.prototype,function(s,u){var f=/^(?:filter|find|map|reject)|While$/.test(u),g=/^(?:head|last)$/.test(u),_=x[g?"take"+(u=="last"?"Right":""):u],A=g||/^find/.test(u);_&&(x.prototype[u]=function(){var N=this.__wrapped__,D=g?[1]:arguments,K=N instanceof vt,se=D[0],ie=K||tt(N),pe=function(mt){var _t=_.apply(x,Qo([mt],D));return g&&Ae?_t[0]:_t};ie&&f&&typeof se=="function"&&se.length!=1&&(K=ie=!1);var Ae=this.__chain__,Ue=!!this.__actions__.length,Ke=A&&!Ae,lt=K&&!Ue;if(!A&&ie){N=lt?N:new vt(this);var Ge=s.apply(N,D);return Ge.__actions__.push({func:Mu,args:[pe],thisArg:n}),new Or(Ge,Ae)}return Ke&<?s.apply(this,D):(Ge=this.thru(pe),Ke?g?Ge.value()[0]:Ge.value():Ge)})}),Tr(["pop","push","shift","sort","splice","unshift"],function(s){var u=uu[s],f=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",g=/^(?:pop|shift)$/.test(s);x.prototype[s]=function(){var _=arguments;if(g&&!this.__chain__){var A=this.value();return u.apply(tt(A)?A:[],_)}return this[f](function(N){return u.apply(tt(N)?N:[],_)})}}),go(vt.prototype,function(s,u){var f=x[u];if(f){var g=f.name+"";It.call(Ai,g)||(Ai[g]=[]),Ai[g].push({name:u,func:f})}}),Ai[ku(n,C).name]=[{name:"wrapper",func:n}],vt.prototype.clone=l3,vt.prototype.reverse=a3,vt.prototype.value=u3,x.prototype.at=D4,x.prototype.chain=U4,x.prototype.commit=B4,x.prototype.next=j4,x.prototype.plant=H4,x.prototype.reverse=z4,x.prototype.toJSON=x.prototype.valueOf=x.prototype.value=W4,x.prototype.first=x.prototype.head,vl&&(x.prototype[vl]=V4),x},Ti=B5();Is?((Is.exports=Ti)._=Ti,Ef._=Ti):En._=Ti}).call(Ll)})(Yc,Yc.exports);var Y=Yc.exports;const vM={chapters:[],selected:null},aE="podlove/publisher/chapter/INIT",Tg="podlove/publisher/chapter/UPDATE",uE="podlove/publisher/chapter/SELECT",Cg="podlove/publisher/chapter/REMOVE",Og="podlove/publisher/chapter/ADD",cE="podlove/publisher/chapter/PARSE",Ag="podlove/publisher/chapter/PARSED",dE="podlove/publisher/chapter/SET",fE="podlove/publisher/chapter/DOWNLOAD",kg="podlove/publisher/chapter/SELECT_IMAGE",Ig="podlove/publisher/chapter/SET_IMAGE",yM=oe(aE),_M=oe(Tg),ms=oe(uE),bM=oe(Cg),wM=oe(Og),SM=oe(cE),pE=oe(Ag),EM=oe(dE),$M=oe(fE),xM=oe(kg);oe(Ig);const TM=bn({[Ag]:(e,t)=>({...e,selected:null,chapters:Y.get(t,["payload"],[])}),[dE]:(e,t)=>({...e,selected:null,chapters:Y.get(t,["payload"],[])}),[Tg]:(e,t)=>{let n=hE(e);const r=mE(e),i=e.chapters.reduce((a,c,d)=>[...a,d===t.payload.index?{...c,...t.payload.chapter}:c],[]).sort((a,c)=>a.start-c.start),l=i.findIndex(a=>r&&a.title==r.title);return{...e,chapters:i,selected:l>=0?l:n}},[uE]:(e,t)=>({...e,selected:t.payload}),[Og]:e=>({...e,chapters:[...e.chapters,{start:Y.get(e,["chapters",e.chapters.length-1,"start"],0),title:"",href:"",image:""}]}),[Cg]:(e,t)=>({...e,selected:null,chapters:e.chapters.filter((n,r)=>r!==t.payload)}),[Ig]:(e,t)=>({...e,chapters:e.chapters.map((n,r)=>r!==e.selected?n:{...n,image:t.payload})})},vM),CM=e=>e.chapters,hE=e=>e.selected,mE=e=>e.selected!==null?Y.get(e,["chapters",e.selected],null):null,zp={chapters:CM,selectedIndex:hE,selected:mE},Wp=function(e){if(!e)return 0;switch(e.length){case 0:return 0;case 1:return parseInt(e,10)*100;case 2:return parseInt(e,10)*10;default:return parseInt(e.substr(0,3),10)}},za=function(e){e=(e||"").trim();const t=/^(\d+)(?:\.(\d+))?$/,n=/^(\d+):(\d\d?)(?:\.(\d+))?$/,r=/^(\d+):(\d\d?):(\d\d?)(?:\.(\d+))?$/;let o,i=0,l=0,a=0,c=0;if(o=e.match(t))i=Wp(o[2]),l=o[1]?parseInt(o[1],10):0;else if(o=e.match(n))i=Wp(o[3]),l=o[2]?parseInt(o[2],10):0,a=o[1]?parseInt(o[1],10):0;else if(o=e.match(r))i=Wp(o[4]),l=o[3]?parseInt(o[3],10):0,a=o[2]?parseInt(o[2],10):0,c=o[1]?parseInt(o[1],10):0;else return null;return((c*60+a)*60+l)*1e3+i};class Dt{constructor(t){this.totalMs=t}get totalSeconds(){return Math.floor(this.totalMs/1e3)}get totalMinutes(){return Math.floor(this.totalSeconds/60)}get totalHours(){return Math.floor(this.totalMinutes/60)}get milliseconds(){return this.totalMs%1e3}get seconds(){return this.totalSeconds%60}get minutes(){return this.totalMinutes%60}get hours(){return this.totalHours%60}get pretty(){return this.pad(this.totalHours)+":"+this.pad(this.minutes)+":"+this.pad(this.seconds)+"."+this.pad(this.milliseconds,"000")}get prettyShort(){return this.totalHours?this.pad(this.totalHours)+":"+this.pad(this.minutes)+":"+this.pad(this.seconds):this.pad(this.minutes)+":"+this.pad(this.seconds)}pad(t,n="00"){let r=""+t;return r.length<n.length?n.substring(0,n.length-r.length)+r:t}static fromString(t){let n=0;return t==parseInt(t,10)?n=parseInt(t,10):n=za(t)||0,new Dt(n)}}const L_=(e,t,n)=>{const r=[...e];return r.splice(n,0,r.splice(t,1)[0]),r},gE="podlove/publisher/episode/INIT",tl="podlove/publisher/episode/UPDATE",vE="podlove/publisher/episode/QUICKSAVE",yE="podlove/publisher/episode/SAVED",Hh="podlove/publisher/episode/SLUG_CHANGED",Vd="podlove/publisher/episode/SET",_E="podlove/publisher/episode/SET_POSTER",bE="podlove/publisher/episode/SELECT_POSTER",Pg="podlove/publisher/episode/MOVE_CONTRIBUTION_UP",Rg="podlove/publisher/episode/MOVE_CONTRIBUTION_DOWN",Lg="podlove/publisher/episode/DELETE_CONTRIBUTION",Fg="podlove/publisher/episode/UPDATE_CONTRIBUTION",Ng="podlove/publisher/episode/ADD_CONTRIBUTION",wE="podlove/publisher/episode/CREATE_CONTRIBUTION",OM={id:null,slug:null,slug_frozen:!1,duration:null,number:null,subtitle:null,title:null,summary:null,type:null,episode_poster:null,poster:null,mnemonic:null,explicit:null,auphonic_production_id:null,is_auphonic_production_running:!1,auphonic_webhook_config:null,soundbite_start:null,soundbite_duration:null,soundbite_title:null,contributions:[],license_name:null,license_url:null,show:null},bt=oe(tl),AM=oe(vE),Hd=oe(gE),kM=oe(bE),Mg=oe(Vd),IM=oe(Pg),PM=oe(Rg),RM=oe(Lg),qp=oe(Fg),SE=oe(Ng),LM=oe(wE),FM=oe(yE),NM=oe(Hh),MM=bn({[Wr]:(e,t)=>({...e,id:Y.get(t,["payload","episode","id"],null),duration:Dt.fromString(Y.get(t,["payload","episode","duration"],null)).totalMs}),[tl]:(e,t)=>{const n=Y.get(t,["payload","prop"]),r=Y.get(t,["payload","value"],null);return["title","subtitle","summary","duration","slug","slug_frozen","auphonic_webhook_config","is_auphonic_production_running","soundbite_start","soundbite_duration","soundbite_title","license_name","license_url","show","number","episode_poster","poster","explicit"].includes(n)?{...e,[n]:r}:(console.debug("todo",n,r),{...e})},[Vd]:(e,t)=>({...e,slug:Y.get(t,["payload","slug"],e.slug),slug_frozen:Y.get(t,["payload","slug_frozen"],e.slug_frozen),number:Y.get(t,["payload","number"],e.number),duration:Y.get(t,["payload","duration"],e.duration),title:Y.get(t,["payload","title_clean"],e.title),subtitle:Y.get(t,["payload","subtitle"],e.subtitle),summary:Y.get(t,["payload","summary"],e.summary),type:Y.get(t,["payload","type"],e.type),episode_poster:Y.get(t,["payload","episode_poster"],e.episode_poster),poster:Y.get(t,["payload","poster"],e.poster),mnemonic:Y.get(t,["payload","mnemonic"],e.mnemonic),explicit:Y.get(t,["payload","explicit"],e.explicit),auphonic_production_id:Y.get(t,["payload","auphonic_production_id"],e.auphonic_production_id),is_auphonic_production_running:Y.get(t,["payload","is_auphonic_production_running"],e.is_auphonic_production_running),auphonic_webhook_config:Y.get(t,["payload","auphonic_webhook_config"],e.auphonic_webhook_config),soundbite_start:Y.get(t,["payload","soundbite_start"],e.soundbite_start),soundbite_duration:Y.get(t,["payload","soundbite_duration"],e.soundbite_duration),soundbite_title:Y.get(t,["payload","soundbite_title"],e.soundbite_title),license_name:Y.get(t,["payload","license_name"],e.license_name),license_url:Y.get(t,["payload","license_url"],e.license_url),contributions:Y.get(t,["payload","contributions"],e.contributions),show:Y.get(t,["payload","show"],e.show)}),[Pg]:(e,t)=>{const n=e.contributions.findIndex(r=>r.position===Y.get(t,["payload","position"]));return n<1?e:{...e,contributions:L_(e.contributions,n,n-1).map((r,o)=>({...r,position:o}))}},[Rg]:(e,t)=>{const n=e.contributions.findIndex(r=>r.position===Y.get(t,["payload","position"]));return n>e.contributions.length?e:{...e,contributions:L_(e.contributions,n,n+1).map((r,o)=>({...r,position:o}))}},[Lg]:(e,t)=>({...e,contributions:e.contributions.filter(({position:n})=>Y.get(t,["payload","position"])!==n).map((n,r)=>({...n,position:r}))}),[Fg]:(e,t)=>({...e,contributions:e.contributions.map(n=>n.contributor_id!==Y.get(t,["payload","contributor_id"])?n:Y.pick(Y.get(t,["payload"],{}),["id","contributor_id","role_id","group_id","position","comment"]))}),[Ng]:(e,t)=>({...e,contributions:[...e.contributions,{id:null,contributor_id:Y.get(t,["payload","id"],null),role_id:null,group_id:null,position:e.contributions.length,comment:null}]})},OM),Xt={id:e=>e.id,slug:e=>e.slug,slugFrozen:e=>e.slug_frozen,duration:e=>e.duration,number:e=>e.number,title:e=>e.title,subtitle:e=>e.subtitle,summary:e=>e.summary,type:e=>e.type,poster:e=>e.poster,episodePoster:e=>e.episode_poster,mnemonic:e=>e.mnemonic,explicit:e=>e.explicit,auphonicProductionId:e=>e.auphonic_production_id,isAuphonicProductionRunning:e=>e.is_auphonic_production_running,auphonicWebhookConfig:e=>e.auphonic_webhook_config,soundbite_start:e=>e.soundbite_start,soundbite_duration:e=>e.soundbite_duration,soundbite_title:e=>e.soundbite_title,license_name:e=>e.license_name,license_url:e=>e.license_url,contributions:e=>e.contributions,currentShow:e=>e.show},DM={baseUrl:null,api:{nonce:null,base:null,auth:null,bearer:null}},UM=bn({[Wr]:(e,t)=>({...e,baseUrl:Y.get(t,["payload","baseUrl"],null),api:{base:Y.get(t,["payload","api","base"],null),nonce:Y.get(t,["payload","api","nonce"],null),auth:Y.get(t,["payload","api","auth"],null),bearer:Y.get(t,["payload","api","bearer"],null)}})},DM),Fl={baseUrl:e=>e.baseUrl,nonce:e=>e.api.nonce,base:e=>e.api.base,auth:e=>e.api.auth,bearer:e=>e.api.bearer},zd="podlove/publisher/wordpress/UPDATE",EE="podlove/publisher/wordpress/SELECT_MEDIA_FROM_LIBRARY",zh=oe(zd),Dg=oe(EE),BM={id:null,title:null,featured_media:null},jM=bn({[Wr]:(e,t)=>({...e,id:Y.get(t,["payload","post","id"],null),title:Y.get(t,["payload","post","title"],null),featured_media:Y.get(t,["payload","post","featured_media"],null)}),[zd]:(e,t)=>{const n=Y.get(t,["payload","prop"]),r=Y.get(t,["payload","value"],null);return["title","featured_media"].includes(n)?{...e,[n]:r}:{...e}}},BM),Kp={id:e=>e.id,title:e=>e.title,featured_media:e=>e.featured_media},$E="podlove/publisher/transcript/INIT",xE="podlove/publisher/transcript/SET_TRANSCRIPTS",TE="podlove/publisher/transcript/SET_VOICES",Ug="podlove/publisher/transcript/UPDATE_VOICE",CE="podlove/publisher/transcript/IMPORT_TRANSCRIPTS",OE="podlove/publisher/transcript/IMPORT_ASSET_TRANSCRIPTS",AE="podlove/publisher/transcript/DELETE_TRANSCRIPTS",VM=oe($E),HM=oe(xE),zM=oe(TE),WM=oe(Ug),qM=oe(CE),KM=oe(OE),GM=oe(AE),XM={transcripts:[],voices:[]},YM=bn({[xE]:(e,t)=>({...e,transcripts:t.payload}),[TE]:(e,t)=>({...e,voices:t.payload.map(n=>({voice:n.voice,contributor:n.contributor_id}))}),[Ug]:(e,t)=>({...e,voices:e.voices.map(n=>n.voice===t.payload.voice?{...n,contributor:t.payload.contributor}:n)})},XM),F_={transcripts:e=>e.transcripts,voices:e=>e.voices},JM={contributors:[],roles:[],groups:[]},kE="podlove/publisher/contributors/INIT",IE="podlove/publisher/contributors/SET_CONTRIBUTORS",PE="podlove/publisher/contributors/SET_ROLES",RE="podlove/publisher/contributors/SET_GROUPS",LE="podlove/publisher/contributors/ADD",FE=oe(kE),ZM=oe(IE),QM=oe(PE),e8=oe(RE),t8=oe(LE),n8=bn({[IE]:(e,t)=>({...e,contributors:t.payload}),[PE]:(e,t)=>({...e,roles:t.payload}),[RE]:(e,t)=>({...e,groups:t.payload}),[LE]:(e,t)=>({...e,contributors:[...e.contributors,t.payload]})},JM),Gp={contributors:e=>e.contributors,roles:e=>e.roles,groups:e=>e.groups},r8={plus:{storage_enabled:null},metadata:{enable_episode_explicit:null,enable_episode_license:null,enable_episode_recording_date:null},tracking:{mode:null,window:null},website:{blog_title_template:null,custom_episode_slug:null,enable_generated_blog_post_title:null,episode_archive:null,episode_archive_slug:null,episode_number_padding:null,feeds_skip_redirect:null,hide_wp_feed_discovery:null,landing_page:null,merge_episodes:null,ssl_verify_peer:null,url_template:null,use_post_permastruct:null},assets:{image:null,chapter:null,transcript:null},media:{base_uri:null},modules:[]},o8=e=>{switch(e){case"0":return"podcast-cover";case"post-thumbnail":return"post-thumbnail";case"manual":return"manual";default:return null}},s8=e=>{switch(e){case"0":return"none";case"manual":return"manual";default:return null}},i8=bn({[Wr]:(e,t)=>({...e,plus:{storage_enabled:Y.get(t,["payload","plus","storage_enabled"],null)===!0},metadata:{enable_episode_explicit:Y.get(t,["payload","expert_settings","metadata","enable_episode_explicit"],null)==="1",enable_episode_license:Y.get(t,["payload","expert_settings","metadata","enable_episode_license"],null)==="1",enable_episode_recording_date:Y.get(t,["payload","expert_settings","metadata","enable_episode_recording_date"],null)==="1"},tracking:{mode:Y.get(t,["payload","expert_settings","tracking","mode"],null),window:Y.get(t,["payload","expert_settings","tracking","mode"],null)},media:{base_uri:Y.get(t,["payload","media","base_uri"],null)},website:{blog_title_template:Y.get(t,["payload","expert_settings","website","blog_title_template"],null),custom_episode_slug:Y.get(t,["payload","expert_settings","website","custom_episode_slug"],null),enable_generated_blog_post_title:Y.get(t,["payload","expert_settings","website","enable_generated_blog_post_title"],null)==="on",episode_archive:Y.get(t,["payload","expert_settings","website","episode_archive"],null)==="on",episode_archive_slug:Y.get(t,["payload","expert_settings","website","episode_archive_slug"],null),episode_number_padding:Y.get(t,["payload","expert_settings","website","episode_number_padding"],null),feeds_skip_redirect:Y.get(t,["payload","expert_settings","website","feeds_skip_redirect"],null)==="on",hide_wp_feed_discovery:Y.get(t,["payload","expert_settings","website","hide_wp_feed_discovery"],null)==="on",landing_page:Y.get(t,["payload","expert_settings","website","landing_page"],null),merge_episodes:Y.get(t,["payload","expert_settings","website","merge_episodes"],null)==="on",ssl_verify_peer:Y.get(t,["payload","expert_settings","website","ssl_verify_peer"],null)==="on",url_template:Y.get(t,["payload","expert_settings","website","url_template"],null),use_post_permastruct:Y.get(t,["payload","expert_settings","website","use_post_permastruct"],null)==="on"},assets:{image:o8(Y.get(t,["payload","assignments","image"],null)),chapter:s8(Y.get(t,["payload","assignments","chapter"],null)),transcript:Y.get(t,["payload","assignments","transcript"],null)},modules:Y.get(t,["payload","modules"])})},r8),cs={autoGenerateEpisodeTitle:e=>e.website.enable_generated_blog_post_title,blogTitleTemplate:e=>e.website.blog_title_template,episodeNumberPadding:e=>e.website.episode_number_padding,imageAsset:e=>e.assets.image,enableEpisodeExplicit:e=>e.metadata.enable_episode_explicit,enablePlusStorage:e=>e.plus.storage_enabled,mediaFileBaseUri:e=>e.media.base_uri,modules:e=>e.modules},l8="podlove/publisher/podcast/INIT",NE="podlove/publisher/podcast/SET",a8="podlove/publisher/podcasr/SAVED",Bg="podlove/publisher/podcast/UPDATE",u8={title:null,subtitle:null,summary:null,mnemonic:null,itunes_type:null,author_name:null,poster:null,link:null,license_name:null,license_url:null};oe(l8);const c8=oe(NE);oe(a8);const oa=oe(Bg),d8=bn({[NE]:(e,t)=>({title:Y.get(t,["payload","title"],e.title),subtitle:Y.get(t,["payload","subtitle"],e.subtitle),summary:Y.get(t,["payload","summary"],e.summary),mnemonic:Y.get(t,["payload","mnemonic"],e.mnemonic),itunes_type:Y.get(t,["payload","itunes_type"],e.itunes_type),author_name:Y.get(t,["payload","author_name"],e.author_name),poster:Y.get(t,["payload","poster"],e.poster),link:Y.get(t,["payload","link"],e.link),license_name:Y.get(t,["payload","license_name"],e.license_name),license_url:Y.get(t,["payload","license_url"],e.license_url)}),[Bg]:(e,t)=>{const n=Y.get(t,["payload","prop"]),r=Y.get(t,["payload","value"],null);return["title","subtitle","summary","author_name","podcast_email","funding_url","funding_label","license_name","license_url"].includes(n)?{...e,[n]:r}:(console.debug("todo",n,r),{...e})}},u8),_o={title:e=>e.title,subtitle:e=>e.subtitle,summary:e=>e.summary,mnemonic:e=>e.mnemonic,itunesType:e=>e.itunes_type,author:e=>e.author_name,poster:e=>e.poster,link:e=>e.link,license_name:e=>e.license_name,license_url:e=>e.license_url},f8={totalState:"init",progress:0,currentEpisodeName:"",currentFileName:"",episodesWithFiles:[],isMigrationComplete:!1,showMigrationToolManually:!1},ME="podlove/publisher/plusFileMigration/INIT",DE="podlove/publisher/plusFileMigration/SET_EPISODES_WITH_FILES",UE="podlove/publisher/plusFileMigration/SET_TOTAL_STATE",BE="podlove/publisher/plusFileMigration/START_MIGRATION",jE="podlove/publisher/plusFileMigration/SET_CURRENT_METADATA",VE="podlove/publisher/plusFileMigration/SET_FILE_STATE",HE="podlove/publisher/plusFileMigration/SET_PROGRESS",zE="podlove/publisher/plusFileMigration/SET_MIGRATION_COMPLETE",WE="podlove/publisher/plusFileMigration/TOGGLE_MIGRATION_TOOL_MANUALLY",p8=oe(ME),h8=oe(DE),Wh=oe(UE),m8=oe(BE),g8=oe(jE),sc=oe(VE),v8=oe(HE),y8=oe(zE),_8=oe(WE),b8=bn({[Wr]:(e,t)=>({...e}),[DE]:(e,t)=>({...e,episodesWithFiles:t.payload.episodesWithFiles}),[UE]:(e,t)=>({...e,totalState:t.payload.totalState}),[jE]:(e,t)=>({...e,currentEpisodeName:t.payload.currentEpisodeName,currentFileName:t.payload.currentFileName}),[VE]:(e,t)=>({...e,episodesWithFiles:e.episodesWithFiles.map(n=>({...n,files:n.files.map(r=>({...r,state:r.name===t.payload.filename?t.payload.state:r.state}))}))}),[HE]:(e,t)=>({...e,progress:t.payload.progress}),[zE]:(e,t)=>({...e,isMigrationComplete:t.payload.isMigrationComplete}),[WE]:e=>({...e,showMigrationToolManually:!e.showMigrationToolManually})},f8),Vs={totalState:e=>e.totalState,progress:e=>e.progress,currentEpisodeName:e=>e.currentEpisodeName,currentFileName:e=>e.currentFileName,episodesWithFiles:e=>e.episodesWithFiles,isMigrationComplete:e=>e.isMigrationComplete,showMigrationToolManually:e=>e.showMigrationToolManually},w8={features:{fileStorage:!1,feedProxy:!1},token:"",user:null,isLoading:!0,isSaving:!1},qE="podlove/publisher/plus/INIT",jg="podlove/publisher/plus/SET_FEATURE",KE="podlove/publisher/plus/GET_TOKEN",GE="podlove/publisher/plus/SET_TOKEN",XE="podlove/publisher/plus/SET_USER",YE="podlove/publisher/plus/SAVE_TOKEN",JE="podlove/publisher/plus/SET_LOADING",ZE="podlove/publisher/plus/SET_SAVING",Wd=oe(qE),qh=oe(jg),S8=oe(KE),Kh=oe(GE),sa=oe(XE),E8=oe(YE),N_=oe(JE),M_=oe(ZE),$8=bn({[Wr]:(e,t)=>({...e}),[jg]:(e,t)=>({...e,features:{...e.features,[t.payload.feature]:t.payload.value}}),[GE]:(e,t)=>({...e,token:t.payload}),[XE]:(e,t)=>({...e,user:t.payload}),[JE]:(e,t)=>({...e,isLoading:t.payload}),[ZE]:(e,t)=>({...e,isSaving:t.payload})},w8),Nl={features:e=>e.features,token:e=>e.token,user:e=>e.user,isLoading:e=>e.isLoading,isSaving:e=>e.isSaving},x8={token:null,production:null,productions:[],presets:[],preset:null,services:[],service_files:{},tracks:[],file_selections:{},current_file_selection:null,is_saving:!1,is_initializing:!0,publish_when_done:!1,plus_transfer_status:null},QE="podlove/publisher/auphonic/INIT",e$="podlove/publisher/auphonic/INIT_DONE",t$="podlove/publisher/auphonic/SET_TOKEN",Jc="podlove/publisher/auphonic/SET_PRODUCTION",n$="podlove/publisher/auphonic/SET_PRODUCTIONS",r$="podlove/publisher/auphonic/SET_SERVICES",o$="podlove/publisher/auphonic/CREATE_PRODUCTION",s$="podlove/publisher/auphonic/CREATE_MULTITRACK_PRODUCTION",i$="podlove/publisher/auphonic/SAVE_PRODUCTION",l$="podlove/publisher/auphonic/START_PRODUCTION",Zc="podlove/publisher/auphonic/DESELECT_PRODUCTION",T8="podlove/publisher/auphonic/SELECT_SERVICE",Vg="podlove/publisher/auphonic/SET_SERVICE_FILES",C8="podlove/publisher/auphonic/SELECT_TRACKS",a$="podlove/publisher/auphonic/ADD_TRACK",u$="podlove/publisher/auphonic/REMOVE_TRACK",c$="podlove/publisher/auphonic/UPDATE_TRACK",d$="podlove/publisher/auphonic/SET_PRESETS",Hg="podlove/publisher/auphonic/SET_PRESET",zg="podlove/publisher/auphonic/UPDATE_FILE_SELECTION",f$="podlove/publisher/auphonic/START_POLLING",Qc="podlove/publisher/auphonic/STOP_POLLING",p$="podlove/publisher/auphonic/START_SAVING",h$="podlove/publisher/auphonic/STOP_SAVING",Wg="podlove/publisher/auphonic/UPDATE_WEBHOOK",qg="podlove/publisher/auphonic/SET_PLUS_TRANSFER_STATUS",m$="podlove/publisher/auphonic/TRIGGER_PLUS_TRANSFER",g$="podlove/publisher/auphonic/LOAD_PLUS_TRANSFER_STATUS",O8=oe(QE),A8=oe(e$),k8=oe(t$),mi=oe(Jc),v$=oe(Zc),y$=oe(n$),I8=oe(o$),P8=oe(s$),_$=oe(i$),b$=oe(l$),R8=oe(d$),Kg=oe(Hg),L8=oe(r$),F8=oe(Vg),w$=oe(T8),S$=oe(zg);oe(C8);const N8=oe(a$),E$=oe(u$),$$=oe(c$),M8=oe(f$),D_=oe(Qc),D8=oe(p$),U8=oe(h$),x$=oe(Wg),eo=oe(qg),T$=oe(m$),B8=oe(g$),j8=bn({[e$]:e=>({...e,is_initializing:!1}),[zg]:(e,t)=>({...e,current_file_selection:t.payload.key,file_selections:{...e.file_selections,[t.payload.key]:{...e.file_selections[t.payload.key],[t.payload.prop]:t.payload.value}}}),[a$]:(e,t)=>{const n=`Track ${e.tracks.length+1}`;return{...e,tracks:[...e.tracks,{identifier:n,identifier_new:n,fileSelection:null,input_file_name:"",filtering:!0,noise_and_hum_reduction:!1,fore_background:"auto",track_gain:"0",save_state:"new"}]}},[u$]:(e,t)=>({...e,tracks:e.tracks.filter((n,r)=>n.identifier!=t.payload)}),[c$]:(e,t)=>{const n=(o,i)=>o.save_state=="new"?{save_state:"new"}:{save_state:"edited"},r=e.tracks.reduce((o,i,l)=>[...o,l===t.payload.index?{...i,...t.payload.track,...n(i,t.payload.track)}:i],[]);return{...e,tracks:r}},[Vg]:(e,t)=>{const{uuid:n,files:r}=t.payload;return{...e,service_files:{...e.service_files,[n]:r}}},[r$]:(e,t)=>({...e,services:t.payload}),[d$]:(e,t)=>({...e,presets:t.payload}),[n$]:(e,t)=>({...e,productions:t.payload}),[Jc]:(e,t)=>{var o,i;const n=t.payload;return{...e,production:n,file_selections:(()=>{var l;if(n!=null&&n.is_multitrack)return((l=n==null?void 0:n.multi_input_files)==null?void 0:l.reduce((a,c,d)=>{let p=c.service;return p||(c.input_file.substring(0,4)=="http"?p="url":p="file"),{...a,[`${n==null?void 0:n.uuid}_t${d}`]:{currentServiceSelection:p,fileSelection:c.service?c.input_file:null,urlValue:p=="url"?c.input_file:null,fileValue:null}}},{}))||{};{let a=n==null?void 0:n.service;const c=n==null?void 0:n.input_file;return a||((c==null?void 0:c.substring(0,4))=="http"?a="url":a="file"),{[`${n==null?void 0:n.uuid}`]:{currentServiceSelection:a,fileSelection:a?c:null,urlValue:a=="url"?c:null,fileValue:null}}}})(),tracks:((i=(o=t.payload)==null?void 0:o.multi_input_files)==null?void 0:i.reduce((l,a)=>{var c,d,p;return[...l,{identifier:a.id,identifier_new:a.id,filtering:(c=a.algorithms)==null?void 0:c.filtering,noise_and_hum_reduction:(d=a.algorithms)==null?void 0:d.denoise,fore_background:(p=a.algorithms)==null?void 0:p.backforeground,input_file_name:a.input_file,save_state:"unchanged"}]},[]))||[]}},[Zc]:e=>({...e,production:null,tracks:[],file_selections:[],current_file_selection:null}),[Hg]:(e,t)=>({...e,preset:t.payload}),[t$]:(e,t)=>({...e,token:t.payload}),[p$]:(e,t)=>({...e,is_saving:!0}),[h$]:(e,t)=>({...e,is_saving:!1}),[Wg]:(e,t)=>({...e,publish_when_done:t.payload}),[qg]:(e,t)=>({...e,plus_transfer_status:t.payload})},x8),V8=e=>e?e.map(t=>{let n={start:t.start,title:t.title};return t.image&&(n.image=t.image),t.url&&(n.url=t.url),n}):[],H8=e=>e?e.map(t=>({format:t.format,bitrate:t.bitrate,suffix:t.suffix,ending:t.ending,filename:t.filename,mono_mixdown:t.mono_mixdown,split_on_chapters:t.split_on_chapters,outgoing_services:t.outgoing_services})):[],z8=e=>{const t=e.production;return{uuid:t==null?void 0:t.uuid,metadata:t==null?void 0:t.metadata,input_file:t==null?void 0:t.input_file,chapters:V8(t==null?void 0:t.chapters),output_files:H8(t==null?void 0:t.output_files),output_basename:t==null?void 0:t.output_basename,outgoing_services:t==null?void 0:t.outgoing_services,algorithms:t==null?void 0:t.algorithms,speech_recognition:t==null?void 0:t.speech_recognition}},dn={token:e=>e.token,production:e=>e.production,productionId:e=>{var t;return(t=e.production)==null?void 0:t.uuid},productions:e=>e.productions,presets:e=>e.presets,preset:e=>e.preset,productionPayload:z8,services:e=>e.services,incomingServices:e=>e.services.filter(t=>t.incoming),outgoingServices:e=>e.services.filter(t=>t.outgoing),serviceFiles:e=>e.service_files,tracks:e=>e.tracks,fileSelections:e=>e.file_selections,currentFileSelection:e=>e.current_file_selection,isSaving:e=>e.is_saving,isInitializing:e=>e.is_initializing,publishWhenDone:e=>e.publish_when_done,plusTransferStatus:e=>{var t;return(t=e.plus_transfer_status)==null?void 0:t.status},plusTransferFiles:e=>{var t;return(t=e.plus_transfer_status)==null?void 0:t.files},plusTransferErrors:e=>{var t;return(t=e.plus_transfer_status)==null?void 0:t.errors}},W8={},C$="podlove/publisher/progress/SET_PROGRESS",O$="podlove/publisher/progress/SET_PROGRESS_STATUS",A$="podlove/publisher/progress/RESET_PROGRESS",k$=oe(C$),ia=oe(O$),I$=oe(A$),q8=bn({[C$]:(e,t)=>{const{key:n,progress:r,status:o,message:i}=t.payload,l=e[n]||{progress:0,status:"init"};return{...e,[n]:{...l,progress:r,...o&&{status:o},...i!==void 0&&{message:i}}}},[O$]:(e,t)=>{const{key:n,status:r,message:o}=t.payload,i=e[n]||{progress:0,status:"init"};return{...e,[n]:{...i,status:r,...o!==void 0&&{message:o}}}},[A$]:(e,t)=>{const n={...e};return delete n[t.payload],n}},W8),K8=(e,t)=>{var n;return((n=e[t])==null?void 0:n.progress)??0},G8=(e,t)=>{var n;return((n=e[t])==null?void 0:n.status)??"init"},X8=(e,t)=>{var n;return(n=e[t])==null?void 0:n.message},Xp={progress:K8,status:G8,message:X8},Y8={is_initializing:!0,slug_autogeneration_enabled:!1,files:[],selectedFiles:[]},P$="podlove/publisher/mediafiles/INIT",R$="podlove/publisher/mediafiles/INIT_DONE",L$="podlove/publisher/mediafiles/SET",Gg="podlove/publisher/mediafiles/UPDATE",ed="podlove/publisher/mediafiles/ENABLE",td="podlove/publisher/mediafiles/DISABLE",F$="podlove/publisher/mediafiles/VERIFY",N$="podlove/publisher/mediafiles/VERIFY_ALL",M$="podlove/publisher/mediafiles/UPLOAD_INTENT",D$="podlove/publisher/mediafiles/PLUS_UPLOAD_INTENT",Xg="podlove/publisher/mediafiles/SET_UPLOAD_URL",U$="podlove/publisher/mediafiles/ENABLE_SLUG_AUTOGEN",B$="podlove/publisher/mediafiles/DISABLE_SLUG_AUTOGEN",j$="podlove/publisher/mediafiles/FILE_SELECTED",Wa="podlove/publisher/mediafiles/SET_FILE_INFO",V$="podlove/publisher/mediafiles/ADD_SELECTED_FILES",H$="podlove/publisher/mediafiles/REMOVE_SELECTED_FILE",z$="podlove/publisher/mediafiles/UNFREEZE_SLUG",J8=oe(P$),Z8=oe(R$),Q8=oe(L$),Gh=oe(Gg),eD=oe(ed),tD=oe(td),nD=oe(F$),rD=oe(N$),oD=oe(M$),sD=oe(D$),iD=oe(Xg),lD=oe(U$),W$=oe(B$),aD=(e,t)=>({type:j$,payload:{files:e,episodeSlug:t}});oe(V$);const uD=oe(H$),cD=oe(z$),dD=bn({[R$]:e=>({...e,is_initializing:!1}),[L$]:(e,t)=>({...e,files:t.payload}),[Gg]:(e,t)=>({...e,files:e.files.reduce((n,r)=>[...n,r.asset_id==t.payload.asset_id?{...r,...t.payload}:r],[])}),[ed]:(e,t)=>({...e,files:e.files.reduce((n,r)=>[...n,r.asset_id==t.payload?{...r,enable:!0}:r],[])}),[td]:(e,t)=>({...e,files:e.files.reduce((n,r)=>[...n,r.asset_id==t.payload?{...r,enable:!1}:r],[])}),[U$]:e=>({...e,slug_autogeneration_enabled:!0}),[B$]:e=>({...e,slug_autogeneration_enabled:!1}),[Wa]:(e,t)=>({...e,selectedFiles:t.payload}),[V$]:(e,t)=>({...e,selectedFiles:[...e.selectedFiles,...t.payload]}),[H$]:(e,t)=>({...e,selectedFiles:e.selectedFiles.filter(n=>n.newName!==t.payload)})},Y8),ic={isInitializing:e=>e.is_initializing,slugAutogenerationEnabled:e=>e.slug_autogeneration_enabled,files:e=>e.files,selectedFiles:e=>e.selectedFiles},fD={episodeList:[],selectEpisodes:[]},q$="podlove/publisher/relatedEpisodes/INIT",K$="podlove/publisher/relatedEpisodes/SET_EPISODE_LIST",Yg="podlove/publisher/relatedEpisodes/SET_SELECTED_EPISODES",pD="podlove/publisher/relatedEpisodes/UPDATE_RELATED_EPISODES",hD=oe(q$),mD=oe(K$),G$=oe(Yg);oe(pD);const gD=bn({[Wr]:(e,t)=>({...e}),[K$]:(e,t)=>({...e,episodeList:t.payload}),[Yg]:(e,t)=>({...e,selectEpisodes:t.payload})},fD),U_={episodeList:e=>e.episodeList,selectEpisodes:e=>e.selectEpisodes},Jg="podlove/publisher/shows/INIT",Zg="podlove/publisher/shows/SET",nd="podlove/publisher/shows/SELECT",X$=oe(Jg),Y$=oe(Zg),J$=oe(nd),Z$={shows:[]},Q$=bn({[Zg]:(e,t)=>({...e,shows:Y.get(t,["payload"],[])})},Z$),ex={shows:e=>e.shows},vD=Object.freeze(Object.defineProperty({__proto__:null,INIT:Jg,SELECT:nd,SET:Zg,init:X$,initialState:Z$,reducer:Q$,select:J$,selectors:ex,set:Y$},Symbol.toStringTag,{value:"Module"})),tx="podlove/publisher/admin/INIT",nx="podlove/publisher/admin/SET",Qg="podlove/publisher/admin/UPDATE_TYPE",yD={bannerHide:null,type:null,feedUrl:null};oe(tx);const _D=oe(nx);oe(Qg);const bD=bn({[nx]:(e,t)=>({bannerHide:Y.get(t,["payload","banner_hide"],e.bannerHide),type:Y.get(t,["payload","type"],e.type),feedUrl:Y.get(t,["payload","feedUrl"],e.feedUrl)}),[Qg]:(e,t)=>({...e,type:t.payload})},yD),Yp={bannerHide:e=>e.bannerHide,type:e=>e.type,feedUrl:e=>e.feedUrl},me={lifecycle:e=>e.lifecycle,chapters:e=>e.chapters,podcast:e=>e.podcast,episode:e=>e.episode,runtime:e=>e.runtime,post:e=>e.post,transcripts:e=>e.transcripts,contributors:e=>e.contributors,auphonic:e=>e.auphonic,progress:e=>e.progress,mediafiles:e=>e.mediafiles,settings:e=>e.settings,relatedEpisodes:e=>e.relatedEpisodes,shows:e=>e.shows,admin:e=>e.admin,plusFileMigration:e=>e.plusFileMigration,plus:e=>e.plus},wD={bootstrapped:he(me.lifecycle,gM.bootstrapped)},SD={token:he(me.auphonic,dn.token),productionId:he(me.auphonic,dn.productionId),productions:he(me.auphonic,dn.productions),production:he(me.auphonic,dn.production),presets:he(me.auphonic,dn.presets),preset:he(me.auphonic,dn.preset),productionPayload:he(me.auphonic,dn.productionPayload),incomingServices:he(me.auphonic,dn.incomingServices),outgoingServices:he(me.auphonic,dn.outgoingServices),serviceFiles:he(me.auphonic,dn.serviceFiles),tracks:he(me.auphonic,dn.tracks),fileSelections:he(me.auphonic,dn.fileSelections),currentFileSelection:he(me.auphonic,dn.currentFileSelection),isSaving:he(me.auphonic,dn.isSaving),isInitializing:he(me.auphonic,dn.isInitializing),publishWhenDone:he(me.auphonic,dn.publishWhenDone),plusTransferStatus:he(me.auphonic,dn.plusTransferStatus),plusTransferFiles:he(me.auphonic,dn.plusTransferFiles),plusTransferErrors:he(me.auphonic,dn.plusTransferErrors)},ED={progress:he([me.progress,(e,t)=>t],Xp.progress),status:he([me.progress,(e,t)=>t],Xp.status),message:he([me.progress,(e,t)=>t],Xp.message)},$D={title:he(me.podcast,_o.title),subtitle:he(me.podcast,_o.subtitle),summary:he(me.podcast,_o.summary),mnemonic:he(me.podcast,_o.mnemonic),itunesType:he(me.podcast,_o.itunesType),author:he(me.podcast,_o.author),poster:he(me.podcast,_o.poster),link:he(me.podcast,_o.link),license_name:he(me.podcast,_o.license_name),license_url:he(me.podcast,_o.license_url)},xD={list:he(me.chapters,zp.chapters),selected:he(me.chapters,zp.selected),selectedIndex:he(me.chapters,zp.selectedIndex)},rx={contributors:he(me.contributors,Gp.contributors),roles:he(me.contributors,Gp.roles),groups:he(me.contributors,Gp.groups)},TD={id:he(me.episode,Xt.id),slug:he(me.episode,Xt.slug),slugFrozen:he(me.episode,Xt.slugFrozen),duration:he(me.episode,Xt.duration),number:he(me.episode,Xt.number),title:he(me.episode,Xt.title),subtitle:he(me.episode,Xt.subtitle),summary:he(me.episode,Xt.summary),type:he(me.episode,Xt.type),poster:he(me.episode,Xt.poster),episodePoster:he(me.episode,Xt.episodePoster),mnemonic:he(me.episode,Xt.mnemonic),explicit:he(me.episode,Xt.explicit),soundbite_start:he(me.episode,Xt.soundbite_start),soundbite_duration:he(me.episode,Xt.soundbite_duration),soundbite_title:he(me.episode,Xt.soundbite_title),auphonicProductionId:he(me.episode,Xt.auphonicProductionId),isAuphonicProductionRunning:he(me.episode,Xt.isAuphonicProductionRunning),auphonicWebhookConfig:he(me.episode,Xt.auphonicWebhookConfig),license_name:he(me.episode,Xt.license_name),license_url:he(me.episode,Xt.license_url),contributions:he(he(me.episode,Xt.contributions),rx.contributors,(e,t)=>e.map(r=>({...r,...r.contributor_id?t.find(({id:o})=>o.toString()===r.contributor_id.toString()):{}}))),currentShow:he(me.episode,Xt.currentShow)},CD={isInitializing:he(me.mediafiles,ic.isInitializing),files:he(me.mediafiles,ic.files),selectedFiles:he(me.mediafiles,ic.selectedFiles),slugAutogenerationEnabled:he(me.mediafiles,ic.slugAutogenerationEnabled)},OD={baseUrl:he(me.runtime,Fl.baseUrl),nonce:he(me.runtime,Fl.nonce),base:he(me.runtime,Fl.base),auth:he(me.runtime,Fl.auth),bearer:he(me.runtime,Fl.bearer)},AD={id:he(me.post,Kp.id),title:he(me.post,Kp.title),featuredMedia:he(me.post,Kp.featured_media)},kD={list:he(me.transcripts,F_.transcripts),voices:he(me.transcripts,F_.voices)},ID={autoGenerateEpisodeTitle:he(me.settings,cs.autoGenerateEpisodeTitle),blogTitleTemplate:he(me.settings,cs.blogTitleTemplate),episodeNumberPadding:he(me.settings,cs.episodeNumberPadding),mediaFileBaseUri:he(me.settings,cs.mediaFileBaseUri),imageAsset:he(me.settings,cs.imageAsset),enableEpisodeExplicit:he(me.settings,cs.enableEpisodeExplicit),enablePlusStorage:he(me.settings,cs.enablePlusStorage),modules:he(me.settings,cs.modules)},PD={episodeList:he(me.relatedEpisodes,U_.episodeList),selectEpisode:he(me.relatedEpisodes,U_.selectEpisodes)},RD={list:he(me.shows,ex.shows)},LD={bannerHide:he(me.admin,Yp.bannerHide),type:he(me.admin,Yp.type),feedUrl:he(me.admin,Yp.feedUrl)},FD={totalState:he(me.plusFileMigration,Vs.totalState),progress:he(me.plusFileMigration,Vs.progress),currentEpisodeName:he(me.plusFileMigration,Vs.currentEpisodeName),currentFileName:he(me.plusFileMigration,Vs.currentFileName),episodesWithFiles:he(me.plusFileMigration,Vs.episodesWithFiles),isMigrationComplete:he(me.plusFileMigration,Vs.isMigrationComplete),showMigrationToolManually:he(me.plusFileMigration,Vs.showMigrationToolManually)},ND={features:he(me.plus,Nl.features),token:he(me.plus,Nl.token),user:he(me.plus,Nl.user),isLoading:he(me.plus,Nl.isLoading),isSaving:he(me.plus,Nl.isSaving)},B={lifecycle:wD,podcast:$D,chapters:xD,episode:TD,runtime:OD,post:AD,transcripts:kD,contributors:rx,settings:ID,auphonic:SD,progress:ED,mediafiles:CD,relatedEpisodes:PD,shows:RD,admin:LD,plusFileMigration:FD,plus:ND},MD=hS({lifecycle:mM,chapters:TM,episode:MM,runtime:UM,post:jM,transcripts:YM,contributors:n8,settings:i8,podcast:d8,auphonic:j8,progress:q8,mediafiles:dD,relatedEpisodes:gD,shows:Q$,admin:bD,plusFileMigration:b8,plus:$8});var B_=function(t){return{done:!0,value:t}},Jp={};function qd(e){return Fd(e)?"channel":xS(e)?String(e):Kn(e)?e.name:String(e)}function Kd(e,t,n){var r,o,i,l=t;function a(c,d){if(l===Jp)return B_(c);if(d&&!o)throw l=Jp,d;r&&r(c);var p=d?e[o](d):e[l]();return l=p.nextState,i=p.effect,r=p.stateUpdater,o=p.errorState,l===Jp?B_(c):i}return jh(a,function(c){return a(null,c)},n)}function DD(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i={done:!1,value:ro(e)},l=function(p){return{done:!1,value:St.apply(void 0,[t].concat(r,[p]))}},a,c=function(p){return a=p};return Kd({q1:function(){return{nextState:"q2",effect:i,stateUpdater:c}},q2:function(){return{nextState:"q1",effect:l(a)}}},"q1","takeEvery("+qd(e)+", "+t.name+")")}function UD(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i={done:!1,value:ro(e)},l=function(y){return{done:!1,value:St.apply(void 0,[t].concat(r,[y]))}},a=function(y){return{done:!1,value:aN(y)}},c,d,p=function(y){return c=y},h=function(y){return d=y};return Kd({q1:function(){return{nextState:"q2",effect:i,stateUpdater:h}},q2:function(){return c?{nextState:"q3",effect:a(c)}:{nextState:"q1",effect:l(d),stateUpdater:p}},q3:function(){return{nextState:"q1",effect:l(d),stateUpdater:p}}},"q1","takeLatest("+qd(e)+", "+t.name+")")}function BD(e,t,n){for(var r=arguments.length,o=new Array(r>3?r-3:0),i=3;i<r;i++)o[i-3]=arguments[i];var l,a,c=function(){return{done:!1,value:ro(a)}},d=function(S){return{done:!1,value:St.apply(void 0,[n].concat(o,[S]))}},p={done:!1,value:Md(e)},h=function(S){return l=S},v=function(S){return a=S},y=!Fd(t);return y||v(t),Kd({q1:function(){var S={done:!1,value:uN(t,Q7(1))};return{nextState:"q2",effect:S,stateUpdater:v}},q2:function(){return{nextState:"q3",effect:c(),stateUpdater:h}},q3:function(){return{nextState:"q4",effect:d(l)}},q4:function(){return{nextState:"q2",effect:p}}},y?"q1":"q2","throttle("+qd(t)+", "+n.name+")")}function jD(e,t,n){for(var r=arguments.length,o=new Array(r>3?r-3:0),i=3;i<r;i++)o[i-3]=arguments[i];var l,a,c={done:!1,value:ro(t)},d={done:!1,value:Vh({action:ro(t),debounce:Md(e)})},p=function(S){return{done:!1,value:St.apply(void 0,[n].concat(o,[S]))}},h=function(S){return{done:!1,value:S}},v=function(S){return l=S},y=function(S){return a=S};return Kd({q1:function(){return{nextState:"q2",effect:c,stateUpdater:v}},q2:function(){return{nextState:"q3",effect:d,stateUpdater:y}},q3:function(){return a.debounce?{nextState:"q1",effect:p(l)}:{nextState:"q2",effect:h(a.action),stateUpdater:v}}},"q1","debounce("+qd(t)+", "+n.name+")")}function Ne(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return St.apply(void 0,[DD,e,t].concat(r))}function j_(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return St.apply(void 0,[UD,e,t].concat(r))}function ox(e,t,n){for(var r=arguments.length,o=new Array(r>3?r-3:0),i=3;i<r;i++)o[i-3]=arguments[i];return St.apply(void 0,[BD,e,t,n].concat(o))}function Xh(e,t,n){for(var r=arguments.length,o=new Array(r>3?r-3:0),i=3;i<r;i++)o[i-3]=arguments[i];return St.apply(void 0,[jD,e,t,n].concat(o))}function VD(){return function*(){const e=yield $t(WD,"click","button.editor-post-publish-button");yield Ne(e,HD),yield Ne(Wr,zD)}}function*HD(){yield te(fM())}function*zD(){yield te(pM())}function WD(e,t){return tE(n=>{let r;const o=i=>{n(i)};return window.addEventListener("load",()=>{r=document.querySelector(t),r==null||r.addEventListener(e,o)}),()=>{r==null||r.removeEventListener(e,o),n(zi)}})}const Yh=e=>tE(t=>(e(r=>{t(r||{})}),()=>{}));function*ur(e,t,...n){return yield St(function*(){for(;;){const o=yield ro(e);yield $t(t,...n.concat(o))}})}function*qD(e){if(!(yield be(e))){for(;;)if(yield ro("*"),yield be(e))return}}function*KD(e,t){try{for(;;){const n=yield ro(e);if(t.constructor.name==="GeneratorFunction")yield $t(function*(){yield*t(n)});else{const r=t(n);r&&(yield te(r))}}}finally{(yield cN())&&e.close()}}function*sx(e){const t=yield $t(wg);return yield lN(KD,t,e),t}const ix=e=>t=>n=>{if(n.total){const r=Math.round(n.loaded*100/n.total),o={key:t,progress:r};e.put(o)}},fl=(e,t={})=>{const n=Object.keys(t).map(r=>encodeURIComponent(r)+"="+encodeURIComponent(t[r])).join("&");return e+=(e.indexOf("?")===-1?"?":"&")+n},qa=(e=console.error)=>async t=>{let n;try{n=await t.json()}catch{n={}}return t.status>=300?(e(n),{error:n}):{result:n}},lx=({nonce:e,auth:t,bearer:n},r={})=>({"Content-Type":"application/json",Accept:"application/json",...n?{Authorization:`Bearer ${n}`}:{},...t?{Authorization:`Basic ${t}`}:{},...e?{"X-WP-Nonce":e}:{},...r}),V_=({errorHandler:e,nonce:t,auth:n,bearer:r,method:o,urlProcessor:i})=>(l,{headers:a,query:c}={})=>fetch(fl(i?i(l):l,c),{method:o,headers:lx({nonce:t,auth:n,bearer:r},a)}).then(qa(e)),H_=({errorHandler:e,nonce:t,auth:n,bearer:r,method:o,urlProcessor:i})=>(l,a,{headers:c,query:d}={})=>fetch(fl(i?i(l):l,d),{method:o,headers:lx({nonce:t,auth:n,bearer:r},c),body:JSON.stringify(a)}).then(qa(e)),GD=Y.curry(({base:e,version:t,nonce:n,auth:r,bearer:o,errorHandler:i})=>({get:V_({nonce:n,auth:r,bearer:o,method:"GET",errorHandler:i,urlProcessor:l=>`${e}/${t}/${l}`}),delete:V_({nonce:n,auth:r,bearer:o,errorHandler:i,method:"DELETE",urlProcessor:l=>`${e}/${t}/${l}`}),post:H_({nonce:n,auth:r,bearer:o,errorHandler:i,method:"POST",urlProcessor:l=>`${e}/${t}/${l}`}),put:H_({nonce:n,auth:r,bearer:o,errorHandler:i,method:"PUT",urlProcessor:l=>`${e}/${t}/${l}`})})),ax="podlove/publisher/NOTIFY",ev=oe(ax),XD={};bn({},XD);function*qr(){yield $t(qD,B.lifecycle.bootstrapped);const e=yield be(B.runtime.base),t=yield be(B.runtime.nonce),n=yield be(B.runtime.auth),r=yield be(B.runtime.bearer);return GD({base:e,version:"v2",nonce:t,auth:n,bearer:r,errorHandler:function(i){let l="An error occurred";typeof i=="string"?l=i:i&&typeof i=="object"&&(i.code&&i.message?l=`${i.code}: ${i.message}`:l=i.message||i.code||"An error occurred"),ef.dispatch(ev({type:"error",message:l}))}})}function*YD(){const e=yield qr();yield St(JD,e),yield Ne(Bg,ZD)}function*JD(e){const{result:t}=yield e.get("podcast");t&&(yield te(c8(t)))}function ZD(e){const t=Y.get(e,["payload","prop"]);Y.get(e,["payload","value"],null)}function QD(){return function*(){yield ur(Wr,YD)}}function e9(){return function*(){yield Ne(ax,t9)}}function*t9(e){const t=Y.get(globalThis,["wp","data","dispatch"]);t?n9(t,Y.get(e,["payload"])):r9(e.payload)}function n9(e,{type:t,message:n}){n&&e("core/notices").createNotice(t,n,{type:"snackbar",isDismissible:!0})}function r9({type:e,message:t}){switch(e){case"success":case"info":console.log(t);break;case"warning":console.warn(t);break;case"error":console.error(t);break}}var ux={};/*! For license information please see keyboard.js.LICENSE.txt */(()=>{var e={9620:(o,i)=>{function l(v){if(v&&typeof v=="object"){var y=v.which||v.keyCode||v.charCode;y&&(v=y)}if(typeof v=="number")return p[v];var b,S=String(v);return(b=a[S.toLowerCase()])?b:(b=c[S.toLowerCase()])||(S.length===1?S.charCodeAt(0):void 0)}l.isEventKey=function(v,y){if(v&&typeof v=="object"){var b=v.which||v.keyCode||v.charCode;if(b==null)return!1;if(typeof y=="string"){var S;if((S=a[y.toLowerCase()])||(S=c[y.toLowerCase()]))return S===b}else if(typeof y=="number")return y===b;return!1}};var a=(i=o.exports=l).code=i.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},c=i.aliases={windows:91,"⇧":16,"⌥":18,"⌃":17,"⌘":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};for(d=97;d<123;d++)a[String.fromCharCode(d)]=d-32;for(var d=48;d<58;d++)a[d-48]=d;for(d=1;d<13;d++)a["f"+d]=d+111;for(d=0;d<10;d++)a["numpad "+d]=d+96;var p=i.names=i.title={};for(d in a)p[a[d]]=d;for(var h in c)a[h]=c[h]}},t={};function n(o){var i=t[o];if(i!==void 0)return i.exports;var l=t[o]={exports:{}};return e[o](l,l.exports,n),l.exports}n.n=o=>{var i=o&&o.__esModule?()=>o.default:()=>o;return n.d(i,{a:i}),i},n.d=(o,i)=>{for(var l in i)n.o(i,l)&&!n.o(o,l)&&Object.defineProperty(o,l,{enumerable:!0,get:i[l]})},n.o=(o,i)=>Object.prototype.hasOwnProperty.call(o,i),n.r=o=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})};var r={};(()=>{function o(Q){return Q!=null&&typeof Q=="object"&&Q["@@functional/placeholder"]===!0}function i(Q){return function ce(ve){return arguments.length===0||o(ve)?ce:Q.apply(this,arguments)}}function l(Q){return function ce(ve,Ce){switch(arguments.length){case 0:return ce;case 1:return o(ve)?ce:i(function(We){return Q(ve,We)});default:return o(ve)&&o(Ce)?ce:o(ve)?i(function(We){return Q(We,Ce)}):o(Ce)?i(function(We){return Q(ve,We)}):Q(ve,Ce)}}}n.r(r),n.d(r,{keydown:()=>De,keyup:()=>Xe});const a=Number.isInteger||function(Q){return Q<<0===Q};function c(Q){return Object.prototype.toString.call(Q)==="[object String]"}const d=l(function(Q,ce){var ve=Q<0?ce.length+Q:Q;return c(ce)?ce.charAt(ve):ce[ve]}),p=l(function(Q,ce){return Q.map(function(ve){for(var Ce,We=ce,Ve=0;Ve<ve.length;){if(We==null)return;Ce=ve[Ve],We=a(Ce)?d(Ce,We):We[Ce],Ve+=1}return We})}),h=l(function(Q,ce){return p([Q],ce)[0]}),v=l(function(Q,ce){return h([Q],ce)});function y(Q){return function ce(ve,Ce,We){switch(arguments.length){case 0:return ce;case 1:return o(ve)?ce:l(function(Ve,rt){return Q(ve,Ve,rt)});case 2:return o(ve)&&o(Ce)?ce:o(ve)?l(function(Ve,rt){return Q(Ve,Ce,rt)}):o(Ce)?l(function(Ve,rt){return Q(ve,Ve,rt)}):i(function(Ve){return Q(ve,Ce,Ve)});default:return o(ve)&&o(Ce)&&o(We)?ce:o(ve)&&o(Ce)?l(function(Ve,rt){return Q(Ve,rt,We)}):o(ve)&&o(We)?l(function(Ve,rt){return Q(Ve,Ce,rt)}):o(Ce)&&o(We)?l(function(Ve,rt){return Q(ve,Ve,rt)}):o(ve)?i(function(Ve){return Q(Ve,Ce,We)}):o(Ce)?i(function(Ve){return Q(ve,Ve,We)}):o(We)?i(function(Ve){return Q(ve,Ce,Ve)}):Q(ve,Ce,We)}}}const b=l(function(Q,ce){return ce==null||ce!=ce?Q:ce}),S=y(function(Q,ce,ve){return b(Q,h(ce,ve))}),T=y(function(Q,ce,ve){return S(Q,[ce],ve)});function C(Q,ce){switch(Q){case 0:return function(){return ce.apply(this,arguments)};case 1:return function(ve){return ce.apply(this,arguments)};case 2:return function(ve,Ce){return ce.apply(this,arguments)};case 3:return function(ve,Ce,We){return ce.apply(this,arguments)};case 4:return function(ve,Ce,We,Ve){return ce.apply(this,arguments)};case 5:return function(ve,Ce,We,Ve,rt){return ce.apply(this,arguments)};case 6:return function(ve,Ce,We,Ve,rt,wn){return ce.apply(this,arguments)};case 7:return function(ve,Ce,We,Ve,rt,wn,an){return ce.apply(this,arguments)};case 8:return function(ve,Ce,We,Ve,rt,wn,an,M){return ce.apply(this,arguments)};case 9:return function(ve,Ce,We,Ve,rt,wn,an,M,V){return ce.apply(this,arguments)};case 10:return function(ve,Ce,We,Ve,rt,wn,an,M,V,Z){return ce.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function w(Q,ce){return function(){return ce.call(this,Q.apply(this,arguments))}}const E=Array.isArray||function(Q){return Q!=null&&Q.length>=0&&Object.prototype.toString.call(Q)==="[object Array]"},O=i(function(Q){return!!E(Q)||!!Q&&typeof Q=="object"&&!c(Q)&&(Q.nodeType===1?!!Q.length:Q.length===0||Q.length>0&&Q.hasOwnProperty(0)&&Q.hasOwnProperty(Q.length-1))});var $=function(){function Q(ce){this.f=ce}return Q.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},Q.prototype["@@transducer/result"]=function(ce){return ce},Q.prototype["@@transducer/step"]=function(ce,ve){return this.f(ce,ve)},Q}();const P=l(function(Q,ce){return C(Q.length,function(){return Q.apply(ce,arguments)})});function R(Q,ce,ve){for(var Ce=ve.next();!Ce.done;){if((ce=Q["@@transducer/step"](ce,Ce.value))&&ce["@@transducer/reduced"]){ce=ce["@@transducer/value"];break}Ce=ve.next()}return Q["@@transducer/result"](ce)}function k(Q,ce,ve,Ce){return Q["@@transducer/result"](ve[Ce](P(Q["@@transducer/step"],Q),ce))}var W=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function U(Q,ce,ve){if(typeof Q=="function"&&(Q=function(Ce){return new $(Ce)}(Q)),O(ve))return function(Ce,We,Ve){for(var rt=0,wn=Ve.length;rt<wn;){if((We=Ce["@@transducer/step"](We,Ve[rt]))&&We["@@transducer/reduced"]){We=We["@@transducer/value"];break}rt+=1}return Ce["@@transducer/result"](We)}(Q,ce,ve);if(typeof ve["fantasy-land/reduce"]=="function")return k(Q,ce,ve,"fantasy-land/reduce");if(ve[W]!=null)return R(Q,ce,ve[W]());if(typeof ve.next=="function")return R(Q,ce,ve);if(typeof ve.reduce=="function")return k(Q,ce,ve,"reduce");throw new TypeError("reduce: list must be array or iterable")}const j=y(U);function G(Q,ce){return function(){var ve=arguments.length;if(ve===0)return ce();var Ce=arguments[ve-1];return E(Ce)||typeof Ce[Q]!="function"?ce.apply(this,arguments):Ce[Q].apply(Ce,Array.prototype.slice.call(arguments,0,ve-1))}}const X=i(G("tail",y(G("slice",function(Q,ce,ve){return Array.prototype.slice.call(ve,Q,ce)}))(1,1/0)));function ne(){if(arguments.length===0)throw new Error("pipe requires at least one argument");return C(arguments[0].length,j(w,arguments[0],X(arguments)))}const xe=i(function(Q){return c(Q)?Q.split("").reverse().join(""):Array.prototype.slice.call(Q,0).reverse()});function Ee(){if(arguments.length===0)throw new Error("compose requires at least one argument");return ne.apply(this,xe(arguments))}var ke=n(9620),Ie=n.n(ke);const Qe=Q=>ce=>{v("nodeName",ce.target)==="BODY"&&Q(ce)},ht=Q=>({key:Ie()(Q),ctrl:T(!1,"ctrlKey",Q),shift:T(!1,"shiftKey",Q),meta:T(!1,"metaKey",Q),alt:T(!1,"altKey",Q)}),De=Q=>document.addEventListener("keydown",Qe(Ee(Q,ht))),Xe=Q=>document.addEventListener("keyup",Qe(Ee(Q,ht)))})(),ux.utils=r})();function o9(e){const t=/^([\d\.:]+)\s(.*)$/;return e.trim().split(/(\r?\n)/).reduce(function(n,r){var o=r.match(t);if(o){var i=za(o[1]);i!==null&&n.push({title:o[2].trim(),start:i})}return n},[])}function s9(e){const t=/^([\d\.,]+)\s+([\d\.,]+)\s+(.*)$/;return e.trim().split(/(\r\n|\r|\n)/).reduce(function(n,r){var o=r.match(t);if(o){var i=za(o[1].replace(",",".")),l=o[3].trim();i!==null&&n.push({title:l,start:i})}return n},[])}function i9(e){const r=new window.DOMParser().parseFromString(e,"text/xml").getElementsByTagName("Marker");let o=Array.from(r).reduce((i,l)=>{var p;if(!l||!l.getAttribute("Type")||((p=l.getAttribute("Type"))==null?void 0:p.toLowerCase())!=="chapter")return i;const a=za(l.getAttribute("Time")||""),c=l.getAttribute("Name")||"",d=l.getAttribute("URL")||"";return a!==null&&i.push({start:a,title:c.trim(),...d?{href:d.trim()}:{}}),i},[]);return o.sort(function(i,l){return i.start-l.start}),o}function l9(e){const r=new window.DOMParser().parseFromString(e,"text/xml").getElementsByTagNameNS("http://podlove.org/simple-chapters","chapter");return Array.from(r).reduce((o,i)=>{var l=za(i.getAttribute("start")||""),a=i.getAttribute("title")||"",c=i.getAttribute("href")||"",d=i.getAttribute("image")||"";return l!==null&&o.push({start:l,title:a.trim(),...c?{href:c.trim()}:{},...d?{image:d.trim()}:{}}),o},[])}const cx=Y.get(window,["wp","i18n","__"],e=>e),a9=cx,u9={install(e){e.config.globalProperties.__=(t,n)=>cx(t,n)}};function*c9(){const e=yield qr();yield St(d9,e),yield Ne([cE],g9),yield Ne(fE,p9),yield Ne([Tg,Ag,Og,Cg,Ig],f9,e);const t=yield $t(Yh,ux.utils.keydown);yield Ne(t,v9),yield Ne(kg,y9)}function*d9(e){const t=yield be(B.episode.id),{result:n}=yield e.get(`chapters/${t}`);n&&(yield te(EM(n.chapters.map(r=>({...r,start:Dt.fromString(r.start).totalMs})))))}function*f9(e){const t=yield be(B.episode.id),n=yield be(B.chapters.list);yield e.put(`chapters/${t}`,{chapters:n.map(r=>({...r,start:new Dt(r.start).pretty}))})}function*p9(e){const t=yield be(B.chapters.list);switch(e.payload){case"psc":z_("chapters.psc",h9(t));break;case"mp4":z_("chapters.txt",m9(t));break}}function h9(e){const t=new XMLSerializer,o=new DOMParser().parseFromString('<psc:chapters version="1.2" xmlns:psc="http://podlove.org/simple-chapters"/>',"text/xml");let i=o.getElementsByTagName("chapters");return i.length||(i=o.getElementsByTagName("psc:chapters")),i=i[0],e.forEach(c=>{let d=o.createElement("psc:chapter");d.setAttribute("title",c.title||""),d.setAttribute("start",c.start?new Dt(c.start).pretty:"00:00:00"),c.href&&d.setAttribute("href",c.href),c.image&&d.setAttribute("image",c.image),i.appendChild(d)}),t.serializeToString(o).replace(/\<psc:chapter\s/gi,`46 }`;var lt=f_(function(){return Tt(A,Ue+"return "+pe).apply(n,N)});if(lt.source=pe,yp(lt))throw lt;return lt}function tI(s){return At(s).toLowerCase()}function nI(s){return At(s).toUpperCase()}function rI(s,u,f){if(s=At(s),s&&(f||u===n))return w0(s);if(!s||!(u=pr(u)))return s;var g=Xr(s),_=Xr(u),A=S0(g,_),N=E0(g,_)+1;return ss(g,A,N).join("")}function oI(s,u,f){if(s=At(s),s&&(f||u===n))return s.slice(0,x0(s)+1);if(!s||!(u=pr(u)))return s;var g=Xr(s),_=E0(g,Xr(u))+1;return ss(g,0,_).join("")}function sI(s,u,f){if(s=At(s),s&&(f||u===n))return s.replace(yf,"");if(!s||!(u=pr(u)))return s;var g=Xr(s),_=S0(g,Xr(u));return ss(g,_).join("")}function iI(s,u){var f=U,g=j;if(Gt(u)){var _="separator"in u?u.separator:_;f="length"in u?it(u.length):f,g="omission"in u?pr(u.omission):g}s=At(s);var A=s.length;if($i(s)){var N=Xr(s);A=N.length}if(f>=A)return s;var D=f-xi(g);if(D<1)return g;var K=N?ss(N,0,D).join(""):s.slice(0,D);if(_===n)return K+g;if(N&&(D+=K.length-D),_p(_)){if(s.slice(D).search(_)){var se,ie=K;for(_.global||(_=Ff(_.source,At(Hv.exec(_))+"g")),_.lastIndex=0;se=_.exec(ie);)var pe=se.index;K=K.slice(0,pe===n?D:pe)}}else if(s.indexOf(pr(_),D)!=D){var Ae=K.lastIndexOf(_);Ae>-1&&(K=K.slice(0,Ae))}return K+g}function lI(s){return s=At(s),s&&yC.test(s)?s.replace(Bv,N5):s}var aI=Pi(function(s,u,f){return s+(f?" ":"")+u.toUpperCase()}),Sp=py("toUpperCase");function d_(s,u,f){return s=At(s),u=f?n:u,u===n?I5(s)?U5(s):S5(s):s.match(u)||[]}var f_=ct(function(s,u){try{return dr(s,n,u)}catch(f){return yp(f)?f:new et(f)}}),uI=Lo(function(s,u){return Cr(u,function(f){f=_o(f),Po(s,f,gp(s[f],s))}),s});function cI(s){var u=s==null?0:s.length,f=qe();return s=u?zt(s,function(g){if(typeof g[1]!="function")throw new Or(l);return[f(g[0]),g[1]]}):[],ct(function(g){for(var _=-1;++_<u;){var A=s[_];if(dr(A[0],this,g))return dr(A[1],this,g)}})}function dI(s){return N3(kr(s,h))}function Ep(s){return function(){return s}}function fI(s,u){return s==null||s!==s?u:s}var pI=my(),hI=my(!0);function Qn(s){return s}function $p(s){return W0(typeof s=="function"?s:kr(s,h))}function mI(s){return K0(kr(s,h))}function gI(s,u){return G0(s,kr(u,h))}var vI=ct(function(s,u){return function(f){return $l(f,s,u)}}),yI=ct(function(s,u){return function(f){return $l(s,f,u)}});function xp(s,u,f){var g=mn(u),_=xu(u,g);f==null&&!(Gt(u)&&(_.length||!g.length))&&(f=u,u=s,s=this,_=xu(u,mn(u)));var A=!(Gt(f)&&"chain"in f)||!!f.chain,N=No(s);return Cr(_,function(D){var K=u[D];s[D]=K,N&&(s.prototype[D]=function(){var se=this.__chain__;if(A||se){var ie=s(this.__wrapped__),pe=ie.__actions__=Yn(this.__actions__);return pe.push({func:K,args:arguments,thisArg:s}),ie.__chain__=se,ie}return K.apply(s,Qo([this.value()],arguments))})}),s}function _I(){return En._===this&&(En._=W5),this}function Tp(){}function bI(s){return s=it(s),ct(function(u){return X0(u,s)})}var wI=rp(zt),SI=rp(g0),EI=rp(Of);function p_(s){return cp(s)?Af(_o(s)):Q3(s)}function $I(s){return function(u){return s==null?n:Ns(s,u)}}var xI=vy(),TI=vy(!0);function Cp(){return[]}function Op(){return!1}function CI(){return{}}function OI(){return""}function AI(){return!0}function kI(s,u){if(s=it(s),s<1||s>Ie)return[];var f=De,g=Rn(s,De);u=qe(u),s-=De;for(var _=Pf(g,u);++f<s;)u(f);return _}function II(s){return tt(s)?zt(s,_o):hr(s)?[s]:Yn(Ry(At(s)))}function PI(s){var u=++H5;return At(s)+u}var RI=Iu(function(s,u){return s+u},0),LI=op("ceil"),FI=Iu(function(s,u){return s/u},1),NI=op("floor");function MI(s){return s&&s.length?$u(s,Qn,Hf):n}function DI(s,u){return s&&s.length?$u(s,qe(u,2),Hf):n}function UI(s){return _0(s,Qn)}function BI(s,u){return _0(s,qe(u,2))}function jI(s){return s&&s.length?$u(s,Qn,Kf):n}function VI(s,u){return s&&s.length?$u(s,qe(u,2),Kf):n}var HI=Iu(function(s,u){return s*u},1),zI=op("round"),WI=Iu(function(s,u){return s-u},0);function qI(s){return s&&s.length?If(s,Qn):0}function KI(s,u){return s&&s.length?If(s,qe(u,2)):0}return x.after=mA,x.ary=zy,x.assign=nk,x.assignIn=o_,x.assignInWith=zu,x.assignWith=rk,x.at=ok,x.before=Wy,x.bind=gp,x.bindAll=uI,x.bindKey=qy,x.castArray=CA,x.chain=jy,x.chunk=NO,x.compact=MO,x.concat=DO,x.cond=cI,x.conforms=dI,x.constant=Ep,x.countBy=q4,x.create=sk,x.curry=Ky,x.curryRight=Gy,x.debounce=Xy,x.defaults=ik,x.defaultsDeep=lk,x.defer=gA,x.delay=vA,x.difference=UO,x.differenceBy=BO,x.differenceWith=jO,x.drop=VO,x.dropRight=HO,x.dropRightWhile=zO,x.dropWhile=WO,x.fill=qO,x.filter=G4,x.flatMap=J4,x.flatMapDeep=Z4,x.flatMapDepth=Q4,x.flatten=My,x.flattenDeep=KO,x.flattenDepth=GO,x.flip=yA,x.flow=pI,x.flowRight=hI,x.fromPairs=XO,x.functions=hk,x.functionsIn=mk,x.groupBy=eA,x.initial=JO,x.intersection=ZO,x.intersectionBy=QO,x.intersectionWith=e4,x.invert=vk,x.invertBy=yk,x.invokeMap=nA,x.iteratee=$p,x.keyBy=rA,x.keys=mn,x.keysIn=Zn,x.map=Du,x.mapKeys=bk,x.mapValues=wk,x.matches=mI,x.matchesProperty=gI,x.memoize=Bu,x.merge=Sk,x.mergeWith=s_,x.method=vI,x.methodOf=yI,x.mixin=xp,x.negate=ju,x.nthArg=bI,x.omit=Ek,x.omitBy=$k,x.once=_A,x.orderBy=oA,x.over=wI,x.overArgs=bA,x.overEvery=SI,x.overSome=EI,x.partial=vp,x.partialRight=Yy,x.partition=sA,x.pick=xk,x.pickBy=i_,x.property=p_,x.propertyOf=$I,x.pull=o4,x.pullAll=Uy,x.pullAllBy=s4,x.pullAllWith=i4,x.pullAt=l4,x.range=xI,x.rangeRight=TI,x.rearg=wA,x.reject=aA,x.remove=a4,x.rest=SA,x.reverse=hp,x.sampleSize=cA,x.set=Ck,x.setWith=Ok,x.shuffle=dA,x.slice=u4,x.sortBy=hA,x.sortedUniq=g4,x.sortedUniqBy=v4,x.split=Jk,x.spread=EA,x.tail=y4,x.take=_4,x.takeRight=b4,x.takeRightWhile=w4,x.takeWhile=S4,x.tap=M4,x.throttle=$A,x.thru=Mu,x.toArray=t_,x.toPairs=l_,x.toPairsIn=a_,x.toPath=II,x.toPlainObject=r_,x.transform=Ak,x.unary=xA,x.union=E4,x.unionBy=$4,x.unionWith=x4,x.uniq=T4,x.uniqBy=C4,x.uniqWith=O4,x.unset=kk,x.unzip=mp,x.unzipWith=By,x.update=Ik,x.updateWith=Pk,x.values=Fi,x.valuesIn=Rk,x.without=A4,x.words=d_,x.wrap=TA,x.xor=k4,x.xorBy=I4,x.xorWith=P4,x.zip=R4,x.zipObject=L4,x.zipObjectDeep=F4,x.zipWith=N4,x.entries=l_,x.entriesIn=a_,x.extend=o_,x.extendWith=zu,xp(x,x),x.add=RI,x.attempt=f_,x.camelCase=Mk,x.capitalize=u_,x.ceil=LI,x.clamp=Lk,x.clone=OA,x.cloneDeep=kA,x.cloneDeepWith=IA,x.cloneWith=AA,x.conformsTo=PA,x.deburr=c_,x.defaultTo=fI,x.divide=FI,x.endsWith=Dk,x.eq=Jr,x.escape=Uk,x.escapeRegExp=Bk,x.every=K4,x.find=X4,x.findIndex=Fy,x.findKey=ak,x.findLast=Y4,x.findLastIndex=Ny,x.findLastKey=uk,x.floor=NI,x.forEach=Vy,x.forEachRight=Hy,x.forIn=ck,x.forInRight=dk,x.forOwn=fk,x.forOwnRight=pk,x.get=bp,x.gt=RA,x.gte=LA,x.has=gk,x.hasIn=wp,x.head=Dy,x.identity=Qn,x.includes=tA,x.indexOf=YO,x.inRange=Fk,x.invoke=_k,x.isArguments=Us,x.isArray=tt,x.isArrayBuffer=FA,x.isArrayLike=Jn,x.isArrayLikeObject=tn,x.isBoolean=NA,x.isBuffer=is,x.isDate=MA,x.isElement=DA,x.isEmpty=UA,x.isEqual=BA,x.isEqualWith=jA,x.isError=yp,x.isFinite=VA,x.isFunction=No,x.isInteger=Jy,x.isLength=Vu,x.isMap=Zy,x.isMatch=HA,x.isMatchWith=zA,x.isNaN=WA,x.isNative=qA,x.isNil=GA,x.isNull=KA,x.isNumber=Qy,x.isObject=Gt,x.isObjectLike=Yt,x.isPlainObject=kl,x.isRegExp=_p,x.isSafeInteger=XA,x.isSet=e_,x.isString=Hu,x.isSymbol=hr,x.isTypedArray=Li,x.isUndefined=YA,x.isWeakMap=JA,x.isWeakSet=ZA,x.join=t4,x.kebabCase=jk,x.last=Pr,x.lastIndexOf=n4,x.lowerCase=Vk,x.lowerFirst=Hk,x.lt=QA,x.lte=ek,x.max=MI,x.maxBy=DI,x.mean=UI,x.meanBy=BI,x.min=jI,x.minBy=VI,x.stubArray=Cp,x.stubFalse=Op,x.stubObject=CI,x.stubString=OI,x.stubTrue=AI,x.multiply=HI,x.nth=r4,x.noConflict=_I,x.noop=Tp,x.now=Uu,x.pad=zk,x.padEnd=Wk,x.padStart=qk,x.parseInt=Kk,x.random=Nk,x.reduce=iA,x.reduceRight=lA,x.repeat=Gk,x.replace=Xk,x.result=Tk,x.round=zI,x.runInContext=H,x.sample=uA,x.size=fA,x.snakeCase=Yk,x.some=pA,x.sortedIndex=c4,x.sortedIndexBy=d4,x.sortedIndexOf=f4,x.sortedLastIndex=p4,x.sortedLastIndexBy=h4,x.sortedLastIndexOf=m4,x.startCase=Zk,x.startsWith=Qk,x.subtract=WI,x.sum=qI,x.sumBy=KI,x.template=eI,x.times=kI,x.toFinite=Mo,x.toInteger=it,x.toLength=n_,x.toLower=tI,x.toNumber=Rr,x.toSafeInteger=tk,x.toString=At,x.toUpper=nI,x.trim=rI,x.trimEnd=oI,x.trimStart=sI,x.truncate=iI,x.unescape=lI,x.uniqueId=PI,x.upperCase=aI,x.upperFirst=Sp,x.each=Vy,x.eachRight=Hy,x.first=Dy,xp(x,function(){var s={};return vo(x,function(u,f){It.call(x.prototype,f)||(s[f]=u)}),s}(),{chain:!1}),x.VERSION=r,Cr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){x[s].placeholder=x}),Cr(["drop","take"],function(s,u){vt.prototype[s]=function(f){f=f===n?1:cn(it(f),0);var g=this.__filtered__&&!u?new vt(this):this.clone();return g.__filtered__?g.__takeCount__=Rn(f,g.__takeCount__):g.__views__.push({size:Rn(f,De),type:s+(g.__dir__<0?"Right":"")}),g},vt.prototype[s+"Right"]=function(f){return this.reverse()[s](f).reverse()}}),Cr(["filter","map","takeWhile"],function(s,u){var f=u+1,g=f==ne||f==Ee;vt.prototype[s]=function(_){var A=this.clone();return A.__iteratees__.push({iteratee:qe(_,3),type:f}),A.__filtered__=A.__filtered__||g,A}}),Cr(["head","last"],function(s,u){var f="take"+(u?"Right":"");vt.prototype[s]=function(){return this[f](1).value()[0]}}),Cr(["initial","tail"],function(s,u){var f="drop"+(u?"":"Right");vt.prototype[s]=function(){return this.__filtered__?new vt(this):this[f](1)}}),vt.prototype.compact=function(){return this.filter(Qn)},vt.prototype.find=function(s){return this.filter(s).head()},vt.prototype.findLast=function(s){return this.reverse().find(s)},vt.prototype.invokeMap=ct(function(s,u){return typeof s=="function"?new vt(this):this.map(function(f){return $l(f,s,u)})}),vt.prototype.reject=function(s){return this.filter(ju(qe(s)))},vt.prototype.slice=function(s,u){s=it(s);var f=this;return f.__filtered__&&(s>0||u<0)?new vt(f):(s<0?f=f.takeRight(-s):s&&(f=f.drop(s)),u!==n&&(u=it(u),f=u<0?f.dropRight(-u):f.take(u-s)),f)},vt.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},vt.prototype.toArray=function(){return this.take(De)},vo(vt.prototype,function(s,u){var f=/^(?:filter|find|map|reject)|While$/.test(u),g=/^(?:head|last)$/.test(u),_=x[g?"take"+(u=="last"?"Right":""):u],A=g||/^find/.test(u);_&&(x.prototype[u]=function(){var N=this.__wrapped__,D=g?[1]:arguments,K=N instanceof vt,se=D[0],ie=K||tt(N),pe=function(mt){var _t=_.apply(x,Qo([mt],D));return g&&Ae?_t[0]:_t};ie&&f&&typeof se=="function"&&se.length!=1&&(K=ie=!1);var Ae=this.__chain__,Ue=!!this.__actions__.length,Ke=A&&!Ae,lt=K&&!Ue;if(!A&&ie){N=lt?N:new vt(this);var Ge=s.apply(N,D);return Ge.__actions__.push({func:Mu,args:[pe],thisArg:n}),new Ar(Ge,Ae)}return Ke&<?s.apply(this,D):(Ge=this.thru(pe),Ke?g?Ge.value()[0]:Ge.value():Ge)})}),Cr(["pop","push","shift","sort","splice","unshift"],function(s){var u=uu[s],f=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",g=/^(?:pop|shift)$/.test(s);x.prototype[s]=function(){var _=arguments;if(g&&!this.__chain__){var A=this.value();return u.apply(tt(A)?A:[],_)}return this[f](function(N){return u.apply(tt(N)?N:[],_)})}}),vo(vt.prototype,function(s,u){var f=x[u];if(f){var g=f.name+"";It.call(Ai,g)||(Ai[g]=[]),Ai[g].push({name:u,func:f})}}),Ai[ku(n,C).name]=[{name:"wrapper",func:n}],vt.prototype.clone=l3,vt.prototype.reverse=a3,vt.prototype.value=u3,x.prototype.at=D4,x.prototype.chain=U4,x.prototype.commit=B4,x.prototype.next=j4,x.prototype.plant=H4,x.prototype.reverse=z4,x.prototype.toJSON=x.prototype.valueOf=x.prototype.value=W4,x.prototype.first=x.prototype.head,vl&&(x.prototype[vl]=V4),x},Ti=B5();Is?((Is.exports=Ti)._=Ti,$f._=Ti):En._=Ti}).call(Ll)})(Yc,Yc.exports);var Y=Yc.exports;const vM={chapters:[],selected:null},lE="podlove/publisher/chapter/INIT",Cg="podlove/publisher/chapter/UPDATE",aE="podlove/publisher/chapter/SELECT",Og="podlove/publisher/chapter/REMOVE",Ag="podlove/publisher/chapter/ADD",uE="podlove/publisher/chapter/PARSE",kg="podlove/publisher/chapter/PARSED",cE="podlove/publisher/chapter/SET",dE="podlove/publisher/chapter/DOWNLOAD",fE="podlove/publisher/chapter/SELECT_IMAGE",Vd="podlove/publisher/chapter/SET_IMAGE",yM=oe(lE),_M=oe(Cg),ms=oe(aE),bM=oe(Og),wM=oe(Ag),SM=oe(uE),pE=oe(kg),EM=oe(cE),$M=oe(dE),xM=oe(fE);oe(Vd);const TM=bn({[kg]:(e,t)=>({...e,selected:null,chapters:Y.get(t,["payload"],[])}),[cE]:(e,t)=>({...e,selected:null,chapters:Y.get(t,["payload"],[])}),[Cg]:(e,t)=>{let n=hE(e);const r=mE(e),i=e.chapters.reduce((a,c,d)=>[...a,d===t.payload.index?{...c,...t.payload.chapter}:c],[]).sort((a,c)=>a.start-c.start),l=i.findIndex(a=>r&&a.title==r.title);return{...e,chapters:i,selected:l>=0?l:n}},[aE]:(e,t)=>({...e,selected:t.payload}),[Ag]:e=>({...e,chapters:[...e.chapters,{start:Y.get(e,["chapters",e.chapters.length-1,"start"],0),title:"",href:"",image:""}]}),[Og]:(e,t)=>({...e,selected:null,chapters:e.chapters.filter((n,r)=>r!==t.payload)}),[Vd]:(e,t)=>({...e,chapters:e.chapters.map((n,r)=>r!==e.selected?n:{...n,image:t.payload})})},vM),CM=e=>e.chapters,hE=e=>e.selected,mE=e=>e.selected!==null?Y.get(e,["chapters",e.selected],null):null,Wp={chapters:CM,selectedIndex:hE,selected:mE},qp=function(e){if(!e)return 0;switch(e.length){case 0:return 0;case 1:return parseInt(e,10)*100;case 2:return parseInt(e,10)*10;default:return parseInt(e.substr(0,3),10)}},za=function(e){e=(e||"").trim();const t=/^(\d+)(?:\.(\d+))?$/,n=/^(\d+):(\d\d?)(?:\.(\d+))?$/,r=/^(\d+):(\d\d?):(\d\d?)(?:\.(\d+))?$/;let o,i=0,l=0,a=0,c=0;if(o=e.match(t))i=qp(o[2]),l=o[1]?parseInt(o[1],10):0;else if(o=e.match(n))i=qp(o[3]),l=o[2]?parseInt(o[2],10):0,a=o[1]?parseInt(o[1],10):0;else if(o=e.match(r))i=qp(o[4]),l=o[3]?parseInt(o[3],10):0,a=o[2]?parseInt(o[2],10):0,c=o[1]?parseInt(o[1],10):0;else return null;return((c*60+a)*60+l)*1e3+i};class Dt{constructor(t){this.totalMs=t}get totalSeconds(){return Math.floor(this.totalMs/1e3)}get totalMinutes(){return Math.floor(this.totalSeconds/60)}get totalHours(){return Math.floor(this.totalMinutes/60)}get milliseconds(){return this.totalMs%1e3}get seconds(){return this.totalSeconds%60}get minutes(){return this.totalMinutes%60}get hours(){return this.totalHours%60}get pretty(){return this.pad(this.totalHours)+":"+this.pad(this.minutes)+":"+this.pad(this.seconds)+"."+this.pad(this.milliseconds,"000")}get prettyShort(){return this.totalHours?this.pad(this.totalHours)+":"+this.pad(this.minutes)+":"+this.pad(this.seconds):this.pad(this.minutes)+":"+this.pad(this.seconds)}pad(t,n="00"){let r=""+t;return r.length<n.length?n.substring(0,n.length-r.length)+r:t}static fromString(t){let n=0;return t==parseInt(t,10)?n=parseInt(t,10):n=za(t)||0,new Dt(n)}}const R1=(e,t,n)=>{const r=[...e];return r.splice(n,0,r.splice(t,1)[0]),r},gE="podlove/publisher/episode/INIT",tl="podlove/publisher/episode/UPDATE",vE="podlove/publisher/episode/QUICKSAVE",yE="podlove/publisher/episode/SAVED",zh="podlove/publisher/episode/SLUG_CHANGED",Hd="podlove/publisher/episode/SET",_E="podlove/publisher/episode/SET_POSTER",bE="podlove/publisher/episode/SELECT_POSTER",Ig="podlove/publisher/episode/MOVE_CONTRIBUTION_UP",Pg="podlove/publisher/episode/MOVE_CONTRIBUTION_DOWN",Rg="podlove/publisher/episode/DELETE_CONTRIBUTION",Lg="podlove/publisher/episode/UPDATE_CONTRIBUTION",Fg="podlove/publisher/episode/ADD_CONTRIBUTION",wE="podlove/publisher/episode/CREATE_CONTRIBUTION",OM={id:null,slug:null,slug_frozen:!1,duration:null,number:null,subtitle:null,title:null,summary:null,type:null,episode_poster:null,poster:null,mnemonic:null,explicit:null,auphonic_production_id:null,is_auphonic_production_running:!1,auphonic_webhook_config:null,soundbite_start:null,soundbite_duration:null,soundbite_title:null,contributions:[],license_name:null,license_url:null,show:null},bt=oe(tl),AM=oe(vE),zd=oe(gE),kM=oe(bE),Ng=oe(Hd),IM=oe(Ig),PM=oe(Pg),RM=oe(Rg),Kp=oe(Lg),SE=oe(Fg),LM=oe(wE),FM=oe(yE),NM=oe(zh),MM=bn({[qr]:(e,t)=>({...e,id:Y.get(t,["payload","episode","id"],null),duration:Dt.fromString(Y.get(t,["payload","episode","duration"],null)).totalMs}),[tl]:(e,t)=>{const n=Y.get(t,["payload","prop"]),r=Y.get(t,["payload","value"],null);return["title","subtitle","summary","duration","slug","slug_frozen","auphonic_webhook_config","is_auphonic_production_running","soundbite_start","soundbite_duration","soundbite_title","license_name","license_url","show","number","episode_poster","poster","explicit"].includes(n)?{...e,[n]:r}:(console.debug("todo",n,r),{...e})},[Hd]:(e,t)=>({...e,slug:Y.get(t,["payload","slug"],e.slug),slug_frozen:Y.get(t,["payload","slug_frozen"],e.slug_frozen),number:Y.get(t,["payload","number"],e.number),duration:Y.get(t,["payload","duration"],e.duration),title:Y.get(t,["payload","title_clean"],e.title),subtitle:Y.get(t,["payload","subtitle"],e.subtitle),summary:Y.get(t,["payload","summary"],e.summary),type:Y.get(t,["payload","type"],e.type),episode_poster:Y.get(t,["payload","episode_poster"],e.episode_poster),poster:Y.get(t,["payload","poster"],e.poster),mnemonic:Y.get(t,["payload","mnemonic"],e.mnemonic),explicit:Y.get(t,["payload","explicit"],e.explicit),auphonic_production_id:Y.get(t,["payload","auphonic_production_id"],e.auphonic_production_id),is_auphonic_production_running:Y.get(t,["payload","is_auphonic_production_running"],e.is_auphonic_production_running),auphonic_webhook_config:Y.get(t,["payload","auphonic_webhook_config"],e.auphonic_webhook_config),soundbite_start:Y.get(t,["payload","soundbite_start"],e.soundbite_start),soundbite_duration:Y.get(t,["payload","soundbite_duration"],e.soundbite_duration),soundbite_title:Y.get(t,["payload","soundbite_title"],e.soundbite_title),license_name:Y.get(t,["payload","license_name"],e.license_name),license_url:Y.get(t,["payload","license_url"],e.license_url),contributions:Y.get(t,["payload","contributions"],e.contributions),show:Y.get(t,["payload","show"],e.show)}),[Ig]:(e,t)=>{const n=e.contributions.findIndex(r=>r.position===Y.get(t,["payload","position"]));return n<1?e:{...e,contributions:R1(e.contributions,n,n-1).map((r,o)=>({...r,position:o}))}},[Pg]:(e,t)=>{const n=e.contributions.findIndex(r=>r.position===Y.get(t,["payload","position"]));return n>e.contributions.length?e:{...e,contributions:R1(e.contributions,n,n+1).map((r,o)=>({...r,position:o}))}},[Rg]:(e,t)=>({...e,contributions:e.contributions.filter(({position:n})=>Y.get(t,["payload","position"])!==n).map((n,r)=>({...n,position:r}))}),[Lg]:(e,t)=>({...e,contributions:e.contributions.map(n=>n.contributor_id!==Y.get(t,["payload","contributor_id"])?n:Y.pick(Y.get(t,["payload"],{}),["id","contributor_id","role_id","group_id","position","comment"]))}),[Fg]:(e,t)=>({...e,contributions:[...e.contributions,{id:null,contributor_id:Y.get(t,["payload","id"],null),role_id:null,group_id:null,position:e.contributions.length,comment:null}]})},OM),Xt={id:e=>e.id,slug:e=>e.slug,slugFrozen:e=>e.slug_frozen,duration:e=>e.duration,number:e=>e.number,title:e=>e.title,subtitle:e=>e.subtitle,summary:e=>e.summary,type:e=>e.type,poster:e=>e.poster,episodePoster:e=>e.episode_poster,mnemonic:e=>e.mnemonic,explicit:e=>e.explicit,auphonicProductionId:e=>e.auphonic_production_id,isAuphonicProductionRunning:e=>e.is_auphonic_production_running,auphonicWebhookConfig:e=>e.auphonic_webhook_config,soundbite_start:e=>e.soundbite_start,soundbite_duration:e=>e.soundbite_duration,soundbite_title:e=>e.soundbite_title,license_name:e=>e.license_name,license_url:e=>e.license_url,contributions:e=>e.contributions,currentShow:e=>e.show},DM={baseUrl:null,api:{nonce:null,base:null,auth:null,bearer:null}},UM=bn({[qr]:(e,t)=>({...e,baseUrl:Y.get(t,["payload","baseUrl"],null),api:{base:Y.get(t,["payload","api","base"],null),nonce:Y.get(t,["payload","api","nonce"],null),auth:Y.get(t,["payload","api","auth"],null),bearer:Y.get(t,["payload","api","bearer"],null)}})},DM),Fl={baseUrl:e=>e.baseUrl,nonce:e=>e.api.nonce,base:e=>e.api.base,auth:e=>e.api.auth,bearer:e=>e.api.bearer},Wd="podlove/publisher/wordpress/UPDATE",EE="podlove/publisher/wordpress/SELECT_MEDIA_FROM_LIBRARY",Wh=oe(Wd),Mg=oe(EE),BM={id:null,title:null,featured_media:null},jM=bn({[qr]:(e,t)=>({...e,id:Y.get(t,["payload","post","id"],null),title:Y.get(t,["payload","post","title"],null),featured_media:Y.get(t,["payload","post","featured_media"],null)}),[Wd]:(e,t)=>{const n=Y.get(t,["payload","prop"]),r=Y.get(t,["payload","value"],null);return["title","featured_media"].includes(n)?{...e,[n]:r}:{...e}}},BM),Gp={id:e=>e.id,title:e=>e.title,featured_media:e=>e.featured_media},$E="podlove/publisher/transcript/INIT",xE="podlove/publisher/transcript/SET_TRANSCRIPTS",TE="podlove/publisher/transcript/SET_VOICES",Dg="podlove/publisher/transcript/UPDATE_VOICE",CE="podlove/publisher/transcript/IMPORT_TRANSCRIPTS",OE="podlove/publisher/transcript/IMPORT_ASSET_TRANSCRIPTS",AE="podlove/publisher/transcript/DELETE_TRANSCRIPTS",VM=oe($E),HM=oe(xE),zM=oe(TE),WM=oe(Dg),qM=oe(CE),KM=oe(OE),GM=oe(AE),XM={transcripts:[],voices:[]},YM=bn({[xE]:(e,t)=>({...e,transcripts:t.payload}),[TE]:(e,t)=>({...e,voices:t.payload.map(n=>({voice:n.voice,contributor:n.contributor_id}))}),[Dg]:(e,t)=>({...e,voices:e.voices.map(n=>n.voice===t.payload.voice?{...n,contributor:t.payload.contributor}:n)})},XM),L1={transcripts:e=>e.transcripts,voices:e=>e.voices},JM={contributors:[],roles:[],groups:[]},kE="podlove/publisher/contributors/INIT",IE="podlove/publisher/contributors/SET_CONTRIBUTORS",PE="podlove/publisher/contributors/SET_ROLES",RE="podlove/publisher/contributors/SET_GROUPS",LE="podlove/publisher/contributors/ADD",FE=oe(kE),ZM=oe(IE),QM=oe(PE),e8=oe(RE),t8=oe(LE),n8=bn({[IE]:(e,t)=>({...e,contributors:t.payload}),[PE]:(e,t)=>({...e,roles:t.payload}),[RE]:(e,t)=>({...e,groups:t.payload}),[LE]:(e,t)=>({...e,contributors:[...e.contributors,t.payload]})},JM),Xp={contributors:e=>e.contributors,roles:e=>e.roles,groups:e=>e.groups},r8={plus:{storage_enabled:null},metadata:{enable_episode_explicit:null,enable_episode_license:null,enable_episode_recording_date:null},tracking:{mode:null,window:null},website:{blog_title_template:null,custom_episode_slug:null,enable_generated_blog_post_title:null,episode_archive:null,episode_archive_slug:null,episode_number_padding:null,feeds_skip_redirect:null,hide_wp_feed_discovery:null,landing_page:null,merge_episodes:null,ssl_verify_peer:null,url_template:null,use_post_permastruct:null},assets:{image:null,chapter:null,transcript:null},media:{base_uri:null},modules:[]},o8=e=>{switch(e){case"0":return"podcast-cover";case"post-thumbnail":return"post-thumbnail";case"manual":return"manual";default:return null}},s8=e=>{switch(e){case"0":return"none";case"manual":return"manual";default:return null}},i8=bn({[qr]:(e,t)=>({...e,plus:{storage_enabled:Y.get(t,["payload","plus","storage_enabled"],null)===!0},metadata:{enable_episode_explicit:Y.get(t,["payload","expert_settings","metadata","enable_episode_explicit"],null)==="1",enable_episode_license:Y.get(t,["payload","expert_settings","metadata","enable_episode_license"],null)==="1",enable_episode_recording_date:Y.get(t,["payload","expert_settings","metadata","enable_episode_recording_date"],null)==="1"},tracking:{mode:Y.get(t,["payload","expert_settings","tracking","mode"],null),window:Y.get(t,["payload","expert_settings","tracking","mode"],null)},media:{base_uri:Y.get(t,["payload","media","base_uri"],null)},website:{blog_title_template:Y.get(t,["payload","expert_settings","website","blog_title_template"],null),custom_episode_slug:Y.get(t,["payload","expert_settings","website","custom_episode_slug"],null),enable_generated_blog_post_title:Y.get(t,["payload","expert_settings","website","enable_generated_blog_post_title"],null)==="on",episode_archive:Y.get(t,["payload","expert_settings","website","episode_archive"],null)==="on",episode_archive_slug:Y.get(t,["payload","expert_settings","website","episode_archive_slug"],null),episode_number_padding:Y.get(t,["payload","expert_settings","website","episode_number_padding"],null),feeds_skip_redirect:Y.get(t,["payload","expert_settings","website","feeds_skip_redirect"],null)==="on",hide_wp_feed_discovery:Y.get(t,["payload","expert_settings","website","hide_wp_feed_discovery"],null)==="on",landing_page:Y.get(t,["payload","expert_settings","website","landing_page"],null),merge_episodes:Y.get(t,["payload","expert_settings","website","merge_episodes"],null)==="on",ssl_verify_peer:Y.get(t,["payload","expert_settings","website","ssl_verify_peer"],null)==="on",url_template:Y.get(t,["payload","expert_settings","website","url_template"],null),use_post_permastruct:Y.get(t,["payload","expert_settings","website","use_post_permastruct"],null)==="on"},assets:{image:o8(Y.get(t,["payload","assignments","image"],null)),chapter:s8(Y.get(t,["payload","assignments","chapter"],null)),transcript:Y.get(t,["payload","assignments","transcript"],null)},modules:Y.get(t,["payload","modules"])})},r8),cs={autoGenerateEpisodeTitle:e=>e.website.enable_generated_blog_post_title,blogTitleTemplate:e=>e.website.blog_title_template,episodeNumberPadding:e=>e.website.episode_number_padding,imageAsset:e=>e.assets.image,enableEpisodeExplicit:e=>e.metadata.enable_episode_explicit,enablePlusStorage:e=>e.plus.storage_enabled,mediaFileBaseUri:e=>e.media.base_uri,modules:e=>e.modules},l8="podlove/publisher/podcast/INIT",NE="podlove/publisher/podcast/SET",a8="podlove/publisher/podcasr/SAVED",Ug="podlove/publisher/podcast/UPDATE",u8={title:null,subtitle:null,summary:null,mnemonic:null,itunes_type:null,author_name:null,poster:null,link:null,license_name:null,license_url:null};oe(l8);const c8=oe(NE);oe(a8);const oa=oe(Ug),d8=bn({[NE]:(e,t)=>({title:Y.get(t,["payload","title"],e.title),subtitle:Y.get(t,["payload","subtitle"],e.subtitle),summary:Y.get(t,["payload","summary"],e.summary),mnemonic:Y.get(t,["payload","mnemonic"],e.mnemonic),itunes_type:Y.get(t,["payload","itunes_type"],e.itunes_type),author_name:Y.get(t,["payload","author_name"],e.author_name),poster:Y.get(t,["payload","poster"],e.poster),link:Y.get(t,["payload","link"],e.link),license_name:Y.get(t,["payload","license_name"],e.license_name),license_url:Y.get(t,["payload","license_url"],e.license_url)}),[Ug]:(e,t)=>{const n=Y.get(t,["payload","prop"]),r=Y.get(t,["payload","value"],null);return["title","subtitle","summary","author_name","podcast_email","funding_url","funding_label","license_name","license_url"].includes(n)?{...e,[n]:r}:(console.debug("todo",n,r),{...e})}},u8),bo={title:e=>e.title,subtitle:e=>e.subtitle,summary:e=>e.summary,mnemonic:e=>e.mnemonic,itunesType:e=>e.itunes_type,author:e=>e.author_name,poster:e=>e.poster,link:e=>e.link,license_name:e=>e.license_name,license_url:e=>e.license_url},f8={totalState:"init",progress:0,currentEpisodeName:"",currentFileName:"",episodesWithFiles:[],isMigrationComplete:!1,showMigrationToolManually:!1},ME="podlove/publisher/plusFileMigration/INIT",DE="podlove/publisher/plusFileMigration/SET_EPISODES_WITH_FILES",UE="podlove/publisher/plusFileMigration/SET_TOTAL_STATE",BE="podlove/publisher/plusFileMigration/START_MIGRATION",jE="podlove/publisher/plusFileMigration/SET_CURRENT_METADATA",VE="podlove/publisher/plusFileMigration/SET_FILE_STATE",HE="podlove/publisher/plusFileMigration/SET_PROGRESS",zE="podlove/publisher/plusFileMigration/SET_MIGRATION_COMPLETE",WE="podlove/publisher/plusFileMigration/TOGGLE_MIGRATION_TOOL_MANUALLY",p8=oe(ME),h8=oe(DE),qh=oe(UE),m8=oe(BE),g8=oe(jE),sc=oe(VE),v8=oe(HE),y8=oe(zE),_8=oe(WE),b8=bn({[qr]:(e,t)=>({...e}),[DE]:(e,t)=>({...e,episodesWithFiles:t.payload.episodesWithFiles}),[UE]:(e,t)=>({...e,totalState:t.payload.totalState}),[jE]:(e,t)=>({...e,currentEpisodeName:t.payload.currentEpisodeName,currentFileName:t.payload.currentFileName}),[VE]:(e,t)=>({...e,episodesWithFiles:e.episodesWithFiles.map(n=>({...n,files:n.files.map(r=>({...r,state:r.name===t.payload.filename?t.payload.state:r.state}))}))}),[HE]:(e,t)=>({...e,progress:t.payload.progress}),[zE]:(e,t)=>({...e,isMigrationComplete:t.payload.isMigrationComplete}),[WE]:e=>({...e,showMigrationToolManually:!e.showMigrationToolManually})},f8),Vs={totalState:e=>e.totalState,progress:e=>e.progress,currentEpisodeName:e=>e.currentEpisodeName,currentFileName:e=>e.currentFileName,episodesWithFiles:e=>e.episodesWithFiles,isMigrationComplete:e=>e.isMigrationComplete,showMigrationToolManually:e=>e.showMigrationToolManually},w8={features:{fileStorage:!1,feedProxy:!1},token:"",user:null,isLoading:!0,isSaving:!1},qE="podlove/publisher/plus/INIT",Bg="podlove/publisher/plus/SET_FEATURE",KE="podlove/publisher/plus/GET_TOKEN",GE="podlove/publisher/plus/SET_TOKEN",XE="podlove/publisher/plus/SET_USER",YE="podlove/publisher/plus/SAVE_TOKEN",JE="podlove/publisher/plus/SET_LOADING",ZE="podlove/publisher/plus/SET_SAVING",qd=oe(qE),Kh=oe(Bg),S8=oe(KE),Gh=oe(GE),sa=oe(XE),E8=oe(YE),F1=oe(JE),N1=oe(ZE),$8=bn({[qr]:(e,t)=>({...e}),[Bg]:(e,t)=>({...e,features:{...e.features,[t.payload.feature]:t.payload.value}}),[GE]:(e,t)=>({...e,token:t.payload}),[XE]:(e,t)=>({...e,user:t.payload}),[JE]:(e,t)=>({...e,isLoading:t.payload}),[ZE]:(e,t)=>({...e,isSaving:t.payload})},w8),Nl={features:e=>e.features,token:e=>e.token,user:e=>e.user,isLoading:e=>e.isLoading,isSaving:e=>e.isSaving},x8={token:null,production:null,productions:[],presets:[],preset:null,services:[],service_files:{},tracks:[],file_selections:{},current_file_selection:null,is_saving:!1,is_initializing:!0,publish_when_done:!1,plus_transfer_status:null},QE="podlove/publisher/auphonic/INIT",e$="podlove/publisher/auphonic/INIT_DONE",t$="podlove/publisher/auphonic/SET_TOKEN",Jc="podlove/publisher/auphonic/SET_PRODUCTION",n$="podlove/publisher/auphonic/SET_PRODUCTIONS",r$="podlove/publisher/auphonic/SET_SERVICES",o$="podlove/publisher/auphonic/CREATE_PRODUCTION",s$="podlove/publisher/auphonic/CREATE_MULTITRACK_PRODUCTION",i$="podlove/publisher/auphonic/SAVE_PRODUCTION",l$="podlove/publisher/auphonic/START_PRODUCTION",Zc="podlove/publisher/auphonic/DESELECT_PRODUCTION",T8="podlove/publisher/auphonic/SELECT_SERVICE",jg="podlove/publisher/auphonic/SET_SERVICE_FILES",C8="podlove/publisher/auphonic/SELECT_TRACKS",a$="podlove/publisher/auphonic/ADD_TRACK",u$="podlove/publisher/auphonic/REMOVE_TRACK",c$="podlove/publisher/auphonic/UPDATE_TRACK",d$="podlove/publisher/auphonic/SET_PRESETS",Vg="podlove/publisher/auphonic/SET_PRESET",Hg="podlove/publisher/auphonic/UPDATE_FILE_SELECTION",f$="podlove/publisher/auphonic/START_POLLING",Qc="podlove/publisher/auphonic/STOP_POLLING",p$="podlove/publisher/auphonic/START_SAVING",h$="podlove/publisher/auphonic/STOP_SAVING",zg="podlove/publisher/auphonic/UPDATE_WEBHOOK",Wg="podlove/publisher/auphonic/SET_PLUS_TRANSFER_STATUS",m$="podlove/publisher/auphonic/TRIGGER_PLUS_TRANSFER",g$="podlove/publisher/auphonic/LOAD_PLUS_TRANSFER_STATUS",O8=oe(QE),A8=oe(e$),k8=oe(t$),mi=oe(Jc),v$=oe(Zc),y$=oe(n$),I8=oe(o$),P8=oe(s$),_$=oe(i$),b$=oe(l$),R8=oe(d$),qg=oe(Vg),L8=oe(r$),F8=oe(jg),w$=oe(T8),S$=oe(Hg);oe(C8);const N8=oe(a$),E$=oe(u$),$$=oe(c$),M8=oe(f$),M1=oe(Qc),D8=oe(p$),U8=oe(h$),x$=oe(zg),to=oe(Wg),T$=oe(m$),B8=oe(g$),j8=bn({[e$]:e=>({...e,is_initializing:!1}),[Hg]:(e,t)=>({...e,current_file_selection:t.payload.key,file_selections:{...e.file_selections,[t.payload.key]:{...e.file_selections[t.payload.key],[t.payload.prop]:t.payload.value}}}),[a$]:(e,t)=>{const n=`Track ${e.tracks.length+1}`;return{...e,tracks:[...e.tracks,{identifier:n,identifier_new:n,fileSelection:null,input_file_name:"",filtering:!0,noise_and_hum_reduction:!1,fore_background:"auto",track_gain:"0",save_state:"new"}]}},[u$]:(e,t)=>({...e,tracks:e.tracks.filter((n,r)=>n.identifier!=t.payload)}),[c$]:(e,t)=>{const n=(o,i)=>o.save_state=="new"?{save_state:"new"}:{save_state:"edited"},r=e.tracks.reduce((o,i,l)=>[...o,l===t.payload.index?{...i,...t.payload.track,...n(i,t.payload.track)}:i],[]);return{...e,tracks:r}},[jg]:(e,t)=>{const{uuid:n,files:r}=t.payload;return{...e,service_files:{...e.service_files,[n]:r}}},[r$]:(e,t)=>({...e,services:t.payload}),[d$]:(e,t)=>({...e,presets:t.payload}),[n$]:(e,t)=>({...e,productions:t.payload}),[Jc]:(e,t)=>{var o,i;const n=t.payload;return{...e,production:n,file_selections:(()=>{var l;if(n!=null&&n.is_multitrack)return((l=n==null?void 0:n.multi_input_files)==null?void 0:l.reduce((a,c,d)=>{let p=c.service;return p||(c.input_file.substring(0,4)=="http"?p="url":p="file"),{...a,[`${n==null?void 0:n.uuid}_t${d}`]:{currentServiceSelection:p,fileSelection:c.service?c.input_file:null,urlValue:p=="url"?c.input_file:null,fileValue:null}}},{}))||{};{let a=n==null?void 0:n.service;const c=n==null?void 0:n.input_file;return a||((c==null?void 0:c.substring(0,4))=="http"?a="url":a="file"),{[`${n==null?void 0:n.uuid}`]:{currentServiceSelection:a,fileSelection:a?c:null,urlValue:a=="url"?c:null,fileValue:null}}}})(),tracks:((i=(o=t.payload)==null?void 0:o.multi_input_files)==null?void 0:i.reduce((l,a)=>{var c,d,p;return[...l,{identifier:a.id,identifier_new:a.id,filtering:(c=a.algorithms)==null?void 0:c.filtering,noise_and_hum_reduction:(d=a.algorithms)==null?void 0:d.denoise,fore_background:(p=a.algorithms)==null?void 0:p.backforeground,input_file_name:a.input_file,save_state:"unchanged"}]},[]))||[]}},[Zc]:e=>({...e,production:null,tracks:[],file_selections:[],current_file_selection:null}),[Vg]:(e,t)=>({...e,preset:t.payload}),[t$]:(e,t)=>({...e,token:t.payload}),[p$]:(e,t)=>({...e,is_saving:!0}),[h$]:(e,t)=>({...e,is_saving:!1}),[zg]:(e,t)=>({...e,publish_when_done:t.payload}),[Wg]:(e,t)=>({...e,plus_transfer_status:t.payload})},x8),V8=e=>e?e.map(t=>{let n={start:t.start,title:t.title};return t.image&&(n.image=t.image),t.url&&(n.url=t.url),n}):[],H8=e=>e?e.map(t=>({format:t.format,bitrate:t.bitrate,suffix:t.suffix,ending:t.ending,filename:t.filename,mono_mixdown:t.mono_mixdown,split_on_chapters:t.split_on_chapters,outgoing_services:t.outgoing_services})):[],z8=e=>{const t=e.production;return{uuid:t==null?void 0:t.uuid,metadata:t==null?void 0:t.metadata,input_file:t==null?void 0:t.input_file,chapters:V8(t==null?void 0:t.chapters),output_files:H8(t==null?void 0:t.output_files),output_basename:t==null?void 0:t.output_basename,outgoing_services:t==null?void 0:t.outgoing_services,algorithms:t==null?void 0:t.algorithms,speech_recognition:t==null?void 0:t.speech_recognition}},dn={token:e=>e.token,production:e=>e.production,productionId:e=>{var t;return(t=e.production)==null?void 0:t.uuid},productions:e=>e.productions,presets:e=>e.presets,preset:e=>e.preset,productionPayload:z8,services:e=>e.services,incomingServices:e=>e.services.filter(t=>t.incoming),outgoingServices:e=>e.services.filter(t=>t.outgoing),serviceFiles:e=>e.service_files,tracks:e=>e.tracks,fileSelections:e=>e.file_selections,currentFileSelection:e=>e.current_file_selection,isSaving:e=>e.is_saving,isInitializing:e=>e.is_initializing,publishWhenDone:e=>e.publish_when_done,plusTransferStatus:e=>{var t;return(t=e.plus_transfer_status)==null?void 0:t.status},plusTransferFiles:e=>{var t;return(t=e.plus_transfer_status)==null?void 0:t.files},plusTransferErrors:e=>{var t;return(t=e.plus_transfer_status)==null?void 0:t.errors}},W8={},C$="podlove/publisher/progress/SET_PROGRESS",O$="podlove/publisher/progress/SET_PROGRESS_STATUS",A$="podlove/publisher/progress/RESET_PROGRESS",k$=oe(C$),ia=oe(O$),I$=oe(A$),q8=bn({[C$]:(e,t)=>{const{key:n,progress:r,status:o,message:i}=t.payload,l=e[n]||{progress:0,status:"init"};return{...e,[n]:{...l,progress:r,...o&&{status:o},...i!==void 0&&{message:i}}}},[O$]:(e,t)=>{const{key:n,status:r,message:o}=t.payload,i=e[n]||{progress:0,status:"init"};return{...e,[n]:{...i,status:r,...o!==void 0&&{message:o}}}},[A$]:(e,t)=>{const n={...e};return delete n[t.payload],n}},W8),K8=(e,t)=>{var n;return((n=e[t])==null?void 0:n.progress)??0},G8=(e,t)=>{var n;return((n=e[t])==null?void 0:n.status)??"init"},X8=(e,t)=>{var n;return(n=e[t])==null?void 0:n.message},Yp={progress:K8,status:G8,message:X8},Y8={is_initializing:!0,slug_autogeneration_enabled:!1,files:[],selectedFiles:[]},P$="podlove/publisher/mediafiles/INIT",R$="podlove/publisher/mediafiles/INIT_DONE",L$="podlove/publisher/mediafiles/SET",Kg="podlove/publisher/mediafiles/UPDATE",ed="podlove/publisher/mediafiles/ENABLE",td="podlove/publisher/mediafiles/DISABLE",F$="podlove/publisher/mediafiles/VERIFY",N$="podlove/publisher/mediafiles/VERIFY_ALL",M$="podlove/publisher/mediafiles/UPLOAD_INTENT",D$="podlove/publisher/mediafiles/PLUS_UPLOAD_INTENT",Gg="podlove/publisher/mediafiles/SET_UPLOAD_URL",U$="podlove/publisher/mediafiles/ENABLE_SLUG_AUTOGEN",B$="podlove/publisher/mediafiles/DISABLE_SLUG_AUTOGEN",j$="podlove/publisher/mediafiles/FILE_SELECTED",Wa="podlove/publisher/mediafiles/SET_FILE_INFO",V$="podlove/publisher/mediafiles/ADD_SELECTED_FILES",H$="podlove/publisher/mediafiles/REMOVE_SELECTED_FILE",z$="podlove/publisher/mediafiles/UNFREEZE_SLUG",J8=oe(P$),Z8=oe(R$),Q8=oe(L$),Xh=oe(Kg),eD=oe(ed),tD=oe(td),nD=oe(F$),rD=oe(N$),oD=oe(M$),sD=oe(D$),iD=oe(Gg),lD=oe(U$),W$=oe(B$),aD=(e,t)=>({type:j$,payload:{files:e,episodeSlug:t}});oe(V$);const uD=oe(H$),cD=oe(z$),dD=bn({[R$]:e=>({...e,is_initializing:!1}),[L$]:(e,t)=>({...e,files:t.payload}),[Kg]:(e,t)=>({...e,files:e.files.reduce((n,r)=>[...n,r.asset_id==t.payload.asset_id?{...r,...t.payload}:r],[])}),[ed]:(e,t)=>({...e,files:e.files.reduce((n,r)=>[...n,r.asset_id==t.payload?{...r,enable:!0}:r],[])}),[td]:(e,t)=>({...e,files:e.files.reduce((n,r)=>[...n,r.asset_id==t.payload?{...r,enable:!1}:r],[])}),[U$]:e=>({...e,slug_autogeneration_enabled:!0}),[B$]:e=>({...e,slug_autogeneration_enabled:!1}),[Wa]:(e,t)=>({...e,selectedFiles:t.payload}),[V$]:(e,t)=>({...e,selectedFiles:[...e.selectedFiles,...t.payload]}),[H$]:(e,t)=>({...e,selectedFiles:e.selectedFiles.filter(n=>n.newName!==t.payload)})},Y8),ic={isInitializing:e=>e.is_initializing,slugAutogenerationEnabled:e=>e.slug_autogeneration_enabled,files:e=>e.files,selectedFiles:e=>e.selectedFiles},fD={episodeList:[],selectEpisodes:[]},q$="podlove/publisher/relatedEpisodes/INIT",K$="podlove/publisher/relatedEpisodes/SET_EPISODE_LIST",Xg="podlove/publisher/relatedEpisodes/SET_SELECTED_EPISODES",pD="podlove/publisher/relatedEpisodes/UPDATE_RELATED_EPISODES",hD=oe(q$),mD=oe(K$),G$=oe(Xg);oe(pD);const gD=bn({[qr]:(e,t)=>({...e}),[K$]:(e,t)=>({...e,episodeList:t.payload}),[Xg]:(e,t)=>({...e,selectEpisodes:t.payload})},fD),D1={episodeList:e=>e.episodeList,selectEpisodes:e=>e.selectEpisodes},Yg="podlove/publisher/shows/INIT",Jg="podlove/publisher/shows/SET",nd="podlove/publisher/shows/SELECT",X$=oe(Yg),Y$=oe(Jg),J$=oe(nd),Z$={shows:[]},Q$=bn({[Jg]:(e,t)=>({...e,shows:Y.get(t,["payload"],[])})},Z$),ex={shows:e=>e.shows},vD=Object.freeze(Object.defineProperty({__proto__:null,INIT:Yg,SELECT:nd,SET:Jg,init:X$,initialState:Z$,reducer:Q$,select:J$,selectors:ex,set:Y$},Symbol.toStringTag,{value:"Module"})),tx="podlove/publisher/admin/INIT",nx="podlove/publisher/admin/SET",Zg="podlove/publisher/admin/UPDATE_TYPE",yD={bannerHide:null,type:null,feedUrl:null};oe(tx);const _D=oe(nx);oe(Zg);const bD=bn({[nx]:(e,t)=>({bannerHide:Y.get(t,["payload","banner_hide"],e.bannerHide),type:Y.get(t,["payload","type"],e.type),feedUrl:Y.get(t,["payload","feedUrl"],e.feedUrl)}),[Zg]:(e,t)=>({...e,type:t.payload})},yD),Jp={bannerHide:e=>e.bannerHide,type:e=>e.type,feedUrl:e=>e.feedUrl},me={lifecycle:e=>e.lifecycle,chapters:e=>e.chapters,podcast:e=>e.podcast,episode:e=>e.episode,runtime:e=>e.runtime,post:e=>e.post,transcripts:e=>e.transcripts,contributors:e=>e.contributors,auphonic:e=>e.auphonic,progress:e=>e.progress,mediafiles:e=>e.mediafiles,settings:e=>e.settings,relatedEpisodes:e=>e.relatedEpisodes,shows:e=>e.shows,admin:e=>e.admin,plusFileMigration:e=>e.plusFileMigration,plus:e=>e.plus},wD={bootstrapped:he(me.lifecycle,gM.bootstrapped)},SD={token:he(me.auphonic,dn.token),productionId:he(me.auphonic,dn.productionId),productions:he(me.auphonic,dn.productions),production:he(me.auphonic,dn.production),presets:he(me.auphonic,dn.presets),preset:he(me.auphonic,dn.preset),productionPayload:he(me.auphonic,dn.productionPayload),incomingServices:he(me.auphonic,dn.incomingServices),outgoingServices:he(me.auphonic,dn.outgoingServices),serviceFiles:he(me.auphonic,dn.serviceFiles),tracks:he(me.auphonic,dn.tracks),fileSelections:he(me.auphonic,dn.fileSelections),currentFileSelection:he(me.auphonic,dn.currentFileSelection),isSaving:he(me.auphonic,dn.isSaving),isInitializing:he(me.auphonic,dn.isInitializing),publishWhenDone:he(me.auphonic,dn.publishWhenDone),plusTransferStatus:he(me.auphonic,dn.plusTransferStatus),plusTransferFiles:he(me.auphonic,dn.plusTransferFiles),plusTransferErrors:he(me.auphonic,dn.plusTransferErrors)},ED={progress:he([me.progress,(e,t)=>t],Yp.progress),status:he([me.progress,(e,t)=>t],Yp.status),message:he([me.progress,(e,t)=>t],Yp.message)},$D={title:he(me.podcast,bo.title),subtitle:he(me.podcast,bo.subtitle),summary:he(me.podcast,bo.summary),mnemonic:he(me.podcast,bo.mnemonic),itunesType:he(me.podcast,bo.itunesType),author:he(me.podcast,bo.author),poster:he(me.podcast,bo.poster),link:he(me.podcast,bo.link),license_name:he(me.podcast,bo.license_name),license_url:he(me.podcast,bo.license_url)},xD={list:he(me.chapters,Wp.chapters),selected:he(me.chapters,Wp.selected),selectedIndex:he(me.chapters,Wp.selectedIndex)},rx={contributors:he(me.contributors,Xp.contributors),roles:he(me.contributors,Xp.roles),groups:he(me.contributors,Xp.groups)},TD={id:he(me.episode,Xt.id),slug:he(me.episode,Xt.slug),slugFrozen:he(me.episode,Xt.slugFrozen),duration:he(me.episode,Xt.duration),number:he(me.episode,Xt.number),title:he(me.episode,Xt.title),subtitle:he(me.episode,Xt.subtitle),summary:he(me.episode,Xt.summary),type:he(me.episode,Xt.type),poster:he(me.episode,Xt.poster),episodePoster:he(me.episode,Xt.episodePoster),mnemonic:he(me.episode,Xt.mnemonic),explicit:he(me.episode,Xt.explicit),soundbite_start:he(me.episode,Xt.soundbite_start),soundbite_duration:he(me.episode,Xt.soundbite_duration),soundbite_title:he(me.episode,Xt.soundbite_title),auphonicProductionId:he(me.episode,Xt.auphonicProductionId),isAuphonicProductionRunning:he(me.episode,Xt.isAuphonicProductionRunning),auphonicWebhookConfig:he(me.episode,Xt.auphonicWebhookConfig),license_name:he(me.episode,Xt.license_name),license_url:he(me.episode,Xt.license_url),contributions:he(he(me.episode,Xt.contributions),rx.contributors,(e,t)=>e.map(r=>({...r,...r.contributor_id?t.find(({id:o})=>o.toString()===r.contributor_id.toString()):{}}))),currentShow:he(me.episode,Xt.currentShow)},CD={isInitializing:he(me.mediafiles,ic.isInitializing),files:he(me.mediafiles,ic.files),selectedFiles:he(me.mediafiles,ic.selectedFiles),slugAutogenerationEnabled:he(me.mediafiles,ic.slugAutogenerationEnabled)},OD={baseUrl:he(me.runtime,Fl.baseUrl),nonce:he(me.runtime,Fl.nonce),base:he(me.runtime,Fl.base),auth:he(me.runtime,Fl.auth),bearer:he(me.runtime,Fl.bearer)},AD={id:he(me.post,Gp.id),title:he(me.post,Gp.title),featuredMedia:he(me.post,Gp.featured_media)},kD={list:he(me.transcripts,L1.transcripts),voices:he(me.transcripts,L1.voices)},ID={autoGenerateEpisodeTitle:he(me.settings,cs.autoGenerateEpisodeTitle),blogTitleTemplate:he(me.settings,cs.blogTitleTemplate),episodeNumberPadding:he(me.settings,cs.episodeNumberPadding),mediaFileBaseUri:he(me.settings,cs.mediaFileBaseUri),imageAsset:he(me.settings,cs.imageAsset),enableEpisodeExplicit:he(me.settings,cs.enableEpisodeExplicit),enablePlusStorage:he(me.settings,cs.enablePlusStorage),modules:he(me.settings,cs.modules)},PD={episodeList:he(me.relatedEpisodes,D1.episodeList),selectEpisode:he(me.relatedEpisodes,D1.selectEpisodes)},RD={list:he(me.shows,ex.shows)},LD={bannerHide:he(me.admin,Jp.bannerHide),type:he(me.admin,Jp.type),feedUrl:he(me.admin,Jp.feedUrl)},FD={totalState:he(me.plusFileMigration,Vs.totalState),progress:he(me.plusFileMigration,Vs.progress),currentEpisodeName:he(me.plusFileMigration,Vs.currentEpisodeName),currentFileName:he(me.plusFileMigration,Vs.currentFileName),episodesWithFiles:he(me.plusFileMigration,Vs.episodesWithFiles),isMigrationComplete:he(me.plusFileMigration,Vs.isMigrationComplete),showMigrationToolManually:he(me.plusFileMigration,Vs.showMigrationToolManually)},ND={features:he(me.plus,Nl.features),token:he(me.plus,Nl.token),user:he(me.plus,Nl.user),isLoading:he(me.plus,Nl.isLoading),isSaving:he(me.plus,Nl.isSaving)},B={lifecycle:wD,podcast:$D,chapters:xD,episode:TD,runtime:OD,post:AD,transcripts:kD,contributors:rx,settings:ID,auphonic:SD,progress:ED,mediafiles:CD,relatedEpisodes:PD,shows:RD,admin:LD,plusFileMigration:FD,plus:ND},MD=pS({lifecycle:mM,chapters:TM,episode:MM,runtime:UM,post:jM,transcripts:YM,contributors:n8,settings:i8,podcast:d8,auphonic:j8,progress:q8,mediafiles:dD,relatedEpisodes:gD,shows:Q$,admin:bD,plusFileMigration:b8,plus:$8});var U1=function(t){return{done:!0,value:t}},Zp={};function Kd(e){return Fd(e)?"channel":$S(e)?String(e):Gn(e)?e.name:String(e)}function Gd(e,t,n){var r,o,i,l=t;function a(c,d){if(l===Zp)return U1(c);if(d&&!o)throw l=Zp,d;r&&r(c);var p=d?e[o](d):e[l]();return l=p.nextState,i=p.effect,r=p.stateUpdater,o=p.errorState,l===Zp?U1(c):i}return Vh(a,function(c){return a(null,c)},n)}function DD(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i={done:!1,value:oo(e)},l=function(p){return{done:!1,value:St.apply(void 0,[t].concat(r,[p]))}},a,c=function(p){return a=p};return Gd({q1:function(){return{nextState:"q2",effect:i,stateUpdater:c}},q2:function(){return{nextState:"q1",effect:l(a)}}},"q1","takeEvery("+Kd(e)+", "+t.name+")")}function UD(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i={done:!1,value:oo(e)},l=function(y){return{done:!1,value:St.apply(void 0,[t].concat(r,[y]))}},a=function(y){return{done:!1,value:aN(y)}},c,d,p=function(y){return c=y},h=function(y){return d=y};return Gd({q1:function(){return{nextState:"q2",effect:i,stateUpdater:h}},q2:function(){return c?{nextState:"q3",effect:a(c)}:{nextState:"q1",effect:l(d),stateUpdater:p}},q3:function(){return{nextState:"q1",effect:l(d),stateUpdater:p}}},"q1","takeLatest("+Kd(e)+", "+t.name+")")}function BD(e,t,n){for(var r=arguments.length,o=new Array(r>3?r-3:0),i=3;i<r;i++)o[i-3]=arguments[i];var l,a,c=function(){return{done:!1,value:oo(a)}},d=function(S){return{done:!1,value:St.apply(void 0,[n].concat(o,[S]))}},p={done:!1,value:Md(e)},h=function(S){return l=S},v=function(S){return a=S},y=!Fd(t);return y||v(t),Gd({q1:function(){var S={done:!1,value:uN(t,Q7(1))};return{nextState:"q2",effect:S,stateUpdater:v}},q2:function(){return{nextState:"q3",effect:c(),stateUpdater:h}},q3:function(){return{nextState:"q4",effect:d(l)}},q4:function(){return{nextState:"q2",effect:p}}},y?"q1":"q2","throttle("+Kd(t)+", "+n.name+")")}function jD(e,t,n){for(var r=arguments.length,o=new Array(r>3?r-3:0),i=3;i<r;i++)o[i-3]=arguments[i];var l,a,c={done:!1,value:oo(t)},d={done:!1,value:Hh({action:oo(t),debounce:Md(e)})},p=function(S){return{done:!1,value:St.apply(void 0,[n].concat(o,[S]))}},h=function(S){return{done:!1,value:S}},v=function(S){return l=S},y=function(S){return a=S};return Gd({q1:function(){return{nextState:"q2",effect:c,stateUpdater:v}},q2:function(){return{nextState:"q3",effect:d,stateUpdater:y}},q3:function(){return a.debounce?{nextState:"q1",effect:p(l)}:{nextState:"q2",effect:h(a.action),stateUpdater:v}}},"q1","debounce("+Kd(t)+", "+n.name+")")}function Ne(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return St.apply(void 0,[DD,e,t].concat(r))}function B1(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return St.apply(void 0,[UD,e,t].concat(r))}function ox(e,t,n){for(var r=arguments.length,o=new Array(r>3?r-3:0),i=3;i<r;i++)o[i-3]=arguments[i];return St.apply(void 0,[BD,e,t,n].concat(o))}function Yh(e,t,n){for(var r=arguments.length,o=new Array(r>3?r-3:0),i=3;i<r;i++)o[i-3]=arguments[i];return St.apply(void 0,[jD,e,t,n].concat(o))}function VD(){return function*(){const e=yield $t(WD,"click","button.editor-post-publish-button");yield Ne(e,HD),yield Ne(qr,zD)}}function*HD(){yield te(fM())}function*zD(){yield te(pM())}function WD(e,t){return eE(n=>{let r;const o=i=>{n(i)};return window.addEventListener("load",()=>{r=document.querySelector(t),r==null||r.addEventListener(e,o)}),()=>{r==null||r.removeEventListener(e,o),n(zi)}})}const Jh=e=>eE(t=>(e(r=>{t(r||{})}),()=>{}));function*cr(e,t,...n){return yield St(function*(){for(;;){const o=yield oo(e);yield $t(t,...n.concat(o))}})}function*qD(e){if(!(yield be(e))){for(;;)if(yield oo("*"),yield be(e))return}}function*KD(e,t){try{for(;;){const n=yield oo(e);if(t.constructor.name==="GeneratorFunction")yield $t(function*(){yield*t(n)});else{const r=t(n);r&&(yield te(r))}}}finally{(yield cN())&&e.close()}}function*sx(e){const t=yield $t(Sg);return yield lN(KD,t,e),t}const ix=e=>t=>n=>{if(n.total){const r=Math.round(n.loaded*100/n.total),o={key:t,progress:r};e.put(o)}},fl=(e,t={})=>{const n=Object.keys(t).map(r=>encodeURIComponent(r)+"="+encodeURIComponent(t[r])).join("&");return e+=(e.indexOf("?")===-1?"?":"&")+n},qa=(e=console.error)=>async t=>{let n;try{n=await t.json()}catch{n={}}return t.status>=300?(e(n),{error:n}):{result:n}},lx=({nonce:e,auth:t,bearer:n},r={})=>({"Content-Type":"application/json",Accept:"application/json",...n?{Authorization:`Bearer ${n}`}:{},...t?{Authorization:`Basic ${t}`}:{},...e?{"X-WP-Nonce":e}:{},...r}),j1=({errorHandler:e,nonce:t,auth:n,bearer:r,method:o,urlProcessor:i})=>(l,{headers:a,query:c}={})=>fetch(fl(i?i(l):l,c),{method:o,headers:lx({nonce:t,auth:n,bearer:r},a)}).then(qa(e)),V1=({errorHandler:e,nonce:t,auth:n,bearer:r,method:o,urlProcessor:i})=>(l,a,{headers:c,query:d}={})=>fetch(fl(i?i(l):l,d),{method:o,headers:lx({nonce:t,auth:n,bearer:r},c),body:JSON.stringify(a)}).then(qa(e)),GD=Y.curry(({base:e,version:t,nonce:n,auth:r,bearer:o,errorHandler:i})=>({get:j1({nonce:n,auth:r,bearer:o,method:"GET",errorHandler:i,urlProcessor:l=>`${e}/${t}/${l}`}),delete:j1({nonce:n,auth:r,bearer:o,errorHandler:i,method:"DELETE",urlProcessor:l=>`${e}/${t}/${l}`}),post:V1({nonce:n,auth:r,bearer:o,errorHandler:i,method:"POST",urlProcessor:l=>`${e}/${t}/${l}`}),put:V1({nonce:n,auth:r,bearer:o,errorHandler:i,method:"PUT",urlProcessor:l=>`${e}/${t}/${l}`})})),ax="podlove/publisher/NOTIFY",Qg=oe(ax),XD={};bn({},XD);function*Kr(){yield $t(qD,B.lifecycle.bootstrapped);const e=yield be(B.runtime.base),t=yield be(B.runtime.nonce),n=yield be(B.runtime.auth),r=yield be(B.runtime.bearer);return GD({base:e,version:"v2",nonce:t,auth:n,bearer:r,errorHandler:function(i){let l="An error occurred";typeof i=="string"?l=i:i&&typeof i=="object"&&(i.code&&i.message?l=`${i.code}: ${i.message}`:l=i.message||i.code||"An error occurred"),tf.dispatch(Qg({type:"error",message:l}))}})}function*YD(){const e=yield Kr();yield St(JD,e),yield Ne(Ug,ZD)}function*JD(e){const{result:t}=yield e.get("podcast");t&&(yield te(c8(t)))}function ZD(e){const t=Y.get(e,["payload","prop"]);Y.get(e,["payload","value"],null)}function QD(){return function*(){yield cr(qr,YD)}}function e9(){return function*(){yield Ne(ax,t9)}}function*t9(e){const t=Y.get(globalThis,["wp","data","dispatch"]);t?n9(t,Y.get(e,["payload"])):r9(e.payload)}function n9(e,{type:t,message:n}){n&&e("core/notices").createNotice(t,n,{type:"snackbar",isDismissible:!0})}function r9({type:e,message:t}){switch(e){case"success":case"info":console.log(t);break;case"warning":console.warn(t);break;case"error":console.error(t);break}}var ux={};/*! For license information please see keyboard.js.LICENSE.txt */(()=>{var e={9620:(o,i)=>{function l(v){if(v&&typeof v=="object"){var y=v.which||v.keyCode||v.charCode;y&&(v=y)}if(typeof v=="number")return p[v];var b,S=String(v);return(b=a[S.toLowerCase()])?b:(b=c[S.toLowerCase()])||(S.length===1?S.charCodeAt(0):void 0)}l.isEventKey=function(v,y){if(v&&typeof v=="object"){var b=v.which||v.keyCode||v.charCode;if(b==null)return!1;if(typeof y=="string"){var S;if((S=a[y.toLowerCase()])||(S=c[y.toLowerCase()]))return S===b}else if(typeof y=="number")return y===b;return!1}};var a=(i=o.exports=l).code=i.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},c=i.aliases={windows:91,"⇧":16,"⌥":18,"⌃":17,"⌘":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};for(d=97;d<123;d++)a[String.fromCharCode(d)]=d-32;for(var d=48;d<58;d++)a[d-48]=d;for(d=1;d<13;d++)a["f"+d]=d+111;for(d=0;d<10;d++)a["numpad "+d]=d+96;var p=i.names=i.title={};for(d in a)p[a[d]]=d;for(var h in c)a[h]=c[h]}},t={};function n(o){var i=t[o];if(i!==void 0)return i.exports;var l=t[o]={exports:{}};return e[o](l,l.exports,n),l.exports}n.n=o=>{var i=o&&o.__esModule?()=>o.default:()=>o;return n.d(i,{a:i}),i},n.d=(o,i)=>{for(var l in i)n.o(i,l)&&!n.o(o,l)&&Object.defineProperty(o,l,{enumerable:!0,get:i[l]})},n.o=(o,i)=>Object.prototype.hasOwnProperty.call(o,i),n.r=o=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})};var r={};(()=>{function o(Q){return Q!=null&&typeof Q=="object"&&Q["@@functional/placeholder"]===!0}function i(Q){return function ce(ve){return arguments.length===0||o(ve)?ce:Q.apply(this,arguments)}}function l(Q){return function ce(ve,Ce){switch(arguments.length){case 0:return ce;case 1:return o(ve)?ce:i(function(We){return Q(ve,We)});default:return o(ve)&&o(Ce)?ce:o(ve)?i(function(We){return Q(We,Ce)}):o(Ce)?i(function(We){return Q(ve,We)}):Q(ve,Ce)}}}n.r(r),n.d(r,{keydown:()=>De,keyup:()=>Xe});const a=Number.isInteger||function(Q){return Q<<0===Q};function c(Q){return Object.prototype.toString.call(Q)==="[object String]"}const d=l(function(Q,ce){var ve=Q<0?ce.length+Q:Q;return c(ce)?ce.charAt(ve):ce[ve]}),p=l(function(Q,ce){return Q.map(function(ve){for(var Ce,We=ce,Ve=0;Ve<ve.length;){if(We==null)return;Ce=ve[Ve],We=a(Ce)?d(Ce,We):We[Ce],Ve+=1}return We})}),h=l(function(Q,ce){return p([Q],ce)[0]}),v=l(function(Q,ce){return h([Q],ce)});function y(Q){return function ce(ve,Ce,We){switch(arguments.length){case 0:return ce;case 1:return o(ve)?ce:l(function(Ve,rt){return Q(ve,Ve,rt)});case 2:return o(ve)&&o(Ce)?ce:o(ve)?l(function(Ve,rt){return Q(Ve,Ce,rt)}):o(Ce)?l(function(Ve,rt){return Q(ve,Ve,rt)}):i(function(Ve){return Q(ve,Ce,Ve)});default:return o(ve)&&o(Ce)&&o(We)?ce:o(ve)&&o(Ce)?l(function(Ve,rt){return Q(Ve,rt,We)}):o(ve)&&o(We)?l(function(Ve,rt){return Q(Ve,Ce,rt)}):o(Ce)&&o(We)?l(function(Ve,rt){return Q(ve,Ve,rt)}):o(ve)?i(function(Ve){return Q(Ve,Ce,We)}):o(Ce)?i(function(Ve){return Q(ve,Ve,We)}):o(We)?i(function(Ve){return Q(ve,Ce,Ve)}):Q(ve,Ce,We)}}}const b=l(function(Q,ce){return ce==null||ce!=ce?Q:ce}),S=y(function(Q,ce,ve){return b(Q,h(ce,ve))}),T=y(function(Q,ce,ve){return S(Q,[ce],ve)});function C(Q,ce){switch(Q){case 0:return function(){return ce.apply(this,arguments)};case 1:return function(ve){return ce.apply(this,arguments)};case 2:return function(ve,Ce){return ce.apply(this,arguments)};case 3:return function(ve,Ce,We){return ce.apply(this,arguments)};case 4:return function(ve,Ce,We,Ve){return ce.apply(this,arguments)};case 5:return function(ve,Ce,We,Ve,rt){return ce.apply(this,arguments)};case 6:return function(ve,Ce,We,Ve,rt,wn){return ce.apply(this,arguments)};case 7:return function(ve,Ce,We,Ve,rt,wn,an){return ce.apply(this,arguments)};case 8:return function(ve,Ce,We,Ve,rt,wn,an,M){return ce.apply(this,arguments)};case 9:return function(ve,Ce,We,Ve,rt,wn,an,M,V){return ce.apply(this,arguments)};case 10:return function(ve,Ce,We,Ve,rt,wn,an,M,V,Z){return ce.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function w(Q,ce){return function(){return ce.call(this,Q.apply(this,arguments))}}const E=Array.isArray||function(Q){return Q!=null&&Q.length>=0&&Object.prototype.toString.call(Q)==="[object Array]"},O=i(function(Q){return!!E(Q)||!!Q&&typeof Q=="object"&&!c(Q)&&(Q.nodeType===1?!!Q.length:Q.length===0||Q.length>0&&Q.hasOwnProperty(0)&&Q.hasOwnProperty(Q.length-1))});var $=function(){function Q(ce){this.f=ce}return Q.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},Q.prototype["@@transducer/result"]=function(ce){return ce},Q.prototype["@@transducer/step"]=function(ce,ve){return this.f(ce,ve)},Q}();const P=l(function(Q,ce){return C(Q.length,function(){return Q.apply(ce,arguments)})});function R(Q,ce,ve){for(var Ce=ve.next();!Ce.done;){if((ce=Q["@@transducer/step"](ce,Ce.value))&&ce["@@transducer/reduced"]){ce=ce["@@transducer/value"];break}Ce=ve.next()}return Q["@@transducer/result"](ce)}function k(Q,ce,ve,Ce){return Q["@@transducer/result"](ve[Ce](P(Q["@@transducer/step"],Q),ce))}var W=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function U(Q,ce,ve){if(typeof Q=="function"&&(Q=function(Ce){return new $(Ce)}(Q)),O(ve))return function(Ce,We,Ve){for(var rt=0,wn=Ve.length;rt<wn;){if((We=Ce["@@transducer/step"](We,Ve[rt]))&&We["@@transducer/reduced"]){We=We["@@transducer/value"];break}rt+=1}return Ce["@@transducer/result"](We)}(Q,ce,ve);if(typeof ve["fantasy-land/reduce"]=="function")return k(Q,ce,ve,"fantasy-land/reduce");if(ve[W]!=null)return R(Q,ce,ve[W]());if(typeof ve.next=="function")return R(Q,ce,ve);if(typeof ve.reduce=="function")return k(Q,ce,ve,"reduce");throw new TypeError("reduce: list must be array or iterable")}const j=y(U);function G(Q,ce){return function(){var ve=arguments.length;if(ve===0)return ce();var Ce=arguments[ve-1];return E(Ce)||typeof Ce[Q]!="function"?ce.apply(this,arguments):Ce[Q].apply(Ce,Array.prototype.slice.call(arguments,0,ve-1))}}const X=i(G("tail",y(G("slice",function(Q,ce,ve){return Array.prototype.slice.call(ve,Q,ce)}))(1,1/0)));function ne(){if(arguments.length===0)throw new Error("pipe requires at least one argument");return C(arguments[0].length,j(w,arguments[0],X(arguments)))}const xe=i(function(Q){return c(Q)?Q.split("").reverse().join(""):Array.prototype.slice.call(Q,0).reverse()});function Ee(){if(arguments.length===0)throw new Error("compose requires at least one argument");return ne.apply(this,xe(arguments))}var ke=n(9620),Ie=n.n(ke);const Qe=Q=>ce=>{v("nodeName",ce.target)==="BODY"&&Q(ce)},ht=Q=>({key:Ie()(Q),ctrl:T(!1,"ctrlKey",Q),shift:T(!1,"shiftKey",Q),meta:T(!1,"metaKey",Q),alt:T(!1,"altKey",Q)}),De=Q=>document.addEventListener("keydown",Qe(Ee(Q,ht))),Xe=Q=>document.addEventListener("keyup",Qe(Ee(Q,ht)))})(),ux.utils=r})();function o9(e){const t=/^([\d\.:]+)\s(.*)$/;return e.trim().split(/(\r?\n)/).reduce(function(n,r){var o=r.match(t);if(o){var i=za(o[1]);i!==null&&n.push({title:o[2].trim(),start:i})}return n},[])}function s9(e){const t=/^([\d\.,]+)\s+([\d\.,]+)\s+(.*)$/;return e.trim().split(/(\r\n|\r|\n)/).reduce(function(n,r){var o=r.match(t);if(o){var i=za(o[1].replace(",",".")),l=o[3].trim();i!==null&&n.push({title:l,start:i})}return n},[])}function i9(e){const r=new window.DOMParser().parseFromString(e,"text/xml").getElementsByTagName("Marker");let o=Array.from(r).reduce((i,l)=>{var p;if(!l||!l.getAttribute("Type")||((p=l.getAttribute("Type"))==null?void 0:p.toLowerCase())!=="chapter")return i;const a=za(l.getAttribute("Time")||""),c=l.getAttribute("Name")||"",d=l.getAttribute("URL")||"";return a!==null&&i.push({start:a,title:c.trim(),...d?{href:d.trim()}:{}}),i},[]);return o.sort(function(i,l){return i.start-l.start}),o}function l9(e){const r=new window.DOMParser().parseFromString(e,"text/xml").getElementsByTagNameNS("http://podlove.org/simple-chapters","chapter");return Array.from(r).reduce((o,i)=>{var l=za(i.getAttribute("start")||""),a=i.getAttribute("title")||"",c=i.getAttribute("href")||"",d=i.getAttribute("image")||"";return l!==null&&o.push({start:l,title:a.trim(),...c?{href:c.trim()}:{},...d?{image:d.trim()}:{}}),o},[])}const cx=Y.get(window,["wp","i18n","__"],e=>e),a9=cx,u9={install(e){e.config.globalProperties.__=(t,n)=>cx(t,n)}};function*c9(){const e=yield Kr();yield St(d9,e),yield Ne([uE],g9),yield Ne(dE,p9),yield Ne([Cg,kg,Ag,Og,Vd],f9,e);const t=yield $t(Jh,ux.utils.keydown);yield Ne(t,v9),yield Ne(fE,y9)}function*d9(e){const t=yield be(B.episode.id);if(!t)return;const{result:n}=yield e.get(`chapters/${t}`);n&&(yield te(EM(n.chapters.map(r=>({...r,start:Dt.fromString(r.start).totalMs})))))}function*f9(e){const t=yield be(B.episode.id),n=yield be(B.chapters.list);yield e.put(`chapters/${t}`,{chapters:n.map(r=>({...r,start:new Dt(r.start).pretty}))})}function*p9(e){const t=yield be(B.chapters.list);switch(e.payload){case"psc":H1("chapters.psc",h9(t));break;case"mp4":H1("chapters.txt",m9(t));break}}function h9(e){const t=new XMLSerializer,o=new DOMParser().parseFromString('<psc:chapters version="1.2" xmlns:psc="http://podlove.org/simple-chapters"/>',"text/xml");let i=o.getElementsByTagName("chapters");return i.length||(i=o.getElementsByTagName("psc:chapters")),i=i[0],e.forEach(c=>{let d=o.createElement("psc:chapter");d.setAttribute("title",c.title||""),d.setAttribute("start",c.start?new Dt(c.start).pretty:"00:00:00"),c.href&&d.setAttribute("href",c.href),c.image&&d.setAttribute("image",c.image),i.appendChild(d)}),t.serializeToString(o).replace(/\<psc:chapter\s/gi,` 47 47 <psc:chapter `).replace("</psc:chapters>",` 48 48 </psc:chapters>`)}function m9(e){const t=r=>isNaN(r.start)?"":new Dt(r.start).pretty,n=r=>r.href?"<"+r.href+">":"";return e.reduce((r,o)=>{let i=t(o)+" "+o.title+" "+n(o);return[...r,i.trim()]},[]).join(` 49 49 `)+` 50 `}function z_(e,t){var n=new Blob([t],{type:"text/plain"});const r=document.createElement("a");r.href=window.URL.createObjectURL(n),r.download=e,document.body.appendChild(r),r.click(),document.body.removeChild(r)}function*g9(e){const t=[o9,s9,i9,l9];let n=[];if(t.forEach(r=>{if(!(n!==null&&n.length>0))try{n=r(e.payload)}catch{n=null}}),n===null){yield te(ev({type:"error",message:a9("Unable to parse PSC chapters.","podlove-podcasting-plugin-for-wordpress")}));return}yield te(pE(n))}function*v9(e){const t=yield be(B.chapters.selectedIndex);if(t===null)return;const n=yield be(B.chapters.list);switch(!0){case e.key==="up":t===0?yield te(ms(n.length-1)):yield te(ms(t-1));break;case e.key==="down":t===n.length-1?yield te(ms(0)):yield te(ms(t+1));break;case e.key==="esc":yield te(ms(null));break}}function*y9(){yield te(Dg({onSuccess:{type:kg}}))}function _9(){return function*(){yield ur(aE,c9)}}function*b9(){const e=yield qr();yield St(Gd,e),yield Ne(CE,w9,e),yield Ne(Ug,E9,e),yield Ne(AE,$9,e),yield Ne(OE,S9,e)}function*Gd(e){const t=yield be(B.episode.id),[n,r]=yield Promise.all([e.get(`transcripts/${t}`),e.get(`transcripts/voices/${t}`)]);yield te(HM(Y.get(n,["result","transcript"],[]))),yield te(zM(Y.get(r,["result","voices"],[])))}function*w9(e,t){const n=yield be(B.episode.id),{result:r}=yield e.put(`transcripts/${n}`,{content:t.payload});r&&(yield St(Gd,e))}function*S9(e,t){const n=yield be(B.episode.id),{result:r}=yield e.put(`transcripts/${n}`,{asset:1});r&&(yield St(Gd,e))}function*E9(e,t){const n=yield be(B.episode.id);yield e.post(`transcripts/voices/${n}`,{voice:t.payload.voice,contributor_id:t.payload.contributor})}function*$9(e){const t=yield be(B.episode.id),{result:n}=yield e.delete(`transcripts/${t}`);n&&(yield St(Gd,e))}function x9(){return function*(){yield ur($E,b9)}}function*T9(){const e=yield qr();yield St(A9,e),yield St(k9,e),yield St(I9,e),yield St(C9,e),yield Ne(wE,P9,e),yield ox(3e3,[Rg,Pg,Lg,Fg,Ng],O9,e)}function*C9(e){const t=yield be(B.episode.id);if(!t)return;const{result:n}=yield e.get(`episodes/${t}/contributions`);n&&(yield te(Mg({contributions:Y.get(n,["contribution"],[])})))}function*O9(e){const t=yield be(B.episode.id);if(!t)return;const n=yield be(B.contributors.roles),r=yield be(B.contributors.groups);let i=(yield be(B.episode.contributions)).map(function({contributor_id:l,role_id:a,group_id:c,position:d,comment:p}){return{contributor_id:Y.toInteger(l),role_id:Y.toInteger(a)==0&&n.length>0?n[0].id:Y.toInteger(a),group_id:Y.toInteger(c)==0&&r.length>0?r[0].id:Y.toInteger(c),position:Y.toInteger(d),comment:p||""}});yield e.put(`episodes/${t}/contributions`,{contributors:i})}function*A9(e){const{result:t}=yield e.get("contributors",{query:{filter:"all"}});t&&(yield te(ZM(Y.get(t,"contributors",[]))))}function*k9(e){const{result:t}=yield e.get("contributors/roles");t&&(yield te(QM(Y.get(t,"roles",[]))))}function*I9(e){const{result:t}=yield e.get("contributors/groups");t&&(yield te(e8(Y.get(t,"groups",[]))))}function*P9(e,t){const{result:n,error:r}=yield e.post("contributors",{});if(r)return;const o=n==null?void 0:n.id,i=Y.get(t,["payload"]),{error:l}=yield e.put(`contributors/${o}`,{realname:i});if(l)return;const a={id:o,realname:i};yield te(t8(a)),yield te(SE(a))}function R9(){return function*(){yield ur(kE,T9)}}const Bo=Y.get(window,["wp","data"],null),dx=Y.get(window,["wp","media"],null),ri=document.querySelector('input[name="post_title"]'),L9=e=>ri==null?void 0:ri.addEventListener("change",t=>e(Y.get(t,["target","value"])));function*F9(){const e=yield be(B.settings.autoGenerateEpisodeTitle);typeof(Bo==null?void 0:Bo.subscribe)<"u"&&(yield Ne(yield $t(Yh,Bo==null?void 0:Bo.subscribe),D9)),ri&&(yield Ne(yield $t(Yh,L9),fx)),e&&(yield Ne(Vd,W_),yield Ne(tl,W_)),dx&&(yield Ne(EE,U9))}function N9(){return Bo.select("core/editor").getEditedPostAttribute("featured_media")}function M9(){return Bo.select("core/editor").getEditedPostAttribute("title")}function*D9(){const e=M9(),t=N9(),n=t?Bo.select("core").getMedia(t):null,r=yield be(B.post.title),o=yield be(B.post.featuredMedia);r!=e&&(yield te(zh({prop:"title",value:e}))),Y.get(o,["id"])!=Y.get(n,["id"])&&(yield te(zh({prop:"featured_media",value:n})))}function*fx(e){yield te(zh({prop:"title",value:e}))}function*W_(){if(!ri)return;const e=yield be(B.settings.blogTitleTemplate);if(!e)return;const t=yield be(B.episode.title),n=yield be(B.episode.number),r=yield be(B.podcast.mnemonic),o=yield be(B.settings.episodeNumberPadding),i=e.replace("%mnemonic%",r||"").replace("%episode_number%",(n||"").padStart(o||0,"0")).replace("%season_number%","").replace("%episode_title%",t||"");ri.value!=i&&(ri.value=i,yield fx(i))}function*U9(e){const t=Y.get(e,["payload","onSuccess"]);if(!t){console.warn("Missing successAction");return}const n=dx({title:"Select or Upload Media Of Your Chosen Persuasion",button:{text:"Use this media"},multiple:!1}),r=new Promise(o=>{n.on("select",()=>{const{url:i}=n.state().get("selection").first().toJSON();o(i)})});n.open();try{const o=yield r;yield te({...t,payload:o})}finally{}}function B9(){return function*(){yield ur(Wr,F9)}}let Wl={};function*j9(){const e=yield qr();yield St(H9,e),yield Ne(tl,z9),yield Xh(1e3,tl,q_,e),yield Xh(50,vE,q_,e),yield Ne(yE,W9),yield Ne(bE,q9),yield Ne(_E,K9),yield Ne(zd,G9),yield Ne(Vd,V9)}function*V9(){const e=yield be(B.episode.auphonicWebhookConfig);e&&(yield te(x$(e.enabled)))}function*H9(e){const t=yield be(B.episode.id),{result:n}=yield e.get(`episodes/${t}`);n&&(n.slug===null&&(yield te(lD())),yield te(Mg(n)))}function*z9(e){const t=Y.get(e,["payload","prop"]),n=Y.get(e,["payload","value"],null);if(t){if(t==="slug"&&(yield be(B.episode.slugFrozen))){console.warn("Attempted to update frozen slug - update blocked");return}Wl[t]=n}}function*q_(e,t){const n=yield be(B.episode.id);Y.isEmpty(Wl)||(yield e.put(`episodes/${n}`,Wl,{query:{skip_validation:"1"}}),yield te(FM(Wl)),Wl={})}function*W9(e){Object.keys(e.payload).includes("slug")&&(yield te(NM()))}function*q9(){yield te(Dg({onSuccess:{type:_E}}))}function*K9(e){yield te(bt({prop:"episode_poster",value:Y.get(e,["payload"])}))}function*G9(e){if((yield be(B.settings.imageAsset))!="post-thumbnail"||Y.get(e,["payload","prop"])!="featured_media")return;const n=Y.get(e,["payload","value","source_url"]);yield te(bt({prop:"poster",value:n}))}function X9(){return function*(){yield ur(gE,j9)}}function px(e,t){return function(){return e.apply(t,arguments)}}const{toString:Y9}=Object.prototype,{getPrototypeOf:tv}=Object,Xd=(e=>t=>{const n=Y9.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),fo=e=>(e=e.toLowerCase(),t=>Xd(t)===e),Yd=e=>t=>typeof t===e,{isArray:pl}=Array,Ta=Yd("undefined");function J9(e){return e!==null&&!Ta(e)&&e.constructor!==null&&!Ta(e.constructor)&&Er(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const hx=fo("ArrayBuffer");function Z9(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&hx(e.buffer),t}const Q9=Yd("string"),Er=Yd("function"),mx=Yd("number"),Jd=e=>e!==null&&typeof e=="object",eU=e=>e===!0||e===!1,Ec=e=>{if(Xd(e)!=="object")return!1;const t=tv(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},tU=fo("Date"),nU=fo("File"),rU=fo("Blob"),oU=fo("FileList"),sU=e=>Jd(e)&&Er(e.pipe),iU=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Er(e.append)&&((t=Xd(e))==="formdata"||t==="object"&&Er(e.toString)&&e.toString()==="[object FormData]"))},lU=fo("URLSearchParams"),[aU,uU,cU,dU]=["ReadableStream","Request","Response","Headers"].map(fo),fU=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ka(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),pl(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),l=i.length;let a;for(r=0;r<l;r++)a=i[r],t.call(null,e[a],a,e)}}function gx(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Ys=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,vx=e=>!Ta(e)&&e!==Ys;function Jh(){const{caseless:e}=vx(this)&&this||{},t={},n=(r,o)=>{const i=e&&gx(t,o)||o;Ec(t[i])&&Ec(r)?t[i]=Jh(t[i],r):Ec(r)?t[i]=Jh({},r):pl(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&Ka(arguments[r],n);return t}const pU=(e,t,n,{allOwnKeys:r}={})=>(Ka(t,(o,i)=>{n&&Er(o)?e[i]=px(o,n):e[i]=o},{allOwnKeys:r}),e),hU=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),mU=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},gU=(e,t,n,r)=>{let o,i,l;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)l=o[i],(!r||r(l,e,t))&&!a[l]&&(t[l]=e[l],a[l]=!0);e=n!==!1&&tv(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},vU=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},yU=e=>{if(!e)return null;if(pl(e))return e;let t=e.length;if(!mx(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},_U=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&tv(Uint8Array)),bU=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},wU=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},SU=fo("HTMLFormElement"),EU=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),K_=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),$U=fo("RegExp"),yx=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Ka(n,(o,i)=>{let l;(l=t(o,i,e))!==!1&&(r[i]=l||o)}),Object.defineProperties(e,r)},xU=e=>{yx(e,(t,n)=>{if(Er(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Er(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},TU=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return pl(e)?r(e):r(String(e).split(t)),n},CU=()=>{},OU=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Zp="abcdefghijklmnopqrstuvwxyz",G_="0123456789",_x={DIGIT:G_,ALPHA:Zp,ALPHA_DIGIT:Zp+Zp.toUpperCase()+G_},AU=(e=16,t=_x.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function kU(e){return!!(e&&Er(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const IU=e=>{const t=new Array(10),n=(r,o)=>{if(Jd(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=pl(r)?[]:{};return Ka(r,(l,a)=>{const c=n(l,o+1);!Ta(c)&&(i[a]=c)}),t[o]=void 0,i}}return r};return n(e,0)},PU=fo("AsyncFunction"),RU=e=>e&&(Jd(e)||Er(e))&&Er(e.then)&&Er(e.catch),bx=((e,t)=>e?setImmediate:t?((n,r)=>(Ys.addEventListener("message",({source:o,data:i})=>{o===Ys&&i===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Ys.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Er(Ys.postMessage)),LU=typeof queueMicrotask<"u"?queueMicrotask.bind(Ys):typeof process<"u"&&process.nextTick||bx,ee={isArray:pl,isArrayBuffer:hx,isBuffer:J9,isFormData:iU,isArrayBufferView:Z9,isString:Q9,isNumber:mx,isBoolean:eU,isObject:Jd,isPlainObject:Ec,isReadableStream:aU,isRequest:uU,isResponse:cU,isHeaders:dU,isUndefined:Ta,isDate:tU,isFile:nU,isBlob:rU,isRegExp:$U,isFunction:Er,isStream:sU,isURLSearchParams:lU,isTypedArray:_U,isFileList:oU,forEach:Ka,merge:Jh,extend:pU,trim:fU,stripBOM:hU,inherits:mU,toFlatObject:gU,kindOf:Xd,kindOfTest:fo,endsWith:vU,toArray:yU,forEachEntry:bU,matchAll:wU,isHTMLForm:SU,hasOwnProperty:K_,hasOwnProp:K_,reduceDescriptors:yx,freezeMethods:xU,toObjectSet:TU,toCamelCase:EU,noop:CU,toFiniteNumber:OU,findKey:gx,global:Ys,isContextDefined:vx,ALPHABET:_x,generateString:AU,isSpecCompliantForm:kU,toJSONObject:IU,isAsyncFn:PU,isThenable:RU,setImmediate:bx,asap:LU};function ot(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}ee.inherits(ot,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ee.toJSONObject(this.config),code:this.code,status:this.status}}});const wx=ot.prototype,Sx={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Sx[e]={value:e}});Object.defineProperties(ot,Sx);Object.defineProperty(wx,"isAxiosError",{value:!0});ot.from=(e,t,n,r,o,i)=>{const l=Object.create(wx);return ee.toFlatObject(e,l,function(c){return c!==Error.prototype},a=>a!=="isAxiosError"),ot.call(l,e.message,t,n,r,o),l.cause=e,l.name=e.name,i&&Object.assign(l,i),l};const FU=null;function Zh(e){return ee.isPlainObject(e)||ee.isArray(e)}function Ex(e){return ee.endsWith(e,"[]")?e.slice(0,-2):e}function X_(e,t,n){return e?e.concat(t).map(function(o,i){return o=Ex(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function NU(e){return ee.isArray(e)&&!e.some(Zh)}const MU=ee.toFlatObject(ee,{},null,function(t){return/^is[A-Z]/.test(t)});function Zd(e,t,n){if(!ee.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=ee.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,T){return!ee.isUndefined(T[S])});const r=n.metaTokens,o=n.visitor||p,i=n.dots,l=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&ee.isSpecCompliantForm(t);if(!ee.isFunction(o))throw new TypeError("visitor must be a function");function d(b){if(b===null)return"";if(ee.isDate(b))return b.toISOString();if(!c&&ee.isBlob(b))throw new ot("Blob is not supported. Use a Buffer instead.");return ee.isArrayBuffer(b)||ee.isTypedArray(b)?c&&typeof Blob=="function"?new Blob([b]):Buffer.from(b):b}function p(b,S,T){let C=b;if(b&&!T&&typeof b=="object"){if(ee.endsWith(S,"{}"))S=r?S:S.slice(0,-2),b=JSON.stringify(b);else if(ee.isArray(b)&&NU(b)||(ee.isFileList(b)||ee.endsWith(S,"[]"))&&(C=ee.toArray(b)))return S=Ex(S),C.forEach(function(E,O){!(ee.isUndefined(E)||E===null)&&t.append(l===!0?X_([S],O,i):l===null?S:S+"[]",d(E))}),!1}return Zh(b)?!0:(t.append(X_(T,S,i),d(b)),!1)}const h=[],v=Object.assign(MU,{defaultVisitor:p,convertValue:d,isVisitable:Zh});function y(b,S){if(!ee.isUndefined(b)){if(h.indexOf(b)!==-1)throw Error("Circular reference detected in "+S.join("."));h.push(b),ee.forEach(b,function(C,w){(!(ee.isUndefined(C)||C===null)&&o.call(t,C,ee.isString(w)?w.trim():w,S,v))===!0&&y(C,S?S.concat(w):[w])}),h.pop()}}if(!ee.isObject(e))throw new TypeError("data must be an object");return y(e),t}function Y_(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function nv(e,t){this._pairs=[],e&&Zd(e,this,t)}const $x=nv.prototype;$x.append=function(t,n){this._pairs.push([t,n])};$x.toString=function(t){const n=t?function(r){return t.call(this,r,Y_)}:Y_;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function DU(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function xx(e,t,n){if(!t)return e;const r=n&&n.encode||DU,o=n&&n.serialize;let i;if(o?i=o(t,n):i=ee.isURLSearchParams(t)?t.toString():new nv(t,n).toString(r),i){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class J_{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ee.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Tx={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},UU=typeof URLSearchParams<"u"?URLSearchParams:nv,BU=typeof FormData<"u"?FormData:null,jU=typeof Blob<"u"?Blob:null,VU={isBrowser:!0,classes:{URLSearchParams:UU,FormData:BU,Blob:jU},protocols:["http","https","file","blob","url","data"]},rv=typeof window<"u"&&typeof document<"u",Qh=typeof navigator=="object"&&navigator||void 0,HU=rv&&(!Qh||["ReactNative","NativeScript","NS"].indexOf(Qh.product)<0),zU=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",WU=rv&&window.location.href||"http://localhost",qU=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:rv,hasStandardBrowserEnv:HU,hasStandardBrowserWebWorkerEnv:zU,navigator:Qh,origin:WU},Symbol.toStringTag,{value:"Module"})),nr={...qU,...VU};function KU(e,t){return Zd(e,new nr.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return nr.isNode&&ee.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function GU(e){return ee.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function XU(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}function Cx(e){function t(n,r,o,i){let l=n[i++];if(l==="__proto__")return!0;const a=Number.isFinite(+l),c=i>=n.length;return l=!l&&ee.isArray(o)?o.length:l,c?(ee.hasOwnProp(o,l)?o[l]=[o[l],r]:o[l]=r,!a):((!o[l]||!ee.isObject(o[l]))&&(o[l]=[]),t(n,r,o[l],i)&&ee.isArray(o[l])&&(o[l]=XU(o[l])),!a)}if(ee.isFormData(e)&&ee.isFunction(e.entries)){const n={};return ee.forEachEntry(e,(r,o)=>{t(GU(r),o,n,0)}),n}return null}function YU(e,t,n){if(ee.isString(e))try{return(t||JSON.parse)(e),ee.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const Ga={transitional:Tx,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=ee.isObject(t);if(i&&ee.isHTMLForm(t)&&(t=new FormData(t)),ee.isFormData(t))return o?JSON.stringify(Cx(t)):t;if(ee.isArrayBuffer(t)||ee.isBuffer(t)||ee.isStream(t)||ee.isFile(t)||ee.isBlob(t)||ee.isReadableStream(t))return t;if(ee.isArrayBufferView(t))return t.buffer;if(ee.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return KU(t,this.formSerializer).toString();if((a=ee.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Zd(a?{"files[]":t}:t,c&&new c,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),YU(t)):t}],transformResponse:[function(t){const n=this.transitional||Ga.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(ee.isResponse(t)||ee.isReadableStream(t))return t;if(t&&ee.isString(t)&&(r&&!this.responseType||o)){const l=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(a){if(l)throw a.name==="SyntaxError"?ot.from(a,ot.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:nr.classes.FormData,Blob:nr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ee.forEach(["delete","get","head","post","put","patch"],e=>{Ga.headers[e]={}});const JU=ee.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ZU=e=>{const t={};let n,r,o;return e&&e.split(`51 `).forEach(function(l){o=l.indexOf(":"),n=l.substring(0,o).trim().toLowerCase(),r=l.substring(o+1).trim(),!(!n||t[n]&&JU[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t}, Z_=Symbol("internals");function Ml(e){return e&&String(e).trim().toLowerCase()}function $c(e){return e===!1||e==null?e:ee.isArray(e)?e.map($c):String(e)}function QU(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const eB=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Qp(e,t,n,r,o){if(ee.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!ee.isString(t)){if(ee.isString(r))return t.indexOf(r)!==-1;if(ee.isRegExp(r))return r.test(t)}}function tB(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function nB(e,t){const n=ee.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,l){return this[r].call(this,t,o,i,l)},configurable:!0})})}class rr{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(a,c,d){const p=Ml(c);if(!p)throw new Error("header name must be a non-empty string");const h=ee.findKey(o,p);(!h||o[h]===void 0||d===!0||d===void 0&&o[h]!==!1)&&(o[h||c]=$c(a))}const l=(a,c)=>ee.forEach(a,(d,p)=>i(d,p,c));if(ee.isPlainObject(t)||t instanceof this.constructor)l(t,n);else if(ee.isString(t)&&(t=t.trim())&&!eB(t))l(ZU(t),n);else if(ee.isHeaders(t))for(const[a,c]of t.entries())i(c,a,r);else t!=null&&i(n,t,r);return this}get(t,n){if(t=Ml(t),t){const r=ee.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return QU(o);if(ee.isFunction(n))return n.call(this,o,r);if(ee.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ml(t),t){const r=ee.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Qp(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(l){if(l=Ml(l),l){const a=ee.findKey(r,l);a&&(!n||Qp(r,r[a],a,n))&&(delete r[a],o=!0)}}return ee.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||Qp(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return ee.forEach(this,(o,i)=>{const l=ee.findKey(r,i);if(l){n[l]=$c(o),delete n[i];return}const a=t?tB(i):String(i).trim();a!==i&&delete n[i],n[a]=$c(o),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return ee.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&ee.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`52 `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[ Z_]=this[Z_]={accessors:{}}).accessors,o=this.prototype;function i(l){const a=Ml(l);r[a]||(nB(o,l),r[a]=!0)}return ee.isArray(t)?t.forEach(i):i(t),this}}rr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ee.reduceDescriptors(rr.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});ee.freezeMethods(rr);function eh(e,t){const n=this||Ga,r=t||n,o=rr.from(r.headers);let i=r.data;return ee.forEach(e,function(a){i=a.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Ox(e){return!!(e&&e.__CANCEL__)}function hl(e,t,n){ot.call(this,e??"canceled",ot.ERR_CANCELED,t,n),this.name="CanceledError"}ee.inherits(hl,ot,{__CANCEL__:!0});function Ax(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new ot("Request failed with status code "+n.status,[ot.ERR_BAD_REQUEST,ot.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function rB(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function oB(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,l;return t=t!==void 0?t:1e3,function(c){const d=Date.now(),p=r[i];l||(l=d),n[o]=c,r[o]=d;let h=i,v=0;for(;h!==o;)v+=n[h++],h=h%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),d-l<t)return;const y=p&&d-p;return y?Math.round(v*1e3/y):void 0}}function sB(e,t){let n=0,r=1e3/t,o,i;const l=(d,p=Date.now())=>{n=p,o=null,i&&(clearTimeout(i),i=null),e.apply(null,d)};return[(...d)=>{const p=Date.now(),h=p-n;h>=r?l(d,p):(o=d,i||(i=setTimeout(()=>{i=null,l(o)},r-h)))},()=>o&&l(o)]}const rd=(e,t,n=3)=>{let r=0;const o=oB(50,250);return sB(i=>{const l=i.loaded,a=i.lengthComputable?i.total:void 0,c=l-r,d=o(c),p=l<=a;r=l;const h={loaded:l,total:a,progress:a?l/a:void 0,bytes:c,rate:d||void 0,estimated:d&&a&&p?(a-l)/d:void 0,event:i,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(h)},n)},Q_=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},eb=e=>(...t)=>ee.asap(()=>e(...t)),iB=nr.hasStandardBrowserEnv?function(){const t=nr.navigator&&/(msie|trident)/i.test(nr.navigator.userAgent),n=document.createElement("a");let r;function o(i){let l=i;return t&&(n.setAttribute("href",l),l=n.href),n.setAttribute("href",l),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(l){const a=ee.isString(l)?o(l):l;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}(),lB=nr.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const l=[e+"="+encodeURIComponent(t)];ee.isNumber(n)&&l.push("expires="+new Date(n).toGMTString()),ee.isString(r)&&l.push("path="+r),ee.isString(o)&&l.push("domain="+o),i===!0&&l.push("secure"),document.cookie=l.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function aB(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function uB(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function kx(e,t){return e&&!aB(t)?uB(e,t):t}const tb=e=>e instanceof rr?{...e}:e;function fi(e,t){t=t||{};const n={};function r(d,p,h){return ee.isPlainObject(d)&&ee.isPlainObject(p)?ee.merge.call({caseless:h},d,p):ee.isPlainObject(p)?ee.merge({},p):ee.isArray(p)?p.slice():p}function o(d,p,h){if(ee.isUndefined(p)){if(!ee.isUndefined(d))return r(void 0,d,h)}else return r(d,p,h)}function i(d,p){if(!ee.isUndefined(p))return r(void 0,p)}function l(d,p){if(ee.isUndefined(p)){if(!ee.isUndefined(d))return r(void 0,d)}else return r(void 0,p)}function a(d,p,h){if(h in t)return r(d,p);if(h in e)return r(void 0,d)}const c={url:i,method:i,data:i,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:a,headers:(d,p)=>o(tb(d),tb(p),!0)};return ee.forEach(Object.keys(Object.assign({},e,t)),function(p){const h=c[p]||o,v=h(e[p],t[p],p);ee.isUndefined(v)&&h!==a||(n[p]=v)}),n}const Ix=e=>{const t=fi({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:l,auth:a}=t;t.headers=l=rr.from(l),t.url=xx(kx(t.baseURL,t.url),e.params,e.paramsSerializer),a&&l.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let c;if(ee.isFormData(n)){if(nr.hasStandardBrowserEnv||nr.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if((c=l.getContentType())!==!1){const[d,...p]=c?c.split(";").map(h=>h.trim()).filter(Boolean):[];l.setContentType([d||"multipart/form-data",...p].join("; "))}}if(nr.hasStandardBrowserEnv&&(r&&ee.isFunction(r)&&(r=r(t)),r||r!==!1&&iB(t.url))){const d=o&&i&&lB.read(i);d&&l.set(o,d)}return t},cB=typeof XMLHttpRequest<"u",dB=cB&&function(e){return new Promise(function(n,r){const o=Ix(e);let i=o.data;const l=rr.from(o.headers).normalize();let{responseType:a,onUploadProgress:c,onDownloadProgress:d}=o,p,h,v,y,b;function S(){y&&y(),b&&b(),o.cancelToken&&o.cancelToken.unsubscribe(p),o.signal&&o.signal.removeEventListener("abort",p)}let T=new XMLHttpRequest;T.open(o.method.toUpperCase(),o.url,!0),T.timeout=o.timeout;function C(){if(!T)return;const E=rr.from("getAllResponseHeaders"in T&&T.getAllResponseHeaders()),$={data:!a||a==="text"||a==="json"?T.responseText:T.response,status:T.status,statusText:T.statusText,headers:E,config:e,request:T};Ax(function(R){n(R),S()},function(R){r(R),S()},$),T=null}"onloadend"in T?T.onloadend=C:T.onreadystatechange=function(){!T||T.readyState!==4||T.status===0&&!(T.responseURL&&T.responseURL.indexOf("file:")===0)||setTimeout(C)},T.onabort=function(){T&&(r(new ot("Request aborted",ot.ECONNABORTED,e,T)),T=null)},T.onerror=function(){r(new ot("Network Error",ot.ERR_NETWORK,e,T)),T=null},T.ontimeout=function(){let O=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const $=o.transitional||Tx;o.timeoutErrorMessage&&(O=o.timeoutErrorMessage),r(new ot(O,$.clarifyTimeoutError?ot.ETIMEDOUT:ot.ECONNABORTED,e,T)),T=null},i===void 0&&l.setContentType(null),"setRequestHeader"in T&&ee.forEach(l.toJSON(),function(O,$){T.setRequestHeader($,O)}),ee.isUndefined(o.withCredentials)||(T.withCredentials=!!o.withCredentials),a&&a!=="json"&&(T.responseType=o.responseType),d&&([v,b]=rd(d,!0),T.addEventListener("progress",v)),c&&T.upload&&([h,y]=rd(c),T.upload.addEventListener("progress",h),T.upload.addEventListener("loadend",y)),(o.cancelToken||o.signal)&&(p=E=>{T&&(r(!E||E.type?new hl(null,e,T):E),T.abort(),T=null)},o.cancelToken&&o.cancelToken.subscribe(p),o.signal&&(o.signal.aborted?p():o.signal.addEventListener("abort",p)));const w=rB(o.url);if(w&&nr.protocols.indexOf(w)===-1){r(new ot("Unsupported protocol "+w+":",ot.ERR_BAD_REQUEST,e));return}T.send(i||null)})},fB=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const i=function(d){if(!o){o=!0,a();const p=d instanceof Error?d:this.reason;r.abort(p instanceof ot?p:new hl(p instanceof Error?p.message:p))}};let l=t&&setTimeout(()=>{l=null,i(new ot(`timeout ${t} of ms exceeded`,ot.ETIMEDOUT))},t);const a=()=>{e&&(l&&clearTimeout(l),l=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(i):d.removeEventListener("abort",i)}),e=null)};e.forEach(d=>d.addEventListener("abort",i));const{signal:c}=r;return c.unsubscribe=()=>ee.asap(a),c}},pB=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},hB=async function*(e,t){for await(const n of mB(e))yield*pB(n,t)},mB=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},nb=(e,t,n,r)=>{const o=hB(e,t);let i=0,l,a=c=>{l||(l=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:d,value:p}=await o.next();if(d){a(),c.close();return}let h=p.byteLength;if(n){let v=i+=h;n(v)}c.enqueue(new Uint8Array(p))}catch(d){throw a(d),d}},cancel(c){return a(c),o.return()}},{highWaterMark:2})},Qd=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Px=Qd&&typeof ReadableStream=="function",gB=Qd&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Rx=(e,...t)=>{try{return!!e(...t)}catch{return!1}},vB=Px&&Rx(()=>{let e=!1;const t=new Request(nr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),rb=64*1024,em=Px&&Rx(()=>ee.isReadableStream(new Response("").body)),od={stream:em&&(e=>e.body)};Qd&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!od[t]&&(od[t]=ee.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new ot(`Response type '${t}' is not supported`,ot.ERR_NOT_SUPPORT,r)})})})(new Response);const yB=async e=>{if(e==null)return 0;if(ee.isBlob(e))return e.size;if(ee.isSpecCompliantForm(e))return(await new Request(nr.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(ee.isArrayBufferView(e)||ee.isArrayBuffer(e))return e.byteLength;if(ee.isURLSearchParams(e)&&(e=e+""),ee.isString(e))return(await gB(e)).byteLength},_B=async(e,t)=>{const n=ee.toFiniteNumber(e.getContentLength());return n??yB(t)},bB=Qd&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:l,onDownloadProgress:a,onUploadProgress:c,responseType:d,headers:p,withCredentials:h="same-origin",fetchOptions:v}=Ix(e);d=d?(d+"").toLowerCase():"text";let y=fB([o,i&&i.toAbortSignal()],l),b;const S=y&&y.unsubscribe&&(()=>{y.unsubscribe()});let T;try{if(c&&vB&&n!=="get"&&n!=="head"&&(T=await _B(p,r))!==0){let $=new Request(t,{method:"POST",body:r,duplex:"half"}),P;if(ee.isFormData(r)&&(P=$.headers.get("content-type"))&&p.setContentType(P),$.body){const[R,k]=Q_(T,rd(eb(c)));r=nb($.body,rb,R,k)}}ee.isString(h)||(h=h?"include":"omit");const C="credentials"in Request.prototype;b=new Request(t,{...v,signal:y,method:n.toUpperCase(),headers:p.normalize().toJSON(),body:r,duplex:"half",credentials:C?h:void 0});let w=await fetch(b);const E=em&&(d==="stream"||d==="response");if(em&&(a||E&&S)){const $={};["status","statusText","headers"].forEach(W=>{$[W]=w[W]});const P=ee.toFiniteNumber(w.headers.get("content-length")),[R,k]=a&&Q_(P,rd(eb(a),!0))||[];w=new Response(nb(w.body,rb,R,()=>{k&&k(),S&&S()}),$)}d=d||"text";let O=await od[ee.findKey(od,d)||"text"](w,e);return!E&&S&&S(),await new Promise(($,P)=>{Ax($,P,{data:O,headers:rr.from(w.headers),status:w.status,statusText:w.statusText,config:e,request:b})})}catch(C){throw S&&S(),C&&C.name==="TypeError"&&/fetch/i.test(C.message)?Object.assign(new ot("Network Error",ot.ERR_NETWORK,e,b),{cause:C.cause||C}):ot.from(C,C&&C.code,e,b)}}),tm={http:FU,xhr:dB,fetch:bB};ee.forEach(tm,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const ob=e=>`- ${e}`,wB=e=>ee.isFunction(e)||e===null||e===!1,Lx={getAdapter:e=>{e=ee.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){n=e[i];let l;if(r=n,!wB(n)&&(r=tm[(l=String(n)).toLowerCase()],r===void 0))throw new ot(`Unknown adapter '${l}'`);if(r)break;o[l||"#"+i]=r}if(!r){const i=Object.entries(o).map(([a,c])=>`adapter ${a} `+(c===!1?"is not supported by the environment":"is not available in the build"));let l=t?i.length>1?`since :53 `+i.map( ob).join(`54 `):" "+ ob(i[0]):"as no adapter specified";throw new ot("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return r},adapters:tm};function th(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new hl(null,e)}function sb(e){return th(e),e.headers=rr.from(e.headers),e.data=eh.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Lx.getAdapter(e.adapter||Ga.adapter)(e).then(function(r){return th(e),r.data=eh.call(e,e.transformResponse,r),r.headers=rr.from(r.headers),r},function(r){return Ox(r)||(th(e),r&&r.response&&(r.response.data=eh.call(e,e.transformResponse,r.response),r.response.headers=rr.from(r.response.headers))),Promise.reject(r)})}const Fx="1.7.7",ov={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ov[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const ib={};ov.transitional=function(t,n,r){function o(i,l){return"[Axios v"+Fx+"] Transitional option '"+i+"'"+l+(r?". "+r:"")}return(i,l,a)=>{if(t===!1)throw new ot(o(l," has been removed"+(n?" in "+n:"")),ot.ERR_DEPRECATED);return n&&!ib[l]&&(ib[l]=!0,console.warn(o(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,l,a):!0}};function SB(e,t,n){if(typeof e!="object")throw new ot("options must be an object",ot.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],l=t[i];if(l){const a=e[i],c=a===void 0||l(a,i,e);if(c!==!0)throw new ot("option "+i+" must be "+c,ot.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ot("Unknown option "+i,ot.ERR_BAD_OPTION)}}const nm={assertOptions:SB,validators:ov},ds=nm.validators;class oi{constructor(t){this.defaults=t,this.interceptors={request:new J_,response:new J_}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`55 `+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=fi(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&& nm.assertOptions(r,{silentJSONParsing:ds.transitional(ds.boolean),forcedJSONParsing:ds.transitional(ds.boolean),clarifyTimeoutError:ds.transitional(ds.boolean)},!1),o!=null&&(ee.isFunction(o)?n.paramsSerializer={serialize:o}:nm.assertOptions(o,{encode:ds.function,serialize:ds.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=i&&ee.merge(i.common,i[n.method]);i&&ee.forEach(["delete","get","head","post","put","patch","common"],b=>{delete i[b]}),n.headers=rr.concat(l,i);const a=[];let c=!0;this.interceptors.request.forEach(function(S){typeof S.runWhen=="function"&&S.runWhen(n)===!1||(c=c&&S.synchronous,a.unshift(S.fulfilled,S.rejected))});const d=[];this.interceptors.response.forEach(function(S){d.push(S.fulfilled,S.rejected)});let p,h=0,v;if(!c){const b=[sb.bind(this),void 0];for(b.unshift.apply(b,a),b.push.apply(b,d),v=b.length,p=Promise.resolve(n);h<v;)p=p.then(b[h++],b[h++]);return p}v=a.length;let y=n;for(h=0;h<v;){const b=a[h++],S=a[h++];try{y=b(y)}catch(T){S.call(this,T);break}}try{p=sb.call(this,y)}catch(b){return Promise.reject(b)}for(h=0,v=d.length;h<v;)p=p.then(d[h++],d[h++]);return p}getUri(t){t=fi(this.defaults,t);const n=kx(t.baseURL,t.url);return xx(n,t.params,t.paramsSerializer)}}ee.forEach(["delete","get","head","options"],function(t){oi.prototype[t]=function(n,r){return this.request(fi(r||{},{method:t,url:n,data:(r||{}).data}))}});ee.forEach(["post","put","patch"],function(t){function n(r){return function(i,l,a){return this.request(fi(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:l}))}}oi.prototype[t]=n(),oi.prototype[t+"Form"]=n(!0)});class sv{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(o=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const l=new Promise(a=>{r.subscribe(a),i=a}).then(o);return l.cancel=function(){r.unsubscribe(i)},l},t(function(i,l,a){r.reason||(r.reason=new hl(i,l,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new sv(function(o){t=o}),cancel:t}}}function EB(e){return function(n){return e.apply(null,n)}}function $B(e){return ee.isObject(e)&&e.isAxiosError===!0}const rm={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(rm).forEach(([e,t])=>{rm[t]=e});function Nx(e){const t=new oi(e),n=px(oi.prototype.request,t);return ee.extend(n,oi.prototype,t,{allOwnKeys:!0}),ee.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Nx(fi(e,o))},n}const rn=Nx(Ga);rn.Axios=oi;rn.CanceledError=hl;rn.CancelToken=sv;rn.isCancel=Ox;rn.VERSION=Fx;rn.toFormData=Zd;rn.AxiosError=ot;rn.Cancel=rn.CanceledError;rn.all=function(t){return Promise.all(t)};rn.spread=EB;rn.isAxiosError=$B;rn.mergeConfig=fi;rn.AxiosHeaders=rr;rn.formToJSON=e=>Cx(ee.isHTMLForm(e)?new FormData(e):e);rn.getAdapter=Lx.getAdapter;rn.HttpStatusCode=rm;rn.default=rn;const iv=({bearer:e},t={})=>({"Content-Type":"application/json",Accept:"application/json",...Mx({bearer:e}),...t}),Mx=({bearer:e})=>({...e?{Authorization:`Bearer ${e}`}:{}}),xB=({errorHandler:e,bearer:t,method:n,urlProcessor:r})=>(o,{headers:i,query:l}={})=>fetch(fl(r?r(o):o,l),{method:n,headers:iv({bearer:t},i)}).then(qa(e)),TB=({errorHandler:e,bearer:t,method:n,urlProcessor:r})=>(o,i,{headers:l,query:a}={})=>fetch(fl(r?r(o):o,a),{method:n,headers:iv({bearer:t},l),body:JSON.stringify(i)}).then(qa(e)),CB=({errorHandler:e,bearer:t,method:n,urlProcessor:r})=>(o,i,{headers:l,query:a}={})=>fetch(fl(r?r(o):o,a),{method:n,headers:iv({bearer:t},l),body:JSON.stringify(i)}).then(qa(e));function OB(e){console.log("default progress",e)}const AB=({errorHandler:e,bearer:t,urlProcessor:n})=>(r,o,{query:i,hooks:l}={})=>{const a=new FormData,c=(l==null?void 0:l.onUploadProgress)||OB;if(o.file){const d=o.track_id||"input_file";a.append(d,o.file)}return o.image&&a.append("image",o.image),rn.post(fl(n?n(r):r,i),a,{headers:{...Mx({bearer:t})},onUploadProgress:c})},kB=Y.curry(({base:e,bearer:t,errorHandler:n})=>({get:xB({bearer:t,method:"GET",errorHandler:n,urlProcessor:r=>`${e}/${r}`}),post:TB({bearer:t,errorHandler:n,method:"POST",urlProcessor:r=>`${e}/${r}`}),delete:CB({bearer:t,errorHandler:n,method:"DELETE",urlProcessor:r=>`${e}/${r}`}),upload:AB({bearer:t,errorHandler:n,urlProcessor:r=>`${e}/${r}`})}));function*IB(){const e="https://auphonic.com/api",t=yield be(B.auphonic.token);return kB({base:e,bearer:t,errorHandler:function(r){ef.dispatch(ev({type:"error",message:`Auphonic: ${r.error_message}`}))}})}let lc;const PB=new Uint8Array(16);function RB(){if(!lc&&(lc=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!lc))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return lc(PB)}const Tn=[];for(let e=0;e<256;++e)Tn.push((e+256).toString(16).slice(1));function LB(e,t=0){return Tn[e[t+0]]+Tn[e[t+1]]+Tn[e[t+2]]+Tn[e[t+3]]+"-"+Tn[e[t+4]]+Tn[e[t+5]]+"-"+Tn[e[t+6]]+Tn[e[t+7]]+"-"+Tn[e[t+8]]+Tn[e[t+9]]+"-"+Tn[e[t+10]]+Tn[e[t+11]]+Tn[e[t+12]]+Tn[e[t+13]]+Tn[e[t+14]]+Tn[e[t+15]]}const FB=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),lb={randomUUID:FB};function NB(e,t,n){if(lb.randomUUID&&!t&&!e)return lb.randomUUID();e=e||{};const r=e.random||(e.rng||RB)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,LB(r)}const MB=(e,t)=>({success:!1,status:"failed",filename:e.filename||e.name||"unknown",download_url:e.download_url||e.localUrl||"unknown",message:t.message||"Processing failed"}),Dx=(e,t="Request failed")=>{var n,r;return((n=e.error)==null?void 0:n.message)||e.message||((r=e.result)==null?void 0:r.message)||t},DB=(e,t)=>({success:!1,status:"failed",filename:e.filename||e.name||"unknown",download_url:e.download_url||e.localUrl||"unknown",message:`Transfer failed: ${t}`}),nh=(e,t)=>e?t>0?"completed_with_errors":"failed":"completed",UB=e=>e?"error":"finished";function*sd(e){const t=yield be(B.episode.id),n=yield be(B.mediafiles.files);yield KS(n.map(r=>St(Ux,e,t,r.asset_id)))}function*Ux(e,t,n){const o=(yield be(B.mediafiles.files)).find(c=>c.asset_id==n);yield te(Gh({asset_id:n,is_verifying:!0}));const{result:i}=yield e.put(`episodes/${t}/media/${n}/verify`,{}),l=!(o!=null&&o.size)&&i.file_size||(o==null?void 0:o.enable),a={asset_id:n,url:i.file_url,size:i.file_size,enable:l,is_verifying:!1};yield te(Gh(a)),typeof i.slug_frozen<"u"&&(yield te(bt({prop:"slug_frozen",value:i.slug_frozen})))}function*BB(e,t){const n=yield be(B.episode.id),r=t.payload;yield Ux(e,n,r)}function*jB(){const e=yield qr();yield St(VB,e),yield Ne(zg,oj),yield Ne(Vg,rj),yield te(Wd())}function*VB(e){const{result:t}=yield e.get("auphonic/token");t&&(yield te(k8(t)),yield St(HB),yield Ne(Jc,ij,e),yield Ne(Wg,sj,e),yield Ne(Jc,lj,e),yield Ne(Zc,aj,e),yield Ne(Hg,dj),yield Ne(l$,uj,e),yield Ne(Qc,ub,e),yield Ne(Zc,ub,e),yield Ne(m$,pj,e),yield Ne(g$,vj,e),yield Ne(qg,yj,e))}function*HB(){const e=yield IB(),{result:{data:t}}=yield e.get("presets.json"),{result:{data:n}}=yield e.get("productions.json",{limit:50,minimal_data:!0});let{result:{data:r}}=yield e.get("services.json");yield te(y$(n)),yield te(R8(t)),yield te(L8([{uuid:"url",display_name:"From URL",email:"",incoming:!0,outgoing:!1,type:"url"},{uuid:"file",display_name:"Upload from computer",email:"",incoming:!0,outgoing:!1,type:"file"},...r])),yield $t(cj),yield $t(fj),yield te(A8()),yield Ne(o$,tj,e),yield Ne(s$,nj,e),yield Ne(w$,ej,e),yield Ne(_$,jx,e),yield Ne(b$,KB,e),yield Ne(v$,WB,e),yield Ne(E$,qB,e),yield $t(zB,e)}function*zB(e){for((yield be(B.episode.isAuphonicProductionRunning))&&(yield Vh([$t(ab,e),ro(Qc)]));;)yield ro(f$),yield Vh([$t(ab,e),ro(Qc)])}function*ab(e){for(;;){let t=yield be(B.auphonic.productionId);t||(yield te(D_()));let{result:{data:n}}=yield e.get(`production/${t}.json`);yield te(mi(n)),n.status==3&&(yield te(bt({prop:"slug",value:n.output_basename})),(yield be(B.plus.features)).fileStorage&&(yield te(T$({production_uuid:n.uuid})))),[0,1,4,5,6,7,8,12,13,14].includes(n.status)||(yield te(D_())),yield Md(2500)}}function*WB(e){const{result:{data:t}}=yield e.get("productions.json",{limit:10,minimal_data:!0});yield te(y$(t))}function*qB(e,t){let n=yield be(B.auphonic.productionId);yield e.delete(`production/${n}/multi_input_files/${t.payload}.json`)}function*KB(e,t){const n=t.payload.uuid;yield $t(jx,e,{type:i$,payload:{uuid:n}});const r=yield be(B.episode.auphonicWebhookConfig),o=yield be(B.auphonic.publishWhenDone),i=yield be(B.runtime.baseUrl),l=yield be(B.post.id),a=i+"/?podlove-auphonic-production="+l+"&authkey="+(r==null?void 0:r.authkey),c={webhook:r&&o?a:""};yield e.post(`production/${n}.json`,c);const d=yield e.post(`production/${n}/start.json`,{});d.result?yield te(mi(d.result.data)):console.warn(d.error.error_message),yield te(M8())}function*GB(e,t,n,r){var d;let o=n.payload;const i=o.id,l=o.id_new,a=!!((d=n.upload)!=null&&d.file);delete o.id_new,o.id=l;const c=r(o.id);switch(n.state){case"edited":yield e.post(`production/${t}/multi_input_files/${i}.json`,o),a&&(yield e.upload(`production/${t}/upload.json`,n.upload,{hooks:{onUploadProgress:c}}));break;case"new":yield e.post(`production/${t}.json`,{multi_input_files:[n.payload]}),a&&(yield e.upload(`production/${t}/upload.json`,n.upload,{hooks:{onUploadProgress:c}}));break}}const Bx=e=>{if(!e)return{};switch(e.currentServiceSelection){case"url":return{service:"url",value:e.urlValue};case"file":return{service:"file",value:e.fileValue};default:return{service:e.currentServiceSelection,value:e.fileSelection}}};function XB(e){const t=Y.get(e,["auphonic","file_selections"]),n=Y.get(e,["auphonic","production","uuid"],"");return Bx(Y.get(t,n))}function YB(e){const t=Y.get(e,["auphonic","file_selections"]),n=Y.get(e,["auphonic","production","uuid"],"");return Y.get(e,["auphonic","tracks"],[]).reduce((o,i,l)=>(o.push(Bx(Y.get(t,`${n}_t${l}`))),o),[])}function JB(e){const t=Y.get(e,["auphonic","production","is_multitrack"],!1),n=Y.get(e,["auphonic","tracks"],[]);if(!t)return[];const r=YB(e);return n.map((o,i)=>{const l=o.save_state;if(l=="unchanged")return{};let a={},c={};return r[i].service=="url"?c={input_file:r[i].value}:r[i].service=="file"?a={track_id:o.identifier_new,file:r[i].value}:c={service:r[i].service,input_file:r[i].value},{state:l,upload:a,payload:{type:"multitrack",id:o.identifier,id_new:o.identifier_new,...c,algorithms:{denoise:o.noise_and_hum_reduction,filtering:o.filtering,backforeground:o.fore_background}}}}).filter(o=>Object.keys(o).length>0)}function ZB(e){let t=Y.get(e,["auphonic","productionPayload"],{});const{output_files:n,...r}=t,o=e.episode.poster||e.podcast.poster,i=e.episode.slug?{output_basename:e.episode.slug}:{};return{...r,...i,image:o,metadata:{...r.metadata,title:e.episode.title||e.post.title,subtitle:e.episode.subtitle,summary:e.episode.summary,artist:e.podcast.author_name,album:e.podcast.title,url:e.podcast.link,track:e.episode.number},chapters:e.chapters.chapters.map(l=>({title:l.title,url:l.href,start:new Dt(l.start).pretty}))}}function QB(e){const t=Y.get(e,["auphonic","production","is_multitrack"],!1),n=ZB(e);let r={};if(!t){const o=XB(e);o.service=="url"?r={input_file:o.value}:o.service=="file"?r={input_file:o.value}:r={service:o.service,input_file:o.value}}return{...n,...r}}function*jx(e,t){yield te(D8());const n=t.payload.uuid,r=yield be(QB),o=yield be(JB);yield e.delete(`production/${n}/chapters.json`);const i=yield $t(sx,k$),l=ix(i);yield KS(o.map(p=>$t(GB,e,n,p,l)));const a=r.input_file;typeof a=="object"&&(yield $t(e.upload,`production/${n}/upload.json`,{file:a},{hooks:{onUploadProgress:l("singletrack")}}),delete r.input_file);const c=r.image;fetch(c).then(p=>p.blob()).then(p=>{const v="image."+(p.type.includes("png")?"png":"jpg"),y=new File([p],v,{type:p.type});e.upload(`production/${n}/upload.json`,{image:y},{hooks:{onUploadProgress:l("poster")}})}),delete r.image;const{result:{data:d}}=yield e.post(`production/${n}.json`,r);yield te(mi(d)),yield te(U8())}function*ej(e,t){const n=t.payload;if(n=="file"||n=="url")return;const{result:r}=yield e.get(`service/${n}/ls.json`);yield te(F8({uuid:n,files:r.data}))}function*Vx(){const e=yield be(B.episode.title),t=yield be(B.post.title);return e||t||"New Production"}function*tj(e){const t=yield be(B.auphonic.preset),n=yield Vx(),{result:r}=yield e.post("productions.json",{preset:t,metadata:{title:n}}),o=r.data;yield te(mi(o))}function*nj(e){const t=yield be(B.auphonic.preset),n=yield Vx(),{result:r}=yield e.post("productions.json",{preset:t,metadata:{title:n},is_multitrack:!0}),o=r.data;yield te(mi(o))}function*rj(e){const t=yield be(B.auphonic.currentFileSelection);(yield be(B.auphonic.fileSelections))[t].fileSelection||(yield te(S$({key:t,prop:"fileSelection",value:e.payload.files[0]})))}function*oj(e){const{prop:t,value:n}=e.payload;t==="currentServiceSelection"&&(yield te(w$(n)))}function*sj(e){const t=yield be(B.episode.auphonicWebhookConfig),n=yield be(B.auphonic.publishWhenDone);!t||t.enabled==n||(yield te(bt({prop:"auphonic_webhook_config",value:{...t,enabled:n}})))}function*ij(e){const t=yield be(B.episode.auphonicWebhookConfig),n=yield be(B.auphonic.publishWhenDone);if(t&&t.authkey)return;const r=NB();yield te(bt({prop:"auphonic_webhook_config",value:{authkey:r,enabled:n||!1}}))}function*lj(e){const t=yield be(B.episode.id),n=yield be(B.auphonic.productionId);yield e.put(`episodes/${t}`,{auphonic_production_id:n})}function*aj(e){const t=yield be(B.episode.id);yield e.put(`episodes/${t}`,{auphonic_production_id:""})}function*uj(e){const t=yield be(B.episode.id);yield e.put(`episodes/${t}`,{is_auphonic_production_running:!0})}function*ub(e){const t=yield be(B.episode.id);yield e.put(`episodes/${t}`,{is_auphonic_production_running:!1})}function*cj(){const e=yield be(B.episode.id),t=yield be(B.episode.auphonicProductionId),n=yield be(B.auphonic.productionId),r=yield be(B.auphonic.productions);if(!n&&t&&e){const o=r.find(i=>i.uuid==t);o&&(yield te(mi(o)))}}function*dj(){const e=yield be(B.auphonic.preset);localStorage&&localStorage.setItem("podlove-auphonic-preset",e)}function*fj(){let e=null;localStorage&&(e=localStorage.getItem("podlove-auphonic-preset"),e&&(yield te(Kg(e))))}function*pj(e,t){const{production_uuid:n}=t.payload,r=yield be(B.post.id);try{yield te(eo({production_uuid:n,status:"in_progress"}));const o=yield e.post(`auphonic/init-plus-file-transfer/${n}/${r}`,{});if(o.result&&o.result.success&&o.result.transfer_queue){const i=o.result.transfer_queue;if(i.length===0){yield te(eo({production_uuid:n,status:"completed",files:[]}));return}yield $t(mj,e,n,r,i)}else yield te(eo({production_uuid:n,status:"failed",errors:Dx(o,"Failed to initialize transfer")}))}catch(o){yield te(eo({production_uuid:n,status:"failed",errors:o.message||"Failed to trigger transfer"}))}}function rh(e,t){return e.slice(t).map(n=>({success:null,status:"pending",filename:n.filename,download_url:n.download_url,message:"Waiting to transfer..."}))}function hj(e){return{success:null,status:"processing",filename:e.filename,download_url:e.download_url,message:"Transferring..."}}function ac(e){return{...e,status:e.success?"completed":"failed"}}function*mj(e,t,n,r){let o=0,i=!1;const l=[],a=r.map(d=>({success:null,status:"pending",filename:d.filename,download_url:d.download_url,message:"Waiting to transfer..."}));yield te(eo({production_uuid:t,status:"in_progress",files:a}));for(let d=0;d<r.length;d++){const p=r[d],h=[...l.map(ac),hj(p),...rh(r,d+1)];yield te(eo({production_uuid:t,status:"in_progress",files:h}));try{const v=yield $t(gj,e,t,n,p);l.push(v),v.success?o++:i=!0;const b=d===r.length-1?nh(i,o):"in_progress";yield te(eo({production_uuid:t,status:b,files:[...l.map(ac),...rh(r,l.length)]}))}catch(v){i=!0;const y=DB(p,v.message);l.push(y),console.error("Error transferring file:",v);const S=d===r.length-1?nh(i,o):"in_progress";yield te(eo({production_uuid:t,status:S,files:[...l.map(ac),...rh(r,l.length)]}))}}const c=nh(i,o);try{const d={status:c,files:l};if(i)if(o===0)d.errors="All file transfers failed";else{const p=l.length-o;d.errors=`${p} of ${l.length} file transfers failed`}yield e.post(`auphonic/set-plus-transfer-status/${t}/${n}`,d)}catch(d){console.error("Failed to store final transfer status:",d)}yield te(eo({production_uuid:t,status:c,files:l.map(ac)}))}function*gj(e,t,n,r){const o=yield e.post(`auphonic/transfer-single-file/${t}/${n}`,{file_data:r});return o.result?o.result:MB(r,{message:Dx(o,"Transfer failed")})}function*vj(e,t){const{production_uuid:n}=t.payload;try{const r=yield be(B.episode.id);if(!r){console.error("Episode ID not available for loading transfer status");return}const o=yield e.get(`episodes/${r}`),i=o.result.auphonic_plus_transfer_status,l=o.result.auphonic_plus_transfer_files,a=o.result.auphonic_plus_transfer_errors;i&&(yield te(eo({production_uuid:n,status:i,files:l,errors:a})))}catch(r){console.error("Error loading PLUS transfer status:",r)}}function*yj(e,t){const{status:n}=t.payload;n==="completed"&&(yield $t(sd,e))}function _j(){return function*(){yield ur(QE,jB)}}function*bj(e,t){const n=yield be(B.episode.id),r=t.payload,{result:o}=yield e.put(`episodes/${n}/media/${r}/enable`,{}),i={asset_id:r,url:o.file_url,size:o.file_size,enable:!0};yield te(Gh(i)),typeof o.slug_frozen<"u"&&(yield te(bt({prop:"slug_frozen",value:o.slug_frozen})))}function*wj(e,t){const n=yield be(B.episode.id),r=t.payload;yield e.put(`episodes/${n}/media/${r}/disable`,{})}function*Sj(e){const t=yield be(B.mediafiles.files),n=yield be(B.episode.duration),o=t.filter(l=>l.enable&&l.size&&l.url).filter(l=>l.url.match(/\.(mp3|mp4|m4a|ogg|oga|opus)$/));let i;if(o.length===0)i="0";else{const l=o[0].url;i=(yield $j(l)).toString()}parseFloat(n)!==parseFloat(i)&&(yield te(bt({prop:"duration",value:i})))}async function Ej(e){return new Promise(t=>e.onloadedmetadata=()=>t())}async function $j(e){var t=new Audio;return t.setAttribute("preload","metadata"),t.setAttribute("src",e),t.load(),await Ej(t),t.duration}function*xj(e,t){const{files:n,episodeSlug:r}=Y.get(t,["payload"]),o=yield be(B.mediafiles.selectedFiles),i=o.map(a=>a.file),l=Tj(n,i);if(l.length>0){yield $t(Oj,l,r);const a=yield be(B.episode.id),c=l.map(p=>({file:p,originalName:p.name,newName:p.name,fileExists:null})),d=[...o,...c];yield te({type:Wa,payload:d});for(const p of l)yield St(Hx,e,p,a)}}function Tj(e,t){return e.filter(n=>!t.some(r=>r.name===n.name&&r.size===n.size))}function Cj(e){return e.split(".").slice(0,-1).join(".")}function*Oj(e,t){if(t)return t;if(e.length===0)return"";const n=e[0].name,r=Cj(n);return yield te(bt({prop:"slug",value:r})),r}function*Aj(e,t){const{result:n}=yield e.post("plus/check_file_exists",{filename:t.file.name});return{...t,fileExists:n}}function*Hx(e,t,n){const r=`filename-generation-${t.name}`;try{yield te(ia({key:r,status:"in_progress",message:"Generating filename..."}));const{result:o}=yield e.post("plus/generate_filename",{original_filename:t.name,episode_id:n}),i=o.generated_filename,a={file:new File([t],i,{type:t.type,lastModified:t.lastModified}),originalName:t.name,newName:i},c=yield $t(Aj,e,a);yield $t(kj,t.name,c),yield te(ia({key:r,status:"finished",message:"Filename generated"})),yield St(cb,r,2e3)}catch(o){yield te(ia({key:r,status:"error",message:"Failed to generate filename"})),yield St(cb,r,5e3),console.warn("Failed to generate filename via API, keeping original:",o)}}function*kj(e,t){const r=(yield be(B.mediafiles.selectedFiles)).map(o=>o.originalName===e?t:o);yield te({type:Wa,payload:r})}function*cb(e,t){yield Md(t),yield te(I$(e))}function*Ij(e,t){const n=yield be(B.episode.id),r=yield be(B.episode.slug);if((yield be(B.mediafiles.slugAutogenerationEnabled))&&t.payload.prop=="title"&&t.payload.value){const i=t.payload.value,{result:l}=yield e.get(`episodes/${n}/build_slug`,{query:{title:i}});r!=l.slug&&(yield te(bt({prop:"slug",value:l.slug})))}}function*Pj(e){const t=yield be(B.mediafiles.selectedFiles),n=yield be(B.episode.slug);if(t.length>0&&n){const r=t.map(l=>new File([l.file],l.originalName,{type:l.file.type,lastModified:l.file.lastModified})),o=r.map(l=>({file:l,originalName:l.name,newName:l.name,fileExists:null}));yield te({type:Wa,payload:o});const i=yield be(B.episode.id);for(const l of r)yield St(Hx,e,l,i)}}function*Rj(e){const t=yield be(B.episode.id);if(t)try{const{result:n}=yield e.post(`episodes/${t}/unfreeze_slug`,{});yield te(Mg({slug_frozen:n.slug_frozen}))}catch(n){console.error("Failed to unfreeze slug:",n)}}function*Lj(){yield te(Dg({onSuccess:{type:Xg}}))}function*Fj(e,t){const n=Y.get(t,["payload"]),r=`plus-upload-${n.name}`;yield te(I$(r));try{const o=yield $t(Nj,e,n.name),i=yield $t(Mj,o,n,r);yield te(iD(i));const l=yield $t(Dj,e,n.name);console.log("completeResult",l)}catch(o){console.error("File upload failed:",o),yield te(ia({key:r,status:"error",message:o instanceof Error?o.message:"File upload failed"}))}}function*Nj(e,t){const{result:n}=yield e.post("plus/create_file_upload",{filename:t});if(!n)throw new Error("Failed to get upload URL");return n}function*Mj(e,t,n){var a;const r=yield $t(sx,Uj),o=ix(r),l=(a=(yield $t(rn.put,e,t,{headers:{"Content-Type":t.type},onUploadProgress:o(n)})).config.url)==null?void 0:a.split("?")[0];if(!l)throw new Error("Failed to extract file URL from response");return l}function*Dj(e,t){const{result:n}=yield e.post("plus/complete_file_upload",{filename:t});if(!n)throw new Error("Failed to complete file upload");return n}function*Uj(e){yield te(k$(e)),yield te(ia({key:e.key,status:e.progress==100?"finished":"in_progress"}))}function*Bj(e,t){const r=Y.get(t,["payload"]).split("\\").pop().split("/").pop().split(".").shift();(yield be(B.episode.slug))?yield $t(sd,e):(yield te(bt({prop:"slug",value:r})),yield te(AM()))}function*jj(){const e=yield qr();yield St(Vj,e)}function*Vj(e){const t=yield be(B.episode.id),{result:{results:n}}=yield e.get(`episodes/${t}/media`);n&&(yield te(Q8(n))),yield Ne(ed,bj,e),yield Ne(td,wj,e),yield Ne(F$,BB,e),yield Ne(N$,sd,e),yield j_(Hh,sd,e),yield j_(Hh,Pj,e),yield Xh(2e3,zd,Ij,e),yield Ne(j$,xj,e),yield ox(2e3,[ed,td,Gg],Sj,e),yield Ne(M$,Lj),yield Ne(D$,Fj,e),yield Ne(Xg,Bj,e),yield Ne(z$,Rj,e),yield te(Z8())}function Hj(){return function*(){yield ur(P$,jj)}}function*zj(){const e=yield qr();yield St(Wj,e),yield Ne(Yg,qj,e)}function*Wj(e){const t=yield be(B.episode.id),[n,r]=yield Promise.all([e.get(`episodes/${t}/related?status=all`),e.get("episodes?status=all&sort_by=post_id&order_by=asc")]),o=Y.get(n,["result","relatedEpisodes"],[]),i=Y.get(r,["result","results"],[]),l=o.map(a=>a.related_episode_id);yield te(G$(l)),yield te(mD(i))}function*qj(e,t){const n=yield be(B.episode.id),r=yield be(B.relatedEpisodes.selectEpisode);yield e.post(`episodes/${n}/related`,{related:r})}function Kj(){return function*(){yield ur(q$,zj)}}function*Gj(){const e=yield qr();yield St(Xj,e)}function*Xj(e){const t=yield be(B.settings.modules),{result:n}=yield e.get("shows");vD&&(yield te(Y$(n)),yield Ne(tl,Jj),t.includes("automatic_numbering")&&(yield Ne(nd,Zj,e)),t.includes("auphonic")&&(yield Ne(nd,Yj,n)))}function*Yj(e,t){const n=e.find(r=>r.slug===t.payload);n&&n.auphonic_preset&&(yield te(Kg(n.auphonic_preset)))}function*Jj(e){const t=Y.get(e,["payload","prop"]),n=Y.get(e,["payload","value"],null);t==="show"&&(yield te(J$(n)))}function*Zj(e,t){const{result:n}=yield e.get("shows/next_episode_number",{query:{show:t.payload}});yield te(bt({prop:"number",value:n.toString()}))}function Qj(){return function*(){yield ur(Jg,Gj)}}function*eV(){const e=yield qr();yield St(tV,e),yield Ne(Qg,nV,e)}function*tV(e){const{result:t}=yield e.get("admin/onboarding");t&&(yield te(_D(t)))}function*nV(e,t){const n=yield be(B.admin.type);yield e.put("admin/onboarding",{type:n})}function rV(){return function*(){yield ur(tx,eV)}}function*oV(){const e=yield qr();yield St(sV,e)}function*sV(e){const{result:t}=yield e.get("plus/get_migration_status");yield te(y8({isMigrationComplete:t.is_complete}));const{result:n}=yield e.get("admin/plus/episodes_for_migration"),r=n.episodes.map(o=>({episodeName:o.episode_title,files:o.files.map(i=>({name:i.filename,localUrl:i.local_url,remoteUrl:i.plus_url,state:"init"}))}));yield te(h8({episodesWithFiles:r})),yield te(Wh({totalState:"ready"})),yield ur(BE,lV,e)}function*iV(e,t,n){const o=(yield be(B.plusFileMigration.episodesWithFiles))[t],i=o.files[n],l=o.episodeName,a=i.name;yield te(g8({currentEpisodeName:l,currentFileName:a})),yield te(sc({filename:a,state:"in_progress"}));try{(yield e.post("plus/migrate_file",{filename:a,file_url:i.localUrl})).result===!1?yield te(sc({filename:a,state:"error"})):(yield te(sc({filename:a,state:"finished"})),yield te(eo({production_uuid:"migration",status:"completed"})))}catch(c){throw yield te(sc({filename:a,state:"error"})),c}}function*lV(e){yield te(Wh({totalState:"in_progress"}));const t=yield be(B.plusFileMigration.episodesWithFiles),n=t.reduce((l,a)=>l+a.files.length,0);let r=0,o=!1;const i=t.flatMap((l,a)=>l.files.map((c,d)=>({episodeIndex:a,fileIndex:d})));for(const l of i)try{yield $t(iV,e,l.episodeIndex,l.fileIndex),r++}catch(a){o=!0,console.error("Error migrating file:",a)}finally{const a=Math.round(r/n*100);yield te(v8({progress:a}))}yield te(Wh({totalState:UB(o)})),o||(yield e.post("plus/set_migration_complete",{}))}function aV(){return function*(){yield ur(ME,oV)}}function*uV(){const e=yield qr();yield St(cV,e)}function*cV(e){const{result:t}=yield e.get("admin/plus/features");yield te(qh({feature:"fileStorage",value:t.file_storage})),yield te(qh({feature:"feedProxy",value:t.feed_proxy})),yield Ne(jg,dV,e),yield Ne(KE,fV,e),yield Ne(YE,pV,e),yield te(S8())}function*dV(e,t){const{feature:n,value:r}=t.payload;yield e.post("admin/plus/set_feature",{feature:n,value:r})}function*fV(e){try{yield te(N_(!0));const{result:t}=yield e.get("admin/plus/token");yield te(Kh(t.token||"")),t.token&&(yield $t(zx,e,t.token))}catch(t){console.error("Failed to get token:",t),yield te(Kh("")),yield te(sa(null))}finally{yield te(N_(!1))}}function*zx(e,t){try{const{result:n}=yield e.get("admin/plus/validate_token");n.user?yield te(sa(n.user)):yield te(sa(null))}catch(n){console.error("Failed to validate token:",n),yield te(sa(null))}}function*pV(e,t){try{yield te(M_(!0));const n=t.payload;yield e.post("admin/plus/save_token",{token:n}),n?yield $t(zx,e,n):yield te(sa(null))}catch(n){console.error("Failed to save token:",n)}finally{yield te(M_(!1))}}function hV(){return function*(){yield ur(qE,uV)}}const jn=HN(),mV=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||mS,ef=pg(MD,mV(C7(jn)));jn.run(VD());jn.run(e9());jn.run(_9());jn.run(x9());jn.run(R9());jn.run(B9());jn.run(X9());jn.run(QD());jn.run(_j());jn.run(Hj());jn.run(Kj());jn.run(Qj());jn.run(rV());jn.run(aV());jn.run(hV());const gV=ge({props:{name:{type:String,default:null},title:{type:String,default:null}}}),Le=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},vV={class:"bg-white font-sans sm:rounded-lg sm:shadow-md"},yV={class:"bg-white px-4 py-5 border-b border-gray-200 sm:px-6"},_V={class:"-ml-4 -mt-2 flex items-center justify-between flex-wrap sm:flex-nowrap"},bV={class:"ml-4 mt-2"},wV=["for"],SV={class:"ml-4 mt-2 flex flex-shrink-0"};function EV(e,t,n,r,o,i){return I(),F("section",vV,[m("div",yV,[m("div",_V,[m("div",bV,[m("h3",{class:"text-lg leading-6 font-medium text-gray-900",for:`podlove-module-${e.name}`},L(e.title),9,wV)]),m("div",SV,[yn(e.$slots,"actions")])])]),m("div",null,[yn(e.$slots,"default")])])}const In=Le(gV,[["render",EV]]);function $V(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5M16.5 12 12 16.5m0 0L7.5 12m4.5 4.5V3"})])}function Wx(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 13.5 12 21m0 0-7.5-7.5M12 21V3"})])}function tf(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"})])}function qx(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M13.5 6H5.25A2.25 2.25 0 0 0 3 8.25v10.5A2.25 2.25 0 0 0 5.25 21h10.5A2.25 2.25 0 0 0 18 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25"})])}function xV(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5m-13.5-9L12 3m0 0 4.5 4.5M12 3v13.5"})])}function TV(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4.5 10.5 12 3m0 0 7.5 7.5M12 3v18"})])}function CV(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M17.593 3.322c1.1.128 1.907 1.077 1.907 2.185V21L12 17.25 4.5 21V5.507c0-1.108.806-2.057 1.907-2.185a48.507 48.507 0 0 1 11.186 0Z"})])}function OV(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 12.75 11.25 15 15 9.75M21 12c0 1.268-.63 2.39-1.593 3.068a3.745 3.745 0 0 1-1.043 3.296 3.745 3.745 0 0 1-3.296 1.043A3.745 3.745 0 0 1 12 21c-1.268 0-2.39-.63-3.068-1.593a3.746 3.746 0 0 1-3.296-1.043 3.745 3.745 0 0 1-1.043-3.296A3.745 3.745 0 0 1 3 12c0-1.268.63-2.39 1.593-3.068a3.745 3.745 0 0 1 1.043-3.296 3.746 3.746 0 0 1 3.296-1.043A3.746 3.746 0 0 1 12 3c1.268 0 2.39.63 3.068 1.593a3.746 3.746 0 0 1 3.296 1.043 3.746 3.746 0 0 1 1.043 3.296A3.745 3.745 0 0 1 21 12Z"})])}function Kx(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function AV(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m4.5 12.75 6 6 9-13.5"})])}function Gx(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"})])}function kV(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})])}function IV(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M20.25 6.375c0 2.278-3.694 4.125-8.25 4.125S3.75 8.653 3.75 6.375m16.5 0c0-2.278-3.694-4.125-8.25-4.125S3.75 4.097 3.75 6.375m16.5 0v11.25c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125V6.375m16.5 0v3.75m-16.5-3.75v3.75m16.5 0v3.75C20.25 16.153 16.556 18 12 18s-8.25-1.847-8.25-4.125v-3.75m16.5 0c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125"})])}function PV(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M11.35 3.836c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 0 0 .75-.75 2.25 2.25 0 0 0-.1-.664m-5.8 0A2.251 2.251 0 0 1 13.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m8.9-4.414c.376.023.75.05 1.124.08 1.131.094 1.976 1.057 1.976 2.192V16.5A2.25 2.25 0 0 1 18 18.75h-2.25m-7.5-10.5H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V18.75m-7.5-10.5h6.375c.621 0 1.125.504 1.125 1.125v9.375m-8.25-3 1.5 1.5 3-3.75"})])}function Xx(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function nf(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 16.5V9.75m0 0 3 3m-3-3-3 3M6.75 19.5a4.5 4.5 0 0 1-1.41-8.775 5.25 5.25 0 0 1 10.233-2.33 3 3 0 0 1 3.758 3.848A3.752 3.752 0 0 1 18 19.5H6.75Z"})])}function Yx(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M2.25 15a4.5 4.5 0 0 0 4.5 4.5H18a3.75 3.75 0 0 0 1.332-7.257 3 3 0 0 0-3.758-3.848 5.25 5.25 0 0 0-10.233 2.33A4.502 4.502 0 0 0 2.25 15Z"})])}function RV(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.325.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 0 1 1.37.49l1.296 2.247a1.125 1.125 0 0 1-.26 1.431l-1.003.827c-.293.241-.438.613-.43.992a7.723 7.723 0 0 1 0 .255c-.008.378.137.75.43.991l1.004.827c.424.35.534.955.26 1.43l-1.298 2.247a1.125 1.125 0 0 1-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.47 6.47 0 0 1-.22.128c-.331.183-.581.495-.644.869l-.213 1.281c-.09.543-.56.94-1.11.94h-2.594c-.55 0-1.019-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 0 1-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 0 1-1.369-.49l-1.297-2.247a1.125 1.125 0 0 1 .26-1.431l1.004-.827c.292-.24.437-.613.43-.991a6.932 6.932 0 0 1 0-.255c.007-.38-.138-.751-.43-.992l-1.004-.827a1.125 1.125 0 0 1-.26-1.43l1.297-2.247a1.125 1.125 0 0 1 1.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.086.22-.128.332-.183.582-.495.644-.869l.214-1.28Z"}),m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})])}function LV(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4.5 12a7.5 7.5 0 0 0 15 0m-15 0a7.5 7.5 0 1 1 15 0m-15 0H3m16.5 0H21m-1.5 0H12m-8.457 3.077 1.41-.513m14.095-5.13 1.41-.513M5.106 17.785l1.15-.964m11.49-9.642 1.149-.964M7.501 19.795l.75-1.3m7.5-12.99.75-1.3m-6.063 16.658.26-1.477m2.605-14.772.26-1.477m0 17.726-.26-1.477M10.698 4.614l-.26-1.477M16.5 19.794l-.75-1.299M7.5 4.205 12 12m6.894 5.785-1.149-.964M6.256 7.178l-1.15-.964m15.352 8.864-1.41-.513M4.954 9.435l-1.41-.514M12.002 12l-3.75 6.495"})])}function FV(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M10.125 2.25h-4.5c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125v-9M10.125 2.25h.375a9 9 0 0 1 9 9v.375M10.125 2.25A3.375 3.375 0 0 1 13.5 5.625v1.5c0 .621.504 1.125 1.125 1.125h1.5a3.375 3.375 0 0 1 3.375 3.375M9 15l2.25 2.25L15 12"})])}function lv(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"})])}function av(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z"})])}function NV(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.98 8.223A10.477 10.477 0 0 0 1.934 12C3.226 16.338 7.244 19.5 12 19.5c.993 0 1.953-.138 2.863-.395M6.228 6.228A10.451 10.451 0 0 1 12 4.5c4.756 0 8.773 3.162 10.065 7.498a10.522 10.522 0 0 1-4.293 5.774M6.228 6.228 3 3m3.228 3.228 3.65 3.65m7.894 7.894L21 21m-3.228-3.228-3.65-3.65m0 0a3 3 0 1 0-4.243-4.243m4.242 4.242L9.88 9.88"})])}function MV(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z"}),m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})])}function Jx(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L6.832 19.82a4.5 4.5 0 0 1-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 0 1 1.13-1.897L16.863 4.487Zm0 0L19.5 7.125"})])}function rf(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 4.5v15m7.5-7.5h-15"})])}function DV(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"})])}function Zx(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M17.982 18.725A7.488 7.488 0 0 0 12 15.75a7.488 7.488 0 0 0-5.982 2.975m11.963 0a9 9 0 1 0-11.963 0m11.963 0A8.966 8.966 0 0 1 12 21a8.966 8.966 0 0 1-5.982-2.275M15 9.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})])}function Qx(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m9.75 9.75 4.5 4.5m0-4.5-4.5 4.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function ml(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18 18 6M6 6l12 12"})])}function Dl(e,t,n){let r=n.initialDeps??[],o;return()=>{var i,l,a,c;let d;n.key&&((i=n.debug)!=null&&i.call(n))&&(d=Date.now());const p=e();if(!(p.length!==r.length||p.some((y,b)=>r[b]!==y)))return o;r=p;let v;if(n.key&&((l=n.debug)!=null&&l.call(n))&&(v=Date.now()),o=t(...p),n.key&&((a=n.debug)!=null&&a.call(n))){const y=Math.round((Date.now()-d)*100)/100,b=Math.round((Date.now()-v)*100)/100,S=b/16,T=(C,w)=>{for(C=String(C);C.length<w;)C=" "+C;return C};console.info(`%c⏱ ${T(b,5)} /${T(y,5)} ms`,`50 `}function H1(e,t){var n=new Blob([t],{type:"text/plain"});const r=document.createElement("a");r.href=window.URL.createObjectURL(n),r.download=e,document.body.appendChild(r),r.click(),document.body.removeChild(r)}function*g9(e){const t=[o9,s9,i9,l9];let n=[];if(t.forEach(r=>{if(!(n!==null&&n.length>0))try{n=r(e.payload)}catch{n=null}}),n===null){yield te(Qg({type:"error",message:a9("Unable to parse PSC chapters.","podlove-podcasting-plugin-for-wordpress")}));return}yield te(pE(n))}function*v9(e){const t=yield be(B.chapters.selectedIndex);if(t===null)return;const n=yield be(B.chapters.list);switch(!0){case e.key==="up":t===0?yield te(ms(n.length-1)):yield te(ms(t-1));break;case e.key==="down":t===n.length-1?yield te(ms(0)):yield te(ms(t+1));break;case e.key==="esc":yield te(ms(null));break}}function*y9(){yield te(Mg({onSuccess:{type:Vd}}))}function _9(){return function*(){yield cr(lE,c9)}}function*b9(){const e=yield Kr();yield St(Xd,e),yield Ne(CE,w9,e),yield Ne(Dg,E9,e),yield Ne(AE,$9,e),yield Ne(OE,S9,e)}function*Xd(e){const t=yield be(B.episode.id),[n,r]=yield Promise.all([e.get(`transcripts/${t}`),e.get(`transcripts/voices/${t}`)]);yield te(HM(Y.get(n,["result","transcript"],[]))),yield te(zM(Y.get(r,["result","voices"],[])))}function*w9(e,t){const n=yield be(B.episode.id),{result:r}=yield e.put(`transcripts/${n}`,{content:t.payload});r&&(yield St(Xd,e))}function*S9(e,t){const n=yield be(B.episode.id),{result:r}=yield e.put(`transcripts/${n}`,{asset:1});r&&(yield St(Xd,e))}function*E9(e,t){const n=yield be(B.episode.id);yield e.post(`transcripts/voices/${n}`,{voice:t.payload.voice,contributor_id:t.payload.contributor})}function*$9(e){const t=yield be(B.episode.id),{result:n}=yield e.delete(`transcripts/${t}`);n&&(yield St(Xd,e))}function x9(){return function*(){yield cr($E,b9)}}function*T9(){const e=yield Kr();yield St(A9,e),yield St(k9,e),yield St(I9,e),yield St(C9,e),yield Ne(wE,P9,e),yield ox(3e3,[Pg,Ig,Rg,Lg,Fg],O9,e)}function*C9(e){const t=yield be(B.episode.id);if(!t)return;const{result:n}=yield e.get(`episodes/${t}/contributions`);n&&(yield te(Ng({contributions:Y.get(n,["contribution"],[])})))}function*O9(e){const t=yield be(B.episode.id);if(!t)return;const n=yield be(B.contributors.roles),r=yield be(B.contributors.groups);let i=(yield be(B.episode.contributions)).map(function({contributor_id:l,role_id:a,group_id:c,position:d,comment:p}){return{contributor_id:Y.toInteger(l),role_id:Y.toInteger(a)==0&&n.length>0?n[0].id:Y.toInteger(a),group_id:Y.toInteger(c)==0&&r.length>0?r[0].id:Y.toInteger(c),position:Y.toInteger(d),comment:p||""}});yield e.put(`episodes/${t}/contributions`,{contributors:i})}function*A9(e){const{result:t}=yield e.get("contributors",{query:{filter:"all"}});t&&(yield te(ZM(Y.get(t,"contributors",[]))))}function*k9(e){const{result:t}=yield e.get("contributors/roles");t&&(yield te(QM(Y.get(t,"roles",[]))))}function*I9(e){const{result:t}=yield e.get("contributors/groups");t&&(yield te(e8(Y.get(t,"groups",[]))))}function*P9(e,t){const{result:n,error:r}=yield e.post("contributors",{});if(r)return;const o=n==null?void 0:n.id,i=Y.get(t,["payload"]),{error:l}=yield e.put(`contributors/${o}`,{realname:i});if(l)return;const a={id:o,realname:i};yield te(t8(a)),yield te(SE(a))}function R9(){return function*(){yield cr(kE,T9)}}const Kn=Y.get(window,["wp","data"],null),dx=Y.get(window,["wp","media"],null),ri=document.querySelector('input[name="post_title"]'),L9=e=>ri==null?void 0:ri.addEventListener("change",t=>e(Y.get(t,["target","value"])));function*F9(){const e=yield be(B.settings.autoGenerateEpisodeTitle);typeof(Kn==null?void 0:Kn.subscribe)<"u"&&(yield Ne(yield $t(Jh,Kn==null?void 0:Kn.subscribe),D9)),ri&&(yield Ne(yield $t(Jh,L9),fx)),e&&(yield Ne(Hd,z1),yield Ne(tl,z1)),dx&&(yield Ne(EE,U9))}function N9(){if(!(Kn!=null&&Kn.select))return null;const e=Kn.select("core/editor");return e!=null&&e.getEditedPostAttribute?e.getEditedPostAttribute("featured_media"):null}function M9(){if(!(Kn!=null&&Kn.select))return"";const e=Kn.select("core/editor");return e!=null&&e.getEditedPostAttribute?e.getEditedPostAttribute("title"):""}function*D9(){const e=M9(),t=N9(),n=t?Kn.select("core").getMedia(t):null,r=yield be(B.post.title),o=yield be(B.post.featuredMedia);r!=e&&(yield te(Wh({prop:"title",value:e}))),Y.get(o,["id"])!=Y.get(n,["id"])&&(yield te(Wh({prop:"featured_media",value:n})))}function*fx(e){yield te(Wh({prop:"title",value:e}))}function*z1(){if(!ri)return;const e=yield be(B.settings.blogTitleTemplate);if(!e)return;const t=yield be(B.episode.title),n=yield be(B.episode.number),r=yield be(B.podcast.mnemonic),o=yield be(B.settings.episodeNumberPadding),i=e.replace("%mnemonic%",r||"").replace("%episode_number%",(n||"").padStart(o||0,"0")).replace("%season_number%","").replace("%episode_title%",t||"");ri.value!=i&&(ri.value=i,yield fx(i))}function*U9(e){const t=Y.get(e,["payload","onSuccess"]);if(!t){console.warn("Missing successAction");return}const n=dx({title:"Select or Upload Media Of Your Chosen Persuasion",button:{text:"Use this media"},multiple:!1}),r=new Promise(o=>{n.on("select",()=>{const{url:i}=n.state().get("selection").first().toJSON();o(i)})});n.open();try{const o=yield r;yield te({...t,payload:o})}finally{}}function B9(){return function*(){yield cr(qr,F9)}}let Wl={};function*j9(){const e=yield Kr();yield St(H9,e),yield Ne(tl,z9),yield Yh(1e3,tl,W1,e),yield Yh(50,vE,W1,e),yield Ne(yE,W9),yield Ne(bE,q9),yield Ne(_E,K9),yield Ne(Wd,G9),yield Ne(Hd,V9)}function*V9(){const e=yield be(B.episode.auphonicWebhookConfig);e&&(yield te(x$(e.enabled)))}function*H9(e){const t=yield be(B.episode.id);if(!t)return;const{result:n}=yield e.get(`episodes/${t}`);n&&(n.slug===null&&(yield te(lD())),yield te(Ng(n)))}function*z9(e){const t=Y.get(e,["payload","prop"]),n=Y.get(e,["payload","value"],null);if(t){if(t==="slug"&&(yield be(B.episode.slugFrozen))){console.warn("Attempted to update frozen slug - update blocked");return}Wl[t]=n}}function*W1(e,t){const n=yield be(B.episode.id);Y.isEmpty(Wl)||(yield e.put(`episodes/${n}`,Wl,{query:{skip_validation:"1"}}),yield te(FM(Wl)),Wl={})}function*W9(e){Object.keys(e.payload).includes("slug")&&(yield te(NM()))}function*q9(){yield te(Mg({onSuccess:{type:_E}}))}function*K9(e){yield te(bt({prop:"episode_poster",value:Y.get(e,["payload"])}))}function*G9(e){if((yield be(B.settings.imageAsset))!="post-thumbnail"||Y.get(e,["payload","prop"])!="featured_media")return;const n=Y.get(e,["payload","value","source_url"]);yield te(bt({prop:"poster",value:n}))}function X9(){return function*(){yield cr(gE,j9)}}function px(e,t){return function(){return e.apply(t,arguments)}}const{toString:Y9}=Object.prototype,{getPrototypeOf:ev}=Object,Yd=(e=>t=>{const n=Y9.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),po=e=>(e=e.toLowerCase(),t=>Yd(t)===e),Jd=e=>t=>typeof t===e,{isArray:pl}=Array,Ta=Jd("undefined");function J9(e){return e!==null&&!Ta(e)&&e.constructor!==null&&!Ta(e.constructor)&&$r(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const hx=po("ArrayBuffer");function Z9(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&hx(e.buffer),t}const Q9=Jd("string"),$r=Jd("function"),mx=Jd("number"),Zd=e=>e!==null&&typeof e=="object",eU=e=>e===!0||e===!1,Ec=e=>{if(Yd(e)!=="object")return!1;const t=ev(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},tU=po("Date"),nU=po("File"),rU=po("Blob"),oU=po("FileList"),sU=e=>Zd(e)&&$r(e.pipe),iU=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||$r(e.append)&&((t=Yd(e))==="formdata"||t==="object"&&$r(e.toString)&&e.toString()==="[object FormData]"))},lU=po("URLSearchParams"),[aU,uU,cU,dU]=["ReadableStream","Request","Response","Headers"].map(po),fU=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ka(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),pl(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),l=i.length;let a;for(r=0;r<l;r++)a=i[r],t.call(null,e[a],a,e)}}function gx(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Ys=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,vx=e=>!Ta(e)&&e!==Ys;function Zh(){const{caseless:e}=vx(this)&&this||{},t={},n=(r,o)=>{const i=e&&gx(t,o)||o;Ec(t[i])&&Ec(r)?t[i]=Zh(t[i],r):Ec(r)?t[i]=Zh({},r):pl(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&Ka(arguments[r],n);return t}const pU=(e,t,n,{allOwnKeys:r}={})=>(Ka(t,(o,i)=>{n&&$r(o)?e[i]=px(o,n):e[i]=o},{allOwnKeys:r}),e),hU=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),mU=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},gU=(e,t,n,r)=>{let o,i,l;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)l=o[i],(!r||r(l,e,t))&&!a[l]&&(t[l]=e[l],a[l]=!0);e=n!==!1&&ev(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},vU=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},yU=e=>{if(!e)return null;if(pl(e))return e;let t=e.length;if(!mx(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},_U=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ev(Uint8Array)),bU=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},wU=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},SU=po("HTMLFormElement"),EU=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),q1=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),$U=po("RegExp"),yx=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Ka(n,(o,i)=>{let l;(l=t(o,i,e))!==!1&&(r[i]=l||o)}),Object.defineProperties(e,r)},xU=e=>{yx(e,(t,n)=>{if($r(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if($r(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},TU=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return pl(e)?r(e):r(String(e).split(t)),n},CU=()=>{},OU=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Qp="abcdefghijklmnopqrstuvwxyz",K1="0123456789",_x={DIGIT:K1,ALPHA:Qp,ALPHA_DIGIT:Qp+Qp.toUpperCase()+K1},AU=(e=16,t=_x.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function kU(e){return!!(e&&$r(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const IU=e=>{const t=new Array(10),n=(r,o)=>{if(Zd(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=pl(r)?[]:{};return Ka(r,(l,a)=>{const c=n(l,o+1);!Ta(c)&&(i[a]=c)}),t[o]=void 0,i}}return r};return n(e,0)},PU=po("AsyncFunction"),RU=e=>e&&(Zd(e)||$r(e))&&$r(e.then)&&$r(e.catch),bx=((e,t)=>e?setImmediate:t?((n,r)=>(Ys.addEventListener("message",({source:o,data:i})=>{o===Ys&&i===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Ys.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",$r(Ys.postMessage)),LU=typeof queueMicrotask<"u"?queueMicrotask.bind(Ys):typeof process<"u"&&process.nextTick||bx,ee={isArray:pl,isArrayBuffer:hx,isBuffer:J9,isFormData:iU,isArrayBufferView:Z9,isString:Q9,isNumber:mx,isBoolean:eU,isObject:Zd,isPlainObject:Ec,isReadableStream:aU,isRequest:uU,isResponse:cU,isHeaders:dU,isUndefined:Ta,isDate:tU,isFile:nU,isBlob:rU,isRegExp:$U,isFunction:$r,isStream:sU,isURLSearchParams:lU,isTypedArray:_U,isFileList:oU,forEach:Ka,merge:Zh,extend:pU,trim:fU,stripBOM:hU,inherits:mU,toFlatObject:gU,kindOf:Yd,kindOfTest:po,endsWith:vU,toArray:yU,forEachEntry:bU,matchAll:wU,isHTMLForm:SU,hasOwnProperty:q1,hasOwnProp:q1,reduceDescriptors:yx,freezeMethods:xU,toObjectSet:TU,toCamelCase:EU,noop:CU,toFiniteNumber:OU,findKey:gx,global:Ys,isContextDefined:vx,ALPHABET:_x,generateString:AU,isSpecCompliantForm:kU,toJSONObject:IU,isAsyncFn:PU,isThenable:RU,setImmediate:bx,asap:LU};function ot(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}ee.inherits(ot,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ee.toJSONObject(this.config),code:this.code,status:this.status}}});const wx=ot.prototype,Sx={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Sx[e]={value:e}});Object.defineProperties(ot,Sx);Object.defineProperty(wx,"isAxiosError",{value:!0});ot.from=(e,t,n,r,o,i)=>{const l=Object.create(wx);return ee.toFlatObject(e,l,function(c){return c!==Error.prototype},a=>a!=="isAxiosError"),ot.call(l,e.message,t,n,r,o),l.cause=e,l.name=e.name,i&&Object.assign(l,i),l};const FU=null;function Qh(e){return ee.isPlainObject(e)||ee.isArray(e)}function Ex(e){return ee.endsWith(e,"[]")?e.slice(0,-2):e}function G1(e,t,n){return e?e.concat(t).map(function(o,i){return o=Ex(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function NU(e){return ee.isArray(e)&&!e.some(Qh)}const MU=ee.toFlatObject(ee,{},null,function(t){return/^is[A-Z]/.test(t)});function Qd(e,t,n){if(!ee.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=ee.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,T){return!ee.isUndefined(T[S])});const r=n.metaTokens,o=n.visitor||p,i=n.dots,l=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&ee.isSpecCompliantForm(t);if(!ee.isFunction(o))throw new TypeError("visitor must be a function");function d(b){if(b===null)return"";if(ee.isDate(b))return b.toISOString();if(!c&&ee.isBlob(b))throw new ot("Blob is not supported. Use a Buffer instead.");return ee.isArrayBuffer(b)||ee.isTypedArray(b)?c&&typeof Blob=="function"?new Blob([b]):Buffer.from(b):b}function p(b,S,T){let C=b;if(b&&!T&&typeof b=="object"){if(ee.endsWith(S,"{}"))S=r?S:S.slice(0,-2),b=JSON.stringify(b);else if(ee.isArray(b)&&NU(b)||(ee.isFileList(b)||ee.endsWith(S,"[]"))&&(C=ee.toArray(b)))return S=Ex(S),C.forEach(function(E,O){!(ee.isUndefined(E)||E===null)&&t.append(l===!0?G1([S],O,i):l===null?S:S+"[]",d(E))}),!1}return Qh(b)?!0:(t.append(G1(T,S,i),d(b)),!1)}const h=[],v=Object.assign(MU,{defaultVisitor:p,convertValue:d,isVisitable:Qh});function y(b,S){if(!ee.isUndefined(b)){if(h.indexOf(b)!==-1)throw Error("Circular reference detected in "+S.join("."));h.push(b),ee.forEach(b,function(C,w){(!(ee.isUndefined(C)||C===null)&&o.call(t,C,ee.isString(w)?w.trim():w,S,v))===!0&&y(C,S?S.concat(w):[w])}),h.pop()}}if(!ee.isObject(e))throw new TypeError("data must be an object");return y(e),t}function X1(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function tv(e,t){this._pairs=[],e&&Qd(e,this,t)}const $x=tv.prototype;$x.append=function(t,n){this._pairs.push([t,n])};$x.toString=function(t){const n=t?function(r){return t.call(this,r,X1)}:X1;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function DU(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function xx(e,t,n){if(!t)return e;const r=n&&n.encode||DU,o=n&&n.serialize;let i;if(o?i=o(t,n):i=ee.isURLSearchParams(t)?t.toString():new tv(t,n).toString(r),i){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Y1{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ee.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Tx={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},UU=typeof URLSearchParams<"u"?URLSearchParams:tv,BU=typeof FormData<"u"?FormData:null,jU=typeof Blob<"u"?Blob:null,VU={isBrowser:!0,classes:{URLSearchParams:UU,FormData:BU,Blob:jU},protocols:["http","https","file","blob","url","data"]},nv=typeof window<"u"&&typeof document<"u",em=typeof navigator=="object"&&navigator||void 0,HU=nv&&(!em||["ReactNative","NativeScript","NS"].indexOf(em.product)<0),zU=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",WU=nv&&window.location.href||"http://localhost",qU=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:nv,hasStandardBrowserEnv:HU,hasStandardBrowserWebWorkerEnv:zU,navigator:em,origin:WU},Symbol.toStringTag,{value:"Module"})),rr={...qU,...VU};function KU(e,t){return Qd(e,new rr.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return rr.isNode&&ee.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function GU(e){return ee.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function XU(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}function Cx(e){function t(n,r,o,i){let l=n[i++];if(l==="__proto__")return!0;const a=Number.isFinite(+l),c=i>=n.length;return l=!l&&ee.isArray(o)?o.length:l,c?(ee.hasOwnProp(o,l)?o[l]=[o[l],r]:o[l]=r,!a):((!o[l]||!ee.isObject(o[l]))&&(o[l]=[]),t(n,r,o[l],i)&&ee.isArray(o[l])&&(o[l]=XU(o[l])),!a)}if(ee.isFormData(e)&&ee.isFunction(e.entries)){const n={};return ee.forEachEntry(e,(r,o)=>{t(GU(r),o,n,0)}),n}return null}function YU(e,t,n){if(ee.isString(e))try{return(t||JSON.parse)(e),ee.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const Ga={transitional:Tx,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=ee.isObject(t);if(i&&ee.isHTMLForm(t)&&(t=new FormData(t)),ee.isFormData(t))return o?JSON.stringify(Cx(t)):t;if(ee.isArrayBuffer(t)||ee.isBuffer(t)||ee.isStream(t)||ee.isFile(t)||ee.isBlob(t)||ee.isReadableStream(t))return t;if(ee.isArrayBufferView(t))return t.buffer;if(ee.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return KU(t,this.formSerializer).toString();if((a=ee.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Qd(a?{"files[]":t}:t,c&&new c,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),YU(t)):t}],transformResponse:[function(t){const n=this.transitional||Ga.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(ee.isResponse(t)||ee.isReadableStream(t))return t;if(t&&ee.isString(t)&&(r&&!this.responseType||o)){const l=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(a){if(l)throw a.name==="SyntaxError"?ot.from(a,ot.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:rr.classes.FormData,Blob:rr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ee.forEach(["delete","get","head","post","put","patch"],e=>{Ga.headers[e]={}});const JU=ee.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ZU=e=>{const t={};let n,r,o;return e&&e.split(` 51 `).forEach(function(l){o=l.indexOf(":"),n=l.substring(0,o).trim().toLowerCase(),r=l.substring(o+1).trim(),!(!n||t[n]&&JU[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},J1=Symbol("internals");function Ml(e){return e&&String(e).trim().toLowerCase()}function $c(e){return e===!1||e==null?e:ee.isArray(e)?e.map($c):String(e)}function QU(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const eB=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function eh(e,t,n,r,o){if(ee.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!ee.isString(t)){if(ee.isString(r))return t.indexOf(r)!==-1;if(ee.isRegExp(r))return r.test(t)}}function tB(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function nB(e,t){const n=ee.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,l){return this[r].call(this,t,o,i,l)},configurable:!0})})}class or{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(a,c,d){const p=Ml(c);if(!p)throw new Error("header name must be a non-empty string");const h=ee.findKey(o,p);(!h||o[h]===void 0||d===!0||d===void 0&&o[h]!==!1)&&(o[h||c]=$c(a))}const l=(a,c)=>ee.forEach(a,(d,p)=>i(d,p,c));if(ee.isPlainObject(t)||t instanceof this.constructor)l(t,n);else if(ee.isString(t)&&(t=t.trim())&&!eB(t))l(ZU(t),n);else if(ee.isHeaders(t))for(const[a,c]of t.entries())i(c,a,r);else t!=null&&i(n,t,r);return this}get(t,n){if(t=Ml(t),t){const r=ee.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return QU(o);if(ee.isFunction(n))return n.call(this,o,r);if(ee.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ml(t),t){const r=ee.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||eh(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(l){if(l=Ml(l),l){const a=ee.findKey(r,l);a&&(!n||eh(r,r[a],a,n))&&(delete r[a],o=!0)}}return ee.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||eh(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return ee.forEach(this,(o,i)=>{const l=ee.findKey(r,i);if(l){n[l]=$c(o),delete n[i];return}const a=t?tB(i):String(i).trim();a!==i&&delete n[i],n[a]=$c(o),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return ee.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&ee.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` 52 `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[J1]=this[J1]={accessors:{}}).accessors,o=this.prototype;function i(l){const a=Ml(l);r[a]||(nB(o,l),r[a]=!0)}return ee.isArray(t)?t.forEach(i):i(t),this}}or.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ee.reduceDescriptors(or.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});ee.freezeMethods(or);function th(e,t){const n=this||Ga,r=t||n,o=or.from(r.headers);let i=r.data;return ee.forEach(e,function(a){i=a.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Ox(e){return!!(e&&e.__CANCEL__)}function hl(e,t,n){ot.call(this,e??"canceled",ot.ERR_CANCELED,t,n),this.name="CanceledError"}ee.inherits(hl,ot,{__CANCEL__:!0});function Ax(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new ot("Request failed with status code "+n.status,[ot.ERR_BAD_REQUEST,ot.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function rB(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function oB(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,l;return t=t!==void 0?t:1e3,function(c){const d=Date.now(),p=r[i];l||(l=d),n[o]=c,r[o]=d;let h=i,v=0;for(;h!==o;)v+=n[h++],h=h%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),d-l<t)return;const y=p&&d-p;return y?Math.round(v*1e3/y):void 0}}function sB(e,t){let n=0,r=1e3/t,o,i;const l=(d,p=Date.now())=>{n=p,o=null,i&&(clearTimeout(i),i=null),e.apply(null,d)};return[(...d)=>{const p=Date.now(),h=p-n;h>=r?l(d,p):(o=d,i||(i=setTimeout(()=>{i=null,l(o)},r-h)))},()=>o&&l(o)]}const rd=(e,t,n=3)=>{let r=0;const o=oB(50,250);return sB(i=>{const l=i.loaded,a=i.lengthComputable?i.total:void 0,c=l-r,d=o(c),p=l<=a;r=l;const h={loaded:l,total:a,progress:a?l/a:void 0,bytes:c,rate:d||void 0,estimated:d&&a&&p?(a-l)/d:void 0,event:i,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(h)},n)},Z1=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Q1=e=>(...t)=>ee.asap(()=>e(...t)),iB=rr.hasStandardBrowserEnv?function(){const t=rr.navigator&&/(msie|trident)/i.test(rr.navigator.userAgent),n=document.createElement("a");let r;function o(i){let l=i;return t&&(n.setAttribute("href",l),l=n.href),n.setAttribute("href",l),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(l){const a=ee.isString(l)?o(l):l;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}(),lB=rr.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const l=[e+"="+encodeURIComponent(t)];ee.isNumber(n)&&l.push("expires="+new Date(n).toGMTString()),ee.isString(r)&&l.push("path="+r),ee.isString(o)&&l.push("domain="+o),i===!0&&l.push("secure"),document.cookie=l.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function aB(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function uB(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function kx(e,t){return e&&!aB(t)?uB(e,t):t}const eb=e=>e instanceof or?{...e}:e;function fi(e,t){t=t||{};const n={};function r(d,p,h){return ee.isPlainObject(d)&&ee.isPlainObject(p)?ee.merge.call({caseless:h},d,p):ee.isPlainObject(p)?ee.merge({},p):ee.isArray(p)?p.slice():p}function o(d,p,h){if(ee.isUndefined(p)){if(!ee.isUndefined(d))return r(void 0,d,h)}else return r(d,p,h)}function i(d,p){if(!ee.isUndefined(p))return r(void 0,p)}function l(d,p){if(ee.isUndefined(p)){if(!ee.isUndefined(d))return r(void 0,d)}else return r(void 0,p)}function a(d,p,h){if(h in t)return r(d,p);if(h in e)return r(void 0,d)}const c={url:i,method:i,data:i,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:a,headers:(d,p)=>o(eb(d),eb(p),!0)};return ee.forEach(Object.keys(Object.assign({},e,t)),function(p){const h=c[p]||o,v=h(e[p],t[p],p);ee.isUndefined(v)&&h!==a||(n[p]=v)}),n}const Ix=e=>{const t=fi({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:l,auth:a}=t;t.headers=l=or.from(l),t.url=xx(kx(t.baseURL,t.url),e.params,e.paramsSerializer),a&&l.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let c;if(ee.isFormData(n)){if(rr.hasStandardBrowserEnv||rr.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if((c=l.getContentType())!==!1){const[d,...p]=c?c.split(";").map(h=>h.trim()).filter(Boolean):[];l.setContentType([d||"multipart/form-data",...p].join("; "))}}if(rr.hasStandardBrowserEnv&&(r&&ee.isFunction(r)&&(r=r(t)),r||r!==!1&&iB(t.url))){const d=o&&i&&lB.read(i);d&&l.set(o,d)}return t},cB=typeof XMLHttpRequest<"u",dB=cB&&function(e){return new Promise(function(n,r){const o=Ix(e);let i=o.data;const l=or.from(o.headers).normalize();let{responseType:a,onUploadProgress:c,onDownloadProgress:d}=o,p,h,v,y,b;function S(){y&&y(),b&&b(),o.cancelToken&&o.cancelToken.unsubscribe(p),o.signal&&o.signal.removeEventListener("abort",p)}let T=new XMLHttpRequest;T.open(o.method.toUpperCase(),o.url,!0),T.timeout=o.timeout;function C(){if(!T)return;const E=or.from("getAllResponseHeaders"in T&&T.getAllResponseHeaders()),$={data:!a||a==="text"||a==="json"?T.responseText:T.response,status:T.status,statusText:T.statusText,headers:E,config:e,request:T};Ax(function(R){n(R),S()},function(R){r(R),S()},$),T=null}"onloadend"in T?T.onloadend=C:T.onreadystatechange=function(){!T||T.readyState!==4||T.status===0&&!(T.responseURL&&T.responseURL.indexOf("file:")===0)||setTimeout(C)},T.onabort=function(){T&&(r(new ot("Request aborted",ot.ECONNABORTED,e,T)),T=null)},T.onerror=function(){r(new ot("Network Error",ot.ERR_NETWORK,e,T)),T=null},T.ontimeout=function(){let O=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const $=o.transitional||Tx;o.timeoutErrorMessage&&(O=o.timeoutErrorMessage),r(new ot(O,$.clarifyTimeoutError?ot.ETIMEDOUT:ot.ECONNABORTED,e,T)),T=null},i===void 0&&l.setContentType(null),"setRequestHeader"in T&&ee.forEach(l.toJSON(),function(O,$){T.setRequestHeader($,O)}),ee.isUndefined(o.withCredentials)||(T.withCredentials=!!o.withCredentials),a&&a!=="json"&&(T.responseType=o.responseType),d&&([v,b]=rd(d,!0),T.addEventListener("progress",v)),c&&T.upload&&([h,y]=rd(c),T.upload.addEventListener("progress",h),T.upload.addEventListener("loadend",y)),(o.cancelToken||o.signal)&&(p=E=>{T&&(r(!E||E.type?new hl(null,e,T):E),T.abort(),T=null)},o.cancelToken&&o.cancelToken.subscribe(p),o.signal&&(o.signal.aborted?p():o.signal.addEventListener("abort",p)));const w=rB(o.url);if(w&&rr.protocols.indexOf(w)===-1){r(new ot("Unsupported protocol "+w+":",ot.ERR_BAD_REQUEST,e));return}T.send(i||null)})},fB=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const i=function(d){if(!o){o=!0,a();const p=d instanceof Error?d:this.reason;r.abort(p instanceof ot?p:new hl(p instanceof Error?p.message:p))}};let l=t&&setTimeout(()=>{l=null,i(new ot(`timeout ${t} of ms exceeded`,ot.ETIMEDOUT))},t);const a=()=>{e&&(l&&clearTimeout(l),l=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(i):d.removeEventListener("abort",i)}),e=null)};e.forEach(d=>d.addEventListener("abort",i));const{signal:c}=r;return c.unsubscribe=()=>ee.asap(a),c}},pB=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},hB=async function*(e,t){for await(const n of mB(e))yield*pB(n,t)},mB=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},tb=(e,t,n,r)=>{const o=hB(e,t);let i=0,l,a=c=>{l||(l=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:d,value:p}=await o.next();if(d){a(),c.close();return}let h=p.byteLength;if(n){let v=i+=h;n(v)}c.enqueue(new Uint8Array(p))}catch(d){throw a(d),d}},cancel(c){return a(c),o.return()}},{highWaterMark:2})},ef=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Px=ef&&typeof ReadableStream=="function",gB=ef&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Rx=(e,...t)=>{try{return!!e(...t)}catch{return!1}},vB=Px&&Rx(()=>{let e=!1;const t=new Request(rr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),nb=64*1024,tm=Px&&Rx(()=>ee.isReadableStream(new Response("").body)),od={stream:tm&&(e=>e.body)};ef&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!od[t]&&(od[t]=ee.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new ot(`Response type '${t}' is not supported`,ot.ERR_NOT_SUPPORT,r)})})})(new Response);const yB=async e=>{if(e==null)return 0;if(ee.isBlob(e))return e.size;if(ee.isSpecCompliantForm(e))return(await new Request(rr.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(ee.isArrayBufferView(e)||ee.isArrayBuffer(e))return e.byteLength;if(ee.isURLSearchParams(e)&&(e=e+""),ee.isString(e))return(await gB(e)).byteLength},_B=async(e,t)=>{const n=ee.toFiniteNumber(e.getContentLength());return n??yB(t)},bB=ef&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:l,onDownloadProgress:a,onUploadProgress:c,responseType:d,headers:p,withCredentials:h="same-origin",fetchOptions:v}=Ix(e);d=d?(d+"").toLowerCase():"text";let y=fB([o,i&&i.toAbortSignal()],l),b;const S=y&&y.unsubscribe&&(()=>{y.unsubscribe()});let T;try{if(c&&vB&&n!=="get"&&n!=="head"&&(T=await _B(p,r))!==0){let $=new Request(t,{method:"POST",body:r,duplex:"half"}),P;if(ee.isFormData(r)&&(P=$.headers.get("content-type"))&&p.setContentType(P),$.body){const[R,k]=Z1(T,rd(Q1(c)));r=tb($.body,nb,R,k)}}ee.isString(h)||(h=h?"include":"omit");const C="credentials"in Request.prototype;b=new Request(t,{...v,signal:y,method:n.toUpperCase(),headers:p.normalize().toJSON(),body:r,duplex:"half",credentials:C?h:void 0});let w=await fetch(b);const E=tm&&(d==="stream"||d==="response");if(tm&&(a||E&&S)){const $={};["status","statusText","headers"].forEach(W=>{$[W]=w[W]});const P=ee.toFiniteNumber(w.headers.get("content-length")),[R,k]=a&&Z1(P,rd(Q1(a),!0))||[];w=new Response(tb(w.body,nb,R,()=>{k&&k(),S&&S()}),$)}d=d||"text";let O=await od[ee.findKey(od,d)||"text"](w,e);return!E&&S&&S(),await new Promise(($,P)=>{Ax($,P,{data:O,headers:or.from(w.headers),status:w.status,statusText:w.statusText,config:e,request:b})})}catch(C){throw S&&S(),C&&C.name==="TypeError"&&/fetch/i.test(C.message)?Object.assign(new ot("Network Error",ot.ERR_NETWORK,e,b),{cause:C.cause||C}):ot.from(C,C&&C.code,e,b)}}),nm={http:FU,xhr:dB,fetch:bB};ee.forEach(nm,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const rb=e=>`- ${e}`,wB=e=>ee.isFunction(e)||e===null||e===!1,Lx={getAdapter:e=>{e=ee.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){n=e[i];let l;if(r=n,!wB(n)&&(r=nm[(l=String(n)).toLowerCase()],r===void 0))throw new ot(`Unknown adapter '${l}'`);if(r)break;o[l||"#"+i]=r}if(!r){const i=Object.entries(o).map(([a,c])=>`adapter ${a} `+(c===!1?"is not supported by the environment":"is not available in the build"));let l=t?i.length>1?`since : 53 `+i.map(rb).join(` 54 `):" "+rb(i[0]):"as no adapter specified";throw new ot("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return r},adapters:nm};function nh(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new hl(null,e)}function ob(e){return nh(e),e.headers=or.from(e.headers),e.data=th.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Lx.getAdapter(e.adapter||Ga.adapter)(e).then(function(r){return nh(e),r.data=th.call(e,e.transformResponse,r),r.headers=or.from(r.headers),r},function(r){return Ox(r)||(nh(e),r&&r.response&&(r.response.data=th.call(e,e.transformResponse,r.response),r.response.headers=or.from(r.response.headers))),Promise.reject(r)})}const Fx="1.7.7",rv={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{rv[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const sb={};rv.transitional=function(t,n,r){function o(i,l){return"[Axios v"+Fx+"] Transitional option '"+i+"'"+l+(r?". "+r:"")}return(i,l,a)=>{if(t===!1)throw new ot(o(l," has been removed"+(n?" in "+n:"")),ot.ERR_DEPRECATED);return n&&!sb[l]&&(sb[l]=!0,console.warn(o(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,l,a):!0}};function SB(e,t,n){if(typeof e!="object")throw new ot("options must be an object",ot.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],l=t[i];if(l){const a=e[i],c=a===void 0||l(a,i,e);if(c!==!0)throw new ot("option "+i+" must be "+c,ot.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ot("Unknown option "+i,ot.ERR_BAD_OPTION)}}const rm={assertOptions:SB,validators:rv},ds=rm.validators;class oi{constructor(t){this.defaults=t,this.interceptors={request:new Y1,response:new Y1}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=` 55 `+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=fi(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&rm.assertOptions(r,{silentJSONParsing:ds.transitional(ds.boolean),forcedJSONParsing:ds.transitional(ds.boolean),clarifyTimeoutError:ds.transitional(ds.boolean)},!1),o!=null&&(ee.isFunction(o)?n.paramsSerializer={serialize:o}:rm.assertOptions(o,{encode:ds.function,serialize:ds.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=i&&ee.merge(i.common,i[n.method]);i&&ee.forEach(["delete","get","head","post","put","patch","common"],b=>{delete i[b]}),n.headers=or.concat(l,i);const a=[];let c=!0;this.interceptors.request.forEach(function(S){typeof S.runWhen=="function"&&S.runWhen(n)===!1||(c=c&&S.synchronous,a.unshift(S.fulfilled,S.rejected))});const d=[];this.interceptors.response.forEach(function(S){d.push(S.fulfilled,S.rejected)});let p,h=0,v;if(!c){const b=[ob.bind(this),void 0];for(b.unshift.apply(b,a),b.push.apply(b,d),v=b.length,p=Promise.resolve(n);h<v;)p=p.then(b[h++],b[h++]);return p}v=a.length;let y=n;for(h=0;h<v;){const b=a[h++],S=a[h++];try{y=b(y)}catch(T){S.call(this,T);break}}try{p=ob.call(this,y)}catch(b){return Promise.reject(b)}for(h=0,v=d.length;h<v;)p=p.then(d[h++],d[h++]);return p}getUri(t){t=fi(this.defaults,t);const n=kx(t.baseURL,t.url);return xx(n,t.params,t.paramsSerializer)}}ee.forEach(["delete","get","head","options"],function(t){oi.prototype[t]=function(n,r){return this.request(fi(r||{},{method:t,url:n,data:(r||{}).data}))}});ee.forEach(["post","put","patch"],function(t){function n(r){return function(i,l,a){return this.request(fi(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:l}))}}oi.prototype[t]=n(),oi.prototype[t+"Form"]=n(!0)});class ov{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(o=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const l=new Promise(a=>{r.subscribe(a),i=a}).then(o);return l.cancel=function(){r.unsubscribe(i)},l},t(function(i,l,a){r.reason||(r.reason=new hl(i,l,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new ov(function(o){t=o}),cancel:t}}}function EB(e){return function(n){return e.apply(null,n)}}function $B(e){return ee.isObject(e)&&e.isAxiosError===!0}const om={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(om).forEach(([e,t])=>{om[t]=e});function Nx(e){const t=new oi(e),n=px(oi.prototype.request,t);return ee.extend(n,oi.prototype,t,{allOwnKeys:!0}),ee.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Nx(fi(e,o))},n}const rn=Nx(Ga);rn.Axios=oi;rn.CanceledError=hl;rn.CancelToken=ov;rn.isCancel=Ox;rn.VERSION=Fx;rn.toFormData=Qd;rn.AxiosError=ot;rn.Cancel=rn.CanceledError;rn.all=function(t){return Promise.all(t)};rn.spread=EB;rn.isAxiosError=$B;rn.mergeConfig=fi;rn.AxiosHeaders=or;rn.formToJSON=e=>Cx(ee.isHTMLForm(e)?new FormData(e):e);rn.getAdapter=Lx.getAdapter;rn.HttpStatusCode=om;rn.default=rn;const sv=({bearer:e},t={})=>({"Content-Type":"application/json",Accept:"application/json",...Mx({bearer:e}),...t}),Mx=({bearer:e})=>({...e?{Authorization:`Bearer ${e}`}:{}}),xB=({errorHandler:e,bearer:t,method:n,urlProcessor:r})=>(o,{headers:i,query:l}={})=>fetch(fl(r?r(o):o,l),{method:n,headers:sv({bearer:t},i)}).then(qa(e)),TB=({errorHandler:e,bearer:t,method:n,urlProcessor:r})=>(o,i,{headers:l,query:a}={})=>fetch(fl(r?r(o):o,a),{method:n,headers:sv({bearer:t},l),body:JSON.stringify(i)}).then(qa(e)),CB=({errorHandler:e,bearer:t,method:n,urlProcessor:r})=>(o,i,{headers:l,query:a}={})=>fetch(fl(r?r(o):o,a),{method:n,headers:sv({bearer:t},l),body:JSON.stringify(i)}).then(qa(e));function OB(e){console.log("default progress",e)}const AB=({errorHandler:e,bearer:t,urlProcessor:n})=>(r,o,{query:i,hooks:l}={})=>{const a=new FormData,c=(l==null?void 0:l.onUploadProgress)||OB;if(o.file){const d=o.track_id||"input_file";a.append(d,o.file)}return o.image&&a.append("image",o.image),rn.post(fl(n?n(r):r,i),a,{headers:{...Mx({bearer:t})},onUploadProgress:c})},kB=Y.curry(({base:e,bearer:t,errorHandler:n})=>({get:xB({bearer:t,method:"GET",errorHandler:n,urlProcessor:r=>`${e}/${r}`}),post:TB({bearer:t,errorHandler:n,method:"POST",urlProcessor:r=>`${e}/${r}`}),delete:CB({bearer:t,errorHandler:n,method:"DELETE",urlProcessor:r=>`${e}/${r}`}),upload:AB({bearer:t,errorHandler:n,urlProcessor:r=>`${e}/${r}`})}));function*IB(){const e="https://auphonic.com/api",t=yield be(B.auphonic.token);return kB({base:e,bearer:t,errorHandler:function(r){tf.dispatch(Qg({type:"error",message:`Auphonic: ${r.error_message}`}))}})}let lc;const PB=new Uint8Array(16);function RB(){if(!lc&&(lc=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!lc))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return lc(PB)}const Tn=[];for(let e=0;e<256;++e)Tn.push((e+256).toString(16).slice(1));function LB(e,t=0){return Tn[e[t+0]]+Tn[e[t+1]]+Tn[e[t+2]]+Tn[e[t+3]]+"-"+Tn[e[t+4]]+Tn[e[t+5]]+"-"+Tn[e[t+6]]+Tn[e[t+7]]+"-"+Tn[e[t+8]]+Tn[e[t+9]]+"-"+Tn[e[t+10]]+Tn[e[t+11]]+Tn[e[t+12]]+Tn[e[t+13]]+Tn[e[t+14]]+Tn[e[t+15]]}const FB=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),ib={randomUUID:FB};function NB(e,t,n){if(ib.randomUUID&&!t&&!e)return ib.randomUUID();e=e||{};const r=e.random||(e.rng||RB)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,LB(r)}const MB=(e,t)=>({success:!1,status:"failed",filename:e.filename||e.name||"unknown",download_url:e.download_url||e.localUrl||"unknown",message:t.message||"Processing failed"}),Dx=(e,t="Request failed")=>{var n,r;return((n=e.error)==null?void 0:n.message)||e.message||((r=e.result)==null?void 0:r.message)||t},DB=(e,t)=>({success:!1,status:"failed",filename:e.filename||e.name||"unknown",download_url:e.download_url||e.localUrl||"unknown",message:`Transfer failed: ${t}`}),rh=(e,t)=>e?t>0?"completed_with_errors":"failed":"completed",UB=e=>e?"error":"finished";function*sd(e){const t=yield be(B.episode.id),n=yield be(B.mediafiles.files);yield qS(n.map(r=>St(Ux,e,t,r.asset_id)))}function*Ux(e,t,n){const o=(yield be(B.mediafiles.files)).find(c=>c.asset_id==n);yield te(Xh({asset_id:n,is_verifying:!0}));const{result:i}=yield e.put(`episodes/${t}/media/${n}/verify`,{}),l=!(o!=null&&o.size)&&i.file_size||(o==null?void 0:o.enable),a={asset_id:n,url:i.file_url,size:i.file_size,enable:l,is_verifying:!1};yield te(Xh(a)),typeof i.slug_frozen<"u"&&(yield te(bt({prop:"slug_frozen",value:i.slug_frozen})))}function*BB(e,t){const n=yield be(B.episode.id),r=t.payload;yield Ux(e,n,r)}function*jB(){const e=yield Kr();yield St(VB,e),yield Ne(Hg,oj),yield Ne(jg,rj),yield te(qd())}function*VB(e){const{result:t}=yield e.get("auphonic/token");t&&(yield te(k8(t)),yield St(HB),yield Ne(Jc,ij,e),yield Ne(zg,sj,e),yield Ne(Jc,lj,e),yield Ne(Zc,aj,e),yield Ne(Vg,dj),yield Ne(l$,uj,e),yield Ne(Qc,ab,e),yield Ne(Zc,ab,e),yield Ne(m$,pj,e),yield Ne(g$,vj,e),yield Ne(Wg,yj,e))}function*HB(){const e=yield IB(),{result:{data:t}}=yield e.get("presets.json"),{result:{data:n}}=yield e.get("productions.json",{limit:50,minimal_data:!0});let{result:{data:r}}=yield e.get("services.json");yield te(y$(n)),yield te(R8(t)),yield te(L8([{uuid:"url",display_name:"From URL",email:"",incoming:!0,outgoing:!1,type:"url"},{uuid:"file",display_name:"Upload from computer",email:"",incoming:!0,outgoing:!1,type:"file"},...r])),yield $t(cj),yield $t(fj),yield te(A8()),yield Ne(o$,tj,e),yield Ne(s$,nj,e),yield Ne(w$,ej,e),yield Ne(_$,jx,e),yield Ne(b$,KB,e),yield Ne(v$,WB,e),yield Ne(E$,qB,e),yield $t(zB,e)}function*zB(e){for((yield be(B.episode.isAuphonicProductionRunning))&&(yield Hh([$t(lb,e),oo(Qc)]));;)yield oo(f$),yield Hh([$t(lb,e),oo(Qc)])}function*lb(e){for(;;){let t=yield be(B.auphonic.productionId);t||(yield te(M1()));let{result:{data:n}}=yield e.get(`production/${t}.json`);yield te(mi(n)),n.status==3&&(yield te(bt({prop:"slug",value:n.output_basename})),(yield be(B.plus.features)).fileStorage&&(yield te(T$({production_uuid:n.uuid})))),[0,1,4,5,6,7,8,12,13,14].includes(n.status)||(yield te(M1())),yield Md(2500)}}function*WB(e){const{result:{data:t}}=yield e.get("productions.json",{limit:10,minimal_data:!0});yield te(y$(t))}function*qB(e,t){let n=yield be(B.auphonic.productionId);yield e.delete(`production/${n}/multi_input_files/${t.payload}.json`)}function*KB(e,t){const n=t.payload.uuid;yield $t(jx,e,{type:i$,payload:{uuid:n}});const r=yield be(B.episode.auphonicWebhookConfig),o=yield be(B.auphonic.publishWhenDone),i=yield be(B.runtime.baseUrl),l=yield be(B.post.id),a=i+"/?podlove-auphonic-production="+l+"&authkey="+(r==null?void 0:r.authkey),c={webhook:r&&o?a:""};yield e.post(`production/${n}.json`,c);const d=yield e.post(`production/${n}/start.json`,{});d.result?yield te(mi(d.result.data)):console.warn(d.error.error_message),yield te(M8())}function*GB(e,t,n,r){var d;let o=n.payload;const i=o.id,l=o.id_new,a=!!((d=n.upload)!=null&&d.file);delete o.id_new,o.id=l;const c=r(o.id);switch(n.state){case"edited":yield e.post(`production/${t}/multi_input_files/${i}.json`,o),a&&(yield e.upload(`production/${t}/upload.json`,n.upload,{hooks:{onUploadProgress:c}}));break;case"new":yield e.post(`production/${t}.json`,{multi_input_files:[n.payload]}),a&&(yield e.upload(`production/${t}/upload.json`,n.upload,{hooks:{onUploadProgress:c}}));break}}const Bx=e=>{if(!e)return{};switch(e.currentServiceSelection){case"url":return{service:"url",value:e.urlValue};case"file":return{service:"file",value:e.fileValue};default:return{service:e.currentServiceSelection,value:e.fileSelection}}};function XB(e){const t=Y.get(e,["auphonic","file_selections"]),n=Y.get(e,["auphonic","production","uuid"],"");return Bx(Y.get(t,n))}function YB(e){const t=Y.get(e,["auphonic","file_selections"]),n=Y.get(e,["auphonic","production","uuid"],"");return Y.get(e,["auphonic","tracks"],[]).reduce((o,i,l)=>(o.push(Bx(Y.get(t,`${n}_t${l}`))),o),[])}function JB(e){const t=Y.get(e,["auphonic","production","is_multitrack"],!1),n=Y.get(e,["auphonic","tracks"],[]);if(!t)return[];const r=YB(e);return n.map((o,i)=>{const l=o.save_state;if(l=="unchanged")return{};let a={},c={};return r[i].service=="url"?c={input_file:r[i].value}:r[i].service=="file"?a={track_id:o.identifier_new,file:r[i].value}:c={service:r[i].service,input_file:r[i].value},{state:l,upload:a,payload:{type:"multitrack",id:o.identifier,id_new:o.identifier_new,...c,algorithms:{denoise:o.noise_and_hum_reduction,filtering:o.filtering,backforeground:o.fore_background}}}}).filter(o=>Object.keys(o).length>0)}function ZB(e){let t=Y.get(e,["auphonic","productionPayload"],{});const{output_files:n,...r}=t,o=e.episode.poster||e.podcast.poster,i=e.episode.slug?{output_basename:e.episode.slug}:{};return{...r,...i,image:o,metadata:{...r.metadata,title:e.episode.title||e.post.title,subtitle:e.episode.subtitle,summary:e.episode.summary,artist:e.podcast.author_name,album:e.podcast.title,url:e.podcast.link,track:e.episode.number},chapters:e.chapters.chapters.map(l=>({title:l.title,url:l.href,start:new Dt(l.start).pretty}))}}function QB(e){const t=Y.get(e,["auphonic","production","is_multitrack"],!1),n=ZB(e);let r={};if(!t){const o=XB(e);o.service=="url"?r={input_file:o.value}:o.service=="file"?r={input_file:o.value}:r={service:o.service,input_file:o.value}}return{...n,...r}}function*jx(e,t){yield te(D8());const n=t.payload.uuid,r=yield be(QB),o=yield be(JB);yield e.delete(`production/${n}/chapters.json`);const i=yield $t(sx,k$),l=ix(i);yield qS(o.map(p=>$t(GB,e,n,p,l)));const a=r.input_file;typeof a=="object"&&(yield $t(e.upload,`production/${n}/upload.json`,{file:a},{hooks:{onUploadProgress:l("singletrack")}}),delete r.input_file);const c=r.image;fetch(c).then(p=>p.blob()).then(p=>{const v="image."+(p.type.includes("png")?"png":"jpg"),y=new File([p],v,{type:p.type});e.upload(`production/${n}/upload.json`,{image:y},{hooks:{onUploadProgress:l("poster")}})}),delete r.image;const{result:{data:d}}=yield e.post(`production/${n}.json`,r);yield te(mi(d)),yield te(U8())}function*ej(e,t){const n=t.payload;if(n=="file"||n=="url")return;const{result:r}=yield e.get(`service/${n}/ls.json`);yield te(F8({uuid:n,files:r.data}))}function*Vx(){const e=yield be(B.episode.title),t=yield be(B.post.title);return e||t||"New Production"}function*tj(e){const t=yield be(B.auphonic.preset),n=yield Vx(),{result:r}=yield e.post("productions.json",{preset:t,metadata:{title:n}}),o=r.data;yield te(mi(o))}function*nj(e){const t=yield be(B.auphonic.preset),n=yield Vx(),{result:r}=yield e.post("productions.json",{preset:t,metadata:{title:n},is_multitrack:!0}),o=r.data;yield te(mi(o))}function*rj(e){const t=yield be(B.auphonic.currentFileSelection);(yield be(B.auphonic.fileSelections))[t].fileSelection||(yield te(S$({key:t,prop:"fileSelection",value:e.payload.files[0]})))}function*oj(e){const{prop:t,value:n}=e.payload;t==="currentServiceSelection"&&(yield te(w$(n)))}function*sj(e){const t=yield be(B.episode.auphonicWebhookConfig),n=yield be(B.auphonic.publishWhenDone);!t||t.enabled==n||(yield te(bt({prop:"auphonic_webhook_config",value:{...t,enabled:n}})))}function*ij(e){const t=yield be(B.episode.auphonicWebhookConfig),n=yield be(B.auphonic.publishWhenDone);if(t&&t.authkey)return;const r=NB();yield te(bt({prop:"auphonic_webhook_config",value:{authkey:r,enabled:n||!1}}))}function*lj(e){const t=yield be(B.episode.id),n=yield be(B.auphonic.productionId);yield e.put(`episodes/${t}`,{auphonic_production_id:n})}function*aj(e){const t=yield be(B.episode.id);yield e.put(`episodes/${t}`,{auphonic_production_id:""})}function*uj(e){const t=yield be(B.episode.id);yield e.put(`episodes/${t}`,{is_auphonic_production_running:!0})}function*ab(e){const t=yield be(B.episode.id);yield e.put(`episodes/${t}`,{is_auphonic_production_running:!1})}function*cj(){const e=yield be(B.episode.id),t=yield be(B.episode.auphonicProductionId),n=yield be(B.auphonic.productionId),r=yield be(B.auphonic.productions);if(!n&&t&&e){const o=r.find(i=>i.uuid==t);o&&(yield te(mi(o)))}}function*dj(){const e=yield be(B.auphonic.preset);localStorage&&localStorage.setItem("podlove-auphonic-preset",e)}function*fj(){let e=null;localStorage&&(e=localStorage.getItem("podlove-auphonic-preset"),e&&(yield te(qg(e))))}function*pj(e,t){const{production_uuid:n}=t.payload,r=yield be(B.post.id);try{yield te(to({production_uuid:n,status:"in_progress"}));const o=yield e.post(`auphonic/init-plus-file-transfer/${n}/${r}`,{});if(o.result&&o.result.success&&o.result.transfer_queue){const i=o.result.transfer_queue;if(i.length===0){yield te(to({production_uuid:n,status:"completed",files:[]}));return}yield $t(mj,e,n,r,i)}else yield te(to({production_uuid:n,status:"failed",errors:Dx(o,"Failed to initialize transfer")}))}catch(o){yield te(to({production_uuid:n,status:"failed",errors:o.message||"Failed to trigger transfer"}))}}function oh(e,t){return e.slice(t).map(n=>({success:null,status:"pending",filename:n.filename,download_url:n.download_url,message:"Waiting to transfer..."}))}function hj(e){return{success:null,status:"processing",filename:e.filename,download_url:e.download_url,message:"Transferring..."}}function ac(e){return{...e,status:e.success?"completed":"failed"}}function*mj(e,t,n,r){let o=0,i=!1;const l=[],a=r.map(d=>({success:null,status:"pending",filename:d.filename,download_url:d.download_url,message:"Waiting to transfer..."}));yield te(to({production_uuid:t,status:"in_progress",files:a}));for(let d=0;d<r.length;d++){const p=r[d],h=[...l.map(ac),hj(p),...oh(r,d+1)];yield te(to({production_uuid:t,status:"in_progress",files:h}));try{const v=yield $t(gj,e,t,n,p);l.push(v),v.success?o++:i=!0;const b=d===r.length-1?rh(i,o):"in_progress";yield te(to({production_uuid:t,status:b,files:[...l.map(ac),...oh(r,l.length)]}))}catch(v){i=!0;const y=DB(p,v.message);l.push(y),console.error("Error transferring file:",v);const S=d===r.length-1?rh(i,o):"in_progress";yield te(to({production_uuid:t,status:S,files:[...l.map(ac),...oh(r,l.length)]}))}}const c=rh(i,o);try{const d={status:c,files:l};if(i)if(o===0)d.errors="All file transfers failed";else{const p=l.length-o;d.errors=`${p} of ${l.length} file transfers failed`}yield e.post(`auphonic/set-plus-transfer-status/${t}/${n}`,d)}catch(d){console.error("Failed to store final transfer status:",d)}yield te(to({production_uuid:t,status:c,files:l.map(ac)}))}function*gj(e,t,n,r){const o=yield e.post(`auphonic/transfer-single-file/${t}/${n}`,{file_data:r});return o.result?o.result:MB(r,{message:Dx(o,"Transfer failed")})}function*vj(e,t){const{production_uuid:n}=t.payload;try{const r=yield be(B.episode.id);if(!r){console.error("Episode ID not available for loading transfer status");return}const o=yield e.get(`episodes/${r}`),i=o.result.auphonic_plus_transfer_status,l=o.result.auphonic_plus_transfer_files,a=o.result.auphonic_plus_transfer_errors;i&&(yield te(to({production_uuid:n,status:i,files:l,errors:a})))}catch(r){console.error("Error loading PLUS transfer status:",r)}}function*yj(e,t){const{status:n}=t.payload;n==="completed"&&(yield $t(sd,e))}function _j(){return function*(){yield cr(QE,jB)}}function*bj(e,t){const n=yield be(B.episode.id),r=t.payload,{result:o}=yield e.put(`episodes/${n}/media/${r}/enable`,{}),i={asset_id:r,url:o.file_url,size:o.file_size,enable:!0};yield te(Xh(i)),typeof o.slug_frozen<"u"&&(yield te(bt({prop:"slug_frozen",value:o.slug_frozen})))}function*wj(e,t){const n=yield be(B.episode.id),r=t.payload;yield e.put(`episodes/${n}/media/${r}/disable`,{})}function*Sj(e){const t=yield be(B.mediafiles.files),n=yield be(B.episode.duration),o=t.filter(l=>l.enable&&l.size&&l.url).filter(l=>l.url.match(/\.(mp3|mp4|m4a|ogg|oga|opus)$/));let i;if(o.length===0)i="0";else{const l=o[0].url;i=(yield $j(l)).toString()}parseFloat(n)!==parseFloat(i)&&(yield te(bt({prop:"duration",value:i})))}async function Ej(e){return new Promise(t=>e.onloadedmetadata=()=>t())}async function $j(e){var t=new Audio;return t.setAttribute("preload","metadata"),t.setAttribute("src",e),t.load(),await Ej(t),t.duration}function*xj(e,t){const{files:n,episodeSlug:r}=Y.get(t,["payload"]),o=yield be(B.mediafiles.selectedFiles),i=o.map(a=>a.file),l=Tj(n,i);if(l.length>0){yield $t(Oj,l,r);const a=yield be(B.episode.id),c=l.map(p=>({file:p,originalName:p.name,newName:p.name,fileExists:null})),d=[...o,...c];yield te({type:Wa,payload:d});for(const p of l)yield St(Hx,e,p,a)}}function Tj(e,t){return e.filter(n=>!t.some(r=>r.name===n.name&&r.size===n.size))}function Cj(e){return e.split(".").slice(0,-1).join(".")}function*Oj(e,t){if(t)return t;if(e.length===0)return"";const n=e[0].name,r=Cj(n);return yield te(bt({prop:"slug",value:r})),r}function*Aj(e,t){const{result:n}=yield e.post("plus/check_file_exists",{filename:t.file.name});return{...t,fileExists:n}}function*Hx(e,t,n){const r=`filename-generation-${t.name}`;try{yield te(ia({key:r,status:"in_progress",message:"Generating filename..."}));const{result:o}=yield e.post("plus/generate_filename",{original_filename:t.name,episode_id:n}),i=o.generated_filename,a={file:new File([t],i,{type:t.type,lastModified:t.lastModified}),originalName:t.name,newName:i},c=yield $t(Aj,e,a);yield $t(kj,t.name,c),yield te(ia({key:r,status:"finished",message:"Filename generated"})),yield St(ub,r,2e3)}catch(o){yield te(ia({key:r,status:"error",message:"Failed to generate filename"})),yield St(ub,r,5e3),console.warn("Failed to generate filename via API, keeping original:",o)}}function*kj(e,t){const r=(yield be(B.mediafiles.selectedFiles)).map(o=>o.originalName===e?t:o);yield te({type:Wa,payload:r})}function*ub(e,t){yield Md(t),yield te(I$(e))}function*Ij(e,t){const n=yield be(B.episode.id),r=yield be(B.episode.slug);if((yield be(B.mediafiles.slugAutogenerationEnabled))&&t.payload.prop=="title"&&t.payload.value){const i=t.payload.value,{result:l}=yield e.get(`episodes/${n}/build_slug`,{query:{title:i}});r!=l.slug&&(yield te(bt({prop:"slug",value:l.slug})))}}function*Pj(e){const t=yield be(B.mediafiles.selectedFiles),n=yield be(B.episode.slug);if(t.length>0&&n){const r=t.map(l=>new File([l.file],l.originalName,{type:l.file.type,lastModified:l.file.lastModified})),o=r.map(l=>({file:l,originalName:l.name,newName:l.name,fileExists:null}));yield te({type:Wa,payload:o});const i=yield be(B.episode.id);for(const l of r)yield St(Hx,e,l,i)}}function*Rj(e){const t=yield be(B.episode.id);if(t)try{const{result:n}=yield e.post(`episodes/${t}/unfreeze_slug`,{});yield te(Ng({slug_frozen:n.slug_frozen}))}catch(n){console.error("Failed to unfreeze slug:",n)}}function*Lj(){yield te(Mg({onSuccess:{type:Gg}}))}function*Fj(e,t){const n=Y.get(t,["payload"]),r=`plus-upload-${n.name}`;yield te(I$(r));try{const o=yield $t(Nj,e,n.name),i=yield $t(Mj,o,n,r);yield te(iD(i));const l=yield $t(Dj,e,n.name);console.log("completeResult",l)}catch(o){console.error("File upload failed:",o),yield te(ia({key:r,status:"error",message:o instanceof Error?o.message:"File upload failed"}))}}function*Nj(e,t){const{result:n}=yield e.post("plus/create_file_upload",{filename:t});if(!n)throw new Error("Failed to get upload URL");return n}function*Mj(e,t,n){var a;const r=yield $t(sx,Uj),o=ix(r),l=(a=(yield $t(rn.put,e,t,{headers:{"Content-Type":t.type},onUploadProgress:o(n)})).config.url)==null?void 0:a.split("?")[0];if(!l)throw new Error("Failed to extract file URL from response");return l}function*Dj(e,t){const{result:n}=yield e.post("plus/complete_file_upload",{filename:t});if(!n)throw new Error("Failed to complete file upload");return n}function*Uj(e){yield te(k$(e)),yield te(ia({key:e.key,status:e.progress==100?"finished":"in_progress"}))}function*Bj(e,t){const r=Y.get(t,["payload"]).split("\\").pop().split("/").pop().split(".").shift();(yield be(B.episode.slug))?yield $t(sd,e):(yield te(bt({prop:"slug",value:r})),yield te(AM()))}function*jj(){const e=yield Kr();yield St(Vj,e)}function*Vj(e){const t=yield be(B.episode.id);let n=[];if(t){const{result:r}=yield e.get(`episodes/${t}/media`);n=Y.get(r,["results"],[])}yield te(Q8(n)),yield Ne(ed,bj,e),yield Ne(td,wj,e),yield Ne(F$,BB,e),yield Ne(N$,sd,e),yield B1(zh,sd,e),yield B1(zh,Pj,e),yield Yh(2e3,Wd,Ij,e),yield Ne(j$,xj,e),yield ox(2e3,[ed,td,Kg],Sj,e),yield Ne(M$,Lj),yield Ne(D$,Fj,e),yield Ne(Gg,Bj,e),yield Ne(z$,Rj,e),yield te(Z8())}function Hj(){return function*(){yield cr(P$,jj)}}function*zj(){const e=yield Kr();yield St(Wj,e),yield Ne(Xg,qj,e)}function*Wj(e){const t=yield be(B.episode.id),[n,r]=yield Promise.all([e.get(`episodes/${t}/related?status=all`),e.get("episodes?status=all&sort_by=post_id&order_by=asc")]),o=Y.get(n,["result","relatedEpisodes"],[]),i=Y.get(r,["result","results"],[]),l=o.map(a=>a.related_episode_id);yield te(G$(l)),yield te(mD(i))}function*qj(e,t){const n=yield be(B.episode.id),r=yield be(B.relatedEpisodes.selectEpisode);yield e.post(`episodes/${n}/related`,{related:r})}function Kj(){return function*(){yield cr(q$,zj)}}function*Gj(){const e=yield Kr();yield St(Xj,e)}function*Xj(e){const t=yield be(B.settings.modules),{result:n}=yield e.get("shows");vD&&(yield te(Y$(n)),yield Ne(tl,Jj),t.includes("automatic_numbering")&&(yield Ne(nd,Zj,e)),t.includes("auphonic")&&(yield Ne(nd,Yj,n)))}function*Yj(e,t){const n=e.find(r=>r.slug===t.payload);n&&n.auphonic_preset&&(yield te(qg(n.auphonic_preset)))}function*Jj(e){const t=Y.get(e,["payload","prop"]),n=Y.get(e,["payload","value"],null);t==="show"&&(yield te(J$(n)))}function*Zj(e,t){const{result:n}=yield e.get("shows/next_episode_number",{query:{show:t.payload}});yield te(bt({prop:"number",value:n.toString()}))}function Qj(){return function*(){yield cr(Yg,Gj)}}function*eV(){const e=yield Kr();yield St(tV,e),yield Ne(Zg,nV,e)}function*tV(e){const{result:t}=yield e.get("admin/onboarding");t&&(yield te(_D(t)))}function*nV(e,t){const n=yield be(B.admin.type);yield e.put("admin/onboarding",{type:n})}function rV(){return function*(){yield cr(tx,eV)}}function*oV(){const e=yield Kr();yield St(sV,e)}function*sV(e){const{result:t}=yield e.get("plus/get_migration_status");yield te(y8({isMigrationComplete:t.is_complete}));const{result:n}=yield e.get("admin/plus/episodes_for_migration"),r=n.episodes.map(o=>({episodeName:o.episode_title,files:o.files.map(i=>({name:i.filename,localUrl:i.local_url,remoteUrl:i.plus_url,state:"init"}))}));yield te(h8({episodesWithFiles:r})),yield te(qh({totalState:"ready"})),yield cr(BE,lV,e)}function*iV(e,t,n){const o=(yield be(B.plusFileMigration.episodesWithFiles))[t],i=o.files[n],l=o.episodeName,a=i.name;yield te(g8({currentEpisodeName:l,currentFileName:a})),yield te(sc({filename:a,state:"in_progress"}));try{(yield e.post("plus/migrate_file",{filename:a,file_url:i.localUrl})).result===!1?yield te(sc({filename:a,state:"error"})):(yield te(sc({filename:a,state:"finished"})),yield te(to({production_uuid:"migration",status:"completed"})))}catch(c){throw yield te(sc({filename:a,state:"error"})),c}}function*lV(e){yield te(qh({totalState:"in_progress"}));const t=yield be(B.plusFileMigration.episodesWithFiles),n=t.reduce((l,a)=>l+a.files.length,0);let r=0,o=!1;const i=t.flatMap((l,a)=>l.files.map((c,d)=>({episodeIndex:a,fileIndex:d})));for(const l of i)try{yield $t(iV,e,l.episodeIndex,l.fileIndex),r++}catch(a){o=!0,console.error("Error migrating file:",a)}finally{const a=Math.round(r/n*100);yield te(v8({progress:a}))}yield te(qh({totalState:UB(o)})),o||(yield e.post("plus/set_migration_complete",{}))}function aV(){return function*(){yield cr(ME,oV)}}function*uV(){const e=yield Kr();yield St(cV,e)}function*cV(e){const{result:t}=yield e.get("admin/plus/features");yield te(Kh({feature:"fileStorage",value:t.file_storage})),yield te(Kh({feature:"feedProxy",value:t.feed_proxy})),yield Ne(Bg,dV,e),yield Ne(KE,fV,e),yield Ne(YE,pV,e),yield te(S8())}function*dV(e,t){const{feature:n,value:r}=t.payload;yield e.post("admin/plus/set_feature",{feature:n,value:r})}function*fV(e){try{yield te(F1(!0));const{result:t}=yield e.get("admin/plus/token");yield te(Gh(t.token||"")),t.token&&(yield $t(zx,e,t.token))}catch(t){console.error("Failed to get token:",t),yield te(Gh("")),yield te(sa(null))}finally{yield te(F1(!1))}}function*zx(e,t){try{const{result:n}=yield e.get("admin/plus/validate_token");n.user?yield te(sa(n.user)):yield te(sa(null))}catch(n){console.error("Failed to validate token:",n),yield te(sa(null))}}function*pV(e,t){try{yield te(N1(!0));const n=t.payload;yield e.post("admin/plus/save_token",{token:n}),n?yield $t(zx,e,n):yield te(sa(null))}catch(n){console.error("Failed to save token:",n)}finally{yield te(N1(!1))}}function hV(){return function*(){yield cr(qE,uV)}}const jn=HN(),mV=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||hS,tf=hg(MD,mV(C7(jn)));jn.run(VD());jn.run(e9());jn.run(_9());jn.run(x9());jn.run(R9());jn.run(B9());jn.run(X9());jn.run(QD());jn.run(_j());jn.run(Hj());jn.run(Kj());jn.run(Qj());jn.run(rV());jn.run(aV());jn.run(hV());const gV=ge({props:{name:{type:String,default:null},title:{type:String,default:null}}}),Le=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},vV={class:"bg-white font-sans sm:rounded-lg sm:shadow-md"},yV={class:"bg-white px-4 py-5 border-b border-gray-200 sm:px-6"},_V={class:"-ml-4 -mt-2 flex items-center justify-between flex-wrap sm:flex-nowrap"},bV={class:"ml-4 mt-2"},wV=["for"],SV={class:"ml-4 mt-2 flex flex-shrink-0"};function EV(e,t,n,r,o,i){return I(),F("section",vV,[m("div",yV,[m("div",_V,[m("div",bV,[m("h3",{class:"text-lg leading-6 font-medium text-gray-900",for:`podlove-module-${e.name}`},L(e.title),9,wV)]),m("div",SV,[yn(e.$slots,"actions")])])]),m("div",null,[yn(e.$slots,"default")])])}const In=Le(gV,[["render",EV]]);function $V(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5M16.5 12 12 16.5m0 0L7.5 12m4.5 4.5V3"})])}function Wx(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 13.5 12 21m0 0-7.5-7.5M12 21V3"})])}function nf(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"})])}function qx(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M13.5 6H5.25A2.25 2.25 0 0 0 3 8.25v10.5A2.25 2.25 0 0 0 5.25 21h10.5A2.25 2.25 0 0 0 18 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25"})])}function xV(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5m-13.5-9L12 3m0 0 4.5 4.5M12 3v13.5"})])}function TV(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4.5 10.5 12 3m0 0 7.5 7.5M12 3v18"})])}function CV(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M17.593 3.322c1.1.128 1.907 1.077 1.907 2.185V21L12 17.25 4.5 21V5.507c0-1.108.806-2.057 1.907-2.185a48.507 48.507 0 0 1 11.186 0Z"})])}function OV(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 12.75 11.25 15 15 9.75M21 12c0 1.268-.63 2.39-1.593 3.068a3.745 3.745 0 0 1-1.043 3.296 3.745 3.745 0 0 1-3.296 1.043A3.745 3.745 0 0 1 12 21c-1.268 0-2.39-.63-3.068-1.593a3.746 3.746 0 0 1-3.296-1.043 3.745 3.745 0 0 1-1.043-3.296A3.745 3.745 0 0 1 3 12c0-1.268.63-2.39 1.593-3.068a3.745 3.745 0 0 1 1.043-3.296 3.746 3.746 0 0 1 3.296-1.043A3.746 3.746 0 0 1 12 3c1.268 0 2.39.63 3.068 1.593a3.746 3.746 0 0 1 3.296 1.043 3.746 3.746 0 0 1 1.043 3.296A3.745 3.745 0 0 1 21 12Z"})])}function Kx(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function AV(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m4.5 12.75 6 6 9-13.5"})])}function Gx(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"})])}function kV(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})])}function IV(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M20.25 6.375c0 2.278-3.694 4.125-8.25 4.125S3.75 8.653 3.75 6.375m16.5 0c0-2.278-3.694-4.125-8.25-4.125S3.75 4.097 3.75 6.375m16.5 0v11.25c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125V6.375m16.5 0v3.75m-16.5-3.75v3.75m16.5 0v3.75C20.25 16.153 16.556 18 12 18s-8.25-1.847-8.25-4.125v-3.75m16.5 0c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125"})])}function PV(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M11.35 3.836c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 0 0 .75-.75 2.25 2.25 0 0 0-.1-.664m-5.8 0A2.251 2.251 0 0 1 13.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m8.9-4.414c.376.023.75.05 1.124.08 1.131.094 1.976 1.057 1.976 2.192V16.5A2.25 2.25 0 0 1 18 18.75h-2.25m-7.5-10.5H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V18.75m-7.5-10.5h6.375c.621 0 1.125.504 1.125 1.125v9.375m-8.25-3 1.5 1.5 3-3.75"})])}function Xx(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function rf(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 16.5V9.75m0 0 3 3m-3-3-3 3M6.75 19.5a4.5 4.5 0 0 1-1.41-8.775 5.25 5.25 0 0 1 10.233-2.33 3 3 0 0 1 3.758 3.848A3.752 3.752 0 0 1 18 19.5H6.75Z"})])}function Yx(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M2.25 15a4.5 4.5 0 0 0 4.5 4.5H18a3.75 3.75 0 0 0 1.332-7.257 3 3 0 0 0-3.758-3.848 5.25 5.25 0 0 0-10.233 2.33A4.502 4.502 0 0 0 2.25 15Z"})])}function RV(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.325.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 0 1 1.37.49l1.296 2.247a1.125 1.125 0 0 1-.26 1.431l-1.003.827c-.293.241-.438.613-.43.992a7.723 7.723 0 0 1 0 .255c-.008.378.137.75.43.991l1.004.827c.424.35.534.955.26 1.43l-1.298 2.247a1.125 1.125 0 0 1-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.47 6.47 0 0 1-.22.128c-.331.183-.581.495-.644.869l-.213 1.281c-.09.543-.56.94-1.11.94h-2.594c-.55 0-1.019-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 0 1-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 0 1-1.369-.49l-1.297-2.247a1.125 1.125 0 0 1 .26-1.431l1.004-.827c.292-.24.437-.613.43-.991a6.932 6.932 0 0 1 0-.255c.007-.38-.138-.751-.43-.992l-1.004-.827a1.125 1.125 0 0 1-.26-1.43l1.297-2.247a1.125 1.125 0 0 1 1.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.086.22-.128.332-.183.582-.495.644-.869l.214-1.28Z"}),m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})])}function LV(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4.5 12a7.5 7.5 0 0 0 15 0m-15 0a7.5 7.5 0 1 1 15 0m-15 0H3m16.5 0H21m-1.5 0H12m-8.457 3.077 1.41-.513m14.095-5.13 1.41-.513M5.106 17.785l1.15-.964m11.49-9.642 1.149-.964M7.501 19.795l.75-1.3m7.5-12.99.75-1.3m-6.063 16.658.26-1.477m2.605-14.772.26-1.477m0 17.726-.26-1.477M10.698 4.614l-.26-1.477M16.5 19.794l-.75-1.299M7.5 4.205 12 12m6.894 5.785-1.149-.964M6.256 7.178l-1.15-.964m15.352 8.864-1.41-.513M4.954 9.435l-1.41-.514M12.002 12l-3.75 6.495"})])}function FV(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M10.125 2.25h-4.5c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125v-9M10.125 2.25h.375a9 9 0 0 1 9 9v.375M10.125 2.25A3.375 3.375 0 0 1 13.5 5.625v1.5c0 .621.504 1.125 1.125 1.125h1.5a3.375 3.375 0 0 1 3.375 3.375M9 15l2.25 2.25L15 12"})])}function iv(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"})])}function lv(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z"})])}function NV(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.98 8.223A10.477 10.477 0 0 0 1.934 12C3.226 16.338 7.244 19.5 12 19.5c.993 0 1.953-.138 2.863-.395M6.228 6.228A10.451 10.451 0 0 1 12 4.5c4.756 0 8.773 3.162 10.065 7.498a10.522 10.522 0 0 1-4.293 5.774M6.228 6.228 3 3m3.228 3.228 3.65 3.65m7.894 7.894L21 21m-3.228-3.228-3.65-3.65m0 0a3 3 0 1 0-4.243-4.243m4.242 4.242L9.88 9.88"})])}function MV(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z"}),m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})])}function Jx(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L6.832 19.82a4.5 4.5 0 0 1-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 0 1 1.13-1.897L16.863 4.487Zm0 0L19.5 7.125"})])}function of(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 4.5v15m7.5-7.5h-15"})])}function DV(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"})])}function Zx(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M17.982 18.725A7.488 7.488 0 0 0 12 15.75a7.488 7.488 0 0 0-5.982 2.975m11.963 0a9 9 0 1 0-11.963 0m11.963 0A8.966 8.966 0 0 1 12 21a8.966 8.966 0 0 1-5.982-2.275M15 9.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})])}function Qx(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m9.75 9.75 4.5 4.5m0-4.5-4.5 4.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function ml(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18 18 6M6 6l12 12"})])}function Dl(e,t,n){let r=n.initialDeps??[],o;return()=>{var i,l,a,c;let d;n.key&&((i=n.debug)!=null&&i.call(n))&&(d=Date.now());const p=e();if(!(p.length!==r.length||p.some((y,b)=>r[b]!==y)))return o;r=p;let v;if(n.key&&((l=n.debug)!=null&&l.call(n))&&(v=Date.now()),o=t(...p),n.key&&((a=n.debug)!=null&&a.call(n))){const y=Math.round((Date.now()-d)*100)/100,b=Math.round((Date.now()-v)*100)/100,S=b/16,T=(C,w)=>{for(C=String(C);C.length<w;)C=" "+C;return C};console.info(`%c⏱ ${T(b,5)} /${T(y,5)} ms`,` 56 56 font-size: .6rem; 57 57 font-weight: bold; 58 color: hsl(${Math.max(0,Math.min(120-120*S,120))}deg 100% 31%);`,n==null?void 0:n.key)}return(c=n==null?void 0:n.onChange)==null||c.call(n,o),o}}function oh(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const UV=(e,t)=>Math.abs(e-t)<1,BV=(e,t,n)=>{let r;return function(...o){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,o),n)}},jV=e=>e,VV=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),r=[];for(let o=t;o<=n;o++)r.push(o);return r},HV=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;const o=l=>{const{width:a,height:c}=l;t({width:Math.round(a),height:Math.round(c)})};if(o(n.getBoundingClientRect()),!r.ResizeObserver)return()=>{};const i=new r.ResizeObserver(l=>{const a=l[0];if(a!=null&&a.borderBoxSize){const c=a.borderBoxSize[0];if(c){o({width:c.inlineSize,height:c.blockSize});return}}o(n.getBoundingClientRect())});return i.observe(n,{box:"border-box"}),()=>{i.unobserve(n)}},db={passive:!0},zV=typeof window>"u"?!0:"onscrollend"in window,WV=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;let o=0;const i=zV?()=>{}:BV(r,()=>{t(o,!1)},e.options.isScrollingResetDelay),l=d=>()=>{o=n[e.options.horizontal?"scrollLeft":"scrollTop"],i(),t(o,d)},a=l(!0),c=l(!1);return c(),n.addEventListener("scroll",a,db),n.addEventListener("scrollend",c,db),()=>{n.removeEventListener("scroll",a),n.removeEventListener("scrollend",c)}},qV=(e,t,n)=>{if(t!=null&&t.borderBoxSize){const r=t.borderBoxSize[0];if(r)return Math.round(r[n.options.horizontal?"inlineSize":"blockSize"])}return Math.round(e.getBoundingClientRect()[n.options.horizontal?"width":"height"])},KV=(e,{adjustments:t=0,behavior:n},r)=>{var o,i;const l=e+t;(i=(o=r.scrollElement)==null?void 0:o.scrollTo)==null||i.call(o,{[r.options.horizontal?"left":"top"]:l,behavior:n})};class GV{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollDirection=null,this.scrollAdjustments=0,this.measureElementCache=new Map,this.observer=(()=>{let n=null;const r=()=>n||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:n=new this.targetWindow.ResizeObserver(o=>{o.forEach(i=>{this._measureElement(i.target,i)})}));return{disconnect:()=>{var o;return(o=r())==null?void 0:o.disconnect()},observe:o=>{var i;return(i=r())==null?void 0:i.observe(o,{box:"border-box"})},unobserve:o=>{var i;return(i=r())==null?void 0:i.unobserve(o)}}})(),this.range=null,this.setOptions=n=>{Object.entries(n).forEach(([r,o])=>{typeof o>"u"&&delete n[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:jV,rangeExtractor:VV,onChange:()=>{},measureElement:qV,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,...n}},this.notify=(n,r)=>{var o,i;const{startIndex:l,endIndex:a}=this.range??{startIndex:void 0,endIndex:void 0},c=this.calculateRange();(n||l!==(c==null?void 0:c.startIndex)||a!==(c==null?void 0:c.endIndex))&&((i=(o=this.options).onChange)==null||i.call(o,this,r))},this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(n=>n()),this.unsubs=[],this.scrollElement=null},this._didMount=()=>(this.measureElementCache.forEach(this.observer.observe),()=>{this.observer.disconnect(),this.cleanup()}),this._willUpdate=()=>{var n;const r=this.options.getScrollElement();this.scrollElement!==r&&(this.cleanup(),this.scrollElement=r,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((n=this.scrollElement)==null?void 0:n.window)??null,this._scrollToOffset(this.scrollOffset,{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,o=>{this.scrollRect=o,this.notify(!1,!1)})),this.unsubs.push(this.options.observeElementOffset(this,(o,i)=>{this.scrollAdjustments=0,this.scrollDirection=i?this.scrollOffset<o?"forward":"backward":null,this.scrollOffset=o;const l=this.isScrolling;this.isScrolling=i,this.notify(l!==i,i)})))},this.getSize=()=>this.scrollRect[this.options.horizontal?"width":"height"],this.getMeasurementOptions=Dl(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey],(n,r,o,i)=>(this.pendingMeasuredCacheIndexes=[],{count:n,paddingStart:r,scrollMargin:o,getItemKey:i}),{key:!1}),this.getFurthestMeasurement=(n,r)=>{const o=new Map,i=new Map;for(let l=r-1;l>=0;l--){const a=n[l];if(o.has(a.lane))continue;const c=i.get(a.lane);if(c==null||a.end>c.end?i.set(a.lane,a):a.end<c.end&&o.set(a.lane,!0),o.size===this.options.lanes)break}return i.size===this.options.lanes?Array.from(i.values()).sort((l,a)=>l.end===a.end?l.index-a.index:l.end-a.end)[0]:void 0},this.getMeasurements=Dl(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:n,paddingStart:r,scrollMargin:o,getItemKey:i},l)=>{const a=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const c=this.measurementsCache.slice(0,a);for(let d=a;d<n;d++){const p=i(d),h=this.options.lanes===1?c[d-1]:this.getFurthestMeasurement(c,d),v=h?h.end+this.options.gap:r+o,y=l.get(p),b=typeof y=="number"?y:this.options.estimateSize(d),S=v+b,T=h?h.lane:d%this.options.lanes;c[d]={index:d,start:v,size:b,end:S,key:p,lane:T}}return this.measurementsCache=c,c},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Dl(()=>[this.getMeasurements(),this.getSize(),this.scrollOffset],(n,r,o)=>this.range=n.length>0&&r>0?XV({measurements:n,outerSize:r,scrollOffset:o}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=Dl(()=>[this.options.rangeExtractor,this.calculateRange(),this.options.overscan,this.options.count],(n,r,o,i)=>r===null?[]:n({startIndex:r.startIndex,endIndex:r.endIndex,overscan:o,count:i}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=n=>{const r=this.options.indexAttribute,o=n.getAttribute(r);return o?parseInt(o,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this._measureElement=(n,r)=>{const o=this.measurementsCache[this.indexFromElement(n)];if(!o||!n.isConnected){this.measureElementCache.forEach((a,c)=>{a===n&&(this.observer.unobserve(n),this.measureElementCache.delete(c))});return}const i=this.measureElementCache.get(o.key);i!==n&&(i&&this.observer.unobserve(i),this.observer.observe(n),this.measureElementCache.set(o.key,n));const l=this.options.measureElement(n,r,this);this.resizeItem(o,l)},this.resizeItem=(n,r)=>{const o=this.itemSizeCache.get(n.key)??n.size,i=r-o;i!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(n,i,this):n.start<this.scrollOffset+this.scrollAdjustments)&&this._scrollToOffset(this.scrollOffset,{adjustments:this.scrollAdjustments+=i,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(n.index),this.itemSizeCache=new Map(this.itemSizeCache.set(n.key,r)),this.notify(!0,!1))},this.measureElement=n=>{n&&this._measureElement(n,void 0)},this.getVirtualItems=Dl(()=>[this.getIndexes(),this.getMeasurements()],(n,r)=>{const o=[];for(let i=0,l=n.length;i<l;i++){const a=n[i],c=r[a];o.push(c)}return o},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=n=>{const r=this.getMeasurements();return oh(r[eT(0,r.length-1,o=>oh(r[o]).start,n)])},this.getOffsetForAlignment=(n,r)=>{const o=this.getSize();r==="auto"&&(n<=this.scrollOffset?r="start":n>=this.scrollOffset+o?r="end":r="start"),r==="start"?n=n:r==="end"?n=n-o:r==="center"&&(n=n-o/2);const i=this.options.horizontal?"scrollWidth":"scrollHeight",a=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[i]:this.scrollElement[i]:0)-this.getSize();return Math.max(Math.min(a,n),0)},this.getOffsetForIndex=(n,r="auto")=>{n=Math.max(0,Math.min(n,this.options.count-1));const o=oh(this.getMeasurements()[n]);if(r==="auto")if(o.end>=this.scrollOffset+this.getSize()-this.options.scrollPaddingEnd)r="end";else if(o.start<=this.scrollOffset+this.options.scrollPaddingStart)r="start";else return[this.scrollOffset,r];const i=r==="end"?o.end+this.options.scrollPaddingEnd:o.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(i,r),r]},this.isDynamicMode=()=>this.measureElementCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(n,{align:r="start",behavior:o}={})=>{this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(n,r),{adjustments:void 0,behavior:o})},this.scrollToIndex=(n,{align:r="auto",behavior:o}={})=>{n=Math.max(0,Math.min(n,this.options.count-1)),this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const[i,l]=this.getOffsetForIndex(n,r);this._scrollToOffset(i,{adjustments:void 0,behavior:o}),o!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.measureElementCache.has(this.options.getItemKey(n))){const[c]=this.getOffsetForIndex(n,l);UV(c,this.scrollOffset)||this.scrollToIndex(n,{align:l,behavior:o})}else this.scrollToIndex(n,{align:l,behavior:o})}))},this.scrollBy=(n,{behavior:r}={})=>{this.cancelScrollToIndex(),r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.scrollOffset+n,{adjustments:void 0,behavior:r})},this.getTotalSize=()=>{var n;const r=this.getMeasurements();let o;return r.length===0?o=this.options.paddingStart:o=this.options.lanes===1?((n=r[r.length-1])==null?void 0:n.end)??0:Math.max(...r.slice(-this.options.lanes).map(i=>i.end)),o-this.options.scrollMargin+this.options.paddingEnd},this._scrollToOffset=(n,{adjustments:r,behavior:o})=>{this.options.scrollToFn(n,{behavior:o,adjustments:r},this)},this.measure=()=>{var n,r;this.itemSizeCache=new Map,(r=(n=this.options).onChange)==null||r.call(n,this,!1)},this.setOptions(t),this.scrollRect=this.options.initialRect,this.scrollOffset=typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset,this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(n=>{this.itemSizeCache.set(n.key,n.size)}),this.notify(!1,!1)}}const eT=(e,t,n,r)=>{for(;e<=t;){const o=(e+t)/2|0,i=n(o);if(i<r)e=o+1;else if(i>r)t=o-1;else return o}return e>0?e-1:0};function XV({measurements:e,outerSize:t,scrollOffset:n}){const r=e.length-1,i=eT(0,r,a=>e[a].start,n);let l=i;for(;l<r&&e[l].end<n+t;)l++;return{startIndex:i,endIndex:l}}function YV(e){const t=new GV(vn(e)),n=gd(t),r=t._didMount();return Ut(()=>vn(e).getScrollElement(),o=>{o&&t._willUpdate()},{immediate:!0}),Ut(()=>vn(e),o=>{t.setOptions({...o,onChange:(i,l)=>{var a;ph(n),(a=o.onChange)==null||a.call(o,i,l)}}),t._willUpdate(),ph(n)},{immediate:!0}),Wb(r),n}function JV(e){return YV(fe(()=>({observeElementRect:HV,observeElementOffset:WV,scrollToFn:KV,...vn(e)})))}function uv(e,t,n){let r=$e(n==null?void 0:n.value),o=fe(()=>e.value!==void 0);return[fe(()=>o.value?e.value:r.value),function(i){return o.value||(r.value=i),t==null?void 0:t(i)}]}function cv(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function xs(){let e=[],t={addEventListener(n,r,o,i){return n.addEventListener(r,o,i),t.add(()=>n.removeEventListener(r,o,i))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){t.requestAnimationFrame(()=>{t.requestAnimationFrame(...n)})},setTimeout(...n){let r=setTimeout(...n);t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return cv(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,o){let i=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:o}),this.add(()=>{Object.assign(n.style,{[r]:i})})},group(n){let r=xs();return n(r),this.add(()=>r.dispose())},add(n){return e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let o of e.splice(r,1))o()}},dispose(){for(let n of e.splice(0))n()}};return t}function ZV(){let e=xs();return en(()=>e.dispose()),e}function QV(){let e=ZV();return t=>{e.dispose(),e.nextFrame(t)}}let eH=Symbol("headlessui.useid"),tH=0;function qt(){return Ft(eH,()=>`${++tH}`)()}function de(e){var t;if(e==null||e.value==null)return null;let n=(t=e.value.$el)!=null?t:e.value;return n instanceof Node?n:null}function kt(e,t,...n){if(e in t){let o=t[e];return typeof o=="function"?o(...n):o}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,kt),r}var nH=Object.defineProperty,rH=(e,t,n)=>t in e?nH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,fb=(e,t,n)=>(rH(e,typeof t!="symbol"?t+"":t,n),n);let oH=class{constructor(){fb(this,"current",this.detect()),fb(this,"currentId",0)}set(t){this.current!==t&&(this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}},Xa=new oH;function Kr(e){if(Xa.isServer)return null;if(e instanceof Node)return e.ownerDocument;if(e!=null&&e.hasOwnProperty("value")){let t=de(e);if(t)return t.ownerDocument}return document}let om=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var Mn=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(Mn||{}),Ca=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Ca||{}),sH=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(sH||{});function of(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(om)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var sf=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(sf||{});function dv(e,t=0){var n;return e===((n=Kr(e))==null?void 0:n.body)?!1:kt(t,{0(){return e.matches(om)},1(){let r=e;for(;r!==null;){if(r.matches(om))return!0;r=r.parentElement}return!1}})}var iH=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(iH||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function si(e){e==null||e.focus({preventScroll:!0})}let lH=["textarea","input"].join(",");function aH(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,lH))!=null?n:!1}function fv(e,t=n=>n){return e.slice().sort((n,r)=>{let o=t(n),i=t(r);if(o===null||i===null)return 0;let l=o.compareDocumentPosition(i);return l&Node.DOCUMENT_POSITION_FOLLOWING?-1:l&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function to(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:o=[]}={}){var i;let l=(i=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e==null?void 0:e.ownerDocument)!=null?i:document,a=Array.isArray(e)?n?fv(e):e:of(e);o.length>0&&a.length>1&&(a=a.filter(b=>!o.includes(b))),r=r??l.activeElement;let c=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),d=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,a.indexOf(r))-1;if(t&4)return Math.max(0,a.indexOf(r))+1;if(t&8)return a.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),p=t&32?{preventScroll:!0}:{},h=0,v=a.length,y;do{if(h>=v||h+v<=0)return 0;let b=d+h;if(t&16)b=(b+v)%v;else{if(b<0)return 3;if(b>=v)return 1}y=a[b],y==null||y.focus(p),h+=c}while(y!==l.activeElement);return t&6&&aH(y)&&y.select(),2}function tT(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function uH(){return/Android/gi.test(window.navigator.userAgent)}function nT(){return tT()||uH()}function uc(e,t,n){Xa.isServer||Vt(r=>{document.addEventListener(e,t,n),r(()=>document.removeEventListener(e,t,n))})}function rT(e,t,n){Xa.isServer||Vt(r=>{window.addEventListener(e,t,n),r(()=>window.removeEventListener(e,t,n))})}function lf(e,t,n=fe(()=>!0)){function r(i,l){if(!n.value||i.defaultPrevented)return;let a=l(i);if(a===null||!a.getRootNode().contains(a))return;let c=function d(p){return typeof p=="function"?d(p()):Array.isArray(p)||p instanceof Set?p:[p]}(e);for(let d of c){if(d===null)continue;let p=d instanceof HTMLElement?d:de(d);if(p!=null&&p.contains(a)||i.composed&&i.composedPath().includes(p))return}return!dv(a,sf.Loose)&&a.tabIndex!==-1&&i.preventDefault(),t(i,a)}let o=$e(null);uc("pointerdown",i=>{var l,a;n.value&&(o.value=((a=(l=i.composedPath)==null?void 0:l.call(i))==null?void 0:a[0])||i.target)},!0),uc("mousedown",i=>{var l,a;n.value&&(o.value=((a=(l=i.composedPath)==null?void 0:l.call(i))==null?void 0:a[0])||i.target)},!0),uc("click",i=>{nT()||o.value&&(r(i,()=>o.value),o.value=null)},!0),uc("touchend",i=>r(i,()=>i.target instanceof HTMLElement?i.target:null),!0),rT("blur",i=>r(i,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function pb(e,t){if(e)return e;let n=t??"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function af(e,t){let n=$e(pb(e.value.type,e.value.as));return wt(()=>{n.value=pb(e.value.type,e.value.as)}),Vt(()=>{var r;n.value||de(t)&&de(t)instanceof HTMLButtonElement&&!((r=de(t))!=null&&r.hasAttribute("type"))&&(n.value="button")}),n}function hb(e){return[e.screenX,e.screenY]}function oT(){let e=$e([-1,-1]);return{wasMoved(t){let n=hb(t);return e.value[0]===n[0]&&e.value[1]===n[1]?!1:(e.value=n,!0)},update(t){e.value=hb(t)}}}function cH({container:e,accept:t,walk:n,enabled:r}){Vt(()=>{let o=e.value;if(!o||r!==void 0&&!r.value)return;let i=Kr(e);if(!i)return;let l=Object.assign(c=>t(c),{acceptNode:t}),a=i.createTreeWalker(o,NodeFilter.SHOW_ELEMENT,l,!1);for(;a.nextNode();)n(a.currentNode)})}var ar=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(ar||{}),gs=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(gs||{});function xt({visible:e=!0,features:t=0,ourProps:n,theirProps:r,...o}){var i;let l=iT(r,n),a=Object.assign(o,{props:l});if(e||t&2&&l.static)return sh(a);if(t&1){let c=(i=l.unmount)==null||i?0:1;return kt(c,{0(){return null},1(){return sh({...o,props:{...l,hidden:!0,style:{display:"none"}}})}})}return sh(a)}function sh({props:e,attrs:t,slots:n,slot:r,name:o}){var i,l;let{as:a,...c}=gi(e,["unmount","static"]),d=(i=n.default)==null?void 0:i.call(n,r),p={};if(r){let h=!1,v=[];for(let[y,b]of Object.entries(r))typeof b=="boolean"&&(h=!0),b===!0&&v.push(y);h&&(p["data-headlessui-state"]=v.join(" "))}if(a==="template"){if(d=sT(d??[]),Object.keys(c).length>0||Object.keys(t).length>0){let[h,...v]=d??[];if(!dH(h)||v.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${o} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(c).concat(Object.keys(t)).map(S=>S.trim()).filter((S,T,C)=>C.indexOf(S)===T).sort((S,T)=>S.localeCompare(T)).map(S=>` - ${S}`).join(`58 color: hsl(${Math.max(0,Math.min(120-120*S,120))}deg 100% 31%);`,n==null?void 0:n.key)}return(c=n==null?void 0:n.onChange)==null||c.call(n,o),o}}function sh(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const UV=(e,t)=>Math.abs(e-t)<1,BV=(e,t,n)=>{let r;return function(...o){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,o),n)}},jV=e=>e,VV=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),r=[];for(let o=t;o<=n;o++)r.push(o);return r},HV=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;const o=l=>{const{width:a,height:c}=l;t({width:Math.round(a),height:Math.round(c)})};if(o(n.getBoundingClientRect()),!r.ResizeObserver)return()=>{};const i=new r.ResizeObserver(l=>{const a=l[0];if(a!=null&&a.borderBoxSize){const c=a.borderBoxSize[0];if(c){o({width:c.inlineSize,height:c.blockSize});return}}o(n.getBoundingClientRect())});return i.observe(n,{box:"border-box"}),()=>{i.unobserve(n)}},cb={passive:!0},zV=typeof window>"u"?!0:"onscrollend"in window,WV=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;let o=0;const i=zV?()=>{}:BV(r,()=>{t(o,!1)},e.options.isScrollingResetDelay),l=d=>()=>{o=n[e.options.horizontal?"scrollLeft":"scrollTop"],i(),t(o,d)},a=l(!0),c=l(!1);return c(),n.addEventListener("scroll",a,cb),n.addEventListener("scrollend",c,cb),()=>{n.removeEventListener("scroll",a),n.removeEventListener("scrollend",c)}},qV=(e,t,n)=>{if(t!=null&&t.borderBoxSize){const r=t.borderBoxSize[0];if(r)return Math.round(r[n.options.horizontal?"inlineSize":"blockSize"])}return Math.round(e.getBoundingClientRect()[n.options.horizontal?"width":"height"])},KV=(e,{adjustments:t=0,behavior:n},r)=>{var o,i;const l=e+t;(i=(o=r.scrollElement)==null?void 0:o.scrollTo)==null||i.call(o,{[r.options.horizontal?"left":"top"]:l,behavior:n})};class GV{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollDirection=null,this.scrollAdjustments=0,this.measureElementCache=new Map,this.observer=(()=>{let n=null;const r=()=>n||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:n=new this.targetWindow.ResizeObserver(o=>{o.forEach(i=>{this._measureElement(i.target,i)})}));return{disconnect:()=>{var o;return(o=r())==null?void 0:o.disconnect()},observe:o=>{var i;return(i=r())==null?void 0:i.observe(o,{box:"border-box"})},unobserve:o=>{var i;return(i=r())==null?void 0:i.unobserve(o)}}})(),this.range=null,this.setOptions=n=>{Object.entries(n).forEach(([r,o])=>{typeof o>"u"&&delete n[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:jV,rangeExtractor:VV,onChange:()=>{},measureElement:qV,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,...n}},this.notify=(n,r)=>{var o,i;const{startIndex:l,endIndex:a}=this.range??{startIndex:void 0,endIndex:void 0},c=this.calculateRange();(n||l!==(c==null?void 0:c.startIndex)||a!==(c==null?void 0:c.endIndex))&&((i=(o=this.options).onChange)==null||i.call(o,this,r))},this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(n=>n()),this.unsubs=[],this.scrollElement=null},this._didMount=()=>(this.measureElementCache.forEach(this.observer.observe),()=>{this.observer.disconnect(),this.cleanup()}),this._willUpdate=()=>{var n;const r=this.options.getScrollElement();this.scrollElement!==r&&(this.cleanup(),this.scrollElement=r,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((n=this.scrollElement)==null?void 0:n.window)??null,this._scrollToOffset(this.scrollOffset,{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,o=>{this.scrollRect=o,this.notify(!1,!1)})),this.unsubs.push(this.options.observeElementOffset(this,(o,i)=>{this.scrollAdjustments=0,this.scrollDirection=i?this.scrollOffset<o?"forward":"backward":null,this.scrollOffset=o;const l=this.isScrolling;this.isScrolling=i,this.notify(l!==i,i)})))},this.getSize=()=>this.scrollRect[this.options.horizontal?"width":"height"],this.getMeasurementOptions=Dl(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey],(n,r,o,i)=>(this.pendingMeasuredCacheIndexes=[],{count:n,paddingStart:r,scrollMargin:o,getItemKey:i}),{key:!1}),this.getFurthestMeasurement=(n,r)=>{const o=new Map,i=new Map;for(let l=r-1;l>=0;l--){const a=n[l];if(o.has(a.lane))continue;const c=i.get(a.lane);if(c==null||a.end>c.end?i.set(a.lane,a):a.end<c.end&&o.set(a.lane,!0),o.size===this.options.lanes)break}return i.size===this.options.lanes?Array.from(i.values()).sort((l,a)=>l.end===a.end?l.index-a.index:l.end-a.end)[0]:void 0},this.getMeasurements=Dl(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:n,paddingStart:r,scrollMargin:o,getItemKey:i},l)=>{const a=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const c=this.measurementsCache.slice(0,a);for(let d=a;d<n;d++){const p=i(d),h=this.options.lanes===1?c[d-1]:this.getFurthestMeasurement(c,d),v=h?h.end+this.options.gap:r+o,y=l.get(p),b=typeof y=="number"?y:this.options.estimateSize(d),S=v+b,T=h?h.lane:d%this.options.lanes;c[d]={index:d,start:v,size:b,end:S,key:p,lane:T}}return this.measurementsCache=c,c},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Dl(()=>[this.getMeasurements(),this.getSize(),this.scrollOffset],(n,r,o)=>this.range=n.length>0&&r>0?XV({measurements:n,outerSize:r,scrollOffset:o}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=Dl(()=>[this.options.rangeExtractor,this.calculateRange(),this.options.overscan,this.options.count],(n,r,o,i)=>r===null?[]:n({startIndex:r.startIndex,endIndex:r.endIndex,overscan:o,count:i}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=n=>{const r=this.options.indexAttribute,o=n.getAttribute(r);return o?parseInt(o,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this._measureElement=(n,r)=>{const o=this.measurementsCache[this.indexFromElement(n)];if(!o||!n.isConnected){this.measureElementCache.forEach((a,c)=>{a===n&&(this.observer.unobserve(n),this.measureElementCache.delete(c))});return}const i=this.measureElementCache.get(o.key);i!==n&&(i&&this.observer.unobserve(i),this.observer.observe(n),this.measureElementCache.set(o.key,n));const l=this.options.measureElement(n,r,this);this.resizeItem(o,l)},this.resizeItem=(n,r)=>{const o=this.itemSizeCache.get(n.key)??n.size,i=r-o;i!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(n,i,this):n.start<this.scrollOffset+this.scrollAdjustments)&&this._scrollToOffset(this.scrollOffset,{adjustments:this.scrollAdjustments+=i,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(n.index),this.itemSizeCache=new Map(this.itemSizeCache.set(n.key,r)),this.notify(!0,!1))},this.measureElement=n=>{n&&this._measureElement(n,void 0)},this.getVirtualItems=Dl(()=>[this.getIndexes(),this.getMeasurements()],(n,r)=>{const o=[];for(let i=0,l=n.length;i<l;i++){const a=n[i],c=r[a];o.push(c)}return o},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=n=>{const r=this.getMeasurements();return sh(r[eT(0,r.length-1,o=>sh(r[o]).start,n)])},this.getOffsetForAlignment=(n,r)=>{const o=this.getSize();r==="auto"&&(n<=this.scrollOffset?r="start":n>=this.scrollOffset+o?r="end":r="start"),r==="start"?n=n:r==="end"?n=n-o:r==="center"&&(n=n-o/2);const i=this.options.horizontal?"scrollWidth":"scrollHeight",a=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[i]:this.scrollElement[i]:0)-this.getSize();return Math.max(Math.min(a,n),0)},this.getOffsetForIndex=(n,r="auto")=>{n=Math.max(0,Math.min(n,this.options.count-1));const o=sh(this.getMeasurements()[n]);if(r==="auto")if(o.end>=this.scrollOffset+this.getSize()-this.options.scrollPaddingEnd)r="end";else if(o.start<=this.scrollOffset+this.options.scrollPaddingStart)r="start";else return[this.scrollOffset,r];const i=r==="end"?o.end+this.options.scrollPaddingEnd:o.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(i,r),r]},this.isDynamicMode=()=>this.measureElementCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(n,{align:r="start",behavior:o}={})=>{this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(n,r),{adjustments:void 0,behavior:o})},this.scrollToIndex=(n,{align:r="auto",behavior:o}={})=>{n=Math.max(0,Math.min(n,this.options.count-1)),this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const[i,l]=this.getOffsetForIndex(n,r);this._scrollToOffset(i,{adjustments:void 0,behavior:o}),o!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.measureElementCache.has(this.options.getItemKey(n))){const[c]=this.getOffsetForIndex(n,l);UV(c,this.scrollOffset)||this.scrollToIndex(n,{align:l,behavior:o})}else this.scrollToIndex(n,{align:l,behavior:o})}))},this.scrollBy=(n,{behavior:r}={})=>{this.cancelScrollToIndex(),r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.scrollOffset+n,{adjustments:void 0,behavior:r})},this.getTotalSize=()=>{var n;const r=this.getMeasurements();let o;return r.length===0?o=this.options.paddingStart:o=this.options.lanes===1?((n=r[r.length-1])==null?void 0:n.end)??0:Math.max(...r.slice(-this.options.lanes).map(i=>i.end)),o-this.options.scrollMargin+this.options.paddingEnd},this._scrollToOffset=(n,{adjustments:r,behavior:o})=>{this.options.scrollToFn(n,{behavior:o,adjustments:r},this)},this.measure=()=>{var n,r;this.itemSizeCache=new Map,(r=(n=this.options).onChange)==null||r.call(n,this,!1)},this.setOptions(t),this.scrollRect=this.options.initialRect,this.scrollOffset=typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset,this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(n=>{this.itemSizeCache.set(n.key,n.size)}),this.notify(!1,!1)}}const eT=(e,t,n,r)=>{for(;e<=t;){const o=(e+t)/2|0,i=n(o);if(i<r)e=o+1;else if(i>r)t=o-1;else return o}return e>0?e-1:0};function XV({measurements:e,outerSize:t,scrollOffset:n}){const r=e.length-1,i=eT(0,r,a=>e[a].start,n);let l=i;for(;l<r&&e[l].end<n+t;)l++;return{startIndex:i,endIndex:l}}function YV(e){const t=new GV(vn(e)),n=gd(t),r=t._didMount();return Ut(()=>vn(e).getScrollElement(),o=>{o&&t._willUpdate()},{immediate:!0}),Ut(()=>vn(e),o=>{t.setOptions({...o,onChange:(i,l)=>{var a;hh(n),(a=o.onChange)==null||a.call(o,i,l)}}),t._willUpdate(),hh(n)},{immediate:!0}),zb(r),n}function JV(e){return YV(fe(()=>({observeElementRect:HV,observeElementOffset:WV,scrollToFn:KV,...vn(e)})))}function av(e,t,n){let r=$e(n==null?void 0:n.value),o=fe(()=>e.value!==void 0);return[fe(()=>o.value?e.value:r.value),function(i){return o.value||(r.value=i),t==null?void 0:t(i)}]}function uv(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function xs(){let e=[],t={addEventListener(n,r,o,i){return n.addEventListener(r,o,i),t.add(()=>n.removeEventListener(r,o,i))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){t.requestAnimationFrame(()=>{t.requestAnimationFrame(...n)})},setTimeout(...n){let r=setTimeout(...n);t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return uv(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,o){let i=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:o}),this.add(()=>{Object.assign(n.style,{[r]:i})})},group(n){let r=xs();return n(r),this.add(()=>r.dispose())},add(n){return e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let o of e.splice(r,1))o()}},dispose(){for(let n of e.splice(0))n()}};return t}function ZV(){let e=xs();return en(()=>e.dispose()),e}function QV(){let e=ZV();return t=>{e.dispose(),e.nextFrame(t)}}let eH=Symbol("headlessui.useid"),tH=0;function qt(){return Ft(eH,()=>`${++tH}`)()}function de(e){var t;if(e==null||e.value==null)return null;let n=(t=e.value.$el)!=null?t:e.value;return n instanceof Node?n:null}function kt(e,t,...n){if(e in t){let o=t[e];return typeof o=="function"?o(...n):o}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,kt),r}var nH=Object.defineProperty,rH=(e,t,n)=>t in e?nH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,db=(e,t,n)=>(rH(e,typeof t!="symbol"?t+"":t,n),n);let oH=class{constructor(){db(this,"current",this.detect()),db(this,"currentId",0)}set(t){this.current!==t&&(this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}},Xa=new oH;function Gr(e){if(Xa.isServer)return null;if(e instanceof Node)return e.ownerDocument;if(e!=null&&e.hasOwnProperty("value")){let t=de(e);if(t)return t.ownerDocument}return document}let sm=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var Mn=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(Mn||{}),Ca=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Ca||{}),sH=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(sH||{});function sf(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(sm)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var lf=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(lf||{});function cv(e,t=0){var n;return e===((n=Gr(e))==null?void 0:n.body)?!1:kt(t,{0(){return e.matches(sm)},1(){let r=e;for(;r!==null;){if(r.matches(sm))return!0;r=r.parentElement}return!1}})}var iH=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(iH||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function si(e){e==null||e.focus({preventScroll:!0})}let lH=["textarea","input"].join(",");function aH(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,lH))!=null?n:!1}function dv(e,t=n=>n){return e.slice().sort((n,r)=>{let o=t(n),i=t(r);if(o===null||i===null)return 0;let l=o.compareDocumentPosition(i);return l&Node.DOCUMENT_POSITION_FOLLOWING?-1:l&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function no(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:o=[]}={}){var i;let l=(i=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e==null?void 0:e.ownerDocument)!=null?i:document,a=Array.isArray(e)?n?dv(e):e:sf(e);o.length>0&&a.length>1&&(a=a.filter(b=>!o.includes(b))),r=r??l.activeElement;let c=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),d=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,a.indexOf(r))-1;if(t&4)return Math.max(0,a.indexOf(r))+1;if(t&8)return a.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),p=t&32?{preventScroll:!0}:{},h=0,v=a.length,y;do{if(h>=v||h+v<=0)return 0;let b=d+h;if(t&16)b=(b+v)%v;else{if(b<0)return 3;if(b>=v)return 1}y=a[b],y==null||y.focus(p),h+=c}while(y!==l.activeElement);return t&6&&aH(y)&&y.select(),2}function tT(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function uH(){return/Android/gi.test(window.navigator.userAgent)}function nT(){return tT()||uH()}function uc(e,t,n){Xa.isServer||Vt(r=>{document.addEventListener(e,t,n),r(()=>document.removeEventListener(e,t,n))})}function rT(e,t,n){Xa.isServer||Vt(r=>{window.addEventListener(e,t,n),r(()=>window.removeEventListener(e,t,n))})}function af(e,t,n=fe(()=>!0)){function r(i,l){if(!n.value||i.defaultPrevented)return;let a=l(i);if(a===null||!a.getRootNode().contains(a))return;let c=function d(p){return typeof p=="function"?d(p()):Array.isArray(p)||p instanceof Set?p:[p]}(e);for(let d of c){if(d===null)continue;let p=d instanceof HTMLElement?d:de(d);if(p!=null&&p.contains(a)||i.composed&&i.composedPath().includes(p))return}return!cv(a,lf.Loose)&&a.tabIndex!==-1&&i.preventDefault(),t(i,a)}let o=$e(null);uc("pointerdown",i=>{var l,a;n.value&&(o.value=((a=(l=i.composedPath)==null?void 0:l.call(i))==null?void 0:a[0])||i.target)},!0),uc("mousedown",i=>{var l,a;n.value&&(o.value=((a=(l=i.composedPath)==null?void 0:l.call(i))==null?void 0:a[0])||i.target)},!0),uc("click",i=>{nT()||o.value&&(r(i,()=>o.value),o.value=null)},!0),uc("touchend",i=>r(i,()=>i.target instanceof HTMLElement?i.target:null),!0),rT("blur",i=>r(i,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function fb(e,t){if(e)return e;let n=t??"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function uf(e,t){let n=$e(fb(e.value.type,e.value.as));return wt(()=>{n.value=fb(e.value.type,e.value.as)}),Vt(()=>{var r;n.value||de(t)&&de(t)instanceof HTMLButtonElement&&!((r=de(t))!=null&&r.hasAttribute("type"))&&(n.value="button")}),n}function pb(e){return[e.screenX,e.screenY]}function oT(){let e=$e([-1,-1]);return{wasMoved(t){let n=pb(t);return e.value[0]===n[0]&&e.value[1]===n[1]?!1:(e.value=n,!0)},update(t){e.value=pb(t)}}}function cH({container:e,accept:t,walk:n,enabled:r}){Vt(()=>{let o=e.value;if(!o||r!==void 0&&!r.value)return;let i=Gr(e);if(!i)return;let l=Object.assign(c=>t(c),{acceptNode:t}),a=i.createTreeWalker(o,NodeFilter.SHOW_ELEMENT,l,!1);for(;a.nextNode();)n(a.currentNode)})}var ur=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(ur||{}),gs=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(gs||{});function xt({visible:e=!0,features:t=0,ourProps:n,theirProps:r,...o}){var i;let l=iT(r,n),a=Object.assign(o,{props:l});if(e||t&2&&l.static)return ih(a);if(t&1){let c=(i=l.unmount)==null||i?0:1;return kt(c,{0(){return null},1(){return ih({...o,props:{...l,hidden:!0,style:{display:"none"}}})}})}return ih(a)}function ih({props:e,attrs:t,slots:n,slot:r,name:o}){var i,l;let{as:a,...c}=gi(e,["unmount","static"]),d=(i=n.default)==null?void 0:i.call(n,r),p={};if(r){let h=!1,v=[];for(let[y,b]of Object.entries(r))typeof b=="boolean"&&(h=!0),b===!0&&v.push(y);h&&(p["data-headlessui-state"]=v.join(" "))}if(a==="template"){if(d=sT(d??[]),Object.keys(c).length>0||Object.keys(t).length>0){let[h,...v]=d??[];if(!dH(h)||v.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${o} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(c).concat(Object.keys(t)).map(S=>S.trim()).filter((S,T,C)=>C.indexOf(S)===T).sort((S,T)=>S.localeCompare(T)).map(S=>` - ${S}`).join(` 59 59 `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".',"Render a single element as the child so that we can forward the props onto that element."].map(S=>` - ${S}`).join(` 60 60 `)].join(` 61 `));let y=iT((l=h.props)!=null?l:{},c,p),b= jr(h,y,!0);for(let S in y)S.startsWith("on")&&(b.props||(b.props={}),b.props[S]=y[S]);return b}return Array.isArray(d)&&d.length===1?d[0]:d}return pt(a,Object.assign({},c,p),{default:()=>d})}function sT(e){return e.flatMap(t=>t.type===Me?sT(t.children):[t])}function iT(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let o in r)o.startsWith("on")&&typeof r[o]=="function"?(n[o]!=null||(n[o]=[]),n[o].push(r[o])):t[o]=r[o];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(t,{[r](o,...i){let l=n[r];for(let a of l){if(o instanceof Event&&o.defaultPrevented)return;a(o,...i)}}});return t}function pv(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function gi(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function dH(e){return e==null?!1:typeof e.type=="string"||typeof e.type=="object"||typeof e.type=="function"}var io=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(io||{});let xo=ge({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup(e,{slots:t,attrs:n}){return()=>{var r;let{features:o,...i}=e,l={"aria-hidden":(o&2)===2?!0:(r=i["aria-hidden"])!=null?r:void 0,hidden:(o&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(o&4)===4&&(o&2)!==2&&{display:"none"}}};return xt({ourProps:l,theirProps:i,slot:{},attrs:n,slots:t,name:"Hidden"})}}}),lT=Symbol("Context");var Lt=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Lt||{});function fH(){return vi()!==null}function vi(){return Ft(lT,null)}function uf(e){Qt(lT,e)}var at=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(at||{}),aT=(e=>(e[e.Left=0]="Left",e[e.Right=2]="Right",e))(aT||{});function pH(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let Ho=[];pH(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&Ho[0]!==t.target&&(Ho.unshift(t.target),Ho=Ho.filter(n=>n!=null&&n.isConnected),Ho.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function hH(e){throw new Error("Unexpected object: "+e)}var Ct=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(Ct||{});function sm(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),o=r??-1;switch(e.focus){case 0:{for(let i=0;i<n.length;++i)if(!t.resolveDisabled(n[i],i,n))return i;return r}case 1:{o===-1&&(o=n.length);for(let i=o-1;i>=0;--i)if(!t.resolveDisabled(n[i],i,n))return i;return r}case 2:{for(let i=o+1;i<n.length;++i)if(!t.resolveDisabled(n[i],i,n))return i;return r}case 3:{for(let i=n.length-1;i>=0;--i)if(!t.resolveDisabled(n[i],i,n))return i;return r}case 4:{for(let i=0;i<n.length;++i)if(t.resolveId(n[i],i,n)===e.id)return i;return r}case 5:return null;default:hH(e)}}function hv(e={},t=null,n=[]){for(let[r,o]of Object.entries(e))cT(n,uT(t,r),o);return n}function uT(e,t){return e?e+"["+t+"]":t}function cT(e,t,n){if(Array.isArray(n))for(let[r,o]of n.entries())cT(e,uT(t,r.toString()),o);else n instanceof Date?e.push([t,n.toISOString()]):typeof n=="boolean"?e.push([t,n?"1":"0"]):typeof n=="string"?e.push([t,n]):typeof n=="number"?e.push([t,`${n}`]):n==null?e.push([t,""]):hv(n,t,e)}function mH(e){var t,n;let r=(t=e==null?void 0:e.form)!=null?t:e.closest("form");if(r){for(let o of r.elements)if(o!==e&&(o.tagName==="INPUT"&&o.type==="submit"||o.tagName==="BUTTON"&&o.type==="submit"||o.nodeName==="INPUT"&&o.type==="image")){o.click();return}(n=r.requestSubmit)==null||n.call(r)}}var gH={};function vH(e,t){return e===t}var yH=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(yH||{}),_H=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(_H||{}),bH=(e=>(e[e.Pointer=0]="Pointer",e[e.Focus=1]="Focus",e[e.Other=2]="Other",e))(bH||{});let dT=Symbol("ComboboxContext");function yi(e){let t=Ft(dT,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,yi),n}return t}let fT=Symbol("VirtualContext"),wH=ge({name:"VirtualProvider",setup(e,{slots:t}){let n=yi("VirtualProvider"),r=fe(()=>{let a=de(n.optionsRef);if(!a)return{start:0,end:0};let c=window.getComputedStyle(a);return{start:parseFloat(c.paddingBlockStart||c.paddingTop),end:parseFloat(c.paddingBlockEnd||c.paddingBottom)}}),o=JV(fe(()=>({scrollPaddingStart:r.value.start,scrollPaddingEnd:r.value.end,count:n.virtual.value.options.length,estimateSize(){return 40},getScrollElement(){return de(n.optionsRef)},overscan:12}))),i=fe(()=>{var a;return(a=n.virtual.value)==null?void 0:a.options}),l=$e(0);return Ut([i],()=>{l.value+=1}),Qt(fT,n.virtual.value?o:null),()=>[pt("div",{style:{position:"relative",width:"100%",height:`${o.value.getTotalSize()}px`},ref:a=>{if(a){if(typeof process<"u"&&gH.JEST_WORKER_ID!==void 0||n.activationTrigger.value===0)return;n.activeOptionIndex.value!==null&&n.virtual.value.options.length>n.activeOptionIndex.value&&o.value.scrollToIndex(n.activeOptionIndex.value)}}},o.value.getVirtualItems().map(a=>jr(t.default({option:n.virtual.value.options[a.index],open:n.comboboxState.value===0})[0],{key:`${l.value}-${a.index}`,"data-index":a.index,"aria-setsize":n.virtual.value.options.length,"aria-posinset":a.index+1,style:{position:"absolute",top:0,left:0,transform:`translateY(${a.start}px)`,overflowAnchor:"none"}})))]}}),pT=ge({name:"Combobox",emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:"template"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],nullable:!0,default:null},modelValue:{type:[Object,String,Number,Boolean],default:void 0},defaultValue:{type:[Object,String,Number,Boolean],default:void 0},form:{type:String,optional:!0},name:{type:String,optional:!0},nullable:{type:Boolean,default:!1},multiple:{type:[Boolean],default:!1},immediate:{type:[Boolean],default:!1},virtual:{type:Object,default:null}},inheritAttrs:!1,setup(e,{slots:t,attrs:n,emit:r}){let o=$e(1),i=$e(null),l=$e(null),a=$e(null),c=$e(null),d=$e({static:!1,hold:!1}),p=$e([]),h=$e(null),v=$e(2),y=$e(!1);function b(U=j=>j){let j=h.value!==null?p.value[h.value]:null,G=U(p.value.slice()),X=G.length>0&&G[0].dataRef.order.value!==null?G.sort((xe,Ee)=>xe.dataRef.order.value-Ee.dataRef.order.value):fv(G,xe=>de(xe.dataRef.domRef)),ne=j?X.indexOf(j):null;return ne===-1&&(ne=null),{options:X,activeOptionIndex:ne}}let S=fe(()=>e.multiple?1:0),T=fe(()=>e.nullable),[C,w]=uv(fe(()=>e.modelValue),U=>r("update:modelValue",U),fe(()=>e.defaultValue)),E=fe(()=>C.value===void 0?kt(S.value,{1:[],0:void 0}):C.value),O=null,$=null;function P(U){return kt(S.value,{0(){return w==null?void 0:w(U)},1:()=>{let j=He(k.value.value).slice(),G=He(U),X=j.findIndex(ne=>k.compare(G,He(ne)));return X===-1?j.push(G):j.splice(X,1),w==null?void 0:w(j)}})}let R=fe(()=>{});Ut([R],([U],[j])=>{if(k.virtual.value&&U&&j&&h.value!==null){let G=U.indexOf(j[h.value]);G!==-1?h.value=G:h.value=null}});let k={comboboxState:o,value:E,mode:S,compare(U,j){if(typeof e.by=="string"){let G=e.by;return(U==null?void 0:U[G])===(j==null?void 0:j[G])}return e.by===null?vH(U,j):e.by(U,j)},calculateIndex(U){return k.virtual.value?e.by===null?k.virtual.value.options.indexOf(U):k.virtual.value.options.findIndex(j=>k.compare(j,U)):p.value.findIndex(j=>k.compare(j.dataRef.value,U))},defaultValue:fe(()=>e.defaultValue),nullable:T,immediate:fe(()=>!1),virtual:fe(()=>null),inputRef:l,labelRef:i,buttonRef:a,optionsRef:c,disabled:fe(()=>e.disabled),options:p,change(U){w(U)},activeOptionIndex:fe(()=>{if(y.value&&h.value===null&&(k.virtual.value?k.virtual.value.options.length>0:p.value.length>0)){if(k.virtual.value){let j=k.virtual.value.options.findIndex(G=>{var X;return!((X=k.virtual.value)!=null&&X.disabled(G))});if(j!==-1)return j}let U=p.value.findIndex(j=>!j.dataRef.disabled);if(U!==-1)return U}return h.value}),activationTrigger:v,optionsPropsRef:d,closeCombobox(){y.value=!1,!e.disabled&&o.value!==1&&(o.value=1,h.value=null)},openCombobox(){if(y.value=!0,!e.disabled&&o.value!==0){if(k.value.value){let U=k.calculateIndex(k.value.value);U!==-1&&(h.value=U)}o.value=0}},setActivationTrigger(U){v.value=U},goToOption(U,j,G){y.value=!1,O!==null&&cancelAnimationFrame(O),O=requestAnimationFrame(()=>{if(e.disabled||c.value&&!d.value.static&&o.value===1)return;if(k.virtual.value){h.value=U===Ct.Specific?j:sm({focus:U},{resolveItems:()=>k.virtual.value.options,resolveActiveIndex:()=>{var xe,Ee;return(Ee=(xe=k.activeOptionIndex.value)!=null?xe:k.virtual.value.options.findIndex(ke=>{var Ie;return!((Ie=k.virtual.value)!=null&&Ie.disabled(ke))}))!=null?Ee:null},resolveDisabled:xe=>k.virtual.value.disabled(xe),resolveId(){throw new Error("Function not implemented.")}}),v.value=G??2;return}let X=b();if(X.activeOptionIndex===null){let xe=X.options.findIndex(Ee=>!Ee.dataRef.disabled);xe!==-1&&(X.activeOptionIndex=xe)}let ne=U===Ct.Specific?j:sm({focus:U},{resolveItems:()=>X.options,resolveActiveIndex:()=>X.activeOptionIndex,resolveId:xe=>xe.id,resolveDisabled:xe=>xe.dataRef.disabled});h.value=ne,v.value=G??2,p.value=X.options})},selectOption(U){let j=p.value.find(X=>X.id===U);if(!j)return;let{dataRef:G}=j;P(G.value)},selectActiveOption(){if(k.activeOptionIndex.value!==null){if(k.virtual.value)P(k.virtual.value.options[k.activeOptionIndex.value]);else{let{dataRef:U}=p.value[k.activeOptionIndex.value];P(U.value)}k.goToOption(Ct.Specific,k.activeOptionIndex.value)}},registerOption(U,j){let G=Ts({id:U,dataRef:j});if(k.virtual.value){p.value.push(G);return}$&&cancelAnimationFrame($);let X=b(ne=>(ne.push(G),ne));h.value===null&&k.isSelected(j.value.value)&&(X.activeOptionIndex=X.options.indexOf(G)),p.value=X.options,h.value=X.activeOptionIndex,v.value=2,X.options.some(ne=>!de(ne.dataRef.domRef))&&($=requestAnimationFrame(()=>{let ne=b();p.value=ne.options,h.value=ne.activeOptionIndex}))},unregisterOption(U,j){if(O!==null&&cancelAnimationFrame(O),j&&(y.value=!0),k.virtual.value){p.value=p.value.filter(X=>X.id!==U);return}let G=b(X=>{let ne=X.findIndex(xe=>xe.id===U);return ne!==-1&&X.splice(ne,1),X});p.value=G.options,h.value=G.activeOptionIndex,v.value=2},isSelected(U){return kt(S.value,{0:()=>k.compare(He(k.value.value),He(U)),1:()=>He(k.value.value).some(j=>k.compare(He(j),He(U)))})},isActive(U){return h.value===k.calculateIndex(U)}};lf([l,a,c],()=>k.closeCombobox(),fe(()=>o.value===0)),Qt(dT,k),uf(fe(()=>kt(o.value,{0:Lt.Open,1:Lt.Closed})));let W=fe(()=>{var U;return(U=de(l))==null?void 0:U.closest("form")});return wt(()=>{Ut([W],()=>{if(!W.value||e.defaultValue===void 0)return;function U(){k.change(e.defaultValue)}return W.value.addEventListener("reset",U),()=>{var j;(j=W.value)==null||j.removeEventListener("reset",U)}},{immediate:!0})}),()=>{var U,j,G;let{name:X,disabled:ne,form:xe,...Ee}=e,ke={open:o.value===0,disabled:ne,activeIndex:k.activeOptionIndex.value,activeOption:k.activeOptionIndex.value===null?null:k.virtual.value?k.virtual.value.options[(U=k.activeOptionIndex.value)!=null?U:0]:(G=(j=k.options.value[k.activeOptionIndex.value])==null?void 0:j.dataRef.value)!=null?G:null,value:E.value};return pt(Me,[...X!=null&&E.value!=null?hv({[X]:E.value}).map(([Ie,Qe])=>pt(xo,pv({features:io.Hidden,key:Ie,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:xe,disabled:ne,name:Ie,value:Qe}))):[],xt({theirProps:{...n,...gi(Ee,["by","defaultValue","immediate","modelValue","multiple","nullable","onUpdate:modelValue","virtual"])},ourProps:{},slot:ke,slots:t,attrs:n,name:"Combobox"})])}}}),SH=ge({name:"ComboboxLabel",props:{as:{type:[Object,String],default:"label"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n}){var r;let o=(r=e.id)!=null?r:`headlessui-combobox-label-${qt()}`,i=yi("ComboboxLabel");function l(){var a;(a=de(i.inputRef))==null||a.focus({preventScroll:!0})}return()=>{let a={open:i.comboboxState.value===0,disabled:i.disabled.value},{...c}=e,d={id:o,ref:i.labelRef,onClick:l};return xt({ourProps:d,theirProps:c,slot:a,attrs:t,slots:n,name:"ComboboxLabel"})}}}),hT=ge({name:"ComboboxButton",props:{as:{type:[Object,String],default:"button"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){var o;let i=(o=e.id)!=null?o:`headlessui-combobox-button-${qt()}`,l=yi("ComboboxButton");r({el:l.buttonRef,$el:l.buttonRef});function a(p){l.disabled.value||(l.comboboxState.value===0?l.closeCombobox():(p.preventDefault(),l.openCombobox()),sn(()=>{var h;return(h=de(l.inputRef))==null?void 0:h.focus({preventScroll:!0})}))}function c(p){switch(p.key){case at.ArrowDown:p.preventDefault(),p.stopPropagation(),l.comboboxState.value===1&&l.openCombobox(),sn(()=>{var h;return(h=l.inputRef.value)==null?void 0:h.focus({preventScroll:!0})});return;case at.ArrowUp:p.preventDefault(),p.stopPropagation(),l.comboboxState.value===1&&(l.openCombobox(),sn(()=>{l.value.value||l.goToOption(Ct.Last)})),sn(()=>{var h;return(h=l.inputRef.value)==null?void 0:h.focus({preventScroll:!0})});return;case at.Escape:if(l.comboboxState.value!==0)return;p.preventDefault(),l.optionsRef.value&&!l.optionsPropsRef.value.static&&p.stopPropagation(),l.closeCombobox(),sn(()=>{var h;return(h=l.inputRef.value)==null?void 0:h.focus({preventScroll:!0})});return}}let d=af(fe(()=>({as:e.as,type:t.type})),l.buttonRef);return()=>{var p,h;let v={open:l.comboboxState.value===0,disabled:l.disabled.value,value:l.value.value},{...y}=e,b={ref:l.buttonRef,id:i,type:d.value,tabindex:"-1","aria-haspopup":"listbox","aria-controls":(p=de(l.optionsRef))==null?void 0:p.id,"aria-expanded":l.comboboxState.value===0,"aria-labelledby":l.labelRef.value?[(h=de(l.labelRef))==null?void 0:h.id,i].join(" "):void 0,disabled:l.disabled.value===!0?!0:void 0,onKeydown:c,onClick:a};return xt({ourProps:b,theirProps:y,slot:v,attrs:t,slots:n,name:"ComboboxButton"})}}}),mT=ge({name:"ComboboxInput",props:{as:{type:[Object,String],default:"input"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},displayValue:{type:Function},defaultValue:{type:String,default:void 0},id:{type:String,default:null}},emits:{change:e=>!0},setup(e,{emit:t,attrs:n,slots:r,expose:o}){var i;let l=(i=e.id)!=null?i:`headlessui-combobox-input-${qt()}`,a=yi("ComboboxInput"),c=fe(()=>Kr(de(a.inputRef))),d={value:!1};o({el:a.inputRef,$el:a.inputRef});function p(){a.change(null);let $=de(a.optionsRef);$&&($.scrollTop=0),a.goToOption(Ct.Nothing)}let h=fe(()=>{var $;let P=a.value.value;return de(a.inputRef)?typeof e.displayValue<"u"&&P!==void 0?($=e.displayValue(P))!=null?$:"":typeof P=="string"?P:"":""});wt(()=>{Ut([h,a.comboboxState,c],([$,P],[R,k])=>{if(d.value)return;let W=de(a.inputRef);W&&((k===0&&P===1||$!==R)&&(W.value=$),requestAnimationFrame(()=>{var U;if(d.value||!W||((U=c.value)==null?void 0:U.activeElement)!==W)return;let{selectionStart:j,selectionEnd:G}=W;Math.abs((G??0)-(j??0))===0&&j===0&&W.setSelectionRange(W.value.length,W.value.length)}))},{immediate:!0}),Ut([a.comboboxState],([$],[P])=>{if($===0&&P===1){if(d.value)return;let R=de(a.inputRef);if(!R)return;let k=R.value,{selectionStart:W,selectionEnd:U,selectionDirection:j}=R;R.value="",R.value=k,j!==null?R.setSelectionRange(W,U,j):R.setSelectionRange(W,U)}})});let v=$e(!1);function y(){v.value=!0}function b(){xs().nextFrame(()=>{v.value=!1})}let S=QV();function T($){switch(d.value=!0,S(()=>{d.value=!1}),$.key){case at.Enter:if(d.value=!1,a.comboboxState.value!==0||v.value)return;if($.preventDefault(),$.stopPropagation(),a.activeOptionIndex.value===null){a.closeCombobox();return}a.selectActiveOption(),a.mode.value===0&&a.closeCombobox();break;case at.ArrowDown:return d.value=!1,$.preventDefault(),$.stopPropagation(),kt(a.comboboxState.value,{0:()=>a.goToOption(Ct.Next),1:()=>a.openCombobox()});case at.ArrowUp:return d.value=!1,$.preventDefault(),$.stopPropagation(),kt(a.comboboxState.value,{0:()=>a.goToOption(Ct.Previous),1:()=>{a.openCombobox(),sn(()=>{a.value.value||a.goToOption(Ct.Last)})}});case at.Home:if($.shiftKey)break;return d.value=!1,$.preventDefault(),$.stopPropagation(),a.goToOption(Ct.First);case at.PageUp:return d.value=!1,$.preventDefault(),$.stopPropagation(),a.goToOption(Ct.First);case at.End:if($.shiftKey)break;return d.value=!1,$.preventDefault(),$.stopPropagation(),a.goToOption(Ct.Last);case at.PageDown:return d.value=!1,$.preventDefault(),$.stopPropagation(),a.goToOption(Ct.Last);case at.Escape:if(d.value=!1,a.comboboxState.value!==0)return;$.preventDefault(),a.optionsRef.value&&!a.optionsPropsRef.value.static&&$.stopPropagation(),a.nullable.value&&a.mode.value===0&&a.value.value===null&&p(),a.closeCombobox();break;case at.Tab:if(d.value=!1,a.comboboxState.value!==0)return;a.mode.value===0&&a.activationTrigger.value!==1&&a.selectActiveOption(),a.closeCombobox();break}}function C($){t("change",$),a.nullable.value&&a.mode.value===0&&$.target.value===""&&p(),a.openCombobox()}function w($){var P,R,k;let W=(P=$.relatedTarget)!=null?P:Ho.find(U=>U!==$.currentTarget);if(d.value=!1,!((R=de(a.optionsRef))!=null&&R.contains(W))&&!((k=de(a.buttonRef))!=null&&k.contains(W))&&a.comboboxState.value===0)return $.preventDefault(),a.mode.value===0&&(a.nullable.value&&a.value.value===null?p():a.activationTrigger.value!==1&&a.selectActiveOption()),a.closeCombobox()}function E($){var P,R,k;let W=(P=$.relatedTarget)!=null?P:Ho.find(U=>U!==$.currentTarget);(R=de(a.buttonRef))!=null&&R.contains(W)||(k=de(a.optionsRef))!=null&&k.contains(W)||a.disabled.value||a.immediate.value&&a.comboboxState.value!==0&&(a.openCombobox(),xs().nextFrame(()=>{a.setActivationTrigger(1)}))}let O=fe(()=>{var $,P,R,k;return(k=(R=(P=e.defaultValue)!=null?P:a.defaultValue.value!==void 0?($=e.displayValue)==null?void 0:$.call(e,a.defaultValue.value):null)!=null?R:a.defaultValue.value)!=null?k:""});return()=>{var $,P,R,k,W,U,j;let G={open:a.comboboxState.value===0},{displayValue:X,onChange:ne,...xe}=e,Ee={"aria-controls":($=a.optionsRef.value)==null?void 0:$.id,"aria-expanded":a.comboboxState.value===0,"aria-activedescendant":a.activeOptionIndex.value===null?void 0:a.virtual.value?(P=a.options.value.find(ke=>!a.virtual.value.disabled(ke.dataRef.value)&&a.compare(ke.dataRef.value,a.virtual.value.options[a.activeOptionIndex.value])))==null?void 0:P.id:(R=a.options.value[a.activeOptionIndex.value])==null?void 0:R.id,"aria-labelledby":(U=(k=de(a.labelRef))==null?void 0:k.id)!=null?U:(W=de(a.buttonRef))==null?void 0:W.id,"aria-autocomplete":"list",id:l,onCompositionstart:y,onCompositionend:b,onKeydown:T,onInput:C,onFocus:E,onBlur:w,role:"combobox",type:(j=n.type)!=null?j:"text",tabIndex:0,ref:a.inputRef,defaultValue:O.value,disabled:a.disabled.value===!0?!0:void 0};return xt({ourProps:Ee,theirProps:xe,slot:G,attrs:n,slots:r,features:ar.RenderStrategy|ar.Static,name:"ComboboxInput"})}}}),gT=ge({name:"ComboboxOptions",props:{as:{type:[Object,String],default:"ul"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},hold:{type:[Boolean],default:!1}},setup(e,{attrs:t,slots:n,expose:r}){let o=yi("ComboboxOptions"),i=`headlessui-combobox-options-${qt()}`;r({el:o.optionsRef,$el:o.optionsRef}),Vt(()=>{o.optionsPropsRef.value.static=e.static}),Vt(()=>{o.optionsPropsRef.value.hold=e.hold});let l=vi(),a=fe(()=>l!==null?(l.value&Lt.Open)===Lt.Open:o.comboboxState.value===0);cH({container:fe(()=>de(o.optionsRef)),enabled:fe(()=>o.comboboxState.value===0),accept(d){return d.getAttribute("role")==="option"?NodeFilter.FILTER_REJECT:d.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(d){d.setAttribute("role","none")}});function c(d){d.preventDefault()}return()=>{var d,p,h;let v={open:o.comboboxState.value===0},y={"aria-labelledby":(h=(d=de(o.labelRef))==null?void 0:d.id)!=null?h:(p=de(o.buttonRef))==null?void 0:p.id,id:i,ref:o.optionsRef,role:"listbox","aria-multiselectable":o.mode.value===1?!0:void 0,onMousedown:c},b=gi(e,["hold"]);return xt({ourProps:y,theirProps:b,slot:v,attrs:t,slots:o.virtual.value&&o.comboboxState.value===0?{...n,default:()=>[pt(wH,{},n.default)]}:n,features:ar.RenderStrategy|ar.Static,visible:a.value,name:"ComboboxOptions"})}}}),vT=ge({name:"ComboboxOption",props:{as:{type:[Object,String],default:"li"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1},order:{type:[Number],default:null}},setup(e,{slots:t,attrs:n,expose:r}){let o=yi("ComboboxOption"),i=`headlessui-combobox-option-${qt()}`,l=$e(null),a=fe(()=>e.disabled);r({el:l,$el:l});let c=fe(()=>{var w;return o.virtual.value?o.activeOptionIndex.value===o.calculateIndex(e.value):o.activeOptionIndex.value===null?!1:((w=o.options.value[o.activeOptionIndex.value])==null?void 0:w.id)===i}),d=fe(()=>o.isSelected(e.value)),p=Ft(fT,null),h=fe(()=>({disabled:e.disabled,value:e.value,domRef:l,order:fe(()=>e.order)}));wt(()=>o.registerOption(i,h)),en(()=>o.unregisterOption(i,c.value)),Vt(()=>{let w=de(l);w&&(p==null||p.value.measureElement(w))}),Vt(()=>{o.comboboxState.value===0&&c.value&&(o.virtual.value||o.activationTrigger.value!==0&&sn(()=>{var w,E;return(E=(w=de(l))==null?void 0:w.scrollIntoView)==null?void 0:E.call(w,{block:"nearest"})}))});function v(w){w.preventDefault(),w.button===aT.Left&&(a.value||(o.selectOption(i),nT()||requestAnimationFrame(()=>{var E;return(E=de(o.inputRef))==null?void 0:E.focus({preventScroll:!0})}),o.mode.value===0&&o.closeCombobox()))}function y(){var w;if(e.disabled||(w=o.virtual.value)!=null&&w.disabled(e.value))return o.goToOption(Ct.Nothing);let E=o.calculateIndex(e.value);o.goToOption(Ct.Specific,E)}let b=oT();function S(w){b.update(w)}function T(w){var E;if(!b.wasMoved(w)||e.disabled||(E=o.virtual.value)!=null&&E.disabled(e.value)||c.value)return;let O=o.calculateIndex(e.value);o.goToOption(Ct.Specific,O,0)}function C(w){var E;b.wasMoved(w)&&(e.disabled||(E=o.virtual.value)!=null&&E.disabled(e.value)||c.value&&(o.optionsPropsRef.value.hold||o.goToOption(Ct.Nothing)))}return()=>{let{disabled:w}=e,E={active:c.value,selected:d.value,disabled:w},O={id:i,ref:l,role:"option",tabIndex:w===!0?void 0:-1,"aria-disabled":w===!0?!0:void 0,"aria-selected":d.value,disabled:void 0,onMousedown:v,onFocus:y,onPointerenter:S,onMouseenter:S,onPointermove:T,onMousemove:T,onPointerleave:C,onMouseleave:C},$=gi(e,["order","value"]);return xt({ourProps:O,theirProps:$,slot:E,attrs:n,slots:t,name:"ComboboxOption"})}}});function mv(e,t,n,r){Xa.isServer||Vt(o=>{e=e??window,e.addEventListener(t,n,r),o(()=>e.removeEventListener(t,n,r))})}var yr=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(yr||{});function gv(){let e=$e(0);return rT("keydown",t=>{t.key==="Tab"&&(e.value=t.shiftKey?1:0)}),e}function yT(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let n of e.value){let r=de(n);r instanceof HTMLElement&&t.add(r)}return t}var _T=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(_T||{});let Ul=Object.assign(ge({name:"FocusTrap",props:{as:{type:[Object,String],default:"div"},initialFocus:{type:Object,default:null},features:{type:Number,default:30},containers:{type:[Object,Function],default:$e(new Set)}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:r}){let o=$e(null);r({el:o,$el:o});let i=fe(()=>Kr(o)),l=$e(!1);wt(()=>l.value=!0),en(()=>l.value=!1),$H({ownerDocument:i},fe(()=>l.value&&!!(e.features&16)));let a=xH({ownerDocument:i,container:o,initialFocus:fe(()=>e.initialFocus)},fe(()=>l.value&&!!(e.features&2)));TH({ownerDocument:i,container:o,containers:e.containers,previousActiveElement:a},fe(()=>l.value&&!!(e.features&8)));let c=gv();function d(y){let b=de(o);b&&(S=>S())(()=>{kt(c.value,{[yr.Forwards]:()=>{to(b,Mn.First,{skipElements:[y.relatedTarget]})},[yr.Backwards]:()=>{to(b,Mn.Last,{skipElements:[y.relatedTarget]})}})})}let p=$e(!1);function h(y){y.key==="Tab"&&(p.value=!0,requestAnimationFrame(()=>{p.value=!1}))}function v(y){if(!l.value)return;let b=yT(e.containers);de(o)instanceof HTMLElement&&b.add(de(o));let S=y.relatedTarget;S instanceof HTMLElement&&S.dataset.headlessuiFocusGuard!=="true"&&(bT(b,S)||(p.value?to(de(o),kt(c.value,{[yr.Forwards]:()=>Mn.Next,[yr.Backwards]:()=>Mn.Previous})|Mn.WrapAround,{relativeTo:y.target}):y.target instanceof HTMLElement&&si(y.target)))}return()=>{let y={},b={ref:o,onKeydown:h,onFocusout:v},{features:S,initialFocus:T,containers:C,...w}=e;return pt(Me,[!!(S&4)&&pt(xo,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:d,features:io.Focusable}),xt({ourProps:b,theirProps:{...t,...w},slot:y,attrs:t,slots:n,name:"FocusTrap"}),!!(S&4)&&pt(xo,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:d,features:io.Focusable})])}}}),{features:_T});function EH(e){let t=$e(Ho.slice());return Ut([e],([n],[r])=>{r===!0&&n===!1?cv(()=>{t.value.splice(0)}):r===!1&&n===!0&&(t.value=Ho.slice())},{flush:"post"}),()=>{var n;return(n=t.value.find(r=>r!=null&&r.isConnected))!=null?n:null}}function $H({ownerDocument:e},t){let n=EH(t);wt(()=>{Vt(()=>{var r,o;t.value||((r=e.value)==null?void 0:r.activeElement)===((o=e.value)==null?void 0:o.body)&&si(n())},{flush:"post"})}),en(()=>{t.value&&si(n())})}function xH({ownerDocument:e,container:t,initialFocus:n},r){let o=$e(null),i=$e(!1);return wt(()=>i.value=!0),en(()=>i.value=!1),wt(()=>{Ut([t,n,r],(l,a)=>{if(l.every((d,p)=>(a==null?void 0:a[p])===d)||!r.value)return;let c=de(t);c&&cv(()=>{var d,p;if(!i.value)return;let h=de(n),v=(d=e.value)==null?void 0:d.activeElement;if(h){if(h===v){o.value=v;return}}else if(c.contains(v)){o.value=v;return}h?si(h):to(c,Mn.First|Mn.NoScroll)===Ca.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),o.value=(p=e.value)==null?void 0:p.activeElement})},{immediate:!0,flush:"post"})}),o}function TH({ownerDocument:e,container:t,containers:n,previousActiveElement:r},o){var i;mv((i=e.value)==null?void 0:i.defaultView,"focus",l=>{if(!o.value)return;let a=yT(n);de(t)instanceof HTMLElement&&a.add(de(t));let c=r.value;if(!c)return;let d=l.target;d&&d instanceof HTMLElement?bT(a,d)?(r.value=d,si(d)):(l.preventDefault(),l.stopPropagation(),si(c)):si(r.value)},!0)}function bT(e,t){for(let n of e)if(n.contains(t))return!0;return!1}function CH(e){let t=gd(e.getSnapshot());return en(e.subscribe(()=>{t.value=e.getSnapshot()})),t}function OH(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(o){return r.add(o),()=>r.delete(o)},dispatch(o,...i){let l=t[o].call(n,...i);l&&(n=l,r.forEach(a=>a()))}}}function AH(){let e;return{before({doc:t}){var n;let r=t.documentElement;e=((n=t.defaultView)!=null?n:window).innerWidth-r.clientWidth},after({doc:t,d:n}){let r=t.documentElement,o=r.clientWidth-r.offsetWidth,i=e-o;n.style(r,"paddingRight",`${i}px`)}}}function kH(){return tT()?{before({doc:e,d:t,meta:n}){function r(o){return n.containers.flatMap(i=>i()).some(i=>i.contains(o))}t.microTask(()=>{var o;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let a=xs();a.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>a.dispose()))}let i=(o=window.scrollY)!=null?o:window.pageYOffset,l=null;t.addEventListener(e,"click",a=>{if(a.target instanceof HTMLElement)try{let c=a.target.closest("a");if(!c)return;let{hash:d}=new URL(c.href),p=e.querySelector(d);p&&!r(p)&&(l=p)}catch{}},!0),t.addEventListener(e,"touchstart",a=>{if(a.target instanceof HTMLElement)if(r(a.target)){let c=a.target;for(;c.parentElement&&r(c.parentElement);)c=c.parentElement;t.style(c,"overscrollBehavior","contain")}else t.style(a.target,"touchAction","none")}),t.addEventListener(e,"touchmove",a=>{if(a.target instanceof HTMLElement){if(a.target.tagName==="INPUT")return;if(r(a.target)){let c=a.target;for(;c.parentElement&&c.dataset.headlessuiPortal!==""&&!(c.scrollHeight>c.clientHeight||c.scrollWidth>c.clientWidth);)c=c.parentElement;c.dataset.headlessuiPortal===""&&a.preventDefault()}else a.preventDefault()}},{passive:!1}),t.add(()=>{var a;let c=(a=window.scrollY)!=null?a:window.pageYOffset;i!==c&&window.scrollTo(0,i),l&&l.isConnected&&(l.scrollIntoView({block:"nearest"}),l=null)})})}}:{}}function IH(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function PH(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let Js=OH(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:xs(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:PH(n)},o=[kH(),AH(),IH()];o.forEach(({before:i})=>i==null?void 0:i(r)),o.forEach(({after:i})=>i==null?void 0:i(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});Js.subscribe(()=>{let e=Js.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let r=t.get(n.doc)==="hidden",o=n.count!==0;(o&&!r||!o&&r)&&Js.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&Js.dispatch("TEARDOWN",n)}});function RH(e,t,n){let r=CH(Js),o=fe(()=>{let i=e.value?r.value.get(e.value):void 0;return i?i.count>0:!1});return Ut([e,t],([i,l],[a],c)=>{if(!i||!l)return;Js.dispatch("PUSH",i,n);let d=!1;c(()=>{d||(Js.dispatch("POP",a??i,n),d=!0)})},{immediate:!0}),o}let ih=new Map,Bl=new Map;function mb(e,t=$e(!0)){Vt(n=>{var r;if(!t.value)return;let o=de(e);if(!o)return;n(function(){var l;if(!o)return;let a=(l=Bl.get(o))!=null?l:1;if(a===1?Bl.delete(o):Bl.set(o,a-1),a!==1)return;let c=ih.get(o);c&&(c["aria-hidden"]===null?o.removeAttribute("aria-hidden"):o.setAttribute("aria-hidden",c["aria-hidden"]),o.inert=c.inert,ih.delete(o))});let i=(r=Bl.get(o))!=null?r:0;Bl.set(o,i+1),i===0&&(ih.set(o,{"aria-hidden":o.getAttribute("aria-hidden"),inert:o.inert}),o.setAttribute("aria-hidden","true"),o.inert=!0)})}function wT({defaultContainers:e=[],portals:t,mainTreeNodeRef:n}={}){let r=$e(null),o=Kr(r);function i(){var l,a,c;let d=[];for(let p of e)p!==null&&(p instanceof HTMLElement?d.push(p):"value"in p&&p.value instanceof HTMLElement&&d.push(p.value));if(t!=null&&t.value)for(let p of t.value)d.push(p);for(let p of(l=o==null?void 0:o.querySelectorAll("html > *, body > *"))!=null?l:[])p!==document.body&&p!==document.head&&p instanceof HTMLElement&&p.id!=="headlessui-portal-root"&&(p.contains(de(r))||p.contains((c=(a=de(r))==null?void 0:a.getRootNode())==null?void 0:c.host)||d.some(h=>p.contains(h))||d.push(p));return d}return{resolveContainers:i,contains(l){return i().some(a=>a.contains(l))},mainTreeNodeRef:r,MainTreeNode(){return n!=null?null:pt(xo,{features:io.Hidden,ref:r})}}}function LH(){let e=$e(null);return{mainTreeNodeRef:e,MainTreeNode(){return pt(xo,{features:io.Hidden,ref:e})}}}let ST=Symbol("ForcePortalRootContext");function FH(){return Ft(ST,!1)}let im=ge({name:"ForcePortalRoot",props:{as:{type:[Object,String],default:"template"},force:{type:Boolean,default:!1}},setup(e,{slots:t,attrs:n}){return Qt(ST,e.force),()=>{let{force:r,...o}=e;return xt({theirProps:o,ourProps:{},slot:{},slots:t,attrs:n,name:"ForcePortalRoot"})}}}),ET=Symbol("StackContext");var lm=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(lm||{});function NH(){return Ft(ET,()=>{})}function MH({type:e,enabled:t,element:n,onUpdate:r}){let o=NH();function i(...l){r==null||r(...l),o(...l)}wt(()=>{Ut(t,(l,a)=>{l?i(0,e,n):a===!0&&i(1,e,n)},{immediate:!0,flush:"sync"})}),en(()=>{t.value&&i(1,e,n)}),Qt(ET,i)}let $T=Symbol("DescriptionContext");function DH(){let e=Ft($T,null);if(e===null)throw new Error("Missing parent");return e}function xT({slot:e=$e({}),name:t="Description",props:n={}}={}){let r=$e([]);function o(i){return r.value.push(i),()=>{let l=r.value.indexOf(i);l!==-1&&r.value.splice(l,1)}}return Qt($T,{register:o,slot:e,name:t,props:n}),fe(()=>r.value.length>0?r.value.join(" "):void 0)}ge({name:"Description",props:{as:{type:[Object,String],default:"p"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n}){var r;let o=(r=e.id)!=null?r:`headlessui-description-${qt()}`,i=DH();return wt(()=>en(i.register(o))),()=>{let{name:l="Description",slot:a=$e({}),props:c={}}=i,{...d}=e,p={...Object.entries(c).reduce((h,[v,y])=>Object.assign(h,{[v]:vn(y)}),{}),id:o};return xt({ourProps:p,theirProps:d,slot:a.value,attrs:t,slots:n,name:l})}}});function UH(e){let t=Kr(e);if(!t){if(e===null)return null;throw new Error(`[Headless UI]: Cannot find ownerDocument for contextElement: ${e}`)}let n=t.getElementById("headlessui-portal-root");if(n)return n;let r=t.createElement("div");return r.setAttribute("id","headlessui-portal-root"),t.body.appendChild(r)}const am=new WeakMap;function BH(e){var t;return(t=am.get(e))!=null?t:0}function gb(e,t){let n=t(BH(e));return n<=0?am.delete(e):am.set(e,n),n}let TT=ge({name:"Portal",props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:n}){let r=$e(null),o=fe(()=>Kr(r)),i=FH(),l=Ft(OT,null),a=$e(i===!0||l==null?UH(r.value):l.resolveTarget());a.value&&gb(a.value,v=>v+1);let c=$e(!1);wt(()=>{c.value=!0}),Vt(()=>{i||l!=null&&(a.value=l.resolveTarget())});let d=Ft(um,null),p=!1,h=Jo();return Ut(r,()=>{if(p||!d)return;let v=de(r);v&&(en(d.register(v),h),p=!0)}),en(()=>{var v,y;let b=(v=o.value)==null?void 0:v.getElementById("headlessui-portal-root");!b||a.value!==b||gb(a.value,S=>S-1)||a.value.children.length>0||(y=a.value.parentElement)==null||y.removeChild(a.value)}),()=>{if(!c.value||a.value===null)return null;let v={ref:r,"data-headlessui-portal":""};return pt(jw,{to:a.value},xt({ourProps:v,theirProps:e,slot:{},attrs:n,slots:t,name:"Portal"}))}}}),um=Symbol("PortalParentContext");function CT(){let e=Ft(um,null),t=$e([]);function n(i){return t.value.push(i),e&&e.register(i),()=>r(i)}function r(i){let l=t.value.indexOf(i);l!==-1&&t.value.splice(l,1),e&&e.unregister(i)}let o={register:n,unregister:r,portals:t};return[t,ge({name:"PortalWrapper",setup(i,{slots:l}){return Qt(um,o),()=>{var a;return(a=l.default)==null?void 0:a.call(l)}}})]}let OT=Symbol("PortalGroupContext"),jH=ge({name:"PortalGroup",props:{as:{type:[Object,String],default:"template"},target:{type:Object,default:null}},setup(e,{attrs:t,slots:n}){let r=Ts({resolveTarget(){return e.target}});return Qt(OT,r),()=>{let{target:o,...i}=e;return xt({theirProps:i,ourProps:{},slot:{},attrs:t,slots:n,name:"PortalGroup"})}}});var VH=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(VH||{});let cm=Symbol("DialogContext");function Ya(e){let t=Ft(cm,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Ya),n}return t}let cc="DC8F892D-2EBD-447C-A4C8-A03058436FF4",HH=ge({name:"Dialog",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},open:{type:[Boolean,String],default:cc},initialFocus:{type:Object,default:null},id:{type:String,default:null},role:{type:String,default:"dialog"}},emits:{close:e=>!0},setup(e,{emit:t,attrs:n,slots:r,expose:o}){var i,l;let a=(i=e.id)!=null?i:`headlessui-dialog-${qt()}`,c=$e(!1);wt(()=>{c.value=!0});let d=!1,p=fe(()=>e.role==="dialog"||e.role==="alertdialog"?e.role:(d||(d=!0,console.warn(`Invalid role [${p}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")),h=$e(0),v=vi(),y=fe(()=>e.open===cc&&v!==null?(v.value&Lt.Open)===Lt.Open:e.open),b=$e(null),S=fe(()=>Kr(b));if(o({el:b,$el:b}),!(e.open!==cc||v!==null))throw new Error("You forgot to provide an `open` prop to the `Dialog`.");if(typeof y.value!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${y.value===cc?void 0:e.open}`);let T=fe(()=>c.value&&y.value?0:1),C=fe(()=>T.value===0),w=fe(()=>h.value>1),E=Ft(cm,null)!==null,[O,$]=CT(),{resolveContainers:P,mainTreeNodeRef:R,MainTreeNode:k}=wT({portals:O,defaultContainers:[fe(()=>{var De;return(De=ke.panelRef.value)!=null?De:b.value})]}),W=fe(()=>w.value?"parent":"leaf"),U=fe(()=>v!==null?(v.value&Lt.Closing)===Lt.Closing:!1),j=fe(()=>E||U.value?!1:C.value),G=fe(()=>{var De,Xe,Q;return(Q=Array.from((Xe=(De=S.value)==null?void 0:De.querySelectorAll("body > *"))!=null?Xe:[]).find(ce=>ce.id==="headlessui-portal-root"?!1:ce.contains(de(R))&&ce instanceof HTMLElement))!=null?Q:null});mb(G,j);let X=fe(()=>w.value?!0:C.value),ne=fe(()=>{var De,Xe,Q;return(Q=Array.from((Xe=(De=S.value)==null?void 0:De.querySelectorAll("[data-headlessui-portal]"))!=null?Xe:[]).find(ce=>ce.contains(de(R))&&ce instanceof HTMLElement))!=null?Q:null});mb(ne,X),MH({type:"Dialog",enabled:fe(()=>T.value===0),element:b,onUpdate:(De,Xe)=>{if(Xe==="Dialog")return kt(De,{[lm.Add]:()=>h.value+=1,[lm.Remove]:()=>h.value-=1})}});let xe=xT({name:"DialogDescription",slot:fe(()=>({open:y.value}))}),Ee=$e(null),ke={titleId:Ee,panelRef:$e(null),dialogState:T,setTitleId(De){Ee.value!==De&&(Ee.value=De)},close(){t("close",!1)}};Qt(cm,ke);let Ie=fe(()=>!(!C.value||w.value));lf(P,(De,Xe)=>{De.preventDefault(),ke.close(),sn(()=>Xe==null?void 0:Xe.focus())},Ie);let Qe=fe(()=>!(w.value||T.value!==0));mv((l=S.value)==null?void 0:l.defaultView,"keydown",De=>{Qe.value&&(De.defaultPrevented||De.key===at.Escape&&(De.preventDefault(),De.stopPropagation(),ke.close()))});let ht=fe(()=>!(U.value||T.value!==0||E));return RH(S,ht,De=>{var Xe;return{containers:[...(Xe=De.containers)!=null?Xe:[],P]}}),Vt(De=>{if(T.value!==0)return;let Xe=de(b);if(!Xe)return;let Q=new ResizeObserver(ce=>{for(let ve of ce){let Ce=ve.target.getBoundingClientRect();Ce.x===0&&Ce.y===0&&Ce.width===0&&Ce.height===0&&ke.close()}});Q.observe(Xe),De(()=>Q.disconnect())}),()=>{let{open:De,initialFocus:Xe,...Q}=e,ce={...n,ref:b,id:a,role:p.value,"aria-modal":T.value===0?!0:void 0,"aria-labelledby":Ee.value,"aria-describedby":xe.value},ve={open:T.value===0};return pt(im,{force:!0},()=>[pt(TT,()=>pt(jH,{target:b.value},()=>pt(im,{force:!1},()=>pt(Ul,{initialFocus:Xe,containers:P,features:C.value?kt(W.value,{parent:Ul.features.RestoreFocus,leaf:Ul.features.All&~Ul.features.FocusLock}):Ul.features.None},()=>pt($,{},()=>xt({ourProps:ce,theirProps:{...Q,...n},slot:ve,attrs:n,slots:r,visible:T.value===0,features:ar.RenderStrategy|ar.Static,name:"Dialog"})))))),pt(k)])}}}),zH=ge({name:"DialogOverlay",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n}){var r;let o=(r=e.id)!=null?r:`headlessui-dialog-overlay-${qt()}`,i=Ya("DialogOverlay");function l(a){a.target===a.currentTarget&&(a.preventDefault(),a.stopPropagation(),i.close())}return()=>{let{...a}=e;return xt({ourProps:{id:o,"aria-hidden":!0,onClick:l},theirProps:a,slot:{open:i.dialogState.value===0},attrs:t,slots:n,name:"DialogOverlay"})}}});ge({name:"DialogBackdrop",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:null}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:r}){var o;let i=(o=e.id)!=null?o:`headlessui-dialog-backdrop-${qt()}`,l=Ya("DialogBackdrop"),a=$e(null);return r({el:a,$el:a}),wt(()=>{if(l.panelRef.value===null)throw new Error("A <DialogBackdrop /> component is being used, but a <DialogPanel /> component is missing.")}),()=>{let{...c}=e,d={id:i,ref:a,"aria-hidden":!0};return pt(im,{force:!0},()=>pt(TT,()=>xt({ourProps:d,theirProps:{...t,...c},slot:{open:l.dialogState.value===0},attrs:t,slots:n,name:"DialogBackdrop"})))}}});ge({name:"DialogPanel",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){var o;let i=(o=e.id)!=null?o:`headlessui-dialog-panel-${qt()}`,l=Ya("DialogPanel");r({el:l.panelRef,$el:l.panelRef});function a(c){c.stopPropagation()}return()=>{let{...c}=e,d={id:i,ref:l.panelRef,onClick:a};return xt({ourProps:d,theirProps:c,slot:{open:l.dialogState.value===0},attrs:t,slots:n,name:"DialogPanel"})}}});let WH=ge({name:"DialogTitle",props:{as:{type:[Object,String],default:"h2"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n}){var r;let o=(r=e.id)!=null?r:`headlessui-dialog-title-${qt()}`,i=Ya("DialogTitle");return wt(()=>{i.setTitleId(o),en(()=>i.setTitleId(null))}),()=>{let{...l}=e;return xt({ourProps:{id:o},theirProps:l,slot:{open:i.dialogState.value===0},attrs:t,slots:n,name:"DialogTitle"})}}}),vb=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function yb(e){var t,n;let r=(t=e.innerText)!=null?t:"",o=e.cloneNode(!0);if(!(o instanceof HTMLElement))return r;let i=!1;for(let a of o.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))a.remove(),i=!0;let l=i?(n=o.innerText)!=null?n:"":r;return vb.test(l)&&(l=l.replace(vb,"")),l}function qH(e){let t=e.getAttribute("aria-label");if(typeof t=="string")return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let r=n.split(" ").map(o=>{let i=document.getElementById(o);if(i){let l=i.getAttribute("aria-label");return typeof l=="string"?l.trim():yb(i).trim()}return null}).filter(Boolean);if(r.length>0)return r.join(", ")}return yb(e).trim()}function KH(e){let t=$e(""),n=$e("");return()=>{let r=de(e);if(!r)return"";let o=r.innerText;if(t.value===o)return n.value;let i=qH(r).trim().toLowerCase();return t.value=o,n.value=i,i}}function GH(e,t){return e===t}var XH=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(XH||{}),YH=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(YH||{}),JH=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(JH||{});function ZH(e){requestAnimationFrame(()=>requestAnimationFrame(e))}let AT=Symbol("ListboxContext");function Ja(e){let t=Ft(AT,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Ja),n}return t}let vv=ge({name:"Listbox",emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:"template"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],default:()=>GH},horizontal:{type:[Boolean],default:!1},modelValue:{type:[Object,String,Number,Boolean],default:void 0},defaultValue:{type:[Object,String,Number,Boolean],default:void 0},form:{type:String,optional:!0},name:{type:String,optional:!0},multiple:{type:[Boolean],default:!1}},inheritAttrs:!1,setup(e,{slots:t,attrs:n,emit:r}){let o=$e(1),i=$e(null),l=$e(null),a=$e(null),c=$e([]),d=$e(""),p=$e(null),h=$e(1);function v(E=O=>O){let O=p.value!==null?c.value[p.value]:null,$=fv(E(c.value.slice()),R=>de(R.dataRef.domRef)),P=O?$.indexOf(O):null;return P===-1&&(P=null),{options:$,activeOptionIndex:P}}let y=fe(()=>e.multiple?1:0),[b,S]=uv(fe(()=>e.modelValue),E=>r("update:modelValue",E),fe(()=>e.defaultValue)),T=fe(()=>b.value===void 0?kt(y.value,{1:[],0:void 0}):b.value),C={listboxState:o,value:T,mode:y,compare(E,O){if(typeof e.by=="string"){let $=e.by;return(E==null?void 0:E[$])===(O==null?void 0:O[$])}return e.by(E,O)},orientation:fe(()=>e.horizontal?"horizontal":"vertical"),labelRef:i,buttonRef:l,optionsRef:a,disabled:fe(()=>e.disabled),options:c,searchQuery:d,activeOptionIndex:p,activationTrigger:h,closeListbox(){e.disabled||o.value!==1&&(o.value=1,p.value=null)},openListbox(){e.disabled||o.value!==0&&(o.value=0)},goToOption(E,O,$){if(e.disabled||o.value===1)return;let P=v(),R=sm(E===Ct.Specific?{focus:Ct.Specific,id:O}:{focus:E},{resolveItems:()=>P.options,resolveActiveIndex:()=>P.activeOptionIndex,resolveId:k=>k.id,resolveDisabled:k=>k.dataRef.disabled});d.value="",p.value=R,h.value=$??1,c.value=P.options},search(E){if(e.disabled||o.value===1)return;let O=d.value!==""?0:1;d.value+=E.toLowerCase();let $=(p.value!==null?c.value.slice(p.value+O).concat(c.value.slice(0,p.value+O)):c.value).find(R=>R.dataRef.textValue.startsWith(d.value)&&!R.dataRef.disabled),P=$?c.value.indexOf($):-1;P===-1||P===p.value||(p.value=P,h.value=1)},clearSearch(){e.disabled||o.value!==1&&d.value!==""&&(d.value="")},registerOption(E,O){let $=v(P=>[...P,{id:E,dataRef:O}]);c.value=$.options,p.value=$.activeOptionIndex},unregisterOption(E){let O=v($=>{let P=$.findIndex(R=>R.id===E);return P!==-1&&$.splice(P,1),$});c.value=O.options,p.value=O.activeOptionIndex,h.value=1},theirOnChange(E){e.disabled||S(E)},select(E){e.disabled||S(kt(y.value,{0:()=>E,1:()=>{let O=He(C.value.value).slice(),$=He(E),P=O.findIndex(R=>C.compare($,He(R)));return P===-1?O.push($):O.splice(P,1),O}}))}};lf([l,a],(E,O)=>{var $;C.closeListbox(),dv(O,sf.Loose)||(E.preventDefault(),($=de(l))==null||$.focus())},fe(()=>o.value===0)),Qt(AT,C),uf(fe(()=>kt(o.value,{0:Lt.Open,1:Lt.Closed})));let w=fe(()=>{var E;return(E=de(l))==null?void 0:E.closest("form")});return wt(()=>{Ut([w],()=>{if(!w.value||e.defaultValue===void 0)return;function E(){C.theirOnChange(e.defaultValue)}return w.value.addEventListener("reset",E),()=>{var O;(O=w.value)==null||O.removeEventListener("reset",E)}},{immediate:!0})}),()=>{let{name:E,modelValue:O,disabled:$,form:P,...R}=e,k={open:o.value===0,disabled:$,value:T.value};return pt(Me,[...E!=null&&T.value!=null?hv({[E]:T.value}).map(([W,U])=>pt(xo,pv({features:io.Hidden,key:W,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:P,disabled:$,name:W,value:U}))):[],xt({ourProps:{},theirProps:{...n,...gi(R,["defaultValue","onUpdate:modelValue","horizontal","multiple","by"])},slot:k,slots:t,attrs:n,name:"Listbox"})])}}}),yv=ge({name:"ListboxLabel",props:{as:{type:[Object,String],default:"label"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n}){var r;let o=(r=e.id)!=null?r:`headlessui-listbox-label-${qt()}`,i=Ja("ListboxLabel");function l(){var a;(a=de(i.buttonRef))==null||a.focus({preventScroll:!0})}return()=>{let a={open:i.listboxState.value===0,disabled:i.disabled.value},{...c}=e,d={id:o,ref:i.labelRef,onClick:l};return xt({ourProps:d,theirProps:c,slot:a,attrs:t,slots:n,name:"ListboxLabel"})}}}),_v=ge({name:"ListboxButton",props:{as:{type:[Object,String],default:"button"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){var o;let i=(o=e.id)!=null?o:`headlessui-listbox-button-${qt()}`,l=Ja("ListboxButton");r({el:l.buttonRef,$el:l.buttonRef});function a(h){switch(h.key){case at.Space:case at.Enter:case at.ArrowDown:h.preventDefault(),l.openListbox(),sn(()=>{var v;(v=de(l.optionsRef))==null||v.focus({preventScroll:!0}),l.value.value||l.goToOption(Ct.First)});break;case at.ArrowUp:h.preventDefault(),l.openListbox(),sn(()=>{var v;(v=de(l.optionsRef))==null||v.focus({preventScroll:!0}),l.value.value||l.goToOption(Ct.Last)});break}}function c(h){switch(h.key){case at.Space:h.preventDefault();break}}function d(h){l.disabled.value||(l.listboxState.value===0?(l.closeListbox(),sn(()=>{var v;return(v=de(l.buttonRef))==null?void 0:v.focus({preventScroll:!0})})):(h.preventDefault(),l.openListbox(),ZH(()=>{var v;return(v=de(l.optionsRef))==null?void 0:v.focus({preventScroll:!0})})))}let p=af(fe(()=>({as:e.as,type:t.type})),l.buttonRef);return()=>{var h,v;let y={open:l.listboxState.value===0,disabled:l.disabled.value,value:l.value.value},{...b}=e,S={ref:l.buttonRef,id:i,type:p.value,"aria-haspopup":"listbox","aria-controls":(h=de(l.optionsRef))==null?void 0:h.id,"aria-expanded":l.listboxState.value===0,"aria-labelledby":l.labelRef.value?[(v=de(l.labelRef))==null?void 0:v.id,i].join(" "):void 0,disabled:l.disabled.value===!0?!0:void 0,onKeydown:a,onKeyup:c,onClick:d};return xt({ourProps:S,theirProps:b,slot:y,attrs:t,slots:n,name:"ListboxButton"})}}}),bv=ge({name:"ListboxOptions",props:{as:{type:[Object,String],default:"ul"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){var o;let i=(o=e.id)!=null?o:`headlessui-listbox-options-${qt()}`,l=Ja("ListboxOptions"),a=$e(null);r({el:l.optionsRef,$el:l.optionsRef});function c(h){switch(a.value&&clearTimeout(a.value),h.key){case at.Space:if(l.searchQuery.value!=="")return h.preventDefault(),h.stopPropagation(),l.search(h.key);case at.Enter:if(h.preventDefault(),h.stopPropagation(),l.activeOptionIndex.value!==null){let v=l.options.value[l.activeOptionIndex.value];l.select(v.dataRef.value)}l.mode.value===0&&(l.closeListbox(),sn(()=>{var v;return(v=de(l.buttonRef))==null?void 0:v.focus({preventScroll:!0})}));break;case kt(l.orientation.value,{vertical:at.ArrowDown,horizontal:at.ArrowRight}):return h.preventDefault(),h.stopPropagation(),l.goToOption(Ct.Next);case kt(l.orientation.value,{vertical:at.ArrowUp,horizontal:at.ArrowLeft}):return h.preventDefault(),h.stopPropagation(),l.goToOption(Ct.Previous);case at.Home:case at.PageUp:return h.preventDefault(),h.stopPropagation(),l.goToOption(Ct.First);case at.End:case at.PageDown:return h.preventDefault(),h.stopPropagation(),l.goToOption(Ct.Last);case at.Escape:h.preventDefault(),h.stopPropagation(),l.closeListbox(),sn(()=>{var v;return(v=de(l.buttonRef))==null?void 0:v.focus({preventScroll:!0})});break;case at.Tab:h.preventDefault(),h.stopPropagation();break;default:h.key.length===1&&(l.search(h.key),a.value=setTimeout(()=>l.clearSearch(),350));break}}let d=vi(),p=fe(()=>d!==null?(d.value&Lt.Open)===Lt.Open:l.listboxState.value===0);return()=>{var h,v;let y={open:l.listboxState.value===0},{...b}=e,S={"aria-activedescendant":l.activeOptionIndex.value===null||(h=l.options.value[l.activeOptionIndex.value])==null?void 0:h.id,"aria-multiselectable":l.mode.value===1?!0:void 0,"aria-labelledby":(v=de(l.buttonRef))==null?void 0:v.id,"aria-orientation":l.orientation.value,id:i,onKeydown:c,role:"listbox",tabIndex:0,ref:l.optionsRef};return xt({ourProps:S,theirProps:b,slot:y,attrs:t,slots:n,features:ar.RenderStrategy|ar.Static,visible:p.value,name:"ListboxOptions"})}}}),wv=ge({name:"ListboxOption",props:{as:{type:[Object,String],default:"li"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1},id:{type:String,default:null}},setup(e,{slots:t,attrs:n,expose:r}){var o;let i=(o=e.id)!=null?o:`headlessui-listbox-option-${qt()}`,l=Ja("ListboxOption"),a=$e(null);r({el:a,$el:a});let c=fe(()=>l.activeOptionIndex.value!==null?l.options.value[l.activeOptionIndex.value].id===i:!1),d=fe(()=>kt(l.mode.value,{0:()=>l.compare(He(l.value.value),He(e.value)),1:()=>He(l.value.value).some(E=>l.compare(He(E),He(e.value)))})),p=fe(()=>kt(l.mode.value,{1:()=>{var E;let O=He(l.value.value);return((E=l.options.value.find($=>O.some(P=>l.compare(He(P),He($.dataRef.value)))))==null?void 0:E.id)===i},0:()=>d.value})),h=KH(a),v=fe(()=>({disabled:e.disabled,value:e.value,get textValue(){return h()},domRef:a}));wt(()=>l.registerOption(i,v)),en(()=>l.unregisterOption(i)),wt(()=>{Ut([l.listboxState,d],()=>{l.listboxState.value===0&&d.value&&kt(l.mode.value,{1:()=>{p.value&&l.goToOption(Ct.Specific,i)},0:()=>{l.goToOption(Ct.Specific,i)}})},{immediate:!0})}),Vt(()=>{l.listboxState.value===0&&c.value&&l.activationTrigger.value!==0&&sn(()=>{var E,O;return(O=(E=de(a))==null?void 0:E.scrollIntoView)==null?void 0:O.call(E,{block:"nearest"})})});function y(E){if(e.disabled)return E.preventDefault();l.select(e.value),l.mode.value===0&&(l.closeListbox(),sn(()=>{var O;return(O=de(l.buttonRef))==null?void 0:O.focus({preventScroll:!0})}))}function b(){if(e.disabled)return l.goToOption(Ct.Nothing);l.goToOption(Ct.Specific,i)}let S=oT();function T(E){S.update(E)}function C(E){S.wasMoved(E)&&(e.disabled||c.value||l.goToOption(Ct.Specific,i,0))}function w(E){S.wasMoved(E)&&(e.disabled||c.value&&l.goToOption(Ct.Nothing))}return()=>{let{disabled:E}=e,O={active:c.value,selected:d.value,disabled:E},{value:$,disabled:P,...R}=e,k={id:i,ref:a,role:"option",tabIndex:E===!0?void 0:-1,"aria-disabled":E===!0?!0:void 0,"aria-selected":d.value,disabled:void 0,onClick:y,onFocus:b,onPointerenter:T,onMouseenter:T,onPointermove:C,onMousemove:C,onPointerleave:w,onMouseleave:w};return xt({ourProps:k,theirProps:R,slot:O,attrs:n,slots:t,name:"ListboxOption"})}}});var QH=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(QH||{});let kT=Symbol("PopoverContext");function cf(e){let t=Ft(kT,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <${LT.name} /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,cf),n}return t}let IT=Symbol("PopoverGroupContext");function PT(){return Ft(IT,null)}let RT=Symbol("PopoverPanelContext");function ez(){return Ft(RT,null)}let LT=ge({name:"Popover",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:n,expose:r}){var o;let i=$e(null);r({el:i,$el:i});let l=$e(1),a=$e(null),c=$e(null),d=$e(null),p=$e(null),h=fe(()=>Kr(i)),v=fe(()=>{var $,P;if(!de(a)||!de(p))return!1;for(let X of document.querySelectorAll("body > *"))if(Number(X==null?void 0:X.contains(de(a)))^Number(X==null?void 0:X.contains(de(p))))return!0;let R=of(),k=R.indexOf(de(a)),W=(k+R.length-1)%R.length,U=(k+1)%R.length,j=R[W],G=R[U];return!(($=de(p))!=null&&$.contains(j))&&!((P=de(p))!=null&&P.contains(G))}),y={popoverState:l,buttonId:$e(null),panelId:$e(null),panel:p,button:a,isPortalled:v,beforePanelSentinel:c,afterPanelSentinel:d,togglePopover(){l.value=kt(l.value,{0:1,1:0})},closePopover(){l.value!==1&&(l.value=1)},close($){y.closePopover();let P=$?$ instanceof HTMLElement?$:$.value instanceof HTMLElement?de($):de(y.button):de(y.button);P==null||P.focus()}};Qt(kT,y),uf(fe(()=>kt(l.value,{0:Lt.Open,1:Lt.Closed})));let b={buttonId:y.buttonId,panelId:y.panelId,close(){y.closePopover()}},S=PT(),T=S==null?void 0:S.registerPopover,[C,w]=CT(),E=wT({mainTreeNodeRef:S==null?void 0:S.mainTreeNodeRef,portals:C,defaultContainers:[a,p]});function O(){var $,P,R,k;return(k=S==null?void 0:S.isFocusWithinPopoverGroup())!=null?k:(($=h.value)==null?void 0:$.activeElement)&&(((P=de(a))==null?void 0:P.contains(h.value.activeElement))||((R=de(p))==null?void 0:R.contains(h.value.activeElement)))}return Vt(()=>T==null?void 0:T(b)),mv((o=h.value)==null?void 0:o.defaultView,"focus",$=>{var P,R;$.target!==window&&$.target instanceof HTMLElement&&l.value===0&&(O()||a&&p&&(E.contains($.target)||(P=de(y.beforePanelSentinel))!=null&&P.contains($.target)||(R=de(y.afterPanelSentinel))!=null&&R.contains($.target)||y.closePopover()))},!0),lf(E.resolveContainers,($,P)=>{var R;y.closePopover(),dv(P,sf.Loose)||($.preventDefault(),(R=de(a))==null||R.focus())},fe(()=>l.value===0)),()=>{let $={open:l.value===0,close:y.close};return pt(Me,[pt(w,{},()=>xt({theirProps:{...e,...n},ourProps:{ref:i},slot:$,slots:t,attrs:n,name:"Popover"})),pt(E.MainTreeNode)])}}}),tz=ge({name:"PopoverButton",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1},id:{type:String,default:null}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:r}){var o;let i=(o=e.id)!=null?o:`headlessui-popover-button-${qt()}`,l=cf("PopoverButton"),a=fe(()=>Kr(l.button));r({el:l.button,$el:l.button}),wt(()=>{l.buttonId.value=i}),en(()=>{l.buttonId.value=null});let c=PT(),d=c==null?void 0:c.closeOthers,p=ez(),h=fe(()=>p===null?!1:p.value===l.panelId.value),v=$e(null),y=`headlessui-focus-sentinel-${qt()}`;h.value||Vt(()=>{l.button.value=de(v)});let b=af(fe(()=>({as:e.as,type:t.type})),v);function S($){var P,R,k,W,U;if(h.value){if(l.popoverState.value===1)return;switch($.key){case at.Space:case at.Enter:$.preventDefault(),(R=(P=$.target).click)==null||R.call(P),l.closePopover(),(k=de(l.button))==null||k.focus();break}}else switch($.key){case at.Space:case at.Enter:$.preventDefault(),$.stopPropagation(),l.popoverState.value===1&&(d==null||d(l.buttonId.value)),l.togglePopover();break;case at.Escape:if(l.popoverState.value!==0)return d==null?void 0:d(l.buttonId.value);if(!de(l.button)||(W=a.value)!=null&&W.activeElement&&!((U=de(l.button))!=null&&U.contains(a.value.activeElement)))return;$.preventDefault(),$.stopPropagation(),l.closePopover();break}}function T($){h.value||$.key===at.Space&&$.preventDefault()}function C($){var P,R;e.disabled||(h.value?(l.closePopover(),(P=de(l.button))==null||P.focus()):($.preventDefault(),$.stopPropagation(),l.popoverState.value===1&&(d==null||d(l.buttonId.value)),l.togglePopover(),(R=de(l.button))==null||R.focus()))}function w($){$.preventDefault(),$.stopPropagation()}let E=gv();function O(){let $=de(l.panel);if(!$)return;function P(){kt(E.value,{[yr.Forwards]:()=>to($,Mn.First),[yr.Backwards]:()=>to($,Mn.Last)})===Ca.Error&&to(of().filter(R=>R.dataset.headlessuiFocusGuard!=="true"),kt(E.value,{[yr.Forwards]:Mn.Next,[yr.Backwards]:Mn.Previous}),{relativeTo:de(l.button)})}P()}return()=>{let $=l.popoverState.value===0,P={open:$},{...R}=e,k=h.value?{ref:v,type:b.value,onKeydown:S,onClick:C}:{ref:v,id:i,type:b.value,"aria-expanded":l.popoverState.value===0,"aria-controls":de(l.panel)?l.panelId.value:void 0,disabled:e.disabled?!0:void 0,onKeydown:S,onKeyup:T,onClick:C,onMousedown:w};return pt(Me,[xt({ourProps:k,theirProps:{...t,...R},slot:P,attrs:t,slots:n,name:"PopoverButton"}),$&&!h.value&&l.isPortalled.value&&pt(xo,{id:y,features:io.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:O})])}}});ge({name:"PopoverOverlay",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0}},setup(e,{attrs:t,slots:n}){let r=cf("PopoverOverlay"),o=`headlessui-popover-overlay-${qt()}`,i=vi(),l=fe(()=>i!==null?(i.value&Lt.Open)===Lt.Open:r.popoverState.value===0);function a(){r.closePopover()}return()=>{let c={open:r.popoverState.value===0};return xt({ourProps:{id:o,"aria-hidden":!0,onClick:a},theirProps:e,slot:c,attrs:t,slots:n,features:ar.RenderStrategy|ar.Static,visible:l.value,name:"PopoverOverlay"})}}});let nz=ge({name:"PopoverPanel",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},focus:{type:Boolean,default:!1},id:{type:String,default:null}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:r}){var o;let i=(o=e.id)!=null?o:`headlessui-popover-panel-${qt()}`,{focus:l}=e,a=cf("PopoverPanel"),c=fe(()=>Kr(a.panel)),d=`headlessui-focus-sentinel-before-${qt()}`,p=`headlessui-focus-sentinel-after-${qt()}`;r({el:a.panel,$el:a.panel}),wt(()=>{a.panelId.value=i}),en(()=>{a.panelId.value=null}),Qt(RT,a.panelId),Vt(()=>{var w,E;if(!l||a.popoverState.value!==0||!a.panel)return;let O=(w=c.value)==null?void 0:w.activeElement;(E=de(a.panel))!=null&&E.contains(O)||to(de(a.panel),Mn.First)});let h=vi(),v=fe(()=>h!==null?(h.value&Lt.Open)===Lt.Open:a.popoverState.value===0);function y(w){var E,O;switch(w.key){case at.Escape:if(a.popoverState.value!==0||!de(a.panel)||c.value&&!((E=de(a.panel))!=null&&E.contains(c.value.activeElement)))return;w.preventDefault(),w.stopPropagation(),a.closePopover(),(O=de(a.button))==null||O.focus();break}}function b(w){var E,O,$,P,R;let k=w.relatedTarget;k&&de(a.panel)&&((E=de(a.panel))!=null&&E.contains(k)||(a.closePopover(),(($=(O=de(a.beforePanelSentinel))==null?void 0:O.contains)!=null&&$.call(O,k)||(R=(P=de(a.afterPanelSentinel))==null?void 0:P.contains)!=null&&R.call(P,k))&&k.focus({preventScroll:!0})))}let S=gv();function T(){let w=de(a.panel);if(!w)return;function E(){kt(S.value,{[yr.Forwards]:()=>{var O;to(w,Mn.First)===Ca.Error&&((O=de(a.afterPanelSentinel))==null||O.focus())},[yr.Backwards]:()=>{var O;(O=de(a.button))==null||O.focus({preventScroll:!0})}})}E()}function C(){let w=de(a.panel);if(!w)return;function E(){kt(S.value,{[yr.Forwards]:()=>{let O=de(a.button),$=de(a.panel);if(!O)return;let P=of(),R=P.indexOf(O),k=P.slice(0,R+1),W=[...P.slice(R+1),...k];for(let U of W.slice())if(U.dataset.headlessuiFocusGuard==="true"||$!=null&&$.contains(U)){let j=W.indexOf(U);j!==-1&&W.splice(j,1)}to(W,Mn.First,{sorted:!1})},[yr.Backwards]:()=>{var O;to(w,Mn.Previous)===Ca.Error&&((O=de(a.button))==null||O.focus())}})}E()}return()=>{let w={open:a.popoverState.value===0,close:a.close},{focus:E,...O}=e,$={ref:a.panel,id:i,onKeydown:y,onFocusout:l&&a.popoverState.value===0?b:void 0,tabIndex:-1};return xt({ourProps:$,theirProps:{...t,...O},attrs:t,slot:w,slots:{...n,default:(...P)=>{var R;return[pt(Me,[v.value&&a.isPortalled.value&&pt(xo,{id:d,ref:a.beforePanelSentinel,features:io.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:T}),(R=n.default)==null?void 0:R.call(n,...P),v.value&&a.isPortalled.value&&pt(xo,{id:p,ref:a.afterPanelSentinel,features:io.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:C})])]}},features:ar.RenderStrategy|ar.Static,visible:v.value,name:"PopoverPanel"})}}});ge({name:"PopoverGroup",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"}},setup(e,{attrs:t,slots:n,expose:r}){let o=$e(null),i=gd([]),l=fe(()=>Kr(o)),a=LH();r({el:o,$el:o});function c(v){let y=i.value.indexOf(v);y!==-1&&i.value.splice(y,1)}function d(v){return i.value.push(v),()=>{c(v)}}function p(){var v;let y=l.value;if(!y)return!1;let b=y.activeElement;return(v=de(o))!=null&&v.contains(b)?!0:i.value.some(S=>{var T,C;return((T=y.getElementById(S.buttonId.value))==null?void 0:T.contains(b))||((C=y.getElementById(S.panelId.value))==null?void 0:C.contains(b))})}function h(v){for(let y of i.value)y.buttonId.value!==v&&y.close()}return Qt(IT,{registerPopover:d,unregisterPopover:c,isFocusWithinPopoverGroup:p,closeOthers:h,mainTreeNodeRef:a.mainTreeNodeRef}),()=>pt(Me,[xt({ourProps:{ref:o},theirProps:{...e,...t},slot:{},attrs:t,slots:n,name:"PopoverGroup"}),pt(a.MainTreeNode)])}});let FT=Symbol("LabelContext");function NT(){let e=Ft(FT,null);if(e===null){let t=new Error("You used a <Label /> component, but it is not inside a parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,NT),t}return e}function rz({slot:e={},name:t="Label",props:n={}}={}){let r=$e([]);function o(i){return r.value.push(i),()=>{let l=r.value.indexOf(i);l!==-1&&r.value.splice(l,1)}}return Qt(FT,{register:o,slot:e,name:t,props:n}),fe(()=>r.value.length>0?r.value.join(" "):void 0)}let oz=ge({name:"Label",props:{as:{type:[Object,String],default:"label"},passive:{type:[Boolean],default:!1},id:{type:String,default:null}},setup(e,{slots:t,attrs:n}){var r;let o=(r=e.id)!=null?r:`headlessui-label-${qt()}`,i=NT();return wt(()=>en(i.register(o))),()=>{let{name:l="Label",slot:a={},props:c={}}=i,{passive:d,...p}=e,h={...Object.entries(c).reduce((v,[y,b])=>Object.assign(v,{[y]:vn(b)}),{}),id:o};return d&&(delete h.onClick,delete h.htmlFor,delete p.onClick),xt({ourProps:h,theirProps:p,slot:a,attrs:n,slots:t,name:l})}}}),MT=Symbol("GroupContext"),sz=ge({name:"SwitchGroup",props:{as:{type:[Object,String],default:"template"}},setup(e,{slots:t,attrs:n}){let r=$e(null),o=rz({name:"SwitchLabel",props:{htmlFor:fe(()=>{var l;return(l=r.value)==null?void 0:l.id}),onClick(l){r.value&&(l.currentTarget.tagName==="LABEL"&&l.preventDefault(),r.value.click(),r.value.focus({preventScroll:!0}))}}}),i=xT({name:"SwitchDescription"});return Qt(MT,{switchRef:r,labelledby:o,describedby:i}),()=>xt({theirProps:e,ourProps:{},slot:{},slots:t,attrs:n,name:"SwitchGroup"})}}),DT=ge({name:"Switch",emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:"button"},modelValue:{type:Boolean,default:void 0},defaultChecked:{type:Boolean,optional:!0},form:{type:String,optional:!0},name:{type:String,optional:!0},value:{type:String,optional:!0},id:{type:String,default:null},disabled:{type:Boolean,default:!1},tabIndex:{type:Number,default:0}},inheritAttrs:!1,setup(e,{emit:t,attrs:n,slots:r,expose:o}){var i;let l=(i=e.id)!=null?i:`headlessui-switch-${qt()}`,a=Ft(MT,null),[c,d]=uv(fe(()=>e.modelValue),w=>t("update:modelValue",w),fe(()=>e.defaultChecked));function p(){d(!c.value)}let h=$e(null),v=a===null?h:a.switchRef,y=af(fe(()=>({as:e.as,type:n.type})),v);o({el:v,$el:v});function b(w){w.preventDefault(),p()}function S(w){w.key===at.Space?(w.preventDefault(),p()):w.key===at.Enter&&mH(w.currentTarget)}function T(w){w.preventDefault()}let C=fe(()=>{var w,E;return(E=(w=de(v))==null?void 0:w.closest)==null?void 0:E.call(w,"form")});return wt(()=>{Ut([C],()=>{if(!C.value||e.defaultChecked===void 0)return;function w(){d(e.defaultChecked)}return C.value.addEventListener("reset",w),()=>{var E;(E=C.value)==null||E.removeEventListener("reset",w)}},{immediate:!0})}),()=>{let{name:w,value:E,form:O,tabIndex:$,...P}=e,R={checked:c.value},k={id:l,ref:v,role:"switch",type:y.value,tabIndex:$===-1?0:$,"aria-checked":c.value,"aria-labelledby":a==null?void 0:a.labelledby.value,"aria-describedby":a==null?void 0:a.describedby.value,onClick:b,onKeyup:S,onKeypress:T};return pt(Me,[w!=null&&c.value!=null?pt(xo,pv({features:io.Hidden,as:"input",type:"checkbox",hidden:!0,readOnly:!0,checked:c.value,form:O,disabled:P.disabled,name:w,value:E})):null,xt({ourProps:k,theirProps:{...n,...gi(P,["modelValue","defaultChecked"])},slot:R,attrs:n,slots:r,name:"Switch"})])}}}),iz=oz;function lz(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function lh(e,...t){e&&t.length>0&&e.classList.add(...t)}function dc(e,...t){e&&t.length>0&&e.classList.remove(...t)}var dm=(e=>(e.Finished="finished",e.Cancelled="cancelled",e))(dm||{});function az(e,t){let n=xs();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:o}=getComputedStyle(e),[i,l]=[r,o].map(a=>{let[c=0]=a.split(",").filter(Boolean).map(d=>d.includes("ms")?parseFloat(d):parseFloat(d)*1e3).sort((d,p)=>p-d);return c});return i!==0?n.setTimeout(()=>t("finished"),i+l):t("finished"),n.add(()=>t("cancelled")),n.dispose}function _b(e,t,n,r,o,i){let l=xs(),a=i!==void 0?lz(i):()=>{};return dc(e,...o),lh(e,...t,...n),l.nextFrame(()=>{dc(e,...n),lh(e,...r),l.add(az(e,c=>(dc(e,...r,...t),lh(e,...o),a(c))))}),l.add(()=>dc(e,...t,...n,...r,...o)),l.add(()=>a("cancelled")),l.dispose}function Hs(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let Sv=Symbol("TransitionContext");var uz=(e=>(e.Visible="visible",e.Hidden="hidden",e))(uz||{});function cz(){return Ft(Sv,null)!==null}function dz(){let e=Ft(Sv,null);if(e===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return e}function fz(){let e=Ft(Ev,null);if(e===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return e}let Ev=Symbol("NestingContext");function df(e){return"children"in e?df(e.children):e.value.filter(({state:t})=>t==="visible").length>0}function UT(e){let t=$e([]),n=$e(!1);wt(()=>n.value=!0),en(()=>n.value=!1);function r(i,l=gs.Hidden){let a=t.value.findIndex(({id:c})=>c===i);a!==-1&&(kt(l,{[gs.Unmount](){t.value.splice(a,1)},[gs.Hidden](){t.value[a].state="hidden"}}),!df(t)&&n.value&&(e==null||e()))}function o(i){let l=t.value.find(({id:a})=>a===i);return l?l.state!=="visible"&&(l.state="visible"):t.value.push({id:i,state:"visible"}),()=>r(i,gs.Unmount)}return{children:t,register:o,unregister:r}}let BT=ar.RenderStrategy,jT=ge({props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(e,{emit:t,attrs:n,slots:r,expose:o}){let i=$e(0);function l(){i.value|=Lt.Opening,t("beforeEnter")}function a(){i.value&=~Lt.Opening,t("afterEnter")}function c(){i.value|=Lt.Closing,t("beforeLeave")}function d(){i.value&=~Lt.Closing,t("afterLeave")}if(!cz()&&fH())return()=>pt(VT,{...e,onBeforeEnter:l,onAfterEnter:a,onBeforeLeave:c,onAfterLeave:d},r);let p=$e(null),h=fe(()=>e.unmount?gs.Unmount:gs.Hidden);o({el:p,$el:p});let{show:v,appear:y}=dz(),{register:b,unregister:S}=fz(),T=$e(v.value?"visible":"hidden"),C={value:!0},w=qt(),E={value:!1},O=UT(()=>{!E.value&&T.value!=="hidden"&&(T.value="hidden",S(w),d())});wt(()=>{let X=b(w);en(X)}),Vt(()=>{if(h.value===gs.Hidden&&w){if(v.value&&T.value!=="visible"){T.value="visible";return}kt(T.value,{hidden:()=>S(w),visible:()=>b(w)})}});let $=Hs(e.enter),P=Hs(e.enterFrom),R=Hs(e.enterTo),k=Hs(e.entered),W=Hs(e.leave),U=Hs(e.leaveFrom),j=Hs(e.leaveTo);wt(()=>{Vt(()=>{if(T.value==="visible"){let X=de(p);if(X instanceof Comment&&X.data==="")throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}})});function G(X){let ne=C.value&&!y.value,xe=de(p);!xe||!(xe instanceof HTMLElement)||ne||(E.value=!0,v.value&&l(),v.value||c(),X(v.value?_b(xe,$,P,R,k,Ee=>{E.value=!1,Ee===dm.Finished&&a()}):_b(xe,W,U,j,k,Ee=>{E.value=!1,Ee===dm.Finished&&(df(O)||(T.value="hidden",S(w),d()))})))}return wt(()=>{Ut([v],(X,ne,xe)=>{G(xe),C.value=!1},{immediate:!0})}),Qt(Ev,O),uf(fe(()=>kt(T.value,{visible:Lt.Open,hidden:Lt.Closed})|i.value)),()=>{let{appear:X,show:ne,enter:xe,enterFrom:Ee,enterTo:ke,entered:Ie,leave:Qe,leaveFrom:ht,leaveTo:De,...Xe}=e,Q={ref:p},ce={...Xe,...y.value&&v.value&&Xa.isServer?{class:gt([n.class,Xe.class,...$,...P])}:{}};return xt({theirProps:ce,ourProps:Q,slot:{},slots:r,attrs:n,features:BT,visible:T.value==="visible",name:"TransitionChild"})}}}),pz=jT,VT=ge({inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(e,{emit:t,attrs:n,slots:r}){let o=vi(),i=fe(()=>e.show===null&&o!==null?(o.value&Lt.Open)===Lt.Open:e.show);Vt(()=>{if(![!0,!1].includes(i.value))throw new Error('A <Transition /> is used but it is missing a `:show="true | false"` prop.')});let l=$e(i.value?"visible":"hidden"),a=UT(()=>{l.value="hidden"}),c=$e(!0),d={show:i,appear:fe(()=>e.appear||!c.value)};return wt(()=>{Vt(()=>{c.value=!1,i.value?l.value="visible":df(a)||(l.value="hidden")})}),Qt(Ev,a),Qt(Sv,d),()=>{let p=gi(e,["show","appear","unmount","onBeforeEnter","onBeforeLeave","onAfterEnter","onAfterLeave"]),h={unmount:e.unmount};return xt({ourProps:{...h,as:"template"},theirProps:{},slot:{},slots:{...r,default:()=>[pt(pz,{onBeforeEnter:()=>t("beforeEnter"),onAfterEnter:()=>t("afterEnter"),onBeforeLeave:()=>t("beforeLeave"),onAfterLeave:()=>t("afterLeave"),...n,...h,...p},r.default)]},attrs:{},features:BT,visible:l.value==="visible",name:"Transition"})}}});const hz=ge({components:{Dialog:HH,DialogOverlay:zH,TransitionChild:jT,TransitionRoot:VT,XIcon:ml},props:{open:{type:Boolean,default:!0},size:{type:String,default:"small"}},methods:{close(){this.$emit("close")}}}),mz={class:"fixed inset-0 overflow-y-auto font-sans",style:{"z-index":"10000"}},gz={class:"flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0"},vz=m("span",{class:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true"},"",-1),yz={class:"hidden sm:block absolute top-0 right-0 pt-4 pr-4"},_z=m("span",{class:"sr-only"},"Close",-1);function bz(e,t,n,r,o,i){const l=q("DialogOverlay"),a=q("TransitionChild"),c=q("XIcon"),d=q("Dialog"),p=q("TransitionRoot");return I(),Ye(p,{as:"template",show:e.open},{default:_e(()=>[z(d,{as:"div",onClose:t[1]||(t[1]=h=>e.close()),"data-client":"podlove"},{default:_e(()=>[m("div",mz,[m("div",gz,[z(a,{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"ease-in duration-200","leave-from":"opacity-100","leave-to":"opacity-0"},{default:_e(()=>[z(l,{class:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"})]),_:1}),vz,z(a,{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95","enter-to":"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200","leave-from":"opacity-100 translate-y-0 sm:scale-100","leave-to":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"},{default:_e(()=>[m("div",{class:gt(["relative inline-block align-bottom bg-white rounded-lg px-4 pt-5 pb-4 text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:w-full sm:p-6",{"sm:max-w-sm":e.size==="small","sm:max-w-md":e.size==="medium"}])},[m("div",yz,[m("button",{type:"button",class:"bg-white rounded-md text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",onClick:t[0]||(t[0]=h=>e.close())},[_z,z(c,{class:"h-6 w-6","aria-hidden":"true"})])]),yn(e.$slots,"default")],2)]),_:3})])])]),_:3})]),_:3},8,["show"])}const Za=Le(hz,[["render",bz]]),wz=ge({props:{variant:{type:String,default:"default"},size:{type:String,default:"medium"},disabled:{type:Boolean,default:!1}},computed:{variantClass(){switch(this.variant){case"default":return"focus:outline-none text-gray-700 bg-white border border-gray-300 hover:bg-gray-50 focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 disabled:bg-gray-100";case"primary":return"focus:ring-offset-2 text-white focus:ring-indigo-500 bg-indigo-600 hover:bg-indigo-700 disabled:bg-indigo-300";case"primary-disabled":return"focus:ring-offset-2 text-white focus:ring-indigo-500 bg-indigo-600 opacity-50 cursor-not-allowed";case"secondary":return"focus:ring-offset-2 text-indigo-700 focus:ring-indigo-500 bg-indigo-100 hover:bg-indigo-200 disabled:bg-indigo-50";case"secondary-disabled":return"focus:ring-offset-2 text-indigo-700 focus:ring-indigo-500 bg-indigo-100 disabled:bg-indigo-50 opacity-50 cursor-not-allowed";case"danger":return"bg-red-600 text-white hover:bg-red-700 focus:ring-2 focus:ring-offset-2 focus:ring-red-500 disabled:bg-red-300"}},sizeClass(){switch(this.size){case"small":return"px-2.5 py-1.5 text-xs font-medium rounded ";case"medium":return"px-3 py-2 text-sm leading-4 font-medium rounded-md";case"large":return"px-6 py-3 text-base font-medium rounded-md"}}}}),Sz=["disabled"];function Ez(e,t,n,r,o,i){return I(),F("button",{type:"button",class:gt(["inline-flex items-center focus:outline-none focus:ring-2 border border-transparent shadow-sm whitespace-nowrap disabled:opacity-75",[e.variantClass,e.sizeClass]]),disabled:e.disabled},[yn(e.$slots,"default")],10,Sz)}const Pn=Le(wz,[["render",Ez]]),$z=ge({components:{PodloveButton:Pn,Modal:Za,PencilIcon:Jx,XIcon:ml},setup(){return{state:ut({poster:B.episode.poster,episodePoster:B.episode.episodePoster,asset:B.settings.imageAsset}),dispatch:Ze().dispatch}},data(){return{modalOpen:!1,inputValue:null}},computed:{posterStyle(){const e=this.state.episodePoster||this.state.poster;return e===null?{}:{"background-image":`url(${e})`}}},methods:{openModal(){this.modalOpen=!0},closeModal(){this.modalOpen=!1},selectImage(){this.dispatch(kM())},updatePoster(e){const t=Y.get(e,["target","value"],null);this.dispatch(bt({prop:"episode_poster",value:t}))}}}),xz={class:"border-gray-200 border-b pb-2 px-4 -mx-6 mb-4"},Tz={class:"text-lg leading-6 font-medium text-gray-900"},Cz={class:"relative"},Oz=["value"],Az=["title"],kz={class:"mt-2 text-sm text-gray-500"},Iz={class:"mt-2 flex justify-end"},Pz={class:"block text-sm font-medium text-gray-700"},Rz={key:0,class:"absolute z-10 left-0 top-0 w-full h-full flex justify-center items-center bg-white bg-opacity-40 hover:opacity-0 text-gray-500 opacity-100"},Lz={key:1,class:"absolute z-10 left-0 top-0 w-full h-full flex flex-col justify-center items-center bg-white bg-opacity-50 text-gray-500 opacity-0 hover:opacity-100"},Fz={class:"w-full text-center"},Nz={class:"w-full text-center"},Mz={class:"w-full text-center"};function Dz(e,t,n,r,o,i){const l=q("x-icon"),a=q("podlove-button"),c=q("modal"),d=q("pencil-icon");return I(),F("div",null,[z(c,{size:"medium",open:e.modalOpen,onClose:t[3]||(t[3]=p=>e.closeModal())},{default:_e(()=>[m("div",xz,[m("h3",Tz,L(e.__("Episode Poster","podlove-podcasting-plugin-for-wordpress")),1)]),m("div",Cz,[m("input",{name:"episode-poster",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md pr-8",value:e.state.episodePoster,onChange:t[0]||(t[0]=p=>e.updatePoster(p))},null,40,Oz),m("button",{class:"absolute right-2 top-1/2 -mt-3 text-gray-400 hover:text-gray-700",title:e.__("Clear Input","podlove-podcasting-plugin-for-wordpress"),onClick:t[1]||(t[1]=p=>e.updatePoster(null))},[z(l,{class:"w-6 h-6"})],8,Az)]),m("p",kz,L(e.__("Enter URL or select image from media library. Apple/iTunes recommends 3000 x 3000 pixel JPG or PNG","podlove-podcasting-plugin-for-wordpress")),1),m("p",Iz,[z(a,{variant:"primary",onClick:t[2]||(t[2]=p=>e.closeModal())},{default:_e(()=>[Be(L(e.__("Use this URL","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})])]),_:1},8,["open"]),m("label",Pz,L(e.__("Poster","podlove-podcasting-plugin-for-wordpress")),1),m("div",{class:"border shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block relative w-44 h-44 sm:text-sm border-gray-300 rounded-md mt-1 overflow-hidden bg-cover bg-no-repeat bg-center",style:oo(e.posterStyle)},[e.state.asset==="manual"?(I(),F("div",Rz,[z(d,{class:"h-6 w-6","aria-hidden":"true"})])):Te("",!0),e.state.asset==="manual"?(I(),F("div",Lz,[z(a,{onClick:t[4]||(t[4]=p=>e.openModal()),class:"w-32 mb-2"},{default:_e(()=>[m("span",Fz,L(e.__("URL","podlove-podcasting-plugin-for-wordpress")),1)]),_:1}),z(a,{class:"w-32 text-center mb-2",onClick:t[5]||(t[5]=p=>e.selectImage())},{default:_e(()=>[m("span",Nz,L(e.__("Media","podlove-podcasting-plugin-for-wordpress")),1)]),_:1}),z(a,{variant:"danger",class:"w-32 text-center",disabled:e.state.episodePoster===null,onClick:t[6]||(t[6]=p=>e.updatePoster(null))},{default:_e(()=>[m("span",Mz,L(e.__("Reset","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["disabled"])])):Te("",!0)],4)])}const Uz=Le($z,[["render",Dz]]),Bz=ge({components:{Module:In},setup(){return{state:ut({number:B.episode.number}),dispatch:Ze().dispatch}},methods:{updateNumber(e){this.dispatch(bt({prop:"number",value:e.target.value}))}}}),jz={for:"episode-number",class:"block text-sm font-medium text-gray-700"},Vz={class:"mt-1 mb-1"},Hz=["value"],zz={class:"mt-2 text-sm text-gray-500"};function Wz(e,t,n,r,o,i){return I(),F("div",null,[m("label",jz,L(e.__("Number","podlove-podcasting-plugin-for-wordpress")),1),m("div",Vz,[m("input",{name:"episode-number",type:"number",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",value:e.state.number,onInput:t[0]||(t[0]=l=>e.updateNumber(l))},null,40,Hz)]),m("p",zz,L(e.__("An episode number (1, 2, 3 etc.)","podlove-podcasting-plugin-for-wordpress")),1)])}const qz=Le(Bz,[["render",Wz]]),Kz=ge({setup(){return{state:ut({explicit:B.episode.explicit}),dispatch:Ze().dispatch}},methods:{updateExplicit(e){this.dispatch(bt({prop:"explicit",value:e.target.checked}))}}}),Gz={class:"relative flex items-start"},Xz={class:"flex items-center h-5"},Yz=["checked"],Jz={class:"ml-3 text-sm"},Zz={for:"explicit-content",class:"font-medium text-gray-700"},Qz={class:"text-gray-500"};function eW(e,t,n,r,o,i){return I(),F("div",Gz,[m("div",Xz,[m("input",{id:"explicit-content",type:"checkbox",class:"focus:ring-indigo-500 h-4 w-4 text-indigo-600 border-gray-300 rounded",checked:e.state.explicit,onInput:t[0]||(t[0]=l=>e.updateExplicit(l))},null,40,Yz)]),m("div",Jz,[m("label",Zz,L(e.state.explicit?e.__("Explicit Content!","podlove-podcasting-plugin-for-wordpress"):e.__("Explicit Content?","podlove-podcasting-plugin-for-wordpress")),1),m("p",Qz,L(e.__("For example, profanity or content that may not be suitable for children","podlove-podcasting-plugin-for-wordpress")),1)])])}const tW=Le(Kz,[["render",eW]]),nW=ge({components:{Module:In},setup(){return{state:ut({title:B.episode.title,post_title:B.post.title}),dispatch:Ze().dispatch}},methods:{updateTitle(e){this.dispatch(bt({prop:"title",value:e.target.value}))}}}),rW={for:"episode-title",class:"block text-sm font-medium text-gray-700"},oW={class:"mt-1"},sW=["value","placeholder"],iW={class:"mt-2 text-sm text-gray-500"};function lW(e,t,n,r,o,i){return I(),F("div",null,[m("label",rW,L(e.__("Title","podlove-podcasting-plugin-for-wordpress")),1),m("div",oW,[m("input",{name:"episode-title",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",value:e.state.title,placeholder:e.state.post_title,onInput:t[0]||(t[0]=l=>e.updateTitle(l))},null,40,sW)]),m("p",iW,L(e.__("Clear, concise name for your episode. It is recommended to not include the podcast title, episode number, season number or date in this tag.","podlove-podcasting-plugin-for-wordpress")),1)])}const aW=Le(nW,[["render",lW]]),uW=ge({setup(){const e=ut({subtitle:B.episode.subtitle}),t=fe(()=>{var n;return 255-(((n=e==null?void 0:e.subtitle)==null?void 0:n.length)||"")});return{state:e,charactersLeft:t,dispatch:Ze().dispatch}},methods:{updateSubtitle(e){this.dispatch(bt({prop:"subtitle",value:e.target.value}))}}}),cW={for:"subtitle",class:"block text-sm font-medium text-gray-700"},dW={class:"mt-1"},fW=["value"],pW={class:"mt-2 text-sm text-gray-500 flex justify-between"};function hW(e,t,n,r,o,i){return I(),F("div",null,[m("label",cW,L(e.__("Subtitle","podlove-podcasting-plugin-for-wordpress")),1),m("div",dW,[m("textarea",{id:"subtitle",name:"subtitle",maxlength:"250",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 mt-1 block w-full sm:text-sm border border-gray-300 rounded-md resize-y",value:e.state.subtitle,onInput:t[0]||(t[0]=l=>e.updateSubtitle(l))},null,40,fW)]),m("p",pW,[m("span",null,L(e.__("Single sentence describing the episode.","podlove-podcasting-plugin-for-wordpress")),1),m("span",null,L(e.charactersLeft),1)])])}const mW=Le(uW,[["render",hW]]),gW=ge({setup(){const e=ut({summary:B.episode.summary}),t=fe(()=>{var n;return 4e3-(((n=e==null?void 0:e.summary)==null?void 0:n.length)||"")});return{state:e,charactersLeft:t,dispatch:Ze().dispatch}},methods:{updateSummary(e){this.dispatch(bt({prop:"summary",value:e.target.value}))}}}),vW={for:"summary",class:"block text-sm font-medium text-gray-700"},yW={class:"mt-1"},_W=["value"],bW={class:"mt-2 text-sm text-gray-500 flex justify-end"};function wW(e,t,n,r,o,i){return I(),F("div",null,[m("label",vW,L(e.__("Summary","podlove-podcasting-plugin-for-wordpress")),1),m("div",yW,[m("textarea",{id:"summary",name:"summary",maxlength:"4000",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 mt-1 block w-full sm:text-sm border border-gray-300 rounded-md resize-y",value:e.state.summary,onInput:t[0]||(t[0]=l=>e.updateSummary(l))},null,40,_W)]),m("p",bW,[m("span",null,L(e.charactersLeft),1)])])}const SW=Le(gW,[["render",wW]]),EW=ge({components:{Module:In},setup(){return{state:ut({type:B.episode.type}),dispatch:Ze().dispatch}},methods:{updateType(e){this.dispatch(bt({prop:"type",value:e.target.value}))}}}),$W={for:"episode-type",class:"block text-sm font-medium text-gray-700"},xW={class:"mt-1"},TW=["value"],CW={value:"full"},OW={value:"trailer"},AW={value:"bonus"},kW={class:"mt-2 text-sm text-gray-500"};function IW(e,t,n,r,o,i){return I(),F("div",null,[m("label",$W,L(e.__("Type","podlove-podcasting-plugin-for-wordpress")),1),m("div",xW,[m("select",{name:"episode-type",class:"block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm rounded-md",value:e.state.type,onInput:t[0]||(t[0]=l=>e.updateType(l))},[m("option",null,L(e.__("Please choose ...","podlove-podcasting-plugin-for-wordpress")),1),m("option",CW,L(e.__("full (complete content of an episode)","podlove-podcasting-plugin-for-wordpress")),1),m("option",OW,L(e.__("trailer (short, promotional piece of content that represents a preview of an episode)","podlove-podcasting-plugin-for-wordpress")),1),m("option",AW,L(e.__("bonus (extra content for an episode, for example behind the scenes information)","podlove-podcasting-plugin-for-wordpress")),1)],40,TW)]),m("p",kW,L(e.__("Episode type. May be used by podcast clients.","podlove-podcasting-plugin-for-wordpress")),1)])}const PW=Le(EW,[["render",IW]]),RW=ge({components:{Module:In,EpisodePoster:Uz,EpisodeNumber:qz,EpisodeContent:tW,EpisodeTitle:aW,EpisodeSubtitle:mW,EpisodeSummary:SW,EpisodeType:PW},setup(){return{state:ut({explicitContentEnabled:B.settings.enableEpisodeExplicit}),dispatch:Ze().dispatch}},created(){this.dispatch(Hd())}}),LW={class:"p-3"},FW={class:"flex justify-items-stretch mb-5"},NW={class:"mb-2 w-full"},MW={class:"flex mb-5"},DW={class:"mb-5"},UW={class:"mb-5"};function BW(e,t,n,r,o,i){const l=q("episode-poster"),a=q("episode-number"),c=q("episode-content"),d=q("episode-type"),p=q("episode-title"),h=q("episode-subtitle"),v=q("episode-summary"),y=q("module");return I(),Ye(y,{name:"description",title:e.__("Episode Description","podlove-podcasting-plugin-for-wordpress")},{default:_e(()=>[m("div",LW,[m("div",FW,[z(l,{class:"mr-5"}),m("div",NW,[m("div",MW,[z(a,{class:"w-full"}),e.state.explicitContentEnabled?(I(),Ye(c,{key:0,class:"ml-5 w-full"})):Te("",!0)]),z(d,{class:"w-full"})])]),m("div",DW,[z(p,{class:"w-full"})]),m("div",UW,[z(h,{class:"w-full"})]),m("div",null,[z(v,{class:"w-full"})])])]),_:1},8,["title"])}const jW=Le(RW,[["render",BW]]),VW=ge({data(){return{visible:!1}},props:{name:String},methods:{}}),HW=["data-tab"];function zW(e,t,n,r,o,i){return I(),F("div",{class:"hidden","data-tab":e.name},[yn(e.$slots,"default")],8,HW)}const HT=Le(VW,[["render",zW]]),WW=ge({data(){return{activeTab:"",tabs:[]}},props:{active:{type:String,default:null}},created(){var e,t;this.tabs=((t=(e=this.$slots).default)==null?void 0:t.call(e).map(n=>({name:Y.get(n,["props","name"]),title:Y.get(n,["props","title"])})))||[]},mounted(){this.active?this.toggleTab(this.active):this.toggleTab(Y.get(this.tabs,[0,"name"]))},methods:{toggleTab(e){this.activeTab=e,Array.from(this.$refs.tabs.children).forEach(t=>{t.dataset.tab===e?t.classList.remove("hidden"):t.classList.add("hidden")})}}}),qW={class:"block"},KW={class:"border-b border-gray-200"},GW={class:"-mb-px flex space-x-8 mx-2","aria-label":"Tabs"},XW=["onClick"],YW={ref:"tabs"};function JW(e,t,n,r,o,i){return I(),F("div",null,[m("div",qW,[m("div",KW,[m("nav",GW,[(I(!0),F(Me,null,Ot(e.tabs,l=>(I(),F("button",{onClick:a=>e.toggleTab(l.name),key:l.name,class:gt([l.name===e.activeTab?"border-indigo-500 text-indigo-600":"border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300","group inline-flex items-center py-4 px-1 border-b-2 font-medium text-sm"])},[m("span",null,L(l.title),1)],10,XW))),128))])])]),m("div",YW,[yn(e.$slots,"default")],512)])}const zT=Le(WW,[["render",JW]]),ZW=ge({components:{PodloveButton:Pn,PlusSmIcon:rf,BookmarkAltIcon:CV,UploadIcon:xV},setup(){return{state:ut({chapters:B.chapters.list,selected:B.chapters.selected,selectedIndex:B.chapters.selectedIndex,episodeDuration:B.episode.duration}),dispatch:Ze().dispatch}},computed:{selectedIndex(){return this.state.selectedIndex},episodeDuration(){return this.state.episodeDuration?Dt.fromString(this.state.episodeDuration).totalMs:0},chapters(){return this.state.chapters.reduce((e,t,n,r)=>{const o=Y.get(r,n+1),i=o===void 0;let l;i?l=this.episodeDuration?this.episodeDuration-(t.start||0):-1:l=(o.start||0)-(t.start||0);const a=l<=0?"Unknown":new Dt(l).prettyShort;return[...e,{index:n,title:t.title,start:t.start?new Dt(t.start).pretty:new Dt(0).pretty,image:t.image,duration:a}]},[])},hasChapterImages(){return this.chapters.reduce((e,t)=>e||!!t.image,!1)}},methods:{selectChapter(e){e===this.state.selectedIndex?this.dispatch(ms(null)):this.dispatch(ms(e))},updateChapter(e,t){const n=t.target.value;if(this.state.selectedIndex===null)return;let r;switch(e){case"start":r=Dt.fromString(n).totalMs;break;default:r=n}this.dispatch(_M({chapter:{[e]:r},index:this.state.selectedIndex}))},removeChapter(){this.dispatch(bM(this.state.selectedIndex))},async addChapter(){this.dispatch(wM()),this.dispatch(ms(this.state.chapters.length-1));const e=this.$refs.chaptersContainer;await sn(),e.scrollTo({top:e.scrollHeight-e.clientHeight,behavior:"smooth"})},formatTime(e){return new Dt(e).pretty},selectImage(){this.dispatch(xM())}}}),QW={key:0},eq={class:"md:flex p-2 sm:block"},tq={class:"w-full"},nq={class:"h-96 overflow-x-auto",ref:"chaptersContainer"},rq={class:"min-w-full divide-y divide-gray-200 mb-2"},oq={ref:"chapters"},sq=["onClick"],iq={key:0,class:"px-2 py-2 w-16"},lq=["src"],aq={class:"px-3 py-2 w-32 whitespace-nowrap text-sm font-medium text-gray-900 tabular-nums"},uq={class:"px-3 py-2 whitespace-nowrap text-sm text-gray-600"},cq={class:"px-3 py-2 whitespace-nowrap text-sm text-gray-600 text-right tabular-nums"},dq={key:0,class:"md:w-4/12 sm:w-full md:mx-4 md:my-2 mt-0"},fq={class:"mb-5 mt-2"},pq={for:"chapter-title",class:"block text-sm font-medium text-gray-700"},hq={class:"mt-1"},mq=["value"],gq={class:"mb-5"},vq={for:"chapter-href",class:"block text-sm font-medium text-gray-700"},yq={class:"text-xs"},_q={class:"mt-1"},bq=["value"],wq={class:"mb-5"},Sq={for:"chapter-start",class:"block text-sm font-medium text-gray-700"},Eq={class:"mt-1"},$q=["value"],xq={class:"mb-5"},Tq={for:"chapter-image",class:"block text-sm font-medium text-gray-700"},Cq={class:"text-xs"},Oq={class:"mt-1 relative"},Aq=["value"],kq=["title"],Iq={class:"mb-5 ml-1"},Pq={class:"mt-5 ml-5 pb-5"},Rq={key:1,class:"text-center h-96 flex items-center justify-center flex-col"},Lq={class:"mt-2 text-sm font-medium text-gray-900"},Fq={class:"mt-1 text-sm text-gray-500"},Nq={class:"mt-6"};function Mq(e,t,n,r,o,i){const l=q("upload-icon"),a=q("podlove-button"),c=q("plus-sm-icon"),d=q("bookmark-alt-icon");return e.chapters.length>0?(I(),F("div",QW,[m("div",eq,[m("div",tq,[m("div",nq,[m("table",rq,[m("tbody",oq,[(I(!0),F(Me,null,Ot(e.chapters,(p,h)=>(I(),F("tr",{onClick:v=>e.selectChapter(h),key:`chapter-${h}`,class:gt(["cursor-pointer",{"bg-indigo-100":e.selectedIndex===h,active:e.selectedIndex===h,"bg-white":h%2===0&&e.selectedIndex!==h,"bg-gray-50":h%2!==0&&e.selectedIndex!==h}])},[e.hasChapterImages?(I(),F("td",iq,[p!=null&&p.image?(I(),F("img",{key:0,class:"w-12 h-12 rounded",src:p==null?void 0:p.image},null,8,lq)):Te("",!0)])):Te("",!0),m("td",aq,L(p.start),1),m("td",uq,L(p.title),1),m("td",cq,L(p.duration),1)],10,sq))),128))],512)])],512)]),e.state.selected?(I(),F("div",dq,[m("div",fq,[m("label",pq,L(e.__("Title","podlove-podcasting-plugin-for-wordpress")),1),m("div",hq,[m("input",{name:"chapter-title",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",onChange:t[0]||(t[0]=p=>e.updateChapter("title",p)),value:e.state.selected.title},null,40,mq)])]),m("div",gq,[m("label",vq,[Be("Url "),m("span",yq,L(e.__("(optional)","podlove-podcasting-plugin-for-wordpress")),1)]),m("div",_q,[m("input",{name:"chapter-href",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",onChange:t[1]||(t[1]=p=>e.updateChapter("href",p)),value:e.state.selected.href},null,40,bq)])]),m("div",wq,[m("label",Sq,L(e.__("Start","podlove-podcasting-plugin-for-wordpress")),1),m("div",Eq,[m("input",{name:"chapter-title",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",onChange:t[2]||(t[2]=p=>e.updateChapter("start",p)),value:e.formatTime(e.state.selected.start)},null,40,$q)])]),m("div",xq,[m("label",Tq,[Be(L(e.__("Image","podlove-podcasting-plugin-for-wordpress"))+" ",1),m("span",Cq,L(e.__("(optional)","podlove-podcasting-plugin-for-wordpress")),1)]),m("div",Oq,[m("input",{name:"chapter-image",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",onChange:t[3]||(t[3]=p=>e.updateChapter("image",p)),value:e.state.selected.image},null,40,Aq),m("button",{onClick:t[4]||(t[4]=va(p=>e.selectImage(),["prevent"])),title:e.__("Select Chapter Image","podlove-podcasting-plugin-for-wordpress"),class:"absolute right-2 top-1/2 -mt-3 text-gray-400 hover:text-gray-700"},[z(l,{class:"w-6 h-6"})],8,kq)])]),m("div",Iq,[z(a,{variant:"danger",onClick:t[5]||(t[5]=p=>e.removeChapter())},{default:_e(()=>[Be(L(e.__("Delete Chapter","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})])])):Te("",!0)]),m("div",Pq,[z(a,{variant:"primary",onClick:t[6]||(t[6]=p=>e.addChapter())},{default:_e(()=>[z(c,{class:"-ml-0.5 mr-2 h-4 w-4","aria-hidden":"true"}),Be(" "+L(e.__("Add Chapter","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})])])):(I(),F("div",Rq,[z(d,{class:"mx-auto h-12 w-12 text-gray-400"}),m("h3",Lq,L(e.__("No chapters","podlove-podcasting-plugin-for-wordpress")),1),m("p",Fq,L(e.__("Get started by creating a new chapter.","podlove-podcasting-plugin-for-wordpress")),1),m("div",Nq,[z(a,{variant:"primary",onClick:t[7]||(t[7]=p=>e.addChapter()),class:"ml-1"},{default:_e(()=>[z(c,{class:"-ml-0.5 mr-2 h-4 w-4","aria-hidden":"true"}),Be(" "+L(e.__("Add Chapter","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})])]))}const Dq=Le(ZW,[["render",Mq]]);function fm(e,t,n){var r,o,i,l,a;t==null&&(t=100);function c(){var p=Date.now()-l;p<t&&p>=0?r=setTimeout(c,t-p):(r=null,n||(a=e.apply(i,o),i=o=null))}var d=function(){i=this,o=arguments,l=Date.now();var p=n&&!r;return r||(r=setTimeout(c,t)),p&&(a=e.apply(i,o),i=o=null),a};return d.clear=function(){r&&(clearTimeout(r),r=null)},d.flush=function(){r&&(a=e.apply(i,o),i=o=null,clearTimeout(r),r=null)},d}fm.debounce=fm;var ah=fm;function Uq(e,t,n){pn(e)?Ut(e,(r,o)=>{o==null||o.removeEventListener(t,n),r==null||r.addEventListener(t,n)}):wt(()=>{e.addEventListener(t,n)}),hi(()=>{var r;(r=vn(e))===null||r===void 0||r.removeEventListener(t,n)})}function Bq(e,t){const n="pointerdown";return typeof window>"u"||!window?void 0:Uq(window,n,o=>{const i=vn(e);i&&(i===o.target||o.composedPath().includes(i)||t(o))})}function jq(e,t,n){let r=null;const o=$e(!1);wt(()=>{(e.content!==void 0||n.value)&&(o.value=!0),r=new MutationObserver(i),r.observe(t.value,{childList:!0,subtree:!0})}),hi(()=>r.disconnect()),Ut(n,l=>{l?o.value=!0:o.value=!1});const i=()=>{e.content?o.value=!0:o.value=!1};return{hasContent:o}}function nl(e,t){var n=e.getBoundingClientRect(),r=1,o=1;return{width:n.width/r,height:n.height/o,top:n.top/o,right:n.right/r,bottom:n.bottom/o,left:n.left/r,x:n.left/r,y:n.top/o}}function po(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function $v(e){var t=po(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Oa(e){var t=po(e).Element;return e instanceof t||e instanceof Element}function Mr(e){var t=po(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function WT(e){if(typeof ShadowRoot>"u")return!1;var t=po(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Vq(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Hq(e){return e===po(e)||!Mr(e)?$v(e):Vq(e)}function To(e){return e?(e.nodeName||"").toLowerCase():null}function As(e){return((Oa(e)?e.ownerDocument:e.document)||window.document).documentElement}function xv(e){return nl(As(e)).left+$v(e).scrollLeft}function Go(e){return po(e).getComputedStyle(e)}function Tv(e){var t=Go(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function zq(e){var t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,r=t.height/e.offsetHeight||1;return n!==1||r!==1}function Wq(e,t,n){n===void 0&&(n=!1);var r=Mr(t);Mr(t)&&zq(t);var o=As(t),i=nl(e),l={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(r||!r&&!n)&&((To(t)!=="body"||Tv(o))&&(l=Hq(t)),Mr(t)?(a=nl(t),a.x+=t.clientLeft,a.y+=t.clientTop):o&&(a.x=xv(o))),{x:i.left+l.scrollLeft-a.x,y:i.top+l.scrollTop-a.y,width:i.width,height:i.height}}function Cv(e){var t=nl(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function ff(e){return To(e)==="html"?e:e.assignedSlot||e.parentNode||(WT(e)?e.host:null)||As(e)}function qT(e){return["html","body","#document"].indexOf(To(e))>=0?e.ownerDocument.body:Mr(e)&&Tv(e)?e:qT(ff(e))}function la(e,t){var n;t===void 0&&(t=[]);var r=qT(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=po(r),l=o?[i].concat(i.visualViewport||[],Tv(r)?r:[]):r,a=t.concat(l);return o?a:a.concat(la(ff(l)))}function qq(e){return["table","td","th"].indexOf(To(e))>=0}function bb(e){return!Mr(e)||Go(e).position==="fixed"?null:e.offsetParent}function Kq(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&Mr(e)){var r=Go(e);if(r.position==="fixed")return null}for(var o=ff(e);Mr(o)&&["html","body"].indexOf(To(o))<0;){var i=Go(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function Qa(e){for(var t=po(e),n=bb(e);n&&qq(n)&&Go(n).position==="static";)n=bb(n);return n&&(To(n)==="html"||To(n)==="body"&&Go(n).position==="static")?t:n||Kq(e)||t}var Dr="top",lo="bottom",ao="right",Ur="left",Ov="auto",eu=[Dr,lo,ao,Ur],rl="start",Aa="end",Gq="clippingParents",KT="viewport",jl="popper",Xq="reference",wb=eu.reduce(function(e,t){return e.concat([t+"-"+rl,t+"-"+Aa])},[]),GT=[].concat(eu,[Ov]).reduce(function(e,t){return e.concat([t,t+"-"+rl,t+"-"+Aa])},[]),Yq="beforeRead",Jq="read",Zq="afterRead",Qq="beforeMain",eK="main",tK="afterMain",nK="beforeWrite",rK="write",oK="afterWrite",sK=[Yq,Jq,Zq,Qq,eK,tK,nK,rK,oK];function iK(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var l=[].concat(i.requires||[],i.requiresIfExists||[]);l.forEach(function(a){if(!n.has(a)){var c=t.get(a);c&&o(c)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function lK(e){var t=iK(e);return sK.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function aK(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Eo(e){return e.split("-")[0]}function uK(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}function cK(e){var t=po(e),n=As(e),r=t.visualViewport,o=n.clientWidth,i=n.clientHeight,l=0,a=0;return r&&(o=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(l=r.offsetLeft,a=r.offsetTop)),{width:o,height:i,x:l+xv(e),y:a}}var _s=Math.max,ka=Math.min,fc=Math.round;function dK(e){var t,n=As(e),r=$v(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=_s(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),l=_s(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+xv(e),c=-r.scrollTop;return Go(o||n).direction==="rtl"&&(a+=_s(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:l,x:a,y:c}}function XT(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&WT(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function pm(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function fK(e){var t=nl(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function Sb(e,t){return t===KT?pm(cK(e)):Mr(t)?fK(t):pm(dK(As(e)))}function pK(e){var t=la(ff(e)),n=["absolute","fixed"].indexOf(Go(e).position)>=0,r=n&&Mr(e)?Qa(e):e;return Oa(r)?t.filter(function(o){return Oa(o)&&XT(o,r)&&To(o)!=="body"}):[]}function hK(e,t,n){var r=t==="clippingParents"?pK(e):[].concat(t),o=[].concat(r,[n]),i=o[0],l=o.reduce(function(a,c){var d=Sb(e,c);return a.top=_s(d.top,a.top),a.right=ka(d.right,a.right),a.bottom=ka(d.bottom,a.bottom),a.left=_s(d.left,a.left),a},Sb(e,i));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function ol(e){return e.split("-")[1]}function Av(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function YT(e){var t=e.reference,n=e.element,r=e.placement,o=r?Eo(r):null,i=r?ol(r):null,l=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,c;switch(o){case Dr:c={x:l,y:t.y-n.height};break;case lo:c={x:l,y:t.y+t.height};break;case ao:c={x:t.x+t.width,y:a};break;case Ur:c={x:t.x-n.width,y:a};break;default:c={x:t.x,y:t.y}}var d=o?Av(o):null;if(d!=null){var p=d==="y"?"height":"width";switch(i){case rl:c[d]=c[d]-(t[p]/2-n[p]/2);break;case Aa:c[d]=c[d]+(t[p]/2-n[p]/2);break}}return c}function JT(){return{top:0,right:0,bottom:0,left:0}}function ZT(e){return Object.assign({},JT(),e)}function QT(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}function kv(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.boundary,l=i===void 0?Gq:i,a=n.rootBoundary,c=a===void 0?KT:a,d=n.elementContext,p=d===void 0?jl:d,h=n.altBoundary,v=h===void 0?!1:h,y=n.padding,b=y===void 0?0:y,S=ZT(typeof b!="number"?b:QT(b,eu)),T=p===jl?Xq:jl,C=e.rects.popper,w=e.elements[v?T:p],E=hK(Oa(w)?w:w.contextElement||As(e.elements.popper),l,c),O=nl(e.elements.reference),$=YT({reference:O,element:C,strategy:"absolute",placement:o}),P=pm(Object.assign({},C,$)),R=p===jl?P:O,k={top:E.top-R.top+S.top,bottom:R.bottom-E.bottom+S.bottom,left:E.left-R.left+S.left,right:R.right-E.right+S.right},W=e.modifiersData.offset;if(p===jl&&W){var U=W[o];Object.keys(k).forEach(function(j){var G=[ao,lo].indexOf(j)>=0?1:-1,X=[Dr,lo].indexOf(j)>=0?"y":"x";k[j]+=U[X]*G})}return k}var Eb={placement:"bottom",modifiers:[],strategy:"absolute"};function $b(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function mK(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?Eb:o;return function(a,c,d){d===void 0&&(d=i);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},Eb,i),modifiersData:{},elements:{reference:a,popper:c},attributes:{},styles:{}},h=[],v=!1,y={state:p,setOptions:function(C){var w=typeof C=="function"?C(p.options):C;S(),p.options=Object.assign({},i,p.options,w),p.scrollParents={reference:Oa(a)?la(a):a.contextElement?la(a.contextElement):[],popper:la(c)};var E=lK(uK([].concat(r,p.options.modifiers)));return p.orderedModifiers=E.filter(function(O){return O.enabled}),b(),y.update()},forceUpdate:function(){if(!v){var C=p.elements,w=C.reference,E=C.popper;if($b(w,E)){p.rects={reference:Wq(w,Qa(E),p.options.strategy==="fixed"),popper:Cv(E)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(U){return p.modifiersData[U.name]=Object.assign({},U.data)});for(var O=0;O<p.orderedModifiers.length;O++){if(p.reset===!0){p.reset=!1,O=-1;continue}var $=p.orderedModifiers[O],P=$.fn,R=$.options,k=R===void 0?{}:R,W=$.name;typeof P=="function"&&(p=P({state:p,options:k,name:W,instance:y})||p)}}}},update:aK(function(){return new Promise(function(T){y.forceUpdate(),T(p)})}),destroy:function(){S(),v=!0}};if(!$b(a,c))return y;y.setOptions(d).then(function(T){!v&&d.onFirstUpdate&&d.onFirstUpdate(T)});function b(){p.orderedModifiers.forEach(function(T){var C=T.name,w=T.options,E=w===void 0?{}:w,O=T.effect;if(typeof O=="function"){var $=O({state:p,name:C,instance:y,options:E}),P=function(){};h.push($||P)}})}function S(){h.forEach(function(T){return T()}),h=[]}return y}}var pc={passive:!0};function gK(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,l=r.resize,a=l===void 0?!0:l,c=po(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&d.forEach(function(p){p.addEventListener("scroll",n.update,pc)}),a&&c.addEventListener("resize",n.update,pc),function(){i&&d.forEach(function(p){p.removeEventListener("scroll",n.update,pc)}),a&&c.removeEventListener("resize",n.update,pc)}}var vK={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:gK,data:{}};function yK(e){var t=e.state,n=e.name;t.modifiersData[n]=YT({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var _K={name:"popperOffsets",enabled:!0,phase:"read",fn:yK,data:{}},bK={top:"auto",right:"auto",bottom:"auto",left:"auto"};function wK(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:fc(fc(t*o)/o)||0,y:fc(fc(n*o)/o)||0}}function xb(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,l=e.offsets,a=e.position,c=e.gpuAcceleration,d=e.adaptive,p=e.roundOffsets,h=p===!0?wK(l):typeof p=="function"?p(l):l,v=h.x,y=v===void 0?0:v,b=h.y,S=b===void 0?0:b,T=l.hasOwnProperty("x"),C=l.hasOwnProperty("y"),w=Ur,E=Dr,O=window;if(d){var $=Qa(n),P="clientHeight",R="clientWidth";$===po(n)&&($=As(n),Go($).position!=="static"&&a==="absolute"&&(P="scrollHeight",R="scrollWidth")),$=$,(o===Dr||(o===Ur||o===ao)&&i===Aa)&&(E=lo,S-=$[P]-r.height,S*=c?1:-1),(o===Ur||(o===Dr||o===lo)&&i===Aa)&&(w=ao,y-=$[R]-r.width,y*=c?1:-1)}var k=Object.assign({position:a},d&&bK);if(c){var W;return Object.assign({},k,(W={},W[E]=C?"0":"",W[w]=T?"0":"",W.transform=(O.devicePixelRatio||1)<=1?"translate("+y+"px, "+S+"px)":"translate3d("+y+"px, "+S+"px, 0)",W))}return Object.assign({},k,(t={},t[E]=C?S+"px":"",t[w]=T?y+"px":"",t.transform="",t))}function SK(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,l=i===void 0?!0:i,a=n.roundOffsets,c=a===void 0?!0:a,d={placement:Eo(t.placement),variation:ol(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,xb(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,xb(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var EK={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:SK,data:{}};function $K(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!Mr(i)||!To(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(l){var a=o[l];a===!1?i.removeAttribute(l):i.setAttribute(l,a===!0?"":a)}))})}function xK(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},l=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=l.reduce(function(c,d){return c[d]="",c},{});!Mr(o)||!To(o)||(Object.assign(o.style,a),Object.keys(i).forEach(function(c){o.removeAttribute(c)}))})}}var TK={name:"applyStyles",enabled:!0,phase:"write",fn:$K,effect:xK,requires:["computeStyles"]},CK=[vK,_K,EK,TK],OK=mK({defaultModifiers:CK});function AK(e){return e==="x"?"y":"x"}function xc(e,t,n){return _s(e,ka(t,n))}function kK(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,l=n.altAxis,a=l===void 0?!1:l,c=n.boundary,d=n.rootBoundary,p=n.altBoundary,h=n.padding,v=n.tether,y=v===void 0?!0:v,b=n.tetherOffset,S=b===void 0?0:b,T=kv(t,{boundary:c,rootBoundary:d,padding:h,altBoundary:p}),C=Eo(t.placement),w=ol(t.placement),E=!w,O=Av(C),$=AK(O),P=t.modifiersData.popperOffsets,R=t.rects.reference,k=t.rects.popper,W=typeof S=="function"?S(Object.assign({},t.rects,{placement:t.placement})):S,U={x:0,y:0};if(P){if(i||a){var j=O==="y"?Dr:Ur,G=O==="y"?lo:ao,X=O==="y"?"height":"width",ne=P[O],xe=P[O]+T[j],Ee=P[O]-T[G],ke=y?-k[X]/2:0,Ie=w===rl?R[X]:k[X],Qe=w===rl?-k[X]:-R[X],ht=t.elements.arrow,De=y&&ht?Cv(ht):{width:0,height:0},Xe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:JT(),Q=Xe[j],ce=Xe[G],ve=xc(0,R[X],De[X]),Ce=E?R[X]/2-ke-ve-Q-W:Ie-ve-Q-W,We=E?-R[X]/2+ke+ve+ce+W:Qe+ve+ce+W,Ve=t.elements.arrow&&Qa(t.elements.arrow),rt=Ve?O==="y"?Ve.clientTop||0:Ve.clientLeft||0:0,wn=t.modifiersData.offset?t.modifiersData.offset[t.placement][O]:0,an=P[O]+Ce-wn-rt,M=P[O]+We-wn;if(i){var V=xc(y?ka(xe,an):xe,ne,y?_s(Ee,M):Ee);P[O]=V,U[O]=V-ne}if(a){var Z=O==="x"?Dr:Ur,ue=O==="x"?lo:ao,le=P[$],ye=le+T[Z],Oe=le-T[ue],we=xc(y?ka(ye,an):ye,le,y?_s(Oe,M):Oe);P[$]=we,U[$]=we-le}}t.modifiersData[r]=U}}var IK={name:"preventOverflow",enabled:!0,phase:"main",fn:kK,requiresIfExists:["offset"]},PK={left:"right",right:"left",bottom:"top",top:"bottom"};function Tc(e){return e.replace(/left|right|bottom|top/g,function(t){return PK[t]})}var RK={start:"end",end:"start"};function Tb(e){return e.replace(/start|end/g,function(t){return RK[t]})}function LK(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,l=n.padding,a=n.flipVariations,c=n.allowedAutoPlacements,d=c===void 0?GT:c,p=ol(r),h=p?a?wb:wb.filter(function(b){return ol(b)===p}):eu,v=h.filter(function(b){return d.indexOf(b)>=0});v.length===0&&(v=h);var y=v.reduce(function(b,S){return b[S]=kv(e,{placement:S,boundary:o,rootBoundary:i,padding:l})[Eo(S)],b},{});return Object.keys(y).sort(function(b,S){return y[b]-y[S]})}function FK(e){if(Eo(e)===Ov)return[];var t=Tc(e);return[Tb(e),t,Tb(t)]}function NK(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,l=n.altAxis,a=l===void 0?!0:l,c=n.fallbackPlacements,d=n.padding,p=n.boundary,h=n.rootBoundary,v=n.altBoundary,y=n.flipVariations,b=y===void 0?!0:y,S=n.allowedAutoPlacements,T=t.options.placement,C=Eo(T),w=C===T,E=c||(w||!b?[Tc(T)]:FK(T)),O=[T].concat(E).reduce(function(ce,ve){return ce.concat(Eo(ve)===Ov?LK(t,{placement:ve,boundary:p,rootBoundary:h,padding:d,flipVariations:b,allowedAutoPlacements:S}):ve)},[]),$=t.rects.reference,P=t.rects.popper,R=new Map,k=!0,W=O[0],U=0;U<O.length;U++){var j=O[U],G=Eo(j),X=ol(j)===rl,ne=[Dr,lo].indexOf(G)>=0,xe=ne?"width":"height",Ee=kv(t,{placement:j,boundary:p,rootBoundary:h,altBoundary:v,padding:d}),ke=ne?X?ao:Ur:X?lo:Dr;$[xe]>P[xe]&&(ke=Tc(ke));var Ie=Tc(ke),Qe=[];if(i&&Qe.push(Ee[G]<=0),a&&Qe.push(Ee[ke]<=0,Ee[Ie]<=0),Qe.every(function(ce){return ce})){W=j,k=!1;break}R.set(j,Qe)}if(k)for(var ht=b?3:1,De=function(ve){var Ce=O.find(function(We){var Ve=R.get(We);if(Ve)return Ve.slice(0,ve).every(function(rt){return rt})});if(Ce)return W=Ce,"break"},Xe=ht;Xe>0;Xe--){var Q=De(Xe);if(Q==="break")break}t.placement!==W&&(t.modifiersData[r]._skip=!0,t.placement=W,t.reset=!0)}}var MK={name:"flip",enabled:!0,phase:"main",fn:NK,requiresIfExists:["offset"],data:{_skip:!1}};function DK(e,t,n){var r=Eo(e),o=[Ur,Dr].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,l=i[0],a=i[1];return l=l||0,a=(a||0)*o,[Ur,ao].indexOf(r)>=0?{x:a,y:l}:{x:l,y:a}}function UK(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,l=GT.reduce(function(p,h){return p[h]=DK(h,t.rects,i),p},{}),a=l[t.placement],c=a.x,d=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=d),t.modifiersData[r]=l}var BK={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:UK},jK=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,ZT(typeof t!="number"?t:QT(t,eu))};function VK(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,l=n.modifiersData.popperOffsets,a=Eo(n.placement),c=Av(a),d=[Ur,ao].indexOf(a)>=0,p=d?"height":"width";if(!(!i||!l)){var h=jK(o.padding,n),v=Cv(i),y=c==="y"?Dr:Ur,b=c==="y"?lo:ao,S=n.rects.reference[p]+n.rects.reference[c]-l[c]-n.rects.popper[p],T=l[c]-n.rects.reference[c],C=Qa(i),w=C?c==="y"?C.clientHeight||0:C.clientWidth||0:0,E=S/2-T/2,O=h[y],$=w-v[p]-h[b],P=w/2-v[p]/2+E,R=xc(O,P,$),k=c;n.modifiersData[r]=(t={},t[k]=R,t.centerOffset=R-P,t)}}function HK(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||XT(t.elements.popper,o)&&(t.elements.arrow=o))}var zK={name:"arrow",enabled:!0,phase:"main",fn:VK,effect:HK,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};const uh=e=>parseInt(e,10);function WK({arrowPadding:e,emit:t,locked:n,offsetDistance:r,offsetSkid:o,placement:i,popperNode:l,triggerNode:a}){const c=Ts({isOpen:!1,popperInstance:null}),d=S=>{var T;(T=c.popperInstance)===null||T===void 0||T.setOptions(C=>({...C,modifiers:[...C.modifiers,{name:"eventListeners",enabled:S}]}))},p=()=>d(!0),h=()=>d(!1),v=()=>{c.isOpen&&(c.isOpen=!1,t("close:popper"))},y=()=>{c.isOpen||(c.isOpen=!0,t("open:popper"))};Ut([()=>c.isOpen,i],async([S])=>{S?(await b(),p()):h()});const b=async()=>{await sn(),c.popperInstance=OK(a.value,l.value,{placement:i.value,modifiers:[IK,MK,{name:"flip",enabled:!n.value},zK,{name:"arrow",options:{padding:uh(e.value)}},BK,{name:"offset",options:{offset:[uh(o.value),uh(r.value)]}}]}),c.popperInstance.update()};return hi(()=>{var S;(S=c.popperInstance)===null||S===void 0||S.destroy()}),{...Am(c),open:y,close:v}}const qK={id:"arrow","data-popper-arrow":""};function KK(e,t){return I(),F("div",qK)}function eC(e,t){t===void 0&&(t={});var n=t.insertAt;if(!(!e||typeof document>"u")){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",n==="top"&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}var GK=`61 `));let y=iT((l=h.props)!=null?l:{},c,p),b=Vr(h,y,!0);for(let S in y)S.startsWith("on")&&(b.props||(b.props={}),b.props[S]=y[S]);return b}return Array.isArray(d)&&d.length===1?d[0]:d}return pt(a,Object.assign({},c,p),{default:()=>d})}function sT(e){return e.flatMap(t=>t.type===Me?sT(t.children):[t])}function iT(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let o in r)o.startsWith("on")&&typeof r[o]=="function"?(n[o]!=null||(n[o]=[]),n[o].push(r[o])):t[o]=r[o];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(t,{[r](o,...i){let l=n[r];for(let a of l){if(o instanceof Event&&o.defaultPrevented)return;a(o,...i)}}});return t}function fv(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function gi(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function dH(e){return e==null?!1:typeof e.type=="string"||typeof e.type=="object"||typeof e.type=="function"}var lo=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(lo||{});let To=ge({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup(e,{slots:t,attrs:n}){return()=>{var r;let{features:o,...i}=e,l={"aria-hidden":(o&2)===2?!0:(r=i["aria-hidden"])!=null?r:void 0,hidden:(o&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(o&4)===4&&(o&2)!==2&&{display:"none"}}};return xt({ourProps:l,theirProps:i,slot:{},attrs:n,slots:t,name:"Hidden"})}}}),lT=Symbol("Context");var Lt=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Lt||{});function fH(){return vi()!==null}function vi(){return Ft(lT,null)}function cf(e){Qt(lT,e)}var at=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(at||{}),aT=(e=>(e[e.Left=0]="Left",e[e.Right=2]="Right",e))(aT||{});function pH(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let Ho=[];pH(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&Ho[0]!==t.target&&(Ho.unshift(t.target),Ho=Ho.filter(n=>n!=null&&n.isConnected),Ho.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function hH(e){throw new Error("Unexpected object: "+e)}var Ct=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(Ct||{});function im(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),o=r??-1;switch(e.focus){case 0:{for(let i=0;i<n.length;++i)if(!t.resolveDisabled(n[i],i,n))return i;return r}case 1:{o===-1&&(o=n.length);for(let i=o-1;i>=0;--i)if(!t.resolveDisabled(n[i],i,n))return i;return r}case 2:{for(let i=o+1;i<n.length;++i)if(!t.resolveDisabled(n[i],i,n))return i;return r}case 3:{for(let i=n.length-1;i>=0;--i)if(!t.resolveDisabled(n[i],i,n))return i;return r}case 4:{for(let i=0;i<n.length;++i)if(t.resolveId(n[i],i,n)===e.id)return i;return r}case 5:return null;default:hH(e)}}function pv(e={},t=null,n=[]){for(let[r,o]of Object.entries(e))cT(n,uT(t,r),o);return n}function uT(e,t){return e?e+"["+t+"]":t}function cT(e,t,n){if(Array.isArray(n))for(let[r,o]of n.entries())cT(e,uT(t,r.toString()),o);else n instanceof Date?e.push([t,n.toISOString()]):typeof n=="boolean"?e.push([t,n?"1":"0"]):typeof n=="string"?e.push([t,n]):typeof n=="number"?e.push([t,`${n}`]):n==null?e.push([t,""]):pv(n,t,e)}function mH(e){var t,n;let r=(t=e==null?void 0:e.form)!=null?t:e.closest("form");if(r){for(let o of r.elements)if(o!==e&&(o.tagName==="INPUT"&&o.type==="submit"||o.tagName==="BUTTON"&&o.type==="submit"||o.nodeName==="INPUT"&&o.type==="image")){o.click();return}(n=r.requestSubmit)==null||n.call(r)}}var gH={};function vH(e,t){return e===t}var yH=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(yH||{}),_H=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(_H||{}),bH=(e=>(e[e.Pointer=0]="Pointer",e[e.Focus=1]="Focus",e[e.Other=2]="Other",e))(bH||{});let dT=Symbol("ComboboxContext");function yi(e){let t=Ft(dT,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,yi),n}return t}let fT=Symbol("VirtualContext"),wH=ge({name:"VirtualProvider",setup(e,{slots:t}){let n=yi("VirtualProvider"),r=fe(()=>{let a=de(n.optionsRef);if(!a)return{start:0,end:0};let c=window.getComputedStyle(a);return{start:parseFloat(c.paddingBlockStart||c.paddingTop),end:parseFloat(c.paddingBlockEnd||c.paddingBottom)}}),o=JV(fe(()=>({scrollPaddingStart:r.value.start,scrollPaddingEnd:r.value.end,count:n.virtual.value.options.length,estimateSize(){return 40},getScrollElement(){return de(n.optionsRef)},overscan:12}))),i=fe(()=>{var a;return(a=n.virtual.value)==null?void 0:a.options}),l=$e(0);return Ut([i],()=>{l.value+=1}),Qt(fT,n.virtual.value?o:null),()=>[pt("div",{style:{position:"relative",width:"100%",height:`${o.value.getTotalSize()}px`},ref:a=>{if(a){if(typeof process<"u"&&gH.JEST_WORKER_ID!==void 0||n.activationTrigger.value===0)return;n.activeOptionIndex.value!==null&&n.virtual.value.options.length>n.activeOptionIndex.value&&o.value.scrollToIndex(n.activeOptionIndex.value)}}},o.value.getVirtualItems().map(a=>Vr(t.default({option:n.virtual.value.options[a.index],open:n.comboboxState.value===0})[0],{key:`${l.value}-${a.index}`,"data-index":a.index,"aria-setsize":n.virtual.value.options.length,"aria-posinset":a.index+1,style:{position:"absolute",top:0,left:0,transform:`translateY(${a.start}px)`,overflowAnchor:"none"}})))]}}),pT=ge({name:"Combobox",emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:"template"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],nullable:!0,default:null},modelValue:{type:[Object,String,Number,Boolean],default:void 0},defaultValue:{type:[Object,String,Number,Boolean],default:void 0},form:{type:String,optional:!0},name:{type:String,optional:!0},nullable:{type:Boolean,default:!1},multiple:{type:[Boolean],default:!1},immediate:{type:[Boolean],default:!1},virtual:{type:Object,default:null}},inheritAttrs:!1,setup(e,{slots:t,attrs:n,emit:r}){let o=$e(1),i=$e(null),l=$e(null),a=$e(null),c=$e(null),d=$e({static:!1,hold:!1}),p=$e([]),h=$e(null),v=$e(2),y=$e(!1);function b(U=j=>j){let j=h.value!==null?p.value[h.value]:null,G=U(p.value.slice()),X=G.length>0&&G[0].dataRef.order.value!==null?G.sort((xe,Ee)=>xe.dataRef.order.value-Ee.dataRef.order.value):dv(G,xe=>de(xe.dataRef.domRef)),ne=j?X.indexOf(j):null;return ne===-1&&(ne=null),{options:X,activeOptionIndex:ne}}let S=fe(()=>e.multiple?1:0),T=fe(()=>e.nullable),[C,w]=av(fe(()=>e.modelValue),U=>r("update:modelValue",U),fe(()=>e.defaultValue)),E=fe(()=>C.value===void 0?kt(S.value,{1:[],0:void 0}):C.value),O=null,$=null;function P(U){return kt(S.value,{0(){return w==null?void 0:w(U)},1:()=>{let j=He(k.value.value).slice(),G=He(U),X=j.findIndex(ne=>k.compare(G,He(ne)));return X===-1?j.push(G):j.splice(X,1),w==null?void 0:w(j)}})}let R=fe(()=>{});Ut([R],([U],[j])=>{if(k.virtual.value&&U&&j&&h.value!==null){let G=U.indexOf(j[h.value]);G!==-1?h.value=G:h.value=null}});let k={comboboxState:o,value:E,mode:S,compare(U,j){if(typeof e.by=="string"){let G=e.by;return(U==null?void 0:U[G])===(j==null?void 0:j[G])}return e.by===null?vH(U,j):e.by(U,j)},calculateIndex(U){return k.virtual.value?e.by===null?k.virtual.value.options.indexOf(U):k.virtual.value.options.findIndex(j=>k.compare(j,U)):p.value.findIndex(j=>k.compare(j.dataRef.value,U))},defaultValue:fe(()=>e.defaultValue),nullable:T,immediate:fe(()=>!1),virtual:fe(()=>null),inputRef:l,labelRef:i,buttonRef:a,optionsRef:c,disabled:fe(()=>e.disabled),options:p,change(U){w(U)},activeOptionIndex:fe(()=>{if(y.value&&h.value===null&&(k.virtual.value?k.virtual.value.options.length>0:p.value.length>0)){if(k.virtual.value){let j=k.virtual.value.options.findIndex(G=>{var X;return!((X=k.virtual.value)!=null&&X.disabled(G))});if(j!==-1)return j}let U=p.value.findIndex(j=>!j.dataRef.disabled);if(U!==-1)return U}return h.value}),activationTrigger:v,optionsPropsRef:d,closeCombobox(){y.value=!1,!e.disabled&&o.value!==1&&(o.value=1,h.value=null)},openCombobox(){if(y.value=!0,!e.disabled&&o.value!==0){if(k.value.value){let U=k.calculateIndex(k.value.value);U!==-1&&(h.value=U)}o.value=0}},setActivationTrigger(U){v.value=U},goToOption(U,j,G){y.value=!1,O!==null&&cancelAnimationFrame(O),O=requestAnimationFrame(()=>{if(e.disabled||c.value&&!d.value.static&&o.value===1)return;if(k.virtual.value){h.value=U===Ct.Specific?j:im({focus:U},{resolveItems:()=>k.virtual.value.options,resolveActiveIndex:()=>{var xe,Ee;return(Ee=(xe=k.activeOptionIndex.value)!=null?xe:k.virtual.value.options.findIndex(ke=>{var Ie;return!((Ie=k.virtual.value)!=null&&Ie.disabled(ke))}))!=null?Ee:null},resolveDisabled:xe=>k.virtual.value.disabled(xe),resolveId(){throw new Error("Function not implemented.")}}),v.value=G??2;return}let X=b();if(X.activeOptionIndex===null){let xe=X.options.findIndex(Ee=>!Ee.dataRef.disabled);xe!==-1&&(X.activeOptionIndex=xe)}let ne=U===Ct.Specific?j:im({focus:U},{resolveItems:()=>X.options,resolveActiveIndex:()=>X.activeOptionIndex,resolveId:xe=>xe.id,resolveDisabled:xe=>xe.dataRef.disabled});h.value=ne,v.value=G??2,p.value=X.options})},selectOption(U){let j=p.value.find(X=>X.id===U);if(!j)return;let{dataRef:G}=j;P(G.value)},selectActiveOption(){if(k.activeOptionIndex.value!==null){if(k.virtual.value)P(k.virtual.value.options[k.activeOptionIndex.value]);else{let{dataRef:U}=p.value[k.activeOptionIndex.value];P(U.value)}k.goToOption(Ct.Specific,k.activeOptionIndex.value)}},registerOption(U,j){let G=Ts({id:U,dataRef:j});if(k.virtual.value){p.value.push(G);return}$&&cancelAnimationFrame($);let X=b(ne=>(ne.push(G),ne));h.value===null&&k.isSelected(j.value.value)&&(X.activeOptionIndex=X.options.indexOf(G)),p.value=X.options,h.value=X.activeOptionIndex,v.value=2,X.options.some(ne=>!de(ne.dataRef.domRef))&&($=requestAnimationFrame(()=>{let ne=b();p.value=ne.options,h.value=ne.activeOptionIndex}))},unregisterOption(U,j){if(O!==null&&cancelAnimationFrame(O),j&&(y.value=!0),k.virtual.value){p.value=p.value.filter(X=>X.id!==U);return}let G=b(X=>{let ne=X.findIndex(xe=>xe.id===U);return ne!==-1&&X.splice(ne,1),X});p.value=G.options,h.value=G.activeOptionIndex,v.value=2},isSelected(U){return kt(S.value,{0:()=>k.compare(He(k.value.value),He(U)),1:()=>He(k.value.value).some(j=>k.compare(He(j),He(U)))})},isActive(U){return h.value===k.calculateIndex(U)}};af([l,a,c],()=>k.closeCombobox(),fe(()=>o.value===0)),Qt(dT,k),cf(fe(()=>kt(o.value,{0:Lt.Open,1:Lt.Closed})));let W=fe(()=>{var U;return(U=de(l))==null?void 0:U.closest("form")});return wt(()=>{Ut([W],()=>{if(!W.value||e.defaultValue===void 0)return;function U(){k.change(e.defaultValue)}return W.value.addEventListener("reset",U),()=>{var j;(j=W.value)==null||j.removeEventListener("reset",U)}},{immediate:!0})}),()=>{var U,j,G;let{name:X,disabled:ne,form:xe,...Ee}=e,ke={open:o.value===0,disabled:ne,activeIndex:k.activeOptionIndex.value,activeOption:k.activeOptionIndex.value===null?null:k.virtual.value?k.virtual.value.options[(U=k.activeOptionIndex.value)!=null?U:0]:(G=(j=k.options.value[k.activeOptionIndex.value])==null?void 0:j.dataRef.value)!=null?G:null,value:E.value};return pt(Me,[...X!=null&&E.value!=null?pv({[X]:E.value}).map(([Ie,Qe])=>pt(To,fv({features:lo.Hidden,key:Ie,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:xe,disabled:ne,name:Ie,value:Qe}))):[],xt({theirProps:{...n,...gi(Ee,["by","defaultValue","immediate","modelValue","multiple","nullable","onUpdate:modelValue","virtual"])},ourProps:{},slot:ke,slots:t,attrs:n,name:"Combobox"})])}}}),SH=ge({name:"ComboboxLabel",props:{as:{type:[Object,String],default:"label"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n}){var r;let o=(r=e.id)!=null?r:`headlessui-combobox-label-${qt()}`,i=yi("ComboboxLabel");function l(){var a;(a=de(i.inputRef))==null||a.focus({preventScroll:!0})}return()=>{let a={open:i.comboboxState.value===0,disabled:i.disabled.value},{...c}=e,d={id:o,ref:i.labelRef,onClick:l};return xt({ourProps:d,theirProps:c,slot:a,attrs:t,slots:n,name:"ComboboxLabel"})}}}),hT=ge({name:"ComboboxButton",props:{as:{type:[Object,String],default:"button"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){var o;let i=(o=e.id)!=null?o:`headlessui-combobox-button-${qt()}`,l=yi("ComboboxButton");r({el:l.buttonRef,$el:l.buttonRef});function a(p){l.disabled.value||(l.comboboxState.value===0?l.closeCombobox():(p.preventDefault(),l.openCombobox()),sn(()=>{var h;return(h=de(l.inputRef))==null?void 0:h.focus({preventScroll:!0})}))}function c(p){switch(p.key){case at.ArrowDown:p.preventDefault(),p.stopPropagation(),l.comboboxState.value===1&&l.openCombobox(),sn(()=>{var h;return(h=l.inputRef.value)==null?void 0:h.focus({preventScroll:!0})});return;case at.ArrowUp:p.preventDefault(),p.stopPropagation(),l.comboboxState.value===1&&(l.openCombobox(),sn(()=>{l.value.value||l.goToOption(Ct.Last)})),sn(()=>{var h;return(h=l.inputRef.value)==null?void 0:h.focus({preventScroll:!0})});return;case at.Escape:if(l.comboboxState.value!==0)return;p.preventDefault(),l.optionsRef.value&&!l.optionsPropsRef.value.static&&p.stopPropagation(),l.closeCombobox(),sn(()=>{var h;return(h=l.inputRef.value)==null?void 0:h.focus({preventScroll:!0})});return}}let d=uf(fe(()=>({as:e.as,type:t.type})),l.buttonRef);return()=>{var p,h;let v={open:l.comboboxState.value===0,disabled:l.disabled.value,value:l.value.value},{...y}=e,b={ref:l.buttonRef,id:i,type:d.value,tabindex:"-1","aria-haspopup":"listbox","aria-controls":(p=de(l.optionsRef))==null?void 0:p.id,"aria-expanded":l.comboboxState.value===0,"aria-labelledby":l.labelRef.value?[(h=de(l.labelRef))==null?void 0:h.id,i].join(" "):void 0,disabled:l.disabled.value===!0?!0:void 0,onKeydown:c,onClick:a};return xt({ourProps:b,theirProps:y,slot:v,attrs:t,slots:n,name:"ComboboxButton"})}}}),mT=ge({name:"ComboboxInput",props:{as:{type:[Object,String],default:"input"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},displayValue:{type:Function},defaultValue:{type:String,default:void 0},id:{type:String,default:null}},emits:{change:e=>!0},setup(e,{emit:t,attrs:n,slots:r,expose:o}){var i;let l=(i=e.id)!=null?i:`headlessui-combobox-input-${qt()}`,a=yi("ComboboxInput"),c=fe(()=>Gr(de(a.inputRef))),d={value:!1};o({el:a.inputRef,$el:a.inputRef});function p(){a.change(null);let $=de(a.optionsRef);$&&($.scrollTop=0),a.goToOption(Ct.Nothing)}let h=fe(()=>{var $;let P=a.value.value;return de(a.inputRef)?typeof e.displayValue<"u"&&P!==void 0?($=e.displayValue(P))!=null?$:"":typeof P=="string"?P:"":""});wt(()=>{Ut([h,a.comboboxState,c],([$,P],[R,k])=>{if(d.value)return;let W=de(a.inputRef);W&&((k===0&&P===1||$!==R)&&(W.value=$),requestAnimationFrame(()=>{var U;if(d.value||!W||((U=c.value)==null?void 0:U.activeElement)!==W)return;let{selectionStart:j,selectionEnd:G}=W;Math.abs((G??0)-(j??0))===0&&j===0&&W.setSelectionRange(W.value.length,W.value.length)}))},{immediate:!0}),Ut([a.comboboxState],([$],[P])=>{if($===0&&P===1){if(d.value)return;let R=de(a.inputRef);if(!R)return;let k=R.value,{selectionStart:W,selectionEnd:U,selectionDirection:j}=R;R.value="",R.value=k,j!==null?R.setSelectionRange(W,U,j):R.setSelectionRange(W,U)}})});let v=$e(!1);function y(){v.value=!0}function b(){xs().nextFrame(()=>{v.value=!1})}let S=QV();function T($){switch(d.value=!0,S(()=>{d.value=!1}),$.key){case at.Enter:if(d.value=!1,a.comboboxState.value!==0||v.value)return;if($.preventDefault(),$.stopPropagation(),a.activeOptionIndex.value===null){a.closeCombobox();return}a.selectActiveOption(),a.mode.value===0&&a.closeCombobox();break;case at.ArrowDown:return d.value=!1,$.preventDefault(),$.stopPropagation(),kt(a.comboboxState.value,{0:()=>a.goToOption(Ct.Next),1:()=>a.openCombobox()});case at.ArrowUp:return d.value=!1,$.preventDefault(),$.stopPropagation(),kt(a.comboboxState.value,{0:()=>a.goToOption(Ct.Previous),1:()=>{a.openCombobox(),sn(()=>{a.value.value||a.goToOption(Ct.Last)})}});case at.Home:if($.shiftKey)break;return d.value=!1,$.preventDefault(),$.stopPropagation(),a.goToOption(Ct.First);case at.PageUp:return d.value=!1,$.preventDefault(),$.stopPropagation(),a.goToOption(Ct.First);case at.End:if($.shiftKey)break;return d.value=!1,$.preventDefault(),$.stopPropagation(),a.goToOption(Ct.Last);case at.PageDown:return d.value=!1,$.preventDefault(),$.stopPropagation(),a.goToOption(Ct.Last);case at.Escape:if(d.value=!1,a.comboboxState.value!==0)return;$.preventDefault(),a.optionsRef.value&&!a.optionsPropsRef.value.static&&$.stopPropagation(),a.nullable.value&&a.mode.value===0&&a.value.value===null&&p(),a.closeCombobox();break;case at.Tab:if(d.value=!1,a.comboboxState.value!==0)return;a.mode.value===0&&a.activationTrigger.value!==1&&a.selectActiveOption(),a.closeCombobox();break}}function C($){t("change",$),a.nullable.value&&a.mode.value===0&&$.target.value===""&&p(),a.openCombobox()}function w($){var P,R,k;let W=(P=$.relatedTarget)!=null?P:Ho.find(U=>U!==$.currentTarget);if(d.value=!1,!((R=de(a.optionsRef))!=null&&R.contains(W))&&!((k=de(a.buttonRef))!=null&&k.contains(W))&&a.comboboxState.value===0)return $.preventDefault(),a.mode.value===0&&(a.nullable.value&&a.value.value===null?p():a.activationTrigger.value!==1&&a.selectActiveOption()),a.closeCombobox()}function E($){var P,R,k;let W=(P=$.relatedTarget)!=null?P:Ho.find(U=>U!==$.currentTarget);(R=de(a.buttonRef))!=null&&R.contains(W)||(k=de(a.optionsRef))!=null&&k.contains(W)||a.disabled.value||a.immediate.value&&a.comboboxState.value!==0&&(a.openCombobox(),xs().nextFrame(()=>{a.setActivationTrigger(1)}))}let O=fe(()=>{var $,P,R,k;return(k=(R=(P=e.defaultValue)!=null?P:a.defaultValue.value!==void 0?($=e.displayValue)==null?void 0:$.call(e,a.defaultValue.value):null)!=null?R:a.defaultValue.value)!=null?k:""});return()=>{var $,P,R,k,W,U,j;let G={open:a.comboboxState.value===0},{displayValue:X,onChange:ne,...xe}=e,Ee={"aria-controls":($=a.optionsRef.value)==null?void 0:$.id,"aria-expanded":a.comboboxState.value===0,"aria-activedescendant":a.activeOptionIndex.value===null?void 0:a.virtual.value?(P=a.options.value.find(ke=>!a.virtual.value.disabled(ke.dataRef.value)&&a.compare(ke.dataRef.value,a.virtual.value.options[a.activeOptionIndex.value])))==null?void 0:P.id:(R=a.options.value[a.activeOptionIndex.value])==null?void 0:R.id,"aria-labelledby":(U=(k=de(a.labelRef))==null?void 0:k.id)!=null?U:(W=de(a.buttonRef))==null?void 0:W.id,"aria-autocomplete":"list",id:l,onCompositionstart:y,onCompositionend:b,onKeydown:T,onInput:C,onFocus:E,onBlur:w,role:"combobox",type:(j=n.type)!=null?j:"text",tabIndex:0,ref:a.inputRef,defaultValue:O.value,disabled:a.disabled.value===!0?!0:void 0};return xt({ourProps:Ee,theirProps:xe,slot:G,attrs:n,slots:r,features:ur.RenderStrategy|ur.Static,name:"ComboboxInput"})}}}),gT=ge({name:"ComboboxOptions",props:{as:{type:[Object,String],default:"ul"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},hold:{type:[Boolean],default:!1}},setup(e,{attrs:t,slots:n,expose:r}){let o=yi("ComboboxOptions"),i=`headlessui-combobox-options-${qt()}`;r({el:o.optionsRef,$el:o.optionsRef}),Vt(()=>{o.optionsPropsRef.value.static=e.static}),Vt(()=>{o.optionsPropsRef.value.hold=e.hold});let l=vi(),a=fe(()=>l!==null?(l.value&Lt.Open)===Lt.Open:o.comboboxState.value===0);cH({container:fe(()=>de(o.optionsRef)),enabled:fe(()=>o.comboboxState.value===0),accept(d){return d.getAttribute("role")==="option"?NodeFilter.FILTER_REJECT:d.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(d){d.setAttribute("role","none")}});function c(d){d.preventDefault()}return()=>{var d,p,h;let v={open:o.comboboxState.value===0},y={"aria-labelledby":(h=(d=de(o.labelRef))==null?void 0:d.id)!=null?h:(p=de(o.buttonRef))==null?void 0:p.id,id:i,ref:o.optionsRef,role:"listbox","aria-multiselectable":o.mode.value===1?!0:void 0,onMousedown:c},b=gi(e,["hold"]);return xt({ourProps:y,theirProps:b,slot:v,attrs:t,slots:o.virtual.value&&o.comboboxState.value===0?{...n,default:()=>[pt(wH,{},n.default)]}:n,features:ur.RenderStrategy|ur.Static,visible:a.value,name:"ComboboxOptions"})}}}),vT=ge({name:"ComboboxOption",props:{as:{type:[Object,String],default:"li"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1},order:{type:[Number],default:null}},setup(e,{slots:t,attrs:n,expose:r}){let o=yi("ComboboxOption"),i=`headlessui-combobox-option-${qt()}`,l=$e(null),a=fe(()=>e.disabled);r({el:l,$el:l});let c=fe(()=>{var w;return o.virtual.value?o.activeOptionIndex.value===o.calculateIndex(e.value):o.activeOptionIndex.value===null?!1:((w=o.options.value[o.activeOptionIndex.value])==null?void 0:w.id)===i}),d=fe(()=>o.isSelected(e.value)),p=Ft(fT,null),h=fe(()=>({disabled:e.disabled,value:e.value,domRef:l,order:fe(()=>e.order)}));wt(()=>o.registerOption(i,h)),en(()=>o.unregisterOption(i,c.value)),Vt(()=>{let w=de(l);w&&(p==null||p.value.measureElement(w))}),Vt(()=>{o.comboboxState.value===0&&c.value&&(o.virtual.value||o.activationTrigger.value!==0&&sn(()=>{var w,E;return(E=(w=de(l))==null?void 0:w.scrollIntoView)==null?void 0:E.call(w,{block:"nearest"})}))});function v(w){w.preventDefault(),w.button===aT.Left&&(a.value||(o.selectOption(i),nT()||requestAnimationFrame(()=>{var E;return(E=de(o.inputRef))==null?void 0:E.focus({preventScroll:!0})}),o.mode.value===0&&o.closeCombobox()))}function y(){var w;if(e.disabled||(w=o.virtual.value)!=null&&w.disabled(e.value))return o.goToOption(Ct.Nothing);let E=o.calculateIndex(e.value);o.goToOption(Ct.Specific,E)}let b=oT();function S(w){b.update(w)}function T(w){var E;if(!b.wasMoved(w)||e.disabled||(E=o.virtual.value)!=null&&E.disabled(e.value)||c.value)return;let O=o.calculateIndex(e.value);o.goToOption(Ct.Specific,O,0)}function C(w){var E;b.wasMoved(w)&&(e.disabled||(E=o.virtual.value)!=null&&E.disabled(e.value)||c.value&&(o.optionsPropsRef.value.hold||o.goToOption(Ct.Nothing)))}return()=>{let{disabled:w}=e,E={active:c.value,selected:d.value,disabled:w},O={id:i,ref:l,role:"option",tabIndex:w===!0?void 0:-1,"aria-disabled":w===!0?!0:void 0,"aria-selected":d.value,disabled:void 0,onMousedown:v,onFocus:y,onPointerenter:S,onMouseenter:S,onPointermove:T,onMousemove:T,onPointerleave:C,onMouseleave:C},$=gi(e,["order","value"]);return xt({ourProps:O,theirProps:$,slot:E,attrs:n,slots:t,name:"ComboboxOption"})}}});function hv(e,t,n,r){Xa.isServer||Vt(o=>{e=e??window,e.addEventListener(t,n,r),o(()=>e.removeEventListener(t,n,r))})}var _r=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(_r||{});function mv(){let e=$e(0);return rT("keydown",t=>{t.key==="Tab"&&(e.value=t.shiftKey?1:0)}),e}function yT(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let n of e.value){let r=de(n);r instanceof HTMLElement&&t.add(r)}return t}var _T=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(_T||{});let Ul=Object.assign(ge({name:"FocusTrap",props:{as:{type:[Object,String],default:"div"},initialFocus:{type:Object,default:null},features:{type:Number,default:30},containers:{type:[Object,Function],default:$e(new Set)}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:r}){let o=$e(null);r({el:o,$el:o});let i=fe(()=>Gr(o)),l=$e(!1);wt(()=>l.value=!0),en(()=>l.value=!1),$H({ownerDocument:i},fe(()=>l.value&&!!(e.features&16)));let a=xH({ownerDocument:i,container:o,initialFocus:fe(()=>e.initialFocus)},fe(()=>l.value&&!!(e.features&2)));TH({ownerDocument:i,container:o,containers:e.containers,previousActiveElement:a},fe(()=>l.value&&!!(e.features&8)));let c=mv();function d(y){let b=de(o);b&&(S=>S())(()=>{kt(c.value,{[_r.Forwards]:()=>{no(b,Mn.First,{skipElements:[y.relatedTarget]})},[_r.Backwards]:()=>{no(b,Mn.Last,{skipElements:[y.relatedTarget]})}})})}let p=$e(!1);function h(y){y.key==="Tab"&&(p.value=!0,requestAnimationFrame(()=>{p.value=!1}))}function v(y){if(!l.value)return;let b=yT(e.containers);de(o)instanceof HTMLElement&&b.add(de(o));let S=y.relatedTarget;S instanceof HTMLElement&&S.dataset.headlessuiFocusGuard!=="true"&&(bT(b,S)||(p.value?no(de(o),kt(c.value,{[_r.Forwards]:()=>Mn.Next,[_r.Backwards]:()=>Mn.Previous})|Mn.WrapAround,{relativeTo:y.target}):y.target instanceof HTMLElement&&si(y.target)))}return()=>{let y={},b={ref:o,onKeydown:h,onFocusout:v},{features:S,initialFocus:T,containers:C,...w}=e;return pt(Me,[!!(S&4)&&pt(To,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:d,features:lo.Focusable}),xt({ourProps:b,theirProps:{...t,...w},slot:y,attrs:t,slots:n,name:"FocusTrap"}),!!(S&4)&&pt(To,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:d,features:lo.Focusable})])}}}),{features:_T});function EH(e){let t=$e(Ho.slice());return Ut([e],([n],[r])=>{r===!0&&n===!1?uv(()=>{t.value.splice(0)}):r===!1&&n===!0&&(t.value=Ho.slice())},{flush:"post"}),()=>{var n;return(n=t.value.find(r=>r!=null&&r.isConnected))!=null?n:null}}function $H({ownerDocument:e},t){let n=EH(t);wt(()=>{Vt(()=>{var r,o;t.value||((r=e.value)==null?void 0:r.activeElement)===((o=e.value)==null?void 0:o.body)&&si(n())},{flush:"post"})}),en(()=>{t.value&&si(n())})}function xH({ownerDocument:e,container:t,initialFocus:n},r){let o=$e(null),i=$e(!1);return wt(()=>i.value=!0),en(()=>i.value=!1),wt(()=>{Ut([t,n,r],(l,a)=>{if(l.every((d,p)=>(a==null?void 0:a[p])===d)||!r.value)return;let c=de(t);c&&uv(()=>{var d,p;if(!i.value)return;let h=de(n),v=(d=e.value)==null?void 0:d.activeElement;if(h){if(h===v){o.value=v;return}}else if(c.contains(v)){o.value=v;return}h?si(h):no(c,Mn.First|Mn.NoScroll)===Ca.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),o.value=(p=e.value)==null?void 0:p.activeElement})},{immediate:!0,flush:"post"})}),o}function TH({ownerDocument:e,container:t,containers:n,previousActiveElement:r},o){var i;hv((i=e.value)==null?void 0:i.defaultView,"focus",l=>{if(!o.value)return;let a=yT(n);de(t)instanceof HTMLElement&&a.add(de(t));let c=r.value;if(!c)return;let d=l.target;d&&d instanceof HTMLElement?bT(a,d)?(r.value=d,si(d)):(l.preventDefault(),l.stopPropagation(),si(c)):si(r.value)},!0)}function bT(e,t){for(let n of e)if(n.contains(t))return!0;return!1}function CH(e){let t=gd(e.getSnapshot());return en(e.subscribe(()=>{t.value=e.getSnapshot()})),t}function OH(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(o){return r.add(o),()=>r.delete(o)},dispatch(o,...i){let l=t[o].call(n,...i);l&&(n=l,r.forEach(a=>a()))}}}function AH(){let e;return{before({doc:t}){var n;let r=t.documentElement;e=((n=t.defaultView)!=null?n:window).innerWidth-r.clientWidth},after({doc:t,d:n}){let r=t.documentElement,o=r.clientWidth-r.offsetWidth,i=e-o;n.style(r,"paddingRight",`${i}px`)}}}function kH(){return tT()?{before({doc:e,d:t,meta:n}){function r(o){return n.containers.flatMap(i=>i()).some(i=>i.contains(o))}t.microTask(()=>{var o;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let a=xs();a.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>a.dispose()))}let i=(o=window.scrollY)!=null?o:window.pageYOffset,l=null;t.addEventListener(e,"click",a=>{if(a.target instanceof HTMLElement)try{let c=a.target.closest("a");if(!c)return;let{hash:d}=new URL(c.href),p=e.querySelector(d);p&&!r(p)&&(l=p)}catch{}},!0),t.addEventListener(e,"touchstart",a=>{if(a.target instanceof HTMLElement)if(r(a.target)){let c=a.target;for(;c.parentElement&&r(c.parentElement);)c=c.parentElement;t.style(c,"overscrollBehavior","contain")}else t.style(a.target,"touchAction","none")}),t.addEventListener(e,"touchmove",a=>{if(a.target instanceof HTMLElement){if(a.target.tagName==="INPUT")return;if(r(a.target)){let c=a.target;for(;c.parentElement&&c.dataset.headlessuiPortal!==""&&!(c.scrollHeight>c.clientHeight||c.scrollWidth>c.clientWidth);)c=c.parentElement;c.dataset.headlessuiPortal===""&&a.preventDefault()}else a.preventDefault()}},{passive:!1}),t.add(()=>{var a;let c=(a=window.scrollY)!=null?a:window.pageYOffset;i!==c&&window.scrollTo(0,i),l&&l.isConnected&&(l.scrollIntoView({block:"nearest"}),l=null)})})}}:{}}function IH(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function PH(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let Js=OH(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:xs(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:PH(n)},o=[kH(),AH(),IH()];o.forEach(({before:i})=>i==null?void 0:i(r)),o.forEach(({after:i})=>i==null?void 0:i(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});Js.subscribe(()=>{let e=Js.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let r=t.get(n.doc)==="hidden",o=n.count!==0;(o&&!r||!o&&r)&&Js.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&Js.dispatch("TEARDOWN",n)}});function RH(e,t,n){let r=CH(Js),o=fe(()=>{let i=e.value?r.value.get(e.value):void 0;return i?i.count>0:!1});return Ut([e,t],([i,l],[a],c)=>{if(!i||!l)return;Js.dispatch("PUSH",i,n);let d=!1;c(()=>{d||(Js.dispatch("POP",a??i,n),d=!0)})},{immediate:!0}),o}let lh=new Map,Bl=new Map;function hb(e,t=$e(!0)){Vt(n=>{var r;if(!t.value)return;let o=de(e);if(!o)return;n(function(){var l;if(!o)return;let a=(l=Bl.get(o))!=null?l:1;if(a===1?Bl.delete(o):Bl.set(o,a-1),a!==1)return;let c=lh.get(o);c&&(c["aria-hidden"]===null?o.removeAttribute("aria-hidden"):o.setAttribute("aria-hidden",c["aria-hidden"]),o.inert=c.inert,lh.delete(o))});let i=(r=Bl.get(o))!=null?r:0;Bl.set(o,i+1),i===0&&(lh.set(o,{"aria-hidden":o.getAttribute("aria-hidden"),inert:o.inert}),o.setAttribute("aria-hidden","true"),o.inert=!0)})}function wT({defaultContainers:e=[],portals:t,mainTreeNodeRef:n}={}){let r=$e(null),o=Gr(r);function i(){var l,a,c;let d=[];for(let p of e)p!==null&&(p instanceof HTMLElement?d.push(p):"value"in p&&p.value instanceof HTMLElement&&d.push(p.value));if(t!=null&&t.value)for(let p of t.value)d.push(p);for(let p of(l=o==null?void 0:o.querySelectorAll("html > *, body > *"))!=null?l:[])p!==document.body&&p!==document.head&&p instanceof HTMLElement&&p.id!=="headlessui-portal-root"&&(p.contains(de(r))||p.contains((c=(a=de(r))==null?void 0:a.getRootNode())==null?void 0:c.host)||d.some(h=>p.contains(h))||d.push(p));return d}return{resolveContainers:i,contains(l){return i().some(a=>a.contains(l))},mainTreeNodeRef:r,MainTreeNode(){return n!=null?null:pt(To,{features:lo.Hidden,ref:r})}}}function LH(){let e=$e(null);return{mainTreeNodeRef:e,MainTreeNode(){return pt(To,{features:lo.Hidden,ref:e})}}}let ST=Symbol("ForcePortalRootContext");function FH(){return Ft(ST,!1)}let lm=ge({name:"ForcePortalRoot",props:{as:{type:[Object,String],default:"template"},force:{type:Boolean,default:!1}},setup(e,{slots:t,attrs:n}){return Qt(ST,e.force),()=>{let{force:r,...o}=e;return xt({theirProps:o,ourProps:{},slot:{},slots:t,attrs:n,name:"ForcePortalRoot"})}}}),ET=Symbol("StackContext");var am=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(am||{});function NH(){return Ft(ET,()=>{})}function MH({type:e,enabled:t,element:n,onUpdate:r}){let o=NH();function i(...l){r==null||r(...l),o(...l)}wt(()=>{Ut(t,(l,a)=>{l?i(0,e,n):a===!0&&i(1,e,n)},{immediate:!0,flush:"sync"})}),en(()=>{t.value&&i(1,e,n)}),Qt(ET,i)}let $T=Symbol("DescriptionContext");function DH(){let e=Ft($T,null);if(e===null)throw new Error("Missing parent");return e}function xT({slot:e=$e({}),name:t="Description",props:n={}}={}){let r=$e([]);function o(i){return r.value.push(i),()=>{let l=r.value.indexOf(i);l!==-1&&r.value.splice(l,1)}}return Qt($T,{register:o,slot:e,name:t,props:n}),fe(()=>r.value.length>0?r.value.join(" "):void 0)}ge({name:"Description",props:{as:{type:[Object,String],default:"p"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n}){var r;let o=(r=e.id)!=null?r:`headlessui-description-${qt()}`,i=DH();return wt(()=>en(i.register(o))),()=>{let{name:l="Description",slot:a=$e({}),props:c={}}=i,{...d}=e,p={...Object.entries(c).reduce((h,[v,y])=>Object.assign(h,{[v]:vn(y)}),{}),id:o};return xt({ourProps:p,theirProps:d,slot:a.value,attrs:t,slots:n,name:l})}}});function UH(e){let t=Gr(e);if(!t){if(e===null)return null;throw new Error(`[Headless UI]: Cannot find ownerDocument for contextElement: ${e}`)}let n=t.getElementById("headlessui-portal-root");if(n)return n;let r=t.createElement("div");return r.setAttribute("id","headlessui-portal-root"),t.body.appendChild(r)}const um=new WeakMap;function BH(e){var t;return(t=um.get(e))!=null?t:0}function mb(e,t){let n=t(BH(e));return n<=0?um.delete(e):um.set(e,n),n}let TT=ge({name:"Portal",props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:n}){let r=$e(null),o=fe(()=>Gr(r)),i=FH(),l=Ft(OT,null),a=$e(i===!0||l==null?UH(r.value):l.resolveTarget());a.value&&mb(a.value,v=>v+1);let c=$e(!1);wt(()=>{c.value=!0}),Vt(()=>{i||l!=null&&(a.value=l.resolveTarget())});let d=Ft(cm,null),p=!1,h=Jo();return Ut(r,()=>{if(p||!d)return;let v=de(r);v&&(en(d.register(v),h),p=!0)}),en(()=>{var v,y;let b=(v=o.value)==null?void 0:v.getElementById("headlessui-portal-root");!b||a.value!==b||mb(a.value,S=>S-1)||a.value.children.length>0||(y=a.value.parentElement)==null||y.removeChild(a.value)}),()=>{if(!c.value||a.value===null)return null;let v={ref:r,"data-headlessui-portal":""};return pt(Bw,{to:a.value},xt({ourProps:v,theirProps:e,slot:{},attrs:n,slots:t,name:"Portal"}))}}}),cm=Symbol("PortalParentContext");function CT(){let e=Ft(cm,null),t=$e([]);function n(i){return t.value.push(i),e&&e.register(i),()=>r(i)}function r(i){let l=t.value.indexOf(i);l!==-1&&t.value.splice(l,1),e&&e.unregister(i)}let o={register:n,unregister:r,portals:t};return[t,ge({name:"PortalWrapper",setup(i,{slots:l}){return Qt(cm,o),()=>{var a;return(a=l.default)==null?void 0:a.call(l)}}})]}let OT=Symbol("PortalGroupContext"),jH=ge({name:"PortalGroup",props:{as:{type:[Object,String],default:"template"},target:{type:Object,default:null}},setup(e,{attrs:t,slots:n}){let r=Ts({resolveTarget(){return e.target}});return Qt(OT,r),()=>{let{target:o,...i}=e;return xt({theirProps:i,ourProps:{},slot:{},attrs:t,slots:n,name:"PortalGroup"})}}});var VH=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(VH||{});let dm=Symbol("DialogContext");function Ya(e){let t=Ft(dm,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Ya),n}return t}let cc="DC8F892D-2EBD-447C-A4C8-A03058436FF4",HH=ge({name:"Dialog",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},open:{type:[Boolean,String],default:cc},initialFocus:{type:Object,default:null},id:{type:String,default:null},role:{type:String,default:"dialog"}},emits:{close:e=>!0},setup(e,{emit:t,attrs:n,slots:r,expose:o}){var i,l;let a=(i=e.id)!=null?i:`headlessui-dialog-${qt()}`,c=$e(!1);wt(()=>{c.value=!0});let d=!1,p=fe(()=>e.role==="dialog"||e.role==="alertdialog"?e.role:(d||(d=!0,console.warn(`Invalid role [${p}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")),h=$e(0),v=vi(),y=fe(()=>e.open===cc&&v!==null?(v.value&Lt.Open)===Lt.Open:e.open),b=$e(null),S=fe(()=>Gr(b));if(o({el:b,$el:b}),!(e.open!==cc||v!==null))throw new Error("You forgot to provide an `open` prop to the `Dialog`.");if(typeof y.value!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${y.value===cc?void 0:e.open}`);let T=fe(()=>c.value&&y.value?0:1),C=fe(()=>T.value===0),w=fe(()=>h.value>1),E=Ft(dm,null)!==null,[O,$]=CT(),{resolveContainers:P,mainTreeNodeRef:R,MainTreeNode:k}=wT({portals:O,defaultContainers:[fe(()=>{var De;return(De=ke.panelRef.value)!=null?De:b.value})]}),W=fe(()=>w.value?"parent":"leaf"),U=fe(()=>v!==null?(v.value&Lt.Closing)===Lt.Closing:!1),j=fe(()=>E||U.value?!1:C.value),G=fe(()=>{var De,Xe,Q;return(Q=Array.from((Xe=(De=S.value)==null?void 0:De.querySelectorAll("body > *"))!=null?Xe:[]).find(ce=>ce.id==="headlessui-portal-root"?!1:ce.contains(de(R))&&ce instanceof HTMLElement))!=null?Q:null});hb(G,j);let X=fe(()=>w.value?!0:C.value),ne=fe(()=>{var De,Xe,Q;return(Q=Array.from((Xe=(De=S.value)==null?void 0:De.querySelectorAll("[data-headlessui-portal]"))!=null?Xe:[]).find(ce=>ce.contains(de(R))&&ce instanceof HTMLElement))!=null?Q:null});hb(ne,X),MH({type:"Dialog",enabled:fe(()=>T.value===0),element:b,onUpdate:(De,Xe)=>{if(Xe==="Dialog")return kt(De,{[am.Add]:()=>h.value+=1,[am.Remove]:()=>h.value-=1})}});let xe=xT({name:"DialogDescription",slot:fe(()=>({open:y.value}))}),Ee=$e(null),ke={titleId:Ee,panelRef:$e(null),dialogState:T,setTitleId(De){Ee.value!==De&&(Ee.value=De)},close(){t("close",!1)}};Qt(dm,ke);let Ie=fe(()=>!(!C.value||w.value));af(P,(De,Xe)=>{De.preventDefault(),ke.close(),sn(()=>Xe==null?void 0:Xe.focus())},Ie);let Qe=fe(()=>!(w.value||T.value!==0));hv((l=S.value)==null?void 0:l.defaultView,"keydown",De=>{Qe.value&&(De.defaultPrevented||De.key===at.Escape&&(De.preventDefault(),De.stopPropagation(),ke.close()))});let ht=fe(()=>!(U.value||T.value!==0||E));return RH(S,ht,De=>{var Xe;return{containers:[...(Xe=De.containers)!=null?Xe:[],P]}}),Vt(De=>{if(T.value!==0)return;let Xe=de(b);if(!Xe)return;let Q=new ResizeObserver(ce=>{for(let ve of ce){let Ce=ve.target.getBoundingClientRect();Ce.x===0&&Ce.y===0&&Ce.width===0&&Ce.height===0&&ke.close()}});Q.observe(Xe),De(()=>Q.disconnect())}),()=>{let{open:De,initialFocus:Xe,...Q}=e,ce={...n,ref:b,id:a,role:p.value,"aria-modal":T.value===0?!0:void 0,"aria-labelledby":Ee.value,"aria-describedby":xe.value},ve={open:T.value===0};return pt(lm,{force:!0},()=>[pt(TT,()=>pt(jH,{target:b.value},()=>pt(lm,{force:!1},()=>pt(Ul,{initialFocus:Xe,containers:P,features:C.value?kt(W.value,{parent:Ul.features.RestoreFocus,leaf:Ul.features.All&~Ul.features.FocusLock}):Ul.features.None},()=>pt($,{},()=>xt({ourProps:ce,theirProps:{...Q,...n},slot:ve,attrs:n,slots:r,visible:T.value===0,features:ur.RenderStrategy|ur.Static,name:"Dialog"})))))),pt(k)])}}}),zH=ge({name:"DialogOverlay",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n}){var r;let o=(r=e.id)!=null?r:`headlessui-dialog-overlay-${qt()}`,i=Ya("DialogOverlay");function l(a){a.target===a.currentTarget&&(a.preventDefault(),a.stopPropagation(),i.close())}return()=>{let{...a}=e;return xt({ourProps:{id:o,"aria-hidden":!0,onClick:l},theirProps:a,slot:{open:i.dialogState.value===0},attrs:t,slots:n,name:"DialogOverlay"})}}});ge({name:"DialogBackdrop",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:null}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:r}){var o;let i=(o=e.id)!=null?o:`headlessui-dialog-backdrop-${qt()}`,l=Ya("DialogBackdrop"),a=$e(null);return r({el:a,$el:a}),wt(()=>{if(l.panelRef.value===null)throw new Error("A <DialogBackdrop /> component is being used, but a <DialogPanel /> component is missing.")}),()=>{let{...c}=e,d={id:i,ref:a,"aria-hidden":!0};return pt(lm,{force:!0},()=>pt(TT,()=>xt({ourProps:d,theirProps:{...t,...c},slot:{open:l.dialogState.value===0},attrs:t,slots:n,name:"DialogBackdrop"})))}}});ge({name:"DialogPanel",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){var o;let i=(o=e.id)!=null?o:`headlessui-dialog-panel-${qt()}`,l=Ya("DialogPanel");r({el:l.panelRef,$el:l.panelRef});function a(c){c.stopPropagation()}return()=>{let{...c}=e,d={id:i,ref:l.panelRef,onClick:a};return xt({ourProps:d,theirProps:c,slot:{open:l.dialogState.value===0},attrs:t,slots:n,name:"DialogPanel"})}}});let WH=ge({name:"DialogTitle",props:{as:{type:[Object,String],default:"h2"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n}){var r;let o=(r=e.id)!=null?r:`headlessui-dialog-title-${qt()}`,i=Ya("DialogTitle");return wt(()=>{i.setTitleId(o),en(()=>i.setTitleId(null))}),()=>{let{...l}=e;return xt({ourProps:{id:o},theirProps:l,slot:{open:i.dialogState.value===0},attrs:t,slots:n,name:"DialogTitle"})}}}),gb=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function vb(e){var t,n;let r=(t=e.innerText)!=null?t:"",o=e.cloneNode(!0);if(!(o instanceof HTMLElement))return r;let i=!1;for(let a of o.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))a.remove(),i=!0;let l=i?(n=o.innerText)!=null?n:"":r;return gb.test(l)&&(l=l.replace(gb,"")),l}function qH(e){let t=e.getAttribute("aria-label");if(typeof t=="string")return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let r=n.split(" ").map(o=>{let i=document.getElementById(o);if(i){let l=i.getAttribute("aria-label");return typeof l=="string"?l.trim():vb(i).trim()}return null}).filter(Boolean);if(r.length>0)return r.join(", ")}return vb(e).trim()}function KH(e){let t=$e(""),n=$e("");return()=>{let r=de(e);if(!r)return"";let o=r.innerText;if(t.value===o)return n.value;let i=qH(r).trim().toLowerCase();return t.value=o,n.value=i,i}}function GH(e,t){return e===t}var XH=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(XH||{}),YH=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(YH||{}),JH=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(JH||{});function ZH(e){requestAnimationFrame(()=>requestAnimationFrame(e))}let AT=Symbol("ListboxContext");function Ja(e){let t=Ft(AT,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Ja),n}return t}let gv=ge({name:"Listbox",emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:"template"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],default:()=>GH},horizontal:{type:[Boolean],default:!1},modelValue:{type:[Object,String,Number,Boolean],default:void 0},defaultValue:{type:[Object,String,Number,Boolean],default:void 0},form:{type:String,optional:!0},name:{type:String,optional:!0},multiple:{type:[Boolean],default:!1}},inheritAttrs:!1,setup(e,{slots:t,attrs:n,emit:r}){let o=$e(1),i=$e(null),l=$e(null),a=$e(null),c=$e([]),d=$e(""),p=$e(null),h=$e(1);function v(E=O=>O){let O=p.value!==null?c.value[p.value]:null,$=dv(E(c.value.slice()),R=>de(R.dataRef.domRef)),P=O?$.indexOf(O):null;return P===-1&&(P=null),{options:$,activeOptionIndex:P}}let y=fe(()=>e.multiple?1:0),[b,S]=av(fe(()=>e.modelValue),E=>r("update:modelValue",E),fe(()=>e.defaultValue)),T=fe(()=>b.value===void 0?kt(y.value,{1:[],0:void 0}):b.value),C={listboxState:o,value:T,mode:y,compare(E,O){if(typeof e.by=="string"){let $=e.by;return(E==null?void 0:E[$])===(O==null?void 0:O[$])}return e.by(E,O)},orientation:fe(()=>e.horizontal?"horizontal":"vertical"),labelRef:i,buttonRef:l,optionsRef:a,disabled:fe(()=>e.disabled),options:c,searchQuery:d,activeOptionIndex:p,activationTrigger:h,closeListbox(){e.disabled||o.value!==1&&(o.value=1,p.value=null)},openListbox(){e.disabled||o.value!==0&&(o.value=0)},goToOption(E,O,$){if(e.disabled||o.value===1)return;let P=v(),R=im(E===Ct.Specific?{focus:Ct.Specific,id:O}:{focus:E},{resolveItems:()=>P.options,resolveActiveIndex:()=>P.activeOptionIndex,resolveId:k=>k.id,resolveDisabled:k=>k.dataRef.disabled});d.value="",p.value=R,h.value=$??1,c.value=P.options},search(E){if(e.disabled||o.value===1)return;let O=d.value!==""?0:1;d.value+=E.toLowerCase();let $=(p.value!==null?c.value.slice(p.value+O).concat(c.value.slice(0,p.value+O)):c.value).find(R=>R.dataRef.textValue.startsWith(d.value)&&!R.dataRef.disabled),P=$?c.value.indexOf($):-1;P===-1||P===p.value||(p.value=P,h.value=1)},clearSearch(){e.disabled||o.value!==1&&d.value!==""&&(d.value="")},registerOption(E,O){let $=v(P=>[...P,{id:E,dataRef:O}]);c.value=$.options,p.value=$.activeOptionIndex},unregisterOption(E){let O=v($=>{let P=$.findIndex(R=>R.id===E);return P!==-1&&$.splice(P,1),$});c.value=O.options,p.value=O.activeOptionIndex,h.value=1},theirOnChange(E){e.disabled||S(E)},select(E){e.disabled||S(kt(y.value,{0:()=>E,1:()=>{let O=He(C.value.value).slice(),$=He(E),P=O.findIndex(R=>C.compare($,He(R)));return P===-1?O.push($):O.splice(P,1),O}}))}};af([l,a],(E,O)=>{var $;C.closeListbox(),cv(O,lf.Loose)||(E.preventDefault(),($=de(l))==null||$.focus())},fe(()=>o.value===0)),Qt(AT,C),cf(fe(()=>kt(o.value,{0:Lt.Open,1:Lt.Closed})));let w=fe(()=>{var E;return(E=de(l))==null?void 0:E.closest("form")});return wt(()=>{Ut([w],()=>{if(!w.value||e.defaultValue===void 0)return;function E(){C.theirOnChange(e.defaultValue)}return w.value.addEventListener("reset",E),()=>{var O;(O=w.value)==null||O.removeEventListener("reset",E)}},{immediate:!0})}),()=>{let{name:E,modelValue:O,disabled:$,form:P,...R}=e,k={open:o.value===0,disabled:$,value:T.value};return pt(Me,[...E!=null&&T.value!=null?pv({[E]:T.value}).map(([W,U])=>pt(To,fv({features:lo.Hidden,key:W,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:P,disabled:$,name:W,value:U}))):[],xt({ourProps:{},theirProps:{...n,...gi(R,["defaultValue","onUpdate:modelValue","horizontal","multiple","by"])},slot:k,slots:t,attrs:n,name:"Listbox"})])}}}),vv=ge({name:"ListboxLabel",props:{as:{type:[Object,String],default:"label"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n}){var r;let o=(r=e.id)!=null?r:`headlessui-listbox-label-${qt()}`,i=Ja("ListboxLabel");function l(){var a;(a=de(i.buttonRef))==null||a.focus({preventScroll:!0})}return()=>{let a={open:i.listboxState.value===0,disabled:i.disabled.value},{...c}=e,d={id:o,ref:i.labelRef,onClick:l};return xt({ourProps:d,theirProps:c,slot:a,attrs:t,slots:n,name:"ListboxLabel"})}}}),yv=ge({name:"ListboxButton",props:{as:{type:[Object,String],default:"button"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){var o;let i=(o=e.id)!=null?o:`headlessui-listbox-button-${qt()}`,l=Ja("ListboxButton");r({el:l.buttonRef,$el:l.buttonRef});function a(h){switch(h.key){case at.Space:case at.Enter:case at.ArrowDown:h.preventDefault(),l.openListbox(),sn(()=>{var v;(v=de(l.optionsRef))==null||v.focus({preventScroll:!0}),l.value.value||l.goToOption(Ct.First)});break;case at.ArrowUp:h.preventDefault(),l.openListbox(),sn(()=>{var v;(v=de(l.optionsRef))==null||v.focus({preventScroll:!0}),l.value.value||l.goToOption(Ct.Last)});break}}function c(h){switch(h.key){case at.Space:h.preventDefault();break}}function d(h){l.disabled.value||(l.listboxState.value===0?(l.closeListbox(),sn(()=>{var v;return(v=de(l.buttonRef))==null?void 0:v.focus({preventScroll:!0})})):(h.preventDefault(),l.openListbox(),ZH(()=>{var v;return(v=de(l.optionsRef))==null?void 0:v.focus({preventScroll:!0})})))}let p=uf(fe(()=>({as:e.as,type:t.type})),l.buttonRef);return()=>{var h,v;let y={open:l.listboxState.value===0,disabled:l.disabled.value,value:l.value.value},{...b}=e,S={ref:l.buttonRef,id:i,type:p.value,"aria-haspopup":"listbox","aria-controls":(h=de(l.optionsRef))==null?void 0:h.id,"aria-expanded":l.listboxState.value===0,"aria-labelledby":l.labelRef.value?[(v=de(l.labelRef))==null?void 0:v.id,i].join(" "):void 0,disabled:l.disabled.value===!0?!0:void 0,onKeydown:a,onKeyup:c,onClick:d};return xt({ourProps:S,theirProps:b,slot:y,attrs:t,slots:n,name:"ListboxButton"})}}}),_v=ge({name:"ListboxOptions",props:{as:{type:[Object,String],default:"ul"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){var o;let i=(o=e.id)!=null?o:`headlessui-listbox-options-${qt()}`,l=Ja("ListboxOptions"),a=$e(null);r({el:l.optionsRef,$el:l.optionsRef});function c(h){switch(a.value&&clearTimeout(a.value),h.key){case at.Space:if(l.searchQuery.value!=="")return h.preventDefault(),h.stopPropagation(),l.search(h.key);case at.Enter:if(h.preventDefault(),h.stopPropagation(),l.activeOptionIndex.value!==null){let v=l.options.value[l.activeOptionIndex.value];l.select(v.dataRef.value)}l.mode.value===0&&(l.closeListbox(),sn(()=>{var v;return(v=de(l.buttonRef))==null?void 0:v.focus({preventScroll:!0})}));break;case kt(l.orientation.value,{vertical:at.ArrowDown,horizontal:at.ArrowRight}):return h.preventDefault(),h.stopPropagation(),l.goToOption(Ct.Next);case kt(l.orientation.value,{vertical:at.ArrowUp,horizontal:at.ArrowLeft}):return h.preventDefault(),h.stopPropagation(),l.goToOption(Ct.Previous);case at.Home:case at.PageUp:return h.preventDefault(),h.stopPropagation(),l.goToOption(Ct.First);case at.End:case at.PageDown:return h.preventDefault(),h.stopPropagation(),l.goToOption(Ct.Last);case at.Escape:h.preventDefault(),h.stopPropagation(),l.closeListbox(),sn(()=>{var v;return(v=de(l.buttonRef))==null?void 0:v.focus({preventScroll:!0})});break;case at.Tab:h.preventDefault(),h.stopPropagation();break;default:h.key.length===1&&(l.search(h.key),a.value=setTimeout(()=>l.clearSearch(),350));break}}let d=vi(),p=fe(()=>d!==null?(d.value&Lt.Open)===Lt.Open:l.listboxState.value===0);return()=>{var h,v;let y={open:l.listboxState.value===0},{...b}=e,S={"aria-activedescendant":l.activeOptionIndex.value===null||(h=l.options.value[l.activeOptionIndex.value])==null?void 0:h.id,"aria-multiselectable":l.mode.value===1?!0:void 0,"aria-labelledby":(v=de(l.buttonRef))==null?void 0:v.id,"aria-orientation":l.orientation.value,id:i,onKeydown:c,role:"listbox",tabIndex:0,ref:l.optionsRef};return xt({ourProps:S,theirProps:b,slot:y,attrs:t,slots:n,features:ur.RenderStrategy|ur.Static,visible:p.value,name:"ListboxOptions"})}}}),bv=ge({name:"ListboxOption",props:{as:{type:[Object,String],default:"li"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1},id:{type:String,default:null}},setup(e,{slots:t,attrs:n,expose:r}){var o;let i=(o=e.id)!=null?o:`headlessui-listbox-option-${qt()}`,l=Ja("ListboxOption"),a=$e(null);r({el:a,$el:a});let c=fe(()=>l.activeOptionIndex.value!==null?l.options.value[l.activeOptionIndex.value].id===i:!1),d=fe(()=>kt(l.mode.value,{0:()=>l.compare(He(l.value.value),He(e.value)),1:()=>He(l.value.value).some(E=>l.compare(He(E),He(e.value)))})),p=fe(()=>kt(l.mode.value,{1:()=>{var E;let O=He(l.value.value);return((E=l.options.value.find($=>O.some(P=>l.compare(He(P),He($.dataRef.value)))))==null?void 0:E.id)===i},0:()=>d.value})),h=KH(a),v=fe(()=>({disabled:e.disabled,value:e.value,get textValue(){return h()},domRef:a}));wt(()=>l.registerOption(i,v)),en(()=>l.unregisterOption(i)),wt(()=>{Ut([l.listboxState,d],()=>{l.listboxState.value===0&&d.value&&kt(l.mode.value,{1:()=>{p.value&&l.goToOption(Ct.Specific,i)},0:()=>{l.goToOption(Ct.Specific,i)}})},{immediate:!0})}),Vt(()=>{l.listboxState.value===0&&c.value&&l.activationTrigger.value!==0&&sn(()=>{var E,O;return(O=(E=de(a))==null?void 0:E.scrollIntoView)==null?void 0:O.call(E,{block:"nearest"})})});function y(E){if(e.disabled)return E.preventDefault();l.select(e.value),l.mode.value===0&&(l.closeListbox(),sn(()=>{var O;return(O=de(l.buttonRef))==null?void 0:O.focus({preventScroll:!0})}))}function b(){if(e.disabled)return l.goToOption(Ct.Nothing);l.goToOption(Ct.Specific,i)}let S=oT();function T(E){S.update(E)}function C(E){S.wasMoved(E)&&(e.disabled||c.value||l.goToOption(Ct.Specific,i,0))}function w(E){S.wasMoved(E)&&(e.disabled||c.value&&l.goToOption(Ct.Nothing))}return()=>{let{disabled:E}=e,O={active:c.value,selected:d.value,disabled:E},{value:$,disabled:P,...R}=e,k={id:i,ref:a,role:"option",tabIndex:E===!0?void 0:-1,"aria-disabled":E===!0?!0:void 0,"aria-selected":d.value,disabled:void 0,onClick:y,onFocus:b,onPointerenter:T,onMouseenter:T,onPointermove:C,onMousemove:C,onPointerleave:w,onMouseleave:w};return xt({ourProps:k,theirProps:R,slot:O,attrs:n,slots:t,name:"ListboxOption"})}}});var QH=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(QH||{});let kT=Symbol("PopoverContext");function df(e){let t=Ft(kT,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <${LT.name} /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,df),n}return t}let IT=Symbol("PopoverGroupContext");function PT(){return Ft(IT,null)}let RT=Symbol("PopoverPanelContext");function ez(){return Ft(RT,null)}let LT=ge({name:"Popover",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:n,expose:r}){var o;let i=$e(null);r({el:i,$el:i});let l=$e(1),a=$e(null),c=$e(null),d=$e(null),p=$e(null),h=fe(()=>Gr(i)),v=fe(()=>{var $,P;if(!de(a)||!de(p))return!1;for(let X of document.querySelectorAll("body > *"))if(Number(X==null?void 0:X.contains(de(a)))^Number(X==null?void 0:X.contains(de(p))))return!0;let R=sf(),k=R.indexOf(de(a)),W=(k+R.length-1)%R.length,U=(k+1)%R.length,j=R[W],G=R[U];return!(($=de(p))!=null&&$.contains(j))&&!((P=de(p))!=null&&P.contains(G))}),y={popoverState:l,buttonId:$e(null),panelId:$e(null),panel:p,button:a,isPortalled:v,beforePanelSentinel:c,afterPanelSentinel:d,togglePopover(){l.value=kt(l.value,{0:1,1:0})},closePopover(){l.value!==1&&(l.value=1)},close($){y.closePopover();let P=$?$ instanceof HTMLElement?$:$.value instanceof HTMLElement?de($):de(y.button):de(y.button);P==null||P.focus()}};Qt(kT,y),cf(fe(()=>kt(l.value,{0:Lt.Open,1:Lt.Closed})));let b={buttonId:y.buttonId,panelId:y.panelId,close(){y.closePopover()}},S=PT(),T=S==null?void 0:S.registerPopover,[C,w]=CT(),E=wT({mainTreeNodeRef:S==null?void 0:S.mainTreeNodeRef,portals:C,defaultContainers:[a,p]});function O(){var $,P,R,k;return(k=S==null?void 0:S.isFocusWithinPopoverGroup())!=null?k:(($=h.value)==null?void 0:$.activeElement)&&(((P=de(a))==null?void 0:P.contains(h.value.activeElement))||((R=de(p))==null?void 0:R.contains(h.value.activeElement)))}return Vt(()=>T==null?void 0:T(b)),hv((o=h.value)==null?void 0:o.defaultView,"focus",$=>{var P,R;$.target!==window&&$.target instanceof HTMLElement&&l.value===0&&(O()||a&&p&&(E.contains($.target)||(P=de(y.beforePanelSentinel))!=null&&P.contains($.target)||(R=de(y.afterPanelSentinel))!=null&&R.contains($.target)||y.closePopover()))},!0),af(E.resolveContainers,($,P)=>{var R;y.closePopover(),cv(P,lf.Loose)||($.preventDefault(),(R=de(a))==null||R.focus())},fe(()=>l.value===0)),()=>{let $={open:l.value===0,close:y.close};return pt(Me,[pt(w,{},()=>xt({theirProps:{...e,...n},ourProps:{ref:i},slot:$,slots:t,attrs:n,name:"Popover"})),pt(E.MainTreeNode)])}}}),tz=ge({name:"PopoverButton",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1},id:{type:String,default:null}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:r}){var o;let i=(o=e.id)!=null?o:`headlessui-popover-button-${qt()}`,l=df("PopoverButton"),a=fe(()=>Gr(l.button));r({el:l.button,$el:l.button}),wt(()=>{l.buttonId.value=i}),en(()=>{l.buttonId.value=null});let c=PT(),d=c==null?void 0:c.closeOthers,p=ez(),h=fe(()=>p===null?!1:p.value===l.panelId.value),v=$e(null),y=`headlessui-focus-sentinel-${qt()}`;h.value||Vt(()=>{l.button.value=de(v)});let b=uf(fe(()=>({as:e.as,type:t.type})),v);function S($){var P,R,k,W,U;if(h.value){if(l.popoverState.value===1)return;switch($.key){case at.Space:case at.Enter:$.preventDefault(),(R=(P=$.target).click)==null||R.call(P),l.closePopover(),(k=de(l.button))==null||k.focus();break}}else switch($.key){case at.Space:case at.Enter:$.preventDefault(),$.stopPropagation(),l.popoverState.value===1&&(d==null||d(l.buttonId.value)),l.togglePopover();break;case at.Escape:if(l.popoverState.value!==0)return d==null?void 0:d(l.buttonId.value);if(!de(l.button)||(W=a.value)!=null&&W.activeElement&&!((U=de(l.button))!=null&&U.contains(a.value.activeElement)))return;$.preventDefault(),$.stopPropagation(),l.closePopover();break}}function T($){h.value||$.key===at.Space&&$.preventDefault()}function C($){var P,R;e.disabled||(h.value?(l.closePopover(),(P=de(l.button))==null||P.focus()):($.preventDefault(),$.stopPropagation(),l.popoverState.value===1&&(d==null||d(l.buttonId.value)),l.togglePopover(),(R=de(l.button))==null||R.focus()))}function w($){$.preventDefault(),$.stopPropagation()}let E=mv();function O(){let $=de(l.panel);if(!$)return;function P(){kt(E.value,{[_r.Forwards]:()=>no($,Mn.First),[_r.Backwards]:()=>no($,Mn.Last)})===Ca.Error&&no(sf().filter(R=>R.dataset.headlessuiFocusGuard!=="true"),kt(E.value,{[_r.Forwards]:Mn.Next,[_r.Backwards]:Mn.Previous}),{relativeTo:de(l.button)})}P()}return()=>{let $=l.popoverState.value===0,P={open:$},{...R}=e,k=h.value?{ref:v,type:b.value,onKeydown:S,onClick:C}:{ref:v,id:i,type:b.value,"aria-expanded":l.popoverState.value===0,"aria-controls":de(l.panel)?l.panelId.value:void 0,disabled:e.disabled?!0:void 0,onKeydown:S,onKeyup:T,onClick:C,onMousedown:w};return pt(Me,[xt({ourProps:k,theirProps:{...t,...R},slot:P,attrs:t,slots:n,name:"PopoverButton"}),$&&!h.value&&l.isPortalled.value&&pt(To,{id:y,features:lo.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:O})])}}});ge({name:"PopoverOverlay",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0}},setup(e,{attrs:t,slots:n}){let r=df("PopoverOverlay"),o=`headlessui-popover-overlay-${qt()}`,i=vi(),l=fe(()=>i!==null?(i.value&Lt.Open)===Lt.Open:r.popoverState.value===0);function a(){r.closePopover()}return()=>{let c={open:r.popoverState.value===0};return xt({ourProps:{id:o,"aria-hidden":!0,onClick:a},theirProps:e,slot:c,attrs:t,slots:n,features:ur.RenderStrategy|ur.Static,visible:l.value,name:"PopoverOverlay"})}}});let nz=ge({name:"PopoverPanel",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},focus:{type:Boolean,default:!1},id:{type:String,default:null}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:r}){var o;let i=(o=e.id)!=null?o:`headlessui-popover-panel-${qt()}`,{focus:l}=e,a=df("PopoverPanel"),c=fe(()=>Gr(a.panel)),d=`headlessui-focus-sentinel-before-${qt()}`,p=`headlessui-focus-sentinel-after-${qt()}`;r({el:a.panel,$el:a.panel}),wt(()=>{a.panelId.value=i}),en(()=>{a.panelId.value=null}),Qt(RT,a.panelId),Vt(()=>{var w,E;if(!l||a.popoverState.value!==0||!a.panel)return;let O=(w=c.value)==null?void 0:w.activeElement;(E=de(a.panel))!=null&&E.contains(O)||no(de(a.panel),Mn.First)});let h=vi(),v=fe(()=>h!==null?(h.value&Lt.Open)===Lt.Open:a.popoverState.value===0);function y(w){var E,O;switch(w.key){case at.Escape:if(a.popoverState.value!==0||!de(a.panel)||c.value&&!((E=de(a.panel))!=null&&E.contains(c.value.activeElement)))return;w.preventDefault(),w.stopPropagation(),a.closePopover(),(O=de(a.button))==null||O.focus();break}}function b(w){var E,O,$,P,R;let k=w.relatedTarget;k&&de(a.panel)&&((E=de(a.panel))!=null&&E.contains(k)||(a.closePopover(),(($=(O=de(a.beforePanelSentinel))==null?void 0:O.contains)!=null&&$.call(O,k)||(R=(P=de(a.afterPanelSentinel))==null?void 0:P.contains)!=null&&R.call(P,k))&&k.focus({preventScroll:!0})))}let S=mv();function T(){let w=de(a.panel);if(!w)return;function E(){kt(S.value,{[_r.Forwards]:()=>{var O;no(w,Mn.First)===Ca.Error&&((O=de(a.afterPanelSentinel))==null||O.focus())},[_r.Backwards]:()=>{var O;(O=de(a.button))==null||O.focus({preventScroll:!0})}})}E()}function C(){let w=de(a.panel);if(!w)return;function E(){kt(S.value,{[_r.Forwards]:()=>{let O=de(a.button),$=de(a.panel);if(!O)return;let P=sf(),R=P.indexOf(O),k=P.slice(0,R+1),W=[...P.slice(R+1),...k];for(let U of W.slice())if(U.dataset.headlessuiFocusGuard==="true"||$!=null&&$.contains(U)){let j=W.indexOf(U);j!==-1&&W.splice(j,1)}no(W,Mn.First,{sorted:!1})},[_r.Backwards]:()=>{var O;no(w,Mn.Previous)===Ca.Error&&((O=de(a.button))==null||O.focus())}})}E()}return()=>{let w={open:a.popoverState.value===0,close:a.close},{focus:E,...O}=e,$={ref:a.panel,id:i,onKeydown:y,onFocusout:l&&a.popoverState.value===0?b:void 0,tabIndex:-1};return xt({ourProps:$,theirProps:{...t,...O},attrs:t,slot:w,slots:{...n,default:(...P)=>{var R;return[pt(Me,[v.value&&a.isPortalled.value&&pt(To,{id:d,ref:a.beforePanelSentinel,features:lo.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:T}),(R=n.default)==null?void 0:R.call(n,...P),v.value&&a.isPortalled.value&&pt(To,{id:p,ref:a.afterPanelSentinel,features:lo.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:C})])]}},features:ur.RenderStrategy|ur.Static,visible:v.value,name:"PopoverPanel"})}}});ge({name:"PopoverGroup",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"}},setup(e,{attrs:t,slots:n,expose:r}){let o=$e(null),i=gd([]),l=fe(()=>Gr(o)),a=LH();r({el:o,$el:o});function c(v){let y=i.value.indexOf(v);y!==-1&&i.value.splice(y,1)}function d(v){return i.value.push(v),()=>{c(v)}}function p(){var v;let y=l.value;if(!y)return!1;let b=y.activeElement;return(v=de(o))!=null&&v.contains(b)?!0:i.value.some(S=>{var T,C;return((T=y.getElementById(S.buttonId.value))==null?void 0:T.contains(b))||((C=y.getElementById(S.panelId.value))==null?void 0:C.contains(b))})}function h(v){for(let y of i.value)y.buttonId.value!==v&&y.close()}return Qt(IT,{registerPopover:d,unregisterPopover:c,isFocusWithinPopoverGroup:p,closeOthers:h,mainTreeNodeRef:a.mainTreeNodeRef}),()=>pt(Me,[xt({ourProps:{ref:o},theirProps:{...e,...t},slot:{},attrs:t,slots:n,name:"PopoverGroup"}),pt(a.MainTreeNode)])}});let FT=Symbol("LabelContext");function NT(){let e=Ft(FT,null);if(e===null){let t=new Error("You used a <Label /> component, but it is not inside a parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,NT),t}return e}function rz({slot:e={},name:t="Label",props:n={}}={}){let r=$e([]);function o(i){return r.value.push(i),()=>{let l=r.value.indexOf(i);l!==-1&&r.value.splice(l,1)}}return Qt(FT,{register:o,slot:e,name:t,props:n}),fe(()=>r.value.length>0?r.value.join(" "):void 0)}let oz=ge({name:"Label",props:{as:{type:[Object,String],default:"label"},passive:{type:[Boolean],default:!1},id:{type:String,default:null}},setup(e,{slots:t,attrs:n}){var r;let o=(r=e.id)!=null?r:`headlessui-label-${qt()}`,i=NT();return wt(()=>en(i.register(o))),()=>{let{name:l="Label",slot:a={},props:c={}}=i,{passive:d,...p}=e,h={...Object.entries(c).reduce((v,[y,b])=>Object.assign(v,{[y]:vn(b)}),{}),id:o};return d&&(delete h.onClick,delete h.htmlFor,delete p.onClick),xt({ourProps:h,theirProps:p,slot:a,attrs:n,slots:t,name:l})}}}),MT=Symbol("GroupContext"),sz=ge({name:"SwitchGroup",props:{as:{type:[Object,String],default:"template"}},setup(e,{slots:t,attrs:n}){let r=$e(null),o=rz({name:"SwitchLabel",props:{htmlFor:fe(()=>{var l;return(l=r.value)==null?void 0:l.id}),onClick(l){r.value&&(l.currentTarget.tagName==="LABEL"&&l.preventDefault(),r.value.click(),r.value.focus({preventScroll:!0}))}}}),i=xT({name:"SwitchDescription"});return Qt(MT,{switchRef:r,labelledby:o,describedby:i}),()=>xt({theirProps:e,ourProps:{},slot:{},slots:t,attrs:n,name:"SwitchGroup"})}}),DT=ge({name:"Switch",emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:"button"},modelValue:{type:Boolean,default:void 0},defaultChecked:{type:Boolean,optional:!0},form:{type:String,optional:!0},name:{type:String,optional:!0},value:{type:String,optional:!0},id:{type:String,default:null},disabled:{type:Boolean,default:!1},tabIndex:{type:Number,default:0}},inheritAttrs:!1,setup(e,{emit:t,attrs:n,slots:r,expose:o}){var i;let l=(i=e.id)!=null?i:`headlessui-switch-${qt()}`,a=Ft(MT,null),[c,d]=av(fe(()=>e.modelValue),w=>t("update:modelValue",w),fe(()=>e.defaultChecked));function p(){d(!c.value)}let h=$e(null),v=a===null?h:a.switchRef,y=uf(fe(()=>({as:e.as,type:n.type})),v);o({el:v,$el:v});function b(w){w.preventDefault(),p()}function S(w){w.key===at.Space?(w.preventDefault(),p()):w.key===at.Enter&&mH(w.currentTarget)}function T(w){w.preventDefault()}let C=fe(()=>{var w,E;return(E=(w=de(v))==null?void 0:w.closest)==null?void 0:E.call(w,"form")});return wt(()=>{Ut([C],()=>{if(!C.value||e.defaultChecked===void 0)return;function w(){d(e.defaultChecked)}return C.value.addEventListener("reset",w),()=>{var E;(E=C.value)==null||E.removeEventListener("reset",w)}},{immediate:!0})}),()=>{let{name:w,value:E,form:O,tabIndex:$,...P}=e,R={checked:c.value},k={id:l,ref:v,role:"switch",type:y.value,tabIndex:$===-1?0:$,"aria-checked":c.value,"aria-labelledby":a==null?void 0:a.labelledby.value,"aria-describedby":a==null?void 0:a.describedby.value,onClick:b,onKeyup:S,onKeypress:T};return pt(Me,[w!=null&&c.value!=null?pt(To,fv({features:lo.Hidden,as:"input",type:"checkbox",hidden:!0,readOnly:!0,checked:c.value,form:O,disabled:P.disabled,name:w,value:E})):null,xt({ourProps:k,theirProps:{...n,...gi(P,["modelValue","defaultChecked"])},slot:R,attrs:n,slots:r,name:"Switch"})])}}}),iz=oz;function lz(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function ah(e,...t){e&&t.length>0&&e.classList.add(...t)}function dc(e,...t){e&&t.length>0&&e.classList.remove(...t)}var fm=(e=>(e.Finished="finished",e.Cancelled="cancelled",e))(fm||{});function az(e,t){let n=xs();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:o}=getComputedStyle(e),[i,l]=[r,o].map(a=>{let[c=0]=a.split(",").filter(Boolean).map(d=>d.includes("ms")?parseFloat(d):parseFloat(d)*1e3).sort((d,p)=>p-d);return c});return i!==0?n.setTimeout(()=>t("finished"),i+l):t("finished"),n.add(()=>t("cancelled")),n.dispose}function yb(e,t,n,r,o,i){let l=xs(),a=i!==void 0?lz(i):()=>{};return dc(e,...o),ah(e,...t,...n),l.nextFrame(()=>{dc(e,...n),ah(e,...r),l.add(az(e,c=>(dc(e,...r,...t),ah(e,...o),a(c))))}),l.add(()=>dc(e,...t,...n,...r,...o)),l.add(()=>a("cancelled")),l.dispose}function Hs(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let wv=Symbol("TransitionContext");var uz=(e=>(e.Visible="visible",e.Hidden="hidden",e))(uz||{});function cz(){return Ft(wv,null)!==null}function dz(){let e=Ft(wv,null);if(e===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return e}function fz(){let e=Ft(Sv,null);if(e===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return e}let Sv=Symbol("NestingContext");function ff(e){return"children"in e?ff(e.children):e.value.filter(({state:t})=>t==="visible").length>0}function UT(e){let t=$e([]),n=$e(!1);wt(()=>n.value=!0),en(()=>n.value=!1);function r(i,l=gs.Hidden){let a=t.value.findIndex(({id:c})=>c===i);a!==-1&&(kt(l,{[gs.Unmount](){t.value.splice(a,1)},[gs.Hidden](){t.value[a].state="hidden"}}),!ff(t)&&n.value&&(e==null||e()))}function o(i){let l=t.value.find(({id:a})=>a===i);return l?l.state!=="visible"&&(l.state="visible"):t.value.push({id:i,state:"visible"}),()=>r(i,gs.Unmount)}return{children:t,register:o,unregister:r}}let BT=ur.RenderStrategy,jT=ge({props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(e,{emit:t,attrs:n,slots:r,expose:o}){let i=$e(0);function l(){i.value|=Lt.Opening,t("beforeEnter")}function a(){i.value&=~Lt.Opening,t("afterEnter")}function c(){i.value|=Lt.Closing,t("beforeLeave")}function d(){i.value&=~Lt.Closing,t("afterLeave")}if(!cz()&&fH())return()=>pt(VT,{...e,onBeforeEnter:l,onAfterEnter:a,onBeforeLeave:c,onAfterLeave:d},r);let p=$e(null),h=fe(()=>e.unmount?gs.Unmount:gs.Hidden);o({el:p,$el:p});let{show:v,appear:y}=dz(),{register:b,unregister:S}=fz(),T=$e(v.value?"visible":"hidden"),C={value:!0},w=qt(),E={value:!1},O=UT(()=>{!E.value&&T.value!=="hidden"&&(T.value="hidden",S(w),d())});wt(()=>{let X=b(w);en(X)}),Vt(()=>{if(h.value===gs.Hidden&&w){if(v.value&&T.value!=="visible"){T.value="visible";return}kt(T.value,{hidden:()=>S(w),visible:()=>b(w)})}});let $=Hs(e.enter),P=Hs(e.enterFrom),R=Hs(e.enterTo),k=Hs(e.entered),W=Hs(e.leave),U=Hs(e.leaveFrom),j=Hs(e.leaveTo);wt(()=>{Vt(()=>{if(T.value==="visible"){let X=de(p);if(X instanceof Comment&&X.data==="")throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}})});function G(X){let ne=C.value&&!y.value,xe=de(p);!xe||!(xe instanceof HTMLElement)||ne||(E.value=!0,v.value&&l(),v.value||c(),X(v.value?yb(xe,$,P,R,k,Ee=>{E.value=!1,Ee===fm.Finished&&a()}):yb(xe,W,U,j,k,Ee=>{E.value=!1,Ee===fm.Finished&&(ff(O)||(T.value="hidden",S(w),d()))})))}return wt(()=>{Ut([v],(X,ne,xe)=>{G(xe),C.value=!1},{immediate:!0})}),Qt(Sv,O),cf(fe(()=>kt(T.value,{visible:Lt.Open,hidden:Lt.Closed})|i.value)),()=>{let{appear:X,show:ne,enter:xe,enterFrom:Ee,enterTo:ke,entered:Ie,leave:Qe,leaveFrom:ht,leaveTo:De,...Xe}=e,Q={ref:p},ce={...Xe,...y.value&&v.value&&Xa.isServer?{class:gt([n.class,Xe.class,...$,...P])}:{}};return xt({theirProps:ce,ourProps:Q,slot:{},slots:r,attrs:n,features:BT,visible:T.value==="visible",name:"TransitionChild"})}}}),pz=jT,VT=ge({inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(e,{emit:t,attrs:n,slots:r}){let o=vi(),i=fe(()=>e.show===null&&o!==null?(o.value&Lt.Open)===Lt.Open:e.show);Vt(()=>{if(![!0,!1].includes(i.value))throw new Error('A <Transition /> is used but it is missing a `:show="true | false"` prop.')});let l=$e(i.value?"visible":"hidden"),a=UT(()=>{l.value="hidden"}),c=$e(!0),d={show:i,appear:fe(()=>e.appear||!c.value)};return wt(()=>{Vt(()=>{c.value=!1,i.value?l.value="visible":ff(a)||(l.value="hidden")})}),Qt(Sv,a),Qt(wv,d),()=>{let p=gi(e,["show","appear","unmount","onBeforeEnter","onBeforeLeave","onAfterEnter","onAfterLeave"]),h={unmount:e.unmount};return xt({ourProps:{...h,as:"template"},theirProps:{},slot:{},slots:{...r,default:()=>[pt(pz,{onBeforeEnter:()=>t("beforeEnter"),onAfterEnter:()=>t("afterEnter"),onBeforeLeave:()=>t("beforeLeave"),onAfterLeave:()=>t("afterLeave"),...n,...h,...p},r.default)]},attrs:{},features:BT,visible:l.value==="visible",name:"Transition"})}}});const hz=ge({components:{Dialog:HH,DialogOverlay:zH,TransitionChild:jT,TransitionRoot:VT,XIcon:ml},props:{open:{type:Boolean,default:!0},size:{type:String,default:"small"}},methods:{close(){this.$emit("close")}}}),mz={class:"fixed inset-0 overflow-y-auto font-sans",style:{"z-index":"10000"}},gz={class:"flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0"},vz=m("span",{class:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true"},"",-1),yz={class:"hidden sm:block absolute top-0 right-0 pt-4 pr-4"},_z=m("span",{class:"sr-only"},"Close",-1);function bz(e,t,n,r,o,i){const l=q("DialogOverlay"),a=q("TransitionChild"),c=q("XIcon"),d=q("Dialog"),p=q("TransitionRoot");return I(),Ye(p,{as:"template",show:e.open},{default:_e(()=>[z(d,{as:"div",onClose:t[1]||(t[1]=h=>e.close()),"data-client":"podlove"},{default:_e(()=>[m("div",mz,[m("div",gz,[z(a,{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"ease-in duration-200","leave-from":"opacity-100","leave-to":"opacity-0"},{default:_e(()=>[z(l,{class:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"})]),_:1}),vz,z(a,{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95","enter-to":"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200","leave-from":"opacity-100 translate-y-0 sm:scale-100","leave-to":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"},{default:_e(()=>[m("div",{class:gt(["relative inline-block align-bottom bg-white rounded-lg px-4 pt-5 pb-4 text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:w-full sm:p-6",{"sm:max-w-sm":e.size==="small","sm:max-w-md":e.size==="medium"}])},[m("div",yz,[m("button",{type:"button",class:"bg-white rounded-md text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",onClick:t[0]||(t[0]=h=>e.close())},[_z,z(c,{class:"h-6 w-6","aria-hidden":"true"})])]),yn(e.$slots,"default")],2)]),_:3})])])]),_:3})]),_:3},8,["show"])}const Za=Le(hz,[["render",bz]]),wz=ge({props:{variant:{type:String,default:"default"},size:{type:String,default:"medium"},disabled:{type:Boolean,default:!1}},computed:{variantClass(){switch(this.variant){case"default":return"focus:outline-none text-gray-700 bg-white border border-gray-300 hover:bg-gray-50 focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 disabled:bg-gray-100";case"primary":return"focus:ring-offset-2 text-white focus:ring-indigo-500 bg-indigo-600 hover:bg-indigo-700 disabled:bg-indigo-300";case"primary-disabled":return"focus:ring-offset-2 text-white focus:ring-indigo-500 bg-indigo-600 opacity-50 cursor-not-allowed";case"secondary":return"focus:ring-offset-2 text-indigo-700 focus:ring-indigo-500 bg-indigo-100 hover:bg-indigo-200 disabled:bg-indigo-50";case"secondary-disabled":return"focus:ring-offset-2 text-indigo-700 focus:ring-indigo-500 bg-indigo-100 disabled:bg-indigo-50 opacity-50 cursor-not-allowed";case"danger":return"bg-red-600 text-white hover:bg-red-700 focus:ring-2 focus:ring-offset-2 focus:ring-red-500 disabled:bg-red-300"}},sizeClass(){switch(this.size){case"small":return"px-2.5 py-1.5 text-xs font-medium rounded ";case"medium":return"px-3 py-2 text-sm leading-4 font-medium rounded-md";case"large":return"px-6 py-3 text-base font-medium rounded-md"}}}}),Sz=["disabled"];function Ez(e,t,n,r,o,i){return I(),F("button",{type:"button",class:gt(["inline-flex items-center focus:outline-none focus:ring-2 border border-transparent shadow-sm whitespace-nowrap disabled:opacity-75",[e.variantClass,e.sizeClass]]),disabled:e.disabled},[yn(e.$slots,"default")],10,Sz)}const Pn=Le(wz,[["render",Ez]]),$z=ge({components:{PodloveButton:Pn,Modal:Za,PencilIcon:Jx,XIcon:ml},setup(){return{state:ut({poster:B.episode.poster,episodePoster:B.episode.episodePoster,asset:B.settings.imageAsset}),dispatch:Ze().dispatch}},data(){return{modalOpen:!1,inputValue:null}},computed:{posterStyle(){const e=this.state.episodePoster||this.state.poster;return e===null?{}:{"background-image":`url(${e})`}}},methods:{openModal(){this.modalOpen=!0},closeModal(){this.modalOpen=!1},selectImage(){this.dispatch(kM())},updatePoster(e){const t=Y.get(e,["target","value"],null);this.dispatch(bt({prop:"episode_poster",value:t}))}}}),xz={class:"border-gray-200 border-b pb-2 px-4 -mx-6 mb-4"},Tz={class:"text-lg leading-6 font-medium text-gray-900"},Cz={class:"relative"},Oz=["value"],Az=["title"],kz={class:"mt-2 text-sm text-gray-500"},Iz={class:"mt-2 flex justify-end"},Pz={class:"block text-sm font-medium text-gray-700"},Rz={key:0,class:"absolute z-10 left-0 top-0 w-full h-full flex justify-center items-center bg-white bg-opacity-40 hover:opacity-0 text-gray-500 opacity-100"},Lz={key:1,class:"absolute z-10 left-0 top-0 w-full h-full flex flex-col justify-center items-center bg-white bg-opacity-50 text-gray-500 opacity-0 hover:opacity-100"},Fz={class:"w-full text-center"},Nz={class:"w-full text-center"},Mz={class:"w-full text-center"};function Dz(e,t,n,r,o,i){const l=q("x-icon"),a=q("podlove-button"),c=q("modal"),d=q("pencil-icon");return I(),F("div",null,[z(c,{size:"medium",open:e.modalOpen,onClose:t[3]||(t[3]=p=>e.closeModal())},{default:_e(()=>[m("div",xz,[m("h3",Tz,L(e.__("Episode Poster","podlove-podcasting-plugin-for-wordpress")),1)]),m("div",Cz,[m("input",{name:"episode-poster",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md pr-8",value:e.state.episodePoster,onChange:t[0]||(t[0]=p=>e.updatePoster(p))},null,40,Oz),m("button",{class:"absolute right-2 top-1/2 -mt-3 text-gray-400 hover:text-gray-700",title:e.__("Clear Input","podlove-podcasting-plugin-for-wordpress"),onClick:t[1]||(t[1]=p=>e.updatePoster(null))},[z(l,{class:"w-6 h-6"})],8,Az)]),m("p",kz,L(e.__("Enter URL or select image from media library. Apple/iTunes recommends 3000 x 3000 pixel JPG or PNG","podlove-podcasting-plugin-for-wordpress")),1),m("p",Iz,[z(a,{variant:"primary",onClick:t[2]||(t[2]=p=>e.closeModal())},{default:_e(()=>[Be(L(e.__("Use this URL","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})])]),_:1},8,["open"]),m("label",Pz,L(e.__("Poster","podlove-podcasting-plugin-for-wordpress")),1),m("div",{class:"border shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block relative w-44 h-44 sm:text-sm border-gray-300 rounded-md mt-1 overflow-hidden bg-cover bg-no-repeat bg-center",style:so(e.posterStyle)},[e.state.asset==="manual"?(I(),F("div",Rz,[z(d,{class:"h-6 w-6","aria-hidden":"true"})])):Te("",!0),e.state.asset==="manual"?(I(),F("div",Lz,[z(a,{onClick:t[4]||(t[4]=p=>e.openModal()),class:"w-32 mb-2"},{default:_e(()=>[m("span",Fz,L(e.__("URL","podlove-podcasting-plugin-for-wordpress")),1)]),_:1}),z(a,{class:"w-32 text-center mb-2",onClick:t[5]||(t[5]=p=>e.selectImage())},{default:_e(()=>[m("span",Nz,L(e.__("Media","podlove-podcasting-plugin-for-wordpress")),1)]),_:1}),z(a,{variant:"danger",class:"w-32 text-center",disabled:e.state.episodePoster===null,onClick:t[6]||(t[6]=p=>e.updatePoster(null))},{default:_e(()=>[m("span",Mz,L(e.__("Reset","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["disabled"])])):Te("",!0)],4)])}const Uz=Le($z,[["render",Dz]]),Bz=ge({components:{Module:In},setup(){return{state:ut({number:B.episode.number}),dispatch:Ze().dispatch}},methods:{updateNumber(e){this.dispatch(bt({prop:"number",value:e.target.value}))}}}),jz={for:"episode-number",class:"block text-sm font-medium text-gray-700"},Vz={class:"mt-1 mb-1"},Hz=["value"],zz={class:"mt-2 text-sm text-gray-500"};function Wz(e,t,n,r,o,i){return I(),F("div",null,[m("label",jz,L(e.__("Number","podlove-podcasting-plugin-for-wordpress")),1),m("div",Vz,[m("input",{name:"episode-number",type:"number",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",value:e.state.number,onInput:t[0]||(t[0]=l=>e.updateNumber(l))},null,40,Hz)]),m("p",zz,L(e.__("An episode number (1, 2, 3 etc.)","podlove-podcasting-plugin-for-wordpress")),1)])}const qz=Le(Bz,[["render",Wz]]),Kz=ge({setup(){return{state:ut({explicit:B.episode.explicit}),dispatch:Ze().dispatch}},methods:{updateExplicit(e){this.dispatch(bt({prop:"explicit",value:e.target.checked}))}}}),Gz={class:"relative flex items-start"},Xz={class:"flex items-center h-5"},Yz=["checked"],Jz={class:"ml-3 text-sm"},Zz={for:"explicit-content",class:"font-medium text-gray-700"},Qz={class:"text-gray-500"};function eW(e,t,n,r,o,i){return I(),F("div",Gz,[m("div",Xz,[m("input",{id:"explicit-content",type:"checkbox",class:"focus:ring-indigo-500 h-4 w-4 text-indigo-600 border-gray-300 rounded",checked:e.state.explicit,onInput:t[0]||(t[0]=l=>e.updateExplicit(l))},null,40,Yz)]),m("div",Jz,[m("label",Zz,L(e.state.explicit?e.__("Explicit Content!","podlove-podcasting-plugin-for-wordpress"):e.__("Explicit Content?","podlove-podcasting-plugin-for-wordpress")),1),m("p",Qz,L(e.__("For example, profanity or content that may not be suitable for children","podlove-podcasting-plugin-for-wordpress")),1)])])}const tW=Le(Kz,[["render",eW]]),nW=ge({components:{Module:In},setup(){return{state:ut({title:B.episode.title,post_title:B.post.title}),dispatch:Ze().dispatch}},methods:{updateTitle(e){this.dispatch(bt({prop:"title",value:e.target.value}))}}}),rW={for:"episode-title",class:"block text-sm font-medium text-gray-700"},oW={class:"mt-1"},sW=["value","placeholder"],iW={class:"mt-2 text-sm text-gray-500"};function lW(e,t,n,r,o,i){return I(),F("div",null,[m("label",rW,L(e.__("Title","podlove-podcasting-plugin-for-wordpress")),1),m("div",oW,[m("input",{name:"episode-title",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",value:e.state.title,placeholder:e.state.post_title,onInput:t[0]||(t[0]=l=>e.updateTitle(l))},null,40,sW)]),m("p",iW,L(e.__("Clear, concise name for your episode. It is recommended to not include the podcast title, episode number, season number or date in this tag.","podlove-podcasting-plugin-for-wordpress")),1)])}const aW=Le(nW,[["render",lW]]),uW=ge({setup(){const e=ut({subtitle:B.episode.subtitle}),t=fe(()=>{var n;return 255-(((n=e==null?void 0:e.subtitle)==null?void 0:n.length)||"")});return{state:e,charactersLeft:t,dispatch:Ze().dispatch}},methods:{updateSubtitle(e){this.dispatch(bt({prop:"subtitle",value:e.target.value}))}}}),cW={for:"subtitle",class:"block text-sm font-medium text-gray-700"},dW={class:"mt-1"},fW=["value"],pW={class:"mt-2 text-sm text-gray-500 flex justify-between"};function hW(e,t,n,r,o,i){return I(),F("div",null,[m("label",cW,L(e.__("Subtitle","podlove-podcasting-plugin-for-wordpress")),1),m("div",dW,[m("textarea",{id:"subtitle",name:"subtitle",maxlength:"250",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 mt-1 block w-full sm:text-sm border border-gray-300 rounded-md resize-y",value:e.state.subtitle,onInput:t[0]||(t[0]=l=>e.updateSubtitle(l))},null,40,fW)]),m("p",pW,[m("span",null,L(e.__("Single sentence describing the episode.","podlove-podcasting-plugin-for-wordpress")),1),m("span",null,L(e.charactersLeft),1)])])}const mW=Le(uW,[["render",hW]]),gW=ge({setup(){const e=ut({summary:B.episode.summary}),t=fe(()=>{var n;return 4e3-(((n=e==null?void 0:e.summary)==null?void 0:n.length)||"")});return{state:e,charactersLeft:t,dispatch:Ze().dispatch}},methods:{updateSummary(e){this.dispatch(bt({prop:"summary",value:e.target.value}))}}}),vW={for:"summary",class:"block text-sm font-medium text-gray-700"},yW={class:"mt-1"},_W=["value"],bW={class:"mt-2 text-sm text-gray-500 flex justify-end"};function wW(e,t,n,r,o,i){return I(),F("div",null,[m("label",vW,L(e.__("Summary","podlove-podcasting-plugin-for-wordpress")),1),m("div",yW,[m("textarea",{id:"summary",name:"summary",maxlength:"4000",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 mt-1 block w-full sm:text-sm border border-gray-300 rounded-md resize-y",value:e.state.summary,onInput:t[0]||(t[0]=l=>e.updateSummary(l))},null,40,_W)]),m("p",bW,[m("span",null,L(e.charactersLeft),1)])])}const SW=Le(gW,[["render",wW]]),EW=ge({components:{Module:In},setup(){return{state:ut({type:B.episode.type}),dispatch:Ze().dispatch}},methods:{updateType(e){this.dispatch(bt({prop:"type",value:e.target.value}))}}}),$W={for:"episode-type",class:"block text-sm font-medium text-gray-700"},xW={class:"mt-1"},TW=["value"],CW={value:"full"},OW={value:"trailer"},AW={value:"bonus"},kW={class:"mt-2 text-sm text-gray-500"};function IW(e,t,n,r,o,i){return I(),F("div",null,[m("label",$W,L(e.__("Type","podlove-podcasting-plugin-for-wordpress")),1),m("div",xW,[m("select",{name:"episode-type",class:"block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm rounded-md",value:e.state.type,onInput:t[0]||(t[0]=l=>e.updateType(l))},[m("option",null,L(e.__("Please choose ...","podlove-podcasting-plugin-for-wordpress")),1),m("option",CW,L(e.__("full (complete content of an episode)","podlove-podcasting-plugin-for-wordpress")),1),m("option",OW,L(e.__("trailer (short, promotional piece of content that represents a preview of an episode)","podlove-podcasting-plugin-for-wordpress")),1),m("option",AW,L(e.__("bonus (extra content for an episode, for example behind the scenes information)","podlove-podcasting-plugin-for-wordpress")),1)],40,TW)]),m("p",kW,L(e.__("Episode type. May be used by podcast clients.","podlove-podcasting-plugin-for-wordpress")),1)])}const PW=Le(EW,[["render",IW]]),RW=ge({components:{Module:In,EpisodePoster:Uz,EpisodeNumber:qz,EpisodeContent:tW,EpisodeTitle:aW,EpisodeSubtitle:mW,EpisodeSummary:SW,EpisodeType:PW},setup(){return{state:ut({explicitContentEnabled:B.settings.enableEpisodeExplicit}),dispatch:Ze().dispatch}},created(){this.dispatch(zd())}}),LW={class:"p-3"},FW={class:"flex justify-items-stretch mb-5"},NW={class:"mb-2 w-full"},MW={class:"flex mb-5"},DW={class:"mb-5"},UW={class:"mb-5"};function BW(e,t,n,r,o,i){const l=q("episode-poster"),a=q("episode-number"),c=q("episode-content"),d=q("episode-type"),p=q("episode-title"),h=q("episode-subtitle"),v=q("episode-summary"),y=q("module");return I(),Ye(y,{name:"description",title:e.__("Episode Description","podlove-podcasting-plugin-for-wordpress")},{default:_e(()=>[m("div",LW,[m("div",FW,[z(l,{class:"mr-5"}),m("div",NW,[m("div",MW,[z(a,{class:"w-full"}),e.state.explicitContentEnabled?(I(),Ye(c,{key:0,class:"ml-5 w-full"})):Te("",!0)]),z(d,{class:"w-full"})])]),m("div",DW,[z(p,{class:"w-full"})]),m("div",UW,[z(h,{class:"w-full"})]),m("div",null,[z(v,{class:"w-full"})])])]),_:1},8,["title"])}const jW=Le(RW,[["render",BW]]),VW=ge({data(){return{visible:!1}},props:{name:String},methods:{}}),HW=["data-tab"];function zW(e,t,n,r,o,i){return I(),F("div",{class:"hidden","data-tab":e.name},[yn(e.$slots,"default")],8,HW)}const HT=Le(VW,[["render",zW]]),WW=ge({data(){return{activeTab:"",tabs:[]}},props:{active:{type:String,default:null}},created(){var e,t;this.tabs=((t=(e=this.$slots).default)==null?void 0:t.call(e).map(n=>({name:Y.get(n,["props","name"]),title:Y.get(n,["props","title"])})))||[]},mounted(){this.active?this.toggleTab(this.active):this.toggleTab(Y.get(this.tabs,[0,"name"]))},methods:{toggleTab(e){this.activeTab=e,Array.from(this.$refs.tabs.children).forEach(t=>{t.dataset.tab===e?t.classList.remove("hidden"):t.classList.add("hidden")})}}}),qW={class:"block"},KW={class:"border-b border-gray-200"},GW={class:"-mb-px flex space-x-8 mx-2","aria-label":"Tabs"},XW=["onClick"],YW={ref:"tabs"};function JW(e,t,n,r,o,i){return I(),F("div",null,[m("div",qW,[m("div",KW,[m("nav",GW,[(I(!0),F(Me,null,Ot(e.tabs,l=>(I(),F("button",{onClick:a=>e.toggleTab(l.name),key:l.name,class:gt([l.name===e.activeTab?"border-indigo-500 text-indigo-600":"border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300","group inline-flex items-center py-4 px-1 border-b-2 font-medium text-sm"])},[m("span",null,L(l.title),1)],10,XW))),128))])])]),m("div",YW,[yn(e.$slots,"default")],512)])}const zT=Le(WW,[["render",JW]]),ZW=ge({components:{PodloveButton:Pn,PlusSmIcon:of,BookmarkAltIcon:CV,UploadIcon:xV},setup(){return{state:ut({chapters:B.chapters.list,selected:B.chapters.selected,selectedIndex:B.chapters.selectedIndex,episodeDuration:B.episode.duration}),dispatch:Ze().dispatch}},computed:{selectedIndex(){return this.state.selectedIndex},episodeDuration(){return this.state.episodeDuration?Dt.fromString(this.state.episodeDuration).totalMs:0},chapters(){return this.state.chapters.reduce((e,t,n,r)=>{const o=Y.get(r,n+1),i=o===void 0;let l;i?l=this.episodeDuration?this.episodeDuration-(t.start||0):-1:l=(o.start||0)-(t.start||0);const a=l<=0?"Unknown":new Dt(l).prettyShort;return[...e,{index:n,title:t.title,start:t.start?new Dt(t.start).pretty:new Dt(0).pretty,image:t.image,duration:a}]},[])},hasChapterImages(){return this.chapters.reduce((e,t)=>e||!!t.image,!1)}},methods:{selectChapter(e){e===this.state.selectedIndex?this.dispatch(ms(null)):this.dispatch(ms(e))},updateChapter(e,t){const n=t.target.value;if(this.state.selectedIndex===null)return;let r;switch(e){case"start":r=Dt.fromString(n).totalMs;break;default:r=n}this.dispatch(_M({chapter:{[e]:r},index:this.state.selectedIndex}))},removeChapter(){this.dispatch(bM(this.state.selectedIndex))},async addChapter(){this.dispatch(wM()),this.dispatch(ms(this.state.chapters.length-1));const e=this.$refs.chaptersContainer;await sn(),e.scrollTo({top:e.scrollHeight-e.clientHeight,behavior:"smooth"})},formatTime(e){return new Dt(e).pretty},selectImage(){this.dispatch(xM())}}}),QW={key:0},eq={class:"md:flex p-2 sm:block"},tq={class:"w-full"},nq={class:"h-96 overflow-x-auto",ref:"chaptersContainer"},rq={class:"min-w-full divide-y divide-gray-200 mb-2"},oq={ref:"chapters"},sq=["onClick"],iq={key:0,class:"px-2 py-2 w-16"},lq=["src"],aq={class:"px-3 py-2 w-32 whitespace-nowrap text-sm font-medium text-gray-900 tabular-nums"},uq={class:"px-3 py-2 whitespace-nowrap text-sm text-gray-600"},cq={class:"px-3 py-2 whitespace-nowrap text-sm text-gray-600 text-right tabular-nums"},dq={key:0,class:"md:w-4/12 sm:w-full md:mx-4 md:my-2 mt-0"},fq={class:"mb-5 mt-2"},pq={for:"chapter-title",class:"block text-sm font-medium text-gray-700"},hq={class:"mt-1"},mq=["value"],gq={class:"mb-5"},vq={for:"chapter-href",class:"block text-sm font-medium text-gray-700"},yq={class:"text-xs"},_q={class:"mt-1"},bq=["value"],wq={class:"mb-5"},Sq={for:"chapter-start",class:"block text-sm font-medium text-gray-700"},Eq={class:"mt-1"},$q=["value"],xq={class:"mb-5"},Tq={for:"chapter-image",class:"block text-sm font-medium text-gray-700"},Cq={class:"text-xs"},Oq={class:"mt-1 relative"},Aq=["value"],kq=["title"],Iq={class:"mb-5 ml-1"},Pq={class:"mt-5 ml-5 pb-5"},Rq={key:1,class:"text-center h-96 flex items-center justify-center flex-col"},Lq={class:"mt-2 text-sm font-medium text-gray-900"},Fq={class:"mt-1 text-sm text-gray-500"},Nq={class:"mt-6"};function Mq(e,t,n,r,o,i){const l=q("upload-icon"),a=q("podlove-button"),c=q("plus-sm-icon"),d=q("bookmark-alt-icon");return e.chapters.length>0?(I(),F("div",QW,[m("div",eq,[m("div",tq,[m("div",nq,[m("table",rq,[m("tbody",oq,[(I(!0),F(Me,null,Ot(e.chapters,(p,h)=>(I(),F("tr",{onClick:v=>e.selectChapter(h),key:`chapter-${h}`,class:gt(["cursor-pointer",{"bg-indigo-100":e.selectedIndex===h,active:e.selectedIndex===h,"bg-white":h%2===0&&e.selectedIndex!==h,"bg-gray-50":h%2!==0&&e.selectedIndex!==h}])},[e.hasChapterImages?(I(),F("td",iq,[p!=null&&p.image?(I(),F("img",{key:0,class:"w-12 h-12 rounded",src:p==null?void 0:p.image},null,8,lq)):Te("",!0)])):Te("",!0),m("td",aq,L(p.start),1),m("td",uq,L(p.title),1),m("td",cq,L(p.duration),1)],10,sq))),128))],512)])],512)]),e.state.selected?(I(),F("div",dq,[m("div",fq,[m("label",pq,L(e.__("Title","podlove-podcasting-plugin-for-wordpress")),1),m("div",hq,[m("input",{name:"chapter-title",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",onChange:t[0]||(t[0]=p=>e.updateChapter("title",p)),value:e.state.selected.title},null,40,mq)])]),m("div",gq,[m("label",vq,[Be("Url "),m("span",yq,L(e.__("(optional)","podlove-podcasting-plugin-for-wordpress")),1)]),m("div",_q,[m("input",{name:"chapter-href",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",onChange:t[1]||(t[1]=p=>e.updateChapter("href",p)),value:e.state.selected.href},null,40,bq)])]),m("div",wq,[m("label",Sq,L(e.__("Start","podlove-podcasting-plugin-for-wordpress")),1),m("div",Eq,[m("input",{name:"chapter-title",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",onChange:t[2]||(t[2]=p=>e.updateChapter("start",p)),value:e.formatTime(e.state.selected.start)},null,40,$q)])]),m("div",xq,[m("label",Tq,[Be(L(e.__("Image","podlove-podcasting-plugin-for-wordpress"))+" ",1),m("span",Cq,L(e.__("(optional)","podlove-podcasting-plugin-for-wordpress")),1)]),m("div",Oq,[m("input",{name:"chapter-image",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",onChange:t[3]||(t[3]=p=>e.updateChapter("image",p)),value:e.state.selected.image},null,40,Aq),m("button",{onClick:t[4]||(t[4]=va(p=>e.selectImage(),["prevent"])),title:e.__("Select Chapter Image","podlove-podcasting-plugin-for-wordpress"),class:"absolute right-2 top-1/2 -mt-3 text-gray-400 hover:text-gray-700"},[z(l,{class:"w-6 h-6"})],8,kq)])]),m("div",Iq,[z(a,{variant:"danger",onClick:t[5]||(t[5]=p=>e.removeChapter())},{default:_e(()=>[Be(L(e.__("Delete Chapter","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})])])):Te("",!0)]),m("div",Pq,[z(a,{variant:"primary",onClick:t[6]||(t[6]=p=>e.addChapter())},{default:_e(()=>[z(c,{class:"-ml-0.5 mr-2 h-4 w-4","aria-hidden":"true"}),Be(" "+L(e.__("Add Chapter","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})])])):(I(),F("div",Rq,[z(d,{class:"mx-auto h-12 w-12 text-gray-400"}),m("h3",Lq,L(e.__("No chapters","podlove-podcasting-plugin-for-wordpress")),1),m("p",Fq,L(e.__("Get started by creating a new chapter.","podlove-podcasting-plugin-for-wordpress")),1),m("div",Nq,[z(a,{variant:"primary",onClick:t[7]||(t[7]=p=>e.addChapter()),class:"ml-1"},{default:_e(()=>[z(c,{class:"-ml-0.5 mr-2 h-4 w-4","aria-hidden":"true"}),Be(" "+L(e.__("Add Chapter","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})])]))}const Dq=Le(ZW,[["render",Mq]]);function pm(e,t,n){var r,o,i,l,a;t==null&&(t=100);function c(){var p=Date.now()-l;p<t&&p>=0?r=setTimeout(c,t-p):(r=null,n||(a=e.apply(i,o),i=o=null))}var d=function(){i=this,o=arguments,l=Date.now();var p=n&&!r;return r||(r=setTimeout(c,t)),p&&(a=e.apply(i,o),i=o=null),a};return d.clear=function(){r&&(clearTimeout(r),r=null)},d.flush=function(){r&&(a=e.apply(i,o),i=o=null,clearTimeout(r),r=null)},d}pm.debounce=pm;var uh=pm;function Uq(e,t,n){pn(e)?Ut(e,(r,o)=>{o==null||o.removeEventListener(t,n),r==null||r.addEventListener(t,n)}):wt(()=>{e.addEventListener(t,n)}),hi(()=>{var r;(r=vn(e))===null||r===void 0||r.removeEventListener(t,n)})}function Bq(e,t){const n="pointerdown";return typeof window>"u"||!window?void 0:Uq(window,n,o=>{const i=vn(e);i&&(i===o.target||o.composedPath().includes(i)||t(o))})}function jq(e,t,n){let r=null;const o=$e(!1);wt(()=>{(e.content!==void 0||n.value)&&(o.value=!0),r=new MutationObserver(i),r.observe(t.value,{childList:!0,subtree:!0})}),hi(()=>r.disconnect()),Ut(n,l=>{l?o.value=!0:o.value=!1});const i=()=>{e.content?o.value=!0:o.value=!1};return{hasContent:o}}function nl(e,t){var n=e.getBoundingClientRect(),r=1,o=1;return{width:n.width/r,height:n.height/o,top:n.top/o,right:n.right/r,bottom:n.bottom/o,left:n.left/r,x:n.left/r,y:n.top/o}}function ho(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ev(e){var t=ho(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Oa(e){var t=ho(e).Element;return e instanceof t||e instanceof Element}function Dr(e){var t=ho(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function WT(e){if(typeof ShadowRoot>"u")return!1;var t=ho(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Vq(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Hq(e){return e===ho(e)||!Dr(e)?Ev(e):Vq(e)}function Co(e){return e?(e.nodeName||"").toLowerCase():null}function As(e){return((Oa(e)?e.ownerDocument:e.document)||window.document).documentElement}function $v(e){return nl(As(e)).left+Ev(e).scrollLeft}function Go(e){return ho(e).getComputedStyle(e)}function xv(e){var t=Go(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function zq(e){var t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,r=t.height/e.offsetHeight||1;return n!==1||r!==1}function Wq(e,t,n){n===void 0&&(n=!1);var r=Dr(t);Dr(t)&&zq(t);var o=As(t),i=nl(e),l={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(r||!r&&!n)&&((Co(t)!=="body"||xv(o))&&(l=Hq(t)),Dr(t)?(a=nl(t),a.x+=t.clientLeft,a.y+=t.clientTop):o&&(a.x=$v(o))),{x:i.left+l.scrollLeft-a.x,y:i.top+l.scrollTop-a.y,width:i.width,height:i.height}}function Tv(e){var t=nl(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function pf(e){return Co(e)==="html"?e:e.assignedSlot||e.parentNode||(WT(e)?e.host:null)||As(e)}function qT(e){return["html","body","#document"].indexOf(Co(e))>=0?e.ownerDocument.body:Dr(e)&&xv(e)?e:qT(pf(e))}function la(e,t){var n;t===void 0&&(t=[]);var r=qT(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=ho(r),l=o?[i].concat(i.visualViewport||[],xv(r)?r:[]):r,a=t.concat(l);return o?a:a.concat(la(pf(l)))}function qq(e){return["table","td","th"].indexOf(Co(e))>=0}function _b(e){return!Dr(e)||Go(e).position==="fixed"?null:e.offsetParent}function Kq(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&Dr(e)){var r=Go(e);if(r.position==="fixed")return null}for(var o=pf(e);Dr(o)&&["html","body"].indexOf(Co(o))<0;){var i=Go(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function Qa(e){for(var t=ho(e),n=_b(e);n&&qq(n)&&Go(n).position==="static";)n=_b(n);return n&&(Co(n)==="html"||Co(n)==="body"&&Go(n).position==="static")?t:n||Kq(e)||t}var Ur="top",ao="bottom",uo="right",Br="left",Cv="auto",eu=[Ur,ao,uo,Br],rl="start",Aa="end",Gq="clippingParents",KT="viewport",jl="popper",Xq="reference",bb=eu.reduce(function(e,t){return e.concat([t+"-"+rl,t+"-"+Aa])},[]),GT=[].concat(eu,[Cv]).reduce(function(e,t){return e.concat([t,t+"-"+rl,t+"-"+Aa])},[]),Yq="beforeRead",Jq="read",Zq="afterRead",Qq="beforeMain",eK="main",tK="afterMain",nK="beforeWrite",rK="write",oK="afterWrite",sK=[Yq,Jq,Zq,Qq,eK,tK,nK,rK,oK];function iK(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var l=[].concat(i.requires||[],i.requiresIfExists||[]);l.forEach(function(a){if(!n.has(a)){var c=t.get(a);c&&o(c)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function lK(e){var t=iK(e);return sK.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function aK(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function $o(e){return e.split("-")[0]}function uK(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}function cK(e){var t=ho(e),n=As(e),r=t.visualViewport,o=n.clientWidth,i=n.clientHeight,l=0,a=0;return r&&(o=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(l=r.offsetLeft,a=r.offsetTop)),{width:o,height:i,x:l+$v(e),y:a}}var _s=Math.max,ka=Math.min,fc=Math.round;function dK(e){var t,n=As(e),r=Ev(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=_s(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),l=_s(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+$v(e),c=-r.scrollTop;return Go(o||n).direction==="rtl"&&(a+=_s(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:l,x:a,y:c}}function XT(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&WT(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function hm(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function fK(e){var t=nl(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function wb(e,t){return t===KT?hm(cK(e)):Dr(t)?fK(t):hm(dK(As(e)))}function pK(e){var t=la(pf(e)),n=["absolute","fixed"].indexOf(Go(e).position)>=0,r=n&&Dr(e)?Qa(e):e;return Oa(r)?t.filter(function(o){return Oa(o)&&XT(o,r)&&Co(o)!=="body"}):[]}function hK(e,t,n){var r=t==="clippingParents"?pK(e):[].concat(t),o=[].concat(r,[n]),i=o[0],l=o.reduce(function(a,c){var d=wb(e,c);return a.top=_s(d.top,a.top),a.right=ka(d.right,a.right),a.bottom=ka(d.bottom,a.bottom),a.left=_s(d.left,a.left),a},wb(e,i));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function ol(e){return e.split("-")[1]}function Ov(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function YT(e){var t=e.reference,n=e.element,r=e.placement,o=r?$o(r):null,i=r?ol(r):null,l=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,c;switch(o){case Ur:c={x:l,y:t.y-n.height};break;case ao:c={x:l,y:t.y+t.height};break;case uo:c={x:t.x+t.width,y:a};break;case Br:c={x:t.x-n.width,y:a};break;default:c={x:t.x,y:t.y}}var d=o?Ov(o):null;if(d!=null){var p=d==="y"?"height":"width";switch(i){case rl:c[d]=c[d]-(t[p]/2-n[p]/2);break;case Aa:c[d]=c[d]+(t[p]/2-n[p]/2);break}}return c}function JT(){return{top:0,right:0,bottom:0,left:0}}function ZT(e){return Object.assign({},JT(),e)}function QT(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}function Av(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.boundary,l=i===void 0?Gq:i,a=n.rootBoundary,c=a===void 0?KT:a,d=n.elementContext,p=d===void 0?jl:d,h=n.altBoundary,v=h===void 0?!1:h,y=n.padding,b=y===void 0?0:y,S=ZT(typeof b!="number"?b:QT(b,eu)),T=p===jl?Xq:jl,C=e.rects.popper,w=e.elements[v?T:p],E=hK(Oa(w)?w:w.contextElement||As(e.elements.popper),l,c),O=nl(e.elements.reference),$=YT({reference:O,element:C,strategy:"absolute",placement:o}),P=hm(Object.assign({},C,$)),R=p===jl?P:O,k={top:E.top-R.top+S.top,bottom:R.bottom-E.bottom+S.bottom,left:E.left-R.left+S.left,right:R.right-E.right+S.right},W=e.modifiersData.offset;if(p===jl&&W){var U=W[o];Object.keys(k).forEach(function(j){var G=[uo,ao].indexOf(j)>=0?1:-1,X=[Ur,ao].indexOf(j)>=0?"y":"x";k[j]+=U[X]*G})}return k}var Sb={placement:"bottom",modifiers:[],strategy:"absolute"};function Eb(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function mK(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?Sb:o;return function(a,c,d){d===void 0&&(d=i);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},Sb,i),modifiersData:{},elements:{reference:a,popper:c},attributes:{},styles:{}},h=[],v=!1,y={state:p,setOptions:function(C){var w=typeof C=="function"?C(p.options):C;S(),p.options=Object.assign({},i,p.options,w),p.scrollParents={reference:Oa(a)?la(a):a.contextElement?la(a.contextElement):[],popper:la(c)};var E=lK(uK([].concat(r,p.options.modifiers)));return p.orderedModifiers=E.filter(function(O){return O.enabled}),b(),y.update()},forceUpdate:function(){if(!v){var C=p.elements,w=C.reference,E=C.popper;if(Eb(w,E)){p.rects={reference:Wq(w,Qa(E),p.options.strategy==="fixed"),popper:Tv(E)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(U){return p.modifiersData[U.name]=Object.assign({},U.data)});for(var O=0;O<p.orderedModifiers.length;O++){if(p.reset===!0){p.reset=!1,O=-1;continue}var $=p.orderedModifiers[O],P=$.fn,R=$.options,k=R===void 0?{}:R,W=$.name;typeof P=="function"&&(p=P({state:p,options:k,name:W,instance:y})||p)}}}},update:aK(function(){return new Promise(function(T){y.forceUpdate(),T(p)})}),destroy:function(){S(),v=!0}};if(!Eb(a,c))return y;y.setOptions(d).then(function(T){!v&&d.onFirstUpdate&&d.onFirstUpdate(T)});function b(){p.orderedModifiers.forEach(function(T){var C=T.name,w=T.options,E=w===void 0?{}:w,O=T.effect;if(typeof O=="function"){var $=O({state:p,name:C,instance:y,options:E}),P=function(){};h.push($||P)}})}function S(){h.forEach(function(T){return T()}),h=[]}return y}}var pc={passive:!0};function gK(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,l=r.resize,a=l===void 0?!0:l,c=ho(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&d.forEach(function(p){p.addEventListener("scroll",n.update,pc)}),a&&c.addEventListener("resize",n.update,pc),function(){i&&d.forEach(function(p){p.removeEventListener("scroll",n.update,pc)}),a&&c.removeEventListener("resize",n.update,pc)}}var vK={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:gK,data:{}};function yK(e){var t=e.state,n=e.name;t.modifiersData[n]=YT({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var _K={name:"popperOffsets",enabled:!0,phase:"read",fn:yK,data:{}},bK={top:"auto",right:"auto",bottom:"auto",left:"auto"};function wK(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:fc(fc(t*o)/o)||0,y:fc(fc(n*o)/o)||0}}function $b(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,l=e.offsets,a=e.position,c=e.gpuAcceleration,d=e.adaptive,p=e.roundOffsets,h=p===!0?wK(l):typeof p=="function"?p(l):l,v=h.x,y=v===void 0?0:v,b=h.y,S=b===void 0?0:b,T=l.hasOwnProperty("x"),C=l.hasOwnProperty("y"),w=Br,E=Ur,O=window;if(d){var $=Qa(n),P="clientHeight",R="clientWidth";$===ho(n)&&($=As(n),Go($).position!=="static"&&a==="absolute"&&(P="scrollHeight",R="scrollWidth")),$=$,(o===Ur||(o===Br||o===uo)&&i===Aa)&&(E=ao,S-=$[P]-r.height,S*=c?1:-1),(o===Br||(o===Ur||o===ao)&&i===Aa)&&(w=uo,y-=$[R]-r.width,y*=c?1:-1)}var k=Object.assign({position:a},d&&bK);if(c){var W;return Object.assign({},k,(W={},W[E]=C?"0":"",W[w]=T?"0":"",W.transform=(O.devicePixelRatio||1)<=1?"translate("+y+"px, "+S+"px)":"translate3d("+y+"px, "+S+"px, 0)",W))}return Object.assign({},k,(t={},t[E]=C?S+"px":"",t[w]=T?y+"px":"",t.transform="",t))}function SK(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,l=i===void 0?!0:i,a=n.roundOffsets,c=a===void 0?!0:a,d={placement:$o(t.placement),variation:ol(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,$b(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,$b(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var EK={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:SK,data:{}};function $K(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!Dr(i)||!Co(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(l){var a=o[l];a===!1?i.removeAttribute(l):i.setAttribute(l,a===!0?"":a)}))})}function xK(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},l=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=l.reduce(function(c,d){return c[d]="",c},{});!Dr(o)||!Co(o)||(Object.assign(o.style,a),Object.keys(i).forEach(function(c){o.removeAttribute(c)}))})}}var TK={name:"applyStyles",enabled:!0,phase:"write",fn:$K,effect:xK,requires:["computeStyles"]},CK=[vK,_K,EK,TK],OK=mK({defaultModifiers:CK});function AK(e){return e==="x"?"y":"x"}function xc(e,t,n){return _s(e,ka(t,n))}function kK(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,l=n.altAxis,a=l===void 0?!1:l,c=n.boundary,d=n.rootBoundary,p=n.altBoundary,h=n.padding,v=n.tether,y=v===void 0?!0:v,b=n.tetherOffset,S=b===void 0?0:b,T=Av(t,{boundary:c,rootBoundary:d,padding:h,altBoundary:p}),C=$o(t.placement),w=ol(t.placement),E=!w,O=Ov(C),$=AK(O),P=t.modifiersData.popperOffsets,R=t.rects.reference,k=t.rects.popper,W=typeof S=="function"?S(Object.assign({},t.rects,{placement:t.placement})):S,U={x:0,y:0};if(P){if(i||a){var j=O==="y"?Ur:Br,G=O==="y"?ao:uo,X=O==="y"?"height":"width",ne=P[O],xe=P[O]+T[j],Ee=P[O]-T[G],ke=y?-k[X]/2:0,Ie=w===rl?R[X]:k[X],Qe=w===rl?-k[X]:-R[X],ht=t.elements.arrow,De=y&&ht?Tv(ht):{width:0,height:0},Xe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:JT(),Q=Xe[j],ce=Xe[G],ve=xc(0,R[X],De[X]),Ce=E?R[X]/2-ke-ve-Q-W:Ie-ve-Q-W,We=E?-R[X]/2+ke+ve+ce+W:Qe+ve+ce+W,Ve=t.elements.arrow&&Qa(t.elements.arrow),rt=Ve?O==="y"?Ve.clientTop||0:Ve.clientLeft||0:0,wn=t.modifiersData.offset?t.modifiersData.offset[t.placement][O]:0,an=P[O]+Ce-wn-rt,M=P[O]+We-wn;if(i){var V=xc(y?ka(xe,an):xe,ne,y?_s(Ee,M):Ee);P[O]=V,U[O]=V-ne}if(a){var Z=O==="x"?Ur:Br,ue=O==="x"?ao:uo,le=P[$],ye=le+T[Z],Oe=le-T[ue],we=xc(y?ka(ye,an):ye,le,y?_s(Oe,M):Oe);P[$]=we,U[$]=we-le}}t.modifiersData[r]=U}}var IK={name:"preventOverflow",enabled:!0,phase:"main",fn:kK,requiresIfExists:["offset"]},PK={left:"right",right:"left",bottom:"top",top:"bottom"};function Tc(e){return e.replace(/left|right|bottom|top/g,function(t){return PK[t]})}var RK={start:"end",end:"start"};function xb(e){return e.replace(/start|end/g,function(t){return RK[t]})}function LK(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,l=n.padding,a=n.flipVariations,c=n.allowedAutoPlacements,d=c===void 0?GT:c,p=ol(r),h=p?a?bb:bb.filter(function(b){return ol(b)===p}):eu,v=h.filter(function(b){return d.indexOf(b)>=0});v.length===0&&(v=h);var y=v.reduce(function(b,S){return b[S]=Av(e,{placement:S,boundary:o,rootBoundary:i,padding:l})[$o(S)],b},{});return Object.keys(y).sort(function(b,S){return y[b]-y[S]})}function FK(e){if($o(e)===Cv)return[];var t=Tc(e);return[xb(e),t,xb(t)]}function NK(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,l=n.altAxis,a=l===void 0?!0:l,c=n.fallbackPlacements,d=n.padding,p=n.boundary,h=n.rootBoundary,v=n.altBoundary,y=n.flipVariations,b=y===void 0?!0:y,S=n.allowedAutoPlacements,T=t.options.placement,C=$o(T),w=C===T,E=c||(w||!b?[Tc(T)]:FK(T)),O=[T].concat(E).reduce(function(ce,ve){return ce.concat($o(ve)===Cv?LK(t,{placement:ve,boundary:p,rootBoundary:h,padding:d,flipVariations:b,allowedAutoPlacements:S}):ve)},[]),$=t.rects.reference,P=t.rects.popper,R=new Map,k=!0,W=O[0],U=0;U<O.length;U++){var j=O[U],G=$o(j),X=ol(j)===rl,ne=[Ur,ao].indexOf(G)>=0,xe=ne?"width":"height",Ee=Av(t,{placement:j,boundary:p,rootBoundary:h,altBoundary:v,padding:d}),ke=ne?X?uo:Br:X?ao:Ur;$[xe]>P[xe]&&(ke=Tc(ke));var Ie=Tc(ke),Qe=[];if(i&&Qe.push(Ee[G]<=0),a&&Qe.push(Ee[ke]<=0,Ee[Ie]<=0),Qe.every(function(ce){return ce})){W=j,k=!1;break}R.set(j,Qe)}if(k)for(var ht=b?3:1,De=function(ve){var Ce=O.find(function(We){var Ve=R.get(We);if(Ve)return Ve.slice(0,ve).every(function(rt){return rt})});if(Ce)return W=Ce,"break"},Xe=ht;Xe>0;Xe--){var Q=De(Xe);if(Q==="break")break}t.placement!==W&&(t.modifiersData[r]._skip=!0,t.placement=W,t.reset=!0)}}var MK={name:"flip",enabled:!0,phase:"main",fn:NK,requiresIfExists:["offset"],data:{_skip:!1}};function DK(e,t,n){var r=$o(e),o=[Br,Ur].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,l=i[0],a=i[1];return l=l||0,a=(a||0)*o,[Br,uo].indexOf(r)>=0?{x:a,y:l}:{x:l,y:a}}function UK(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,l=GT.reduce(function(p,h){return p[h]=DK(h,t.rects,i),p},{}),a=l[t.placement],c=a.x,d=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=d),t.modifiersData[r]=l}var BK={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:UK},jK=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,ZT(typeof t!="number"?t:QT(t,eu))};function VK(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,l=n.modifiersData.popperOffsets,a=$o(n.placement),c=Ov(a),d=[Br,uo].indexOf(a)>=0,p=d?"height":"width";if(!(!i||!l)){var h=jK(o.padding,n),v=Tv(i),y=c==="y"?Ur:Br,b=c==="y"?ao:uo,S=n.rects.reference[p]+n.rects.reference[c]-l[c]-n.rects.popper[p],T=l[c]-n.rects.reference[c],C=Qa(i),w=C?c==="y"?C.clientHeight||0:C.clientWidth||0:0,E=S/2-T/2,O=h[y],$=w-v[p]-h[b],P=w/2-v[p]/2+E,R=xc(O,P,$),k=c;n.modifiersData[r]=(t={},t[k]=R,t.centerOffset=R-P,t)}}function HK(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||XT(t.elements.popper,o)&&(t.elements.arrow=o))}var zK={name:"arrow",enabled:!0,phase:"main",fn:VK,effect:HK,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};const ch=e=>parseInt(e,10);function WK({arrowPadding:e,emit:t,locked:n,offsetDistance:r,offsetSkid:o,placement:i,popperNode:l,triggerNode:a}){const c=Ts({isOpen:!1,popperInstance:null}),d=S=>{var T;(T=c.popperInstance)===null||T===void 0||T.setOptions(C=>({...C,modifiers:[...C.modifiers,{name:"eventListeners",enabled:S}]}))},p=()=>d(!0),h=()=>d(!1),v=()=>{c.isOpen&&(c.isOpen=!1,t("close:popper"))},y=()=>{c.isOpen||(c.isOpen=!0,t("open:popper"))};Ut([()=>c.isOpen,i],async([S])=>{S?(await b(),p()):h()});const b=async()=>{await sn(),c.popperInstance=OK(a.value,l.value,{placement:i.value,modifiers:[IK,MK,{name:"flip",enabled:!n.value},zK,{name:"arrow",options:{padding:ch(e.value)}},BK,{name:"offset",options:{offset:[ch(o.value),ch(r.value)]}}]}),c.popperInstance.update()};return hi(()=>{var S;(S=c.popperInstance)===null||S===void 0||S.destroy()}),{...km(c),open:y,close:v}}const qK={id:"arrow","data-popper-arrow":""};function KK(e,t){return I(),F("div",qK)}function eC(e,t){t===void 0&&(t={});var n=t.insertAt;if(!(!e||typeof document>"u")){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",n==="top"&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}var GK=` 62 62 #arrow[data-v-20b7fd4a], 63 63 #arrow[data-v-20b7fd4a]::before { … … 115 115 left: -5px; 116 116 } 117 `;eC(GK);const Iv={};Iv.render=KK;Iv.__scopeId="data-v-20b7fd4a";var XK=Iv;const YK=["onKeyup"];var tC={props:{placement:{type:String,default:"bottom",validator:function(e){return["auto","auto-start","auto-end","top","top-start","top-end","bottom","bottom-start","bottom-end","right","right-start","right-end","left","left-start","left-end"].includes(e)}},disableClickAway:{type:Boolean,default:!1},offsetSkid:{type:String,default:"0"},offsetDistance:{type:String,default:"12"},hover:{type:Boolean,default:!1},show:{type:Boolean,default:null},disabled:{type:Boolean,default:!1},openDelay:{type:[Number,String],default:0},closeDelay:{type:[Number,String],default:0},zIndex:{type:[Number,String],default:9999},arrow:{type:Boolean,default:!1},arrowPadding:{type:String,default:"0"},interactive:{type:Boolean,default:!0},locked:{type:Boolean,default:!1},content:{type:String,default:null}},emits:["open:popper","close:popper"],setup(e,{emit:t}){const n=e;c2(Ie=>({c81fc0a4:e.zIndex}));const r=e2(),o=$e(null),i=$e(null),l=$e(null),a=$e(!1);wt(()=>{const Ie=r.default();if(Ie&&Ie.length>1)return console.error(`[Popper]: The <Popper> component expects only one child element at its root. You passed ${Ie.length} child nodes.`)});const{arrowPadding:c,closeDelay:d,content:p,disableClickAway:h,disabled:v,interactive:y,locked:b,offsetDistance:S,offsetSkid:T,openDelay:C,placement:w,show:E}=Am(n),{isOpen:O,open:$,close:P}=WK({arrowPadding:c,emit:t,locked:b,offsetDistance:S,offsetSkid:T,placement:w,popperNode:i,triggerNode:l}),{hasContent:R}=jq(r,i,p),k=fe(()=>E.value!==null),W=fe(()=>v.value||!R.value),U=fe(()=>O.value&&!W.value),j=fe(()=>!h.value&&!k.value),G=fe(()=>y.value?`border: ${S.value}px solid transparent; margin: -${S.value}px;`:null),X=ah.debounce($,C.value),ne=ah.debounce(P,d.value),xe=async()=>{W.value||k.value||(ne.clear(),X())},Ee=async()=>{k.value||(X.clear(),ne())},ke=()=>{O.value?Ee():xe()};return Ut([R,v],([Ie,Qe])=>{O.value&&(!Ie||Qe)&&P()}),Ut(O,Ie=>{Ie?a.value=!0:ah.debounce(()=>{a.value=!1},200)}),Vt(()=>{k.value&&(E.value?X():ne())}),Vt(()=>{j.value&&Bq(o,Ee)}),(Ie,Qe)=>(I(),F("div",{class:"inline-block",style:oo(vn(G)),onMouseleave:Qe[2]||(Qe[2]=ht=>e.hover&&Ee()),ref:(ht,De)=>{De.popperContainerNode=ht,o.value=ht}},[m("div",{ref:(ht,De)=>{De.triggerNode=ht,l.value=ht},onMouseover:Qe[0]||(Qe[0]=ht=>e.hover&&xe()),onClick:ke,onFocus:xe,onKeyup:S2(Ee,["esc"])},[yn(Ie.$slots,"default")],40,YK),z(Cs,{name:"fade"},{default:_e(()=>[Cw(m("div",{onClick:Qe[1]||(Qe[1]=ht=>!vn(y)&&Ee()),class:"popper",ref:(ht,De)=>{De.popperNode=ht,i.value=ht}},[yn(Ie.$slots,"content",{close:vn(P),isOpen:a.value},()=>[Be(L(vn(p)),1)]),e.arrow?(I(),Ye(XK,{key:0})):Te("",!0)],512),[[Wm,vn(U)]])]),_:3})],36))}},JK=`117 `;eC(GK);const kv={};kv.render=KK;kv.__scopeId="data-v-20b7fd4a";var XK=kv;const YK=["onKeyup"];var tC={props:{placement:{type:String,default:"bottom",validator:function(e){return["auto","auto-start","auto-end","top","top-start","top-end","bottom","bottom-start","bottom-end","right","right-start","right-end","left","left-start","left-end"].includes(e)}},disableClickAway:{type:Boolean,default:!1},offsetSkid:{type:String,default:"0"},offsetDistance:{type:String,default:"12"},hover:{type:Boolean,default:!1},show:{type:Boolean,default:null},disabled:{type:Boolean,default:!1},openDelay:{type:[Number,String],default:0},closeDelay:{type:[Number,String],default:0},zIndex:{type:[Number,String],default:9999},arrow:{type:Boolean,default:!1},arrowPadding:{type:String,default:"0"},interactive:{type:Boolean,default:!0},locked:{type:Boolean,default:!1},content:{type:String,default:null}},emits:["open:popper","close:popper"],setup(e,{emit:t}){const n=e;u2(Ie=>({c81fc0a4:e.zIndex}));const r=Qw(),o=$e(null),i=$e(null),l=$e(null),a=$e(!1);wt(()=>{const Ie=r.default();if(Ie&&Ie.length>1)return console.error(`[Popper]: The <Popper> component expects only one child element at its root. You passed ${Ie.length} child nodes.`)});const{arrowPadding:c,closeDelay:d,content:p,disableClickAway:h,disabled:v,interactive:y,locked:b,offsetDistance:S,offsetSkid:T,openDelay:C,placement:w,show:E}=km(n),{isOpen:O,open:$,close:P}=WK({arrowPadding:c,emit:t,locked:b,offsetDistance:S,offsetSkid:T,placement:w,popperNode:i,triggerNode:l}),{hasContent:R}=jq(r,i,p),k=fe(()=>E.value!==null),W=fe(()=>v.value||!R.value),U=fe(()=>O.value&&!W.value),j=fe(()=>!h.value&&!k.value),G=fe(()=>y.value?`border: ${S.value}px solid transparent; margin: -${S.value}px;`:null),X=uh.debounce($,C.value),ne=uh.debounce(P,d.value),xe=async()=>{W.value||k.value||(ne.clear(),X())},Ee=async()=>{k.value||(X.clear(),ne())},ke=()=>{O.value?Ee():xe()};return Ut([R,v],([Ie,Qe])=>{O.value&&(!Ie||Qe)&&P()}),Ut(O,Ie=>{Ie?a.value=!0:uh.debounce(()=>{a.value=!1},200)}),Vt(()=>{k.value&&(E.value?X():ne())}),Vt(()=>{j.value&&Bq(o,Ee)}),(Ie,Qe)=>(I(),F("div",{class:"inline-block",style:so(vn(G)),onMouseleave:Qe[2]||(Qe[2]=ht=>e.hover&&Ee()),ref:(ht,De)=>{De.popperContainerNode=ht,o.value=ht}},[m("div",{ref:(ht,De)=>{De.triggerNode=ht,l.value=ht},onMouseover:Qe[0]||(Qe[0]=ht=>e.hover&&xe()),onClick:ke,onFocus:xe,onKeyup:w2(Ee,["esc"])},[yn(Ie.$slots,"default")],40,YK),z(Cs,{name:"fade"},{default:_e(()=>[Tw(m("div",{onClick:Qe[1]||(Qe[1]=ht=>!vn(y)&&Ee()),class:"popper",ref:(ht,De)=>{De.popperNode=ht,i.value=ht}},[yn(Ie.$slots,"content",{close:vn(P),isOpen:a.value},()=>[Be(L(vn(p)),1)]),e.arrow?(I(),Ye(XK,{key:0})):Te("",!0)],512),[[qm,vn(U)]])]),_:3})],36))}},JK=` 118 118 .inline-block[data-v-5784ed69] { 119 119 display: inline-block; … … 146 146 opacity: 0; 147 147 } 148 `;eC(JK);tC.__scopeId="data-v-5784ed69";var ZK=(()=>{const e=tC;return e.install=t=>{t.component("Popper",e)},e})();const QK=ge({components:{Popper:ZK},props:{direction:{type:String,default:"left"}},data(){return{visible:!0}},computed:{caretClasses(){switch(this.direction){case"left":return"left-0 -ml-2 bottom-0 top-0 h-full"}}},methods:{show(){this.visible=!0},hide(){this.visible=!1}}}),eG={class:"bg-white p-4 rounded shadow-lg max-w-md"};function tG(e,t,n,r,o,i){const l=q("Popper");return I(),F("div",null,[z(l,{hover:"",openDelay:"200",closeDelay:"100",arrow:!0},{content:_e(()=>[m("div",eG,[yn(e.$slots,"content")])]),default:_e(()=>[yn(e.$slots,"trigger")]),_:3})])}const nG=Le(QK,[["render",tG]]),rG=ge({components:{PodloveButton:Pn,Tooltip:nG},setup(){return{dispatch:Ze().dispatch}},methods:{simulateImportClick(){this.$refs.import.click()},importChapters(){const e=this.$refs.import;if(e)try{const t=new FileReader;t.onload=n=>{this.dispatch(SM(n.target.result))},t.readAsText(Y.get(e,["files",0],""))(this.$refs.importForm).reset()}catch{}}}}),oG={class:"text-xs"},sG={class:"text-gray-600 leading-3 font-semibold mb-2"},iG={class:"text-gray-500 ml-1"},lG={class:"mb-1"},aG={class:"text-blue-500 underline",href:"https://podlove.org/simple-chapters/",target:"_blank"},uG=m("code",null,".psc",-1),cG={class:"mb-1"},dG={class:"text-blue-500 underline",href:"http://www.audacityteam.org",target:"_blank"},fG={class:"mb-1"},pG={class:"text-blue-500 underline",href:"https://hindenburg.com",target:"_blank"},hG=m("code",null,".txt",-1);function mG(e,t,n,r,o,i){const l=q("podlove-button"),a=q("tooltip");return I(),Ye(a,null,{trigger:_e(()=>[z(l,{variant:"secondary",size:"small",onClick:t[0]||(t[0]=c=>e.simulateImportClick())},{default:_e(()=>[Be(L(e.__("Import","podlove-podcasting-plugin-for-wordpress")),1)]),_:1}),m("input",{ref:"import",type:"file",onChange:t[1]||(t[1]=(...c)=>e.importChapters&&e.importChapters(...c)),class:"hidden"},null,544)]),content:_e(()=>[m("div",oG,[m("p",sG,L(e.__("Accepts:","podlove-podcasting-plugin-for-wordpress")),1),m("ul",iG,[m("li",lG,[m("a",aG,L(e.__("Podlove Simple Chapters","podlove-podcasting-plugin-for-wordpress")),1),Be(" ("),uG,Be("), ")]),m("li",cG,[m("a",dG,L(e.__("Audacity","podlove-podcasting-plugin-for-wordpress")),1),Be(" "+L(e.__("Track Labels","podlove-podcasting-plugin-for-wordpress"))+", ",1)]),m("li",fG,[m("a",pG,L(e.__("Hindenburg","podlove-podcasting-plugin-for-wordpress")),1),Be(" "+L(e.__("project files and MP4Chaps","podlove-podcasting-plugin-for-wordpress"))+" (",1),hG,Be(") ")])])])]),_:1})}const gG=Le(rG,[["render",mG]]),vG=ge({components:{Popover:LT,PopoverButton:tz,PopoverPanel:nz}});function yG(e,t,n,r,o,i){const l=q("PopoverButton"),a=q("PopoverPanel"),c=q("Popover",!0);return I(),Ye(c,{class:"relative"},{default:_e(()=>[z(l,null,{default:_e(()=>[yn(e.$slots,"trigger")]),_:3}),z(Cs,{"enter-active-class":"transition duration-200 ease-out","enter-from-class":"translate-y-1 opacity-0","enter-to-class":"translate-y-0 opacity-100","leave-active-class":"transition duration-150 ease-in","leave-from-class":"translate-y-0 opacity-100","leave-to-class":"translate-y-1 opacity-0"},{default:_e(()=>[z(a,{class:"absolute"},{default:_e(()=>[yn(e.$slots,"content",{class:"overflow-hidden"})]),_:3})]),_:3})]),_:3})}const nC=Le(vG,[["render",yG]]),_G=ge({components:{Popover:nC,PodloveButton:Pn},setup(){return{dispatch:Ze().dispatch}},methods:{download(e){this.dispatch($M(e))}}}),bG={class:"bg-white p-7 -translate-x-full z-10 mt-3 transform ml-16 rounded-lg shadow-lg"},wG={class:"text-sm font-medium text-gray-900 truncate w-full mr-2"},SG=m("div",{class:"text-sm text-gray-500"},".psc",-1),EG={class:"text-sm font-medium text-gray-900 truncate w-full mr-2"},$G=m("div",{class:"text-sm text-gray-500"},".txt",-1);function xG(e,t,n,r,o,i){const l=q("podlove-button"),a=q("popover");return I(),F("div",null,[z(a,null,{trigger:_e(()=>[z(l,{variant:"secondary",size:"small"},{default:_e(()=>[Be(L(e.__("Export","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})]),content:_e(()=>[m("div",bG,[m("a",{onClick:t[0]||(t[0]=c=>e.download("psc")),class:"flex items-center p-2 -m-3 transition duration-150 ease-in-out rounded-lg cursor-pointer bg-gray-100 hover:bg-indigo-100 focus:outline-none focus-visible:ring focus-visible:ring-indigo-500 focus-visible:ring-opacity-50 mb-4"},[m("div",wG,L(e.__("Podlove Simple Chapters","podlove-podcasting-plugin-for-wordpress")),1),SG]),m("a",{onClick:t[1]||(t[1]=c=>e.download("mp4")),class:"flex items-center p-2 -m-3 transition duration-150 ease-in-out rounded-lg cursor-pointer bg-gray-100 hover:bg-indigo-100 focus:outline-none focus-visible:ring focus-visible:ring-indigo-500 focus-visible:ring-opacity-50"},[m("div",EG,L(e.__("MP4Chaps","podlove-podcasting-plugin-for-wordpress")),1),$G])])]),_:1})])}const TG=Le(_G,[["render",xG]]),CG=ge({components:{Module:In,TabsContainer:zT,Tab:HT,ChaptersForm:Dq,ChaptersImport:gG,ChaptersExport:TG},setup(){return{dispatch:Ze().dispatch}},created(){this.dispatch(yM())}});function OG(e,t,n,r,o,i){const l=q("chapters-import"),a=q("chapters-export"),c=q("chapters-form"),d=q("module");return I(),Ye(d,{name:"chapters",title:e.__("Chapter Marks","podlove-podcasting-plugin-for-wordpress")},{actions:_e(()=>[z(l,{class:"mr-1"}),z(a)]),default:_e(()=>[z(c)]),_:1},8,["title"])}const AG=Le(CG,[["render",OG]]),kG={},IG={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},PG=m("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-6-3a2 2 0 11-4 0 2 2 0 014 0zm-2 4a5 5 0 00-4.546 2.916A5.986 5.986 0 0010 16a5.986 5.986 0 004.546-2.084A5 5 0 0010 11z","clip-rule":"evenodd"},null,-1),RG=[PG];function LG(e,t){return I(),F("svg",IG,RG)}const FG=Le(kG,[["render",LG]]),NG=ge({props:{outlet:{type:String,default:"header"}},components:{PodloveButton:Pn,UploadIcon: nf,DocumentTextIcon:lv},setup(){return{dispatch:Ze().dispatch}},methods:{simulateImportClick(){this.$refs.import.click()},importTranscriptFromAsset(){this.dispatch(KM())},handleImport(){const e=this.$refs.import;if(e)try{const t=new FileReader;t.onload=n=>{this.dispatch(qM(n.target.result))},t.readAsText(Y.get(e,["files",0],""))(this.$refs.importForm).reset()}catch{}}}}),MG={ref:"importForm",class:"cursor-pointer"},DG={class:"grid grid-cols-2"};function UG(e,t,n,r,o,i){const l=q("upload-icon"),a=q("podlove-button");return I(),F("form",MG,[m("div",DG,[m("div",null,[z(a,{variant:"primary",onClick:e.simulateImportClick,class:"ml-1"},{default:_e(()=>[z(l,{class:"-ml-0.5 mr-2 h-4 w-4","aria-hidden":"true"}),Be(" "+L(e.__("Import Transcript","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["onClick"]),m("input",{ref:"import",accept:"text/vtt",type:"file",onChange:t[0]||(t[0]=(...c)=>e.handleImport&&e.handleImport(...c)),class:"hidden",key:""},null,544)]),m("div",null,[z(a,{variant:"primary",onClick:e.importTranscriptFromAsset,class:"ml-1"},{default:_e(()=>[Be(L(e.__("Get From Asset","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["onClick"])])])],512)}const BG=Le(NG,[["render",UG]]),jG=ge({components:{Avatar:FG,TranscriptsImport:BG,DocumentTextIcon:lv},setup(){return{state:ut({transcripts:B.transcripts.list,contributors:B.contributors.contributors,voices:B.transcripts.voices})}},computed:{voices(){return this.state.contributors.reduce((e,t)=>{var r;const n=(r=this.state.voices.find(o=>o.contributor===t.id))==null?void 0:r.voice;return{...e,[n]:{id:t.id,name:t.realname,avatar:t.avatar_url}}},{})},transcripts(){return this.state.transcripts.reduce((e,t)=>{const n=Y.last(e);return n&&n.voiceId===t.voice?[...Y.dropRight(e),{...n,voiceId:t.voice,content:[...n.content,{text:t.text,start:t.start_ms,end:t.end_ms}]}]:[...e,{voiceId:t.voice,content:[{text:t.text,start:t.start_ms,end:t.end_ms}]}]},[]).map(e=>({...e,voice:Y.get(this.voices,[e.voiceId],{name:e.voiceId})}))}},methods:{formatTime(e){return new Dt(e).prettyShort}}}),VG={key:0,class:"h-96 p-2 overflow-x-auto"},HG={class:"mr-2 w-12 text-gray-400 select-none"},zG=["src"],WG={class:"w-full font-light text-sm mr-2"},qG={class:"block font-bold"},KG={class:"flex justify-between"},GG={class:"ml-1 font-mono select-none"},XG={key:1,class:"text-center h-96 flex items-center justify-center flex-col"},YG={class:"mt-2 text-sm font-medium text-gray-900"},JG={class:"mt-1 text-sm text-gray-500"},ZG={class:"mt-6"};function QG(e,t,n,r,o,i){const l=q("avatar"),a=q("document-text-icon"),c=q("transcripts-import");return e.transcripts.length>0?(I(),F("div",VG,[(I(!0),F(Me,null,Ot(e.transcripts,(d,p)=>{var h,v,y;return I(),F("div",{class:"flex mb-2",key:`transcript-${p}`},[m("div",HG,[(h=d==null?void 0:d.voice)!=null&&h.avatar?(I(),F("img",{key:0,class:"w-12 h-12 rounded",src:(v=d==null?void 0:d.voice)==null?void 0:v.avatar},null,8,zG)):(I(),Ye(l,{key:1}))]),m("div",WG,[m("span",qG,L((y=d==null?void 0:d.voice)==null?void 0:y.name),1),m("span",KG,[m("span",null,[(I(!0),F(Me,null,Ot(d.content,(b,S)=>(I(),F("span",{class:"mr-1",key:`transcript-${p}-content-${S}`},L(b.text),1))),128))]),m("span",GG,L(e.formatTime(d.content[0].start)),1)])])])}),128))])):(I(),F("div",XG,[z(a,{class:"mx-auto h-12 w-12 text-gray-400"}),m("h3",YG,L(e.__("No transcript yet","podlove-podcasting-plugin-for-wordpress")),1),m("p",JG,L(e.__("Get started by importing a transcript.","podlove-podcasting-plugin-for-wordpress")),1),m("div",ZG,[z(c,{outlet:"content",class:"mr-1"})])]))}const eX=Le(jG,[["render",QG]]),tX=ge({components:{PodloveButton:Pn,Modal:Za},data(){return{modalOpen:!1}},setup(){return{state:ut({contributors:B.contributors.contributors,voices:B.transcripts.voices}),dispatch:Ze().dispatch}},computed:{sortedContributors(){return this.state.contributors.sort((e,t)=>{const n=e.publicname||e.realname||e.nickname,r=t.publicname||t.realname||t.nickname;return n.localeCompare(r)})}},methods:{updateContributor(e,t){const n=t.target.value;this.dispatch(WM({voice:e,contributor:n}))},openVoices(){this.modalOpen=!0},closeVoices(){this.modalOpen=!1}}}),nX={key:0},rX={class:"border-gray-200 border-b pb-2 px-4 -mx-6 mb-4"},oX={class:"text-lg leading-6 font-medium text-gray-900"},sX={for:"country",class:"block text-sm font-medium text-gray-700"},iX=["value","onChange"],lX=m("option",{value:"0"},null,-1),aX=["value"];function uX(e,t,n,r,o,i){const l=q("podlove-button"),a=q("modal");return e.state.voices.length>0?(I(),F("div",nX,[z(l,{variant:"secondary",size:"small",onClick:t[0]||(t[0]=c=>e.openVoices())},{default:_e(()=>[Be(L(e.__("Voices","podlove-podcasting-plugin-for-wordpress")),1)]),_:1}),z(a,{open:e.modalOpen,onClose:t[1]||(t[1]=c=>e.closeVoices())},{default:_e(()=>[m("div",rX,[m("h3",oX,L(e.__("Transcript Voices","podlove-podcasting-plugin-for-wordpress")),1)]),(I(!0),F(Me,null,Ot(e.state.voices,(c,d)=>(I(),F("div",{key:`voice-${d}`,class:gt(["w-full py-2 px-4",{"bg-white":d%2}])},[m("label",sX,L(c.voice),1),m("select",{value:c.contributor,class:"mt-1 block w-full py-2 px-3 border border-gray-300 bg-white rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm",onChange:p=>e.updateContributor(c.voice,p)},[lX,(I(!0),F(Me,null,Ot(e.sortedContributors,(p,h)=>(I(),F("option",{key:`voice-${d}-contributor-${h}`,value:p.id},L(p.publicname||p.realname||p.nickname),9,aX))),128))],40,iX)],2))),128))]),_:1},8,["open"])])):Te("",!0)}const cX=Le(tX,[["render",uX]]),dX=[{title:"Export webvtt",type:"webvtt",file:"transcript.webvtt",ending:".webvtt"},{title:"Export json (flat)",type:"json",file:"transcript.json",ending:".json"},{title:"Export json (grouped)",type:"json_grouped",file:"transcript.json",ending:".json"},{title:"Export xml",type:"xml",file:"transcript.xml",ending:".xml"}],fX=ge({components:{Popover:nC,PodloveButton:Pn},setup(){return{state:ut({post:B.post.id,baseUrl:B.runtime.baseUrl,transcripts:B.transcripts.list})}},data(){return{exportTypes:dX}}}),pX={key:0},hX={class:"bg-white p-7 pb-1 -translate-x-full z-10 mt-3 transform ml-16 rounded-lg shadow-lg"},mX=["download","href"],gX={class:"text-sm font-medium text-gray-900 truncate w-full mr-2"},vX={class:"text-sm text-gray-500"};function yX(e,t,n,r,o,i){const l=q("podlove-button"),a=q("popover");return e.state.transcripts.length>0?(I(),F("div",pX,[z(a,null,{trigger:_e(()=>[z(l,{variant:"secondary",size:"small",tabindex:"-1"},{default:_e(()=>[Be(L(e.__("Export","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})]),content:_e(()=>[m("div",hX,[(I(!0),F(Me,null,Ot(e.exportTypes,(c,d)=>(I(),F("a",{key:`type-${d}`,download:c.file,href:`${e.state.baseUrl}/?p=${e.state.post}&podlove_transcript=${c.type}`,class:"flex items-center p-2 -m-3 transition duration-150 ease-in-out rounded-lg cursor-pointer bg-gray-100 hover:bg-indigo-100 focus:outline-none focus-visible:ring focus-visible:ring-indigo-500 focus-visible:ring-opacity-50 mb-4"},[m("div",gX,L(c.title),1),m("div",vX,L(c.ending),1)],8,mX))),128))])]),_:1})])):Te("",!0)}const _X=Le(fX,[["render",yX]]),bX=ge({components:{PodloveButton:Pn,Modal:Za,ExclamationIcon:av,DialogTitle:WH},data(){return{modalVisible:!1}},setup(){return{state:ut({transcripts:B.transcripts.list}),dispatch:Ze().dispatch}},methods:{deleteTranscripts(){this.closeModal(),this.dispatch(GM())},openModal(){this.modalVisible=!0},closeModal(){this.modalVisible=!1}}}),wX={key:0},SX={class:"sm:flex sm:items-start"},EX={class:"mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-red-100 sm:mx-0 sm:h-10 sm:w-10"},$X={class:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left"},xX={class:"mt-2"},TX={class:"text-sm text-gray-500"},CX={class:"mt-5 sm:mt-4 sm:flex sm:flex-row-reverse"};function OX(e,t,n,r,o,i){const l=q("podlove-button"),a=q("exclamation-icon"),c=q("DialogTitle"),d=q("modal");return e.state.transcripts.length>0?(I(),F("div",wX,[z(l,{variant:"secondary",size:"small",onClick:t[0]||(t[0]=p=>e.openModal())},{default:_e(()=>[Be("Clear")]),_:1}),z(d,{open:e.modalVisible,onClose:t[3]||(t[3]=p=>e.closeModal())},{default:_e(()=>[m("div",SX,[m("div",EX,[z(a,{class:"h-6 w-6 text-red-600","aria-hidden":"true"})]),m("div",$X,[z(c,{as:"h3",class:"text-lg leading-6 font-medium text-gray-900"},{default:_e(()=>[Be(" Clear Transcript ")]),_:1}),m("div",xX,[m("p",TX,L(e.__("Are you sure you want to clear your transcript?","podlove-podcasting-plugin-for-wordpress")),1)])])]),m("div",CX,[z(l,{class:"sm:ml-3 sm:w-auto sm:text-sm",variant:"danger",onClick:t[1]||(t[1]=p=>e.deleteTranscripts())},{default:_e(()=>[Be(L(e.__("Clear","podlove-podcasting-plugin-for-wordpress")),1)]),_:1}),z(l,{class:"sm:ml-3 sm:w-auto sm:text-sm",onClick:t[2]||(t[2]=p=>e.closeModal())},{default:_e(()=>[Be(L(e.__("Cancel","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})])]),_:1},8,["open"])])):Te("",!0)}const AX=Le(bX,[["render",OX]]),kX=ge({components:{Module:In,TabsContainer:zT,Tab:HT,TranscriptsList:eX,TranscriptsVoices:cX,TranscriptsExport:_X,TranscriptsDelete:AX},setup(){return{dispatch:Ze().dispatch}},created(){this.dispatch(FE()),this.dispatch(VM())}});function IX(e,t,n,r,o,i){const l=q("transcripts-voices"),a=q("transcripts-export"),c=q("transcripts-delete"),d=q("transcripts-list"),p=q("module");return I(),Ye(p,{name:"transcript",title:e.__("Transcripts","podlove-podcasting-plugin-for-wordpress")},{actions:_e(()=>[z(l,{class:"mr-1"}),z(a,{class:"mr-1"}),z(c)]),default:_e(()=>[z(d)]),_:1},8,["title"])}const PX=Le(kX,[["render",IX]]);function rC(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"fill-rule":"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12Zm13.36-1.814a.75.75 0 1 0-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 0 0-1.06 1.06l2.25 2.25a.75.75 0 0 0 1.14-.094l3.75-5.25Z","clip-rule":"evenodd"})])}function pf(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"fill-rule":"evenodd",d:"M19.916 4.626a.75.75 0 0 1 .208 1.04l-9 13.5a.75.75 0 0 1-1.154.114l-6-6a.75.75 0 0 1 1.06-1.06l5.353 5.353 8.493-12.74a.75.75 0 0 1 1.04-.207Z","clip-rule":"evenodd"})])}function hf(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"fill-rule":"evenodd",d:"M11.47 4.72a.75.75 0 0 1 1.06 0l3.75 3.75a.75.75 0 0 1-1.06 1.06L12 6.31 8.78 9.53a.75.75 0 0 1-1.06-1.06l3.75-3.75Zm-3.75 9.75a.75.75 0 0 1 1.06 0L12 17.69l3.22-3.22a.75.75 0 1 1 1.06 1.06l-3.75 3.75a.75.75 0 0 1-1.06 0l-3.75-3.75a.75.75 0 0 1 0-1.06Z","clip-rule":"evenodd"})])}function RX(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"fill-rule":"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003ZM12 8.25a.75.75 0 0 1 .75.75v3.75a.75.75 0 0 1-1.5 0V9a.75.75 0 0 1 .75-.75Zm0 8.25a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z","clip-rule":"evenodd"})])}function LX(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"fill-rule":"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12Zm8.706-1.442c1.146-.573 2.437.463 2.126 1.706l-.709 2.836.042-.02a.75.75 0 0 1 .67 1.34l-.04.022c-1.147.573-2.438-.463-2.127-1.706l.71-2.836-.042.02a.75.75 0 1 1-.671-1.34l.041-.022ZM12 9a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z","clip-rule":"evenodd"})])}function Pv(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"fill-rule":"evenodd",d:"M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25Zm-1.72 6.97a.75.75 0 1 0-1.06 1.06L10.94 12l-1.72 1.72a.75.75 0 1 0 1.06 1.06L12 13.06l1.72 1.72a.75.75 0 1 0 1.06-1.06L13.06 12l1.72-1.72a.75.75 0 1 0-1.06-1.06L12 10.94l-1.72-1.72Z","clip-rule":"evenodd"})])}const FX=ge({props:["file_key","track_index"],components:{Listbox:vv,ListboxButton:_v,ListboxLabel:yv,ListboxOption:wv,ListboxOptions:bv,CheckIcon:pf,SelectorIcon:hf,DocumentCheckIcon:FV},setup(){return{state:ut({services:B.auphonic.incomingServices,serviceFiles:B.auphonic.serviceFiles,fileSelections:B.auphonic.fileSelections,episodeSlug:B.episode.slug}),dispatch:Ze().dispatch}},methods:{set(e,t){this.dispatch(S$({key:this.file_key,prop:e,value:t})),Number.isInteger(this.track_index)&&this.dispatch($$({track:{},index:this.track_index}))},handleFileSelection(e){this.set("fileSelection",e.target.value)},handleUrlUpdate(e){this.set("urlValue",e.target.value)},handleFileUploadSelection(e){const t=e.target.files;t?this.set("fileValue",t[0]):this.set("fileValue",null)},handleServiceSelection(e){this.set("currentServiceSelection",e.target.value)},setEpisodeSlug(e){this.dispatch(bt({prop:"slug",value:e})),this.dispatch(W$())}},computed:{services(){return this.state.services},currentService(){return this.state.services.find(e=>e.uuid===this.currentServiceSelection)},serviceFiles(){return Y.get(this.state,["serviceFiles",this.currentServiceSelection],null)},fileSelection(){return this.state.fileSelections[this.file_key]},filenameSelectedForUpload(){var e,t;return(t=(e=this.fileSelection)==null?void 0:e.fileValue)==null?void 0:t.name},currentServiceSelection(){var e;return(e=this.fileSelection)==null?void 0:e.currentServiceSelection},urlFieldValue(){return this.fileSelection.urlValue},externalFileFieldValue(){return this.fileSelection.fileSelection},slugCandidate(){if(this.currentServiceSelection=="url"&&this.urlFieldValue)return this.urlFieldValue.split("/").reverse()[0].split(".")[0];if(this.currentServiceSelection=="file"){const e=this.filenameSelectedForUpload;return e?e.split(".")[0]:null}return null},shouldSuggestSlug(){return this.slugCandidate!=null&&this.slugCandidate!=this.state.episodeSlug}}}),NX={class:"flex flex-col gap-2"},MX=m("label",{class:"block md:hidden text-sm font-medium text-gray-700"},"Upload Method",-1),DX=["value","selected"],UX={key:0},BX={key:0},jX=["for"],VX={class:"sm:mt-1 rounded-md bg-indigo-50 px-3 py-2 text-sm font-semibold text-indigo-600 shadow-sm hover:bg-indigo-100"},HX={key:0,class:"sm:mt-1 text-sm font-normal"},zX=["id"],WX={key:1},qX=["for"],KX={class:"mt-1"},GX=["id","value"],XX={key:2},YX={key:0},JX=["for"],ZX=["id","value"],QX=["value"],eY={key:1},tY={key:3,class:"mt-3"},nY={class:"font-mono"};function rY(e,t,n,r,o,i){const l=q("DocumentCheckIcon");return I(),F("div",null,[m("div",NX,[m("div",null,[MX,m("select",{onChange:t[0]||(t[0]=(...a)=>e.handleServiceSelection&&e.handleServiceSelection(...a)),class:"mt-1 block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm rounded-md"},[(I(!0),F(Me,null,Ot(e.services,a=>(I(),F("option",{key:a.uuid,value:a.uuid,selected:a.uuid==e.currentServiceSelection},L(a.type)+": "+L(a.display_name),9,DX))),128))],32)]),e.currentService?(I(),F("div",UX,[e.currentService.type==="file"?(I(),F("div",BX,[m("label",{for:e.file_key+"file-upload",class:"relative flex items-center gap-2 cursor-pointer bg-white rounded-md font-medium text-indigo-600 hover:text-indigo-500 focus-within:outline-none"},[m("div",VX,L(e.__("Choose File","podlove-podcasting-plugin-for-wordpress")),1),e.filenameSelectedForUpload?(I(),F("div",HX,[Be(L(e.__("Selected for Upload:","podlove-podcasting-plugin-for-wordpress"))+" ",1),m("span",null,L(e.filenameSelectedForUpload),1)])):Te("",!0),m("input",{id:e.file_key+"file-upload",name:"file-upload",type:"file",class:"sr-only",onInput:t[1]||(t[1]=(...a)=>e.handleFileUploadSelection&&e.handleFileUploadSelection(...a))},null,40,zX)],8,jX)])):e.currentService.type==="url"?(I(),F("div",WX,[m("label",{for:e.file_key+"audio_source_url",class:"block text-sm font-medium text-gray-700"},"File URL",8,qX),m("div",KX,[m("input",{type:"url",name:"audio_source_url",id:e.file_key+"audio_source_url",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",placeholder:"https://example.com/audio.flac",value:e.urlFieldValue,onInput:t[2]||(t[2]=(...a)=>e.handleUrlUpdate&&e.handleUrlUpdate(...a))},null,40,GX)])])):(I(),F("div",XX,[e.serviceFiles!==null?(I(),F("div",YX,[m("label",{for:e.file_key+"external_file",class:"block text-sm font-medium text-gray-700"},"File",8,JX),m("select",{name:"audio_external_file",id:e.file_key+"external_file",class:"mt-1 block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm rounded-md",value:e.externalFileFieldValue,onChange:t[3]||(t[3]=(...a)=>e.handleFileSelection&&e.handleFileSelection(...a))},[(I(!0),F(Me,null,Ot(e.serviceFiles,a=>(I(),F("option",{key:a,value:a,d:""},L(a),9,QX))),128))],40,ZX)])):(I(),F("div",eY,"..."))])),e.shouldSuggestSlug?(I(),F("div",tY,[m("button",{onClick:t[4]||(t[4]=()=>e.setEpisodeSlug(e.slugCandidate)),type:"button",class:"relative text-xs inline-flex items-center rounded-md bg-white px-3 py-2 font-medium text-gray-500 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50"},[z(l,{class:"-ml-0.5 mr-1.5 h-4 w-4 text-gray-400","aria-hidden":"true"}),m("span",null,[Be(L(e.__("Use as Episode Slug:","podlove-podcasting-plugin-for-wordpress"))+" ",1),m("span",nY,L(e.slugCandidate),1)])])])):Te("",!0)])):Te("",!0)])])}const oY=Le(FX,[["render",rY]]),sY=ge({name:"TransferHeader"}),iY={class:"mb-4"},lY=m("h3",{class:"text-lg font-medium leading-6 text-gray-900"},"PLUS File Storage",-1),aY={class:"mt-1 text-sm text-gray-500"};function uY(e,t,n,r,o,i){return I(),F("div",iY,[lY,m("p",aY,L(e.__("Auphonic files are automatically transferred to PLUS storage.","podlove-podcasting-plugin-for-wordpress")),1)])}const cY=Le(sY,[["render",uY]]),dY=ge({name:"TransferFileItem",components:{ClockIcon:Xx,ArrowPathIcon:tf,CheckCircleIcon:Kx,XCircleIcon:Qx},props:{file:{type:Object,required:!0}},methods:{getFileStatusMessage(e){switch(e.status){case"pending":return"Waiting...";case"processing":return"Transferring...";case"completed":return"Completed";case"failed":return e.message||"Failed";default:return e.message||""}}}}),fY={class:"flex items-center text-sm"},pY={class:"flex-shrink-0 mr-2"},hY={class:"font-medium"};function mY(e,t,n,r,o,i){const l=q("ArrowPathIcon"),a=q("CheckCircleIcon"),c=q("XCircleIcon"),d=q("ClockIcon");return I(),F("li",fY,[m("span",pY,[e.file.status==="processing"?(I(),Ye(l,{key:0,class:"h-4 w-4 text-blue-500 animate-spin"})):e.file.status==="completed"?(I(),Ye(a,{key:1,class:"h-4 w-4 text-green-500"})):e.file.status==="failed"?(I(),Ye(c,{key:2,class:"h-4 w-4 text-red-500"})):(I(),Ye(d,{key:3,class:"h-4 w-4 text-gray-400"}))]),m("span",hY,L(e.file.filename),1),m("span",{class:gt(["ml-2 text-xs",{"text-blue-600":e.file.status==="processing","text-green-600":e.file.status==="completed","text-red-600":e.file.status==="failed","text-gray-500":e.file.status==="pending"}])},L(e.getFileStatusMessage(e.file)),3)])}const oC=Le(dY,[["render",mY]]),gY=ge({name:"TransferFileList",components:{TransferFileItem:oC},props:{files:{type:Array,default:()=>[]},title:{type:String,default:""}}}),vY={key:0},yY={class:"font-medium"},_Y={class:"mt-1 space-y-1"};function bY(e,t,n,r,o,i){const l=q("TransferFileItem");return e.files&&e.files.length>0?(I(),F("div",vY,[m("p",yY,L(e.title),1),m("ul",_Y,[(I(!0),F(Me,null,Ot(e.files,a=>(I(),Ye(l,{key:a.filename,file:a},null,8,["file"]))),128))])])):Te("",!0)}const wY=Le(gY,[["render",bY]]),SY=ge({name:"TransferStatusPanel",components:{ClockIcon:Xx,ArrowPathIcon:tf,CheckCircleIcon:Kx,XCircleIcon:Qx,ExclamationTriangleIcon:av,TransferFileList:wY,TransferFileItem:oC},props:{status:{type:String,required:!0},files:{type:Array,default:()=>[]},errors:{type:String,default:void 0}},emits:["action"]}),EY={key:0,class:"rounded-md bg-blue-50 p-4"},$Y={class:"flex"},xY={class:"flex-shrink-0"},TY={class:"ml-3"},CY={class:"text-sm font-medium text-blue-800"},OY={class:"mt-2 text-sm text-blue-700"},AY={class:"mt-4"},kY={key:1,class:"rounded-md bg-gray-50 p-4"},IY={class:"flex"},PY={class:"flex-shrink-0"},RY={class:"ml-3"},LY={class:"text-sm font-medium text-gray-800"},FY={class:"mt-2 text-sm text-gray-700"},NY={key:0,class:"mt-3"},MY={class:"space-y-1"},DY={key:2,class:"rounded-md bg-green-50 p-4"},UY={class:"flex"},BY={class:"flex-shrink-0"},jY={class:"ml-3"},VY={class:"text-sm font-medium text-green-800"},HY={class:"mt-2 text-sm text-green-700"},zY={key:3,class:"rounded-md bg-yellow-50 p-4"},WY={class:"flex"},qY={class:"flex-shrink-0"},KY={class:"ml-3"},GY={class:"text-sm font-medium text-yellow-800"},XY={class:"mt-2 text-sm text-yellow-700"},YY={class:"mt-4"},JY={key:4,class:"rounded-md bg-red-50 p-4"},ZY={class:"flex"},QY={class:"flex-shrink-0"},eJ={class:"ml-3"},tJ={class:"text-sm font-medium text-red-800"},nJ={class:"mt-2 text-sm text-red-700"},rJ={key:0,class:"mt-2"},oJ={class:"font-medium"},sJ={class:"text-sm text-red-600"},iJ={key:1,class:"mt-2"},lJ={class:"font-medium"},aJ={class:"mt-1 list-disc list-inside"},uJ={class:"font-medium"},cJ={key:0,class:"text-green-600 ml-2"},dJ={key:1,class:"text-red-600 ml-2"},fJ={class:"mt-4"};function pJ(e,t,n,r,o,i){const l=q("ClockIcon"),a=q("ArrowPathIcon"),c=q("TransferFileItem"),d=q("CheckCircleIcon"),p=q("TransferFileList"),h=q("ExclamationTriangleIcon"),v=q("XCircleIcon");return e.status==="waiting_for_webhook"?(I(),F("div",EY,[m("div",$Y,[m("div",xY,[z(l,{class:"h-5 w-5 text-blue-400","aria-hidden":"true"})]),m("div",TY,[m("h3",CY,L(e.__("Waiting for Transfer","podlove-podcasting-plugin-for-wordpress")),1),m("div",OY,[m("p",null,L(e.__("Files will be transferred automatically when the production is completed.","podlove-podcasting-plugin-for-wordpress")),1)]),m("div",AY,[m("button",{onClick:t[0]||(t[0]=y=>e.$emit("action")),class:"inline-flex items-center rounded-md bg-blue-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-blue-700 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-600"},L(e.__("Transfer Now","podlove-podcasting-plugin-for-wordpress")),1)])])])])):e.status==="in_progress"?(I(),F("div",kY,[m("div",IY,[m("div",PY,[z(a,{class:"h-5 w-5 text-gray-400 animate-spin","aria-hidden":"true"})]),m("div",RY,[m("h3",LY,L(e.__("Transferring Files","podlove-podcasting-plugin-for-wordpress")),1),m("div",FY,[m("p",null,L(e.__("Files are being transferred to PLUS storage...","podlove-podcasting-plugin-for-wordpress")),1),e.files&&e.files.length>0?(I(),F("div",NY,[m("ul",MY,[(I(!0),F(Me,null,Ot(e.files,y=>(I(),Ye(c,{key:y.filename,file:y},null,8,["file"]))),128))])])):Te("",!0)])])])])):e.status==="completed"?(I(),F("div",DY,[m("div",UY,[m("div",BY,[z(d,{class:"h-5 w-5 text-green-400","aria-hidden":"true"})]),m("div",jY,[m("h3",VY,L(e.__("Transfer Complete","podlove-podcasting-plugin-for-wordpress")),1),m("div",HY,[m("p",null,L(e.__("All files have been transferred successfully to PLUS storage.","podlove-podcasting-plugin-for-wordpress")),1),e.files&&e.files.length>0?(I(),Ye(p,{key:0,files:e.files,title:e.__("Transferred files:","podlove-podcasting-plugin-for-wordpress"),class:"mt-2"},null,8,["files","title"])):Te("",!0)])])])])):e.status==="completed_with_errors"?(I(),F("div",zY,[m("div",WY,[m("div",qY,[z(h,{class:"h-5 w-5 text-yellow-400","aria-hidden":"true"})]),m("div",KY,[m("h3",GY,L(e.__("Transfer Completed with Errors","podlove-podcasting-plugin-for-wordpress")),1),m("div",XY,[m("p",null,L(e.__("Some files were transferred successfully, but others failed.","podlove-podcasting-plugin-for-wordpress")),1),e.files&&e.files.length>0?(I(),Ye(p,{key:0,files:e.files,title:e.__("File transfer results:","podlove-podcasting-plugin-for-wordpress"),class:"mt-2"},null,8,["files","title"])):Te("",!0)]),m("div",YY,[m("button",{onClick:t[1]||(t[1]=y=>e.$emit("action")),class:"inline-flex items-center rounded-md bg-yellow-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-yellow-700 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-yellow-600"},L(e.__("Retry Failed Transfers","podlove-podcasting-plugin-for-wordpress")),1)])])])])):e.status==="failed"?(I(),F("div",JY,[m("div",ZY,[m("div",QY,[z(v,{class:"h-5 w-5 text-red-400","aria-hidden":"true"})]),m("div",eJ,[m("h3",tJ,L(e.__("Transfer Failed","podlove-podcasting-plugin-for-wordpress")),1),m("div",nJ,[m("p",null,L(e.__("Some files failed to transfer to PLUS storage.","podlove-podcasting-plugin-for-wordpress")),1),e.errors?(I(),F("div",rJ,[m("p",oJ,L(e.__("Error details:","podlove-podcasting-plugin-for-wordpress")),1),m("p",sJ,L(e.errors),1)])):Te("",!0),e.files&&e.files.length>0?(I(),F("div",iJ,[m("p",lJ,L(e.__("File transfer results:","podlove-podcasting-plugin-for-wordpress")),1),m("ul",aJ,[(I(!0),F(Me,null,Ot(e.files,y=>(I(),F("li",{key:y.filename,class:"text-sm"},[m("span",uJ,L(y.filename),1),y.success?(I(),F("span",cJ,"✓")):(I(),F("span",dJ,"✗ "+L(y.message),1))]))),128))])])):Te("",!0)]),m("div",fJ,[m("button",{onClick:t[2]||(t[2]=y=>e.$emit("action")),class:"inline-flex items-center rounded-md bg-red-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-red-700 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-red-600"},L(e.__("Retry Transfer","podlove-podcasting-plugin-for-wordpress")),1)])])])])):Te("",!0)}const hJ=Le(SY,[["render",pJ]]),mJ=ge({name:"PlusTransferStatus",components:{TransferHeader:cY,TransferStatusPanel:hJ},setup(){return{state:ut({production:B.auphonic.production,plusTransferStatus:B.auphonic.plusTransferStatus,plusTransferFiles:B.auphonic.plusTransferFiles,plusTransferErrors:B.auphonic.plusTransferErrors}),dispatch:Ze().dispatch}},mounted(){this.loadPlusTransferStatus()},methods:{loadPlusTransferStatus(){this.production.uuid&&this.dispatch(B8({production_uuid:this.production.uuid}))},triggerManualTransfer(){this.production.uuid&&this.dispatch(T$({production_uuid:this.production.uuid}))},refreshEpisodeData(){this.dispatch(rD())}},computed:{production(){return this.state.production||{}},plusTransferStatus(){return this.state.plusTransferStatus},plusTransferFiles(){return this.state.plusTransferFiles},plusTransferErrors(){return this.state.plusTransferErrors},showPlusTransferStatus(){return this.production.status===3}}}),gJ={key:0,class:"mt-4 overflow-hidden rounded-lg bg-white shadow"},vJ={class:"p-6"};function yJ(e,t,n,r,o,i){const l=q("TransferHeader"),a=q("TransferStatusPanel");return e.showPlusTransferStatus?(I(),F("div",gJ,[m("div",vJ,[z(l),z(a,{status:e.plusTransferStatus||"waiting_for_webhook",files:e.plusTransferFiles,errors:e.plusTransferErrors,onAction:e.triggerManualTransfer},null,8,["status","files","errors","onAction"])])])):Te("",!0)}const _J=Le(mJ,[["render",yJ]]),bJ=ge({components:{ClipboardCheckIcon:PV,ExternalLinkIcon:qx,ExclamationIcon:av,PlusTransferStatus:_J},setup(){return{state:ut({production:B.auphonic.production,title:B.episode.title,subtitle:B.episode.subtitle,summary:B.episode.summary,duration:B.episode.duration,slug:B.episode.slug,license_name:B.episode.license_name,license_url:B.episode.license_url,chapters:B.chapters.list,episodeId:B.episode.id,plusFeatures:B.plus.features}),dispatch:Ze().dispatch}},created(){this.dispatch(Wd())},methods:{isDifferent(e){switch(e.title){case"chapters":const t=e.here.map(r=>r.start+(r.title||"")+(r.href||"")+(r.image||"")).join(";"),n=e.there.map(r=>Math.round((r.start_output_sec||0)*1e3)+(r.title||"")+(r.url||"")+(r.image||"")).join(";");return t!=n;default:return e.there!=e.here}},renderEntryPreview(e){switch(e.title){case"chapters":return e.there.map(n=>n.start+" "+n.title).join(" / ");default:return e.there}},importMeta(e,t){switch(e){case"chapters":const r=t.map(o=>({start:Math.round((o.start_output_sec||0)*1e3),title:o.title||"",href:o.url||"",image:""}));this.dispatch(pE(r));break;default:this.dispatch(bt({prop:e,value:t}));break}},importAllMeta(){this.visibleEntries.forEach(e=>{this.importMeta(e.title,e.there)})}},computed:{production(){return this.state.production||{}},entries(){const e=this.state.production,t=this.state;return[{key:1,title:"title",here:t.title,there:e.metadata.title},{key:2,title:"subtitle",here:t.subtitle,there:e.metadata.subtitle},{key:3,title:"summary",here:t.summary,there:e.metadata.summary},{key:5,title:"license_name",here:t.license_name,there:e.metadata.license},{key:6,title:"license_url",here:t.license_url,there:e.metadata.license_url},{key:9,title:"slug",here:t.slug,there:e.output_basename},{key:10,title:"chapters",here:t.chapters,there:e.chapters}]},visibleEntries(){return this.entries.filter(e=>e.there&&this.isDifferent(e))},plusFileStorageEnabled(){return this.state.plusFeatures.fileStorage}}}),wJ={key:0,class:"rounded-md bg-green-50 p-4"},SJ={class:"flex"},EJ={class:"flex-shrink-0"},$J={class:"ml-3"},xJ={class:"text-sm font-medium text-green-800"},TJ={class:"mt-2 text-sm text-green-700"},CJ=["href"],OJ={key:1,class:"rounded-md bg-yellow-50 p-4 mt-4"},AJ={class:"flex"},kJ={class:"flex-shrink-0"},IJ={class:"ml-3"},PJ={class:"text-sm font-medium text-yellow-800"},RJ={class:"mt-2 text-sm text-yellow-700"},LJ={key:3,class:"mt-4 overflow-hidden rounded-lg bg-white shadow"},FJ={class:"p-6"},NJ=m("h3",{class:"text-lg font-medium leading-6 text-gray-900"},"Import Metadata",-1),MJ={class:"mt-1 text-sm text-gray-500"},DJ={class:"mt-6 flow-root"},UJ={role:"list",class:"-my-5 divide-y divide-gray-200"},BJ={class:"flex items-center space-x-4"},jJ={class:"min-w-0 flex-1"},VJ={class:"truncate text-sm text-gray-500"},HJ={class:"truncate text-sm font-medium text-gray-900"},zJ=["onClick"],WJ={class:"hidden sm:inline"},qJ={class:"mt-6"},KJ={key:4,class:"mt-4 overflow-hidden rounded-lg bg-white shadow"},GJ={class:"p-6"};function XJ(e,t,n,r,o,i){const l=q("ClipboardCheckIcon"),a=q("ExternalLinkIcon"),c=q("ExclamationIcon"),d=q("PlusTransferStatus");return I(),F("div",null,[e.production.status==3?(I(),F("div",wJ,[m("div",SJ,[m("div",EJ,[z(l,{class:"h-5 w-5 text-green-400","aria-hidden":"true"})]),m("div",$J,[m("h3",xJ,L(e.__("Done","podlove-podcasting-plugin-for-wordpress")),1),m("div",TJ,[m("p",null,[m("a",{href:e.production.status_page,target:"_blank",class:"underline inline-flex items-center"},[Be(L(e.__("View Results","podlove-podcasting-plugin-for-wordpress"))+" ",1),z(a,{class:"ml-0.5 mr-1 h-4 w-4","aria-hidden":"true"})],8,CJ),Be(" "+L(e.__("on the Auphonic status page.","podlove-podcasting-plugin-for-wordpress")),1)])])])])])):Te("",!0),e.production.warning_message?(I(),F("div",OJ,[m("div",AJ,[m("div",kJ,[z(c,{class:"h-5 w-5 text-yellow-400","aria-hidden":"true"})]),m("div",IJ,[m("h3",PJ,L(e.__("Warning","podlove-podcasting-plugin-for-wordpress")),1),m("div",RJ,[m("p",null,L(e.production.warning_message),1)])])])])):Te("",!0),e.plusFileStorageEnabled?(I(),Ye(d,{key:2})):Te("",!0),e.visibleEntries.length>0?(I(),F("div",LJ,[m("div",FJ,[m("div",null,[NJ,m("p",MJ,L(e.__("These values from your Auphonic Production differ from your local values:","podlove-podcasting-plugin-for-wordpress")),1)]),m("div",DJ,[m("ul",UJ,[(I(!0),F(Me,null,Ot(e.visibleEntries,p=>(I(),F("li",{key:p.key,class:"py-4"},[m("div",BJ,[m("div",jJ,[m("p",VJ,[m("em",null,L(p.title),1),Be(" "+L(e.__("in the Auphonic Production is:","podlove-podcasting-plugin-for-wordpress")),1)]),m("p",HJ,L(e.renderEntryPreview(p)),1)]),m("div",null,[m("button",{onClick:va(h=>e.importMeta(p.title,p.there),["prevent"]),class:"inline-flex items-center rounded-full border border-gray-300 bg-white px-2.5 py-0.5 text-sm font-medium leading-5 text-gray-700 shadow-sm hover:bg-gray-50","aria-label":"Import from Auphonic"},[Be(L(e.__("Import","podlove-podcasting-plugin-for-wordpress")),1),m("span",WJ," "+L(e.__("from Auphonic","podlove-podcasting-plugin-for-wordpress")),1)],8,zJ)])])]))),128))])]),m("div",qJ,[m("button",{onClick:t[0]||(t[0]=va((...p)=>e.importAllMeta&&e.importAllMeta(...p),["prevent"])),class:"flex w-full items-center justify-center rounded-md border border-gray-300 bg-white px-4 py-2 text-sm font-medium text-gray-700 shadow-sm hover:bg-gray-50"},L(e.__("Import all from Auphonic","podlove-podcasting-plugin-for-wordpress")),1)])])])):(I(),F("div",KJ,[m("div",GJ,L(e.__("Nothing to import","podlove-podcasting-plugin-for-wordpress")),1)]))])}const YJ=Le(bJ,[["render",XJ]]),JJ=ge({components:{Switch:DT,SwitchGroup:sz,SwitchLabel:iz},data(){return{enabled:!1}},methods:{handleUpdate(e){this.enabled=e,this.dispatch(x$(e))}},setup(){return{state:ut({publishWhenDone:B.auphonic.publishWhenDone}),dispatch:Ze().dispatch}},mounted(){this.enabled=this.state.publishWhenDone}}),ZJ={class:"text-sm text-gray-900"};function QJ(e,t,n,r,o,i){const l=q("Switch"),a=q("SwitchLabel"),c=q("SwitchGroup");return I(),F("div",null,[z(c,{as:"div",class:"flex items-center"},{default:_e(()=>[z(l,{modelValue:e.enabled,"onUpdate:modelValue":e.handleUpdate,class:gt([e.enabled?"bg-indigo-600":"bg-gray-200","relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"])},{default:_e(()=>[m("span",{"aria-hidden":"true",class:gt([e.enabled?"translate-x-5":"translate-x-0","pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out"])},null,2)]),_:1},8,["modelValue","onUpdate:modelValue","class"]),z(a,{as:"span",class:"ml-3"},{default:_e(()=>[m("span",ZJ,L(e.__("Publish Episode when Production is done","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})]),_:1})])}const eZ=Le(JJ,[["render",QJ]]),tZ=ge({props:{className:{type:String,default:""}}}),nZ=m("g",{transform:"translate(-12.73496,-48.464)"},[m("path",{d:"m 28.623,223.469 c -3.277,-0.007 -7.473,0.836 -12.588,2.528 l 1.46,6.491 c 3.476,-1.302 6.689,-1.95 9.638,-1.944 3.472,0.008 5.797,0.63 6.975,1.868 1.176,1.237 1.762,3.569 1.754,6.998 l -7.373,-0.017 c -5.047,-0.011 -8.933,1.031 -11.655,3.125 -2.725,2.092 -4.091,5.007 -4.099,8.739 -0.008,3.334 1.198,6.07 3.618,8.207 2.419,2.14 5.661,3.212 9.726,3.221 4.389,0.01 8.063,-1.161 11.017,-3.512 l 1.075,2.655 7.471,0.017 0.052,-23.199 c 0.011,-4.848 -1.243,-8.587 -3.759,-11.214 -2.519,-2.628 -6.956,-3.949 -13.312,-3.963 z m 7.6,30 c -0.33,0.195 -0.92,0.505 -1.772,0.929 -0.853,0.424 -1.738,0.734 -2.656,0.929 -0.92,0.193 -2.033,0.29 -3.343,0.287 -1.966,-0.004 -3.506,-0.443 -4.618,-1.314 -1.113,-0.873 -1.666,-2.08 -1.663,-3.618 0.007,-3.079 2.467,-4.611 7.382,-4.601 4.916,0.011 6.685,0.006 6.685,0.006 l -0.015,7.382 z m 41.315,-29.3 9.241,0.021 -0.084,37.845 -6.489,-0.014 -1.173,-2.754 c -2.494,1.173 -5.743,3.524 -12.295,3.51 -5.701,-0.013 -13.761,-0.336 -13.723,-17.135 l 0.048,-21.527 9.339,0.021 -0.051,22.806 c -0.013,5.661 2.719,7.772 6.863,7.781 2.883,0.007 5.638,-0.74 8.262,-2.243 l 0.062,-28.311 z m 44.305,1.377 c -2.751,-1.251 -5.502,-1.88 -8.254,-1.887 -3.801,-0.008 -7.539,1 -11.212,3.023 l -1.076,-2.46 -6.586,-0.015 -0.111,49.679 9.436,0.021 0.029,-13.013 c 1.505,0.659 4.534,1.975 8.154,1.983 6.096,0.014 10.833,-1.728 14.215,-5.226 3.385,-3.498 5.083,-8.296 5.097,-14.391 0.011,-4.719 -0.914,-8.538 -2.776,-11.458 -1.863,-2.918 -4.166,-5.005 -6.916,-6.256 z m -3.061,27.173 c -2.066,1.863 -4.772,2.792 -8.114,2.784 -2.425,-0.005 -4.587,-0.633 -6.484,-1.883 l 0.047,-21.135 c 2.098,-0.912 4.36,-1.367 6.786,-1.362 7.274,0.017 10.902,4.219 10.884,12.608 -0.01,4.129 -1.049,7.124 -3.119,8.988 z m 53.325,-12.021 -0.048,21.43 -9.437,-0.021 0.051,-22.708 c 0.005,-2.293 -0.45,-4.145 -1.363,-5.557 -0.917,-1.411 -2.717,-2.12 -5.402,-2.125 -2.427,-0.005 -5.408,0.676 -8.949,2.044 l -0.063,28.311 -9.437,-0.021 0.111,-49.608 9.436,0.021 -0.03,13.827 c 3.935,-1.628 7.736,-2.441 11.406,-2.433 5.636,0.012 13.762,0.659 13.725,16.84 z m 92.456,-16.111 9.437,0.021 -0.084,37.747 -9.437,-0.021 0.084,-37.747 z m 46.696,29.103 2.643,6.102 c -1.97,1.11 -4.085,1.99 -6.347,2.639 -2.263,0.649 -4.969,0.972 -8.113,0.965 -5.898,-0.013 -10.629,-1.825 -14.192,-5.438 -3.564,-3.611 -5.337,-8.368 -5.324,-14.266 0.014,-6.095 1.793,-10.891 5.339,-14.389 3.547,-3.497 8.302,-5.241 14.266,-5.228 3.014,0.006 5.586,0.307 7.715,0.901 2.127,0.595 4.371,1.453 6.729,2.571 l -2.67,6.187 c -2.356,-0.792 -4.208,-1.369 -5.548,-1.732 -1.345,-0.363 -2.9,-0.547 -4.67,-0.551 -3.735,-0.008 -6.572,1.1 -8.509,3.323 -1.938,2.224 -2.912,5.203 -2.921,8.938 -0.008,3.605 1,6.54 3.028,8.805 2.024,2.266 4.809,3.403 8.347,3.412 1.77,0.004 3.326,-0.173 4.673,-0.531 1.339,-0.356 3.193,-0.926 5.554,-1.708 z m -53.79,-12.801 -0.048,21.43 -9.338,-0.021 0.05,-22.609 c 0.016,-7.021 -4.21,-7.677 -6.766,-7.683 -2.295,-0.005 -5.344,0.676 -9.146,2.044 l -0.062,28.212 -9.339,-0.021 0.084,-37.747 6.683,0.015 1.175,2.755 c 4.462,-2.152 8.818,-3.225 13.081,-3.215 4.405,0.01 13.663,0.163 13.626,16.84 z m -59.894,-17.042 c -5.898,-0.013 -10.62,1.731 -14.167,5.227 -3.545,3.499 -5.327,8.294 -5.341,14.389 -0.009,3.801 0.784,7.178 2.385,10.131 1.6,2.953 3.854,5.268 6.769,6.946 2.913,1.676 6.301,2.52 10.169,2.528 3.866,0.009 7.274,-0.82 10.228,-2.483 2.955,-1.665 5.234,-3.969 6.848,-6.915 1.612,-2.946 2.423,-6.351 2.432,-10.218 0.013,-5.963 -1.73,-10.719 -5.228,-14.265 -3.5,-3.546 -8.195,-5.327 -14.095,-5.34 z m 6.866,28.62 c -1.809,2.095 -4.152,3.137 -7.035,3.131 -2.753,-0.006 -5.047,-1.076 -6.874,-3.21 -1.831,-2.133 -2.741,-5.102 -2.732,-8.903 0.008,-3.866 0.949,-6.879 2.821,-9.037 1.872,-2.159 4.15,-3.235 6.84,-3.229 2.752,0.006 5.059,1.077 6.922,3.21 1.862,2.134 2.791,5.167 2.783,9.099 -0.009,3.868 -0.918,6.848 -2.725,8.939 z"}),m("path",{d:"M 53.464,198.261 H 13.619 c 0,-0.001 0,-0.004 0,-0.006 0,-82.727 67.065,-149.791 149.788,-149.791 82.729,0 149.794,67.063 149.794,149.791 0,0.002 0,0.005 0,0.006 h -39.844 c 0.006,-0.435 0.017,-0.869 0.017,-1.306 0,-60.731 -49.234,-109.963 -109.967,-109.963 -60.727,0 -109.959,49.232 -109.959,109.963 -10e-4,0.437 0.011,0.871 0.016,1.306 z m 189.059,0 c 0.019,-0.705 0.053,-1.407 0.053,-2.117 0,-43.723 -35.444,-79.167 -79.167,-79.167 -43.722,0 -79.166,35.445 -79.166,79.167 0,0.71 0.035,1.412 0.054,2.117 h 39.67 c -0.085,-1.047 -0.14,-2.103 -0.14,-3.172 0,-21.861 17.721,-39.584 39.582,-39.584 21.862,0 39.583,17.723 39.583,39.584 0,1.069 -0.055,2.125 -0.139,3.172 h 39.67 z"})],-1),rZ=[nZ];function oZ(e,t,n,r,o,i){return I(),F("svg",{class:gt(e.className),viewBox:"0 0 301.24005 225.44299",stroke:"currentColor",fill:"currentColor","aria-hidden":"true"},rZ,2)}const Rv=Le(tZ,[["render",oZ]]),sZ=ge({components:{PodloveButton:Pn,FileChooser:oY,CogIcon:LV,ChevronDownIcon:Gx,ChevronRightIcon:kV,XIcon:ml,DatabaseIcon:IV,ExternalLinkIcon:qx,CloudIcon:Yx,TrashIcon:DV,ArrowDownIcon:Wx,ArrowDownTrayIcon:$V,AuphonicLogo:Rv,DonePage:YJ,WebhookToggle:eZ},data(){return{algorithmSettings:{},showImportPage:!1}},setup(){return{state:ut({production:B.auphonic.production,tracks:B.auphonic.tracks,isSaving:B.auphonic.isSaving,progress:e=>t=>B.progress.progress(e,t)}),dispatch:Ze().dispatch}},methods:{saveProduction(){this.dispatch(_$({uuid:this.production.uuid}))},startProduction(){this.dispatch(b$({uuid:this.production.uuid}))},deselectProduction(){this.dispatch(v$())},addTrack(){this.dispatch(N8())},removeTrack(e){this.dispatch(E$(e))},updateTrack(e,t,n){this.dispatch($$({track:{[e]:t},index:n}))},algorithmSettingsVisible(e){return!0},toggleAlgorithmSettingVisible(e){this.algorithmSettings[e]=!Y.get(this.algorithmSettings,e,!1)},handleSelectForeBackground(e,t){this.updateTrack("fore_background",e.target.value,t)},handleToggleNoiseHum(e,t){this.updateTrack("noise_and_hum_reduction",e.target.checked,t)},handleToggleFiltering(e,t){this.updateTrack("filtering",e.target.checked,t)},handleUpdateIdentifier(e,t){this.updateTrack("identifier_new",e.target.value,t)},uploadProgress(e){return this.state.progress(e)||null}},computed:{production(){return this.state.production||{}},isSaving(){return this.state.isSaving},showProcessingScreen(){return[1,4,5,6,7,8,12,13,14].includes(this.production.status)},showUploadScreen(){return this.production.status===0},showTrackEditor(){return[9,10,11].includes(this.production.status)},tracks(){return this.state.tracks||[]},isMultitrack(){return this.state.production&&this.state.production.is_multitrack}}}),iZ={class:"pb-5 space-y-4"},lZ={class:"space-y-8"},aZ={class:"bg-white px-4 sm:px-6"},uZ={class:"-ml-4 -mt-4 flex flex-wrap items-center justify-between sm:flex-nowrap"},cZ={class:"ml-4 mt-4"},dZ={class:"flex items-center"},fZ={class:"flex-shrink-0"},pZ={class:"ml-4"},hZ={class:"text-base font-semibold leading-6 text-gray-900"},mZ={class:"text-sm text-gray-500"},gZ={class:"ml-4 mt-4 flex items-center space-x-4 text-xs"},vZ={key:0,class:"inline-flex items-center animate-pulse text-green-600"},yZ={key:0},_Z={key:1},bZ={class:"space-y-4"},wZ={key:0},SZ={key:1},EZ={class:"rounded-md bg-indigo-50 p-4"},$Z={class:"flex"},xZ={class:"flex-shrink-0"},TZ={class:"ml-3"},CZ={class:"text-sm font-medium text-indigo-800"},OZ={class:"mt-2 text-sm text-indigo-700"},AZ={key:2},kZ={key:3},IZ={class:"bg-white shadow overflow-hidden rounded-md"},PZ={class:"px-6 pt-4 hidden md:block"},RZ={class:"md:grid md:grid-cols-3 md:gap-12"},LZ={class:"block text-sm font-medium text-gray-700 md:col-span-1"},FZ={class:"block text-sm font-medium text-gray-700 mt-5 md:mt-0 md:col-span-1"},NZ={class:"block text-sm font-medium text-gray-700 mt-5 md:mt-0 md:col-span-1"},MZ=m("div",{class:"block w-8 md:col-span-1"},null,-1),DZ={role:"list",class:"divide-y divide-gray-200"},UZ={class:"md:grid md:grid-cols-3 md:gap-12"},BZ={class:"md:col-span-1"},jZ=["for"],VZ=["id","value","onInput"],HZ={class:"mt-5 md:mt-0 md:col-span-1"},zZ={class:"sm:items-baseline"},WZ={class:"mt-4 sm:mt-0"},qZ={key:0,class:"mt-2 px-3 py-2 bg-gray-100 rounded-md text-sm text-gray-700 break-all"},KZ={key:1},GZ={class:"mt-2","aria-hidden":"true"},XZ={class:"overflow-hidden rounded-full bg-gray-100"},YZ={class:"mt-1 hidden grid-cols-4 text-sm font-medium text-gray-600 sm:grid"},JZ={class:"md:col-span-1"},ZZ={key:0,role:"group",class:"bg-gr"},QZ={class:"sm:items-baseline"},eQ={class:""},tQ={class:"block md:hidden text-sm font-medium text-gray-700 py-2"},nQ={class:"max-w-lg relative"},rQ=["title","onClick"],oQ={class:"space-y-4"},sQ={class:"relative flex items-start"},iQ={class:"flex items-center h-5"},lQ=["id","checked","onInput"],aQ={class:"ml-3 text-sm"},uQ=["for"],cQ={class:"relative flex items-start"},dQ={class:"flex items-center h-5"},fQ=["id","checked","onInput"],pQ={class:"ml-3 text-sm"},hQ=["for"],mQ={class:"relative flex justify-start align-middle items-center gap-3"},gQ={class:"text-sm"},vQ=["for"],yQ=["value","onInput","id"],_Q={value:"auto"},bQ={value:"foreground"},wQ={value:"background"},SQ={value:"ducking"},EQ={value:"unchanged"},$Q={class:"bg-gray-50 px-4 py-4 sm:px-6"},xQ={key:4,class:"grid grid-cols-1 gap-y-6 gap-x-4 sm:grid-cols-6"},TQ={class:"sm:col-span-4"},CQ={class:"text-base font-medium text-gray-900"},OQ={class:"mt-2"},AQ={key:0,class:"mt-2 px-3 py-2 bg-gray-100 rounded-md text-sm text-gray-700 break-all"},kQ={key:1},IQ={class:"mt-2","aria-hidden":"true"},PQ={class:"overflow-hidden rounded-full bg-gray-100"},RQ={class:"mt-1 hidden grid-cols-4 text-sm font-medium text-gray-600 sm:grid"},LQ={class:"pt-5"},FQ={class:"flex flex-col sm:flex-row gap-4 sm:gap-2 justify-between"},NQ={class:"flex justify-end gap-3"},MQ=["href"];function DQ(e,t,n,r,o,i){var C,w,E,O;const l=q("AuphonicLogo"),a=q("CloudIcon"),c=q("ArrowDownTrayIcon"),d=q("XIcon"),p=q("DatabaseIcon"),h=q("DonePage"),v=q("FileChooser"),y=q("TrashIcon"),b=q("podlove-button"),S=q("WebhookToggle"),T=q("ExternalLinkIcon");return I(),F("form",iZ,[m("div",lZ,[m("div",aZ,[m("div",uZ,[m("div",cZ,[m("div",dZ,[m("div",fZ,[z(l,{className:"mx-auto h-12 w-12 text-gray-400"})]),m("div",pZ,[m("h3",hZ,L((w=(C=e.production)==null?void 0:C.metadata)==null?void 0:w.title),1),m("p",mZ,L(new Date(Date.parse((E=e.production)==null?void 0:E.creation_time)).toLocaleString()),1)])])]),m("div",gZ,[e.isSaving?(I(),F("span",vZ,[z(a,{class:"mr-1 h-4 w-4","aria-hidden":"true"}),Be(" "+L(e.__("Saving","podlove-podcasting-plugin-for-wordpress")),1)])):Te("",!0),e.production.status!==3?(I(),F("button",{key:1,onClick:t[0]||(t[0]=$=>e.showImportPage=!e.showImportPage),type:"button",class:"relative inline-flex items-center rounded-md bg-white px-3 py-2 font-medium text-gray-500 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50"},[z(c,{class:"-ml-0.5 mr-1.5 h-4 w-4 text-gray-400","aria-hidden":"true"}),e.showImportPage?(I(),F("span",yZ,L(e.__("Hide Import","podlove-podcasting-plugin-for-wordpress")),1)):Te("",!0),e.showImportPage?Te("",!0):(I(),F("span",_Z,L(e.__("Show Import","podlove-podcasting-plugin-for-wordpress")),1))])):Te("",!0),m("button",{onClick:t[1]||(t[1]=(...$)=>e.deselectProduction&&e.deselectProduction(...$)),type:"button",class:"relative inline-flex items-center rounded-md bg-white px-3 py-2 font-medium text-gray-500 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50"},[z(d,{class:"-ml-0.5 mr-1.5 h-4 w-4 text-gray-400","aria-hidden":"true"}),m("span",null,L(e.__("Deselect Production","podlove-podcasting-plugin-for-wordpress")),1)])])])]),m("div",bZ,[e.showUploadScreen?(I(),F("div",wZ,L(e.__("Uploading...","podlove-podcasting-plugin-for-wordpress")),1)):Te("",!0),e.showProcessingScreen?(I(),F("div",SZ,[m("div",EZ,[m("div",$Z,[m("div",xZ,[z(p,{class:"h-5 w-5 text-indigo-400","aria-hidden":"true"})]),m("div",TZ,[m("h3",CZ,L(e.production.status_string),1),m("div",OZ,[m("p",null,L(e.__("Auphonic is now processing your production. Please wait for it to finish.","podlove-podcasting-plugin-for-wordpress")),1)])])])])])):Te("",!0),e.production.status==3||e.showImportPage?(I(),F("div",AZ,[z(h)])):Te("",!0),e.isMultitrack&&e.showTrackEditor?(I(),F("div",kZ,[m("div",IZ,[m("div",PZ,[m("div",RZ,[m("div",LZ,L(e.__("Track Identifier","podlove-podcasting-plugin-for-wordpress")),1),m("div",FZ,L(e.__("Upload Method","podlove-podcasting-plugin-for-wordpress")),1),m("div",NZ,L(e.__("Algorithm","podlove-podcasting-plugin-for-wordpress")),1),MZ])]),m("ul",DZ,[(I(!0),F(Me,null,Ot(e.tracks,($,P)=>(I(),F("li",{key:`xtrack-${P}`,class:"px-6 py-4"},[m("div",UZ,[m("div",BZ,[m("label",{for:`track-id-${P}`,class:"block md:hidden text-sm font-medium text-gray-700"},L(e.__("Track Identifier","podlove-podcasting-plugin-for-wordpress")),9,jZ),m("input",{id:`track-id-${P}`,type:"text",value:$.identifier_new,onInput:R=>e.handleUpdateIdentifier(R,P),class:"mt-1 max-w-lg block w-full shadow-sm focus:ring-indigo-500 focus:border-indigo-500 sm:max-w-xs sm:text-sm border-gray-300 rounded-md"},null,40,VZ)]),m("div",HZ,[m("div",zZ,[m("div",WZ,[z(v,{track_index:P,file_key:`${e.production.uuid}_t${P}`},null,8,["track_index","file_key"]),$.input_file_name?(I(),F("div",qZ,L(e.__("Uploaded File:","podlove-podcasting-plugin-for-wordpress"))+" "+L($.input_file_name),1)):Te("",!0),e.uploadProgress($.identifier)!=null?(I(),F("div",KZ,[m("div",GZ,[m("div",XZ,[m("div",{class:"h-2 rounded-full bg-indigo-600",style:oo({width:e.uploadProgress($.identifier)+"%"})},null,4)]),m("div",YZ,[m("div",null,L(e.uploadProgress($.identifier))+"%",1)])])])):Te("",!0)])])]),m("div",JZ,[e.algorithmSettingsVisible(P)?(I(),F("div",ZZ,[m("div",QZ,[m("div",eQ,[m("div",tQ,L(e.__("Algorithm","podlove-podcasting-plugin-for-wordpress")),1),m("div",nQ,[m("div",{title:e.__("Remove Track","podlove-podcasting-plugin-for-wordpress"),onClick:R=>e.removeTrack($.identifier),class:"absolute z-10 right-0 top-0 cursor-pointer text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500"},[z(y,{class:"h-6 w-6","aria-hidden":"true"})],8,rQ),m("div",oQ,[m("div",sQ,[m("div",iQ,[m("input",{id:`track_${P}_filtering`,type:"checkbox",class:"focus:ring-indigo-500 h-4 w-4 text-indigo-600 border-gray-300 rounded",checked:$.filtering,onInput:R=>e.handleToggleFiltering(R,P)},null,40,lQ)]),m("div",aQ,[m("label",{for:`track_${P}_filtering`,class:"text-gray-700"},L(e.__("Filtering","podlove-podcasting-plugin-for-wordpress")),9,uQ)])]),m("div",null,[m("div",cQ,[m("div",dQ,[m("input",{id:`track_${P}_noisehum`,type:"checkbox",class:"focus:ring-indigo-500 h-4 w-4 text-indigo-600 border-gray-300 rounded",checked:$.noise_and_hum_reduction,onInput:R=>e.handleToggleNoiseHum(R,P)},null,40,fQ)]),m("div",pQ,[m("label",{for:`track_${P}_noisehum`,class:"text-gray-700"},L(e.__("Noise and Hum Reduction","podlove-podcasting-plugin-for-wordpress")),9,hQ)])])]),m("div",null,[m("div",mQ,[m("div",gQ,[m("label",{for:`track_${P}_fgbg`,class:"text-gray-700"},L(e.__("Fore/Background","podlove-podcasting-plugin-for-wordpress")),9,vQ)]),m("select",{value:$.fore_background,onInput:R=>e.handleSelectForeBackground(R,P),id:`track_${P}_fgbg`,class:"mt-1 block w-[168px] pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm rounded-md"},[m("option",_Q,L(e.__("Auto","podlove-podcasting-plugin-for-wordpress")),1),m("option",bQ,L(e.__("Foreground Track","podlove-podcasting-plugin-for-wordpress")),1),m("option",wQ,L(e.__("Background Track","podlove-podcasting-plugin-for-wordpress")),1),m("option",SQ,L(e.__("Duck this Track","podlove-podcasting-plugin-for-wordpress")),1),m("option",EQ,L(e.__("Unchanged (Foreground)","podlove-podcasting-plugin-for-wordpress")),1)],40,yQ)])])])])])])])):Te("",!0)])])]))),128))]),m("div",$Q,[z(b,{variant:"primary",onClick:e.addTrack},{default:_e(()=>[Be(L(e.__("Add Track","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["onClick"])])])])):e.showTrackEditor?(I(),F("div",xQ,[m("fieldset",TQ,[m("legend",CQ,L(e.__("Audio Source","podlove-podcasting-plugin-for-wordpress")),1),m("div",OQ,[z(v,{file_key:e.production.uuid},null,8,["file_key"]),e.production.input_file?(I(),F("div",AQ,[m("span",null,L(e.__("Uploaded File:","podlove-podcasting-plugin-for-wordpress"))+" "+L(e.production.input_file),1)])):Te("",!0),e.uploadProgress("singletrack")!=null?(I(),F("div",kQ,[m("div",IQ,[m("div",PQ,[m("div",{class:"h-2 rounded-full bg-indigo-600",style:oo({width:e.uploadProgress("singletrack")+"%"})},null,4)]),m("div",RQ,[m("div",null,L(e.uploadProgress("singletrack"))+"%",1)])])])):Te("",!0)])])])):Te("",!0)])]),m("div",LQ,[m("div",FQ,[z(S),m("div",NQ,[m("a",{href:(O=e.production)==null?void 0:O.edit_page,target:"_blank",class:"inline-flex items-center rounded border border-gray-300 bg-white px-2.5 py-1.5 text-xs font-medium text-gray-500 shadow-sm hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"},[Be(L(e.__("Edit in Auphonic","podlove-podcasting-plugin-for-wordpress"))+" ",1),z(T,{class:"ml-1 -mr-0.5 h-4 w-4","aria-hidden":"true"})],8,MQ),z(b,{variant:e.isSaving?"secondary-disabled":"secondary",onClick:e.saveProduction},{default:_e(()=>[Be(L(e.__("Save Production","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["variant","onClick"]),z(b,{variant:"primary",onClick:e.startProduction},{default:_e(()=>[Be(L(e.__("Start Production","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["onClick"])])])])])}const UQ=Le(sZ,[["render",DQ]]),BQ=ge({components:{Listbox:vv,ListboxButton:_v,ListboxLabel:yv,ListboxOption:wv,ListboxOptions:bv,CheckIcon:pf,SelectorIcon:hf},setup(){return{state:ut({productions:B.auphonic.productions,production:B.auphonic.production}),dispatch:Ze().dispatch}},methods:{setProduction(e){this.dispatch(mi(e))}},computed:{productions(){return this.state.productions.map(e=>{const t=e.creation_time.split("T")[0],n=e.metadata.title;return{...e,_select:{name:n,date:t}}})},currentProduction(){return this.state.production}}}),jQ={class:"mt-1 relative"},VQ={class:"w-full inline-flex truncate"},HQ={key:0,class:"truncate"},zQ={key:1,class:"truncate"},WQ={class:"absolute inset-y-0 right-0 flex items-center pr-2 pointer-events-none"},qQ={class:"flex justify-between"},KQ={class:gt(["font-normal","truncate"])};function GQ(e,t,n,r,o,i){const l=q("ListboxLabel"),a=q("SelectorIcon"),c=q("ListboxButton"),d=q("ListboxOption"),p=q("ListboxOptions"),h=q("Listbox");return I(),Ye(h,{as:"div","onUpdate:modelValue":e.setProduction,value:e.currentProduction},{default:_e(()=>[z(l,{class:"block text-sm font-medium text-gray-600 sr-only"},{default:_e(()=>[Be(L(e.__("Select Existing Production","podlove-podcasting-plugin-for-wordpress")),1)]),_:1}),m("div",jQ,[z(c,{class:"relative w-full bg-white border border-gray-300 rounded-md shadow-sm pl-3 pr-10 py-2 text-left cursor-default focus:outline-none focus:ring-1 focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"},{default:_e(()=>[m("span",VQ,[e.currentProduction?(I(),F("span",HQ,L(e.currentProduction.metadata.title),1)):(I(),F("span",zQ," "))]),m("span",WQ,[z(a,{class:"h-5 w-5 text-gray-400","aria-hidden":"true"})])]),_:1}),z(Cs,{"leave-active-class":"transition ease-in duration-100","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:_e(()=>[z(p,{class:"absolute z-10 mt-1 w-full bg-white shadow-lg max-h-36 rounded-md py-1 text-base ring-1 ring-black ring-opacity-5 overflow-auto focus:outline-none sm:text-sm"},{default:_e(()=>[(I(!0),F(Me,null,Ot(e.productions,v=>(I(),Ye(d,{as:"template",key:v._select.date,value:v},{default:_e(({active:y})=>[m("li",{class:gt([y?"text-white bg-indigo-600":"text-gray-900","cursor-default select-none relative py-2 pl-3 pr-9"])},[m("div",qQ,[m("span",KQ,[m("span",{class:gt([y?"text-indigo-200":"text-gray-500","ml-2 truncate"])},L(v._select.date),3),Be(" "+L(v._select.name),1)]),m("span",{class:gt([y?"text-indigo-200":"text-gray-500","ml-2 truncate flex-shrink-0"])},L(v.status_string),3)])],2)]),_:2},1032,["value"]))),128))]),_:1})]),_:1})])]),_:1},8,["onUpdate:modelValue","value"])}const XQ=Le(BQ,[["render",GQ]]),YQ=ge({components:{Listbox:vv,ListboxButton:_v,ListboxLabel:yv,ListboxOption:wv,ListboxOptions:bv,CheckIcon:pf,SelectorIcon:hf},setup(){return{state:ut({presets:B.auphonic.presets,currentPreset:B.auphonic.preset}),dispatch:Ze().dispatch}},methods:{setPreset(e){this.dispatch(Kg(e.uuid))}},computed:{presets(){return this.state.presets.map(e=>{const t=e.creation_time.split("T")[0],n=e.preset_name,r=e.is_multitrack;return{...e,_select:{name:n,date:t,is_multitrack:r}}}).toSorted((e,t)=>{const n=e._select.name.toUpperCase(),r=t._select.name.toUpperCase();return n<r?-1:n>r?1:0})},currentPreset(){const e=this.state.currentPreset;return this.presets.find(t=>t.uuid===e)}}}),JQ={class:"mt-1 relative"},ZQ={class:"w-full inline-flex truncate"},QQ={key:0,class:"truncate"},eee={key:1,class:"truncate"},tee={class:"absolute inset-y-0 right-0 flex items-center pr-2 pointer-events-none"},nee={class:"flex"},ree={class:gt(["font-normal","truncate"])};function oee(e,t,n,r,o,i){const l=q("ListboxLabel"),a=q("SelectorIcon"),c=q("ListboxButton"),d=q("ListboxOption"),p=q("ListboxOptions"),h=q("Listbox");return I(),Ye(h,{as:"div","onUpdate:modelValue":e.setPreset,value:e.currentPreset},{default:_e(()=>[z(l,{class:"block text-sm font-medium text-gray-600 sr-only"},{default:_e(()=>[Be(L(e.__("Select Preset","podlove-podcasting-plugin-for-wordpress")),1)]),_:1}),m("div",JQ,[z(c,{class:"relative w-full bg-white border border-gray-300 rounded-md shadow-sm pl-3 pr-10 py-2 text-left cursor-default focus:outline-none focus:ring-1 focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"},{default:_e(()=>[m("span",ZQ,[e.currentPreset?(I(),F("span",QQ,L(e.currentPreset._select.name),1)):(I(),F("span",eee," "))]),m("span",tee,[z(a,{class:"h-5 w-5 text-gray-400","aria-hidden":"true"})])]),_:1}),z(Cs,{"leave-active-class":"transition ease-in duration-100","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:_e(()=>[z(p,{class:"absolute z-10 mt-1 w-full bg-white shadow-lg max-h-36 rounded-md py-1 text-base ring-1 ring-black ring-opacity-5 overflow-auto focus:outline-none sm:text-sm"},{default:_e(()=>[(I(!0),F(Me,null,Ot(e.presets,v=>(I(),Ye(d,{as:"template",key:v._select.date,value:v},{default:_e(({active:y})=>[m("li",{class:gt([y?"text-white bg-indigo-600":"text-gray-900","cursor-default select-none relative py-2 pl-3 pr-9"])},[m("div",nee,[m("span",ree,L(v._select.name),1),v._select.is_multitrack?(I(),F("span",{key:0,class:gt([y?"text-indigo-200":"text-gray-500","ml-2 truncate"])},L(e.__("Multitrack","podlove-podcasting-plugin-for-wordpress")),3)):Te("",!0)])],2)]),_:2},1032,["value"]))),128))]),_:1})]),_:1})])]),_:1},8,["onUpdate:modelValue","value"])}const see=Le(YQ,[["render",oee]]),iee=ge({components:{Module:In,PodloveButton:Pn,PlusSmIcon:rf,RefreshIcon:tf,SelectProduction:XQ,SelectPreset:see,AuphonicLogo:Rv},data(){return{}},setup(){return{state:ut({presetUUID:B.auphonic.preset,presets:B.auphonic.presets,isInitializing:B.auphonic.isInitializing}),dispatch:Ze().dispatch}},methods:{handleCreateProduction(){switch(this.buttonState){case"single":this.createProduction();break;case"multi":this.createMultitrackProduction();break}},createProduction(){this.dispatch(I8())},createMultitrackProduction(){this.dispatch(P8())}},computed:{preset(){return this.state.presets.find(e=>e.uuid===this.state.presetUUID)},isInitializing(){return this.state.isInitializing},buttonState(){return this.preset?this.preset.is_multitrack?"multi":"single":"idle"}}}),lee={class:"m-6 text-center max-w-5xl"},aee={key:0,class:"w-full flex justify-center"},uee={class:"animate-pulse mt-4 flex space-x-4"},cee={class:"mt-1 text-sm text-gray-500"},dee={class:"sm:divide-x sm:divide-gray-200 mt-6 py-6 gap-8 sm:gap-0 grid grid-cols-1 sm:grid-cols-2"},fee={class:"flow-root sm:px-6"},pee={class:"relative -m-2 p-2 flex items-center justify-around space-x-4 rounded-xl hover:bg-gray-50 focus-within:ring-2 focus-within:ring-indigo-500"},hee={class:"text-sm font-medium text-gray-900"},mee={class:"mt-2 sm:mt-8 flex justify-center align-middle content-center items-center gap-3"},gee={class:"w-full max-w-md"},vee={class:"mt-10 flex flex-col justify-center align-middle content-center items-center gap-3"},yee={class:"flow-root sm:px-6"},_ee={class:"relative -m-2 p-2 flex items-center justify-around space-x-4 rounded-xl hover:bg-gray-50 focus-within:ring-2 focus-within:ring-indigo-500"},bee={class:"text-sm font-medium text-gray-900"},wee={class:"mt-2 sm:mt-8 flex justify-center align-middle content-center items-center gap-3"},See={class:"w-full max-w-md"};function Eee(e,t,n,r,o,i){const l=q("AuphonicLogo"),a=q("RefreshIcon"),c=q("SelectPreset"),d=q("plus-sm-icon"),p=q("podlove-button"),h=q("SelectProduction");return I(),F("div",null,[m("div",lee,[z(l,{className:"mx-auto h-16 w-16 text-gray-400"}),e.isInitializing?(I(),F("div",aee,[m("div",uee,[z(a,{class:"animate-spin h-5 w-5 mr-3"}),Be(" "+L(e.__("Loading...","podlove-podcasting-plugin-for-wordpress")),1)])])):Te("",!0),m("div",{class:gt({"text-left":!0,"opacity-0":e.isInitializing})},[m("p",cee,L(e.__("Manage your audio post production with Auphonic. Get started by selecting an existing production or create a new one from an Auphonic preset.","podlove-podcasting-plugin-for-wordpress")),1),m("div",dee,[m("div",fee,[m("div",pee,[m("div",null,[m("h3",hee,L(e.__("Create New Production from Preset","podlove-podcasting-plugin-for-wordpress")),1)])]),m("div",mee,[m("div",gee,[z(c)])]),m("div",vee,[z(p,{disabled:e.buttonState=="idle",variant:e.buttonState=="idle"?"primary-disabled":"primary",onClick:e.handleCreateProduction},{default:_e(()=>[z(d,{class:"-ml-0.5 mr-2 h-4 w-4","aria-hidden":"true"}),Be(" "+L(e.buttonState=="multi"?e.__("Create Multitrack Production","podlove-podcasting-plugin-for-wordpress"):e.__("Create Production","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["disabled","variant","onClick"])])]),m("div",yee,[m("div",_ee,[m("div",null,[m("h3",bee,L(e.__("Select Existing Production","podlove-podcasting-plugin-for-wordpress")),1)])]),m("div",wee,[m("div",See,[z(h)])])])])],2)])])}const $ee=Le(iee,[["render",Eee]]),xee=ge({components:{Module:In,ManageProductionForm:UQ,StartScreen:$ee,AuphonicLogo:Rv},setup(){return{state:ut({productionId:B.auphonic.productionId,isInitializing:B.auphonic.isInitializing}),dispatch:Ze().dispatch}},computed:{productionId(){return this.state.productionId||""},isInitializing(){return this.state.isInitializing},isProductionSelected(){return!!this.productionId}},created(){this.dispatch(O8())}}),Tee={key:0},Cee={key:1,class:"m-7"};function Oee(e,t,n,r,o,i){const l=q("StartScreen"),a=q("ManageProductionForm"),c=q("module");return I(),Ye(c,{name:"auphonic",title:"Auphonic"},{default:_e(()=>[e.isProductionSelected?Te("",!0):(I(),F("div",Tee,[z(l)])),e.productionId?(I(),F("div",Cee,[z(a)])):Te("",!0)]),_:1})}const Aee=Le(xee,[["render",Oee]]),kee=ge({components:{ArrowUpIcon:TV,ArrowDownIcon:Wx,XIcon:ml,UserCircleIcon:Zx,PencilIcon:Jx},props:{data:{type:Object,default:()=>({id:null,contributor_id:null,role_id:null,group_id:null,position:null,comment:null,identifier:null,avatar:null,name:null,mail:null,department:null,organisation:null,jobtitle:null,gender:null,nickname:null,count:null})},first:{type:Boolean,default:!1},last:{type:Boolean,default:!1}},setup(){return{dispatch:Ze().dispatch,state:ut({roles:B.contributors.roles,groups:B.contributors.groups,baseUrl:B.runtime.baseUrl})}},computed:{editLink(){return`${this.state.baseUrl}/wp-admin/admin.php?page=podlove_contributor_settings&action=edit&contributor=${this.data.contributor_id}`}},methods:{moveContributionUp(){this.dispatch(IM(this.data))},moveContributionDown(){this.dispatch(PM(this.data))},deleteContribution(){this.dispatch(RM(this.data))},updateRole(e){const t=Y.get(e,["target","value"]);this.dispatch(qp({...this.data,role_id:t}))},updateGroup(e){const t=Y.get(e,["target","value"]);console.log(t),this.dispatch(qp({...this.data,group_id:t}))},updateComment(e){const t=Y.get(e,["target","value"]);this.dispatch(qp({...this.data,comment:t}))}}}),Iee={class:"block hover:bg-gray-50"},Pee={class:"flex items-center px-4 py-4 sm:px-6"},Ree={class:"flex min-w-0 flex-1 items-center"},Lee={class:"flex-shrink-0"},Fee=["src","alt"],Nee={class:"min-w-0 flex-1 px-2 md:grid md:gap-4"},Mee={class:"flex-shrink-0"},Dee={class:"truncate text-sm font-medium text-gray-900"},Uee={class:"flex items-center text-sm text-gray-500"},Bee={class:"truncate"},jee={class:"min-w-0 flex-1 px-4 md:grid md:gap-4"},Vee={for:"location",class:"block text-sm font-medium leading-6 text-gray-900"},Hee=["value","selected"],zee={class:"min-w-0 flex-1 px-4 md:grid md:gap-4"},Wee={for:"location",class:"block text-sm font-medium leading-6 text-gray-900"},qee=["value","selected"],Kee={class:"min-w-0 flex-1 px-4 md:grid md:gap-4"},Gee={for:"email",class:"block text-sm font-medium leading-6 text-gray-900"},Xee={class:"mt-2"},Yee=["value","placeholder"],Jee={class:"flex space-x-2 justify-end mt-[30px]"},Zee=["disabled"],Qee=["disabled"],ete=["href"];function tte(e,t,n,r,o,i){const l=q("UserCircleIcon"),a=q("arrow-up-icon"),c=q("arrow-down-icon"),d=q("pencil-icon"),p=q("x-icon");return I(),F("div",Iee,[m("div",Pee,[m("div",Ree,[m("div",Lee,[e.data.avatar_url?(I(),F("img",{key:0,class:"h-12 w-12 rounded-full",src:e.data.avatar_url,alt:e.data.name,onError:t[0]||(t[0]=h=>e.data.avatar_url="")},null,40,Fee)):Te("",!0),e.data.avatar_url?Te("",!0):(I(),Ye(l,{key:1,class:"h-12 w-12 flex-shrink-0 rounded-full text-gray-500"}))]),m("div",Nee,[m("div",Mee,[m("p",Dee,L(e.data.realname||e.data.publicname),1),m("p",Uee,[m("span",Bee,L(e.data.nickname),1)])])]),m("div",jee,[m("div",null,[m("label",Vee,L(e.__("Role","podlove-podcasting-plugin-for-wordpress")),1),m("select",{class:"mt-2 block w-full rounded-md border-0 py-1.5 pl-3 pr-10 text-gray-900 ring-1 ring-inset ring-gray-300 focus:ring-2 focus:ring-indigo-600 sm:text-sm sm:leading-6",onChange:t[1]||(t[1]=h=>e.updateRole(h))},[(I(!0),F(Me,null,Ot(e.state.roles,h=>(I(),F("option",{value:h.id,selected:h.id===e.data.role_id},L(h.title),9,Hee))),256))],32)])]),m("div",zee,[m("div",null,[m("label",Wee,L(e.__("Group","podlove-podcasting-plugin-for-wordpress")),1),m("select",{class:"mt-2 block w-full rounded-md border-0 py-1.5 pl-3 pr-10 text-gray-900 ring-1 ring-inset ring-gray-300 focus:ring-2 focus:ring-indigo-600 sm:text-sm sm:leading-6",onChange:t[2]||(t[2]=h=>e.updateGroup(h))},[(I(!0),F(Me,null,Ot(e.state.groups,h=>(I(),F("option",{value:h.id,selected:h.id===e.data.group_id},L(h.title),9,qee))),256))],32)])]),m("div",Kee,[m("div",null,[m("label",Gee,L(e.__("Comment","podlove-podcasting-plugin-for-wordpress")),1),m("div",Xee,[m("input",{type:"text",value:e.data.comment,onInput:t[3]||(t[3]=h=>e.updateComment(h)),class:"block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6",placeholder:e.__("Comment","podlove-podcasting-plugin-for-wordpress")},null,40,Yee)])])]),m("div",Jee,[m("button",{onClick:t[4]||(t[4]=h=>e.moveContributionUp()),disabled:e.first,class:gt({"text-indigo-600":!e.first,"text-gray-500":e.first})},[z(a,{class:"w-5 h-5"})],10,Zee),m("button",{onClick:t[5]||(t[5]=h=>e.moveContributionDown()),disabled:e.last,class:gt({"text-indigo-600":!e.last,"text-gray-500":e.last})},[z(c,{class:"w-5 h-5"})],10,Qee),m("a",{href:e.editLink,target:"_blank",class:"text-gray-400"},[z(d,{class:"w-5 h-5"})],8,ete),m("button",{class:"text-red-600",onClick:t[6]||(t[6]=h=>e.deleteContribution())},[z(p,{class:"w-5 h-5"})])])])])])}const nte=Le(kee,[["render",tte]]);var or="top",Hr="bottom",zr="right",sr="left",Lv="auto",tu=[or,Hr,zr,sr],sl="start",Ia="end",rte="clippingParents",sC="viewport",Vl="popper",ote="reference",Cb=tu.reduce(function(e,t){return e.concat([t+"-"+sl,t+"-"+Ia])},[]),iC=[].concat(tu,[Lv]).reduce(function(e,t){return e.concat([t,t+"-"+sl,t+"-"+Ia])},[]),ste="beforeRead",ite="read",lte="afterRead",ate="beforeMain",ute="main",cte="afterMain",dte="beforeWrite",fte="write",pte="afterWrite",hte=[ste,ite,lte,ate,ute,cte,dte,fte,pte];function Co(e){return e?(e.nodeName||"").toLowerCase():null}function ho(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function il(e){var t=ho(e).Element;return e instanceof t||e instanceof Element}function Br(e){var t=ho(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Fv(e){if(typeof ShadowRoot>"u")return!1;var t=ho(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function mte(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!Br(i)||!Co(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(l){var a=o[l];a===!1?i.removeAttribute(l):i.setAttribute(l,a===!0?"":a)}))})}function gte(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},l=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=l.reduce(function(c,d){return c[d]="",c},{});!Br(o)||!Co(o)||(Object.assign(o.style,a),Object.keys(i).forEach(function(c){o.removeAttribute(c)}))})}}const vte={name:"applyStyles",enabled:!0,phase:"write",fn:mte,effect:gte,requires:["computeStyles"]};function $o(e){return e.split("-")[0]}var ii=Math.max,id=Math.min,ll=Math.round;function al(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;if(Br(e)&&t){var i=e.offsetHeight,l=e.offsetWidth;l>0&&(r=ll(n.width)/l||1),i>0&&(o=ll(n.height)/i||1)}return{width:n.width/r,height:n.height/o,top:n.top/o,right:n.right/r,bottom:n.bottom/o,left:n.left/r,x:n.left/r,y:n.top/o}}function Nv(e){var t=al(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function lC(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Fv(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Xo(e){return ho(e).getComputedStyle(e)}function yte(e){return["table","td","th"].indexOf(Co(e))>=0}function ks(e){return((il(e)?e.ownerDocument:e.document)||window.document).documentElement}function mf(e){return Co(e)==="html"?e:e.assignedSlot||e.parentNode||(Fv(e)?e.host:null)||ks(e)}function Ob(e){return!Br(e)||Xo(e).position==="fixed"?null:e.offsetParent}function _te(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&Br(e)){var r=Xo(e);if(r.position==="fixed")return null}var o=mf(e);for(Fv(o)&&(o=o.host);Br(o)&&["html","body"].indexOf(Co(o))<0;){var i=Xo(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function nu(e){for(var t=ho(e),n=Ob(e);n&&yte(n)&&Xo(n).position==="static";)n=Ob(n);return n&&(Co(n)==="html"||Co(n)==="body"&&Xo(n).position==="static")?t:n||_te(e)||t}function Mv(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function aa(e,t,n){return ii(e,id(t,n))}function bte(e,t,n){var r=aa(e,t,n);return r>n?n:r}function aC(){return{top:0,right:0,bottom:0,left:0}}function uC(e){return Object.assign({},aC(),e)}function cC(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var wte=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,uC(typeof t!="number"?t:cC(t,tu))};function Ste(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,l=n.modifiersData.popperOffsets,a=$o(n.placement),c=Mv(a),d=[sr,zr].indexOf(a)>=0,p=d?"height":"width";if(!(!i||!l)){var h=wte(o.padding,n),v=Nv(i),y=c==="y"?or:sr,b=c==="y"?Hr:zr,S=n.rects.reference[p]+n.rects.reference[c]-l[c]-n.rects.popper[p],T=l[c]-n.rects.reference[c],C=nu(i),w=C?c==="y"?C.clientHeight||0:C.clientWidth||0:0,E=S/2-T/2,O=h[y],$=w-v[p]-h[b],P=w/2-v[p]/2+E,R=aa(O,P,$),k=c;n.modifiersData[r]=(t={},t[k]=R,t.centerOffset=R-P,t)}}function Ete(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||lC(t.elements.popper,o)&&(t.elements.arrow=o))}const $te={name:"arrow",enabled:!0,phase:"main",fn:Ste,effect:Ete,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ul(e){return e.split("-")[1]}var xte={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Tte(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:ll(t*o)/o||0,y:ll(n*o)/o||0}}function Ab(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,l=e.offsets,a=e.position,c=e.gpuAcceleration,d=e.adaptive,p=e.roundOffsets,h=e.isFixed,v=l.x,y=v===void 0?0:v,b=l.y,S=b===void 0?0:b,T=typeof p=="function"?p({x:y,y:S}):{x:y,y:S};y=T.x,S=T.y;var C=l.hasOwnProperty("x"),w=l.hasOwnProperty("y"),E=sr,O=or,$=window;if(d){var P=nu(n),R="clientHeight",k="clientWidth";if(P===ho(n)&&(P=ks(n),Xo(P).position!=="static"&&a==="absolute"&&(R="scrollHeight",k="scrollWidth")),P=P,o===or||(o===sr||o===zr)&&i===Ia){O=Hr;var W=h&&P===$&&$.visualViewport?$.visualViewport.height:P[R];S-=W-r.height,S*=c?1:-1}if(o===sr||(o===or||o===Hr)&&i===Ia){E=zr;var U=h&&P===$&&$.visualViewport?$.visualViewport.width:P[k];y-=U-r.width,y*=c?1:-1}}var j=Object.assign({position:a},d&&xte),G=p===!0?Tte({x:y,y:S}):{x:y,y:S};if(y=G.x,S=G.y,c){var X;return Object.assign({},j,(X={},X[O]=w?"0":"",X[E]=C?"0":"",X.transform=($.devicePixelRatio||1)<=1?"translate("+y+"px, "+S+"px)":"translate3d("+y+"px, "+S+"px, 0)",X))}return Object.assign({},j,(t={},t[O]=w?S+"px":"",t[E]=C?y+"px":"",t.transform="",t))}function Cte(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,l=i===void 0?!0:i,a=n.roundOffsets,c=a===void 0?!0:a,d={placement:$o(t.placement),variation:ul(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Ab(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ab(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Ote={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Cte,data:{}};var hc={passive:!0};function Ate(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,l=r.resize,a=l===void 0?!0:l,c=ho(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&d.forEach(function(p){p.addEventListener("scroll",n.update,hc)}),a&&c.addEventListener("resize",n.update,hc),function(){i&&d.forEach(function(p){p.removeEventListener("scroll",n.update,hc)}),a&&c.removeEventListener("resize",n.update,hc)}}const kte={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Ate,data:{}};var Ite={left:"right",right:"left",bottom:"top",top:"bottom"};function Cc(e){return e.replace(/left|right|bottom|top/g,function(t){return Ite[t]})}var Pte={start:"end",end:"start"};function kb(e){return e.replace(/start|end/g,function(t){return Pte[t]})}function Dv(e){var t=ho(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Uv(e){return al(ks(e)).left+Dv(e).scrollLeft}function Rte(e){var t=ho(e),n=ks(e),r=t.visualViewport,o=n.clientWidth,i=n.clientHeight,l=0,a=0;return r&&(o=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(l=r.offsetLeft,a=r.offsetTop)),{width:o,height:i,x:l+Uv(e),y:a}}function Lte(e){var t,n=ks(e),r=Dv(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=ii(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),l=ii(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+Uv(e),c=-r.scrollTop;return Xo(o||n).direction==="rtl"&&(a+=ii(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:l,x:a,y:c}}function Bv(e){var t=Xo(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function dC(e){return["html","body","#document"].indexOf(Co(e))>=0?e.ownerDocument.body:Br(e)&&Bv(e)?e:dC(mf(e))}function ua(e,t){var n;t===void 0&&(t=[]);var r=dC(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=ho(r),l=o?[i].concat(i.visualViewport||[],Bv(r)?r:[]):r,a=t.concat(l);return o?a:a.concat(ua(mf(l)))}function hm(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Fte(e){var t=al(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function Ib(e,t){return t===sC?hm(Rte(e)):il(t)?Fte(t):hm(Lte(ks(e)))}function Nte(e){var t=ua(mf(e)),n=["absolute","fixed"].indexOf(Xo(e).position)>=0,r=n&&Br(e)?nu(e):e;return il(r)?t.filter(function(o){return il(o)&&lC(o,r)&&Co(o)!=="body"}):[]}function Mte(e,t,n){var r=t==="clippingParents"?Nte(e):[].concat(t),o=[].concat(r,[n]),i=o[0],l=o.reduce(function(a,c){var d=Ib(e,c);return a.top=ii(d.top,a.top),a.right=id(d.right,a.right),a.bottom=id(d.bottom,a.bottom),a.left=ii(d.left,a.left),a},Ib(e,i));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function fC(e){var t=e.reference,n=e.element,r=e.placement,o=r?$o(r):null,i=r?ul(r):null,l=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,c;switch(o){case or:c={x:l,y:t.y-n.height};break;case Hr:c={x:l,y:t.y+t.height};break;case zr:c={x:t.x+t.width,y:a};break;case sr:c={x:t.x-n.width,y:a};break;default:c={x:t.x,y:t.y}}var d=o?Mv(o):null;if(d!=null){var p=d==="y"?"height":"width";switch(i){case sl:c[d]=c[d]-(t[p]/2-n[p]/2);break;case Ia:c[d]=c[d]+(t[p]/2-n[p]/2);break}}return c}function Pa(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.boundary,l=i===void 0?rte:i,a=n.rootBoundary,c=a===void 0?sC:a,d=n.elementContext,p=d===void 0?Vl:d,h=n.altBoundary,v=h===void 0?!1:h,y=n.padding,b=y===void 0?0:y,S=uC(typeof b!="number"?b:cC(b,tu)),T=p===Vl?ote:Vl,C=e.rects.popper,w=e.elements[v?T:p],E=Mte(il(w)?w:w.contextElement||ks(e.elements.popper),l,c),O=al(e.elements.reference),$=fC({reference:O,element:C,strategy:"absolute",placement:o}),P=hm(Object.assign({},C,$)),R=p===Vl?P:O,k={top:E.top-R.top+S.top,bottom:R.bottom-E.bottom+S.bottom,left:E.left-R.left+S.left,right:R.right-E.right+S.right},W=e.modifiersData.offset;if(p===Vl&&W){var U=W[o];Object.keys(k).forEach(function(j){var G=[zr,Hr].indexOf(j)>=0?1:-1,X=[or,Hr].indexOf(j)>=0?"y":"x";k[j]+=U[X]*G})}return k}function Dte(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,l=n.padding,a=n.flipVariations,c=n.allowedAutoPlacements,d=c===void 0?iC:c,p=ul(r),h=p?a?Cb:Cb.filter(function(b){return ul(b)===p}):tu,v=h.filter(function(b){return d.indexOf(b)>=0});v.length===0&&(v=h);var y=v.reduce(function(b,S){return b[S]=Pa(e,{placement:S,boundary:o,rootBoundary:i,padding:l})[$o(S)],b},{});return Object.keys(y).sort(function(b,S){return y[b]-y[S]})}function Ute(e){if($o(e)===Lv)return[];var t=Cc(e);return[kb(e),t,kb(t)]}function Bte(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,l=n.altAxis,a=l===void 0?!0:l,c=n.fallbackPlacements,d=n.padding,p=n.boundary,h=n.rootBoundary,v=n.altBoundary,y=n.flipVariations,b=y===void 0?!0:y,S=n.allowedAutoPlacements,T=t.options.placement,C=$o(T),w=C===T,E=c||(w||!b?[Cc(T)]:Ute(T)),O=[T].concat(E).reduce(function(ce,ve){return ce.concat($o(ve)===Lv?Dte(t,{placement:ve,boundary:p,rootBoundary:h,padding:d,flipVariations:b,allowedAutoPlacements:S}):ve)},[]),$=t.rects.reference,P=t.rects.popper,R=new Map,k=!0,W=O[0],U=0;U<O.length;U++){var j=O[U],G=$o(j),X=ul(j)===sl,ne=[or,Hr].indexOf(G)>=0,xe=ne?"width":"height",Ee=Pa(t,{placement:j,boundary:p,rootBoundary:h,altBoundary:v,padding:d}),ke=ne?X?zr:sr:X?Hr:or;$[xe]>P[xe]&&(ke=Cc(ke));var Ie=Cc(ke),Qe=[];if(i&&Qe.push(Ee[G]<=0),a&&Qe.push(Ee[ke]<=0,Ee[Ie]<=0),Qe.every(function(ce){return ce})){W=j,k=!1;break}R.set(j,Qe)}if(k)for(var ht=b?3:1,De=function(ve){var Ce=O.find(function(We){var Ve=R.get(We);if(Ve)return Ve.slice(0,ve).every(function(rt){return rt})});if(Ce)return W=Ce,"break"},Xe=ht;Xe>0;Xe--){var Q=De(Xe);if(Q==="break")break}t.placement!==W&&(t.modifiersData[r]._skip=!0,t.placement=W,t.reset=!0)}}const jte={name:"flip",enabled:!0,phase:"main",fn:Bte,requiresIfExists:["offset"],data:{_skip:!1}};function Pb(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Rb(e){return[or,zr,Hr,sr].some(function(t){return e[t]>=0})}function Vte(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,l=Pa(t,{elementContext:"reference"}),a=Pa(t,{altBoundary:!0}),c=Pb(l,r),d=Pb(a,o,i),p=Rb(c),h=Rb(d);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:p,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":h})}const Hte={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Vte};function zte(e,t,n){var r=$o(e),o=[sr,or].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,l=i[0],a=i[1];return l=l||0,a=(a||0)*o,[sr,zr].indexOf(r)>=0?{x:a,y:l}:{x:l,y:a}}function Wte(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,l=iC.reduce(function(p,h){return p[h]=zte(h,t.rects,i),p},{}),a=l[t.placement],c=a.x,d=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=d),t.modifiersData[r]=l}const qte={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Wte};function Kte(e){var t=e.state,n=e.name;t.modifiersData[n]=fC({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Gte={name:"popperOffsets",enabled:!0,phase:"read",fn:Kte,data:{}};function Xte(e){return e==="x"?"y":"x"}function Yte(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,l=n.altAxis,a=l===void 0?!1:l,c=n.boundary,d=n.rootBoundary,p=n.altBoundary,h=n.padding,v=n.tether,y=v===void 0?!0:v,b=n.tetherOffset,S=b===void 0?0:b,T=Pa(t,{boundary:c,rootBoundary:d,padding:h,altBoundary:p}),C=$o(t.placement),w=ul(t.placement),E=!w,O=Mv(C),$=Xte(O),P=t.modifiersData.popperOffsets,R=t.rects.reference,k=t.rects.popper,W=typeof S=="function"?S(Object.assign({},t.rects,{placement:t.placement})):S,U=typeof W=="number"?{mainAxis:W,altAxis:W}:Object.assign({mainAxis:0,altAxis:0},W),j=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,G={x:0,y:0};if(P){if(i){var X,ne=O==="y"?or:sr,xe=O==="y"?Hr:zr,Ee=O==="y"?"height":"width",ke=P[O],Ie=ke+T[ne],Qe=ke-T[xe],ht=y?-k[Ee]/2:0,De=w===sl?R[Ee]:k[Ee],Xe=w===sl?-k[Ee]:-R[Ee],Q=t.elements.arrow,ce=y&&Q?Nv(Q):{width:0,height:0},ve=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:aC(),Ce=ve[ne],We=ve[xe],Ve=aa(0,R[Ee],ce[Ee]),rt=E?R[Ee]/2-ht-Ve-Ce-U.mainAxis:De-Ve-Ce-U.mainAxis,wn=E?-R[Ee]/2+ht+Ve+We+U.mainAxis:Xe+Ve+We+U.mainAxis,an=t.elements.arrow&&nu(t.elements.arrow),M=an?O==="y"?an.clientTop||0:an.clientLeft||0:0,V=(X=j==null?void 0:j[O])!=null?X:0,Z=ke+rt-V-M,ue=ke+wn-V,le=aa(y?id(Ie,Z):Ie,ke,y?ii(Qe,ue):Qe);P[O]=le,G[O]=le-ke}if(a){var ye,Oe=O==="x"?or:sr,we=O==="x"?Hr:zr,Se=P[$],ae=$==="y"?"height":"width",Fe=Se+T[Oe],Pe=Se-T[we],je=[or,sr].indexOf(C)!==-1,ze=(ye=j==null?void 0:j[$])!=null?ye:0,st=je?Fe:Se-R[ae]-k[ae]-ze+U.altAxis,yt=je?Se+R[ae]+k[ae]-ze-U.altAxis:Pe,ft=y&&je?bte(st,Se,yt):aa(y?st:Fe,Se,y?yt:Pe);P[$]=ft,G[$]=ft-Se}t.modifiersData[r]=G}}const Jte={name:"preventOverflow",enabled:!0,phase:"main",fn:Yte,requiresIfExists:["offset"]};function Zte(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Qte(e){return e===ho(e)||!Br(e)?Dv(e):Zte(e)}function ene(e){var t=e.getBoundingClientRect(),n=ll(t.width)/e.offsetWidth||1,r=ll(t.height)/e.offsetHeight||1;return n!==1||r!==1}function tne(e,t,n){n===void 0&&(n=!1);var r=Br(t),o=Br(t)&&ene(t),i=ks(t),l=al(e,o),a={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((Co(t)!=="body"||Bv(i))&&(a=Qte(t)),Br(t)?(c=al(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=Uv(i))),{x:l.left+a.scrollLeft-c.x,y:l.top+a.scrollTop-c.y,width:l.width,height:l.height}}function nne(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var l=[].concat(i.requires||[],i.requiresIfExists||[]);l.forEach(function(a){if(!n.has(a)){var c=t.get(a);c&&o(c)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function rne(e){var t=nne(e);return hte.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function one(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function sne(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Lb={placement:"bottom",modifiers:[],strategy:"absolute"};function Fb(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function ine(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?Lb:o;return function(a,c,d){d===void 0&&(d=i);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},Lb,i),modifiersData:{},elements:{reference:a,popper:c},attributes:{},styles:{}},h=[],v=!1,y={state:p,setOptions:function(C){var w=typeof C=="function"?C(p.options):C;S(),p.options=Object.assign({},i,p.options,w),p.scrollParents={reference:il(a)?ua(a):a.contextElement?ua(a.contextElement):[],popper:ua(c)};var E=rne(sne([].concat(r,p.options.modifiers)));return p.orderedModifiers=E.filter(function(O){return O.enabled}),b(),y.update()},forceUpdate:function(){if(!v){var C=p.elements,w=C.reference,E=C.popper;if(Fb(w,E)){p.rects={reference:tne(w,nu(E),p.options.strategy==="fixed"),popper:Nv(E)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(U){return p.modifiersData[U.name]=Object.assign({},U.data)});for(var O=0;O<p.orderedModifiers.length;O++){if(p.reset===!0){p.reset=!1,O=-1;continue}var $=p.orderedModifiers[O],P=$.fn,R=$.options,k=R===void 0?{}:R,W=$.name;typeof P=="function"&&(p=P({state:p,options:k,name:W,instance:y})||p)}}}},update:one(function(){return new Promise(function(T){y.forceUpdate(),T(p)})}),destroy:function(){S(),v=!0}};if(!Fb(a,c))return y;y.setOptions(d).then(function(T){!v&&d.onFirstUpdate&&d.onFirstUpdate(T)});function b(){p.orderedModifiers.forEach(function(T){var C=T.name,w=T.options,E=w===void 0?{}:w,O=T.effect;if(typeof O=="function"){var $=O({state:p,name:C,instance:y,options:E}),P=function(){};h.push($||P)}})}function S(){h.forEach(function(T){return T()}),h=[]}return y}}var lne=[kte,Gte,Ote,vte,qte,jte,Jte,$te,Hte],ane=ine({defaultModifiers:lne});function une(e){let t=$e(null),n=$e(null);return wt(()=>{Vt(r=>{if(!n.value||!t.value)return;let o=n.value.el||n.value,i=t.value.el||t.value;if(!(i instanceof HTMLElement)||!(o instanceof HTMLElement))return;let{destroy:l}=ane(i,o,e);r(l)})}),[t,n]}const cne=ge({data(){return{query:"",data:""}},emits:["addContributor","createContributor","close"],setup(){let[e,t]=une({placement:"bottom-end",strategy:"fixed",modifiers:[{name:"offset",options:{offset:[0,10]}},{name:"sameWidth",enabled:!0,fn:({state:n})=>{n.styles.popper.width=`${n.rects.reference.width}px`},phase:"beforeWrite",requires:["computeStyles"]}]});return{dispatch:Ze().dispatch,state:ut({contributors:B.contributors.contributors,episodeContributions:B.episode.contributions}),trigger:e,container:t}},components:{CheckIcon:AV,XIcon:ml,ChevronDownIcon:Gx,Combobox:pT,ComboboxButton:hT,ComboboxInput:mT,ComboboxLabel:SH,ComboboxOption:vT,ComboboxOptions:gT,UserCircleIcon:Zx,Image},computed:{filteredContributors(){return[...this.query.length>0?[{id:null,avatar_url:null,realname:`${this.__("Create: ","podlove-podcasting-plugin-for-wordpress")}${this.query}`}]:[],...this.state.contributors.filter(e=>!this.state.episodeContributions.some(t=>t.contributor_id&&t.contributor_id.toString()===e.id.toString())).filter(e=>!this.query||((e==null?void 0:e.realname)||"").toUpperCase().includes(this.query.toUpperCase()))]}},watch:{data(e){e.id?this.$emit("addContributor",e):this.$emit("createContributor",this.query)}},methods:{filterContributors(e){this.query=Y.get(e,["target","value"],"")},close(){this.$emit("close")}}}),dne={class:"block hover:bg-gray-50"},fne={class:"flex items-center px-4 py-4 sm:px-6"},pne={class:"flex min-w-0 flex-1 items-center"},hne={class:"min-w-0 flex-1 px-4 md:grid md:grid-cols-2 md:gap-4"},mne={class:"relative mt-2 max-w-sm"},gne={ref:"container"},vne={class:"flex items-center"},yne=["src","onError"],_ne={class:"flex space-x-2 justify-end"};function bne(e,t,n,r,o,i){const l=q("ComboboxLabel"),a=q("ComboboxInput"),c=q("ChevronDownIcon"),d=q("ComboboxButton"),p=q("UserCircleIcon"),h=q("CheckIcon"),v=q("ComboboxOption"),y=q("ComboboxOptions"),b=q("Combobox"),S=q("x-icon");return I(),F("div",dne,[m("div",fne,[m("div",pne,[m("div",hne,[z(b,{as:"div",modelValue:e.data,"onUpdate:modelValue":t[1]||(t[1]=T=>e.data=T)},{default:_e(()=>[z(l,{class:"block text-sm font-medium leading-6 text-gray-900"},{default:_e(()=>[Be(L(e.__("Select Contributor","podlove-podcasting-plugin-for-wordpress")),1)]),_:1}),m("div",mne,[z(a,{ref:"trigger",class:"w-full rounded-md border-0 bg-white py-1.5 pl-3 pr-12 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6",onChange:t[0]||(t[0]=T=>e.filterContributors(T)),displayValue:()=>e.query},null,8,["displayValue"]),z(d,{class:"absolute inset-y-0 right-0 flex items-center rounded-r-md px-2 focus:outline-none"},{default:_e(()=>[z(c,{class:"h-5 w-5 text-gray-400","aria-hidden":"true"})]),_:1})]),m("div",gne,[e.filteredContributors.length>0?(I(),Ye(y,{key:0,class:"absolute max-w-sm z-50 mt-1 max-h-56 w-full overflow-auto rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm"},{default:_e(()=>[(I(!0),F(Me,null,Ot(e.filteredContributors,T=>(I(),Ye(v,{key:T.id||"create",value:T,as:"template"},{default:_e(({active:C,selected:w})=>[m("li",{class:gt(["relative cursor-default select-none py-2 pl-3 pr-9",C?"bg-indigo-600 text-white":"text-gray-900"])},[m("div",vne,[T.avatar_url?(I(),F("img",{key:0,src:T.avatar_url,alt:"",class:"h-6 w-6 flex-shrink-0 rounded-full",onError:E=>T.avatar_url=""},null,40,yne)):Te("",!0),T.avatar_url?Te("",!0):(I(),Ye(p,{key:1,class:"h-6 w-6 flex-shrink-0 rounded-full text-gray-500"})),m("span",{class:gt(["ml-3 truncate",w&&"font-semibold"])},L(T.realname),3)]),w?(I(),F("span",{key:0,class:gt(["absolute inset-y-0 right-0 flex items-center pr-4",C?"text-white":"text-indigo-600"])},[z(h,{class:"h-5 w-5","aria-hidden":"true"})],2)):Te("",!0)],2)]),_:2},1032,["value"]))),128))]),_:1})):Te("",!0)],512)]),_:1},8,["modelValue"])])]),m("div",_ne,[m("button",{class:"text-red-600",onClick:t[2]||(t[2]=T=>e.close())},[z(S,{class:"w-5 h-5"})])])])])}const wne=Le(cne,[["render",bne]]),Sne=ge({components:{Module:In,PodloveButton:Pn,PlusSmIcon:rf,Contribution:nte,AddContribution:wne},data(){return{addContributorInput:!1}},setup(){return{dispatch:Ze().dispatch,state:ut({contributions:B.episode.contributions,roles:B.contributors.roles,groups:B.contributors.groups})}},created(){this.dispatch(FE())},methods:{showAddContributor(){this.addContributorInput=!0},addContributor(e){this.addContributorInput=!1,this.dispatch(SE(e))},createContributor(e){this.addContributorInput=!1,this.dispatch(LM(e))},closeAddContributor(){this.addContributorInput=!1}}}),Ene={role:"list",class:"divide-y divide-gray-200"},$ne={key:0,class:"mb-0"},xne={class:"py-5 px-6 border-t border-gray-200"};function Tne(e,t,n,r,o,i){const l=q("Contribution"),a=q("AddContribution"),c=q("plus-sm-icon"),d=q("podlove-button"),p=q("module");return I(),Ye(p,{name:"chapters",title:e.__("Contributors","podlove-podcasting-plugin-for-wordpress"),class:"overflow-hidden"},{actions:_e(()=>[]),default:_e(()=>[m("ul",Ene,[(I(!0),F(Me,null,Ot(e.state.contributions,(h,v)=>(I(),F("li",{class:"mb-0",key:h.position},[h!=null&&h.contributor_id?(I(),Ye(l,{key:0,data:h,first:v===0,last:v===e.state.contributions.length-1},null,8,["data","first","last"])):Te("",!0)]))),128)),e.addContributorInput?(I(),F("li",$ne,[z(a,{onAddContributor:t[0]||(t[0]=h=>e.addContributor(h)),onCreateContributor:t[1]||(t[1]=h=>e.createContributor(h)),onClose:t[2]||(t[2]=h=>e.closeAddContributor())})])):Te("",!0)]),m("div",xne,[z(d,{variant:"primary",onClick:t[3]||(t[3]=h=>e.showAddContributor())},{default:_e(()=>[z(c,{class:"-ml-0.5 mr-2 h-4 w-4","aria-hidden":"true"}),Be(" "+L(e.__("Add Contributor","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})])]),_:1},8,["title"])}const Cne=Le(Sne,[["render",Tne]]),One=ge({setup(){return{state:ut({slug:B.episode.slug,slugFrozen:B.episode.slugFrozen,id:B.episode.id,baseUri:B.settings.mediaFileBaseUri}),dispatch:Ze().dispatch}},methods:{updateSlug(e){this.dispatch(bt({prop:"slug",value:e.target.value})),this.dispatch(W$())},unfreezeSlug(){this.dispatch(cD())}},computed:{assetPrefix(){var n;let e=(n=this.state.baseUri)==null?void 0:n.replace(/https?:\/\//i,"").trim();if(!e)return"";const t=e.trim().replace(/\/+$/g,"").lastIndexOf("/");return e.length>30&&t>-1&&(e=e.slice(t)),e}}}),Ane={for:"filename_slug",class:"block text-sm font-medium leading-6 text-gray-900 sm:pt-1.5"},kne={class:"mt-2 sm:col-span-2 sm:mt-0"},Ine={key:0,class:"flex rounded-md shadow-sm ring-1 ring-inset ring-gray-300 bg-gray-50"},Pne={class:"flex select-none items-center pl-3 text-gray-500 sm:text-sm"},Rne={class:"block flex-1 py-1.5 pl-1 text-gray-900 sm:text-sm sm:leading-6"},Lne=m("span",{class:"flex select-none items-center text-gray-500 sm:text-sm pr-2"},".ext",-1),Fne=["title","aria-label"],Nne={key:1,class:"flex rounded-md shadow-sm ring-1 ring-inset ring-gray-300 focus-within:ring-2 focus-within:ring-inset focus-within:ring-indigo-600"},Mne={class:"flex select-none items-center pl-3 text-gray-500 sm:text-sm"},Dne=["value","aria-label"],Une=m("span",{class:"flex slect-none items-center text-gray-500 sm:text-sm pr-2"},".ext",-1),Bne={id:"filename_slug_help",class:"sr-only"};function jne(e,t,n,r,o,i){return I(),F(Me,null,[m("label",Ane,L(e.__("Filename / Slug","podlove-podcasting-plugin-for-wordpress")),1),m("div",kne,[e.state.slugFrozen?(I(),F("div",Ine,[m("span",Pne,L(e.assetPrefix),1),m("span",Rne,L(e.state.slug),1),Lne,m("button",{onClick:t[0]||(t[0]=(...l)=>e.unfreezeSlug&&e.unfreezeSlug(...l)),type:"button",class:"ml-2 px-3 py-1.5 text-sm font-semibold text-indigo-600 hover:text-indigo-500 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 border-l border-gray-300",title:e.__("Edit slug","podlove-podcasting-plugin-for-wordpress"),"aria-label":e.__("Edit filename slug","podlove-podcasting-plugin-for-wordpress"),"aria-describedby":"filename_slug_help"},L(e.__("Edit","podlove-podcasting-plugin-for-wordpress")),9,Fne)])):(I(),F("div",Nne,[m("span",Mne,L(e.assetPrefix),1),m("input",{type:"text",name:"filename_slug",id:"filename_slug",autocomplete:"filename_slug",class:"block flex-1 border-0 bg-transparent py-1.5 pl-1 text-gray-900 placeholder:text-gray-400 focus:ring-0 sm:text-sm sm:leading-6",placeholder:"",value:e.state.slug,onInput:t[1]||(t[1]=l=>e.updateSlug(l)),"aria-label":e.__("Filename slug","podlove-podcasting-plugin-for-wordpress"),"aria-describedby":"filename_slug_help"},null,40,Dne),Une])),m("div",Bne,L(e.__("Click Edit to modify the filename slug. The slug determines the final filename of your media files.","podlove-podcasting-plugin-for-wordpress")),1)])],64)}const Vne=Le(One,[["render",jne]]),Hne=ge({components:{PodloveButton:Pn,UploadIcon:nf},setup(){return{state:ut({}),dispatch:Ze().dispatch}},methods:{uploadIntent(){this.dispatch(oD())}},computed:{}}),zne={for:"mediafile_upload",class:"block text-sm font-medium leading-6 text-gray-900 sm:pt-1.5"},Wne={class:"mt-2 sm:col-span-2 sm:mt-0"};function qne(e,t,n,r,o,i){const l=q("upload-icon"),a=q("podlove-button");return I(),F(Me,null,[m("label",zne,L(e.__("Upload","podlove-podcasting-plugin-for-wordpress")),1),m("div",Wne,[m("div",null,[z(a,{variant:"primary",onClick:e.uploadIntent,class:"ml-1"},{default:_e(()=>[z(l,{class:"-ml-0.5 mr-2 h-4 w-4","aria-hidden":"true"}),Be(" "+L(e.__("Upload Media File","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["onClick"])])])],64)}const Kne=Le(Hne,[["render",qne]]),Gne=ge({components:{PodloveButton:Pn,UploadIcon:nf,DocumentTextIcon:lv,XMarkIcon:ml,PlusIcon:rf},data(){return{}},setup(){return{state:ut({progress:e=>t=>B.progress.progress(e,t),status:e=>t=>B.progress.status(e,t),message:e=>t=>B.progress.message(e,t),episodeSlug:e=>B.episode.slug(e),selectedFiles:e=>B.mediafiles.selectedFiles(e)}),dispatch:Ze().dispatch}},methods:{plusUploadIntent(){this.state.selectedFiles&&this.state.selectedFiles.length>0&&this.state.selectedFiles.forEach(e=>{this.dispatch(sD(e.file))})},handleFileSelection(e){const t=e.target.files;if(!t||t.length===0)return;const n=Array.from(t),r=this.state.episodeSlug,l=[...(this.state.selectedFiles||[]).map(a=>a.file),...n];this.dispatch(aD(l,r))},resetFiles(){this.dispatch({type:Wa,payload:[]})},removeFile(e){this.dispatch(uD(e))},triggerFileInput(){const e=this.$refs.fileInput;e&&e.click()},selectAnotherFile(){this.triggerFileInput()},getUploadProgress(e){const t=`plus-upload-${e}`;return this.state.progress(t)||null},getUploadStatus(e){const t=`plus-upload-${e}`;return this.state.status(t)||null},getUploadMessage(e){const t=`plus-upload-${e}`;return this.state.message(t)||null},getFilenameGenerationStatus(e){const t=`filename-generation-${e}`;return this.state.status(t)||null}},computed:{selectedFiles(){return this.state.selectedFiles||[]},hasFilesReadyToUpload(){return this.selectedFiles.some(e=>{const t=this.getUploadStatus(e.file.name);return t==="init"||t===null})},allFilesUploaded(){return this.selectedFiles.length>0&&this.selectedFiles.every(e=>this.getUploadStatus(e.file.name)==="finished")},hasFilesGeneratingFilenames(){return this.selectedFiles.some(e=>this.getFilenameGenerationStatus(e.originalName)==="in_progress")}}}),Xne={for:"mediafile_upload",class:"block text-sm font-medium leading-6 text-gray-900 sm:pt-1.5"},Yne={class:"mt-2 sm:col-span-2 sm:mt-0"},Jne={for:"plus-file-upload",class:"relative max-w-[400px] flex flex-col gap-2 cursor-pointer bg-white rounded-md font-medium text-indigo-600 hover:text-indigo-500 focus-within:outline-none"},Zne={key:0},Qne={class:"space-y-3"},ere={class:"flex-shrink-0"},tre={class:"w-10 h-10 bg-white rounded-lg flex items-center justify-center"},nre={key:0,class:"animate-spin rounded-full h-6 w-6 border-b-2 border-indigo-500"},rre={class:"flex-1 min-w-0"},ore={class:"text-sm font-medium text-gray-900 truncate"},sre={key:0,class:"text-xs text-gray-500"},ire={class:"text-xs text-gray-500"},lre={key:1,class:"mt-2 flex items-center text-indigo-600"},are=m("div",{class:"animate-spin rounded-full h-3 w-3 border-b border-indigo-500 mr-2"},null,-1),ure={class:"text-xs"},cre={class:"mt-2 w-full bg-white rounded-full h-1.5"},dre={class:"flex justify-between items-center mt-1"},fre={class:"text-xs text-gray-500"},pre={key:0},hre={key:1},mre={key:2},gre={key:3},vre={key:0,class:"text-xs font-medium text-indigo-600"},yre={key:2,class:"mt-2 flex items-center text-yellow-600"},_re={class:"text-xs"},bre=["onClick"];function wre(e,t,n,r,o,i){const l=q("upload-icon"),a=q("podlove-button"),c=q("document-text-icon"),d=q("x-mark-icon"),p=q("plus-icon");return I(),F(Me,null,[m("label",Xne,L(e.__("PLUS Upload","podlove-podcasting-plugin-for-wordpress")),1),m("div",Yne,[m("div",null,[m("label",Jne,[m("div",null,[!e.state.selectedFiles||e.state.selectedFiles.length===0?(I(),Ye(a,{key:0,variant:"primary",onClick:va(e.triggerFileInput,["prevent"])},{default:_e(()=>[z(l,{class:"-ml-0.5 mr-2 h-4 w-4","aria-hidden":"true"}),Be(" "+L(e.__("Select Files for Upload","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["onClick"])):Te("",!0)]),e.state.selectedFiles&&e.state.selectedFiles.length>0?(I(),F("div",Zne,[m("div",Qne,[(I(!0),F(Me,null,Ot(e.state.selectedFiles,(h,v)=>(I(),F("div",{key:h.newName,class:"flex items-start space-x-3 p-3 bg-gray-100 rounded-lg"},[m("div",ere,[m("div",tre,[e.getFilenameGenerationStatus(h.originalName)==="in_progress"?(I(),F("div",nre)):(I(),Ye(c,{key:1,class:"w-6 h-6 text-indigo-500"}))])]),m("div",rre,[m("p",ore,L(h.file.name),1),h.originalName!==h.newName?(I(),F("p",sre,L(e.__("Original name:","podlove-podcasting-plugin-for-wordpress"))+" "+L(h.originalName),1)):Te("",!0),m("p",ire,L((h.file.size/1024/1024).toFixed(2))+" MB ",1),e.getFilenameGenerationStatus(h.originalName)==="in_progress"?(I(),F("div",lre,[are,m("span",ure,L(e.__("Generating filename...","podlove-podcasting-plugin-for-wordpress")),1)])):Te("",!0),m("div",cre,[m("div",{class:"bg-indigo-600 h-1.5 rounded-full progress-transition",style:oo({width:(e.getUploadProgress(h.file.name)||0)+"%"})},null,4)]),m("div",dre,[m("p",fre,[e.getUploadStatus(h.file.name)=="init"?(I(),F("span",pre,"Ready to upload")):e.getUploadStatus(h.file.name)=="in_progress"?(I(),F("span",hre,"Uploading...")):e.getUploadStatus(h.file.name)=="finished"?(I(),F("span",mre,"Done!")):e.getUploadStatus(h.file.name)=="error"?(I(),F("span",gre,"Error: "+L(e.getUploadMessage(h.file.name)),1)):Te("",!0)]),e.getUploadStatus(h.file.name)=="in_progress"?(I(),F("p",vre,L(e.getUploadProgress(h.file.name))+"% ",1)):Te("",!0)]),h!=null&&h.fileExists&&e.getUploadStatus(h.file.name)!="finished"?(I(),F("div",yre,[m("span",_re,L(e.__("A file with this name already exists and will be overwritten.","podlove-podcasting-plugin-for-wordpress")),1)])):Te("",!0)]),e.getUploadStatus(h.file.name)!="in_progress"?(I(),F("button",{key:0,class:"flex-shrink-0 text-gray-400 hover:text-gray-600 focus:outline-none",onClick:y=>e.removeFile(h.newName)},[z(d,{class:"w-4 h-4"})],8,bre)):Te("",!0)]))),128))])])):Te("",!0),m("input",{id:"plus-file-upload",name:"plus-file-upload",type:"file",multiple:"",class:"sr-only",ref:"fileInput",onInput:t[0]||(t[0]=(...h)=>e.handleFileSelection&&e.handleFileSelection(...h))},null,544)]),e.state.selectedFiles&&e.state.selectedFiles.length>0&&e.hasFilesReadyToUpload?(I(),Ye(a,{key:0,variant:"primary",onClick:e.plusUploadIntent,class:"ml-1 mt-3",disabled:e.hasFilesGeneratingFilenames},{default:_e(()=>[z(l,{class:"-ml-0.5 mr-2 h-4 w-4","aria-hidden":"true"}),Be(" "+L(e.hasFilesGeneratingFilenames?e.__("Generating filenames...","podlove-podcasting-plugin-for-wordpress"):e.__("Upload Media Files","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["onClick","disabled"])):Te("",!0),e.state.selectedFiles&&e.state.selectedFiles.length>0?(I(),Ye(a,{key:1,variant:"secondary",onClick:e.selectAnotherFile,class:"ml-1 mt-3"},{default:_e(()=>[z(p,{class:"-ml-0.5 mr-2 h-4 w-4","aria-hidden":"true"}),Be(" "+L(e.__("Add more Files","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["onClick"])):Te("",!0)])])],64)}const Sre=Le(Gne,[["render",wre]]),Ere={},$re={class:"text-center"},xre=m("svg",{class:"mx-auto h-12 w-12 text-gray-400",fill:"none",viewBox:"0 0 24 24",strokeWidth:"{1.5}",stroke:"currentColor"},[m("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.42 15.17L17.25 21A2.652 2.652 0 0021 17.25l-5.877-5.877M11.42 15.17l2.496-3.03c.317-.384.74-.626 1.208-.766M11.42 15.17l-4.655 5.653a2.548 2.548 0 11-3.586-3.586l6.837-5.63m5.108-.233c.55-.164 1.163-.188 1.743-.14a4.5 4.5 0 004.486-6.336l-3.276 3.277a3.004 3.004 0 01-2.25-2.25l3.276-3.276a4.5 4.5 0 00-6.336 4.486c.091 1.076-.071 2.264-.904 2.95l-.102.085m-1.745 1.437L5.909 7.5H4.5L2.25 3.75l1.5-1.5L7.5 4.5v1.409l4.26 4.26m-1.745 1.437l1.745-1.437m6.615 8.206L15.75 15.75M4.867 19.125h.008v.008h-.008v-.008z"})],-1),Tre={class:"mt-2 text-sm font-semibold text-gray-900"},Cre={class:"mt-1 text-sm text-gray-500"};function Ore(e,t){return I(),F("div",$re,[xre,m("h3",Tre,L(e.__("No Assets","podlove-podcasting-plugin-for-wordpress")),1),m("p",Cre,L(e.__("Please go to Podlove → Episode Assets and define at least one audio asset.","podlove-podcasting-plugin-for-wordpress")),1)])}const Are=Le(Ere,[["render",Ore]]),kre=ge({components:{CheckCircleIcon:rC,XCircleIcon:Pv,CloudIcon:Yx,AssetsEmptyState:Are},setup(){return{state:ut({files:B.mediafiles.files,duration:B.episode.duration}),dispatch:Ze().dispatch}},methods:{handleToggle(e){const t=e.target,n=t.checked,r=parseInt(t.value);n?this.dispatch(eD(r)):this.dispatch(tD(r))},handleVerify(e){this.dispatch(nD(e))},fileSize(e){const t=e.size;if(!t||t<1)return"???";var n=t/1024;if(n<500)return n.toFixed(2)+" kB";var r=n/1024;return r.toFixed(2)+" MB"}},computed:{files(){return this.state.files},hasFiles(){return this.files.length>0},duration(){const e="--:--:--.---";if(!this.state.duration)return e;const t=Dt.fromString(this.state.duration);return t.totalMs===0?e:t.pretty}}}),Ire={for:"assets",class:"block text-sm font-medium leading-6 text-gray-900 sm:pt-1.5"},Pre={class:"mt-2 sm:col-span-2 sm:mt-0"},Rre={key:0},Lre={class:"min-w-full table-fixed divide-y divide-gray-300"},Fre={scope:"col",class:"py-3.5 pl-3 text-left text-sm font-semibold text-gray-900"},Nre={scope:"col",class:"py-3.5 pr-3 text-left text-sm font-semibold text-gray-900"},Mre={scope:"col",class:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900"},Dre=m("th",{scope:"col",class:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900"},null,-1),Ure={class:"divide-y divide-gray-200 bg-white"},Bre={class:"relative px-7 sm:w-12 sm:px-6"},jre={key:0,class:"inline-flex items-center animate-pulse text-green-600 absolute left-[-14px] top-1/2 -mt-2.5"},Vre=["value","checked"],Hre={class:"text-sm"},zre={class:"whitespace-nowrap px-3 py-4 text-sm text-gray-500"},Wre={class:"flex flex-col"},qre=["href"],Kre={class:"flex"},Gre={key:3},Xre={class:"whitespace-nowrap px-3 py-4 text-sm text-gray-500"},Yre=["onClick"],Jre={class:"mt-3 text-sm leading-6 text-gray-600"};function Zre(e,t,n,r,o,i){const l=q("CloudIcon"),a=q("CheckCircleIcon"),c=q("XCircleIcon"),d=q("AssetsEmptyState");return I(),F(Me,null,[m("label",Ire,L(e.__("Assets","podlove-podcasting-plugin-for-wordpress")),1),m("div",Pre,[e.hasFiles?(I(),F("div",Rre,[m("table",Lre,[m("thead",null,[m("tr",null,[m("th",Fre,L(e.__("Enable","podlove-podcasting-plugin-for-wordpress")),1),m("th",Nre,L(e.__("Asset","podlove-podcasting-plugin-for-wordpress")),1),m("th",Mre,L(e.__("File","podlove-podcasting-plugin-for-wordpress")),1),Dre])]),m("tbody",Ure,[(I(!0),F(Me,null,Ot(e.files,p=>(I(),F("tr",{key:p.asset_id,class:gt({"opacity-50":!p.enable})},[m("td",Bre,[p.is_verifying?(I(),F("div",jre,[z(l,{class:"h-5 w-5","aria-hidden":"true"})])):Te("",!0),m("input",{type:"checkbox",class:"absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-600",value:p.asset_id,checked:p.enable,onClick:t[0]||(t[0]=(...h)=>e.handleToggle&&e.handleToggle(...h))},null,8,Vre)]),m("td",Hre,L(p.asset),1),m("td",zre,[m("div",Wre,[m("a",{href:p.url,target:"_blank",class:"text-gray-700 underline"},L(p.url),9,qre),m("span",Kre,[p.size>0?(I(),Ye(a,{key:0,class:"mr-1.5 h-5 w-5 flex-shrink-0 text-green-400","aria-hidden":"true"})):(I(),Ye(c,{key:1,class:gt(["mr-1.5 h-5 w-5 flex-shrink-0",{"text-gray-400":!p.enable,"text-red-400":p.enable}]),"aria-hidden":"true"},null,8,["class"])),p.size?(I(),F("span",Gre,L(e.fileSize(p)),1)):(I(),F("span",{key:2,class:gt({"text-gray-400":!p.enable,"text-red-400":p.enable})},L(e.__("File not found","podlove-podcasting-plugin-for-wordpress")),3))])])]),m("td",Xre,[m("button",{type:"button",class:"inline-flex items-center rounded-md bg-white px-2.5 py-1.5 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50 disabled:cursor-not-allowed disabled:opacity-30 disabled:hover:bg-white",onClick:()=>e.handleVerify(p.asset_id)},L(e.__("Verify","podlove-podcasting-plugin-for-wordpress")),9,Yre)])],2))),128))])]),m("p",Jre,L(e.__("Duration:","podlove-podcasting-plugin-for-wordpress"))+" "+L(e.duration),1)])):(I(),Ye(d,{key:1}))])],64)}const Qre=Le(kre,[["render",Zre]]),eoe=ge({components:{Module:In,RefreshIcon:tf,MediaSlug:Vne,MediaUpload:Kne,PlusMediaUpload:Sre,AssetsTable:Qre},setup(){return{state:ut({isInitializing:B.mediafiles.isInitializing,modules:B.settings.modules,plusStorageEnabled:B.settings.enablePlusStorage}),dispatch:Ze().dispatch}},computed:{isInitializing(){return this.state.isInitializing},isMediaUploadEnabled(){var e;return(e=this.state.modules)==null?void 0:e.includes("wordpress_file_upload")},isPlusStorageEnabled(){return this.state.plusStorageEnabled}},created(){this.dispatch(J8())}}),toe={key:0,class:"w-full flex justify-center m-12 text-center"},noe={class:"animate-pulse mt-4 flex space-x-4"},roe={key:1},ooe={class:"px-6"},soe={class:"mt-10 sm:mt-0 space-y-8 border-b border-gray-900/10 pb-12 sm:space-y-0 sm:divide-y sm:divide-gray-900/10 sm:pb-0"},ioe={class:"sm:grid sm:grid-cols-[175px_auto_auto] sm:items-start sm:gap-4 sm:py-6"},loe={key:0,class:"sm:grid sm:grid-cols-[175px_auto_auto] sm:items-start sm:gap-4 sm:py-6"},aoe={key:1,class:"sm:grid sm:grid-cols-[175px_auto_auto] sm:items-start sm:gap-4 sm:py-6"},uoe={class:"sm:grid sm:grid-cols-[175px_auto_auto] sm:items-start sm:gap-4 sm:py-6"};function coe(e,t,n,r,o,i){const l=q("RefreshIcon"),a=q("MediaSlug"),c=q("PlusMediaUpload"),d=q("MediaUpload"),p=q("AssetsTable"),h=q("module");return I(),Ye(h,{name:"mediafiles",title:"Media Files"},{default:_e(()=>[m("div",null,[e.isInitializing?(I(),F("div",toe,[m("div",noe,[z(l,{class:"animate-spin h-5 w-5 mr-3"}),Be(" "+L(e.__("Loading...","podlove-podcasting-plugin-for-wordpress")),1)])])):(I(),F("div",roe,[m("div",ooe,[m("div",soe,[m("div",ioe,[z(a)]),e.isPlusStorageEnabled?(I(),F("div",loe,[z(c)])):e.isMediaUploadEnabled?(I(),F("div",aoe,[z(d)])):Te("",!0),m("div",uoe,[z(p)])])])]))])]),_:1})}const doe=Le(eoe,[["render",coe]]),foe=ge({name:"PlusFileMigration",components:{Module:In,PodloveButton:Pn,UploadIcon:nf,CheckBadgeIcon:OV,ExclamationTriangleIcon:RX},setup(){return{state:ut({totalState:B.plusFileMigration.totalState,progress:B.plusFileMigration.progress,files:B.plusFileMigration.episodesWithFiles,currentEpisodeName:B.plusFileMigration.currentEpisodeName,currentFileName:B.plusFileMigration.currentFileName,isMigrationComplete:B.plusFileMigration.isMigrationComplete}),dispatch:Ze().dispatch}},methods:{startMigration(){this.dispatch(m8())}},computed:{progress(){return this.state.progress},totalFiles(){return this.state.files.reduce((e,t)=>e+t.files.length,0)},totalEpisodes(){return this.state.files.length},failedFiles(){return this.state.files.reduce((e,t)=>e+t.files.filter(n=>n.state==="error").length,0)},failedFilesList(){const e=[];return this.state.files.forEach(t=>{t.files.forEach(n=>{n.state==="error"&&e.push({episodeName:t.episodeName,fileName:n.name})})}),e},currentEpisodeName(){return this.state.currentEpisodeName},currentFileName(){return this.state.currentFileName},uiState(){return this.state.totalState}}}),poe={class:"m-3 rounded-lg bg-white"},hoe={key:0,class:"bg-white w-full"},moe=m("div",{class:"text-center"},"loading...",-1),goe=[moe],voe={key:1,class:"bg-white w-full"},yoe={class:"text-center py-10 px-5"},_oe={class:"w-20 h-20 mx-auto mb-5 bg-green-50 rounded-full flex items-center justify-center"},boe=m("h3",{class:"text-lg font-medium text-gray-800 mb-2.5"},"Upload Complete!",-1),woe={class:"text-gray-600 text-sm mb-6 max-w-md mx-auto"},Soe={key:0},Eoe={key:1},$oe={class:"bg-gray-50 rounded-lg p-5 mx-auto m-5 text-left"},xoe=m("div",{class:"text-base font-medium text-gray-800 mb-4"},"Upload Summary",-1),Toe={class:"flex justify-between mb-2.5 text-sm text-gray-600"},Coe=m("span",null,"Total Episodes:",-1),Ooe={class:"flex justify-between mb-2.5 text-sm text-gray-600"},Aoe=m("span",null,"Total Files:",-1),koe={key:0,class:"flex justify-between mb-4 text-sm text-red-600"},Ioe=m("span",null,"Failed Uploads:",-1),Poe={key:1,class:"border-t border-gray-200 pt-4"},Roe=m("div",{class:"text-sm font-medium text-gray-800 mb-3"},"Failed Uploads:",-1),Loe={class:"space-y-2"},Foe={class:"text-sm text-red-800"},Noe={class:"font-medium"},Moe={class:"text-red-600 mt-1"},Doe={class:"text-gray-600 text-left text-sm px-2 mx-auto"},Uoe={key:0},Boe=m("br",null,null,-1),joe=m("br",null,null,-1),Voe={key:1},Hoe={key:2,class:"bg-white w-full"},zoe={class:"text-center py-10 px-5"},Woe={class:"w-20 h-20 mx-auto mb-5 bg-gray-100 rounded-full flex items-center justify-center"},qoe=m("h3",{class:"text-lg font-medium text-gray-800 mb-2.5"}," Upload Your Existing Media Files to PLUS Cloud Storage ",-1),Koe=m("p",{class:"text-left text-gray-600 text-sm mb-2.5 max-w-md mx-auto"}," This is a one-time operation to move your existing files to PLUS Cloud Storage. It will only need to be done once. ",-1),Goe={class:"text-left text-gray-600 text-sm mb-6 max-w-md mx-auto"},Xoe={key:3,class:"bg-white w-full"},Yoe={class:"py-10 px-5"},Joe={class:"flex justify-between mb-2 text-sm text-gray-600"},Zoe=m("span",null,"Progress Uploading Media Files to PLUS Cloud Storage",-1),Qoe={class:"h-2.5 bg-gray-100 rounded-lg overflow-hidden"},ese={class:"bg-gray-50 my-5 p-5 rounded-lg"},tse=m("div",{class:"flex items-center mb-2"},[m("h3",{class:"text-base font-medium text-gray-800"},"Currently Uploading"),m("div",{class:"ml-2 animate-spin"},[m("div",{class:"w-4 h-4 border-2 border-gray-300 border-t-gray-700 rounded-full"})])],-1),nse={class:"text-gray-600 text-sm mb-1"},rse=m("strong",null,"Episode:",-1),ose={class:"text-gray-600 text-sm"},sse=m("strong",null,"File:",-1),ise={class:"border-l-4 border-yellow-400 bg-yellow-50 p-4"},lse={class:"flex"},ase={class:"shrink-0"},use=m("div",{class:"ml-3"},[m("p",{class:"text-sm text-yellow-700"}," Keep this window open while the upload is in progress. ")],-1);function cse(e,t,n,r,o,i){const l=q("CheckBadgeIcon"),a=q("UploadIcon"),c=q("podlove-button"),d=q("ExclamationTriangleIcon");return I(),F("div",poe,[e.uiState==="init"?(I(),F("section",hoe,goe)):Te("",!0),e.uiState==="finished"?(I(),F("section",voe,[m("div",yoe,[m("div",_oe,[z(l,{class:"w-10 h-10 stroke-green-500"})]),boe,m("p",woe,[e.failedFiles===0?(I(),F("span",Soe,"All your files have been successfully uploaded.")):(I(),F("span",Eoe,"Upload process completed with "+L(e.failedFiles)+" failed upload"+L(e.failedFiles>1?"s":"")+".",1))]),m("div",$oe,[xoe,m("div",Toe,[Coe,m("span",null,L(e.totalEpisodes),1)]),m("div",Ooe,[Aoe,m("span",null,L(e.totalFiles),1)]),e.failedFiles>0?(I(),F("div",koe,[Ioe,m("span",null,L(e.failedFiles),1)])):Te("",!0),e.failedFiles>0?(I(),F("div",Poe,[Roe,m("div",Loe,[(I(!0),F(Me,null,Ot(e.failedFilesList,p=>(I(),F("div",{key:`${p.episodeName}-${p.fileName}`,class:"bg-red-50 border border-red-200 rounded p-3"},[m("div",Foe,[m("div",Noe,L(p.episodeName),1),m("div",Moe,L(p.fileName),1)])]))),128))])])):Te("",!0)]),m("p",Doe,[e.failedFiles===0?(I(),F("span",Uoe,[Be(" Starting immediately, your files will be served from PLUS Cloud Storage to all listeners. When you create and manage new episodes, files will be directly uploaded to PLUS Cloud Storage."),Boe,joe,Be("Happy podcasting! ")])):(I(),F("span",Voe," Successfully uploaded files will be served from PLUS Cloud Storage to all listeners. You may want to retry uploading the failed files or check the file URLs and try again. When you create and manage new episodes, files will be directly uploaded to PLUS Cloud Storage. "))])])])):Te("",!0),e.uiState==="ready"?(I(),F("section",Hoe,[m("div",zoe,[m("div",Woe,[z(a,{class:"w-10 h-10 stroke-gray-600"})]),qoe,Koe,m("p",Goe," You have "+L(e.totalFiles)+" files to upload. Once they are uploaded, you can delete the files from your local storage or keep them as a backup. ",1),z(c,{variant:"primary",onClick:e.startMigration},{default:_e(()=>[Be(L(e.__("Start Uploads","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["onClick"])])])):Te("",!0),e.uiState==="in_progress"?(I(),F("section",Xoe,[m("div",Yoe,[m("div",Joe,[Zoe,m("span",null,L(e.progress)+"%",1)]),m("div",Qoe,[m("div",{class:"h-full bg-green-500 rounded-lg transition-all duration-300",style:oo({width:e.progress+"%"})},null,4)]),m("section",ese,[tse,m("p",nse,[rse,Be(" "+L(e.currentEpisodeName),1)]),m("p",ose,[sse,Be(" "+L(e.currentFileName),1)])]),m("div",ise,[m("div",lse,[m("div",ase,[z(d,{class:"size-5 text-yellow-400","aria-hidden":"true"})]),use])])])])):Te("",!0)])}const pC=Le(foe,[["render",cse]]),dse={class:"overflow-hidden rounded-lg bg-white border border-gray-200 transition-shadow duration-200 hover:shadow"},fse={class:"px-4 py-5 sm:p-6"},pse={class:"mb-3 flex items-center justify-between"},hse={class:"text-base font-medium text-gray-800"},mse={class:"flex items-center gap-3"},gse={class:"flex items-center gap-2"},vse={key:0,class:"rounded-full bg-green-100 px-3 py-1 text-xs font-medium text-green-600"},yse={key:1,class:"rounded-full bg-gray-100 px-3 py-1 text-xs font-medium text-gray-500"},_se=m("svg",{class:"size-3 text-gray-400",fill:"none",viewBox:"0 0 12 12"},[m("path",{d:"M4 8l2-2m0 0l2-2M6 6L4 4m2 2l2 2",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1),bse=[_se],wse=m("svg",{class:"size-3 text-green-600",fill:"currentColor",viewBox:"0 0 12 12"},[m("path",{d:"M3.707 5.293a1 1 0 00-1.414 1.414l1.414-1.414zM5 8l-.707.707a1 1 0 001.414 0L5 8zm4.707-3.293a1 1 0 00-1.414-1.414l1.414 1.414zm-7.414 2l2 2 1.414-1.414-2-2-1.414 1.414zm3.414 2l4-4-1.414-1.414-4 4 1.414 1.414z"})],-1),Sse=[wse],Ese={key:0,class:"bg-gray-50 px-4 py-4 sm:px-6"},$se=ge({__name:"Feature",props:{title:{type:String,required:!0},modelValue:{type:Boolean,required:!0}},emits:["update:modelValue"],setup(e){return(t,n)=>(I(),F("div",dse,[m("div",fse,[m("div",pse,[m("h3",hse,L(e.title),1),m("div",mse,[m("div",gse,[yn(t.$slots,"settings-action"),e.modelValue?(I(),F("span",vse,"Active")):(I(),F("span",yse,"Disabled"))]),z(vn(DT),{modelValue:e.modelValue,"onUpdate:modelValue":n[0]||(n[0]=r=>t.$emit("update:modelValue",r)),class:gt([e.modelValue?"bg-green-600":"bg-gray-200","relative inline-flex h-6 w-11 shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-green-600 focus:ring-offset-2"])},{default:_e(()=>[m("span",{class:gt([e.modelValue?"translate-x-5":"translate-x-0","pointer-events-none relative inline-block size-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out"])},[m("span",{class:gt([e.modelValue?"opacity-0 duration-100 ease-out":"opacity-100 duration-200 ease-in","absolute inset-0 flex size-full items-center justify-center transition-opacity"]),"aria-hidden":"true"},bse,2),m("span",{class:gt([e.modelValue?"opacity-100 duration-200 ease-in":"opacity-0 duration-100 ease-out","absolute inset-0 flex size-full items-center justify-center transition-opacity"]),"aria-hidden":"true"},Sse,2)],2)]),_:1},8,["modelValue","class"])])]),yn(t.$slots,"default")]),t.$slots.footer?(I(),F("div",Ese,[yn(t.$slots,"footer")])):Te("",!0)]))}}),xse=ge({components:{Feature:$se,PlusFileMigration:pC,Cog6ToothIcon:RV},setup(){return{state:ut({features:B.plus.features,files:B.plusFileMigration.episodesWithFiles,isMigrationComplete:B.plusFileMigration.isMigrationComplete,showMigrationToolManually:B.plusFileMigration.showMigrationToolManually}),dispatch:Ze().dispatch}},created(){this.dispatch(Wd()),this.dispatch(p8())},methods:{handleFeatureToggle(e){this.dispatch(qh({feature:e,value:!this.features[e]}))},toggleMigrationTool(){this.dispatch(_8())}},computed:{features(){return this.state.features},needsMigration(){return!this.state.isMigrationComplete&&this.state.files&&this.state.files.length>0},showMigrationTool(){return this.state.showMigrationToolManually}}}),Tse={class:"mb-6 rounded-lg bg-white p-6 shadow-sm"},Cse=m("div",{class:"mb-6"},[m("h2",{class:"mb-2 text-xl font-medium text-gray-700"},"Manage Features"),m("p",{class:"text-sm text-gray-600"}," Enable or disable PLUS features. Changes will take effect immediately. ")],-1),Ose={class:"space-y-3"},Ase=m("span",null,"Show Migration Tool",-1),kse=m("p",{class:"text-sm text-gray-600 mb-2"}," Store your podcast files in fast and reliable cloud storage. Don't worry about dealing with WordPress performance issues as your podcast grows. Focus on creating great content and let us handle the rest. ",-1),Ise=m("p",{class:"text-sm text-gray-600 mb-2"}," You can enable file storage by using the feature switch here. This will automatically upload your podcast files to the cloud and make them available for download. ",-1),Pse=m("p",{class:"text-sm text-gray-600"}," If at any point you want to disable file storage, you can do so by disabling the feature here. Then files will be served from your local WordPress or FTP storage again, as you configure it here in the plugin. ",-1),Rse=m("p",{class:"text-sm text-gray-600"}," When Feed Proxy is enabled, all feed requests are automatically redirected to the corresponding proxy feed URL. It can be disabled at any time without risk of losing subscribers because a temporary redirect (HTTP 307) is used. ",-1);function Lse(e,t,n,r,o,i){const l=q("Cog6ToothIcon"),a=q("PlusFileMigration"),c=q("Feature");return I(),F("div",Tse,[Cse,m("div",Ose,[z(c,{title:"File Storage",modelValue:e.features.fileStorage,"onUpdate:modelValue":t[1]||(t[1]=d=>e.handleFeatureToggle("fileStorage"))},Aw({default:_e(()=>[kse,Ise,Pse]),_:2},[e.features.fileStorage?{name:"settings-action",fn:_e(()=>[m("button",{onClick:t[0]||(t[0]=(...d)=>e.toggleMigrationTool&&e.toggleMigrationTool(...d)),class:"p-1 text-gray-400 hover:text-gray-600 transition-colors flex items-center gap-1",title:"Show Migration Tool"},[z(l,{class:"size-5"}),Be(),Ase])]),key:"0"}:void 0,e.features.fileStorage&&(e.needsMigration||e.showMigrationTool)?{name:"footer",fn:_e(()=>[z(a)]),key:"1"}:void 0]),1032,["modelValue"]),z(c,{title:"Feed Proxy",modelValue:e.features.feedProxy,"onUpdate:modelValue":t[2]||(t[2]=d=>e.handleFeatureToggle("feedProxy"))},{default:_e(()=>[Rse]),_:1},8,["modelValue"])])])}const Fse=Le(xse,[["render",Lse]]),Nse={class:"space-y-4"},Mse={for:"api_token",class:"block text-sm font-medium text-gray-700 mb-2"},Dse={class:"relative"},Use=["type","value","placeholder"],Bse={class:"text-sm text-gray-600"},jse={class:"flex items-center justify-between"},Vse={class:"flex-1"},Hse={class:"flex gap-2"},zse={href:"https://plus.podlove.org/tokens",target:"_blank",class:"inline-flex items-center px-3 py-2 border border-gray-300 shadow-sm text-sm leading-4 font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500"},Wse=["disabled"],qse={key:0,class:"animate-spin -ml-1 mr-2 h-4 w-4 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},Kse=m("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),Gse=m("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"},null,-1),Xse=[Kse,Gse],Yse=ge({__name:"TokenInput",props:{modelValue:{type:String,default:""},isTokenValid:{type:Boolean,default:!1},isSaving:{type:Boolean,default:!1}},emits:["update:modelValue","save"],setup(e){const t=$e(!1);return(n,r)=>(I(),F("div",Nse,[m("div",null,[m("label",Mse,L(n.__("API Token","podlove-podcasting-plugin-for-wordpress")),1),m("div",Dse,[m("input",{type:t.value?"text":"password",id:"api_token",value:e.modelValue,onInput:r[0]||(r[0]=o=>n.$emit("update:modelValue",o.target.value)),class:"w-full px-3 py-2 pr-10 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500",placeholder:n.__("Enter your API token","podlove-podcasting-plugin-for-wordpress")},null,40,Use),m("button",{type:"button",onClick:r[1]||(r[1]=o=>t.value=!t.value),class:"absolute inset-y-0 right-0 pr-3 flex items-center text-gray-400 hover:text-gray-600 focus:outline-none"},[t.value?(I(),Ye(vn(MV),{key:0,class:"h-5 w-5"})):(I(),Ye(vn(NV),{key:1,class:"h-5 w-5"}))])])]),m("div",Bse,[yn(n.$slots,"default")]),m("div",jse,[m("div",Vse,[yn(n.$slots,"status")]),m("div",Hse,[m("a",zse,L(n.__("Get Token","podlove-podcasting-plugin-for-wordpress")),1),m("button",{type:"button",disabled:e.isSaving,onClick:r[2]||(r[2]=o=>n.$emit("save")),class:"inline-flex items-center px-3 py-2 border border-transparent text-sm leading-4 font-medium rounded-md text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 disabled:opacity-50 disabled:cursor-not-allowed"},[e.isSaving?(I(),F("svg",qse,Xse)):Te("",!0),Be(" "+L(e.isSaving?n.__("Saving...","podlove-podcasting-plugin-for-wordpress"):n.__("Save Token","podlove-podcasting-plugin-for-wordpress")),1)],8,Wse)])])]))}}),Jse=ge({components:{TokenInput:Yse,CheckCircleIcon:rC,XCircleIcon:Pv,InformationCircleIcon:LX},setup(){const e=Ze();return{state:ut({token:t=>B.plus.token(t),user:t=>B.plus.user(t),isLoading:t=>B.plus.isLoading(t),isSaving:t=>B.plus.isSaving(t)}),dispatch:e.dispatch}},created(){this.dispatch(Wd())},computed:{apiToken(){return this.state.token},isTokenValid(){return this.state.user!==null},userEmail(){var e;return((e=this.state.user)==null?void 0:e.email)||""},showContent(){return!this.state.isLoading}},methods:{handleTokenUpdate(e){this.dispatch(Kh(e))},handleSaveToken(){this.dispatch(E8(this.apiToken))}}}),Zse={class:"mb-6 rounded-lg bg-white p-6 shadow-sm"},Qse={class:"mb-6"},eie={class:"mb-2 text-xl font-medium text-gray-700"},tie={class:"text-sm text-gray-600"},nie={key:0,class:"space-y-3"},rie=m("div",{class:"animate-pulse"},[m("div",{class:"h-4 bg-gray-200 rounded w-3/4 mb-4"}),m("div",{class:"h-10 bg-gray-200 rounded mb-4"}),m("div",{class:"h-4 bg-gray-200 rounded w-1/2"})],-1),oie=[rie],sie={key:1,class:"space-y-3"},iie={key:0,class:"flex items-center gap-2 text-sm text-gray-600"},lie={key:1,class:"flex items-center gap-2 text-sm text-red-600"},aie={key:2,class:"flex items-center gap-2 text-sm text-gray-600"};function uie(e,t,n,r,o,i){const l=q("CheckCircleIcon"),a=q("XCircleIcon"),c=q("InformationCircleIcon"),d=q("TokenInput");return I(),F("div",Zse,[m("div",Qse,[m("h2",eie,L(e.__("Authentication","podlove-podcasting-plugin-for-wordpress")),1),m("p",tie,L(e.__("Publisher PLUS provides additional features and services for your podcast. Enter your API token below to activate these features.","podlove-podcasting-plugin-for-wordpress")),1)]),e.state.isLoading?(I(),F("div",nie,oie)):(I(),F("div",sie,[z(d,{modelValue:e.apiToken,isTokenValid:e.isTokenValid,isSaving:e.state.isSaving,"onUpdate:modelValue":e.handleTokenUpdate,onSave:e.handleSaveToken},{status:_e(()=>[e.apiToken&&e.isTokenValid?(I(),F("div",iie,[z(l,{class:"w-4 h-4 text-green-600"}),m("span",null,[Be(L(e.__("You are logged in as","podlove-podcasting-plugin-for-wordpress"))+" ",1),m("strong",null,L(e.userEmail),1)])])):e.apiToken&&!e.isTokenValid?(I(),F("div",lie,[z(a,{class:"w-4 h-4"}),m("span",null,L(e.__("Invalid API token","podlove-podcasting-plugin-for-wordpress")),1)])):(I(),F("div",aie,[z(c,{class:"w-4 h-4"}),m("span",null,L(e.__("No API token configured","podlove-podcasting-plugin-for-wordpress")),1)]))]),_:1},8,["modelValue","isTokenValid","isSaving","onUpdate:modelValue","onSave"])]))])}const cie=Le(Jse,[["render",uie]]),die=ge({name:"PodloveCombobox",components:{Combobox:pT,ComboboxButton:hT,ComboboxInput:mT,ComboboxOption:vT,ComboboxOptions:gT,CheckIcon:pf,SelectorIcon:hf},props:{options:Array,selectValues:Array,placeholder:{type:String,default:"Select an option"},multiple:{type:Boolean,default:!1},error:String},computed:{label(){var t;const e=(t=this.selectValues)==null?void 0:t.length;return e===0?"No option is selected":e===1?"One option is selected":(e==null?void 0:e.toString())+" options are selected"},filterOptions(){var e;return this.query===""?this.options:(e=this.options)==null?void 0:e.filter(t=>t.title.toLowerCase().includes(this.query.toLowerCase()))}},data(){return{query:""}},methods:{selectItem(e){this.$emit("update",e)},onChange(e){this.query=e.target.value},resetQuery(){this.query=""}}}),fie={class:"relative mt-1 focus-visible:border-indigo-500 focus:ring-indigo-500"},pie={class:"shadow-sm flex sm:text-sm rounded-md absolute inset-y-0 right-10 items-center pr-2 pointer-events-none"},hie={key:0,class:"cursor-default select-none relative py-2 px-4 text-gray-700"},mie={key:0,class:"flex absolute inset-y-0 left-0 items-center pl-3 text-amber-600"},gie={key:0,class:"text-xs text-red-400 mt-1"};function vie(e,t,n,r,o,i){const l=q("ComboboxInput"),a=q("SelectorIcon"),c=q("ComboboxButton"),d=q("CheckIcon"),p=q("ComboboxOption"),h=q("ComboboxOptions"),v=q("Combobox",!0);return I(),Ye(v,{"model-value":e.selectValues,multiple:e.multiple,"onUpdate:modelValue":t[0]||(t[0]=y=>e.selectItem(y))},{default:_e(()=>[m("div",fie,[z(c,{class:"w-full flex items-center",onClick:e.resetQuery},{default:_e(()=>[z(l,{onChange:e.onChange,class:"relative py-2 pl-3 w-full bg-white rounded-lg shadow-md cursor-default sm:text-sm border-gray-300"},null,8,["onChange"]),m("div",pie,L(e.label),1),z(a,{class:"w-5 h-5 text-gray-400","aria-hidden":"true"})]),_:1},8,["onClick"]),z(Cs,{"leave-active-class":`148 `;eC(JK);tC.__scopeId="data-v-5784ed69";var ZK=(()=>{const e=tC;return e.install=t=>{t.component("Popper",e)},e})();const QK=ge({components:{Popper:ZK},props:{direction:{type:String,default:"left"}},data(){return{visible:!0}},computed:{caretClasses(){switch(this.direction){case"left":return"left-0 -ml-2 bottom-0 top-0 h-full"}}},methods:{show(){this.visible=!0},hide(){this.visible=!1}}}),eG={class:"bg-white p-4 rounded shadow-lg max-w-md"};function tG(e,t,n,r,o,i){const l=q("Popper");return I(),F("div",null,[z(l,{hover:"",openDelay:"200",closeDelay:"100",arrow:!0},{content:_e(()=>[m("div",eG,[yn(e.$slots,"content")])]),default:_e(()=>[yn(e.$slots,"trigger")]),_:3})])}const nG=Le(QK,[["render",tG]]),rG=ge({components:{PodloveButton:Pn,Tooltip:nG},setup(){return{dispatch:Ze().dispatch}},methods:{simulateImportClick(){this.$refs.import.click()},importChapters(){const e=this.$refs.import;if(e)try{const t=new FileReader;t.onload=n=>{this.dispatch(SM(n.target.result))},t.readAsText(Y.get(e,["files",0],""))(this.$refs.importForm).reset()}catch{}}}}),oG={class:"text-xs"},sG={class:"text-gray-600 leading-3 font-semibold mb-2"},iG={class:"text-gray-500 ml-1"},lG={class:"mb-1"},aG={class:"text-blue-500 underline",href:"https://podlove.org/simple-chapters/",target:"_blank"},uG=m("code",null,".psc",-1),cG={class:"mb-1"},dG={class:"text-blue-500 underline",href:"http://www.audacityteam.org",target:"_blank"},fG={class:"mb-1"},pG={class:"text-blue-500 underline",href:"https://hindenburg.com",target:"_blank"},hG=m("code",null,".txt",-1);function mG(e,t,n,r,o,i){const l=q("podlove-button"),a=q("tooltip");return I(),Ye(a,null,{trigger:_e(()=>[z(l,{variant:"secondary",size:"small",onClick:t[0]||(t[0]=c=>e.simulateImportClick())},{default:_e(()=>[Be(L(e.__("Import","podlove-podcasting-plugin-for-wordpress")),1)]),_:1}),m("input",{ref:"import",type:"file",onChange:t[1]||(t[1]=(...c)=>e.importChapters&&e.importChapters(...c)),class:"hidden"},null,544)]),content:_e(()=>[m("div",oG,[m("p",sG,L(e.__("Accepts:","podlove-podcasting-plugin-for-wordpress")),1),m("ul",iG,[m("li",lG,[m("a",aG,L(e.__("Podlove Simple Chapters","podlove-podcasting-plugin-for-wordpress")),1),Be(" ("),uG,Be("), ")]),m("li",cG,[m("a",dG,L(e.__("Audacity","podlove-podcasting-plugin-for-wordpress")),1),Be(" "+L(e.__("Track Labels","podlove-podcasting-plugin-for-wordpress"))+", ",1)]),m("li",fG,[m("a",pG,L(e.__("Hindenburg","podlove-podcasting-plugin-for-wordpress")),1),Be(" "+L(e.__("project files and MP4Chaps","podlove-podcasting-plugin-for-wordpress"))+" (",1),hG,Be(") ")])])])]),_:1})}const gG=Le(rG,[["render",mG]]),vG=ge({components:{Popover:LT,PopoverButton:tz,PopoverPanel:nz}});function yG(e,t,n,r,o,i){const l=q("PopoverButton"),a=q("PopoverPanel"),c=q("Popover",!0);return I(),Ye(c,{class:"relative"},{default:_e(()=>[z(l,null,{default:_e(()=>[yn(e.$slots,"trigger")]),_:3}),z(Cs,{"enter-active-class":"transition duration-200 ease-out","enter-from-class":"translate-y-1 opacity-0","enter-to-class":"translate-y-0 opacity-100","leave-active-class":"transition duration-150 ease-in","leave-from-class":"translate-y-0 opacity-100","leave-to-class":"translate-y-1 opacity-0"},{default:_e(()=>[z(a,{class:"absolute"},{default:_e(()=>[yn(e.$slots,"content",{class:"overflow-hidden"})]),_:3})]),_:3})]),_:3})}const nC=Le(vG,[["render",yG]]),_G=ge({components:{Popover:nC,PodloveButton:Pn},setup(){return{dispatch:Ze().dispatch}},methods:{download(e){this.dispatch($M(e))}}}),bG={class:"bg-white p-7 -translate-x-full z-10 mt-3 transform ml-16 rounded-lg shadow-lg"},wG={class:"text-sm font-medium text-gray-900 truncate w-full mr-2"},SG=m("div",{class:"text-sm text-gray-500"},".psc",-1),EG={class:"text-sm font-medium text-gray-900 truncate w-full mr-2"},$G=m("div",{class:"text-sm text-gray-500"},".txt",-1);function xG(e,t,n,r,o,i){const l=q("podlove-button"),a=q("popover");return I(),F("div",null,[z(a,null,{trigger:_e(()=>[z(l,{variant:"secondary",size:"small"},{default:_e(()=>[Be(L(e.__("Export","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})]),content:_e(()=>[m("div",bG,[m("a",{onClick:t[0]||(t[0]=c=>e.download("psc")),class:"flex items-center p-2 -m-3 transition duration-150 ease-in-out rounded-lg cursor-pointer bg-gray-100 hover:bg-indigo-100 focus:outline-none focus-visible:ring focus-visible:ring-indigo-500 focus-visible:ring-opacity-50 mb-4"},[m("div",wG,L(e.__("Podlove Simple Chapters","podlove-podcasting-plugin-for-wordpress")),1),SG]),m("a",{onClick:t[1]||(t[1]=c=>e.download("mp4")),class:"flex items-center p-2 -m-3 transition duration-150 ease-in-out rounded-lg cursor-pointer bg-gray-100 hover:bg-indigo-100 focus:outline-none focus-visible:ring focus-visible:ring-indigo-500 focus-visible:ring-opacity-50"},[m("div",EG,L(e.__("MP4Chaps","podlove-podcasting-plugin-for-wordpress")),1),$G])])]),_:1})])}const TG=Le(_G,[["render",xG]]),CG=ge({components:{Module:In,TabsContainer:zT,Tab:HT,ChaptersForm:Dq,ChaptersImport:gG,ChaptersExport:TG},setup(){return{dispatch:Ze().dispatch}},created(){this.dispatch(yM())}});function OG(e,t,n,r,o,i){const l=q("chapters-import"),a=q("chapters-export"),c=q("chapters-form"),d=q("module");return I(),Ye(d,{name:"chapters",title:e.__("Chapter Marks","podlove-podcasting-plugin-for-wordpress")},{actions:_e(()=>[z(l,{class:"mr-1"}),z(a)]),default:_e(()=>[z(c)]),_:1},8,["title"])}const AG=Le(CG,[["render",OG]]),kG={},IG={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},PG=m("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-6-3a2 2 0 11-4 0 2 2 0 014 0zm-2 4a5 5 0 00-4.546 2.916A5.986 5.986 0 0010 16a5.986 5.986 0 004.546-2.084A5 5 0 0010 11z","clip-rule":"evenodd"},null,-1),RG=[PG];function LG(e,t){return I(),F("svg",IG,RG)}const FG=Le(kG,[["render",LG]]),NG=ge({props:{outlet:{type:String,default:"header"}},components:{PodloveButton:Pn,UploadIcon:rf,DocumentTextIcon:iv},setup(){return{dispatch:Ze().dispatch}},methods:{simulateImportClick(){this.$refs.import.click()},importTranscriptFromAsset(){this.dispatch(KM())},handleImport(){const e=this.$refs.import;if(e)try{const t=new FileReader;t.onload=n=>{this.dispatch(qM(n.target.result))},t.readAsText(Y.get(e,["files",0],""))(this.$refs.importForm).reset()}catch{}}}}),MG={ref:"importForm",class:"cursor-pointer"},DG={class:"grid grid-cols-2"};function UG(e,t,n,r,o,i){const l=q("upload-icon"),a=q("podlove-button");return I(),F("form",MG,[m("div",DG,[m("div",null,[z(a,{variant:"primary",onClick:e.simulateImportClick,class:"ml-1"},{default:_e(()=>[z(l,{class:"-ml-0.5 mr-2 h-4 w-4","aria-hidden":"true"}),Be(" "+L(e.__("Import Transcript","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["onClick"]),m("input",{ref:"import",accept:"text/vtt",type:"file",onChange:t[0]||(t[0]=(...c)=>e.handleImport&&e.handleImport(...c)),class:"hidden",key:""},null,544)]),m("div",null,[z(a,{variant:"primary",onClick:e.importTranscriptFromAsset,class:"ml-1"},{default:_e(()=>[Be(L(e.__("Get From Asset","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["onClick"])])])],512)}const BG=Le(NG,[["render",UG]]),jG=ge({components:{Avatar:FG,TranscriptsImport:BG,DocumentTextIcon:iv},setup(){return{state:ut({transcripts:B.transcripts.list,contributors:B.contributors.contributors,voices:B.transcripts.voices})}},computed:{voices(){return this.state.contributors.reduce((e,t)=>{var r;const n=(r=this.state.voices.find(o=>o.contributor===t.id))==null?void 0:r.voice;return{...e,[n]:{id:t.id,name:t.realname,avatar:t.avatar_url}}},{})},transcripts(){return this.state.transcripts.reduce((e,t)=>{const n=Y.last(e);return n&&n.voiceId===t.voice?[...Y.dropRight(e),{...n,voiceId:t.voice,content:[...n.content,{text:t.text,start:t.start_ms,end:t.end_ms}]}]:[...e,{voiceId:t.voice,content:[{text:t.text,start:t.start_ms,end:t.end_ms}]}]},[]).map(e=>({...e,voice:Y.get(this.voices,[e.voiceId],{name:e.voiceId})}))}},methods:{formatTime(e){return new Dt(e).prettyShort}}}),VG={key:0,class:"h-96 p-2 overflow-x-auto"},HG={class:"mr-2 w-12 text-gray-400 select-none"},zG=["src"],WG={class:"w-full font-light text-sm mr-2"},qG={class:"block font-bold"},KG={class:"flex justify-between"},GG={class:"ml-1 font-mono select-none"},XG={key:1,class:"text-center h-96 flex items-center justify-center flex-col"},YG={class:"mt-2 text-sm font-medium text-gray-900"},JG={class:"mt-1 text-sm text-gray-500"},ZG={class:"mt-6"};function QG(e,t,n,r,o,i){const l=q("avatar"),a=q("document-text-icon"),c=q("transcripts-import");return e.transcripts.length>0?(I(),F("div",VG,[(I(!0),F(Me,null,Ot(e.transcripts,(d,p)=>{var h,v,y;return I(),F("div",{class:"flex mb-2",key:`transcript-${p}`},[m("div",HG,[(h=d==null?void 0:d.voice)!=null&&h.avatar?(I(),F("img",{key:0,class:"w-12 h-12 rounded",src:(v=d==null?void 0:d.voice)==null?void 0:v.avatar},null,8,zG)):(I(),Ye(l,{key:1}))]),m("div",WG,[m("span",qG,L((y=d==null?void 0:d.voice)==null?void 0:y.name),1),m("span",KG,[m("span",null,[(I(!0),F(Me,null,Ot(d.content,(b,S)=>(I(),F("span",{class:"mr-1",key:`transcript-${p}-content-${S}`},L(b.text),1))),128))]),m("span",GG,L(e.formatTime(d.content[0].start)),1)])])])}),128))])):(I(),F("div",XG,[z(a,{class:"mx-auto h-12 w-12 text-gray-400"}),m("h3",YG,L(e.__("No transcript yet","podlove-podcasting-plugin-for-wordpress")),1),m("p",JG,L(e.__("Get started by importing a transcript.","podlove-podcasting-plugin-for-wordpress")),1),m("div",ZG,[z(c,{outlet:"content",class:"mr-1"})])]))}const eX=Le(jG,[["render",QG]]),tX=ge({components:{PodloveButton:Pn,Modal:Za},data(){return{modalOpen:!1}},setup(){return{state:ut({contributors:B.contributors.contributors,voices:B.transcripts.voices}),dispatch:Ze().dispatch}},computed:{sortedContributors(){return this.state.contributors.sort((e,t)=>{const n=e.publicname||e.realname||e.nickname,r=t.publicname||t.realname||t.nickname;return n.localeCompare(r)})}},methods:{updateContributor(e,t){const n=t.target.value;this.dispatch(WM({voice:e,contributor:n}))},openVoices(){this.modalOpen=!0},closeVoices(){this.modalOpen=!1}}}),nX={key:0},rX={class:"border-gray-200 border-b pb-2 px-4 -mx-6 mb-4"},oX={class:"text-lg leading-6 font-medium text-gray-900"},sX={for:"country",class:"block text-sm font-medium text-gray-700"},iX=["value","onChange"],lX=m("option",{value:"0"},null,-1),aX=["value"];function uX(e,t,n,r,o,i){const l=q("podlove-button"),a=q("modal");return e.state.voices.length>0?(I(),F("div",nX,[z(l,{variant:"secondary",size:"small",onClick:t[0]||(t[0]=c=>e.openVoices())},{default:_e(()=>[Be(L(e.__("Voices","podlove-podcasting-plugin-for-wordpress")),1)]),_:1}),z(a,{open:e.modalOpen,onClose:t[1]||(t[1]=c=>e.closeVoices())},{default:_e(()=>[m("div",rX,[m("h3",oX,L(e.__("Transcript Voices","podlove-podcasting-plugin-for-wordpress")),1)]),(I(!0),F(Me,null,Ot(e.state.voices,(c,d)=>(I(),F("div",{key:`voice-${d}`,class:gt(["w-full py-2 px-4",{"bg-white":d%2}])},[m("label",sX,L(c.voice),1),m("select",{value:c.contributor,class:"mt-1 block w-full py-2 px-3 border border-gray-300 bg-white rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm",onChange:p=>e.updateContributor(c.voice,p)},[lX,(I(!0),F(Me,null,Ot(e.sortedContributors,(p,h)=>(I(),F("option",{key:`voice-${d}-contributor-${h}`,value:p.id},L(p.publicname||p.realname||p.nickname),9,aX))),128))],40,iX)],2))),128))]),_:1},8,["open"])])):Te("",!0)}const cX=Le(tX,[["render",uX]]),dX=[{title:"Export webvtt",type:"webvtt",file:"transcript.webvtt",ending:".webvtt"},{title:"Export json (flat)",type:"json",file:"transcript.json",ending:".json"},{title:"Export json (grouped)",type:"json_grouped",file:"transcript.json",ending:".json"},{title:"Export xml",type:"xml",file:"transcript.xml",ending:".xml"}],fX=ge({components:{Popover:nC,PodloveButton:Pn},setup(){return{state:ut({post:B.post.id,baseUrl:B.runtime.baseUrl,transcripts:B.transcripts.list})}},data(){return{exportTypes:dX}}}),pX={key:0},hX={class:"bg-white p-7 pb-1 -translate-x-full z-10 mt-3 transform ml-16 rounded-lg shadow-lg"},mX=["download","href"],gX={class:"text-sm font-medium text-gray-900 truncate w-full mr-2"},vX={class:"text-sm text-gray-500"};function yX(e,t,n,r,o,i){const l=q("podlove-button"),a=q("popover");return e.state.transcripts.length>0?(I(),F("div",pX,[z(a,null,{trigger:_e(()=>[z(l,{variant:"secondary",size:"small",tabindex:"-1"},{default:_e(()=>[Be(L(e.__("Export","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})]),content:_e(()=>[m("div",hX,[(I(!0),F(Me,null,Ot(e.exportTypes,(c,d)=>(I(),F("a",{key:`type-${d}`,download:c.file,href:`${e.state.baseUrl}/?p=${e.state.post}&podlove_transcript=${c.type}`,class:"flex items-center p-2 -m-3 transition duration-150 ease-in-out rounded-lg cursor-pointer bg-gray-100 hover:bg-indigo-100 focus:outline-none focus-visible:ring focus-visible:ring-indigo-500 focus-visible:ring-opacity-50 mb-4"},[m("div",gX,L(c.title),1),m("div",vX,L(c.ending),1)],8,mX))),128))])]),_:1})])):Te("",!0)}const _X=Le(fX,[["render",yX]]),bX=ge({components:{PodloveButton:Pn,Modal:Za,ExclamationIcon:lv,DialogTitle:WH},data(){return{modalVisible:!1}},setup(){return{state:ut({transcripts:B.transcripts.list}),dispatch:Ze().dispatch}},methods:{deleteTranscripts(){this.closeModal(),this.dispatch(GM())},openModal(){this.modalVisible=!0},closeModal(){this.modalVisible=!1}}}),wX={key:0},SX={class:"sm:flex sm:items-start"},EX={class:"mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-red-100 sm:mx-0 sm:h-10 sm:w-10"},$X={class:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left"},xX={class:"mt-2"},TX={class:"text-sm text-gray-500"},CX={class:"mt-5 sm:mt-4 sm:flex sm:flex-row-reverse"};function OX(e,t,n,r,o,i){const l=q("podlove-button"),a=q("exclamation-icon"),c=q("DialogTitle"),d=q("modal");return e.state.transcripts.length>0?(I(),F("div",wX,[z(l,{variant:"secondary",size:"small",onClick:t[0]||(t[0]=p=>e.openModal())},{default:_e(()=>[Be("Clear")]),_:1}),z(d,{open:e.modalVisible,onClose:t[3]||(t[3]=p=>e.closeModal())},{default:_e(()=>[m("div",SX,[m("div",EX,[z(a,{class:"h-6 w-6 text-red-600","aria-hidden":"true"})]),m("div",$X,[z(c,{as:"h3",class:"text-lg leading-6 font-medium text-gray-900"},{default:_e(()=>[Be(" Clear Transcript ")]),_:1}),m("div",xX,[m("p",TX,L(e.__("Are you sure you want to clear your transcript?","podlove-podcasting-plugin-for-wordpress")),1)])])]),m("div",CX,[z(l,{class:"sm:ml-3 sm:w-auto sm:text-sm",variant:"danger",onClick:t[1]||(t[1]=p=>e.deleteTranscripts())},{default:_e(()=>[Be(L(e.__("Clear","podlove-podcasting-plugin-for-wordpress")),1)]),_:1}),z(l,{class:"sm:ml-3 sm:w-auto sm:text-sm",onClick:t[2]||(t[2]=p=>e.closeModal())},{default:_e(()=>[Be(L(e.__("Cancel","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})])]),_:1},8,["open"])])):Te("",!0)}const AX=Le(bX,[["render",OX]]),kX=ge({components:{Module:In,TabsContainer:zT,Tab:HT,TranscriptsList:eX,TranscriptsVoices:cX,TranscriptsExport:_X,TranscriptsDelete:AX},setup(){return{dispatch:Ze().dispatch}},created(){this.dispatch(FE()),this.dispatch(VM())}});function IX(e,t,n,r,o,i){const l=q("transcripts-voices"),a=q("transcripts-export"),c=q("transcripts-delete"),d=q("transcripts-list"),p=q("module");return I(),Ye(p,{name:"transcript",title:e.__("Transcripts","podlove-podcasting-plugin-for-wordpress")},{actions:_e(()=>[z(l,{class:"mr-1"}),z(a,{class:"mr-1"}),z(c)]),default:_e(()=>[z(d)]),_:1},8,["title"])}const PX=Le(kX,[["render",IX]]);function rC(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"fill-rule":"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12Zm13.36-1.814a.75.75 0 1 0-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 0 0-1.06 1.06l2.25 2.25a.75.75 0 0 0 1.14-.094l3.75-5.25Z","clip-rule":"evenodd"})])}function hf(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"fill-rule":"evenodd",d:"M19.916 4.626a.75.75 0 0 1 .208 1.04l-9 13.5a.75.75 0 0 1-1.154.114l-6-6a.75.75 0 0 1 1.06-1.06l5.353 5.353 8.493-12.74a.75.75 0 0 1 1.04-.207Z","clip-rule":"evenodd"})])}function mf(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"fill-rule":"evenodd",d:"M11.47 4.72a.75.75 0 0 1 1.06 0l3.75 3.75a.75.75 0 0 1-1.06 1.06L12 6.31 8.78 9.53a.75.75 0 0 1-1.06-1.06l3.75-3.75Zm-3.75 9.75a.75.75 0 0 1 1.06 0L12 17.69l3.22-3.22a.75.75 0 1 1 1.06 1.06l-3.75 3.75a.75.75 0 0 1-1.06 0l-3.75-3.75a.75.75 0 0 1 0-1.06Z","clip-rule":"evenodd"})])}function RX(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"fill-rule":"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003ZM12 8.25a.75.75 0 0 1 .75.75v3.75a.75.75 0 0 1-1.5 0V9a.75.75 0 0 1 .75-.75Zm0 8.25a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z","clip-rule":"evenodd"})])}function LX(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"fill-rule":"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12Zm8.706-1.442c1.146-.573 2.437.463 2.126 1.706l-.709 2.836.042-.02a.75.75 0 0 1 .67 1.34l-.04.022c-1.147.573-2.438-.463-2.127-1.706l.71-2.836-.042.02a.75.75 0 1 1-.671-1.34l.041-.022ZM12 9a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z","clip-rule":"evenodd"})])}function Iv(e,t){return I(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[m("path",{"fill-rule":"evenodd",d:"M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25Zm-1.72 6.97a.75.75 0 1 0-1.06 1.06L10.94 12l-1.72 1.72a.75.75 0 1 0 1.06 1.06L12 13.06l1.72 1.72a.75.75 0 1 0 1.06-1.06L13.06 12l1.72-1.72a.75.75 0 1 0-1.06-1.06L12 10.94l-1.72-1.72Z","clip-rule":"evenodd"})])}const FX=ge({props:["file_key","track_index"],components:{Listbox:gv,ListboxButton:yv,ListboxLabel:vv,ListboxOption:bv,ListboxOptions:_v,CheckIcon:hf,SelectorIcon:mf,DocumentCheckIcon:FV},setup(){return{state:ut({services:B.auphonic.incomingServices,serviceFiles:B.auphonic.serviceFiles,fileSelections:B.auphonic.fileSelections,episodeSlug:B.episode.slug}),dispatch:Ze().dispatch}},methods:{set(e,t){this.dispatch(S$({key:this.file_key,prop:e,value:t})),Number.isInteger(this.track_index)&&this.dispatch($$({track:{},index:this.track_index}))},handleFileSelection(e){this.set("fileSelection",e.target.value)},handleUrlUpdate(e){this.set("urlValue",e.target.value)},handleFileUploadSelection(e){const t=e.target.files;t?this.set("fileValue",t[0]):this.set("fileValue",null)},handleServiceSelection(e){this.set("currentServiceSelection",e.target.value)},setEpisodeSlug(e){this.dispatch(bt({prop:"slug",value:e})),this.dispatch(W$())}},computed:{services(){return this.state.services},currentService(){return this.state.services.find(e=>e.uuid===this.currentServiceSelection)},serviceFiles(){return Y.get(this.state,["serviceFiles",this.currentServiceSelection],null)},fileSelection(){return this.state.fileSelections[this.file_key]},filenameSelectedForUpload(){var e,t;return(t=(e=this.fileSelection)==null?void 0:e.fileValue)==null?void 0:t.name},currentServiceSelection(){var e;return(e=this.fileSelection)==null?void 0:e.currentServiceSelection},urlFieldValue(){return this.fileSelection.urlValue},externalFileFieldValue(){return this.fileSelection.fileSelection},slugCandidate(){if(this.currentServiceSelection=="url"&&this.urlFieldValue)return this.urlFieldValue.split("/").reverse()[0].split(".")[0];if(this.currentServiceSelection=="file"){const e=this.filenameSelectedForUpload;return e?e.split(".")[0]:null}return null},shouldSuggestSlug(){return this.slugCandidate!=null&&this.slugCandidate!=this.state.episodeSlug}}}),NX={class:"flex flex-col gap-2"},MX=m("label",{class:"block md:hidden text-sm font-medium text-gray-700"},"Upload Method",-1),DX=["value","selected"],UX={key:0},BX={key:0},jX=["for"],VX={class:"sm:mt-1 rounded-md bg-indigo-50 px-3 py-2 text-sm font-semibold text-indigo-600 shadow-sm hover:bg-indigo-100"},HX={key:0,class:"sm:mt-1 text-sm font-normal"},zX=["id"],WX={key:1},qX=["for"],KX={class:"mt-1"},GX=["id","value"],XX={key:2},YX={key:0},JX=["for"],ZX=["id","value"],QX=["value"],eY={key:1},tY={key:3,class:"mt-3"},nY={class:"font-mono"};function rY(e,t,n,r,o,i){const l=q("DocumentCheckIcon");return I(),F("div",null,[m("div",NX,[m("div",null,[MX,m("select",{onChange:t[0]||(t[0]=(...a)=>e.handleServiceSelection&&e.handleServiceSelection(...a)),class:"mt-1 block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm rounded-md"},[(I(!0),F(Me,null,Ot(e.services,a=>(I(),F("option",{key:a.uuid,value:a.uuid,selected:a.uuid==e.currentServiceSelection},L(a.type)+": "+L(a.display_name),9,DX))),128))],32)]),e.currentService?(I(),F("div",UX,[e.currentService.type==="file"?(I(),F("div",BX,[m("label",{for:e.file_key+"file-upload",class:"relative flex items-center gap-2 cursor-pointer bg-white rounded-md font-medium text-indigo-600 hover:text-indigo-500 focus-within:outline-none"},[m("div",VX,L(e.__("Choose File","podlove-podcasting-plugin-for-wordpress")),1),e.filenameSelectedForUpload?(I(),F("div",HX,[Be(L(e.__("Selected for Upload:","podlove-podcasting-plugin-for-wordpress"))+" ",1),m("span",null,L(e.filenameSelectedForUpload),1)])):Te("",!0),m("input",{id:e.file_key+"file-upload",name:"file-upload",type:"file",class:"sr-only",onInput:t[1]||(t[1]=(...a)=>e.handleFileUploadSelection&&e.handleFileUploadSelection(...a))},null,40,zX)],8,jX)])):e.currentService.type==="url"?(I(),F("div",WX,[m("label",{for:e.file_key+"audio_source_url",class:"block text-sm font-medium text-gray-700"},"File URL",8,qX),m("div",KX,[m("input",{type:"url",name:"audio_source_url",id:e.file_key+"audio_source_url",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",placeholder:"https://example.com/audio.flac",value:e.urlFieldValue,onInput:t[2]||(t[2]=(...a)=>e.handleUrlUpdate&&e.handleUrlUpdate(...a))},null,40,GX)])])):(I(),F("div",XX,[e.serviceFiles!==null?(I(),F("div",YX,[m("label",{for:e.file_key+"external_file",class:"block text-sm font-medium text-gray-700"},"File",8,JX),m("select",{name:"audio_external_file",id:e.file_key+"external_file",class:"mt-1 block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm rounded-md",value:e.externalFileFieldValue,onChange:t[3]||(t[3]=(...a)=>e.handleFileSelection&&e.handleFileSelection(...a))},[(I(!0),F(Me,null,Ot(e.serviceFiles,a=>(I(),F("option",{key:a,value:a,d:""},L(a),9,QX))),128))],40,ZX)])):(I(),F("div",eY,"..."))])),e.shouldSuggestSlug?(I(),F("div",tY,[m("button",{onClick:t[4]||(t[4]=()=>e.setEpisodeSlug(e.slugCandidate)),type:"button",class:"relative text-xs inline-flex items-center rounded-md bg-white px-3 py-2 font-medium text-gray-500 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50"},[z(l,{class:"-ml-0.5 mr-1.5 h-4 w-4 text-gray-400","aria-hidden":"true"}),m("span",null,[Be(L(e.__("Use as Episode Slug:","podlove-podcasting-plugin-for-wordpress"))+" ",1),m("span",nY,L(e.slugCandidate),1)])])])):Te("",!0)])):Te("",!0)])])}const oY=Le(FX,[["render",rY]]),sY=ge({name:"TransferHeader"}),iY={class:"mb-4"},lY=m("h3",{class:"text-lg font-medium leading-6 text-gray-900"},"PLUS File Storage",-1),aY={class:"mt-1 text-sm text-gray-500"};function uY(e,t,n,r,o,i){return I(),F("div",iY,[lY,m("p",aY,L(e.__("Auphonic files are automatically transferred to PLUS storage.","podlove-podcasting-plugin-for-wordpress")),1)])}const cY=Le(sY,[["render",uY]]),dY=ge({name:"TransferFileItem",components:{ClockIcon:Xx,ArrowPathIcon:nf,CheckCircleIcon:Kx,XCircleIcon:Qx},props:{file:{type:Object,required:!0}},methods:{getFileStatusMessage(e){switch(e.status){case"pending":return"Waiting...";case"processing":return"Transferring...";case"completed":return"Completed";case"failed":return e.message||"Failed";default:return e.message||""}}}}),fY={class:"flex items-center text-sm"},pY={class:"flex-shrink-0 mr-2"},hY={class:"font-medium"};function mY(e,t,n,r,o,i){const l=q("ArrowPathIcon"),a=q("CheckCircleIcon"),c=q("XCircleIcon"),d=q("ClockIcon");return I(),F("li",fY,[m("span",pY,[e.file.status==="processing"?(I(),Ye(l,{key:0,class:"h-4 w-4 text-blue-500 animate-spin"})):e.file.status==="completed"?(I(),Ye(a,{key:1,class:"h-4 w-4 text-green-500"})):e.file.status==="failed"?(I(),Ye(c,{key:2,class:"h-4 w-4 text-red-500"})):(I(),Ye(d,{key:3,class:"h-4 w-4 text-gray-400"}))]),m("span",hY,L(e.file.filename),1),m("span",{class:gt(["ml-2 text-xs",{"text-blue-600":e.file.status==="processing","text-green-600":e.file.status==="completed","text-red-600":e.file.status==="failed","text-gray-500":e.file.status==="pending"}])},L(e.getFileStatusMessage(e.file)),3)])}const oC=Le(dY,[["render",mY]]),gY=ge({name:"TransferFileList",components:{TransferFileItem:oC},props:{files:{type:Array,default:()=>[]},title:{type:String,default:""}}}),vY={key:0},yY={class:"font-medium"},_Y={class:"mt-1 space-y-1"};function bY(e,t,n,r,o,i){const l=q("TransferFileItem");return e.files&&e.files.length>0?(I(),F("div",vY,[m("p",yY,L(e.title),1),m("ul",_Y,[(I(!0),F(Me,null,Ot(e.files,a=>(I(),Ye(l,{key:a.filename,file:a},null,8,["file"]))),128))])])):Te("",!0)}const wY=Le(gY,[["render",bY]]),SY=ge({name:"TransferStatusPanel",components:{ClockIcon:Xx,ArrowPathIcon:nf,CheckCircleIcon:Kx,XCircleIcon:Qx,ExclamationTriangleIcon:lv,TransferFileList:wY,TransferFileItem:oC},props:{status:{type:String,required:!0},files:{type:Array,default:()=>[]},errors:{type:String,default:void 0}},emits:["action"]}),EY={key:0,class:"rounded-md bg-blue-50 p-4"},$Y={class:"flex"},xY={class:"flex-shrink-0"},TY={class:"ml-3"},CY={class:"text-sm font-medium text-blue-800"},OY={class:"mt-2 text-sm text-blue-700"},AY={class:"mt-4"},kY={key:1,class:"rounded-md bg-gray-50 p-4"},IY={class:"flex"},PY={class:"flex-shrink-0"},RY={class:"ml-3"},LY={class:"text-sm font-medium text-gray-800"},FY={class:"mt-2 text-sm text-gray-700"},NY={key:0,class:"mt-3"},MY={class:"space-y-1"},DY={key:2,class:"rounded-md bg-green-50 p-4"},UY={class:"flex"},BY={class:"flex-shrink-0"},jY={class:"ml-3"},VY={class:"text-sm font-medium text-green-800"},HY={class:"mt-2 text-sm text-green-700"},zY={key:3,class:"rounded-md bg-yellow-50 p-4"},WY={class:"flex"},qY={class:"flex-shrink-0"},KY={class:"ml-3"},GY={class:"text-sm font-medium text-yellow-800"},XY={class:"mt-2 text-sm text-yellow-700"},YY={class:"mt-4"},JY={key:4,class:"rounded-md bg-red-50 p-4"},ZY={class:"flex"},QY={class:"flex-shrink-0"},eJ={class:"ml-3"},tJ={class:"text-sm font-medium text-red-800"},nJ={class:"mt-2 text-sm text-red-700"},rJ={key:0,class:"mt-2"},oJ={class:"font-medium"},sJ={class:"text-sm text-red-600"},iJ={key:1,class:"mt-2"},lJ={class:"font-medium"},aJ={class:"mt-1 list-disc list-inside"},uJ={class:"font-medium"},cJ={key:0,class:"text-green-600 ml-2"},dJ={key:1,class:"text-red-600 ml-2"},fJ={class:"mt-4"};function pJ(e,t,n,r,o,i){const l=q("ClockIcon"),a=q("ArrowPathIcon"),c=q("TransferFileItem"),d=q("CheckCircleIcon"),p=q("TransferFileList"),h=q("ExclamationTriangleIcon"),v=q("XCircleIcon");return e.status==="waiting_for_webhook"?(I(),F("div",EY,[m("div",$Y,[m("div",xY,[z(l,{class:"h-5 w-5 text-blue-400","aria-hidden":"true"})]),m("div",TY,[m("h3",CY,L(e.__("Waiting for Transfer","podlove-podcasting-plugin-for-wordpress")),1),m("div",OY,[m("p",null,L(e.__("Files will be transferred automatically when the production is completed.","podlove-podcasting-plugin-for-wordpress")),1)]),m("div",AY,[m("button",{onClick:t[0]||(t[0]=y=>e.$emit("action")),class:"inline-flex items-center rounded-md bg-blue-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-blue-700 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-600"},L(e.__("Transfer Now","podlove-podcasting-plugin-for-wordpress")),1)])])])])):e.status==="in_progress"?(I(),F("div",kY,[m("div",IY,[m("div",PY,[z(a,{class:"h-5 w-5 text-gray-400 animate-spin","aria-hidden":"true"})]),m("div",RY,[m("h3",LY,L(e.__("Transferring Files","podlove-podcasting-plugin-for-wordpress")),1),m("div",FY,[m("p",null,L(e.__("Files are being transferred to PLUS storage...","podlove-podcasting-plugin-for-wordpress")),1),e.files&&e.files.length>0?(I(),F("div",NY,[m("ul",MY,[(I(!0),F(Me,null,Ot(e.files,y=>(I(),Ye(c,{key:y.filename,file:y},null,8,["file"]))),128))])])):Te("",!0)])])])])):e.status==="completed"?(I(),F("div",DY,[m("div",UY,[m("div",BY,[z(d,{class:"h-5 w-5 text-green-400","aria-hidden":"true"})]),m("div",jY,[m("h3",VY,L(e.__("Transfer Complete","podlove-podcasting-plugin-for-wordpress")),1),m("div",HY,[m("p",null,L(e.__("All files have been transferred successfully to PLUS storage.","podlove-podcasting-plugin-for-wordpress")),1),e.files&&e.files.length>0?(I(),Ye(p,{key:0,files:e.files,title:e.__("Transferred files:","podlove-podcasting-plugin-for-wordpress"),class:"mt-2"},null,8,["files","title"])):Te("",!0)])])])])):e.status==="completed_with_errors"?(I(),F("div",zY,[m("div",WY,[m("div",qY,[z(h,{class:"h-5 w-5 text-yellow-400","aria-hidden":"true"})]),m("div",KY,[m("h3",GY,L(e.__("Transfer Completed with Errors","podlove-podcasting-plugin-for-wordpress")),1),m("div",XY,[m("p",null,L(e.__("Some files were transferred successfully, but others failed.","podlove-podcasting-plugin-for-wordpress")),1),e.files&&e.files.length>0?(I(),Ye(p,{key:0,files:e.files,title:e.__("File transfer results:","podlove-podcasting-plugin-for-wordpress"),class:"mt-2"},null,8,["files","title"])):Te("",!0)]),m("div",YY,[m("button",{onClick:t[1]||(t[1]=y=>e.$emit("action")),class:"inline-flex items-center rounded-md bg-yellow-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-yellow-700 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-yellow-600"},L(e.__("Retry Failed Transfers","podlove-podcasting-plugin-for-wordpress")),1)])])])])):e.status==="failed"?(I(),F("div",JY,[m("div",ZY,[m("div",QY,[z(v,{class:"h-5 w-5 text-red-400","aria-hidden":"true"})]),m("div",eJ,[m("h3",tJ,L(e.__("Transfer Failed","podlove-podcasting-plugin-for-wordpress")),1),m("div",nJ,[m("p",null,L(e.__("Some files failed to transfer to PLUS storage.","podlove-podcasting-plugin-for-wordpress")),1),e.errors?(I(),F("div",rJ,[m("p",oJ,L(e.__("Error details:","podlove-podcasting-plugin-for-wordpress")),1),m("p",sJ,L(e.errors),1)])):Te("",!0),e.files&&e.files.length>0?(I(),F("div",iJ,[m("p",lJ,L(e.__("File transfer results:","podlove-podcasting-plugin-for-wordpress")),1),m("ul",aJ,[(I(!0),F(Me,null,Ot(e.files,y=>(I(),F("li",{key:y.filename,class:"text-sm"},[m("span",uJ,L(y.filename),1),y.success?(I(),F("span",cJ,"✓")):(I(),F("span",dJ,"✗ "+L(y.message),1))]))),128))])])):Te("",!0)]),m("div",fJ,[m("button",{onClick:t[2]||(t[2]=y=>e.$emit("action")),class:"inline-flex items-center rounded-md bg-red-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-red-700 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-red-600"},L(e.__("Retry Transfer","podlove-podcasting-plugin-for-wordpress")),1)])])])])):Te("",!0)}const hJ=Le(SY,[["render",pJ]]),mJ=ge({name:"PlusTransferStatus",components:{TransferHeader:cY,TransferStatusPanel:hJ},setup(){return{state:ut({production:B.auphonic.production,plusTransferStatus:B.auphonic.plusTransferStatus,plusTransferFiles:B.auphonic.plusTransferFiles,plusTransferErrors:B.auphonic.plusTransferErrors}),dispatch:Ze().dispatch}},mounted(){this.loadPlusTransferStatus()},methods:{loadPlusTransferStatus(){this.production.uuid&&this.dispatch(B8({production_uuid:this.production.uuid}))},triggerManualTransfer(){this.production.uuid&&this.dispatch(T$({production_uuid:this.production.uuid}))},refreshEpisodeData(){this.dispatch(rD())}},computed:{production(){return this.state.production||{}},plusTransferStatus(){return this.state.plusTransferStatus},plusTransferFiles(){return this.state.plusTransferFiles},plusTransferErrors(){return this.state.plusTransferErrors},showPlusTransferStatus(){return this.production.status===3}}}),gJ={key:0,class:"mt-4 overflow-hidden rounded-lg bg-white shadow"},vJ={class:"p-6"};function yJ(e,t,n,r,o,i){const l=q("TransferHeader"),a=q("TransferStatusPanel");return e.showPlusTransferStatus?(I(),F("div",gJ,[m("div",vJ,[z(l),z(a,{status:e.plusTransferStatus||"waiting_for_webhook",files:e.plusTransferFiles,errors:e.plusTransferErrors,onAction:e.triggerManualTransfer},null,8,["status","files","errors","onAction"])])])):Te("",!0)}const _J=Le(mJ,[["render",yJ]]),bJ=ge({components:{ClipboardCheckIcon:PV,ExternalLinkIcon:qx,ExclamationIcon:lv,PlusTransferStatus:_J},setup(){return{state:ut({production:B.auphonic.production,title:B.episode.title,subtitle:B.episode.subtitle,summary:B.episode.summary,duration:B.episode.duration,slug:B.episode.slug,license_name:B.episode.license_name,license_url:B.episode.license_url,chapters:B.chapters.list,episodeId:B.episode.id,plusFeatures:B.plus.features}),dispatch:Ze().dispatch}},created(){this.dispatch(qd())},methods:{isDifferent(e){switch(e.title){case"chapters":const t=e.here.map(r=>r.start+(r.title||"")+(r.href||"")+(r.image||"")).join(";"),n=e.there.map(r=>Math.round((r.start_output_sec||0)*1e3)+(r.title||"")+(r.url||"")+(r.image||"")).join(";");return t!=n;default:return e.there!=e.here}},renderEntryPreview(e){switch(e.title){case"chapters":return e.there.map(n=>n.start+" "+n.title).join(" / ");default:return e.there}},importMeta(e,t){switch(e){case"chapters":const r=t.map(o=>({start:Math.round((o.start_output_sec||0)*1e3),title:o.title||"",href:o.url||"",image:""}));this.dispatch(pE(r));break;default:this.dispatch(bt({prop:e,value:t}));break}},importAllMeta(){this.visibleEntries.forEach(e=>{this.importMeta(e.title,e.there)})}},computed:{production(){return this.state.production||{}},entries(){const e=this.state.production,t=this.state;return[{key:1,title:"title",here:t.title,there:e.metadata.title},{key:2,title:"subtitle",here:t.subtitle,there:e.metadata.subtitle},{key:3,title:"summary",here:t.summary,there:e.metadata.summary},{key:5,title:"license_name",here:t.license_name,there:e.metadata.license},{key:6,title:"license_url",here:t.license_url,there:e.metadata.license_url},{key:9,title:"slug",here:t.slug,there:e.output_basename},{key:10,title:"chapters",here:t.chapters,there:e.chapters}]},visibleEntries(){return this.entries.filter(e=>e.there&&this.isDifferent(e))},plusFileStorageEnabled(){return this.state.plusFeatures.fileStorage}}}),wJ={key:0,class:"rounded-md bg-green-50 p-4"},SJ={class:"flex"},EJ={class:"flex-shrink-0"},$J={class:"ml-3"},xJ={class:"text-sm font-medium text-green-800"},TJ={class:"mt-2 text-sm text-green-700"},CJ=["href"],OJ={key:1,class:"rounded-md bg-yellow-50 p-4 mt-4"},AJ={class:"flex"},kJ={class:"flex-shrink-0"},IJ={class:"ml-3"},PJ={class:"text-sm font-medium text-yellow-800"},RJ={class:"mt-2 text-sm text-yellow-700"},LJ={key:3,class:"mt-4 overflow-hidden rounded-lg bg-white shadow"},FJ={class:"p-6"},NJ=m("h3",{class:"text-lg font-medium leading-6 text-gray-900"},"Import Metadata",-1),MJ={class:"mt-1 text-sm text-gray-500"},DJ={class:"mt-6 flow-root"},UJ={role:"list",class:"-my-5 divide-y divide-gray-200"},BJ={class:"flex items-center space-x-4"},jJ={class:"min-w-0 flex-1"},VJ={class:"truncate text-sm text-gray-500"},HJ={class:"truncate text-sm font-medium text-gray-900"},zJ=["onClick"],WJ={class:"hidden sm:inline"},qJ={class:"mt-6"},KJ={key:4,class:"mt-4 overflow-hidden rounded-lg bg-white shadow"},GJ={class:"p-6"};function XJ(e,t,n,r,o,i){const l=q("ClipboardCheckIcon"),a=q("ExternalLinkIcon"),c=q("ExclamationIcon"),d=q("PlusTransferStatus");return I(),F("div",null,[e.production.status==3?(I(),F("div",wJ,[m("div",SJ,[m("div",EJ,[z(l,{class:"h-5 w-5 text-green-400","aria-hidden":"true"})]),m("div",$J,[m("h3",xJ,L(e.__("Done","podlove-podcasting-plugin-for-wordpress")),1),m("div",TJ,[m("p",null,[m("a",{href:e.production.status_page,target:"_blank",class:"underline inline-flex items-center"},[Be(L(e.__("View Results","podlove-podcasting-plugin-for-wordpress"))+" ",1),z(a,{class:"ml-0.5 mr-1 h-4 w-4","aria-hidden":"true"})],8,CJ),Be(" "+L(e.__("on the Auphonic status page.","podlove-podcasting-plugin-for-wordpress")),1)])])])])])):Te("",!0),e.production.warning_message?(I(),F("div",OJ,[m("div",AJ,[m("div",kJ,[z(c,{class:"h-5 w-5 text-yellow-400","aria-hidden":"true"})]),m("div",IJ,[m("h3",PJ,L(e.__("Warning","podlove-podcasting-plugin-for-wordpress")),1),m("div",RJ,[m("p",null,L(e.production.warning_message),1)])])])])):Te("",!0),e.plusFileStorageEnabled?(I(),Ye(d,{key:2})):Te("",!0),e.visibleEntries.length>0?(I(),F("div",LJ,[m("div",FJ,[m("div",null,[NJ,m("p",MJ,L(e.__("These values from your Auphonic Production differ from your local values:","podlove-podcasting-plugin-for-wordpress")),1)]),m("div",DJ,[m("ul",UJ,[(I(!0),F(Me,null,Ot(e.visibleEntries,p=>(I(),F("li",{key:p.key,class:"py-4"},[m("div",BJ,[m("div",jJ,[m("p",VJ,[m("em",null,L(p.title),1),Be(" "+L(e.__("in the Auphonic Production is:","podlove-podcasting-plugin-for-wordpress")),1)]),m("p",HJ,L(e.renderEntryPreview(p)),1)]),m("div",null,[m("button",{onClick:va(h=>e.importMeta(p.title,p.there),["prevent"]),class:"inline-flex items-center rounded-full border border-gray-300 bg-white px-2.5 py-0.5 text-sm font-medium leading-5 text-gray-700 shadow-sm hover:bg-gray-50","aria-label":"Import from Auphonic"},[Be(L(e.__("Import","podlove-podcasting-plugin-for-wordpress")),1),m("span",WJ," "+L(e.__("from Auphonic","podlove-podcasting-plugin-for-wordpress")),1)],8,zJ)])])]))),128))])]),m("div",qJ,[m("button",{onClick:t[0]||(t[0]=va((...p)=>e.importAllMeta&&e.importAllMeta(...p),["prevent"])),class:"flex w-full items-center justify-center rounded-md border border-gray-300 bg-white px-4 py-2 text-sm font-medium text-gray-700 shadow-sm hover:bg-gray-50"},L(e.__("Import all from Auphonic","podlove-podcasting-plugin-for-wordpress")),1)])])])):(I(),F("div",KJ,[m("div",GJ,L(e.__("Nothing to import","podlove-podcasting-plugin-for-wordpress")),1)]))])}const YJ=Le(bJ,[["render",XJ]]),JJ=ge({components:{Switch:DT,SwitchGroup:sz,SwitchLabel:iz},data(){return{enabled:!1}},methods:{handleUpdate(e){this.enabled=e,this.dispatch(x$(e))}},setup(){return{state:ut({publishWhenDone:B.auphonic.publishWhenDone}),dispatch:Ze().dispatch}},mounted(){this.enabled=this.state.publishWhenDone}}),ZJ={class:"text-sm text-gray-900"};function QJ(e,t,n,r,o,i){const l=q("Switch"),a=q("SwitchLabel"),c=q("SwitchGroup");return I(),F("div",null,[z(c,{as:"div",class:"flex items-center"},{default:_e(()=>[z(l,{modelValue:e.enabled,"onUpdate:modelValue":e.handleUpdate,class:gt([e.enabled?"bg-indigo-600":"bg-gray-200","relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"])},{default:_e(()=>[m("span",{"aria-hidden":"true",class:gt([e.enabled?"translate-x-5":"translate-x-0","pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out"])},null,2)]),_:1},8,["modelValue","onUpdate:modelValue","class"]),z(a,{as:"span",class:"ml-3"},{default:_e(()=>[m("span",ZJ,L(e.__("Publish Episode when Production is done","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})]),_:1})])}const eZ=Le(JJ,[["render",QJ]]),tZ=ge({props:{className:{type:String,default:""}}}),nZ=m("g",{transform:"translate(-12.73496,-48.464)"},[m("path",{d:"m 28.623,223.469 c -3.277,-0.007 -7.473,0.836 -12.588,2.528 l 1.46,6.491 c 3.476,-1.302 6.689,-1.95 9.638,-1.944 3.472,0.008 5.797,0.63 6.975,1.868 1.176,1.237 1.762,3.569 1.754,6.998 l -7.373,-0.017 c -5.047,-0.011 -8.933,1.031 -11.655,3.125 -2.725,2.092 -4.091,5.007 -4.099,8.739 -0.008,3.334 1.198,6.07 3.618,8.207 2.419,2.14 5.661,3.212 9.726,3.221 4.389,0.01 8.063,-1.161 11.017,-3.512 l 1.075,2.655 7.471,0.017 0.052,-23.199 c 0.011,-4.848 -1.243,-8.587 -3.759,-11.214 -2.519,-2.628 -6.956,-3.949 -13.312,-3.963 z m 7.6,30 c -0.33,0.195 -0.92,0.505 -1.772,0.929 -0.853,0.424 -1.738,0.734 -2.656,0.929 -0.92,0.193 -2.033,0.29 -3.343,0.287 -1.966,-0.004 -3.506,-0.443 -4.618,-1.314 -1.113,-0.873 -1.666,-2.08 -1.663,-3.618 0.007,-3.079 2.467,-4.611 7.382,-4.601 4.916,0.011 6.685,0.006 6.685,0.006 l -0.015,7.382 z m 41.315,-29.3 9.241,0.021 -0.084,37.845 -6.489,-0.014 -1.173,-2.754 c -2.494,1.173 -5.743,3.524 -12.295,3.51 -5.701,-0.013 -13.761,-0.336 -13.723,-17.135 l 0.048,-21.527 9.339,0.021 -0.051,22.806 c -0.013,5.661 2.719,7.772 6.863,7.781 2.883,0.007 5.638,-0.74 8.262,-2.243 l 0.062,-28.311 z m 44.305,1.377 c -2.751,-1.251 -5.502,-1.88 -8.254,-1.887 -3.801,-0.008 -7.539,1 -11.212,3.023 l -1.076,-2.46 -6.586,-0.015 -0.111,49.679 9.436,0.021 0.029,-13.013 c 1.505,0.659 4.534,1.975 8.154,1.983 6.096,0.014 10.833,-1.728 14.215,-5.226 3.385,-3.498 5.083,-8.296 5.097,-14.391 0.011,-4.719 -0.914,-8.538 -2.776,-11.458 -1.863,-2.918 -4.166,-5.005 -6.916,-6.256 z m -3.061,27.173 c -2.066,1.863 -4.772,2.792 -8.114,2.784 -2.425,-0.005 -4.587,-0.633 -6.484,-1.883 l 0.047,-21.135 c 2.098,-0.912 4.36,-1.367 6.786,-1.362 7.274,0.017 10.902,4.219 10.884,12.608 -0.01,4.129 -1.049,7.124 -3.119,8.988 z m 53.325,-12.021 -0.048,21.43 -9.437,-0.021 0.051,-22.708 c 0.005,-2.293 -0.45,-4.145 -1.363,-5.557 -0.917,-1.411 -2.717,-2.12 -5.402,-2.125 -2.427,-0.005 -5.408,0.676 -8.949,2.044 l -0.063,28.311 -9.437,-0.021 0.111,-49.608 9.436,0.021 -0.03,13.827 c 3.935,-1.628 7.736,-2.441 11.406,-2.433 5.636,0.012 13.762,0.659 13.725,16.84 z m 92.456,-16.111 9.437,0.021 -0.084,37.747 -9.437,-0.021 0.084,-37.747 z m 46.696,29.103 2.643,6.102 c -1.97,1.11 -4.085,1.99 -6.347,2.639 -2.263,0.649 -4.969,0.972 -8.113,0.965 -5.898,-0.013 -10.629,-1.825 -14.192,-5.438 -3.564,-3.611 -5.337,-8.368 -5.324,-14.266 0.014,-6.095 1.793,-10.891 5.339,-14.389 3.547,-3.497 8.302,-5.241 14.266,-5.228 3.014,0.006 5.586,0.307 7.715,0.901 2.127,0.595 4.371,1.453 6.729,2.571 l -2.67,6.187 c -2.356,-0.792 -4.208,-1.369 -5.548,-1.732 -1.345,-0.363 -2.9,-0.547 -4.67,-0.551 -3.735,-0.008 -6.572,1.1 -8.509,3.323 -1.938,2.224 -2.912,5.203 -2.921,8.938 -0.008,3.605 1,6.54 3.028,8.805 2.024,2.266 4.809,3.403 8.347,3.412 1.77,0.004 3.326,-0.173 4.673,-0.531 1.339,-0.356 3.193,-0.926 5.554,-1.708 z m -53.79,-12.801 -0.048,21.43 -9.338,-0.021 0.05,-22.609 c 0.016,-7.021 -4.21,-7.677 -6.766,-7.683 -2.295,-0.005 -5.344,0.676 -9.146,2.044 l -0.062,28.212 -9.339,-0.021 0.084,-37.747 6.683,0.015 1.175,2.755 c 4.462,-2.152 8.818,-3.225 13.081,-3.215 4.405,0.01 13.663,0.163 13.626,16.84 z m -59.894,-17.042 c -5.898,-0.013 -10.62,1.731 -14.167,5.227 -3.545,3.499 -5.327,8.294 -5.341,14.389 -0.009,3.801 0.784,7.178 2.385,10.131 1.6,2.953 3.854,5.268 6.769,6.946 2.913,1.676 6.301,2.52 10.169,2.528 3.866,0.009 7.274,-0.82 10.228,-2.483 2.955,-1.665 5.234,-3.969 6.848,-6.915 1.612,-2.946 2.423,-6.351 2.432,-10.218 0.013,-5.963 -1.73,-10.719 -5.228,-14.265 -3.5,-3.546 -8.195,-5.327 -14.095,-5.34 z m 6.866,28.62 c -1.809,2.095 -4.152,3.137 -7.035,3.131 -2.753,-0.006 -5.047,-1.076 -6.874,-3.21 -1.831,-2.133 -2.741,-5.102 -2.732,-8.903 0.008,-3.866 0.949,-6.879 2.821,-9.037 1.872,-2.159 4.15,-3.235 6.84,-3.229 2.752,0.006 5.059,1.077 6.922,3.21 1.862,2.134 2.791,5.167 2.783,9.099 -0.009,3.868 -0.918,6.848 -2.725,8.939 z"}),m("path",{d:"M 53.464,198.261 H 13.619 c 0,-0.001 0,-0.004 0,-0.006 0,-82.727 67.065,-149.791 149.788,-149.791 82.729,0 149.794,67.063 149.794,149.791 0,0.002 0,0.005 0,0.006 h -39.844 c 0.006,-0.435 0.017,-0.869 0.017,-1.306 0,-60.731 -49.234,-109.963 -109.967,-109.963 -60.727,0 -109.959,49.232 -109.959,109.963 -10e-4,0.437 0.011,0.871 0.016,1.306 z m 189.059,0 c 0.019,-0.705 0.053,-1.407 0.053,-2.117 0,-43.723 -35.444,-79.167 -79.167,-79.167 -43.722,0 -79.166,35.445 -79.166,79.167 0,0.71 0.035,1.412 0.054,2.117 h 39.67 c -0.085,-1.047 -0.14,-2.103 -0.14,-3.172 0,-21.861 17.721,-39.584 39.582,-39.584 21.862,0 39.583,17.723 39.583,39.584 0,1.069 -0.055,2.125 -0.139,3.172 h 39.67 z"})],-1),rZ=[nZ];function oZ(e,t,n,r,o,i){return I(),F("svg",{class:gt(e.className),viewBox:"0 0 301.24005 225.44299",stroke:"currentColor",fill:"currentColor","aria-hidden":"true"},rZ,2)}const Pv=Le(tZ,[["render",oZ]]),sZ=ge({components:{PodloveButton:Pn,FileChooser:oY,CogIcon:LV,ChevronDownIcon:Gx,ChevronRightIcon:kV,XIcon:ml,DatabaseIcon:IV,ExternalLinkIcon:qx,CloudIcon:Yx,TrashIcon:DV,ArrowDownIcon:Wx,ArrowDownTrayIcon:$V,AuphonicLogo:Pv,DonePage:YJ,WebhookToggle:eZ},data(){return{algorithmSettings:{},showImportPage:!1}},setup(){return{state:ut({production:B.auphonic.production,tracks:B.auphonic.tracks,isSaving:B.auphonic.isSaving,progress:e=>t=>B.progress.progress(e,t)}),dispatch:Ze().dispatch}},methods:{saveProduction(){this.dispatch(_$({uuid:this.production.uuid}))},startProduction(){this.dispatch(b$({uuid:this.production.uuid}))},deselectProduction(){this.dispatch(v$())},addTrack(){this.dispatch(N8())},removeTrack(e){this.dispatch(E$(e))},updateTrack(e,t,n){this.dispatch($$({track:{[e]:t},index:n}))},algorithmSettingsVisible(e){return!0},toggleAlgorithmSettingVisible(e){this.algorithmSettings[e]=!Y.get(this.algorithmSettings,e,!1)},handleSelectForeBackground(e,t){this.updateTrack("fore_background",e.target.value,t)},handleToggleNoiseHum(e,t){this.updateTrack("noise_and_hum_reduction",e.target.checked,t)},handleToggleFiltering(e,t){this.updateTrack("filtering",e.target.checked,t)},handleUpdateIdentifier(e,t){this.updateTrack("identifier_new",e.target.value,t)},uploadProgress(e){return this.state.progress(e)||null}},computed:{production(){return this.state.production||{}},isSaving(){return this.state.isSaving},showProcessingScreen(){return[1,4,5,6,7,8,12,13,14].includes(this.production.status)},showUploadScreen(){return this.production.status===0},showTrackEditor(){return[9,10,11].includes(this.production.status)},tracks(){return this.state.tracks||[]},isMultitrack(){return this.state.production&&this.state.production.is_multitrack}}}),iZ={class:"pb-5 space-y-4"},lZ={class:"space-y-8"},aZ={class:"bg-white px-4 sm:px-6"},uZ={class:"-ml-4 -mt-4 flex flex-wrap items-center justify-between sm:flex-nowrap"},cZ={class:"ml-4 mt-4"},dZ={class:"flex items-center"},fZ={class:"flex-shrink-0"},pZ={class:"ml-4"},hZ={class:"text-base font-semibold leading-6 text-gray-900"},mZ={class:"text-sm text-gray-500"},gZ={class:"ml-4 mt-4 flex items-center space-x-4 text-xs"},vZ={key:0,class:"inline-flex items-center animate-pulse text-green-600"},yZ={key:0},_Z={key:1},bZ={class:"space-y-4"},wZ={key:0},SZ={key:1},EZ={class:"rounded-md bg-indigo-50 p-4"},$Z={class:"flex"},xZ={class:"flex-shrink-0"},TZ={class:"ml-3"},CZ={class:"text-sm font-medium text-indigo-800"},OZ={class:"mt-2 text-sm text-indigo-700"},AZ={key:2},kZ={key:3},IZ={class:"bg-white shadow overflow-hidden rounded-md"},PZ={class:"px-6 pt-4 hidden md:block"},RZ={class:"md:grid md:grid-cols-3 md:gap-12"},LZ={class:"block text-sm font-medium text-gray-700 md:col-span-1"},FZ={class:"block text-sm font-medium text-gray-700 mt-5 md:mt-0 md:col-span-1"},NZ={class:"block text-sm font-medium text-gray-700 mt-5 md:mt-0 md:col-span-1"},MZ=m("div",{class:"block w-8 md:col-span-1"},null,-1),DZ={role:"list",class:"divide-y divide-gray-200"},UZ={class:"md:grid md:grid-cols-3 md:gap-12"},BZ={class:"md:col-span-1"},jZ=["for"],VZ=["id","value","onInput"],HZ={class:"mt-5 md:mt-0 md:col-span-1"},zZ={class:"sm:items-baseline"},WZ={class:"mt-4 sm:mt-0"},qZ={key:0,class:"mt-2 px-3 py-2 bg-gray-100 rounded-md text-sm text-gray-700 break-all"},KZ={key:1},GZ={class:"mt-2","aria-hidden":"true"},XZ={class:"overflow-hidden rounded-full bg-gray-100"},YZ={class:"mt-1 hidden grid-cols-4 text-sm font-medium text-gray-600 sm:grid"},JZ={class:"md:col-span-1"},ZZ={key:0,role:"group",class:"bg-gr"},QZ={class:"sm:items-baseline"},eQ={class:""},tQ={class:"block md:hidden text-sm font-medium text-gray-700 py-2"},nQ={class:"max-w-lg relative"},rQ=["title","onClick"],oQ={class:"space-y-4"},sQ={class:"relative flex items-start"},iQ={class:"flex items-center h-5"},lQ=["id","checked","onInput"],aQ={class:"ml-3 text-sm"},uQ=["for"],cQ={class:"relative flex items-start"},dQ={class:"flex items-center h-5"},fQ=["id","checked","onInput"],pQ={class:"ml-3 text-sm"},hQ=["for"],mQ={class:"relative flex justify-start align-middle items-center gap-3"},gQ={class:"text-sm"},vQ=["for"],yQ=["value","onInput","id"],_Q={value:"auto"},bQ={value:"foreground"},wQ={value:"background"},SQ={value:"ducking"},EQ={value:"unchanged"},$Q={class:"bg-gray-50 px-4 py-4 sm:px-6"},xQ={key:4,class:"grid grid-cols-1 gap-y-6 gap-x-4 sm:grid-cols-6"},TQ={class:"sm:col-span-4"},CQ={class:"text-base font-medium text-gray-900"},OQ={class:"mt-2"},AQ={key:0,class:"mt-2 px-3 py-2 bg-gray-100 rounded-md text-sm text-gray-700 break-all"},kQ={key:1},IQ={class:"mt-2","aria-hidden":"true"},PQ={class:"overflow-hidden rounded-full bg-gray-100"},RQ={class:"mt-1 hidden grid-cols-4 text-sm font-medium text-gray-600 sm:grid"},LQ={class:"pt-5"},FQ={class:"flex flex-col sm:flex-row gap-4 sm:gap-2 justify-between"},NQ={class:"flex justify-end gap-3"},MQ=["href"];function DQ(e,t,n,r,o,i){var C,w,E,O;const l=q("AuphonicLogo"),a=q("CloudIcon"),c=q("ArrowDownTrayIcon"),d=q("XIcon"),p=q("DatabaseIcon"),h=q("DonePage"),v=q("FileChooser"),y=q("TrashIcon"),b=q("podlove-button"),S=q("WebhookToggle"),T=q("ExternalLinkIcon");return I(),F("form",iZ,[m("div",lZ,[m("div",aZ,[m("div",uZ,[m("div",cZ,[m("div",dZ,[m("div",fZ,[z(l,{className:"mx-auto h-12 w-12 text-gray-400"})]),m("div",pZ,[m("h3",hZ,L((w=(C=e.production)==null?void 0:C.metadata)==null?void 0:w.title),1),m("p",mZ,L(new Date(Date.parse((E=e.production)==null?void 0:E.creation_time)).toLocaleString()),1)])])]),m("div",gZ,[e.isSaving?(I(),F("span",vZ,[z(a,{class:"mr-1 h-4 w-4","aria-hidden":"true"}),Be(" "+L(e.__("Saving","podlove-podcasting-plugin-for-wordpress")),1)])):Te("",!0),e.production.status!==3?(I(),F("button",{key:1,onClick:t[0]||(t[0]=$=>e.showImportPage=!e.showImportPage),type:"button",class:"relative inline-flex items-center rounded-md bg-white px-3 py-2 font-medium text-gray-500 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50"},[z(c,{class:"-ml-0.5 mr-1.5 h-4 w-4 text-gray-400","aria-hidden":"true"}),e.showImportPage?(I(),F("span",yZ,L(e.__("Hide Import","podlove-podcasting-plugin-for-wordpress")),1)):Te("",!0),e.showImportPage?Te("",!0):(I(),F("span",_Z,L(e.__("Show Import","podlove-podcasting-plugin-for-wordpress")),1))])):Te("",!0),m("button",{onClick:t[1]||(t[1]=(...$)=>e.deselectProduction&&e.deselectProduction(...$)),type:"button",class:"relative inline-flex items-center rounded-md bg-white px-3 py-2 font-medium text-gray-500 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50"},[z(d,{class:"-ml-0.5 mr-1.5 h-4 w-4 text-gray-400","aria-hidden":"true"}),m("span",null,L(e.__("Deselect Production","podlove-podcasting-plugin-for-wordpress")),1)])])])]),m("div",bZ,[e.showUploadScreen?(I(),F("div",wZ,L(e.__("Uploading...","podlove-podcasting-plugin-for-wordpress")),1)):Te("",!0),e.showProcessingScreen?(I(),F("div",SZ,[m("div",EZ,[m("div",$Z,[m("div",xZ,[z(p,{class:"h-5 w-5 text-indigo-400","aria-hidden":"true"})]),m("div",TZ,[m("h3",CZ,L(e.production.status_string),1),m("div",OZ,[m("p",null,L(e.__("Auphonic is now processing your production. Please wait for it to finish.","podlove-podcasting-plugin-for-wordpress")),1)])])])])])):Te("",!0),e.production.status==3||e.showImportPage?(I(),F("div",AZ,[z(h)])):Te("",!0),e.isMultitrack&&e.showTrackEditor?(I(),F("div",kZ,[m("div",IZ,[m("div",PZ,[m("div",RZ,[m("div",LZ,L(e.__("Track Identifier","podlove-podcasting-plugin-for-wordpress")),1),m("div",FZ,L(e.__("Upload Method","podlove-podcasting-plugin-for-wordpress")),1),m("div",NZ,L(e.__("Algorithm","podlove-podcasting-plugin-for-wordpress")),1),MZ])]),m("ul",DZ,[(I(!0),F(Me,null,Ot(e.tracks,($,P)=>(I(),F("li",{key:`xtrack-${P}`,class:"px-6 py-4"},[m("div",UZ,[m("div",BZ,[m("label",{for:`track-id-${P}`,class:"block md:hidden text-sm font-medium text-gray-700"},L(e.__("Track Identifier","podlove-podcasting-plugin-for-wordpress")),9,jZ),m("input",{id:`track-id-${P}`,type:"text",value:$.identifier_new,onInput:R=>e.handleUpdateIdentifier(R,P),class:"mt-1 max-w-lg block w-full shadow-sm focus:ring-indigo-500 focus:border-indigo-500 sm:max-w-xs sm:text-sm border-gray-300 rounded-md"},null,40,VZ)]),m("div",HZ,[m("div",zZ,[m("div",WZ,[z(v,{track_index:P,file_key:`${e.production.uuid}_t${P}`},null,8,["track_index","file_key"]),$.input_file_name?(I(),F("div",qZ,L(e.__("Uploaded File:","podlove-podcasting-plugin-for-wordpress"))+" "+L($.input_file_name),1)):Te("",!0),e.uploadProgress($.identifier)!=null?(I(),F("div",KZ,[m("div",GZ,[m("div",XZ,[m("div",{class:"h-2 rounded-full bg-indigo-600",style:so({width:e.uploadProgress($.identifier)+"%"})},null,4)]),m("div",YZ,[m("div",null,L(e.uploadProgress($.identifier))+"%",1)])])])):Te("",!0)])])]),m("div",JZ,[e.algorithmSettingsVisible(P)?(I(),F("div",ZZ,[m("div",QZ,[m("div",eQ,[m("div",tQ,L(e.__("Algorithm","podlove-podcasting-plugin-for-wordpress")),1),m("div",nQ,[m("div",{title:e.__("Remove Track","podlove-podcasting-plugin-for-wordpress"),onClick:R=>e.removeTrack($.identifier),class:"absolute z-10 right-0 top-0 cursor-pointer text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500"},[z(y,{class:"h-6 w-6","aria-hidden":"true"})],8,rQ),m("div",oQ,[m("div",sQ,[m("div",iQ,[m("input",{id:`track_${P}_filtering`,type:"checkbox",class:"focus:ring-indigo-500 h-4 w-4 text-indigo-600 border-gray-300 rounded",checked:$.filtering,onInput:R=>e.handleToggleFiltering(R,P)},null,40,lQ)]),m("div",aQ,[m("label",{for:`track_${P}_filtering`,class:"text-gray-700"},L(e.__("Filtering","podlove-podcasting-plugin-for-wordpress")),9,uQ)])]),m("div",null,[m("div",cQ,[m("div",dQ,[m("input",{id:`track_${P}_noisehum`,type:"checkbox",class:"focus:ring-indigo-500 h-4 w-4 text-indigo-600 border-gray-300 rounded",checked:$.noise_and_hum_reduction,onInput:R=>e.handleToggleNoiseHum(R,P)},null,40,fQ)]),m("div",pQ,[m("label",{for:`track_${P}_noisehum`,class:"text-gray-700"},L(e.__("Noise and Hum Reduction","podlove-podcasting-plugin-for-wordpress")),9,hQ)])])]),m("div",null,[m("div",mQ,[m("div",gQ,[m("label",{for:`track_${P}_fgbg`,class:"text-gray-700"},L(e.__("Fore/Background","podlove-podcasting-plugin-for-wordpress")),9,vQ)]),m("select",{value:$.fore_background,onInput:R=>e.handleSelectForeBackground(R,P),id:`track_${P}_fgbg`,class:"mt-1 block w-[168px] pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm rounded-md"},[m("option",_Q,L(e.__("Auto","podlove-podcasting-plugin-for-wordpress")),1),m("option",bQ,L(e.__("Foreground Track","podlove-podcasting-plugin-for-wordpress")),1),m("option",wQ,L(e.__("Background Track","podlove-podcasting-plugin-for-wordpress")),1),m("option",SQ,L(e.__("Duck this Track","podlove-podcasting-plugin-for-wordpress")),1),m("option",EQ,L(e.__("Unchanged (Foreground)","podlove-podcasting-plugin-for-wordpress")),1)],40,yQ)])])])])])])])):Te("",!0)])])]))),128))]),m("div",$Q,[z(b,{variant:"primary",onClick:e.addTrack},{default:_e(()=>[Be(L(e.__("Add Track","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["onClick"])])])])):e.showTrackEditor?(I(),F("div",xQ,[m("fieldset",TQ,[m("legend",CQ,L(e.__("Audio Source","podlove-podcasting-plugin-for-wordpress")),1),m("div",OQ,[z(v,{file_key:e.production.uuid},null,8,["file_key"]),e.production.input_file?(I(),F("div",AQ,[m("span",null,L(e.__("Uploaded File:","podlove-podcasting-plugin-for-wordpress"))+" "+L(e.production.input_file),1)])):Te("",!0),e.uploadProgress("singletrack")!=null?(I(),F("div",kQ,[m("div",IQ,[m("div",PQ,[m("div",{class:"h-2 rounded-full bg-indigo-600",style:so({width:e.uploadProgress("singletrack")+"%"})},null,4)]),m("div",RQ,[m("div",null,L(e.uploadProgress("singletrack"))+"%",1)])])])):Te("",!0)])])])):Te("",!0)])]),m("div",LQ,[m("div",FQ,[z(S),m("div",NQ,[m("a",{href:(O=e.production)==null?void 0:O.edit_page,target:"_blank",class:"inline-flex items-center rounded border border-gray-300 bg-white px-2.5 py-1.5 text-xs font-medium text-gray-500 shadow-sm hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"},[Be(L(e.__("Edit in Auphonic","podlove-podcasting-plugin-for-wordpress"))+" ",1),z(T,{class:"ml-1 -mr-0.5 h-4 w-4","aria-hidden":"true"})],8,MQ),z(b,{variant:e.isSaving?"secondary-disabled":"secondary",onClick:e.saveProduction},{default:_e(()=>[Be(L(e.__("Save Production","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["variant","onClick"]),z(b,{variant:"primary",onClick:e.startProduction},{default:_e(()=>[Be(L(e.__("Start Production","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["onClick"])])])])])}const UQ=Le(sZ,[["render",DQ]]),BQ=ge({components:{Listbox:gv,ListboxButton:yv,ListboxLabel:vv,ListboxOption:bv,ListboxOptions:_v,CheckIcon:hf,SelectorIcon:mf},setup(){return{state:ut({productions:B.auphonic.productions,production:B.auphonic.production}),dispatch:Ze().dispatch}},methods:{setProduction(e){this.dispatch(mi(e))}},computed:{productions(){return this.state.productions.map(e=>{const t=e.creation_time.split("T")[0],n=e.metadata.title;return{...e,_select:{name:n,date:t}}})},currentProduction(){return this.state.production}}}),jQ={class:"mt-1 relative"},VQ={class:"w-full inline-flex truncate"},HQ={key:0,class:"truncate"},zQ={key:1,class:"truncate"},WQ={class:"absolute inset-y-0 right-0 flex items-center pr-2 pointer-events-none"},qQ={class:"flex justify-between"},KQ={class:gt(["font-normal","truncate"])};function GQ(e,t,n,r,o,i){const l=q("ListboxLabel"),a=q("SelectorIcon"),c=q("ListboxButton"),d=q("ListboxOption"),p=q("ListboxOptions"),h=q("Listbox");return I(),Ye(h,{as:"div","onUpdate:modelValue":e.setProduction,value:e.currentProduction},{default:_e(()=>[z(l,{class:"block text-sm font-medium text-gray-600 sr-only"},{default:_e(()=>[Be(L(e.__("Select Existing Production","podlove-podcasting-plugin-for-wordpress")),1)]),_:1}),m("div",jQ,[z(c,{class:"relative w-full bg-white border border-gray-300 rounded-md shadow-sm pl-3 pr-10 py-2 text-left cursor-default focus:outline-none focus:ring-1 focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"},{default:_e(()=>[m("span",VQ,[e.currentProduction?(I(),F("span",HQ,L(e.currentProduction.metadata.title),1)):(I(),F("span",zQ," "))]),m("span",WQ,[z(a,{class:"h-5 w-5 text-gray-400","aria-hidden":"true"})])]),_:1}),z(Cs,{"leave-active-class":"transition ease-in duration-100","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:_e(()=>[z(p,{class:"absolute z-10 mt-1 w-full bg-white shadow-lg max-h-36 rounded-md py-1 text-base ring-1 ring-black ring-opacity-5 overflow-auto focus:outline-none sm:text-sm"},{default:_e(()=>[(I(!0),F(Me,null,Ot(e.productions,v=>(I(),Ye(d,{as:"template",key:v._select.date,value:v},{default:_e(({active:y})=>[m("li",{class:gt([y?"text-white bg-indigo-600":"text-gray-900","cursor-default select-none relative py-2 pl-3 pr-9"])},[m("div",qQ,[m("span",KQ,[m("span",{class:gt([y?"text-indigo-200":"text-gray-500","ml-2 truncate"])},L(v._select.date),3),Be(" "+L(v._select.name),1)]),m("span",{class:gt([y?"text-indigo-200":"text-gray-500","ml-2 truncate flex-shrink-0"])},L(v.status_string),3)])],2)]),_:2},1032,["value"]))),128))]),_:1})]),_:1})])]),_:1},8,["onUpdate:modelValue","value"])}const XQ=Le(BQ,[["render",GQ]]),YQ=ge({components:{Listbox:gv,ListboxButton:yv,ListboxLabel:vv,ListboxOption:bv,ListboxOptions:_v,CheckIcon:hf,SelectorIcon:mf},setup(){return{state:ut({presets:B.auphonic.presets,currentPreset:B.auphonic.preset}),dispatch:Ze().dispatch}},methods:{setPreset(e){this.dispatch(qg(e.uuid))}},computed:{presets(){return this.state.presets.map(e=>{const t=e.creation_time.split("T")[0],n=e.preset_name,r=e.is_multitrack;return{...e,_select:{name:n,date:t,is_multitrack:r}}}).toSorted((e,t)=>{const n=e._select.name.toUpperCase(),r=t._select.name.toUpperCase();return n<r?-1:n>r?1:0})},currentPreset(){const e=this.state.currentPreset;return this.presets.find(t=>t.uuid===e)}}}),JQ={class:"mt-1 relative"},ZQ={class:"w-full inline-flex truncate"},QQ={key:0,class:"truncate"},eee={key:1,class:"truncate"},tee={class:"absolute inset-y-0 right-0 flex items-center pr-2 pointer-events-none"},nee={class:"flex"},ree={class:gt(["font-normal","truncate"])};function oee(e,t,n,r,o,i){const l=q("ListboxLabel"),a=q("SelectorIcon"),c=q("ListboxButton"),d=q("ListboxOption"),p=q("ListboxOptions"),h=q("Listbox");return I(),Ye(h,{as:"div","onUpdate:modelValue":e.setPreset,value:e.currentPreset},{default:_e(()=>[z(l,{class:"block text-sm font-medium text-gray-600 sr-only"},{default:_e(()=>[Be(L(e.__("Select Preset","podlove-podcasting-plugin-for-wordpress")),1)]),_:1}),m("div",JQ,[z(c,{class:"relative w-full bg-white border border-gray-300 rounded-md shadow-sm pl-3 pr-10 py-2 text-left cursor-default focus:outline-none focus:ring-1 focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"},{default:_e(()=>[m("span",ZQ,[e.currentPreset?(I(),F("span",QQ,L(e.currentPreset._select.name),1)):(I(),F("span",eee," "))]),m("span",tee,[z(a,{class:"h-5 w-5 text-gray-400","aria-hidden":"true"})])]),_:1}),z(Cs,{"leave-active-class":"transition ease-in duration-100","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:_e(()=>[z(p,{class:"absolute z-10 mt-1 w-full bg-white shadow-lg max-h-36 rounded-md py-1 text-base ring-1 ring-black ring-opacity-5 overflow-auto focus:outline-none sm:text-sm"},{default:_e(()=>[(I(!0),F(Me,null,Ot(e.presets,v=>(I(),Ye(d,{as:"template",key:v._select.date,value:v},{default:_e(({active:y})=>[m("li",{class:gt([y?"text-white bg-indigo-600":"text-gray-900","cursor-default select-none relative py-2 pl-3 pr-9"])},[m("div",nee,[m("span",ree,L(v._select.name),1),v._select.is_multitrack?(I(),F("span",{key:0,class:gt([y?"text-indigo-200":"text-gray-500","ml-2 truncate"])},L(e.__("Multitrack","podlove-podcasting-plugin-for-wordpress")),3)):Te("",!0)])],2)]),_:2},1032,["value"]))),128))]),_:1})]),_:1})])]),_:1},8,["onUpdate:modelValue","value"])}const see=Le(YQ,[["render",oee]]),iee=ge({components:{Module:In,PodloveButton:Pn,PlusSmIcon:of,RefreshIcon:nf,SelectProduction:XQ,SelectPreset:see,AuphonicLogo:Pv},data(){return{}},setup(){return{state:ut({presetUUID:B.auphonic.preset,presets:B.auphonic.presets,isInitializing:B.auphonic.isInitializing}),dispatch:Ze().dispatch}},methods:{handleCreateProduction(){switch(this.buttonState){case"single":this.createProduction();break;case"multi":this.createMultitrackProduction();break}},createProduction(){this.dispatch(I8())},createMultitrackProduction(){this.dispatch(P8())}},computed:{preset(){return this.state.presets.find(e=>e.uuid===this.state.presetUUID)},isInitializing(){return this.state.isInitializing},buttonState(){return this.preset?this.preset.is_multitrack?"multi":"single":"idle"}}}),lee={class:"m-6 text-center max-w-5xl"},aee={key:0,class:"w-full flex justify-center"},uee={class:"animate-pulse mt-4 flex space-x-4"},cee={class:"mt-1 text-sm text-gray-500"},dee={class:"sm:divide-x sm:divide-gray-200 mt-6 py-6 gap-8 sm:gap-0 grid grid-cols-1 sm:grid-cols-2"},fee={class:"flow-root sm:px-6"},pee={class:"relative -m-2 p-2 flex items-center justify-around space-x-4 rounded-xl hover:bg-gray-50 focus-within:ring-2 focus-within:ring-indigo-500"},hee={class:"text-sm font-medium text-gray-900"},mee={class:"mt-2 sm:mt-8 flex justify-center align-middle content-center items-center gap-3"},gee={class:"w-full max-w-md"},vee={class:"mt-10 flex flex-col justify-center align-middle content-center items-center gap-3"},yee={class:"flow-root sm:px-6"},_ee={class:"relative -m-2 p-2 flex items-center justify-around space-x-4 rounded-xl hover:bg-gray-50 focus-within:ring-2 focus-within:ring-indigo-500"},bee={class:"text-sm font-medium text-gray-900"},wee={class:"mt-2 sm:mt-8 flex justify-center align-middle content-center items-center gap-3"},See={class:"w-full max-w-md"};function Eee(e,t,n,r,o,i){const l=q("AuphonicLogo"),a=q("RefreshIcon"),c=q("SelectPreset"),d=q("plus-sm-icon"),p=q("podlove-button"),h=q("SelectProduction");return I(),F("div",null,[m("div",lee,[z(l,{className:"mx-auto h-16 w-16 text-gray-400"}),e.isInitializing?(I(),F("div",aee,[m("div",uee,[z(a,{class:"animate-spin h-5 w-5 mr-3"}),Be(" "+L(e.__("Loading...","podlove-podcasting-plugin-for-wordpress")),1)])])):Te("",!0),m("div",{class:gt({"text-left":!0,"opacity-0":e.isInitializing})},[m("p",cee,L(e.__("Manage your audio post production with Auphonic. Get started by selecting an existing production or create a new one from an Auphonic preset.","podlove-podcasting-plugin-for-wordpress")),1),m("div",dee,[m("div",fee,[m("div",pee,[m("div",null,[m("h3",hee,L(e.__("Create New Production from Preset","podlove-podcasting-plugin-for-wordpress")),1)])]),m("div",mee,[m("div",gee,[z(c)])]),m("div",vee,[z(p,{disabled:e.buttonState=="idle",variant:e.buttonState=="idle"?"primary-disabled":"primary",onClick:e.handleCreateProduction},{default:_e(()=>[z(d,{class:"-ml-0.5 mr-2 h-4 w-4","aria-hidden":"true"}),Be(" "+L(e.buttonState=="multi"?e.__("Create Multitrack Production","podlove-podcasting-plugin-for-wordpress"):e.__("Create Production","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["disabled","variant","onClick"])])]),m("div",yee,[m("div",_ee,[m("div",null,[m("h3",bee,L(e.__("Select Existing Production","podlove-podcasting-plugin-for-wordpress")),1)])]),m("div",wee,[m("div",See,[z(h)])])])])],2)])])}const $ee=Le(iee,[["render",Eee]]),xee=ge({components:{Module:In,ManageProductionForm:UQ,StartScreen:$ee,AuphonicLogo:Pv},setup(){return{state:ut({productionId:B.auphonic.productionId,isInitializing:B.auphonic.isInitializing}),dispatch:Ze().dispatch}},computed:{productionId(){return this.state.productionId||""},isInitializing(){return this.state.isInitializing},isProductionSelected(){return!!this.productionId}},created(){this.dispatch(O8())}}),Tee={key:0},Cee={key:1,class:"m-7"};function Oee(e,t,n,r,o,i){const l=q("StartScreen"),a=q("ManageProductionForm"),c=q("module");return I(),Ye(c,{name:"auphonic",title:"Auphonic"},{default:_e(()=>[e.isProductionSelected?Te("",!0):(I(),F("div",Tee,[z(l)])),e.productionId?(I(),F("div",Cee,[z(a)])):Te("",!0)]),_:1})}const Aee=Le(xee,[["render",Oee]]),kee=ge({components:{ArrowUpIcon:TV,ArrowDownIcon:Wx,XIcon:ml,UserCircleIcon:Zx,PencilIcon:Jx},props:{data:{type:Object,default:()=>({id:null,contributor_id:null,role_id:null,group_id:null,position:null,comment:null,identifier:null,avatar:null,name:null,mail:null,department:null,organisation:null,jobtitle:null,gender:null,nickname:null,count:null})},first:{type:Boolean,default:!1},last:{type:Boolean,default:!1}},setup(){return{dispatch:Ze().dispatch,state:ut({roles:B.contributors.roles,groups:B.contributors.groups,baseUrl:B.runtime.baseUrl})}},computed:{editLink(){return`${this.state.baseUrl}/wp-admin/admin.php?page=podlove_contributor_settings&action=edit&contributor=${this.data.contributor_id}`}},methods:{moveContributionUp(){this.dispatch(IM(this.data))},moveContributionDown(){this.dispatch(PM(this.data))},deleteContribution(){this.dispatch(RM(this.data))},updateRole(e){const t=Y.get(e,["target","value"]);this.dispatch(Kp({...this.data,role_id:t}))},updateGroup(e){const t=Y.get(e,["target","value"]);console.log(t),this.dispatch(Kp({...this.data,group_id:t}))},updateComment(e){const t=Y.get(e,["target","value"]);this.dispatch(Kp({...this.data,comment:t}))}}}),Iee={class:"block hover:bg-gray-50"},Pee={class:"flex items-center px-4 py-4 sm:px-6"},Ree={class:"flex min-w-0 flex-1 items-center"},Lee={class:"flex-shrink-0"},Fee=["src","alt"],Nee={class:"min-w-0 flex-1 px-2 md:grid md:gap-4"},Mee={class:"flex-shrink-0"},Dee={class:"truncate text-sm font-medium text-gray-900"},Uee={class:"flex items-center text-sm text-gray-500"},Bee={class:"truncate"},jee={class:"min-w-0 flex-1 px-4 md:grid md:gap-4"},Vee={for:"location",class:"block text-sm font-medium leading-6 text-gray-900"},Hee=["value","selected"],zee={class:"min-w-0 flex-1 px-4 md:grid md:gap-4"},Wee={for:"location",class:"block text-sm font-medium leading-6 text-gray-900"},qee=["value","selected"],Kee={class:"min-w-0 flex-1 px-4 md:grid md:gap-4"},Gee={for:"email",class:"block text-sm font-medium leading-6 text-gray-900"},Xee={class:"mt-2"},Yee=["value","placeholder"],Jee={class:"flex space-x-2 justify-end mt-[30px]"},Zee=["disabled"],Qee=["disabled"],ete=["href"];function tte(e,t,n,r,o,i){const l=q("UserCircleIcon"),a=q("arrow-up-icon"),c=q("arrow-down-icon"),d=q("pencil-icon"),p=q("x-icon");return I(),F("div",Iee,[m("div",Pee,[m("div",Ree,[m("div",Lee,[e.data.avatar_url?(I(),F("img",{key:0,class:"h-12 w-12 rounded-full",src:e.data.avatar_url,alt:e.data.name,onError:t[0]||(t[0]=h=>e.data.avatar_url="")},null,40,Fee)):Te("",!0),e.data.avatar_url?Te("",!0):(I(),Ye(l,{key:1,class:"h-12 w-12 flex-shrink-0 rounded-full text-gray-500"}))]),m("div",Nee,[m("div",Mee,[m("p",Dee,L(e.data.realname||e.data.publicname),1),m("p",Uee,[m("span",Bee,L(e.data.nickname),1)])])]),m("div",jee,[m("div",null,[m("label",Vee,L(e.__("Role","podlove-podcasting-plugin-for-wordpress")),1),m("select",{class:"mt-2 block w-full rounded-md border-0 py-1.5 pl-3 pr-10 text-gray-900 ring-1 ring-inset ring-gray-300 focus:ring-2 focus:ring-indigo-600 sm:text-sm sm:leading-6",onChange:t[1]||(t[1]=h=>e.updateRole(h))},[(I(!0),F(Me,null,Ot(e.state.roles,h=>(I(),F("option",{value:h.id,selected:h.id===e.data.role_id},L(h.title),9,Hee))),256))],32)])]),m("div",zee,[m("div",null,[m("label",Wee,L(e.__("Group","podlove-podcasting-plugin-for-wordpress")),1),m("select",{class:"mt-2 block w-full rounded-md border-0 py-1.5 pl-3 pr-10 text-gray-900 ring-1 ring-inset ring-gray-300 focus:ring-2 focus:ring-indigo-600 sm:text-sm sm:leading-6",onChange:t[2]||(t[2]=h=>e.updateGroup(h))},[(I(!0),F(Me,null,Ot(e.state.groups,h=>(I(),F("option",{value:h.id,selected:h.id===e.data.group_id},L(h.title),9,qee))),256))],32)])]),m("div",Kee,[m("div",null,[m("label",Gee,L(e.__("Comment","podlove-podcasting-plugin-for-wordpress")),1),m("div",Xee,[m("input",{type:"text",value:e.data.comment,onInput:t[3]||(t[3]=h=>e.updateComment(h)),class:"block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6",placeholder:e.__("Comment","podlove-podcasting-plugin-for-wordpress")},null,40,Yee)])])]),m("div",Jee,[m("button",{onClick:t[4]||(t[4]=h=>e.moveContributionUp()),disabled:e.first,class:gt({"text-indigo-600":!e.first,"text-gray-500":e.first})},[z(a,{class:"w-5 h-5"})],10,Zee),m("button",{onClick:t[5]||(t[5]=h=>e.moveContributionDown()),disabled:e.last,class:gt({"text-indigo-600":!e.last,"text-gray-500":e.last})},[z(c,{class:"w-5 h-5"})],10,Qee),m("a",{href:e.editLink,target:"_blank",class:"text-gray-400"},[z(d,{class:"w-5 h-5"})],8,ete),m("button",{class:"text-red-600",onClick:t[6]||(t[6]=h=>e.deleteContribution())},[z(p,{class:"w-5 h-5"})])])])])])}const nte=Le(kee,[["render",tte]]);var sr="top",zr="bottom",Wr="right",ir="left",Rv="auto",tu=[sr,zr,Wr,ir],sl="start",Ia="end",rte="clippingParents",sC="viewport",Vl="popper",ote="reference",Tb=tu.reduce(function(e,t){return e.concat([t+"-"+sl,t+"-"+Ia])},[]),iC=[].concat(tu,[Rv]).reduce(function(e,t){return e.concat([t,t+"-"+sl,t+"-"+Ia])},[]),ste="beforeRead",ite="read",lte="afterRead",ate="beforeMain",ute="main",cte="afterMain",dte="beforeWrite",fte="write",pte="afterWrite",hte=[ste,ite,lte,ate,ute,cte,dte,fte,pte];function Oo(e){return e?(e.nodeName||"").toLowerCase():null}function mo(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function il(e){var t=mo(e).Element;return e instanceof t||e instanceof Element}function jr(e){var t=mo(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Lv(e){if(typeof ShadowRoot>"u")return!1;var t=mo(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function mte(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!jr(i)||!Oo(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(l){var a=o[l];a===!1?i.removeAttribute(l):i.setAttribute(l,a===!0?"":a)}))})}function gte(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},l=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=l.reduce(function(c,d){return c[d]="",c},{});!jr(o)||!Oo(o)||(Object.assign(o.style,a),Object.keys(i).forEach(function(c){o.removeAttribute(c)}))})}}const vte={name:"applyStyles",enabled:!0,phase:"write",fn:mte,effect:gte,requires:["computeStyles"]};function xo(e){return e.split("-")[0]}var ii=Math.max,id=Math.min,ll=Math.round;function al(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;if(jr(e)&&t){var i=e.offsetHeight,l=e.offsetWidth;l>0&&(r=ll(n.width)/l||1),i>0&&(o=ll(n.height)/i||1)}return{width:n.width/r,height:n.height/o,top:n.top/o,right:n.right/r,bottom:n.bottom/o,left:n.left/r,x:n.left/r,y:n.top/o}}function Fv(e){var t=al(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function lC(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Lv(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Xo(e){return mo(e).getComputedStyle(e)}function yte(e){return["table","td","th"].indexOf(Oo(e))>=0}function ks(e){return((il(e)?e.ownerDocument:e.document)||window.document).documentElement}function gf(e){return Oo(e)==="html"?e:e.assignedSlot||e.parentNode||(Lv(e)?e.host:null)||ks(e)}function Cb(e){return!jr(e)||Xo(e).position==="fixed"?null:e.offsetParent}function _te(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&jr(e)){var r=Xo(e);if(r.position==="fixed")return null}var o=gf(e);for(Lv(o)&&(o=o.host);jr(o)&&["html","body"].indexOf(Oo(o))<0;){var i=Xo(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function nu(e){for(var t=mo(e),n=Cb(e);n&&yte(n)&&Xo(n).position==="static";)n=Cb(n);return n&&(Oo(n)==="html"||Oo(n)==="body"&&Xo(n).position==="static")?t:n||_te(e)||t}function Nv(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function aa(e,t,n){return ii(e,id(t,n))}function bte(e,t,n){var r=aa(e,t,n);return r>n?n:r}function aC(){return{top:0,right:0,bottom:0,left:0}}function uC(e){return Object.assign({},aC(),e)}function cC(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var wte=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,uC(typeof t!="number"?t:cC(t,tu))};function Ste(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,l=n.modifiersData.popperOffsets,a=xo(n.placement),c=Nv(a),d=[ir,Wr].indexOf(a)>=0,p=d?"height":"width";if(!(!i||!l)){var h=wte(o.padding,n),v=Fv(i),y=c==="y"?sr:ir,b=c==="y"?zr:Wr,S=n.rects.reference[p]+n.rects.reference[c]-l[c]-n.rects.popper[p],T=l[c]-n.rects.reference[c],C=nu(i),w=C?c==="y"?C.clientHeight||0:C.clientWidth||0:0,E=S/2-T/2,O=h[y],$=w-v[p]-h[b],P=w/2-v[p]/2+E,R=aa(O,P,$),k=c;n.modifiersData[r]=(t={},t[k]=R,t.centerOffset=R-P,t)}}function Ete(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||lC(t.elements.popper,o)&&(t.elements.arrow=o))}const $te={name:"arrow",enabled:!0,phase:"main",fn:Ste,effect:Ete,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ul(e){return e.split("-")[1]}var xte={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Tte(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:ll(t*o)/o||0,y:ll(n*o)/o||0}}function Ob(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,l=e.offsets,a=e.position,c=e.gpuAcceleration,d=e.adaptive,p=e.roundOffsets,h=e.isFixed,v=l.x,y=v===void 0?0:v,b=l.y,S=b===void 0?0:b,T=typeof p=="function"?p({x:y,y:S}):{x:y,y:S};y=T.x,S=T.y;var C=l.hasOwnProperty("x"),w=l.hasOwnProperty("y"),E=ir,O=sr,$=window;if(d){var P=nu(n),R="clientHeight",k="clientWidth";if(P===mo(n)&&(P=ks(n),Xo(P).position!=="static"&&a==="absolute"&&(R="scrollHeight",k="scrollWidth")),P=P,o===sr||(o===ir||o===Wr)&&i===Ia){O=zr;var W=h&&P===$&&$.visualViewport?$.visualViewport.height:P[R];S-=W-r.height,S*=c?1:-1}if(o===ir||(o===sr||o===zr)&&i===Ia){E=Wr;var U=h&&P===$&&$.visualViewport?$.visualViewport.width:P[k];y-=U-r.width,y*=c?1:-1}}var j=Object.assign({position:a},d&&xte),G=p===!0?Tte({x:y,y:S}):{x:y,y:S};if(y=G.x,S=G.y,c){var X;return Object.assign({},j,(X={},X[O]=w?"0":"",X[E]=C?"0":"",X.transform=($.devicePixelRatio||1)<=1?"translate("+y+"px, "+S+"px)":"translate3d("+y+"px, "+S+"px, 0)",X))}return Object.assign({},j,(t={},t[O]=w?S+"px":"",t[E]=C?y+"px":"",t.transform="",t))}function Cte(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,l=i===void 0?!0:i,a=n.roundOffsets,c=a===void 0?!0:a,d={placement:xo(t.placement),variation:ul(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Ob(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ob(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Ote={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Cte,data:{}};var hc={passive:!0};function Ate(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,l=r.resize,a=l===void 0?!0:l,c=mo(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&d.forEach(function(p){p.addEventListener("scroll",n.update,hc)}),a&&c.addEventListener("resize",n.update,hc),function(){i&&d.forEach(function(p){p.removeEventListener("scroll",n.update,hc)}),a&&c.removeEventListener("resize",n.update,hc)}}const kte={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Ate,data:{}};var Ite={left:"right",right:"left",bottom:"top",top:"bottom"};function Cc(e){return e.replace(/left|right|bottom|top/g,function(t){return Ite[t]})}var Pte={start:"end",end:"start"};function Ab(e){return e.replace(/start|end/g,function(t){return Pte[t]})}function Mv(e){var t=mo(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Dv(e){return al(ks(e)).left+Mv(e).scrollLeft}function Rte(e){var t=mo(e),n=ks(e),r=t.visualViewport,o=n.clientWidth,i=n.clientHeight,l=0,a=0;return r&&(o=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(l=r.offsetLeft,a=r.offsetTop)),{width:o,height:i,x:l+Dv(e),y:a}}function Lte(e){var t,n=ks(e),r=Mv(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=ii(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),l=ii(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+Dv(e),c=-r.scrollTop;return Xo(o||n).direction==="rtl"&&(a+=ii(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:l,x:a,y:c}}function Uv(e){var t=Xo(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function dC(e){return["html","body","#document"].indexOf(Oo(e))>=0?e.ownerDocument.body:jr(e)&&Uv(e)?e:dC(gf(e))}function ua(e,t){var n;t===void 0&&(t=[]);var r=dC(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=mo(r),l=o?[i].concat(i.visualViewport||[],Uv(r)?r:[]):r,a=t.concat(l);return o?a:a.concat(ua(gf(l)))}function mm(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Fte(e){var t=al(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function kb(e,t){return t===sC?mm(Rte(e)):il(t)?Fte(t):mm(Lte(ks(e)))}function Nte(e){var t=ua(gf(e)),n=["absolute","fixed"].indexOf(Xo(e).position)>=0,r=n&&jr(e)?nu(e):e;return il(r)?t.filter(function(o){return il(o)&&lC(o,r)&&Oo(o)!=="body"}):[]}function Mte(e,t,n){var r=t==="clippingParents"?Nte(e):[].concat(t),o=[].concat(r,[n]),i=o[0],l=o.reduce(function(a,c){var d=kb(e,c);return a.top=ii(d.top,a.top),a.right=id(d.right,a.right),a.bottom=id(d.bottom,a.bottom),a.left=ii(d.left,a.left),a},kb(e,i));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function fC(e){var t=e.reference,n=e.element,r=e.placement,o=r?xo(r):null,i=r?ul(r):null,l=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,c;switch(o){case sr:c={x:l,y:t.y-n.height};break;case zr:c={x:l,y:t.y+t.height};break;case Wr:c={x:t.x+t.width,y:a};break;case ir:c={x:t.x-n.width,y:a};break;default:c={x:t.x,y:t.y}}var d=o?Nv(o):null;if(d!=null){var p=d==="y"?"height":"width";switch(i){case sl:c[d]=c[d]-(t[p]/2-n[p]/2);break;case Ia:c[d]=c[d]+(t[p]/2-n[p]/2);break}}return c}function Pa(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.boundary,l=i===void 0?rte:i,a=n.rootBoundary,c=a===void 0?sC:a,d=n.elementContext,p=d===void 0?Vl:d,h=n.altBoundary,v=h===void 0?!1:h,y=n.padding,b=y===void 0?0:y,S=uC(typeof b!="number"?b:cC(b,tu)),T=p===Vl?ote:Vl,C=e.rects.popper,w=e.elements[v?T:p],E=Mte(il(w)?w:w.contextElement||ks(e.elements.popper),l,c),O=al(e.elements.reference),$=fC({reference:O,element:C,strategy:"absolute",placement:o}),P=mm(Object.assign({},C,$)),R=p===Vl?P:O,k={top:E.top-R.top+S.top,bottom:R.bottom-E.bottom+S.bottom,left:E.left-R.left+S.left,right:R.right-E.right+S.right},W=e.modifiersData.offset;if(p===Vl&&W){var U=W[o];Object.keys(k).forEach(function(j){var G=[Wr,zr].indexOf(j)>=0?1:-1,X=[sr,zr].indexOf(j)>=0?"y":"x";k[j]+=U[X]*G})}return k}function Dte(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,l=n.padding,a=n.flipVariations,c=n.allowedAutoPlacements,d=c===void 0?iC:c,p=ul(r),h=p?a?Tb:Tb.filter(function(b){return ul(b)===p}):tu,v=h.filter(function(b){return d.indexOf(b)>=0});v.length===0&&(v=h);var y=v.reduce(function(b,S){return b[S]=Pa(e,{placement:S,boundary:o,rootBoundary:i,padding:l})[xo(S)],b},{});return Object.keys(y).sort(function(b,S){return y[b]-y[S]})}function Ute(e){if(xo(e)===Rv)return[];var t=Cc(e);return[Ab(e),t,Ab(t)]}function Bte(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,l=n.altAxis,a=l===void 0?!0:l,c=n.fallbackPlacements,d=n.padding,p=n.boundary,h=n.rootBoundary,v=n.altBoundary,y=n.flipVariations,b=y===void 0?!0:y,S=n.allowedAutoPlacements,T=t.options.placement,C=xo(T),w=C===T,E=c||(w||!b?[Cc(T)]:Ute(T)),O=[T].concat(E).reduce(function(ce,ve){return ce.concat(xo(ve)===Rv?Dte(t,{placement:ve,boundary:p,rootBoundary:h,padding:d,flipVariations:b,allowedAutoPlacements:S}):ve)},[]),$=t.rects.reference,P=t.rects.popper,R=new Map,k=!0,W=O[0],U=0;U<O.length;U++){var j=O[U],G=xo(j),X=ul(j)===sl,ne=[sr,zr].indexOf(G)>=0,xe=ne?"width":"height",Ee=Pa(t,{placement:j,boundary:p,rootBoundary:h,altBoundary:v,padding:d}),ke=ne?X?Wr:ir:X?zr:sr;$[xe]>P[xe]&&(ke=Cc(ke));var Ie=Cc(ke),Qe=[];if(i&&Qe.push(Ee[G]<=0),a&&Qe.push(Ee[ke]<=0,Ee[Ie]<=0),Qe.every(function(ce){return ce})){W=j,k=!1;break}R.set(j,Qe)}if(k)for(var ht=b?3:1,De=function(ve){var Ce=O.find(function(We){var Ve=R.get(We);if(Ve)return Ve.slice(0,ve).every(function(rt){return rt})});if(Ce)return W=Ce,"break"},Xe=ht;Xe>0;Xe--){var Q=De(Xe);if(Q==="break")break}t.placement!==W&&(t.modifiersData[r]._skip=!0,t.placement=W,t.reset=!0)}}const jte={name:"flip",enabled:!0,phase:"main",fn:Bte,requiresIfExists:["offset"],data:{_skip:!1}};function Ib(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Pb(e){return[sr,Wr,zr,ir].some(function(t){return e[t]>=0})}function Vte(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,l=Pa(t,{elementContext:"reference"}),a=Pa(t,{altBoundary:!0}),c=Ib(l,r),d=Ib(a,o,i),p=Pb(c),h=Pb(d);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:p,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":h})}const Hte={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Vte};function zte(e,t,n){var r=xo(e),o=[ir,sr].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,l=i[0],a=i[1];return l=l||0,a=(a||0)*o,[ir,Wr].indexOf(r)>=0?{x:a,y:l}:{x:l,y:a}}function Wte(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,l=iC.reduce(function(p,h){return p[h]=zte(h,t.rects,i),p},{}),a=l[t.placement],c=a.x,d=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=d),t.modifiersData[r]=l}const qte={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Wte};function Kte(e){var t=e.state,n=e.name;t.modifiersData[n]=fC({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Gte={name:"popperOffsets",enabled:!0,phase:"read",fn:Kte,data:{}};function Xte(e){return e==="x"?"y":"x"}function Yte(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,l=n.altAxis,a=l===void 0?!1:l,c=n.boundary,d=n.rootBoundary,p=n.altBoundary,h=n.padding,v=n.tether,y=v===void 0?!0:v,b=n.tetherOffset,S=b===void 0?0:b,T=Pa(t,{boundary:c,rootBoundary:d,padding:h,altBoundary:p}),C=xo(t.placement),w=ul(t.placement),E=!w,O=Nv(C),$=Xte(O),P=t.modifiersData.popperOffsets,R=t.rects.reference,k=t.rects.popper,W=typeof S=="function"?S(Object.assign({},t.rects,{placement:t.placement})):S,U=typeof W=="number"?{mainAxis:W,altAxis:W}:Object.assign({mainAxis:0,altAxis:0},W),j=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,G={x:0,y:0};if(P){if(i){var X,ne=O==="y"?sr:ir,xe=O==="y"?zr:Wr,Ee=O==="y"?"height":"width",ke=P[O],Ie=ke+T[ne],Qe=ke-T[xe],ht=y?-k[Ee]/2:0,De=w===sl?R[Ee]:k[Ee],Xe=w===sl?-k[Ee]:-R[Ee],Q=t.elements.arrow,ce=y&&Q?Fv(Q):{width:0,height:0},ve=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:aC(),Ce=ve[ne],We=ve[xe],Ve=aa(0,R[Ee],ce[Ee]),rt=E?R[Ee]/2-ht-Ve-Ce-U.mainAxis:De-Ve-Ce-U.mainAxis,wn=E?-R[Ee]/2+ht+Ve+We+U.mainAxis:Xe+Ve+We+U.mainAxis,an=t.elements.arrow&&nu(t.elements.arrow),M=an?O==="y"?an.clientTop||0:an.clientLeft||0:0,V=(X=j==null?void 0:j[O])!=null?X:0,Z=ke+rt-V-M,ue=ke+wn-V,le=aa(y?id(Ie,Z):Ie,ke,y?ii(Qe,ue):Qe);P[O]=le,G[O]=le-ke}if(a){var ye,Oe=O==="x"?sr:ir,we=O==="x"?zr:Wr,Se=P[$],ae=$==="y"?"height":"width",Fe=Se+T[Oe],Pe=Se-T[we],je=[sr,ir].indexOf(C)!==-1,ze=(ye=j==null?void 0:j[$])!=null?ye:0,st=je?Fe:Se-R[ae]-k[ae]-ze+U.altAxis,yt=je?Se+R[ae]+k[ae]-ze-U.altAxis:Pe,ft=y&&je?bte(st,Se,yt):aa(y?st:Fe,Se,y?yt:Pe);P[$]=ft,G[$]=ft-Se}t.modifiersData[r]=G}}const Jte={name:"preventOverflow",enabled:!0,phase:"main",fn:Yte,requiresIfExists:["offset"]};function Zte(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Qte(e){return e===mo(e)||!jr(e)?Mv(e):Zte(e)}function ene(e){var t=e.getBoundingClientRect(),n=ll(t.width)/e.offsetWidth||1,r=ll(t.height)/e.offsetHeight||1;return n!==1||r!==1}function tne(e,t,n){n===void 0&&(n=!1);var r=jr(t),o=jr(t)&&ene(t),i=ks(t),l=al(e,o),a={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((Oo(t)!=="body"||Uv(i))&&(a=Qte(t)),jr(t)?(c=al(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=Dv(i))),{x:l.left+a.scrollLeft-c.x,y:l.top+a.scrollTop-c.y,width:l.width,height:l.height}}function nne(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var l=[].concat(i.requires||[],i.requiresIfExists||[]);l.forEach(function(a){if(!n.has(a)){var c=t.get(a);c&&o(c)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function rne(e){var t=nne(e);return hte.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function one(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function sne(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Rb={placement:"bottom",modifiers:[],strategy:"absolute"};function Lb(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function ine(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?Rb:o;return function(a,c,d){d===void 0&&(d=i);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},Rb,i),modifiersData:{},elements:{reference:a,popper:c},attributes:{},styles:{}},h=[],v=!1,y={state:p,setOptions:function(C){var w=typeof C=="function"?C(p.options):C;S(),p.options=Object.assign({},i,p.options,w),p.scrollParents={reference:il(a)?ua(a):a.contextElement?ua(a.contextElement):[],popper:ua(c)};var E=rne(sne([].concat(r,p.options.modifiers)));return p.orderedModifiers=E.filter(function(O){return O.enabled}),b(),y.update()},forceUpdate:function(){if(!v){var C=p.elements,w=C.reference,E=C.popper;if(Lb(w,E)){p.rects={reference:tne(w,nu(E),p.options.strategy==="fixed"),popper:Fv(E)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(U){return p.modifiersData[U.name]=Object.assign({},U.data)});for(var O=0;O<p.orderedModifiers.length;O++){if(p.reset===!0){p.reset=!1,O=-1;continue}var $=p.orderedModifiers[O],P=$.fn,R=$.options,k=R===void 0?{}:R,W=$.name;typeof P=="function"&&(p=P({state:p,options:k,name:W,instance:y})||p)}}}},update:one(function(){return new Promise(function(T){y.forceUpdate(),T(p)})}),destroy:function(){S(),v=!0}};if(!Lb(a,c))return y;y.setOptions(d).then(function(T){!v&&d.onFirstUpdate&&d.onFirstUpdate(T)});function b(){p.orderedModifiers.forEach(function(T){var C=T.name,w=T.options,E=w===void 0?{}:w,O=T.effect;if(typeof O=="function"){var $=O({state:p,name:C,instance:y,options:E}),P=function(){};h.push($||P)}})}function S(){h.forEach(function(T){return T()}),h=[]}return y}}var lne=[kte,Gte,Ote,vte,qte,jte,Jte,$te,Hte],ane=ine({defaultModifiers:lne});function une(e){let t=$e(null),n=$e(null);return wt(()=>{Vt(r=>{if(!n.value||!t.value)return;let o=n.value.el||n.value,i=t.value.el||t.value;if(!(i instanceof HTMLElement)||!(o instanceof HTMLElement))return;let{destroy:l}=ane(i,o,e);r(l)})}),[t,n]}const cne=ge({data(){return{query:"",data:""}},emits:["addContributor","createContributor","close"],setup(){let[e,t]=une({placement:"bottom-end",strategy:"fixed",modifiers:[{name:"offset",options:{offset:[0,10]}},{name:"sameWidth",enabled:!0,fn:({state:n})=>{n.styles.popper.width=`${n.rects.reference.width}px`},phase:"beforeWrite",requires:["computeStyles"]}]});return{dispatch:Ze().dispatch,state:ut({contributors:B.contributors.contributors,episodeContributions:B.episode.contributions}),trigger:e,container:t}},components:{CheckIcon:AV,XIcon:ml,ChevronDownIcon:Gx,Combobox:pT,ComboboxButton:hT,ComboboxInput:mT,ComboboxLabel:SH,ComboboxOption:vT,ComboboxOptions:gT,UserCircleIcon:Zx,Image},computed:{filteredContributors(){return[...this.query.length>0?[{id:null,avatar_url:null,realname:`${this.__("Create: ","podlove-podcasting-plugin-for-wordpress")}${this.query}`}]:[],...this.state.contributors.filter(e=>!this.state.episodeContributions.some(t=>t.contributor_id&&t.contributor_id.toString()===e.id.toString())).filter(e=>!this.query||((e==null?void 0:e.realname)||"").toUpperCase().includes(this.query.toUpperCase()))]}},watch:{data(e){e.id?this.$emit("addContributor",e):this.$emit("createContributor",this.query)}},methods:{filterContributors(e){this.query=Y.get(e,["target","value"],"")},close(){this.$emit("close")}}}),dne={class:"block hover:bg-gray-50"},fne={class:"flex items-center px-4 py-4 sm:px-6"},pne={class:"flex min-w-0 flex-1 items-center"},hne={class:"min-w-0 flex-1 px-4 md:grid md:grid-cols-2 md:gap-4"},mne={class:"relative mt-2 max-w-sm"},gne={ref:"container"},vne={class:"flex items-center"},yne=["src","onError"],_ne={class:"flex space-x-2 justify-end"};function bne(e,t,n,r,o,i){const l=q("ComboboxLabel"),a=q("ComboboxInput"),c=q("ChevronDownIcon"),d=q("ComboboxButton"),p=q("UserCircleIcon"),h=q("CheckIcon"),v=q("ComboboxOption"),y=q("ComboboxOptions"),b=q("Combobox"),S=q("x-icon");return I(),F("div",dne,[m("div",fne,[m("div",pne,[m("div",hne,[z(b,{as:"div",modelValue:e.data,"onUpdate:modelValue":t[1]||(t[1]=T=>e.data=T)},{default:_e(()=>[z(l,{class:"block text-sm font-medium leading-6 text-gray-900"},{default:_e(()=>[Be(L(e.__("Select Contributor","podlove-podcasting-plugin-for-wordpress")),1)]),_:1}),m("div",mne,[z(a,{ref:"trigger",class:"w-full rounded-md border-0 bg-white py-1.5 pl-3 pr-12 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6",onChange:t[0]||(t[0]=T=>e.filterContributors(T)),displayValue:()=>e.query},null,8,["displayValue"]),z(d,{class:"absolute inset-y-0 right-0 flex items-center rounded-r-md px-2 focus:outline-none"},{default:_e(()=>[z(c,{class:"h-5 w-5 text-gray-400","aria-hidden":"true"})]),_:1})]),m("div",gne,[e.filteredContributors.length>0?(I(),Ye(y,{key:0,class:"absolute max-w-sm z-50 mt-1 max-h-56 w-full overflow-auto rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm"},{default:_e(()=>[(I(!0),F(Me,null,Ot(e.filteredContributors,T=>(I(),Ye(v,{key:T.id||"create",value:T,as:"template"},{default:_e(({active:C,selected:w})=>[m("li",{class:gt(["relative cursor-default select-none py-2 pl-3 pr-9",C?"bg-indigo-600 text-white":"text-gray-900"])},[m("div",vne,[T.avatar_url?(I(),F("img",{key:0,src:T.avatar_url,alt:"",class:"h-6 w-6 flex-shrink-0 rounded-full",onError:E=>T.avatar_url=""},null,40,yne)):Te("",!0),T.avatar_url?Te("",!0):(I(),Ye(p,{key:1,class:"h-6 w-6 flex-shrink-0 rounded-full text-gray-500"})),m("span",{class:gt(["ml-3 truncate",w&&"font-semibold"])},L(T.realname),3)]),w?(I(),F("span",{key:0,class:gt(["absolute inset-y-0 right-0 flex items-center pr-4",C?"text-white":"text-indigo-600"])},[z(h,{class:"h-5 w-5","aria-hidden":"true"})],2)):Te("",!0)],2)]),_:2},1032,["value"]))),128))]),_:1})):Te("",!0)],512)]),_:1},8,["modelValue"])])]),m("div",_ne,[m("button",{class:"text-red-600",onClick:t[2]||(t[2]=T=>e.close())},[z(S,{class:"w-5 h-5"})])])])])}const wne=Le(cne,[["render",bne]]),Sne=ge({components:{Module:In,PodloveButton:Pn,PlusSmIcon:of,Contribution:nte,AddContribution:wne},data(){return{addContributorInput:!1}},setup(){return{dispatch:Ze().dispatch,state:ut({contributions:B.episode.contributions,roles:B.contributors.roles,groups:B.contributors.groups})}},created(){this.dispatch(FE())},methods:{showAddContributor(){this.addContributorInput=!0},addContributor(e){this.addContributorInput=!1,this.dispatch(SE(e))},createContributor(e){this.addContributorInput=!1,this.dispatch(LM(e))},closeAddContributor(){this.addContributorInput=!1}}}),Ene={role:"list",class:"divide-y divide-gray-200"},$ne={key:0,class:"mb-0"},xne={class:"py-5 px-6 border-t border-gray-200"};function Tne(e,t,n,r,o,i){const l=q("Contribution"),a=q("AddContribution"),c=q("plus-sm-icon"),d=q("podlove-button"),p=q("module");return I(),Ye(p,{name:"chapters",title:e.__("Contributors","podlove-podcasting-plugin-for-wordpress"),class:"overflow-hidden"},{actions:_e(()=>[]),default:_e(()=>[m("ul",Ene,[(I(!0),F(Me,null,Ot(e.state.contributions,(h,v)=>(I(),F("li",{class:"mb-0",key:h.position},[h!=null&&h.contributor_id?(I(),Ye(l,{key:0,data:h,first:v===0,last:v===e.state.contributions.length-1},null,8,["data","first","last"])):Te("",!0)]))),128)),e.addContributorInput?(I(),F("li",$ne,[z(a,{onAddContributor:t[0]||(t[0]=h=>e.addContributor(h)),onCreateContributor:t[1]||(t[1]=h=>e.createContributor(h)),onClose:t[2]||(t[2]=h=>e.closeAddContributor())})])):Te("",!0)]),m("div",xne,[z(d,{variant:"primary",onClick:t[3]||(t[3]=h=>e.showAddContributor())},{default:_e(()=>[z(c,{class:"-ml-0.5 mr-2 h-4 w-4","aria-hidden":"true"}),Be(" "+L(e.__("Add Contributor","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})])]),_:1},8,["title"])}const Cne=Le(Sne,[["render",Tne]]),One=ge({setup(){return{state:ut({slug:B.episode.slug,slugFrozen:B.episode.slugFrozen,id:B.episode.id,baseUri:B.settings.mediaFileBaseUri}),dispatch:Ze().dispatch}},methods:{updateSlug(e){this.dispatch(bt({prop:"slug",value:e.target.value})),this.dispatch(W$())},unfreezeSlug(){this.dispatch(cD())}},computed:{assetPrefix(){var n;let e=(n=this.state.baseUri)==null?void 0:n.replace(/https?:\/\//i,"").trim();if(!e)return"";const t=e.trim().replace(/\/+$/g,"").lastIndexOf("/");return e.length>30&&t>-1&&(e=e.slice(t)),e}}}),Ane={for:"filename_slug",class:"block text-sm font-medium leading-6 text-gray-900 sm:pt-1.5"},kne={class:"mt-2 sm:col-span-2 sm:mt-0"},Ine={key:0,class:"flex rounded-md shadow-sm ring-1 ring-inset ring-gray-300 bg-gray-50"},Pne={class:"flex select-none items-center pl-3 text-gray-500 sm:text-sm"},Rne={class:"block flex-1 py-1.5 pl-1 text-gray-900 sm:text-sm sm:leading-6"},Lne=m("span",{class:"flex select-none items-center text-gray-500 sm:text-sm pr-2"},".ext",-1),Fne=["title","aria-label"],Nne={key:1,class:"flex rounded-md shadow-sm ring-1 ring-inset ring-gray-300 focus-within:ring-2 focus-within:ring-inset focus-within:ring-indigo-600"},Mne={class:"flex select-none items-center pl-3 text-gray-500 sm:text-sm"},Dne=["value","aria-label"],Une=m("span",{class:"flex slect-none items-center text-gray-500 sm:text-sm pr-2"},".ext",-1),Bne={id:"filename_slug_help",class:"sr-only"};function jne(e,t,n,r,o,i){return I(),F(Me,null,[m("label",Ane,L(e.__("Filename / Slug","podlove-podcasting-plugin-for-wordpress")),1),m("div",kne,[e.state.slugFrozen?(I(),F("div",Ine,[m("span",Pne,L(e.assetPrefix),1),m("span",Rne,L(e.state.slug),1),Lne,m("button",{onClick:t[0]||(t[0]=(...l)=>e.unfreezeSlug&&e.unfreezeSlug(...l)),type:"button",class:"ml-2 px-3 py-1.5 text-sm font-semibold text-indigo-600 hover:text-indigo-500 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 border-l border-gray-300",title:e.__("Edit slug","podlove-podcasting-plugin-for-wordpress"),"aria-label":e.__("Edit filename slug","podlove-podcasting-plugin-for-wordpress"),"aria-describedby":"filename_slug_help"},L(e.__("Edit","podlove-podcasting-plugin-for-wordpress")),9,Fne)])):(I(),F("div",Nne,[m("span",Mne,L(e.assetPrefix),1),m("input",{type:"text",name:"filename_slug",id:"filename_slug",autocomplete:"filename_slug",class:"block flex-1 border-0 bg-transparent py-1.5 pl-1 text-gray-900 placeholder:text-gray-400 focus:ring-0 sm:text-sm sm:leading-6",placeholder:"",value:e.state.slug,onInput:t[1]||(t[1]=l=>e.updateSlug(l)),"aria-label":e.__("Filename slug","podlove-podcasting-plugin-for-wordpress"),"aria-describedby":"filename_slug_help"},null,40,Dne),Une])),m("div",Bne,L(e.__("Click Edit to modify the filename slug. The slug determines the final filename of your media files.","podlove-podcasting-plugin-for-wordpress")),1)])],64)}const Vne=Le(One,[["render",jne]]),Hne=ge({components:{PodloveButton:Pn,UploadIcon:rf},setup(){return{state:ut({}),dispatch:Ze().dispatch}},methods:{uploadIntent(){this.dispatch(oD())}},computed:{}}),zne={for:"mediafile_upload",class:"block text-sm font-medium leading-6 text-gray-900 sm:pt-1.5"},Wne={class:"mt-2 sm:col-span-2 sm:mt-0"};function qne(e,t,n,r,o,i){const l=q("upload-icon"),a=q("podlove-button");return I(),F(Me,null,[m("label",zne,L(e.__("Upload","podlove-podcasting-plugin-for-wordpress")),1),m("div",Wne,[m("div",null,[z(a,{variant:"primary",onClick:e.uploadIntent,class:"ml-1"},{default:_e(()=>[z(l,{class:"-ml-0.5 mr-2 h-4 w-4","aria-hidden":"true"}),Be(" "+L(e.__("Upload Media File","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["onClick"])])])],64)}const Kne=Le(Hne,[["render",qne]]),Gne=ge({components:{PodloveButton:Pn,UploadIcon:rf,DocumentTextIcon:iv,XMarkIcon:ml,PlusIcon:of},data(){return{}},setup(){return{state:ut({progress:e=>t=>B.progress.progress(e,t),status:e=>t=>B.progress.status(e,t),message:e=>t=>B.progress.message(e,t),episodeSlug:e=>B.episode.slug(e),selectedFiles:e=>B.mediafiles.selectedFiles(e)}),dispatch:Ze().dispatch}},methods:{plusUploadIntent(){this.state.selectedFiles&&this.state.selectedFiles.length>0&&this.state.selectedFiles.forEach(e=>{this.dispatch(sD(e.file))})},handleFileSelection(e){const t=e.target.files;if(!t||t.length===0)return;const n=Array.from(t),r=this.state.episodeSlug,l=[...(this.state.selectedFiles||[]).map(a=>a.file),...n];this.dispatch(aD(l,r))},resetFiles(){this.dispatch({type:Wa,payload:[]})},removeFile(e){this.dispatch(uD(e))},triggerFileInput(){const e=this.$refs.fileInput;e&&e.click()},selectAnotherFile(){this.triggerFileInput()},getUploadProgress(e){const t=`plus-upload-${e}`;return this.state.progress(t)||null},getUploadStatus(e){const t=`plus-upload-${e}`;return this.state.status(t)||null},getUploadMessage(e){const t=`plus-upload-${e}`;return this.state.message(t)||null},getFilenameGenerationStatus(e){const t=`filename-generation-${e}`;return this.state.status(t)||null}},computed:{selectedFiles(){return this.state.selectedFiles||[]},hasFilesReadyToUpload(){return this.selectedFiles.some(e=>{const t=this.getUploadStatus(e.file.name);return t==="init"||t===null})},allFilesUploaded(){return this.selectedFiles.length>0&&this.selectedFiles.every(e=>this.getUploadStatus(e.file.name)==="finished")},hasFilesGeneratingFilenames(){return this.selectedFiles.some(e=>this.getFilenameGenerationStatus(e.originalName)==="in_progress")}}}),Xne={for:"mediafile_upload",class:"block text-sm font-medium leading-6 text-gray-900 sm:pt-1.5"},Yne={class:"mt-2 sm:col-span-2 sm:mt-0"},Jne={for:"plus-file-upload",class:"relative max-w-[400px] flex flex-col gap-2 cursor-pointer bg-white rounded-md font-medium text-indigo-600 hover:text-indigo-500 focus-within:outline-none"},Zne={key:0},Qne={class:"space-y-3"},ere={class:"flex-shrink-0"},tre={class:"w-10 h-10 bg-white rounded-lg flex items-center justify-center"},nre={key:0,class:"animate-spin rounded-full h-6 w-6 border-b-2 border-indigo-500"},rre={class:"flex-1 min-w-0"},ore={class:"text-sm font-medium text-gray-900 truncate"},sre={key:0,class:"text-xs text-gray-500"},ire={class:"text-xs text-gray-500"},lre={key:1,class:"mt-2 flex items-center text-indigo-600"},are=m("div",{class:"animate-spin rounded-full h-3 w-3 border-b border-indigo-500 mr-2"},null,-1),ure={class:"text-xs"},cre={class:"mt-2 w-full bg-white rounded-full h-1.5"},dre={class:"flex justify-between items-center mt-1"},fre={class:"text-xs text-gray-500"},pre={key:0},hre={key:1},mre={key:2},gre={key:3},vre={key:0,class:"text-xs font-medium text-indigo-600"},yre={key:2,class:"mt-2 flex items-center text-yellow-600"},_re={class:"text-xs"},bre=["onClick"];function wre(e,t,n,r,o,i){const l=q("upload-icon"),a=q("podlove-button"),c=q("document-text-icon"),d=q("x-mark-icon"),p=q("plus-icon");return I(),F(Me,null,[m("label",Xne,L(e.__("PLUS Upload","podlove-podcasting-plugin-for-wordpress")),1),m("div",Yne,[m("div",null,[m("label",Jne,[m("div",null,[!e.state.selectedFiles||e.state.selectedFiles.length===0?(I(),Ye(a,{key:0,variant:"primary",onClick:va(e.triggerFileInput,["prevent"])},{default:_e(()=>[z(l,{class:"-ml-0.5 mr-2 h-4 w-4","aria-hidden":"true"}),Be(" "+L(e.__("Select Files for Upload","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["onClick"])):Te("",!0)]),e.state.selectedFiles&&e.state.selectedFiles.length>0?(I(),F("div",Zne,[m("div",Qne,[(I(!0),F(Me,null,Ot(e.state.selectedFiles,(h,v)=>(I(),F("div",{key:h.newName,class:"flex items-start space-x-3 p-3 bg-gray-100 rounded-lg"},[m("div",ere,[m("div",tre,[e.getFilenameGenerationStatus(h.originalName)==="in_progress"?(I(),F("div",nre)):(I(),Ye(c,{key:1,class:"w-6 h-6 text-indigo-500"}))])]),m("div",rre,[m("p",ore,L(h.file.name),1),h.originalName!==h.newName?(I(),F("p",sre,L(e.__("Original name:","podlove-podcasting-plugin-for-wordpress"))+" "+L(h.originalName),1)):Te("",!0),m("p",ire,L((h.file.size/1024/1024).toFixed(2))+" MB ",1),e.getFilenameGenerationStatus(h.originalName)==="in_progress"?(I(),F("div",lre,[are,m("span",ure,L(e.__("Generating filename...","podlove-podcasting-plugin-for-wordpress")),1)])):Te("",!0),m("div",cre,[m("div",{class:"bg-indigo-600 h-1.5 rounded-full progress-transition",style:so({width:(e.getUploadProgress(h.file.name)||0)+"%"})},null,4)]),m("div",dre,[m("p",fre,[e.getUploadStatus(h.file.name)=="init"?(I(),F("span",pre,"Ready to upload")):e.getUploadStatus(h.file.name)=="in_progress"?(I(),F("span",hre,"Uploading...")):e.getUploadStatus(h.file.name)=="finished"?(I(),F("span",mre,"Done!")):e.getUploadStatus(h.file.name)=="error"?(I(),F("span",gre,"Error: "+L(e.getUploadMessage(h.file.name)),1)):Te("",!0)]),e.getUploadStatus(h.file.name)=="in_progress"?(I(),F("p",vre,L(e.getUploadProgress(h.file.name))+"% ",1)):Te("",!0)]),h!=null&&h.fileExists&&e.getUploadStatus(h.file.name)!="finished"?(I(),F("div",yre,[m("span",_re,L(e.__("A file with this name already exists and will be overwritten.","podlove-podcasting-plugin-for-wordpress")),1)])):Te("",!0)]),e.getUploadStatus(h.file.name)!="in_progress"?(I(),F("button",{key:0,class:"flex-shrink-0 text-gray-400 hover:text-gray-600 focus:outline-none",onClick:y=>e.removeFile(h.newName)},[z(d,{class:"w-4 h-4"})],8,bre)):Te("",!0)]))),128))])])):Te("",!0),m("input",{id:"plus-file-upload",name:"plus-file-upload",type:"file",multiple:"",class:"sr-only",ref:"fileInput",onInput:t[0]||(t[0]=(...h)=>e.handleFileSelection&&e.handleFileSelection(...h))},null,544)]),e.state.selectedFiles&&e.state.selectedFiles.length>0&&e.hasFilesReadyToUpload?(I(),Ye(a,{key:0,variant:"primary",onClick:e.plusUploadIntent,class:"ml-1 mt-3",disabled:e.hasFilesGeneratingFilenames},{default:_e(()=>[z(l,{class:"-ml-0.5 mr-2 h-4 w-4","aria-hidden":"true"}),Be(" "+L(e.hasFilesGeneratingFilenames?e.__("Generating filenames...","podlove-podcasting-plugin-for-wordpress"):e.__("Upload Media Files","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["onClick","disabled"])):Te("",!0),e.state.selectedFiles&&e.state.selectedFiles.length>0?(I(),Ye(a,{key:1,variant:"secondary",onClick:e.selectAnotherFile,class:"ml-1 mt-3"},{default:_e(()=>[z(p,{class:"-ml-0.5 mr-2 h-4 w-4","aria-hidden":"true"}),Be(" "+L(e.__("Add more Files","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["onClick"])):Te("",!0)])])],64)}const Sre=Le(Gne,[["render",wre]]),Ere={},$re={class:"text-center"},xre=m("svg",{class:"mx-auto h-12 w-12 text-gray-400",fill:"none",viewBox:"0 0 24 24",strokeWidth:"{1.5}",stroke:"currentColor"},[m("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.42 15.17L17.25 21A2.652 2.652 0 0021 17.25l-5.877-5.877M11.42 15.17l2.496-3.03c.317-.384.74-.626 1.208-.766M11.42 15.17l-4.655 5.653a2.548 2.548 0 11-3.586-3.586l6.837-5.63m5.108-.233c.55-.164 1.163-.188 1.743-.14a4.5 4.5 0 004.486-6.336l-3.276 3.277a3.004 3.004 0 01-2.25-2.25l3.276-3.276a4.5 4.5 0 00-6.336 4.486c.091 1.076-.071 2.264-.904 2.95l-.102.085m-1.745 1.437L5.909 7.5H4.5L2.25 3.75l1.5-1.5L7.5 4.5v1.409l4.26 4.26m-1.745 1.437l1.745-1.437m6.615 8.206L15.75 15.75M4.867 19.125h.008v.008h-.008v-.008z"})],-1),Tre={class:"mt-2 text-sm font-semibold text-gray-900"},Cre={class:"mt-1 text-sm text-gray-500"};function Ore(e,t){return I(),F("div",$re,[xre,m("h3",Tre,L(e.__("No Assets","podlove-podcasting-plugin-for-wordpress")),1),m("p",Cre,L(e.__("Please go to Podlove → Episode Assets and define at least one audio asset.","podlove-podcasting-plugin-for-wordpress")),1)])}const Are=Le(Ere,[["render",Ore]]),kre=ge({components:{CheckCircleIcon:rC,XCircleIcon:Iv,CloudIcon:Yx,AssetsEmptyState:Are},setup(){return{state:ut({files:B.mediafiles.files,duration:B.episode.duration}),dispatch:Ze().dispatch}},methods:{handleToggle(e){const t=e.target,n=t.checked,r=parseInt(t.value);n?this.dispatch(eD(r)):this.dispatch(tD(r))},handleVerify(e){this.dispatch(nD(e))},fileSize(e){const t=e.size;if(!t||t<1)return"???";var n=t/1024;if(n<500)return n.toFixed(2)+" kB";var r=n/1024;return r.toFixed(2)+" MB"}},computed:{files(){return this.state.files},hasFiles(){return this.files.length>0},duration(){const e="--:--:--.---";if(!this.state.duration)return e;const t=Dt.fromString(this.state.duration);return t.totalMs===0?e:t.pretty}}}),Ire={for:"assets",class:"block text-sm font-medium leading-6 text-gray-900 sm:pt-1.5"},Pre={class:"mt-2 sm:col-span-2 sm:mt-0"},Rre={key:0},Lre={class:"min-w-full table-fixed divide-y divide-gray-300"},Fre={scope:"col",class:"py-3.5 pl-3 text-left text-sm font-semibold text-gray-900"},Nre={scope:"col",class:"py-3.5 pr-3 text-left text-sm font-semibold text-gray-900"},Mre={scope:"col",class:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900"},Dre=m("th",{scope:"col",class:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900"},null,-1),Ure={class:"divide-y divide-gray-200 bg-white"},Bre={class:"relative px-7 sm:w-12 sm:px-6"},jre={key:0,class:"inline-flex items-center animate-pulse text-green-600 absolute left-[-14px] top-1/2 -mt-2.5"},Vre=["value","checked"],Hre={class:"text-sm"},zre={class:"whitespace-nowrap px-3 py-4 text-sm text-gray-500"},Wre={class:"flex flex-col"},qre=["href"],Kre={class:"flex"},Gre={key:3},Xre={class:"whitespace-nowrap px-3 py-4 text-sm text-gray-500"},Yre=["onClick"],Jre={class:"mt-3 text-sm leading-6 text-gray-600"};function Zre(e,t,n,r,o,i){const l=q("CloudIcon"),a=q("CheckCircleIcon"),c=q("XCircleIcon"),d=q("AssetsEmptyState");return I(),F(Me,null,[m("label",Ire,L(e.__("Assets","podlove-podcasting-plugin-for-wordpress")),1),m("div",Pre,[e.hasFiles?(I(),F("div",Rre,[m("table",Lre,[m("thead",null,[m("tr",null,[m("th",Fre,L(e.__("Enable","podlove-podcasting-plugin-for-wordpress")),1),m("th",Nre,L(e.__("Asset","podlove-podcasting-plugin-for-wordpress")),1),m("th",Mre,L(e.__("File","podlove-podcasting-plugin-for-wordpress")),1),Dre])]),m("tbody",Ure,[(I(!0),F(Me,null,Ot(e.files,p=>(I(),F("tr",{key:p.asset_id,class:gt({"opacity-50":!p.enable})},[m("td",Bre,[p.is_verifying?(I(),F("div",jre,[z(l,{class:"h-5 w-5","aria-hidden":"true"})])):Te("",!0),m("input",{type:"checkbox",class:"absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-600",value:p.asset_id,checked:p.enable,onClick:t[0]||(t[0]=(...h)=>e.handleToggle&&e.handleToggle(...h))},null,8,Vre)]),m("td",Hre,L(p.asset),1),m("td",zre,[m("div",Wre,[m("a",{href:p.url,target:"_blank",class:"text-gray-700 underline"},L(p.url),9,qre),m("span",Kre,[p.size>0?(I(),Ye(a,{key:0,class:"mr-1.5 h-5 w-5 flex-shrink-0 text-green-400","aria-hidden":"true"})):(I(),Ye(c,{key:1,class:gt(["mr-1.5 h-5 w-5 flex-shrink-0",{"text-gray-400":!p.enable,"text-red-400":p.enable}]),"aria-hidden":"true"},null,8,["class"])),p.size?(I(),F("span",Gre,L(e.fileSize(p)),1)):(I(),F("span",{key:2,class:gt({"text-gray-400":!p.enable,"text-red-400":p.enable})},L(e.__("File not found","podlove-podcasting-plugin-for-wordpress")),3))])])]),m("td",Xre,[m("button",{type:"button",class:"inline-flex items-center rounded-md bg-white px-2.5 py-1.5 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50 disabled:cursor-not-allowed disabled:opacity-30 disabled:hover:bg-white",onClick:()=>e.handleVerify(p.asset_id)},L(e.__("Verify","podlove-podcasting-plugin-for-wordpress")),9,Yre)])],2))),128))])]),m("p",Jre,L(e.__("Duration:","podlove-podcasting-plugin-for-wordpress"))+" "+L(e.duration),1)])):(I(),Ye(d,{key:1}))])],64)}const Qre=Le(kre,[["render",Zre]]),eoe=ge({components:{Module:In,RefreshIcon:nf,MediaSlug:Vne,MediaUpload:Kne,PlusMediaUpload:Sre,AssetsTable:Qre},setup(){return{state:ut({isInitializing:B.mediafiles.isInitializing,modules:B.settings.modules,plusStorageEnabled:B.settings.enablePlusStorage}),dispatch:Ze().dispatch}},computed:{isInitializing(){return this.state.isInitializing},isMediaUploadEnabled(){var e;return(e=this.state.modules)==null?void 0:e.includes("wordpress_file_upload")},isPlusStorageEnabled(){return this.state.plusStorageEnabled}},created(){this.dispatch(J8())}}),toe={key:0,class:"w-full flex justify-center m-12 text-center"},noe={class:"animate-pulse mt-4 flex space-x-4"},roe={key:1},ooe={class:"px-6"},soe={class:"mt-10 sm:mt-0 space-y-8 border-b border-gray-900/10 pb-12 sm:space-y-0 sm:divide-y sm:divide-gray-900/10 sm:pb-0"},ioe={class:"sm:grid sm:grid-cols-[175px_auto_auto] sm:items-start sm:gap-4 sm:py-6"},loe={key:0,class:"sm:grid sm:grid-cols-[175px_auto_auto] sm:items-start sm:gap-4 sm:py-6"},aoe={key:1,class:"sm:grid sm:grid-cols-[175px_auto_auto] sm:items-start sm:gap-4 sm:py-6"},uoe={class:"sm:grid sm:grid-cols-[175px_auto_auto] sm:items-start sm:gap-4 sm:py-6"};function coe(e,t,n,r,o,i){const l=q("RefreshIcon"),a=q("MediaSlug"),c=q("PlusMediaUpload"),d=q("MediaUpload"),p=q("AssetsTable"),h=q("module");return I(),Ye(h,{name:"mediafiles",title:"Media Files"},{default:_e(()=>[m("div",null,[e.isInitializing?(I(),F("div",toe,[m("div",noe,[z(l,{class:"animate-spin h-5 w-5 mr-3"}),Be(" "+L(e.__("Loading...","podlove-podcasting-plugin-for-wordpress")),1)])])):(I(),F("div",roe,[m("div",ooe,[m("div",soe,[m("div",ioe,[z(a)]),e.isPlusStorageEnabled?(I(),F("div",loe,[z(c)])):e.isMediaUploadEnabled?(I(),F("div",aoe,[z(d)])):Te("",!0),m("div",uoe,[z(p)])])])]))])]),_:1})}const doe=Le(eoe,[["render",coe]]),foe=ge({name:"PlusFileMigration",components:{Module:In,PodloveButton:Pn,UploadIcon:rf,CheckBadgeIcon:OV,ExclamationTriangleIcon:RX},setup(){return{state:ut({totalState:B.plusFileMigration.totalState,progress:B.plusFileMigration.progress,files:B.plusFileMigration.episodesWithFiles,currentEpisodeName:B.plusFileMigration.currentEpisodeName,currentFileName:B.plusFileMigration.currentFileName,isMigrationComplete:B.plusFileMigration.isMigrationComplete}),dispatch:Ze().dispatch}},methods:{startMigration(){this.dispatch(m8())}},computed:{progress(){return this.state.progress},totalFiles(){return this.state.files.reduce((e,t)=>e+t.files.length,0)},totalEpisodes(){return this.state.files.length},failedFiles(){return this.state.files.reduce((e,t)=>e+t.files.filter(n=>n.state==="error").length,0)},failedFilesList(){const e=[];return this.state.files.forEach(t=>{t.files.forEach(n=>{n.state==="error"&&e.push({episodeName:t.episodeName,fileName:n.name})})}),e},currentEpisodeName(){return this.state.currentEpisodeName},currentFileName(){return this.state.currentFileName},uiState(){return this.state.totalState}}}),poe={class:"m-3 rounded-lg bg-white"},hoe={key:0,class:"bg-white w-full"},moe=m("div",{class:"text-center"},"loading...",-1),goe=[moe],voe={key:1,class:"bg-white w-full"},yoe={class:"text-center py-10 px-5"},_oe={class:"w-20 h-20 mx-auto mb-5 bg-green-50 rounded-full flex items-center justify-center"},boe=m("h3",{class:"text-lg font-medium text-gray-800 mb-2.5"},"Upload Complete!",-1),woe={class:"text-gray-600 text-sm mb-6 max-w-md mx-auto"},Soe={key:0},Eoe={key:1},$oe={class:"bg-gray-50 rounded-lg p-5 mx-auto m-5 text-left"},xoe=m("div",{class:"text-base font-medium text-gray-800 mb-4"},"Upload Summary",-1),Toe={class:"flex justify-between mb-2.5 text-sm text-gray-600"},Coe=m("span",null,"Total Episodes:",-1),Ooe={class:"flex justify-between mb-2.5 text-sm text-gray-600"},Aoe=m("span",null,"Total Files:",-1),koe={key:0,class:"flex justify-between mb-4 text-sm text-red-600"},Ioe=m("span",null,"Failed Uploads:",-1),Poe={key:1,class:"border-t border-gray-200 pt-4"},Roe=m("div",{class:"text-sm font-medium text-gray-800 mb-3"},"Failed Uploads:",-1),Loe={class:"space-y-2"},Foe={class:"text-sm text-red-800"},Noe={class:"font-medium"},Moe={class:"text-red-600 mt-1"},Doe={class:"text-gray-600 text-left text-sm px-2 mx-auto"},Uoe={key:0},Boe=m("br",null,null,-1),joe=m("br",null,null,-1),Voe={key:1},Hoe={key:2,class:"bg-white w-full"},zoe={class:"text-center py-10 px-5"},Woe={class:"w-20 h-20 mx-auto mb-5 bg-gray-100 rounded-full flex items-center justify-center"},qoe=m("h3",{class:"text-lg font-medium text-gray-800 mb-2.5"}," Upload Your Existing Media Files to PLUS Cloud Storage ",-1),Koe=m("p",{class:"text-left text-gray-600 text-sm mb-2.5 max-w-md mx-auto"}," This is a one-time operation to move your existing files to PLUS Cloud Storage. It will only need to be done once. ",-1),Goe={class:"text-left text-gray-600 text-sm mb-6 max-w-md mx-auto"},Xoe={key:3,class:"bg-white w-full"},Yoe={class:"py-10 px-5"},Joe={class:"flex justify-between mb-2 text-sm text-gray-600"},Zoe=m("span",null,"Progress Uploading Media Files to PLUS Cloud Storage",-1),Qoe={class:"h-2.5 bg-gray-100 rounded-lg overflow-hidden"},ese={class:"bg-gray-50 my-5 p-5 rounded-lg"},tse=m("div",{class:"flex items-center mb-2"},[m("h3",{class:"text-base font-medium text-gray-800"},"Currently Uploading"),m("div",{class:"ml-2 animate-spin"},[m("div",{class:"w-4 h-4 border-2 border-gray-300 border-t-gray-700 rounded-full"})])],-1),nse={class:"text-gray-600 text-sm mb-1"},rse=m("strong",null,"Episode:",-1),ose={class:"text-gray-600 text-sm"},sse=m("strong",null,"File:",-1),ise={class:"border-l-4 border-yellow-400 bg-yellow-50 p-4"},lse={class:"flex"},ase={class:"shrink-0"},use=m("div",{class:"ml-3"},[m("p",{class:"text-sm text-yellow-700"}," Keep this window open while the upload is in progress. ")],-1);function cse(e,t,n,r,o,i){const l=q("CheckBadgeIcon"),a=q("UploadIcon"),c=q("podlove-button"),d=q("ExclamationTriangleIcon");return I(),F("div",poe,[e.uiState==="init"?(I(),F("section",hoe,goe)):Te("",!0),e.uiState==="finished"?(I(),F("section",voe,[m("div",yoe,[m("div",_oe,[z(l,{class:"w-10 h-10 stroke-green-500"})]),boe,m("p",woe,[e.failedFiles===0?(I(),F("span",Soe,"All your files have been successfully uploaded.")):(I(),F("span",Eoe,"Upload process completed with "+L(e.failedFiles)+" failed upload"+L(e.failedFiles>1?"s":"")+".",1))]),m("div",$oe,[xoe,m("div",Toe,[Coe,m("span",null,L(e.totalEpisodes),1)]),m("div",Ooe,[Aoe,m("span",null,L(e.totalFiles),1)]),e.failedFiles>0?(I(),F("div",koe,[Ioe,m("span",null,L(e.failedFiles),1)])):Te("",!0),e.failedFiles>0?(I(),F("div",Poe,[Roe,m("div",Loe,[(I(!0),F(Me,null,Ot(e.failedFilesList,p=>(I(),F("div",{key:`${p.episodeName}-${p.fileName}`,class:"bg-red-50 border border-red-200 rounded p-3"},[m("div",Foe,[m("div",Noe,L(p.episodeName),1),m("div",Moe,L(p.fileName),1)])]))),128))])])):Te("",!0)]),m("p",Doe,[e.failedFiles===0?(I(),F("span",Uoe,[Be(" Starting immediately, your files will be served from PLUS Cloud Storage to all listeners. When you create and manage new episodes, files will be directly uploaded to PLUS Cloud Storage."),Boe,joe,Be("Happy podcasting! ")])):(I(),F("span",Voe," Successfully uploaded files will be served from PLUS Cloud Storage to all listeners. You may want to retry uploading the failed files or check the file URLs and try again. When you create and manage new episodes, files will be directly uploaded to PLUS Cloud Storage. "))])])])):Te("",!0),e.uiState==="ready"?(I(),F("section",Hoe,[m("div",zoe,[m("div",Woe,[z(a,{class:"w-10 h-10 stroke-gray-600"})]),qoe,Koe,m("p",Goe," You have "+L(e.totalFiles)+" files to upload. Once they are uploaded, you can delete the files from your local storage or keep them as a backup. ",1),z(c,{variant:"primary",onClick:e.startMigration},{default:_e(()=>[Be(L(e.__("Start Uploads","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["onClick"])])])):Te("",!0),e.uiState==="in_progress"?(I(),F("section",Xoe,[m("div",Yoe,[m("div",Joe,[Zoe,m("span",null,L(e.progress)+"%",1)]),m("div",Qoe,[m("div",{class:"h-full bg-green-500 rounded-lg transition-all duration-300",style:so({width:e.progress+"%"})},null,4)]),m("section",ese,[tse,m("p",nse,[rse,Be(" "+L(e.currentEpisodeName),1)]),m("p",ose,[sse,Be(" "+L(e.currentFileName),1)])]),m("div",ise,[m("div",lse,[m("div",ase,[z(d,{class:"size-5 text-yellow-400","aria-hidden":"true"})]),use])])])])):Te("",!0)])}const pC=Le(foe,[["render",cse]]),dse={class:"overflow-hidden rounded-lg bg-white border border-gray-200 transition-shadow duration-200 hover:shadow"},fse={class:"px-4 py-5 sm:p-6"},pse={class:"mb-3 flex items-center justify-between"},hse={class:"text-base font-medium text-gray-800"},mse={class:"flex items-center gap-3"},gse={class:"flex items-center gap-2"},vse={key:0,class:"rounded-full bg-green-100 px-3 py-1 text-xs font-medium text-green-600"},yse={key:1,class:"rounded-full bg-gray-100 px-3 py-1 text-xs font-medium text-gray-500"},_se=m("svg",{class:"size-3 text-gray-400",fill:"none",viewBox:"0 0 12 12"},[m("path",{d:"M4 8l2-2m0 0l2-2M6 6L4 4m2 2l2 2",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1),bse=[_se],wse=m("svg",{class:"size-3 text-green-600",fill:"currentColor",viewBox:"0 0 12 12"},[m("path",{d:"M3.707 5.293a1 1 0 00-1.414 1.414l1.414-1.414zM5 8l-.707.707a1 1 0 001.414 0L5 8zm4.707-3.293a1 1 0 00-1.414-1.414l1.414 1.414zm-7.414 2l2 2 1.414-1.414-2-2-1.414 1.414zm3.414 2l4-4-1.414-1.414-4 4 1.414 1.414z"})],-1),Sse=[wse],Ese={key:0,class:"bg-gray-50 px-4 py-4 sm:px-6"},$se=ge({__name:"Feature",props:{title:{type:String,required:!0},modelValue:{type:Boolean,required:!0}},emits:["update:modelValue"],setup(e){return(t,n)=>(I(),F("div",dse,[m("div",fse,[m("div",pse,[m("h3",hse,L(e.title),1),m("div",mse,[m("div",gse,[yn(t.$slots,"settings-action"),e.modelValue?(I(),F("span",vse,"Active")):(I(),F("span",yse,"Disabled"))]),z(vn(DT),{modelValue:e.modelValue,"onUpdate:modelValue":n[0]||(n[0]=r=>t.$emit("update:modelValue",r)),class:gt([e.modelValue?"bg-green-600":"bg-gray-200","relative inline-flex h-6 w-11 shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-green-600 focus:ring-offset-2"])},{default:_e(()=>[m("span",{class:gt([e.modelValue?"translate-x-5":"translate-x-0","pointer-events-none relative inline-block size-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out"])},[m("span",{class:gt([e.modelValue?"opacity-0 duration-100 ease-out":"opacity-100 duration-200 ease-in","absolute inset-0 flex size-full items-center justify-center transition-opacity"]),"aria-hidden":"true"},bse,2),m("span",{class:gt([e.modelValue?"opacity-100 duration-200 ease-in":"opacity-0 duration-100 ease-out","absolute inset-0 flex size-full items-center justify-center transition-opacity"]),"aria-hidden":"true"},Sse,2)],2)]),_:1},8,["modelValue","class"])])]),yn(t.$slots,"default")]),t.$slots.footer?(I(),F("div",Ese,[yn(t.$slots,"footer")])):Te("",!0)]))}}),xse=ge({components:{Feature:$se,PlusFileMigration:pC,Cog6ToothIcon:RV},setup(){return{state:ut({features:B.plus.features,files:B.plusFileMigration.episodesWithFiles,isMigrationComplete:B.plusFileMigration.isMigrationComplete,showMigrationToolManually:B.plusFileMigration.showMigrationToolManually}),dispatch:Ze().dispatch}},created(){this.dispatch(qd()),this.dispatch(p8())},methods:{handleFeatureToggle(e){this.dispatch(Kh({feature:e,value:!this.features[e]}))},toggleMigrationTool(){this.dispatch(_8())}},computed:{features(){return this.state.features},needsMigration(){return!this.state.isMigrationComplete&&this.state.files&&this.state.files.length>0},showMigrationTool(){return this.state.showMigrationToolManually}}}),Tse={class:"mb-6 rounded-lg bg-white p-6 shadow-sm"},Cse=m("div",{class:"mb-6"},[m("h2",{class:"mb-2 text-xl font-medium text-gray-700"},"Manage Features"),m("p",{class:"text-sm text-gray-600"}," Enable or disable PLUS features. Changes will take effect immediately. ")],-1),Ose={class:"space-y-3"},Ase=m("span",null,"Show Migration Tool",-1),kse=m("p",{class:"text-sm text-gray-600 mb-2"}," Store your podcast files in fast and reliable cloud storage. Don't worry about dealing with WordPress performance issues as your podcast grows. Focus on creating great content and let us handle the rest. ",-1),Ise=m("p",{class:"text-sm text-gray-600 mb-2"}," You can enable file storage by using the feature switch here. This will automatically upload your podcast files to the cloud and make them available for download. ",-1),Pse=m("p",{class:"text-sm text-gray-600"}," If at any point you want to disable file storage, you can do so by disabling the feature here. Then files will be served from your local WordPress or FTP storage again, as you configure it here in the plugin. ",-1),Rse=m("p",{class:"text-sm text-gray-600"}," When Feed Proxy is enabled, all feed requests are automatically redirected to the corresponding proxy feed URL. It can be disabled at any time without risk of losing subscribers because a temporary redirect (HTTP 307) is used. ",-1);function Lse(e,t,n,r,o,i){const l=q("Cog6ToothIcon"),a=q("PlusFileMigration"),c=q("Feature");return I(),F("div",Tse,[Cse,m("div",Ose,[z(c,{title:"File Storage",modelValue:e.features.fileStorage,"onUpdate:modelValue":t[1]||(t[1]=d=>e.handleFeatureToggle("fileStorage"))},Ow({default:_e(()=>[kse,Ise,Pse]),_:2},[e.features.fileStorage?{name:"settings-action",fn:_e(()=>[m("button",{onClick:t[0]||(t[0]=(...d)=>e.toggleMigrationTool&&e.toggleMigrationTool(...d)),class:"p-1 text-gray-400 hover:text-gray-600 transition-colors flex items-center gap-1",title:"Show Migration Tool"},[z(l,{class:"size-5"}),Be(),Ase])]),key:"0"}:void 0,e.features.fileStorage&&(e.needsMigration||e.showMigrationTool)?{name:"footer",fn:_e(()=>[z(a)]),key:"1"}:void 0]),1032,["modelValue"]),z(c,{title:"Feed Proxy",modelValue:e.features.feedProxy,"onUpdate:modelValue":t[2]||(t[2]=d=>e.handleFeatureToggle("feedProxy"))},{default:_e(()=>[Rse]),_:1},8,["modelValue"])])])}const Fse=Le(xse,[["render",Lse]]),Nse={class:"space-y-4"},Mse={for:"api_token",class:"block text-sm font-medium text-gray-700 mb-2"},Dse={class:"relative"},Use=["type","value","placeholder"],Bse={class:"text-sm text-gray-600"},jse={class:"flex items-center justify-between"},Vse={class:"flex-1"},Hse={class:"flex gap-2"},zse={href:"https://plus.podlove.org/tokens",target:"_blank",class:"inline-flex items-center px-3 py-2 border border-gray-300 shadow-sm text-sm leading-4 font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500"},Wse=["disabled"],qse={key:0,class:"animate-spin -ml-1 mr-2 h-4 w-4 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},Kse=m("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),Gse=m("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"},null,-1),Xse=[Kse,Gse],Yse=ge({__name:"TokenInput",props:{modelValue:{type:String,default:""},isTokenValid:{type:Boolean,default:!1},isSaving:{type:Boolean,default:!1}},emits:["update:modelValue","save"],setup(e){const t=$e(!1);return(n,r)=>(I(),F("div",Nse,[m("div",null,[m("label",Mse,L(n.__("API Token","podlove-podcasting-plugin-for-wordpress")),1),m("div",Dse,[m("input",{type:t.value?"text":"password",id:"api_token",value:e.modelValue,onInput:r[0]||(r[0]=o=>n.$emit("update:modelValue",o.target.value)),class:"w-full px-3 py-2 pr-10 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500",placeholder:n.__("Enter your API token","podlove-podcasting-plugin-for-wordpress")},null,40,Use),m("button",{type:"button",onClick:r[1]||(r[1]=o=>t.value=!t.value),class:"absolute inset-y-0 right-0 pr-3 flex items-center text-gray-400 hover:text-gray-600 focus:outline-none"},[t.value?(I(),Ye(vn(MV),{key:0,class:"h-5 w-5"})):(I(),Ye(vn(NV),{key:1,class:"h-5 w-5"}))])])]),m("div",Bse,[yn(n.$slots,"default")]),m("div",jse,[m("div",Vse,[yn(n.$slots,"status")]),m("div",Hse,[m("a",zse,L(n.__("Get Token","podlove-podcasting-plugin-for-wordpress")),1),m("button",{type:"button",disabled:e.isSaving,onClick:r[2]||(r[2]=o=>n.$emit("save")),class:"inline-flex items-center px-3 py-2 border border-transparent text-sm leading-4 font-medium rounded-md text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 disabled:opacity-50 disabled:cursor-not-allowed"},[e.isSaving?(I(),F("svg",qse,Xse)):Te("",!0),Be(" "+L(e.isSaving?n.__("Saving...","podlove-podcasting-plugin-for-wordpress"):n.__("Save Token","podlove-podcasting-plugin-for-wordpress")),1)],8,Wse)])])]))}}),Jse=ge({components:{TokenInput:Yse,CheckCircleIcon:rC,XCircleIcon:Iv,InformationCircleIcon:LX},setup(){const e=Ze();return{state:ut({token:t=>B.plus.token(t),user:t=>B.plus.user(t),isLoading:t=>B.plus.isLoading(t),isSaving:t=>B.plus.isSaving(t)}),dispatch:e.dispatch}},created(){this.dispatch(qd())},computed:{apiToken(){return this.state.token},isTokenValid(){return this.state.user!==null},userEmail(){var e;return((e=this.state.user)==null?void 0:e.email)||""},showContent(){return!this.state.isLoading}},methods:{handleTokenUpdate(e){this.dispatch(Gh(e))},handleSaveToken(){this.dispatch(E8(this.apiToken))}}}),Zse={class:"mb-6 rounded-lg bg-white p-6 shadow-sm"},Qse={class:"mb-6"},eie={class:"mb-2 text-xl font-medium text-gray-700"},tie={class:"text-sm text-gray-600"},nie={key:0,class:"space-y-3"},rie=m("div",{class:"animate-pulse"},[m("div",{class:"h-4 bg-gray-200 rounded w-3/4 mb-4"}),m("div",{class:"h-10 bg-gray-200 rounded mb-4"}),m("div",{class:"h-4 bg-gray-200 rounded w-1/2"})],-1),oie=[rie],sie={key:1,class:"space-y-3"},iie={key:0,class:"flex items-center gap-2 text-sm text-gray-600"},lie={key:1,class:"flex items-center gap-2 text-sm text-red-600"},aie={key:2,class:"flex items-center gap-2 text-sm text-gray-600"};function uie(e,t,n,r,o,i){const l=q("CheckCircleIcon"),a=q("XCircleIcon"),c=q("InformationCircleIcon"),d=q("TokenInput");return I(),F("div",Zse,[m("div",Qse,[m("h2",eie,L(e.__("Authentication","podlove-podcasting-plugin-for-wordpress")),1),m("p",tie,L(e.__("Publisher PLUS provides additional features and services for your podcast. Enter your API token below to activate these features.","podlove-podcasting-plugin-for-wordpress")),1)]),e.state.isLoading?(I(),F("div",nie,oie)):(I(),F("div",sie,[z(d,{modelValue:e.apiToken,isTokenValid:e.isTokenValid,isSaving:e.state.isSaving,"onUpdate:modelValue":e.handleTokenUpdate,onSave:e.handleSaveToken},{status:_e(()=>[e.apiToken&&e.isTokenValid?(I(),F("div",iie,[z(l,{class:"w-4 h-4 text-green-600"}),m("span",null,[Be(L(e.__("You are logged in as","podlove-podcasting-plugin-for-wordpress"))+" ",1),m("strong",null,L(e.userEmail),1)])])):e.apiToken&&!e.isTokenValid?(I(),F("div",lie,[z(a,{class:"w-4 h-4"}),m("span",null,L(e.__("Invalid API token","podlove-podcasting-plugin-for-wordpress")),1)])):(I(),F("div",aie,[z(c,{class:"w-4 h-4"}),m("span",null,L(e.__("No API token configured","podlove-podcasting-plugin-for-wordpress")),1)]))]),_:1},8,["modelValue","isTokenValid","isSaving","onUpdate:modelValue","onSave"])]))])}const cie=Le(Jse,[["render",uie]]),die=ge({name:"PodloveCombobox",components:{Combobox:pT,ComboboxButton:hT,ComboboxInput:mT,ComboboxOption:vT,ComboboxOptions:gT,CheckIcon:hf,SelectorIcon:mf},props:{options:Array,selectValues:Array,placeholder:{type:String,default:"Select an option"},multiple:{type:Boolean,default:!1},error:String},computed:{label(){var t;const e=(t=this.selectValues)==null?void 0:t.length;return e===0?"No option is selected":e===1?"One option is selected":(e==null?void 0:e.toString())+" options are selected"},filterOptions(){var e;return this.query===""?this.options:(e=this.options)==null?void 0:e.filter(t=>t.title.toLowerCase().includes(this.query.toLowerCase()))}},data(){return{query:""}},methods:{selectItem(e){this.$emit("update",e)},onChange(e){this.query=e.target.value},resetQuery(){this.query=""}}}),fie={class:"relative mt-1 focus-visible:border-indigo-500 focus:ring-indigo-500"},pie={class:"shadow-sm flex sm:text-sm rounded-md absolute inset-y-0 right-10 items-center pr-2 pointer-events-none"},hie={key:0,class:"cursor-default select-none relative py-2 px-4 text-gray-700"},mie={key:0,class:"flex absolute inset-y-0 left-0 items-center pl-3 text-amber-600"},gie={key:0,class:"text-xs text-red-400 mt-1"};function vie(e,t,n,r,o,i){const l=q("ComboboxInput"),a=q("SelectorIcon"),c=q("ComboboxButton"),d=q("CheckIcon"),p=q("ComboboxOption"),h=q("ComboboxOptions"),v=q("Combobox",!0);return I(),Ye(v,{"model-value":e.selectValues,multiple:e.multiple,"onUpdate:modelValue":t[0]||(t[0]=y=>e.selectItem(y))},{default:_e(()=>[m("div",fie,[z(c,{class:"w-full flex items-center",onClick:e.resetQuery},{default:_e(()=>[z(l,{onChange:e.onChange,class:"relative py-2 pl-3 w-full bg-white rounded-lg shadow-md cursor-default sm:text-sm border-gray-300"},null,8,["onChange"]),m("div",pie,L(e.label),1),z(a,{class:"w-5 h-5 text-gray-400","aria-hidden":"true"})]),_:1},8,["onClick"]),z(Cs,{"leave-active-class":` 149 149 transition 150 150 duration-100 … … 154 154 `,"leave-to-class":` 155 155 opacity-0 156 `},{default:_e(()=>[z(h,{class:"-top-2 transform -translate-y-full overflow-auto absolute z-10 py-1 mt-1 w-full max-h-60 text-base bg-white rounded-md ring-1 ring-black ring-opacity-5 shadow-lg focus:outline-none sm:text-sm"},{default:_e(()=>{var y;return[((y=e.filterOptions)==null?void 0:y.length)===0&&e.query!==""?(I(),F("div",hie," Nothing found. ")):Te("",!0),(I(!0),F(Me,null,Ot(e.filterOptions,b=>(I(),Ye(p,{key:b.title,value:b.id,as:"template"},{default:_e(({active:S,selected:T})=>[m("li",{class:gt([S?"bg-amber-100 text-amber-900":"text-gray-900","relative cursor-default select-none py-2 pl-10 pr-4"])},[m("span",{class:gt([T?"font-medium":"font-normal","block truncate"])},L(b.title),3),T?(I(),F("span",mie,[z(d,{"aria-hidden":"true",class:"w-5 h-5"})])):Te("",!0)],2)]),_:2},1032,["value"]))),128))]}),_:1})]),_:1}),e.error?(I(),F("div",gie,L(e.error),1)):Te("",!0)])]),_:1},8,["model-value","multiple"])}const yie=Le(die,[["render",vie]]),_ie=ge({name:"PodloveTag",components:{XCircleIcon: Pv},props:{value:String,id:Number},methods:{removeTag(){this.$emit("removeTag",this.id)}}}),bie={class:"m-1 inline-flex"},wie={class:"flex items-center text-xs font-bold uppercase px-3 py-1 bg-indigo-200 text-indigo-700 rounded-full"};function Sie(e,t,n,r,o,i){const l=q("XCircleIcon");return I(),F("div",bie,[m("span",wie,[Be(L(e.value)+" ",1),m("button",{class:"ml-1",onClick:t[0]||(t[0]=(...a)=>e.removeTag&&e.removeTag(...a))},[z(l,{class:"w-5 h-5"})])])])}const Eie=Le(_ie,[["render",Sie]]),$ie=ge({components:{Module:In,PodloveListbox:yie,Tag:Eie},setup(){return{state:ut({episodeList:B.relatedEpisodes.episodeList,selectEpisodes:B.relatedEpisodes.selectEpisode}),dispatch:Ze().dispatch}},created(){this.dispatch(hD())},computed:{fullEpisodeList(){return this.state.episodeList.length==0?this.state.episodeList:this.state.selectEpisodes.length==0?[{id:0,title:"Select all episodes"},...this.state.episodeList]:[{id:-1,title:"Deselect all episodes"},...this.state.episodeList]},selectEpisodeNames(){var e;return(e=this.state.episodeList)==null?void 0:e.filter(t=>this.state.selectEpisodes.includes(t.id))}},methods:{updateRelEpisodes(e){e.includes(0)?this.state.selectEpisodes=this.state.episodeList.map(function(t){return t.id}):e.includes(-1)?this.state.selectEpisodes=[]:this.state.selectEpisodes=e,this.dispatch(G$(this.state.selectEpisodes))},removeTag(e){const t=this.state.selectEpisodes.findIndex(n=>n==e);this.state.selectEpisodes.splice(t,1)}}}),xie={class:"p-3"},Tie={class:"mt-2 text-sm text-gray-500"},Cie={class:"pl-3 pb-3"};function Oie(e,t,n,r,o,i){const l=q("PodloveListbox"),a=q("Tag"),c=q("module");return I(),Ye(c,{name:"relatedEpisodes",title:e.__("Related episodes","podlove-podcasting-plugin-for-wordpress")},{default:_e(()=>[m("div",xie,[m("div",null,[z(l,{placeholder:"Select episode",options:e.fullEpisodeList,selectValues:e.state.selectEpisodes,onUpdate:t[0]||(t[0]=d=>e.updateRelEpisodes(d)),multiple:""},null,8,["options","selectValues"])]),m("p",Tie,L(e.__("Select related episodes to this episode.","podlove-podcasting-plugin-for-wordpress")),1)]),m("div",Cie,[(I(!0),F(Me,null,Ot(e.selectEpisodeNames,d=>(I(),Ye(a,{value:d.title,id:Number(d.id),onRemoveTag:t[1]||(t[1]=p=>e.removeTag(p))},null,8,["value","id"]))),256))])]),_:1},8,["title"])}const Aie=Le($ie,[["render",Oie]]),kie=ge({components:{PodloveButton:Pn},setup(){return{dispatch:Ze().dispatch}},methods:{clearSoundbite(){this.dispatch(bt({prop:"soundbite_start",value:null})),this.dispatch(bt({prop:"soundbite_duration",value:null})),this.dispatch(bt({prop:"soundbite_title",value:null}))}}});function Iie(e,t,n,r,o,i){const l=q("podlove-button");return I(),Ye(l,{variant:"secondary",size:"small",onClick:t[0]||(t[0]=a=>e.clearSoundbite())},{default:_e(()=>[Be(L(e.__("Clear","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})}const Pie=Le(kie,[["render",Iie]]),Rie=ge({setup(){return{state:ut({soundbite_start:B.episode.soundbite_start,soundbite_duration:B.episode.soundbite_duration,soundbite_title:B.episode.soundbite_title}),dispatch:Ze().dispatch}},computed:{soundbite_end(){if(this.state.soundbite_start!=null&&this.state.soundbite_duration!=null){let e=Dt.fromString(this.state.soundbite_start).totalMs,t=Dt.fromString(this.state.soundbite_duration).totalMs,n=e+t;return new Dt(n).pretty}return""}},methods:{updateSoundbiteStart(e){const t=e.target.value;let n=Dt.fromString(t).totalMs;this.dispatch(bt({prop:"soundbite_start",value:new Dt(n).pretty}))},updateSoundbiteEnd(e){const t=e.target.value;let n=Dt.fromString(t).totalMs,r=Dt.fromString(this.state.soundbite_start).totalMs;if(r<n){let o=n-r;this.dispatch(bt({prop:"soundbite_duration",value:new Dt(o).pretty}))}},updateSoundbiteDuration(e){const t=e.target.value;let n=Dt.fromString(t).totalMs;this.dispatch(bt({prop:"soundbite_duration",value:new Dt(n).pretty}))},updateSoundbiteTitle(e){this.dispatch(bt({prop:"soundbite_title",value:e.target.value}))}}}),Lie={class:"grid md:grid-cols-4 md:grid-rows-1 sm:grid-rows-4 p-3"},Fie={class:"mb-5 ml-5"},Nie={for:"soundbite-start",class:"block text-sm font-medium text-gray-700"},Mie={class:"mt-1"},Die=["value"],Uie={class:"mb-5 ml-5"},Bie={for:"soundbite-end",class:"block text-sm font-medium text-gray-700"},jie={class:"mt-1"},Vie=["value"],Hie={class:"mb-5 ml-5"},zie={for:"soundbite-duration",class:"block text-sm font-medium text-gray-700"},Wie={class:"mt-1"},qie=["value"],Kie={class:"mb-5 ml-5 md:mr-5"},Gie={for:"soundbite-title",class:"block text-sm font-medium text-gray-700"},Xie={class:"text-xs"},Yie={class:"mt-1"},Jie=["value"];function Zie(e,t,n,r,o,i){return I(),F("div",Lie,[m("div",Fie,[m("label",Nie,L(e.__("Start","podlove-podcasting-plugin-for-wordpress")),1),m("div",Mie,[m("input",{name:"soundbite-start",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",placeholder:"HH:MM:SS",value:e.state.soundbite_start,onChange:t[0]||(t[0]=l=>e.updateSoundbiteStart(l))},null,40,Die)])]),m("div",Uie,[m("label",Bie,L(e.__("End","podlove-podcasting-plugin-for-wordpress")),1),m("div",jie,[m("input",{name:"soundbite-end",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",placeholder:"HH:MM:SS",value:e.soundbite_end,onChange:t[1]||(t[1]=l=>e.updateSoundbiteEnd(l))},null,40,Vie)])]),m("div",Hie,[m("label",zie,L(e.__("Duration","podlove-podcasting-plugin-for-wordpress")),1),m("div",Wie,[m("input",{name:"soundbite-duration",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",placeholder:"HH:MM:SS",value:e.state.soundbite_duration,onChange:t[2]||(t[2]=l=>e.updateSoundbiteDuration(l))},null,40,qie)])]),m("div",Kie,[m("label",Gie,[Be(L(e.__("Soundbite title","podlove-podcasting-plugin-for-wordpress"))+" ",1),m("span",Xie,L(e.__("(optional)","podlove-podcasting-plugin-for-wordpress")),1)]),m("div",Yie,[m("input",{name:"soundbite-title",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",value:e.state.soundbite_title,onChange:t[3]||(t[3]=l=>e.updateSoundbiteTitle(l))},null,40,Jie)])])])}const Qie=Le(Rie,[["render",Zie]]),ele=ge({components:{Module:In,SoundbiteForm:Qie,SoundbiteClear:Pie},setup(){return{dispatch:Ze().dispatch}},created(){this.dispatch(Hd())}});function tle(e,t,n,r,o,i){const l=q("soundbite-clear"),a=q("soundbite-form"),c=q("module");return I(),Ye(c,{name:"soundbite",title:e.__("Soundbite","podlove-podcasting-plugin-for-wordpress")},{actions:_e(()=>[z(l)]),default:_e(()=>[z(a)]),_:1},8,["title"])}const nle=Le(ele,[["render",tle]]),rle=ge({components:{},setup(){return{state:ut({shows:B.shows.list,current:B.episode.currentShow}),dispatch:Ze().dispatch}},computed:{shows(){return this.state.shows},current(){return this.state.current||""}},methods:{setShow(e){this.dispatch(bt({prop:"show",value:e??""}))}},created(){this.dispatch(X$())}}),ole={class:"flex items-center"},sle=["checked"],ile={for:"podlove-show-default",class:"ml-2 block text-sm leading-6 text-gray-900"},lle={class:"flex items-center"},ale=["id","value","onInput","checked"],ule=["for"];function cle(e,t,n,r,o,i){return I(),F("div",null,[m("div",ole,[m("input",{id:"podlove-show-default",name:"podlove-episode-show",type:"radio",class:"h-4 w-4 border-gray-300 text-indigo-600 focus:ring-indigo-600",value:null,onInput:t[0]||(t[0]=l=>e.setShow(null)),checked:e.current===""},null,40,sle),m("label",ile,L(e.__("Podcast (no show assignment)","podlove-podcasting-plugin-for-wordpress")),1)]),(I(!0),F(Me,null,Ot(e.shows,l=>(I(),F("div",lle,[m("input",{id:"podlove-show-"+l.slug,name:"podlove-episode-show",type:"radio",class:"h-4 w-4 border-gray-300 text-indigo-600 focus:ring-indigo-600",value:l.id,onInput:a=>e.setShow(l.slug),checked:l.slug===e.current},null,40,ale),m("label",{for:"podlove-show-"+l.slug,class:"ml-2 block text-sm leading-6 text-gray-900"},L(l.title),9,ule)]))),256))])}const dle=Le(rle,[["render",cle],["__scopeId","data-v-eaebb871"]]);var Mt=(e=>(e.cc0="Public Domain License",e.pdmark="Public Domain Mark License",e.cc3="Creative Commons 3.0 and earlier",e.cc4="Creative Commons 4.0",e))(Mt||{}),_r=(e=>(e.yes="Yes",e.no="No",e))(_r||{}),gn=(e=>(e.yes="Yes",e.yesbutshare="Yes, as long as others share alike",e.no="No",e))(gn||{}),fn=(e=>(e.Episode="Episode",e.Podcast="Podcast",e))(fn||{});const Wi=[{symbol:"international",name:"International",version:"3.0"},{symbol:"ar",name:"Argentina",version:"2.5"},{symbol:"au",name:"Australia",version:"3.0"},{symbol:"at",name:"Austria",version:"3.0"},{symbol:"be",name:"Belgium",version:"2.0"},{symbol:"br",name:"Brazil",version:"3.0"},{symbol:"bg",name:"Bulgaria",version:"2.5"},{symbol:"ca",name:"Canada",version:"2.5"},{symbol:"cl",name:"Chile",version:"3.0"},{symbol:"cn",name:"China Mainland",version:"3.0"},{symbol:"co",name:"Colombia",version:"2.5"},{symbol:"cr",name:"Costa Rica",version:"3.0"},{symbol:"hr",name:"Croatia",version:"3.0"},{symbol:"cz",name:"Czech Republic",version:"3.0"},{symbol:"dk",name:"Denmark",version:"2.5"},{symbol:"ec",name:"Ecuador",version:"3.0"},{symbol:"eg",name:"Egypt",version:"3.0"},{symbol:"ee",name:"Estonia",version:"3.0"},{symbol:"fi",name:"Finland",version:"1.0"},{symbol:"fr",name:"France",version:"3.0"},{symbol:"de",name:"Germany",version:"3.0"},{symbol:"gr",name:"Greece",version:"3.0"},{symbol:"gt",name:"Guatemala",version:"3.0"},{symbol:"hk",name:"Hong Kong",version:"3.0"},{symbol:"hu",name:"Hungary",version:"2.5"},{symbol:"igo",name:"IGO",version:"3.0"},{symbol:"in",name:"India",version:"2.5"},{symbol:"ie",name:"Ireland",version:"3.0"},{symbol:"il",name:"Israel",version:"2.5"},{symbol:"it",name:"Italy",version:"3.0"},{symbol:"jp",name:"Japan",version:"2.1"},{symbol:"lu",name:"Luxembourg",version:"3.0"},{symbol:"mk",name:"Macedonia",version:"2.5"},{symbol:"my",name:"Malaysia",version:"2.5"},{symbol:"mt",name:"Malta",version:"2.5"},{symbol:"mx",name:"Mexico",version:"2.5"},{symbol:"nl",name:"Netherlands",version:"3.0"},{symbol:"nz",name:"New Zealand",version:"3.0"},{symbol:"no",name:"Norway",version:"3.0"},{symbol:"pe",name:"Peru",version:"2.5"},{symbol:"ph",name:"Philippines",version:"3.0"},{symbol:"pl",name:"Poland",version:"3.0"},{symbol:"pt",name:"Portugal",version:"3.0"},{symbol:"pr",name:"Puerto Rico",version:"3.0"},{symbol:"ro",name:"Romania",version:"3.0"},{symbol:"rs",name:"Serbia",version:"3.0"},{symbol:"sg",name:"Singapore",version:"3.0"},{symbol:"si",name:"Slovenia",version:"2.5"},{symbol:"za",name:"South Africa",version:"2.5"},{symbol:"kp",name:"South Korea",version:"2.0"},{symbol:"es",name:"Spain",version:"3.0"},{symbol:"se",name:"Sweden",version:"2.5"},{symbol:"ch",name:"Switzerland",version:"3.0"},{symbol:"tw",name:"Taiwan",version:"3.0"},{symbol:"th",name:"Thailand",version:"3.0"},{symbol:"gb",name:"UK: England & Wales",version:"2.0"},{symbol:"gb_sc",name:"UK: Scotland",version:"2.5"},{symbol:"ug",name:"Uganda",version:"3.0"},{symbol:"us",name:"United States",version:"3.0"},{symbol:"vn",name:"Vietnam",version:"3.0"}],fle=ge({components:{Module:In},props:{scope:{type:String,default:fn.Episode}},setup(){return{state:ut({episodeLicenseName:B.episode.license_name,podcastLicenseName:B.podcast.license_name}),dispatch:Ze().dispatch}},created(){this.dispatch(Hd())},computed:{getLicenseName(){return this.scope==fn.Episode?this.state.episodeLicenseName:this.state.podcastLicenseName}},methods:{updateLicenseName(e){this.scope===fn.Episode&&this.dispatch(bt({prop:"license_name",value:e.target.value})),this.scope===fn.Podcast&&this.dispatch(oa({prop:"license_name",value:e.target.value}))}}}),ple={for:"episode-license-name",class:"block text-sm font-medium text-gray-700"},hle={class:"mt-1"},mle=["value"];function gle(e,t,n,r,o,i){return I(),F("div",null,[m("label",ple,L(e.__("License name","podlove-podcasting-plugin-for-wordpress")),1),m("div",hle,[m("input",{name:"episode-license-name",type:"text",value:e.getLicenseName,onInput:t[0]||(t[0]=(...l)=>e.updateLicenseName&&e.updateLicenseName(...l)),class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md"},null,40,mle)])])}const vle=Le(fle,[["render",gle]]),yle=ge({components:{Module:In},props:{scope:{type:String,default:fn.Episode}},setup(){return{state:ut({episodeLicenseUrl:B.episode.license_url,podcastLicenseUrl:B.podcast.license_url}),dispatch:Ze().dispatch}},created(){this.dispatch(Hd())},computed:{getLicenseUrl(){return this.scope==fn.Episode?this.state.episodeLicenseUrl:this.state.podcastLicenseUrl}},methods:{updateLicenseUrl(e){this.scope===fn.Episode&&this.dispatch(bt({prop:"license_url",value:e.target.value})),this.scope===fn.Podcast&&this.dispatch(oa({prop:"license_url",value:e.target.value}))}}}),_le={for:"episode-license-name",class:"block text-sm font-medium text-gray-700"},ble={class:"mt-1"},wle=["value"],Sle={class:"mt-2 text-sm text-gray-500"};function Ele(e,t,n,r,o,i){return I(),F("div",null,[m("label",_le,L(e.__("License url","podlove-podcasting-plugin-for-wordpress")),1),m("div",ble,[m("input",{name:"episode-license-name",type:"text",value:e.getLicenseUrl,onInput:t[0]||(t[0]=(...l)=>e.updateLicenseUrl&&e.updateLicenseUrl(...l)),class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md"},null,40,wle)]),m("p",Sle,L(e.__("Example: http://creativecommons.org/licenses/by/3.0/","podlove-podcasting-plugin-for-wordpress")),1)])}const $le=Le(yle,[["render",Ele]]),xle="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFgAAAAfCAMAAABUFvrSAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAPBQTFRFLy8v7+/vz8/PHx8fDw8P+vn3X19fj4+P39/fn5+fb29vT09Pr6+v+fn53t7eZWVl6urq/f395+fn5eXl9/f38fHxMTEx+/v7jo6Ozc3N2dnZ8/PzhISE/v7+5OTk9vXz6ejoPj4+kJCQ3d3d6unnxcXFi4uL0tLS5ubm9PT0QUFB4uLi1dXV7Ozsvr6+LCwsy8vL6urnnp6ezs7O+Pj48vLyenp69fX1+fj2urq6CgsJ09PTl5eXt7e31tbW4eHhjY2N9vb2U1NTGRkZTU1NbW1tioqKf39/ysrK6Oflv7+/Pz8/7erh////AAAA////iBrkuAAAAFB0Uk5T/////////////////////////////////////////////////////////////////////////////////////////////////////////wATc6Z5AAACrklEQVR42rSW53bbMAyFOVSRGnbsZji7e++992ALFsj7v00BaiTpsfzDtXGOEw3qI3B1QUqd0FriRNGftQQpwrXEebAHDr1qsC9tI48Nejq69+g/Re7B4czFbPfLZFytBKwVH1eFQTRF5MPvn45vqRWAhatMJwrI2fb4zds0IoYQctbHys/yCUuWp/oCp5AXKZEhcM4j5L8BELxmGX5M3h2mEQHBY4gYiX8RjUEgQLnD8jn0GqtBcM0yCC/NHcUWnPOH4z3VgIk09OBIRvdgy5Nk4AbBlrKWlshikYyubI9fNuBQYNGDOYoeHLFcpLEhKtJ4olLg0Jhkf3KjlQKKrAeXsUZ1CuZsi8GMeVZJuBKIqFFKykS7B+OdVgoehyBEAYOA+SWKxl5XZcpoLjim6jEj8tBpwbrkW5sbPTjV5JpbLtWEAlaeC86GwIofloFcnKIo2aX84+jixtmuifMBalhj6sEF2cRPIv8DXqJBTjO2VEMrRZ9xzgtT4GQrgFqRAh5QisOs/FGQK2BFQC3WmA/gVOMGzK4wbJyI3mlto3ST9Aj3Bj8RxRnyTuNiV5CXJhRXaHbF1mbnCvZDzZgqYWqLAvaeH2zAZgBs0vSNj5lLpvHxtYNx13kVRpEgOddg4NbnS7k3DdhhPR88v/Pi6MFhB3YM7grnemqepUCj0aYrfG8A3OrarBWVbla7h89v7/Qt7XmRMiGRIssFkPGpQ9eArR4Ai7DCk9XNt6toOdt+n0aIKwreXIJHU8n7LyFzLgKj6iK5QrFN1PB6bKFbj2vG5NNX97+tYgeRUpQDrcHJ1pcfjSZ3V7TnnWnYrD6avfi6os0UdWh3aeU0Trf2n169+XPp+Hz+u0L33xXTO5sf9x7/WjqeMXh2YU68vqSfXP69fFynNX67rSn+CjAANTLO7qEvlcgAAAAASUVORK5CYII=",Tle="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFgAAAAfCAMAAABUFvrSAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAPNQTFRFv7+/7+/vX19fDw8PHx8fn5+fLy8v39/fz8/Pb29vr6+vT09Pj4+P+fn5/f39ZWVl5eXlzs7O6urq8fHx9/f36ejovr6++/v7jY2N4+Pj2dnZp6enzc3Nenp69PT08/PzXFxc8vLyTk5OIyMj9fX13d3d5ubmXl5eDAwMNjY2JiYmra2t1NTUxcXF4uLiLCsrFxcXVVVV/v7+GRkZMTExW1tbyMjIt7e3np6ednZ2mJiY7Ozsjo6O1dXV3t7e7e3t09PTkJCQi4uL7u7uy8vLU1NTCgsJ4eHh1tbWioqKysrK5+fnf39/Pz8/7erh////AAAA7t9IFQAAArpJREFUeNq0ludy2zAQhA8dLJLl3u303nt3ejMuwPs/Te4AmrIzYn7YEjTUsIAfib1dgBDTQlqE9GchLUGKC2n/gD2AnztYGCzyNCaORz8eXlDkHmzU9KS+ezB5cWcuYCGZV9UAdcVPuLR+7+XVeYBJBWVORGkJ/Xzb737PPTCEYJMOmjdNB1IlGfhKwHwV/wOuUrJiqryzKe1vL7/OPULugPRs2pAPIEF2fwypjXRbMwiGjisMvRDbQuiU7j/Ye1TASUXowZi86MEqeqUEDIJ5SK6vH5ZHXVm9vl/AoY2mB3sXTQ9GHuuwxj7vFd14h4dLxdy5sVHAVFHVgyuEqKdguknKITBd1N1hgEqWqKS09fajLVJQs7HGOloG15HYiMgaC9FIGsEAGOm2kg7V9iVU6ebhh8c9ONXs9SxTloLDRWCk/k4PgW0efVFLVS52BsS1ydKpnhbtjPsV4rDGxVInEicJHXh0vHSxgNhUdeC6zcNCcwrMAeE0Yg2GQxL4FNVLlz/UocnxmakxS9cWQxSxNTGaAiZXOLIfRgFRkDsoD57tGLgOyM6Imj0zA0zqcg2yK3ztobPPu9Hxs6545Ic6l4ISGI3OPneCPFnAMACui8id15WPLk9Ey2uTWx24IYf5zrlOVNHxCKTzBWzoNxMcdVJiSsZiYxwfvukiTRuCUORKwrT0JgDJRC9YAzpDth4AG34nDnKF2PAkJ8hZG6OV2yeRFo5kqCufJwsXJYASnpIeClgPgfm0PLWuCJqv5Obqbj+71fQgyo5jUbGNCkBy6J0rYB7RbDC/oe1XO+Cjo2vvn85jBbF5saPUuew3+2W00sxlzRNn5r/wZPPytzktpiRgt5wq6eJ4befVp8+/zt22zn5XAK0gJks9Ppj83Pv6+9xteehLaDxaXVk/Pn9bTwv8dltQ+yvAAF/L4Ldao5NwAAAAAElFTkSuQmCC",Cle="/wp-content/plugins/podlove-publisher/client/dist/0_0.png",Ole="/wp-content/plugins/podlove-publisher/client/dist/0_1.png",Ale="/wp-content/plugins/podlove-publisher/client/dist/1_0.png",kle="/wp-content/plugins/podlove-publisher/client/dist/1_1.png",Ile="/wp-content/plugins/podlove-publisher/client/dist/10_0.png",Ple="/wp-content/plugins/podlove-publisher/client/dist/10_1.png";function ql(e){if(e.type===null||e.type!="cc")return null;if(e.version===Mt.cc0)return"http://creativecommons.org/publicdomain/zero/1.0/";if(e.version===Mt.pdmark)return"http://creativecommons.org/publicdomain/mark/1.0/";if(e.version===Mt.cc3){let t="http://creativecommons.org/licenses/by";return e.optionCommercial===_r.no&&(t=t+"-nc"),e.optionModification===gn.yes?t=t+"/":e.optionModification===gn.no?t=t+"-nd/":t=t+"-sa/",e.optionJurisdication===null||e.optionJurisdication.symbol==="international"?t=t+"3.0/":t=t+e.optionJurisdication.version+"/"+e.optionJurisdication.symbol+"/",t+"deed.en"}if(e.version===Mt.cc4){let t="http://creativecommons.org/licenses/by";return e.optionCommercial==_r.no&&(t=t+"-nc"),e.optionModification==gn.yes?t=t+"/":e.optionModification==gn.no?t=t+"-nd/":t=t+"-sa/",t+"4.0"}return null}function Nb(e,t){if(e.type===null||e.type!=="cc")return null;if(e.version===Mt.cc0)return xle;if(e.version===Mt.pdmark)return Tle;if(e.optionModification===null||e.optionCommercial===null)return null;switch(e.optionModification){case gn.no:return e.optionCommercial===_r.no?Cle:Ole;case gn.yes:return e.optionCommercial===_r.no?Ale:kle;case gn.yesbutshare:return e.optionCommercial===_r.no?Ile:Ple}}function Mb(e){const t=e.toLowerCase();if(t.indexOf("creativecommons.org")<0)return{type:null,version:null,optionCommercial:null,optionModification:null,optionJurisdication:null};let n=null;t.indexOf("/publicdomain/zero/")>=0?n=Mt.cc0:t.indexOf("/publicdomain/mark/")>=0?n=Mt.pdmark:t.indexOf("/4.0")>=0?n=Mt.cc4:n=Mt.cc3;const r=t.split("/").slice(4);let o=_r.yes;r[0].includes("nc")&&(o=_r.no);let i=gn.yes;r[0].includes("sa")?i=gn.yesbutshare:r[0].includes("nd")&&(i=gn.no);let l=Wi[0];if(r.length>2){const a=Wi.findIndex(c=>c.symbol===r[2]);a>0&&(l=Wi[a])}return{type:"cc",version:n,optionCommercial:o,optionModification:i,optionJurisdication:l}}const Rle=ge({components:{Module:In},props:{licenseData:{type:null,default:{type:"cc",version:Mt.pdmark,optionCommercial:null,optionModification:null,optionJurisdication:null}}},setup(){return{state:ut({baseUrl:B.runtime.baseUrl}),dispatch:Ze().dispatch}},computed:{licenseUrl(){return ql(this.licenseData)},imageUrl(){return Nb(this.licenseData,this.state.baseUrl)},isImageAvailable(){return Nb(this.licenseData,this.state.baseUrl)!==null}}}),Lle={class:"mt-3"},Fle=m("div",{class:"mb-3 text-sm font-medium text-gray-700"}," License preview: ",-1),Nle={key:0},Mle={class:"mb-3 w-full"},Dle={class:"flex justify-center items-center"},Ule=["src"],Ble={class:"mb-3 w-full text-center"},jle=m("p",{class:"text-sm font-medium text-gray-700"},"This work is licensend under ",-1),Vle=["href"],Hle={key:0},zle=m("p",{class:"text-sm font-medium text-gray-700"},"No license selected!",-1),Wle=[zle];function qle(e,t,n,r,o,i){return I(),F("div",Lle,[Fle,e.isImageAvailable?(I(),F("div",Nle,[m("div",null,[m("div",Mle,[m("div",Dle,[m("img",{class:"text-center",src:`${e.imageUrl}`},null,8,Ule)])]),m("div",Ble,[jle,m("a",{class:"text-sm font-medium text-gray-700",href:`${e.licenseUrl}`},L(e.licenseUrl),9,Vle)])]),e.isImageAvailable?Te("",!0):(I(),F("div",Hle,Wle))])):Te("",!0)])}const Kle=Le(Rle,[["render",qle]]),Gle=Object.entries(Mt).map(([e,t])=>({key:e,value:t})),Xle=Object.entries(_r).map(([e,t])=>({key:e,value:t})),Yle=Object.entries(gn).map(([e,t])=>({key:e,value:t})),Jle=ge({components:{PodloveButton:Pn,Modal:Za,LicensePreview:Kle},data(){return{PodloveLicenseVersionList:Gle,PodloveLicenseOptionCommercialList:Xle,PodloveLicenseOptionModificationList:Yle,PodloveLicenseOptionJurisdication:Wi}},setup(){return{state:ut({episodeLicenseUrl:B.episode.license_url,podcastLicenseUrl:B.podcast.license_url}),dispatch:Ze().dispatch}},props:{scope:{type:String,default:fn.Episode}},computed:{isCommercialNModificationNeeded(){return this.getLicenseData().type==="cc"&&(this.getLicenseData().version===Mt.cc3||this.getLicenseData().version===Mt.cc4)},isJurisdicationNeeded(){return this.getLicenseData().type==="cc"&&this.getLicenseData().version===Mt.cc3}},methods:{updateVersion(e){let t=this.getLicenseData();switch(t.type="cc",e.target.value){case Mt.cc0:t.version=Mt.cc0;break;case Mt.pdmark:t.version=Mt.pdmark;break;case Mt.cc3:t.version=Mt.cc3;break;case Mt.cc4:t.version=Mt.cc4;break}this.updateLicenseDataNameNUrl(t)},updateCommercial(e){let t=this.getLicenseData();switch(e.target.value){case _r.yes:t.optionCommercial=_r.yes;break;case _r.no:t.optionCommercial=_r.no;break}this.updateLicenseDataUrl(t)},updateModification(e){let t=this.getLicenseData();switch(e.target.value){case gn.yes:t.optionModification=gn.yes;break;case gn.yesbutshare:t.optionModification=gn.yesbutshare;break;case gn.no:t.optionModification=gn.no;break}this.updateLicenseDataUrl(t)},updateJurisdication(e){let t=this.getLicenseData();const n=e.target.value,r=Wi.findIndex(o=>o.name===n);r!==void 0&&(t.optionJurisdication=Wi[r],this.updateLicenseDataUrl(t))},updateLicenseDataUrl(e){this.scope===fn.Episode&&this.dispatch(bt({prop:"license_url",value:ql(e)})),this.scope===fn.Podcast&&this.dispatch(oa({prop:"license_url",value:ql(e)}))},updateLicenseDataNameNUrl(e){this.scope===fn.Episode&&(this.dispatch(bt({prop:"license_name",value:e.version})),this.dispatch(bt({prop:"license_url",value:ql(e)}))),this.scope===fn.Podcast&&(this.dispatch(oa({prop:"license_name",value:e.version})),this.dispatch(oa({prop:"license_url",value:ql(e)})))},getLicenseData(){return this.scope===fn.Episode?this.state.episodeLicenseUrl===null||this.state.episodeLicenseUrl===void 0?{type:"cc",version:Mt.pdmark,optionCommercial:null,optionModification:null,optionJurisdication:null}:Mb(this.state.episodeLicenseUrl):this.state.podcastLicenseUrl===null||this.state.podcastLicenseUrl===void 0?{type:"cc",version:Mt.pdmark,optionCommercial:null,optionModification:null,optionJurisdication:null}:Mb(this.state.podcastLicenseUrl)}}}),Zle={class:"border-gray-200 border-b pb-2 px-3 py-5"},Qle={class:"text-lg leading-6 font-medium text-gray-900"},eae={class:"mb-3"},tae=m("label",{class:"block text-sm font-medium text-gray-700"}," Version: ",-1),nae=["value"],rae=["value"],oae={key:0,class:"mb-3"},sae=m("label",{class:"block text-sm font-medium text-gray-700"}," Allow modifications of your work? ",-1),iae=["value"],lae=["value"],aae={key:1,class:"mb-3"},uae=m("label",{class:"block text-sm font-medium text-gray-700"}," Allow commercial uses of your work? ",-1),cae=["value"],dae=["value"],fae={key:2,class:"mb-3"},pae=m("label",{class:"block text-sm font-medium text-gray-700"}," License Jurisdiction ",-1),hae=["value"],mae=["value"],gae={class:"mb-5"};function vae(e,t,n,r,o,i){var a;const l=q("LicensePreview");return I(),F(Me,null,[m("div",Zle,[m("h3",Qle,L(e.__("License Selector","podlove-podcasting-plugin-for-wordpress")),1)]),m("div",null,[m("div",eae,[tae,m("select",{value:e.getLicenseData().version,onInput:t[0]||(t[0]=c=>e.updateVersion(c)),class:"mt-1 block w-full py-2 px-3 border border-gray-300 bg-white rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"},[(I(!0),F(Me,null,Ot(e.PodloveLicenseVersionList,(c,d)=>(I(),F("option",{value:c.value,key:`version-${d}`},L(c.value),9,rae))),128))],40,nae)]),e.isCommercialNModificationNeeded?(I(),F("div",oae,[sae,m("select",{value:e.getLicenseData().optionModification,onInput:t[1]||(t[1]=c=>e.updateModification(c)),class:"mt-1 block w-full py-2 px-3 border border-gray-300 bg-white rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"},[(I(!0),F(Me,null,Ot(e.PodloveLicenseOptionModificationList,(c,d)=>(I(),F("option",{value:c.value,key:`modification-${d}`},L(c.value),9,lae))),128))],40,iae)])):Te("",!0),e.isCommercialNModificationNeeded?(I(),F("div",aae,[uae,m("select",{value:e.getLicenseData().optionCommercial,onInput:t[2]||(t[2]=c=>e.updateCommercial(c)),class:"mt-1 block w-full py-2 px-3 border border-gray-300 bg-white rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"},[(I(!0),F(Me,null,Ot(e.PodloveLicenseOptionCommercialList,(c,d)=>(I(),F("option",{value:c.value,key:`commercial-${d}`},L(c.value),9,dae))),128))],40,cae)])):Te("",!0),e.isJurisdicationNeeded?(I(),F("div",fae,[pae,m("select",{value:(a=e.getLicenseData().optionJurisdication)==null?void 0:a.name,onInput:t[3]||(t[3]=c=>e.updateJurisdication(c)),class:"mt-1 block w-full py-2 px-3 border border-gray-300 bg-white rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"},[(I(!0),F(Me,null,Ot(e.PodloveLicenseOptionJurisdication,(c,d)=>(I(),F("option",{value:c.name,key:`jurisdiction-${d}`},L(c.name),9,mae))),128))],40,hae)])):Te("",!0),m("div",gae,[z(l,{"license-data":e.getLicenseData()},null,8,["license-data"])])])],64)}const hC=Le(Jle,[["render",vae]]),yae=ge({components:{PodloveButton:Pn,Modal:Za,LicenseSelector:hC},props:{scope:{type:String,default:fn.Episode}},data(){return{openDialog:!1}},methods:{openSelector(){this.openDialog=!0},closeSelector(){this.openDialog=!1}}});function _ae(e,t,n,r,o,i){const l=q("podlove-button"),a=q("LicenseSelector"),c=q("modal");return I(),F(Me,null,[z(l,{variant:"secondary",size:"small",onClick:e.openSelector},{default:_e(()=>[Be(L(e.__("License Selector","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["onClick"]),z(c,{open:e.openDialog,onClose:e.closeSelector},{default:_e(()=>[z(a,{scope:e.scope},null,8,["scope"])]),_:1},8,["open","onClose"])],64)}const bae=Le(yae,[["render",_ae]]),wae=ge({components:{Module:In,LicenseName:vle,LicenseUrl:$le,LicenseSelector:hC,LicenseSelectorButton:bae},props:{scope:{type:String,default:fn.Episode}},computed:{isScopeEpisode(){return this.scope===fn.Episode},getModuleTitle(){return this.scope===fn.Episode?"Episode License":"Podcast License"}}}),Sae={key:0},Eae={class:"p-3"},$ae={class:"mb-3"},xae={class:"mb-3"},Tae={key:0};function Cae(e,t,n,r,o,i){const l=q("LicenseSelectorButton"),a=q("LicenseName"),c=q("LicenseUrl"),d=q("LicenseSelector"),p=q("module");return I(),Ye(p,{name:"license",title:e.getModuleTitle},{actions:_e(()=>[e.isScopeEpisode?(I(),F("div",Sae,[z(l,{scope:e.scope},null,8,["scope"])])):Te("",!0)]),default:_e(()=>[m("div",Eae,[m("div",$ae,[z(a,{scope:e.scope},null,8,["scope"])]),m("div",xae,[z(c,{scope:e.scope},null,8,["scope"])]),e.isScopeEpisode?Te("",!0):(I(),F("div",Tae,[z(d,{scope:e.scope},null,8,["scope"])]))])]),_:1},8,["title"])}const Oae=Le(wae,[["render",Cae]]),Aae={PodloveDescription:jW,PodloveChapters:AG,PodloveTranscripts:PX,PodloveAuphonic:Aee,PodloveContributors:Cne,PodloveMediaFiles:doe,PodloveRelatedEpisodes:Aie,PodlovePlusFileMigration:pC,PodlovePlusFeatures:Fse,PodlovePlusToken:cie,PodloveSoundbite:nle,PodloveShowSelect:dle,PodloveLicense:Oae};window.addEventListener("load",()=>{document.querySelectorAll('[data-client="podlove"]:not([data-loaded="true"])').forEach(e=>{e.setAttribute("data-loaded","true");const t=C2({components:{...Aae}});I7({store:ef,app:t}),t.use(u9),t.mount(e)})});globalThis.initPodloveUI=e=>{ef.dispatch(dM(e))};156 `},{default:_e(()=>[z(h,{class:"-top-2 transform -translate-y-full overflow-auto absolute z-10 py-1 mt-1 w-full max-h-60 text-base bg-white rounded-md ring-1 ring-black ring-opacity-5 shadow-lg focus:outline-none sm:text-sm"},{default:_e(()=>{var y;return[((y=e.filterOptions)==null?void 0:y.length)===0&&e.query!==""?(I(),F("div",hie," Nothing found. ")):Te("",!0),(I(!0),F(Me,null,Ot(e.filterOptions,b=>(I(),Ye(p,{key:b.title,value:b.id,as:"template"},{default:_e(({active:S,selected:T})=>[m("li",{class:gt([S?"bg-amber-100 text-amber-900":"text-gray-900","relative cursor-default select-none py-2 pl-10 pr-4"])},[m("span",{class:gt([T?"font-medium":"font-normal","block truncate"])},L(b.title),3),T?(I(),F("span",mie,[z(d,{"aria-hidden":"true",class:"w-5 h-5"})])):Te("",!0)],2)]),_:2},1032,["value"]))),128))]}),_:1})]),_:1}),e.error?(I(),F("div",gie,L(e.error),1)):Te("",!0)])]),_:1},8,["model-value","multiple"])}const yie=Le(die,[["render",vie]]),_ie=ge({name:"PodloveTag",components:{XCircleIcon:Iv},props:{value:String,id:Number},methods:{removeTag(){this.$emit("removeTag",this.id)}}}),bie={class:"m-1 inline-flex"},wie={class:"flex items-center text-xs font-bold uppercase px-3 py-1 bg-indigo-200 text-indigo-700 rounded-full"};function Sie(e,t,n,r,o,i){const l=q("XCircleIcon");return I(),F("div",bie,[m("span",wie,[Be(L(e.value)+" ",1),m("button",{class:"ml-1",onClick:t[0]||(t[0]=(...a)=>e.removeTag&&e.removeTag(...a))},[z(l,{class:"w-5 h-5"})])])])}const Eie=Le(_ie,[["render",Sie]]),$ie=ge({components:{Module:In,PodloveListbox:yie,Tag:Eie},setup(){return{state:ut({episodeList:B.relatedEpisodes.episodeList,selectEpisodes:B.relatedEpisodes.selectEpisode}),dispatch:Ze().dispatch}},created(){this.dispatch(hD())},computed:{fullEpisodeList(){return this.state.episodeList.length==0?this.state.episodeList:this.state.selectEpisodes.length==0?[{id:0,title:"Select all episodes"},...this.state.episodeList]:[{id:-1,title:"Deselect all episodes"},...this.state.episodeList]},selectEpisodeNames(){var e;return(e=this.state.episodeList)==null?void 0:e.filter(t=>this.state.selectEpisodes.includes(t.id))}},methods:{updateRelEpisodes(e){e.includes(0)?this.state.selectEpisodes=this.state.episodeList.map(function(t){return t.id}):e.includes(-1)?this.state.selectEpisodes=[]:this.state.selectEpisodes=e,this.dispatch(G$(this.state.selectEpisodes))},removeTag(e){const t=this.state.selectEpisodes.findIndex(n=>n==e);this.state.selectEpisodes.splice(t,1)}}}),xie={class:"p-3"},Tie={class:"mt-2 text-sm text-gray-500"},Cie={class:"pl-3 pb-3"};function Oie(e,t,n,r,o,i){const l=q("PodloveListbox"),a=q("Tag"),c=q("module");return I(),Ye(c,{name:"relatedEpisodes",title:e.__("Related episodes","podlove-podcasting-plugin-for-wordpress")},{default:_e(()=>[m("div",xie,[m("div",null,[z(l,{placeholder:"Select episode",options:e.fullEpisodeList,selectValues:e.state.selectEpisodes,onUpdate:t[0]||(t[0]=d=>e.updateRelEpisodes(d)),multiple:""},null,8,["options","selectValues"])]),m("p",Tie,L(e.__("Select related episodes to this episode.","podlove-podcasting-plugin-for-wordpress")),1)]),m("div",Cie,[(I(!0),F(Me,null,Ot(e.selectEpisodeNames,d=>(I(),Ye(a,{value:d.title,id:Number(d.id),onRemoveTag:t[1]||(t[1]=p=>e.removeTag(p))},null,8,["value","id"]))),256))])]),_:1},8,["title"])}const Aie=Le($ie,[["render",Oie]]),kie=ge({components:{PodloveButton:Pn},setup(){return{dispatch:Ze().dispatch}},methods:{clearSoundbite(){this.dispatch(bt({prop:"soundbite_start",value:null})),this.dispatch(bt({prop:"soundbite_duration",value:null})),this.dispatch(bt({prop:"soundbite_title",value:null}))}}});function Iie(e,t,n,r,o,i){const l=q("podlove-button");return I(),Ye(l,{variant:"secondary",size:"small",onClick:t[0]||(t[0]=a=>e.clearSoundbite())},{default:_e(()=>[Be(L(e.__("Clear","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})}const Pie=Le(kie,[["render",Iie]]),Rie=ge({setup(){return{state:ut({soundbite_start:B.episode.soundbite_start,soundbite_duration:B.episode.soundbite_duration,soundbite_title:B.episode.soundbite_title}),dispatch:Ze().dispatch}},computed:{soundbite_end(){if(this.state.soundbite_start!=null&&this.state.soundbite_duration!=null){let e=Dt.fromString(this.state.soundbite_start).totalMs,t=Dt.fromString(this.state.soundbite_duration).totalMs,n=e+t;return new Dt(n).pretty}return""}},methods:{updateSoundbiteStart(e){const t=e.target.value;let n=Dt.fromString(t).totalMs;this.dispatch(bt({prop:"soundbite_start",value:new Dt(n).pretty}))},updateSoundbiteEnd(e){const t=e.target.value;let n=Dt.fromString(t).totalMs,r=Dt.fromString(this.state.soundbite_start).totalMs;if(r<n){let o=n-r;this.dispatch(bt({prop:"soundbite_duration",value:new Dt(o).pretty}))}},updateSoundbiteDuration(e){const t=e.target.value;let n=Dt.fromString(t).totalMs;this.dispatch(bt({prop:"soundbite_duration",value:new Dt(n).pretty}))},updateSoundbiteTitle(e){this.dispatch(bt({prop:"soundbite_title",value:e.target.value}))}}}),Lie={class:"grid md:grid-cols-4 md:grid-rows-1 sm:grid-rows-4 p-3"},Fie={class:"mb-5 ml-5"},Nie={for:"soundbite-start",class:"block text-sm font-medium text-gray-700"},Mie={class:"mt-1"},Die=["value"],Uie={class:"mb-5 ml-5"},Bie={for:"soundbite-end",class:"block text-sm font-medium text-gray-700"},jie={class:"mt-1"},Vie=["value"],Hie={class:"mb-5 ml-5"},zie={for:"soundbite-duration",class:"block text-sm font-medium text-gray-700"},Wie={class:"mt-1"},qie=["value"],Kie={class:"mb-5 ml-5 md:mr-5"},Gie={for:"soundbite-title",class:"block text-sm font-medium text-gray-700"},Xie={class:"text-xs"},Yie={class:"mt-1"},Jie=["value"];function Zie(e,t,n,r,o,i){return I(),F("div",Lie,[m("div",Fie,[m("label",Nie,L(e.__("Start","podlove-podcasting-plugin-for-wordpress")),1),m("div",Mie,[m("input",{name:"soundbite-start",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",placeholder:"HH:MM:SS",value:e.state.soundbite_start,onChange:t[0]||(t[0]=l=>e.updateSoundbiteStart(l))},null,40,Die)])]),m("div",Uie,[m("label",Bie,L(e.__("End","podlove-podcasting-plugin-for-wordpress")),1),m("div",jie,[m("input",{name:"soundbite-end",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",placeholder:"HH:MM:SS",value:e.soundbite_end,onChange:t[1]||(t[1]=l=>e.updateSoundbiteEnd(l))},null,40,Vie)])]),m("div",Hie,[m("label",zie,L(e.__("Duration","podlove-podcasting-plugin-for-wordpress")),1),m("div",Wie,[m("input",{name:"soundbite-duration",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",placeholder:"HH:MM:SS",value:e.state.soundbite_duration,onChange:t[2]||(t[2]=l=>e.updateSoundbiteDuration(l))},null,40,qie)])]),m("div",Kie,[m("label",Gie,[Be(L(e.__("Soundbite title","podlove-podcasting-plugin-for-wordpress"))+" ",1),m("span",Xie,L(e.__("(optional)","podlove-podcasting-plugin-for-wordpress")),1)]),m("div",Yie,[m("input",{name:"soundbite-title",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",value:e.state.soundbite_title,onChange:t[3]||(t[3]=l=>e.updateSoundbiteTitle(l))},null,40,Jie)])])])}const Qie=Le(Rie,[["render",Zie]]),ele=ge({components:{Module:In,SoundbiteForm:Qie,SoundbiteClear:Pie},setup(){return{dispatch:Ze().dispatch}},created(){this.dispatch(zd())}});function tle(e,t,n,r,o,i){const l=q("soundbite-clear"),a=q("soundbite-form"),c=q("module");return I(),Ye(c,{name:"soundbite",title:e.__("Soundbite","podlove-podcasting-plugin-for-wordpress")},{actions:_e(()=>[z(l)]),default:_e(()=>[z(a)]),_:1},8,["title"])}const nle=Le(ele,[["render",tle]]),rle=ge({components:{},setup(){return{state:ut({shows:B.shows.list,current:B.episode.currentShow}),dispatch:Ze().dispatch}},computed:{shows(){return this.state.shows},current(){return this.state.current||""}},methods:{setShow(e){this.dispatch(bt({prop:"show",value:e??""}))}},created(){this.dispatch(X$())}}),ole={class:"flex items-center"},sle=["checked"],ile={for:"podlove-show-default",class:"ml-2 block text-sm leading-6 text-gray-900"},lle={class:"flex items-center"},ale=["id","value","onInput","checked"],ule=["for"];function cle(e,t,n,r,o,i){return I(),F("div",null,[m("div",ole,[m("input",{id:"podlove-show-default",name:"podlove-episode-show",type:"radio",class:"h-4 w-4 border-gray-300 text-indigo-600 focus:ring-indigo-600",value:null,onInput:t[0]||(t[0]=l=>e.setShow(null)),checked:e.current===""},null,40,sle),m("label",ile,L(e.__("Podcast (no show assignment)","podlove-podcasting-plugin-for-wordpress")),1)]),(I(!0),F(Me,null,Ot(e.shows,l=>(I(),F("div",lle,[m("input",{id:"podlove-show-"+l.slug,name:"podlove-episode-show",type:"radio",class:"h-4 w-4 border-gray-300 text-indigo-600 focus:ring-indigo-600",value:l.id,onInput:a=>e.setShow(l.slug),checked:l.slug===e.current},null,40,ale),m("label",{for:"podlove-show-"+l.slug,class:"ml-2 block text-sm leading-6 text-gray-900"},L(l.title),9,ule)]))),256))])}const dle=Le(rle,[["render",cle],["__scopeId","data-v-eaebb871"]]);var Mt=(e=>(e.cc0="Public Domain License",e.pdmark="Public Domain Mark License",e.cc3="Creative Commons 3.0 and earlier",e.cc4="Creative Commons 4.0",e))(Mt||{}),br=(e=>(e.yes="Yes",e.no="No",e))(br||{}),gn=(e=>(e.yes="Yes",e.yesbutshare="Yes, as long as others share alike",e.no="No",e))(gn||{}),fn=(e=>(e.Episode="Episode",e.Podcast="Podcast",e))(fn||{});const Wi=[{symbol:"international",name:"International",version:"3.0"},{symbol:"ar",name:"Argentina",version:"2.5"},{symbol:"au",name:"Australia",version:"3.0"},{symbol:"at",name:"Austria",version:"3.0"},{symbol:"be",name:"Belgium",version:"2.0"},{symbol:"br",name:"Brazil",version:"3.0"},{symbol:"bg",name:"Bulgaria",version:"2.5"},{symbol:"ca",name:"Canada",version:"2.5"},{symbol:"cl",name:"Chile",version:"3.0"},{symbol:"cn",name:"China Mainland",version:"3.0"},{symbol:"co",name:"Colombia",version:"2.5"},{symbol:"cr",name:"Costa Rica",version:"3.0"},{symbol:"hr",name:"Croatia",version:"3.0"},{symbol:"cz",name:"Czech Republic",version:"3.0"},{symbol:"dk",name:"Denmark",version:"2.5"},{symbol:"ec",name:"Ecuador",version:"3.0"},{symbol:"eg",name:"Egypt",version:"3.0"},{symbol:"ee",name:"Estonia",version:"3.0"},{symbol:"fi",name:"Finland",version:"1.0"},{symbol:"fr",name:"France",version:"3.0"},{symbol:"de",name:"Germany",version:"3.0"},{symbol:"gr",name:"Greece",version:"3.0"},{symbol:"gt",name:"Guatemala",version:"3.0"},{symbol:"hk",name:"Hong Kong",version:"3.0"},{symbol:"hu",name:"Hungary",version:"2.5"},{symbol:"igo",name:"IGO",version:"3.0"},{symbol:"in",name:"India",version:"2.5"},{symbol:"ie",name:"Ireland",version:"3.0"},{symbol:"il",name:"Israel",version:"2.5"},{symbol:"it",name:"Italy",version:"3.0"},{symbol:"jp",name:"Japan",version:"2.1"},{symbol:"lu",name:"Luxembourg",version:"3.0"},{symbol:"mk",name:"Macedonia",version:"2.5"},{symbol:"my",name:"Malaysia",version:"2.5"},{symbol:"mt",name:"Malta",version:"2.5"},{symbol:"mx",name:"Mexico",version:"2.5"},{symbol:"nl",name:"Netherlands",version:"3.0"},{symbol:"nz",name:"New Zealand",version:"3.0"},{symbol:"no",name:"Norway",version:"3.0"},{symbol:"pe",name:"Peru",version:"2.5"},{symbol:"ph",name:"Philippines",version:"3.0"},{symbol:"pl",name:"Poland",version:"3.0"},{symbol:"pt",name:"Portugal",version:"3.0"},{symbol:"pr",name:"Puerto Rico",version:"3.0"},{symbol:"ro",name:"Romania",version:"3.0"},{symbol:"rs",name:"Serbia",version:"3.0"},{symbol:"sg",name:"Singapore",version:"3.0"},{symbol:"si",name:"Slovenia",version:"2.5"},{symbol:"za",name:"South Africa",version:"2.5"},{symbol:"kp",name:"South Korea",version:"2.0"},{symbol:"es",name:"Spain",version:"3.0"},{symbol:"se",name:"Sweden",version:"2.5"},{symbol:"ch",name:"Switzerland",version:"3.0"},{symbol:"tw",name:"Taiwan",version:"3.0"},{symbol:"th",name:"Thailand",version:"3.0"},{symbol:"gb",name:"UK: England & Wales",version:"2.0"},{symbol:"gb_sc",name:"UK: Scotland",version:"2.5"},{symbol:"ug",name:"Uganda",version:"3.0"},{symbol:"us",name:"United States",version:"3.0"},{symbol:"vn",name:"Vietnam",version:"3.0"}],fle=ge({components:{Module:In},props:{scope:{type:String,default:fn.Episode}},setup(){return{state:ut({episodeLicenseName:B.episode.license_name,podcastLicenseName:B.podcast.license_name}),dispatch:Ze().dispatch}},created(){this.dispatch(zd())},computed:{getLicenseName(){return this.scope==fn.Episode?this.state.episodeLicenseName:this.state.podcastLicenseName}},methods:{updateLicenseName(e){this.scope===fn.Episode&&this.dispatch(bt({prop:"license_name",value:e.target.value})),this.scope===fn.Podcast&&this.dispatch(oa({prop:"license_name",value:e.target.value}))}}}),ple={for:"episode-license-name",class:"block text-sm font-medium text-gray-700"},hle={class:"mt-1"},mle=["value"];function gle(e,t,n,r,o,i){return I(),F("div",null,[m("label",ple,L(e.__("License name","podlove-podcasting-plugin-for-wordpress")),1),m("div",hle,[m("input",{name:"episode-license-name",type:"text",value:e.getLicenseName,onInput:t[0]||(t[0]=(...l)=>e.updateLicenseName&&e.updateLicenseName(...l)),class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md"},null,40,mle)])])}const vle=Le(fle,[["render",gle]]),yle=ge({components:{Module:In},props:{scope:{type:String,default:fn.Episode}},setup(){return{state:ut({episodeLicenseUrl:B.episode.license_url,podcastLicenseUrl:B.podcast.license_url}),dispatch:Ze().dispatch}},created(){this.dispatch(zd())},computed:{getLicenseUrl(){return this.scope==fn.Episode?this.state.episodeLicenseUrl:this.state.podcastLicenseUrl}},methods:{updateLicenseUrl(e){this.scope===fn.Episode&&this.dispatch(bt({prop:"license_url",value:e.target.value})),this.scope===fn.Podcast&&this.dispatch(oa({prop:"license_url",value:e.target.value}))}}}),_le={for:"episode-license-name",class:"block text-sm font-medium text-gray-700"},ble={class:"mt-1"},wle=["value"],Sle={class:"mt-2 text-sm text-gray-500"};function Ele(e,t,n,r,o,i){return I(),F("div",null,[m("label",_le,L(e.__("License url","podlove-podcasting-plugin-for-wordpress")),1),m("div",ble,[m("input",{name:"episode-license-name",type:"text",value:e.getLicenseUrl,onInput:t[0]||(t[0]=(...l)=>e.updateLicenseUrl&&e.updateLicenseUrl(...l)),class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md"},null,40,wle)]),m("p",Sle,L(e.__("Example: http://creativecommons.org/licenses/by/3.0/","podlove-podcasting-plugin-for-wordpress")),1)])}const $le=Le(yle,[["render",Ele]]),xle="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFgAAAAfCAMAAABUFvrSAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAPBQTFRFLy8v7+/vz8/PHx8fDw8P+vn3X19fj4+P39/fn5+fb29vT09Pr6+v+fn53t7eZWVl6urq/f395+fn5eXl9/f38fHxMTEx+/v7jo6Ozc3N2dnZ8/PzhISE/v7+5OTk9vXz6ejoPj4+kJCQ3d3d6unnxcXFi4uL0tLS5ubm9PT0QUFB4uLi1dXV7Ozsvr6+LCwsy8vL6urnnp6ezs7O+Pj48vLyenp69fX1+fj2urq6CgsJ09PTl5eXt7e31tbW4eHhjY2N9vb2U1NTGRkZTU1NbW1tioqKf39/ysrK6Oflv7+/Pz8/7erh////AAAA////iBrkuAAAAFB0Uk5T/////////////////////////////////////////////////////////////////////////////////////////////////////////wATc6Z5AAACrklEQVR42rSW53bbMAyFOVSRGnbsZji7e++992ALFsj7v00BaiTpsfzDtXGOEw3qI3B1QUqd0FriRNGftQQpwrXEebAHDr1qsC9tI48Nejq69+g/Re7B4czFbPfLZFytBKwVH1eFQTRF5MPvn45vqRWAhatMJwrI2fb4zds0IoYQctbHys/yCUuWp/oCp5AXKZEhcM4j5L8BELxmGX5M3h2mEQHBY4gYiX8RjUEgQLnD8jn0GqtBcM0yCC/NHcUWnPOH4z3VgIk09OBIRvdgy5Nk4AbBlrKWlshikYyubI9fNuBQYNGDOYoeHLFcpLEhKtJ4olLg0Jhkf3KjlQKKrAeXsUZ1CuZsi8GMeVZJuBKIqFFKykS7B+OdVgoehyBEAYOA+SWKxl5XZcpoLjim6jEj8tBpwbrkW5sbPTjV5JpbLtWEAlaeC86GwIofloFcnKIo2aX84+jixtmuifMBalhj6sEF2cRPIv8DXqJBTjO2VEMrRZ9xzgtT4GQrgFqRAh5QisOs/FGQK2BFQC3WmA/gVOMGzK4wbJyI3mlto3ST9Aj3Bj8RxRnyTuNiV5CXJhRXaHbF1mbnCvZDzZgqYWqLAvaeH2zAZgBs0vSNj5lLpvHxtYNx13kVRpEgOddg4NbnS7k3DdhhPR88v/Pi6MFhB3YM7grnemqepUCj0aYrfG8A3OrarBWVbla7h89v7/Qt7XmRMiGRIssFkPGpQ9eArR4Ai7DCk9XNt6toOdt+n0aIKwreXIJHU8n7LyFzLgKj6iK5QrFN1PB6bKFbj2vG5NNX97+tYgeRUpQDrcHJ1pcfjSZ3V7TnnWnYrD6avfi6os0UdWh3aeU0Trf2n169+XPp+Hz+u0L33xXTO5sf9x7/WjqeMXh2YU68vqSfXP69fFynNX67rSn+CjAANTLO7qEvlcgAAAAASUVORK5CYII=",Tle="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFgAAAAfCAMAAABUFvrSAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAPNQTFRFv7+/7+/vX19fDw8PHx8fn5+fLy8v39/fz8/Pb29vr6+vT09Pj4+P+fn5/f39ZWVl5eXlzs7O6urq8fHx9/f36ejovr6++/v7jY2N4+Pj2dnZp6enzc3Nenp69PT08/PzXFxc8vLyTk5OIyMj9fX13d3d5ubmXl5eDAwMNjY2JiYmra2t1NTUxcXF4uLiLCsrFxcXVVVV/v7+GRkZMTExW1tbyMjIt7e3np6ednZ2mJiY7Ozsjo6O1dXV3t7e7e3t09PTkJCQi4uL7u7uy8vLU1NTCgsJ4eHh1tbWioqKysrK5+fnf39/Pz8/7erh////AAAA7t9IFQAAArpJREFUeNq0ludy2zAQhA8dLJLl3u303nt3ejMuwPs/Te4AmrIzYn7YEjTUsIAfib1dgBDTQlqE9GchLUGKC2n/gD2AnztYGCzyNCaORz8eXlDkHmzU9KS+ezB5cWcuYCGZV9UAdcVPuLR+7+XVeYBJBWVORGkJ/Xzb737PPTCEYJMOmjdNB1IlGfhKwHwV/wOuUrJiqryzKe1vL7/OPULugPRs2pAPIEF2fwypjXRbMwiGjisMvRDbQuiU7j/Ye1TASUXowZi86MEqeqUEDIJ5SK6vH5ZHXVm9vl/AoY2mB3sXTQ9GHuuwxj7vFd14h4dLxdy5sVHAVFHVgyuEqKdguknKITBd1N1hgEqWqKS09fajLVJQs7HGOloG15HYiMgaC9FIGsEAGOm2kg7V9iVU6ebhh8c9ONXs9SxTloLDRWCk/k4PgW0efVFLVS52BsS1ydKpnhbtjPsV4rDGxVInEicJHXh0vHSxgNhUdeC6zcNCcwrMAeE0Yg2GQxL4FNVLlz/UocnxmakxS9cWQxSxNTGaAiZXOLIfRgFRkDsoD57tGLgOyM6Imj0zA0zqcg2yK3ztobPPu9Hxs6545Ic6l4ISGI3OPneCPFnAMACui8id15WPLk9Ey2uTWx24IYf5zrlOVNHxCKTzBWzoNxMcdVJiSsZiYxwfvukiTRuCUORKwrT0JgDJRC9YAzpDth4AG34nDnKF2PAkJ8hZG6OV2yeRFo5kqCufJwsXJYASnpIeClgPgfm0PLWuCJqv5Obqbj+71fQgyo5jUbGNCkBy6J0rYB7RbDC/oe1XO+Cjo2vvn85jBbF5saPUuew3+2W00sxlzRNn5r/wZPPytzktpiRgt5wq6eJ4befVp8+/zt22zn5XAK0gJks9Ppj83Pv6+9xteehLaDxaXVk/Pn9bTwv8dltQ+yvAAF/L4Ldao5NwAAAAAElFTkSuQmCC",Cle="/wp-content/plugins/podlove-publisher/client/dist/0_0.png",Ole="/wp-content/plugins/podlove-publisher/client/dist/0_1.png",Ale="/wp-content/plugins/podlove-publisher/client/dist/1_0.png",kle="/wp-content/plugins/podlove-publisher/client/dist/1_1.png",Ile="/wp-content/plugins/podlove-publisher/client/dist/10_0.png",Ple="/wp-content/plugins/podlove-publisher/client/dist/10_1.png";function ql(e){if(e.type===null||e.type!="cc")return null;if(e.version===Mt.cc0)return"http://creativecommons.org/publicdomain/zero/1.0/";if(e.version===Mt.pdmark)return"http://creativecommons.org/publicdomain/mark/1.0/";if(e.version===Mt.cc3){let t="http://creativecommons.org/licenses/by";return e.optionCommercial===br.no&&(t=t+"-nc"),e.optionModification===gn.yes?t=t+"/":e.optionModification===gn.no?t=t+"-nd/":t=t+"-sa/",e.optionJurisdication===null||e.optionJurisdication.symbol==="international"?t=t+"3.0/":t=t+e.optionJurisdication.version+"/"+e.optionJurisdication.symbol+"/",t+"deed.en"}if(e.version===Mt.cc4){let t="http://creativecommons.org/licenses/by";return e.optionCommercial==br.no&&(t=t+"-nc"),e.optionModification==gn.yes?t=t+"/":e.optionModification==gn.no?t=t+"-nd/":t=t+"-sa/",t+"4.0"}return null}function Fb(e,t){if(e.type===null||e.type!=="cc")return null;if(e.version===Mt.cc0)return xle;if(e.version===Mt.pdmark)return Tle;if(e.optionModification===null||e.optionCommercial===null)return null;switch(e.optionModification){case gn.no:return e.optionCommercial===br.no?Cle:Ole;case gn.yes:return e.optionCommercial===br.no?Ale:kle;case gn.yesbutshare:return e.optionCommercial===br.no?Ile:Ple}}function Nb(e){const t=e.toLowerCase();if(t.indexOf("creativecommons.org")<0)return{type:null,version:null,optionCommercial:null,optionModification:null,optionJurisdication:null};let n=null;t.indexOf("/publicdomain/zero/")>=0?n=Mt.cc0:t.indexOf("/publicdomain/mark/")>=0?n=Mt.pdmark:t.indexOf("/4.0")>=0?n=Mt.cc4:n=Mt.cc3;const r=t.split("/").slice(4);let o=br.yes;r[0].includes("nc")&&(o=br.no);let i=gn.yes;r[0].includes("sa")?i=gn.yesbutshare:r[0].includes("nd")&&(i=gn.no);let l=Wi[0];if(r.length>2){const a=Wi.findIndex(c=>c.symbol===r[2]);a>0&&(l=Wi[a])}return{type:"cc",version:n,optionCommercial:o,optionModification:i,optionJurisdication:l}}const Rle=ge({components:{Module:In},props:{licenseData:{type:null,default:{type:"cc",version:Mt.pdmark,optionCommercial:null,optionModification:null,optionJurisdication:null}}},setup(){return{state:ut({baseUrl:B.runtime.baseUrl}),dispatch:Ze().dispatch}},computed:{licenseUrl(){return ql(this.licenseData)},imageUrl(){return Fb(this.licenseData,this.state.baseUrl)},isImageAvailable(){return Fb(this.licenseData,this.state.baseUrl)!==null}}}),Lle={class:"mt-3"},Fle=m("div",{class:"mb-3 text-sm font-medium text-gray-700"}," License preview: ",-1),Nle={key:0},Mle={class:"mb-3 w-full"},Dle={class:"flex justify-center items-center"},Ule=["src"],Ble={class:"mb-3 w-full text-center"},jle=m("p",{class:"text-sm font-medium text-gray-700"},"This work is licensend under ",-1),Vle=["href"],Hle={key:0},zle=m("p",{class:"text-sm font-medium text-gray-700"},"No license selected!",-1),Wle=[zle];function qle(e,t,n,r,o,i){return I(),F("div",Lle,[Fle,e.isImageAvailable?(I(),F("div",Nle,[m("div",null,[m("div",Mle,[m("div",Dle,[m("img",{class:"text-center",src:`${e.imageUrl}`},null,8,Ule)])]),m("div",Ble,[jle,m("a",{class:"text-sm font-medium text-gray-700",href:`${e.licenseUrl}`},L(e.licenseUrl),9,Vle)])]),e.isImageAvailable?Te("",!0):(I(),F("div",Hle,Wle))])):Te("",!0)])}const Kle=Le(Rle,[["render",qle]]),Gle=Object.entries(Mt).map(([e,t])=>({key:e,value:t})),Xle=Object.entries(br).map(([e,t])=>({key:e,value:t})),Yle=Object.entries(gn).map(([e,t])=>({key:e,value:t})),Jle=ge({components:{PodloveButton:Pn,Modal:Za,LicensePreview:Kle},data(){return{PodloveLicenseVersionList:Gle,PodloveLicenseOptionCommercialList:Xle,PodloveLicenseOptionModificationList:Yle,PodloveLicenseOptionJurisdication:Wi}},setup(){return{state:ut({episodeLicenseUrl:B.episode.license_url,podcastLicenseUrl:B.podcast.license_url}),dispatch:Ze().dispatch}},props:{scope:{type:String,default:fn.Episode}},computed:{isCommercialNModificationNeeded(){return this.getLicenseData().type==="cc"&&(this.getLicenseData().version===Mt.cc3||this.getLicenseData().version===Mt.cc4)},isJurisdicationNeeded(){return this.getLicenseData().type==="cc"&&this.getLicenseData().version===Mt.cc3}},methods:{updateVersion(e){let t=this.getLicenseData();switch(t.type="cc",e.target.value){case Mt.cc0:t.version=Mt.cc0;break;case Mt.pdmark:t.version=Mt.pdmark;break;case Mt.cc3:t.version=Mt.cc3;break;case Mt.cc4:t.version=Mt.cc4;break}this.updateLicenseDataNameNUrl(t)},updateCommercial(e){let t=this.getLicenseData();switch(e.target.value){case br.yes:t.optionCommercial=br.yes;break;case br.no:t.optionCommercial=br.no;break}this.updateLicenseDataUrl(t)},updateModification(e){let t=this.getLicenseData();switch(e.target.value){case gn.yes:t.optionModification=gn.yes;break;case gn.yesbutshare:t.optionModification=gn.yesbutshare;break;case gn.no:t.optionModification=gn.no;break}this.updateLicenseDataUrl(t)},updateJurisdication(e){let t=this.getLicenseData();const n=e.target.value,r=Wi.findIndex(o=>o.name===n);r!==void 0&&(t.optionJurisdication=Wi[r],this.updateLicenseDataUrl(t))},updateLicenseDataUrl(e){this.scope===fn.Episode&&this.dispatch(bt({prop:"license_url",value:ql(e)})),this.scope===fn.Podcast&&this.dispatch(oa({prop:"license_url",value:ql(e)}))},updateLicenseDataNameNUrl(e){this.scope===fn.Episode&&(this.dispatch(bt({prop:"license_name",value:e.version})),this.dispatch(bt({prop:"license_url",value:ql(e)}))),this.scope===fn.Podcast&&(this.dispatch(oa({prop:"license_name",value:e.version})),this.dispatch(oa({prop:"license_url",value:ql(e)})))},getLicenseData(){return this.scope===fn.Episode?this.state.episodeLicenseUrl===null||this.state.episodeLicenseUrl===void 0?{type:"cc",version:Mt.pdmark,optionCommercial:null,optionModification:null,optionJurisdication:null}:Nb(this.state.episodeLicenseUrl):this.state.podcastLicenseUrl===null||this.state.podcastLicenseUrl===void 0?{type:"cc",version:Mt.pdmark,optionCommercial:null,optionModification:null,optionJurisdication:null}:Nb(this.state.podcastLicenseUrl)}}}),Zle={class:"border-gray-200 border-b pb-2 px-3 py-5"},Qle={class:"text-lg leading-6 font-medium text-gray-900"},eae={class:"mb-3"},tae=m("label",{class:"block text-sm font-medium text-gray-700"}," Version: ",-1),nae=["value"],rae=["value"],oae={key:0,class:"mb-3"},sae=m("label",{class:"block text-sm font-medium text-gray-700"}," Allow modifications of your work? ",-1),iae=["value"],lae=["value"],aae={key:1,class:"mb-3"},uae=m("label",{class:"block text-sm font-medium text-gray-700"}," Allow commercial uses of your work? ",-1),cae=["value"],dae=["value"],fae={key:2,class:"mb-3"},pae=m("label",{class:"block text-sm font-medium text-gray-700"}," License Jurisdiction ",-1),hae=["value"],mae=["value"],gae={class:"mb-5"};function vae(e,t,n,r,o,i){var a;const l=q("LicensePreview");return I(),F(Me,null,[m("div",Zle,[m("h3",Qle,L(e.__("License Selector","podlove-podcasting-plugin-for-wordpress")),1)]),m("div",null,[m("div",eae,[tae,m("select",{value:e.getLicenseData().version,onInput:t[0]||(t[0]=c=>e.updateVersion(c)),class:"mt-1 block w-full py-2 px-3 border border-gray-300 bg-white rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"},[(I(!0),F(Me,null,Ot(e.PodloveLicenseVersionList,(c,d)=>(I(),F("option",{value:c.value,key:`version-${d}`},L(c.value),9,rae))),128))],40,nae)]),e.isCommercialNModificationNeeded?(I(),F("div",oae,[sae,m("select",{value:e.getLicenseData().optionModification,onInput:t[1]||(t[1]=c=>e.updateModification(c)),class:"mt-1 block w-full py-2 px-3 border border-gray-300 bg-white rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"},[(I(!0),F(Me,null,Ot(e.PodloveLicenseOptionModificationList,(c,d)=>(I(),F("option",{value:c.value,key:`modification-${d}`},L(c.value),9,lae))),128))],40,iae)])):Te("",!0),e.isCommercialNModificationNeeded?(I(),F("div",aae,[uae,m("select",{value:e.getLicenseData().optionCommercial,onInput:t[2]||(t[2]=c=>e.updateCommercial(c)),class:"mt-1 block w-full py-2 px-3 border border-gray-300 bg-white rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"},[(I(!0),F(Me,null,Ot(e.PodloveLicenseOptionCommercialList,(c,d)=>(I(),F("option",{value:c.value,key:`commercial-${d}`},L(c.value),9,dae))),128))],40,cae)])):Te("",!0),e.isJurisdicationNeeded?(I(),F("div",fae,[pae,m("select",{value:(a=e.getLicenseData().optionJurisdication)==null?void 0:a.name,onInput:t[3]||(t[3]=c=>e.updateJurisdication(c)),class:"mt-1 block w-full py-2 px-3 border border-gray-300 bg-white rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"},[(I(!0),F(Me,null,Ot(e.PodloveLicenseOptionJurisdication,(c,d)=>(I(),F("option",{value:c.name,key:`jurisdiction-${d}`},L(c.name),9,mae))),128))],40,hae)])):Te("",!0),m("div",gae,[z(l,{"license-data":e.getLicenseData()},null,8,["license-data"])])])],64)}const hC=Le(Jle,[["render",vae]]),yae=ge({components:{PodloveButton:Pn,Modal:Za,LicenseSelector:hC},props:{scope:{type:String,default:fn.Episode}},data(){return{openDialog:!1}},methods:{openSelector(){this.openDialog=!0},closeSelector(){this.openDialog=!1}}});function _ae(e,t,n,r,o,i){const l=q("podlove-button"),a=q("LicenseSelector"),c=q("modal");return I(),F(Me,null,[z(l,{variant:"secondary",size:"small",onClick:e.openSelector},{default:_e(()=>[Be(L(e.__("License Selector","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["onClick"]),z(c,{open:e.openDialog,onClose:e.closeSelector},{default:_e(()=>[z(a,{scope:e.scope},null,8,["scope"])]),_:1},8,["open","onClose"])],64)}const bae=Le(yae,[["render",_ae]]),wae=ge({components:{Module:In,LicenseName:vle,LicenseUrl:$le,LicenseSelector:hC,LicenseSelectorButton:bae},props:{scope:{type:String,default:fn.Episode}},computed:{isScopeEpisode(){return this.scope===fn.Episode},getModuleTitle(){return this.scope===fn.Episode?"Episode License":"Podcast License"}}}),Sae={key:0},Eae={class:"p-3"},$ae={class:"mb-3"},xae={class:"mb-3"},Tae={key:0};function Cae(e,t,n,r,o,i){const l=q("LicenseSelectorButton"),a=q("LicenseName"),c=q("LicenseUrl"),d=q("LicenseSelector"),p=q("module");return I(),Ye(p,{name:"license",title:e.getModuleTitle},{actions:_e(()=>[e.isScopeEpisode?(I(),F("div",Sae,[z(l,{scope:e.scope},null,8,["scope"])])):Te("",!0)]),default:_e(()=>[m("div",Eae,[m("div",$ae,[z(a,{scope:e.scope},null,8,["scope"])]),m("div",xae,[z(c,{scope:e.scope},null,8,["scope"])]),e.isScopeEpisode?Te("",!0):(I(),F("div",Tae,[z(d,{scope:e.scope},null,8,["scope"])]))])]),_:1},8,["title"])}const Oae=Le(wae,[["render",Cae]]),Aae={PodloveDescription:jW,PodloveChapters:AG,PodloveTranscripts:PX,PodloveAuphonic:Aee,PodloveContributors:Cne,PodloveMediaFiles:doe,PodloveRelatedEpisodes:Aie,PodlovePlusFileMigration:pC,PodlovePlusFeatures:Fse,PodlovePlusToken:cie,PodloveSoundbite:nle,PodloveShowSelect:dle,PodloveLicense:Oae};window.addEventListener("load",()=>{document.querySelectorAll('[data-client="podlove"]:not([data-loaded="true"])').forEach(e=>{e.setAttribute("data-loaded","true");const t=T2({components:{...Aae}});I7({store:tf,app:t}),t.use(u9),t.mount(e)})});globalThis.initPodloveUI=e=>{tf.dispatch(dM(e))}; -
podlove-podcasting-plugin-for-wordpress/trunk/lib/modules/contributors/rest_api.php
r3026472 r3445642 616 616 { 617 617 $contributor = new Contributor(); 618 $contributor->visibility = 0;618 $contributor->visibility = 1; 619 619 $contributor->contributioncount = 0; 620 620 $contributor->save(); -
podlove-podcasting-plugin-for-wordpress/trunk/lib/template/episode.php
r3077497 r3445642 432 432 public function files() 433 433 { 434 $files = array_filter($this->episode->media_files(), function ($file) { 435 return (bool) $file->active; 436 }); 437 434 438 return array_map(function ($file) { 435 439 return new File($file); 436 }, $ this->episode->media_files());440 }, $files); 437 441 } 438 442 … … 453 457 public function file($asset_name) 454 458 { 459 $files = array_filter($this->episode->media_files(['identifier' => $asset_name]), function ($file) { 460 return (bool) $file->active; 461 }); 455 462 $files = array_map(function ($file) { 456 463 return new File($file); 457 }, $ this->episode->media_files(['identifier' => $asset_name]));464 }, $files); 458 465 459 466 if ($files) { -
podlove-podcasting-plugin-for-wordpress/trunk/podlove.php
r3431480 r3445642 3 3 * Plugin Name: Podlove Podcast Publisher 4 4 * Plugin URI: https://podlove.org/podlove-podcast-publisher/ 5 * Version: 4.3. 25 * Version: 4.3.3 6 6 * Requires at least: 4.9.6 7 7 * Requires PHP: 8.0 -
podlove-podcasting-plugin-for-wordpress/trunk/readme.txt
r3431480 r3445642 4 4 Tags: podlove, podcast, publishing, rss, audio 5 5 Tested up to: 6.9.0 6 Stable tag: 4.3. 26 Stable tag: 4.3.3 7 7 Requires at least: 4.9.6 8 8 Requires PHP: 8.0 … … 119 119 120 120 == Changelog == 121 122 = 4.3.3 = 123 124 * fix: allow selecting chapter images from the media library 125 * fix: prevent media files module from hanging on new episodes without an ID 126 * change: default new contributors to visible 127 * fix: treat inactive episode files as nonexistent in templates 121 128 122 129 = 4.3.2 = -
podlove-podcasting-plugin-for-wordpress/trunk/vendor/composer/installed.php
r3431480 r3445642 2 2 'root' => array( 3 3 'name' => 'podlove/podcast-publisher', 4 'pretty_version' => '4.3. 2',5 'version' => '4.3. 2.0',6 'reference' => '3 3e9cba1955e4e1f85e02ef280191a69a1813e50',4 'pretty_version' => '4.3.3', 5 'version' => '4.3.3.0', 6 'reference' => '3ffd3af891956ea3787784416d8ee3ad20e955ca', 7 7 'type' => 'library', 8 8 'install_path' => __DIR__ . '/../../', … … 144 144 ), 145 145 'podlove/podcast-publisher' => array( 146 'pretty_version' => '4.3. 2',147 'version' => '4.3. 2.0',148 'reference' => '3 3e9cba1955e4e1f85e02ef280191a69a1813e50',146 'pretty_version' => '4.3.3', 147 'version' => '4.3.3.0', 148 'reference' => '3ffd3af891956ea3787784416d8ee3ad20e955ca', 149 149 'type' => 'library', 150 150 'install_path' => __DIR__ . '/../../',
Note: See TracChangeset
for help on using the changeset viewer.