mirror of
https://github.com/Physton/sd-webui-prompt-all-in-one.git
synced 2026-03-05 21:39:50 +00:00
128 lines
581 KiB
JavaScript
128 lines
581 KiB
JavaScript
(function(nr){typeof define=="function"&&define.amd?define(nr):nr()})(function(){"use strict";var xj=Object.defineProperty;var Sj=(nr,bt,ki)=>bt in nr?xj(nr,bt,{enumerable:!0,configurable:!0,writable:!0,value:ki}):nr[bt]=ki;var $b=(nr,bt,ki)=>(Sj(nr,typeof bt!="symbol"?bt+"":bt,ki),ki);function nr(e,t){const n=Object.create(null),r=e.split(",");for(let i=0;i<r.length;i++)n[r[i]]=!0;return t?i=>!!n[i.toLowerCase()]:i=>!!n[i]}function bt(e){if(Qe(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],i=zt(r)?jb(r):bt(r);if(i)for(const o in i)t[o]=i[o]}return t}else{if(zt(e))return e;if(Rt(e))return e}}const ki=/;(?![^(]*\))/g,Bb=/:([^]+)/,Hb=/\/\*.*?\*\//gs;function jb(e){const t={};return e.replace(Hb,"").split(ki).forEach(n=>{if(n){const r=n.split(Bb);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function at(e){let t="";if(zt(e))t=e;else if(Qe(e))for(let n=0;n<e.length;n++){const r=at(e[n]);r&&(t+=r+" ")}else if(Rt(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Ub=nr("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function fp(e){return!!e||e===""}function Wb(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=hs(e[r],t[r]);return n}function hs(e,t){if(e===t)return!0;let n=pp(e),r=pp(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=gs(e),r=gs(t),n||r)return e===t;if(n=Qe(e),r=Qe(t),n||r)return n&&r?Wb(e,t):!1;if(n=Rt(e),r=Rt(t),n||r){if(!n||!r)return!1;const i=Object.keys(e).length,o=Object.keys(t).length;if(i!==o)return!1;for(const s in e){const l=e.hasOwnProperty(s),c=t.hasOwnProperty(s);if(l&&!c||!l&&c||!hs(e[s],t[s]))return!1}}return String(e)===String(t)}function ju(e,t){return e.findIndex(n=>hs(n,t))}const ye=e=>zt(e)?e:e==null?"":Qe(e)||Rt(e)&&(e.toString===gp||!pt(e.toString))?JSON.stringify(e,dp,2):String(e),dp=(e,t)=>t&&t.__v_isRef?dp(e,t.value):uo(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i])=>(n[`${r} =>`]=i,n),{})}:co(t)?{[`Set(${t.size})`]:[...t.values()]}:Rt(t)&&!Qe(t)&&!mp(t)?String(t):t,Dt={},lo=[],hr=()=>{},Kb=()=>!1,Vb=/^on[^a-z]/,Ma=e=>Vb.test(e),Uu=e=>e.startsWith("onUpdate:"),Sn=Object.assign,Wu=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},qb=Object.prototype.hasOwnProperty,_t=(e,t)=>qb.call(e,t),Qe=Array.isArray,uo=e=>ms(e)==="[object Map]",co=e=>ms(e)==="[object Set]",pp=e=>ms(e)==="[object Date]",pt=e=>typeof e=="function",zt=e=>typeof e=="string",gs=e=>typeof e=="symbol",Rt=e=>e!==null&&typeof e=="object",hp=e=>Rt(e)&&pt(e.then)&&pt(e.catch),gp=Object.prototype.toString,ms=e=>gp.call(e),zb=e=>ms(e).slice(8,-1),mp=e=>ms(e)==="[object Object]",Ku=e=>zt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Fa=nr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),$a=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Gb=/-(\w)/g,Sr=$a(e=>e.replace(Gb,(t,n)=>n?n.toUpperCase():"")),Yb=/\B([A-Z])/g,fo=$a(e=>e.replace(Yb,"-$1").toLowerCase()),Ba=$a(e=>e.charAt(0).toUpperCase()+e.slice(1)),Vu=$a(e=>e?`on${Ba(e)}`:""),vs=(e,t)=>!Object.is(e,t),Ha=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},ja=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Ua=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let vp;const Xb=()=>vp||(vp=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let Kn;class Jb{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Kn,!t&&Kn&&(this.index=(Kn.scopes||(Kn.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Kn;try{return Kn=this,t()}finally{Kn=n}}}on(){Kn=this}off(){Kn=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 i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0,this._active=!1}}}function Zb(e,t=Kn){t&&t.active&&t.effects.push(e)}function yp(){return Kn}function Qb(e){Kn&&Kn.cleanups.push(e)}const qu=e=>{const t=new Set(e);return t.w=0,t.n=0,t},bp=e=>(e.w&si)>0,Cp=e=>(e.n&si)>0,eC=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=si},tC=e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const i=t[r];bp(i)&&!Cp(i)?i.delete(e):t[n++]=i,i.w&=~si,i.n&=~si}t.length=n}},zu=new WeakMap;let ys=0,si=1;const Gu=30;let gr;const Ei=Symbol(""),Yu=Symbol("");class Xu{constructor(t,n=null,r){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,Zb(this,r)}run(){if(!this.active)return this.fn();let t=gr,n=ai;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=gr,gr=this,ai=!0,si=1<<++ys,ys<=Gu?eC(this):_p(this),this.fn()}finally{ys<=Gu&&tC(this),si=1<<--ys,gr=this.parent,ai=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){gr===this?this.deferStop=!0:this.active&&(_p(this),this.onStop&&this.onStop(),this.active=!1)}}function _p(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let ai=!0;const wp=[];function po(){wp.push(ai),ai=!1}function ho(){const e=wp.pop();ai=e===void 0?!0:e}function In(e,t,n){if(ai&&gr){let r=zu.get(e);r||zu.set(e,r=new Map);let i=r.get(n);i||r.set(n,i=qu()),Tp(i)}}function Tp(e,t){let n=!1;ys<=Gu?Cp(e)||(e.n|=si,n=!bp(e)):n=!e.has(gr),n&&(e.add(gr),gr.deps.push(e))}function jr(e,t,n,r,i,o){const s=zu.get(e);if(!s)return;let l=[];if(t==="clear")l=[...s.values()];else if(n==="length"&&Qe(e)){const c=Number(r);s.forEach((d,h)=>{(h==="length"||h>=c)&&l.push(d)})}else switch(n!==void 0&&l.push(s.get(n)),t){case"add":Qe(e)?Ku(n)&&l.push(s.get("length")):(l.push(s.get(Ei)),uo(e)&&l.push(s.get(Yu)));break;case"delete":Qe(e)||(l.push(s.get(Ei)),uo(e)&&l.push(s.get(Yu)));break;case"set":uo(e)&&l.push(s.get(Ei));break}if(l.length===1)l[0]&&Ju(l[0]);else{const c=[];for(const d of l)d&&c.push(...d);Ju(qu(c))}}function Ju(e,t){const n=Qe(e)?e:[...e];for(const r of n)r.computed&&xp(r);for(const r of n)r.computed||xp(r)}function xp(e,t){(e!==gr||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const nC=nr("__proto__,__v_isRef,__isVue"),Sp=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(gs)),rC=Zu(),iC=Zu(!1,!0),oC=Zu(!0),Ap=sC();function sC(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=St(this);for(let o=0,s=this.length;o<s;o++)In(r,"get",o+"");const i=r[t](...n);return i===-1||i===!1?r[t](...n.map(St)):i}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){po();const r=St(this)[t].apply(this,n);return ho(),r}}),e}function aC(e){const t=St(this);return In(t,"has",e),t.hasOwnProperty(e)}function Zu(e=!1,t=!1){return function(r,i,o){if(i==="__v_isReactive")return!e;if(i==="__v_isReadonly")return e;if(i==="__v_isShallow")return t;if(i==="__v_raw"&&o===(e?t?TC:Np:t?Rp:Dp).get(r))return r;const s=Qe(r);if(!e){if(s&&_t(Ap,i))return Reflect.get(Ap,i,o);if(i==="hasOwnProperty")return aC}const l=Reflect.get(r,i,o);return(gs(i)?Sp.has(i):nC(i))||(e||In(r,"get",i),t)?l:mn(l)?s&&Ku(i)?l:l.value:Rt(l)?e?tc(l):Pn(l):l}}const lC=kp(),uC=kp(!0);function kp(e=!1){return function(n,r,i,o){let s=n[r];if(mo(s)&&mn(s)&&!mn(i))return!1;if(!e&&(!Ya(i)&&!mo(i)&&(s=St(s),i=St(i)),!Qe(n)&&mn(s)&&!mn(i)))return s.value=i,!0;const l=Qe(n)&&Ku(r)?Number(r)<n.length:_t(n,r),c=Reflect.set(n,r,i,o);return n===St(o)&&(l?vs(i,s)&&jr(n,"set",r,i):jr(n,"add",r,i)),c}}function cC(e,t){const n=_t(e,t);e[t];const r=Reflect.deleteProperty(e,t);return r&&n&&jr(e,"delete",t,void 0),r}function fC(e,t){const n=Reflect.has(e,t);return(!gs(t)||!Sp.has(t))&&In(e,"has",t),n}function dC(e){return In(e,"iterate",Qe(e)?"length":Ei),Reflect.ownKeys(e)}const Ep={get:rC,set:lC,deleteProperty:cC,has:fC,ownKeys:dC},pC={get:oC,set(e,t){return!0},deleteProperty(e,t){return!0}},hC=Sn({},Ep,{get:iC,set:uC}),Qu=e=>e,Wa=e=>Reflect.getPrototypeOf(e);function Ka(e,t,n=!1,r=!1){e=e.__v_raw;const i=St(e),o=St(t);n||(t!==o&&In(i,"get",t),In(i,"get",o));const{has:s}=Wa(i),l=r?Qu:n?rc:bs;if(s.call(i,t))return l(e.get(t));if(s.call(i,o))return l(e.get(o));e!==i&&e.get(t)}function Va(e,t=!1){const n=this.__v_raw,r=St(n),i=St(e);return t||(e!==i&&In(r,"has",e),In(r,"has",i)),e===i?n.has(e):n.has(e)||n.has(i)}function qa(e,t=!1){return e=e.__v_raw,!t&&In(St(e),"iterate",Ei),Reflect.get(e,"size",e)}function Op(e){e=St(e);const t=St(this);return Wa(t).has.call(t,e)||(t.add(e),jr(t,"add",e,e)),this}function Lp(e,t){t=St(t);const n=St(this),{has:r,get:i}=Wa(n);let o=r.call(n,e);o||(e=St(e),o=r.call(n,e));const s=i.call(n,e);return n.set(e,t),o?vs(t,s)&&jr(n,"set",e,t):jr(n,"add",e,t),this}function Ip(e){const t=St(this),{has:n,get:r}=Wa(t);let i=n.call(t,e);i||(e=St(e),i=n.call(t,e)),r&&r.call(t,e);const o=t.delete(e);return i&&jr(t,"delete",e,void 0),o}function Pp(){const e=St(this),t=e.size!==0,n=e.clear();return t&&jr(e,"clear",void 0,void 0),n}function za(e,t){return function(r,i){const o=this,s=o.__v_raw,l=St(s),c=t?Qu:e?rc:bs;return!e&&In(l,"iterate",Ei),s.forEach((d,h)=>r.call(i,c(d),c(h),o))}}function Ga(e,t,n){return function(...r){const i=this.__v_raw,o=St(i),s=uo(o),l=e==="entries"||e===Symbol.iterator&&s,c=e==="keys"&&s,d=i[e](...r),h=n?Qu:t?rc:bs;return!t&&In(o,"iterate",c?Yu:Ei),{next(){const{value:p,done:y}=d.next();return y?{value:p,done:y}:{value:l?[h(p[0]),h(p[1])]:h(p),done:y}},[Symbol.iterator](){return this}}}}function li(e){return function(...t){return e==="delete"?!1:this}}function gC(){const e={get(o){return Ka(this,o)},get size(){return qa(this)},has:Va,add:Op,set:Lp,delete:Ip,clear:Pp,forEach:za(!1,!1)},t={get(o){return Ka(this,o,!1,!0)},get size(){return qa(this)},has:Va,add:Op,set:Lp,delete:Ip,clear:Pp,forEach:za(!1,!0)},n={get(o){return Ka(this,o,!0)},get size(){return qa(this,!0)},has(o){return Va.call(this,o,!0)},add:li("add"),set:li("set"),delete:li("delete"),clear:li("clear"),forEach:za(!0,!1)},r={get(o){return Ka(this,o,!0,!0)},get size(){return qa(this,!0)},has(o){return Va.call(this,o,!0)},add:li("add"),set:li("set"),delete:li("delete"),clear:li("clear"),forEach:za(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=Ga(o,!1,!1),n[o]=Ga(o,!0,!1),t[o]=Ga(o,!1,!0),r[o]=Ga(o,!0,!0)}),[e,n,t,r]}const[mC,vC,yC,bC]=gC();function ec(e,t){const n=t?e?bC:yC:e?vC:mC;return(r,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(_t(n,i)&&i in r?n:r,i,o)}const CC={get:ec(!1,!1)},_C={get:ec(!1,!0)},wC={get:ec(!0,!1)},Dp=new WeakMap,Rp=new WeakMap,Np=new WeakMap,TC=new WeakMap;function xC(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function SC(e){return e.__v_skip||!Object.isExtensible(e)?0:xC(zb(e))}function Pn(e){return mo(e)?e:nc(e,!1,Ep,CC,Dp)}function AC(e){return nc(e,!1,hC,_C,Rp)}function tc(e){return nc(e,!0,pC,wC,Np)}function nc(e,t,n,r,i){if(!Rt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=i.get(e);if(o)return o;const s=SC(e);if(s===0)return e;const l=new Proxy(e,s===2?r:n);return i.set(e,l),l}function go(e){return mo(e)?go(e.__v_raw):!!(e&&e.__v_isReactive)}function mo(e){return!!(e&&e.__v_isReadonly)}function Ya(e){return!!(e&&e.__v_isShallow)}function Mp(e){return go(e)||mo(e)}function St(e){const t=e&&e.__v_raw;return t?St(t):e}function Fp(e){return ja(e,"__v_skip",!0),e}const bs=e=>Rt(e)?Pn(e):e,rc=e=>Rt(e)?tc(e):e;function $p(e){ai&&gr&&(e=St(e),Tp(e.dep||(e.dep=qu())))}function Bp(e,t){e=St(e);const n=e.dep;n&&Ju(n)}function mn(e){return!!(e&&e.__v_isRef===!0)}function Et(e){return Hp(e,!1)}function kC(e){return Hp(e,!0)}function Hp(e,t){return mn(e)?e:new EC(e,t)}class EC{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:St(t),this._value=n?t:bs(t)}get value(){return $p(this),this._value}set value(t){const n=this.__v_isShallow||Ya(t)||mo(t);t=n?t:St(t),vs(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:bs(t),Bp(this))}}function jp(e){return mn(e)?e.value:e}const OC={get:(e,t,n)=>jp(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return mn(i)&&!mn(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function Up(e){return go(e)?e:new Proxy(e,OC)}var Wp;class LC{constructor(t,n,r,i){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[Wp]=!1,this._dirty=!0,this.effect=new Xu(t,()=>{this._dirty||(this._dirty=!0,Bp(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=r}get value(){const t=St(this);return $p(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}Wp="__v_isReadonly";function IC(e,t,n=!1){let r,i;const o=pt(e);return o?(r=e,i=hr):(r=e.get,i=e.set),new LC(r,i,o||!i,n)}function kj(e,...t){}function ui(e,t,n,r){let i;try{i=r?e(...r):e()}catch(o){Xa(o,t,n)}return i}function mr(e,t,n,r){if(pt(e)){const o=ui(e,t,n,r);return o&&hp(o)&&o.catch(s=>{Xa(s,t,n)}),o}const i=[];for(let o=0;o<e.length;o++)i.push(mr(e[o],t,n,r));return i}function Xa(e,t,n,r=!0){const i=t?t.vnode:null;if(t){let o=t.parent;const s=t.proxy,l=n;for(;o;){const d=o.ec;if(d){for(let h=0;h<d.length;h++)if(d[h](e,s,l)===!1)return}o=o.parent}const c=t.appContext.config.errorHandler;if(c){ui(c,null,10,[e,s,l]);return}}PC(e,n,i,r)}function PC(e,t,n,r=!0){console.error(e)}let Cs=!1,ic=!1;const vn=[];let Ar=0;const vo=[];let Ur=null,Oi=0;const Kp=Promise.resolve();let oc=null;function Ja(e){const t=oc||Kp;return e?t.then(this?e.bind(this):e):t}function DC(e){let t=Ar+1,n=vn.length;for(;t<n;){const r=t+n>>>1;_s(vn[r])<e?t=r+1:n=r}return t}function sc(e){(!vn.length||!vn.includes(e,Cs&&e.allowRecurse?Ar+1:Ar))&&(e.id==null?vn.push(e):vn.splice(DC(e.id),0,e),Vp())}function Vp(){!Cs&&!ic&&(ic=!0,oc=Kp.then(Gp))}function RC(e){const t=vn.indexOf(e);t>Ar&&vn.splice(t,1)}function NC(e){Qe(e)?vo.push(...e):(!Ur||!Ur.includes(e,e.allowRecurse?Oi+1:Oi))&&vo.push(e),Vp()}function qp(e,t=Cs?Ar+1:0){for(;t<vn.length;t++){const n=vn[t];n&&n.pre&&(vn.splice(t,1),t--,n())}}function zp(e){if(vo.length){const t=[...new Set(vo)];if(vo.length=0,Ur){Ur.push(...t);return}for(Ur=t,Ur.sort((n,r)=>_s(n)-_s(r)),Oi=0;Oi<Ur.length;Oi++)Ur[Oi]();Ur=null,Oi=0}}const _s=e=>e.id==null?1/0:e.id,MC=(e,t)=>{const n=_s(e)-_s(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Gp(e){ic=!1,Cs=!0,vn.sort(MC);const t=hr;try{for(Ar=0;Ar<vn.length;Ar++){const n=vn[Ar];n&&n.active!==!1&&ui(n,null,14)}}finally{Ar=0,vn.length=0,zp(),Cs=!1,oc=null,(vn.length||vo.length)&&Gp()}}function FC(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Dt;let i=n;const o=t.startsWith("update:"),s=o&&t.slice(7);if(s&&s in r){const h=`${s==="modelValue"?"model":s}Modifiers`,{number:p,trim:y}=r[h]||Dt;y&&(i=n.map(C=>zt(C)?C.trim():C)),p&&(i=n.map(Ua))}let l,c=r[l=Vu(t)]||r[l=Vu(Sr(t))];!c&&o&&(c=r[l=Vu(fo(t))]),c&&mr(c,e,6,i);const d=r[l+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,mr(d,e,6,i)}}function Yp(e,t,n=!1){const r=t.emitsCache,i=r.get(e);if(i!==void 0)return i;const o=e.emits;let s={},l=!1;if(!pt(e)){const c=d=>{const h=Yp(d,t,!0);h&&(l=!0,Sn(s,h))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!o&&!l?(Rt(e)&&r.set(e,null),null):(Qe(o)?o.forEach(c=>s[c]=null):Sn(s,o),Rt(e)&&r.set(e,s),s)}function Za(e,t){return!e||!Ma(t)?!1:(t=t.slice(2).replace(/Once$/,""),_t(e,t[0].toLowerCase()+t.slice(1))||_t(e,fo(t))||_t(e,t))}let dn=null,Qa=null;function el(e){const t=dn;return dn=e,Qa=e&&e.type.__scopeId||null,t}function yo(e){Qa=e}function bo(){Qa=null}function ac(e,t=dn,n){if(!t||e._n)return e;const r=(...i)=>{r._d&&wh(-1);const o=el(t);let s;try{s=e(...i)}finally{el(o),r._d&&wh(1)}return s};return r._n=!0,r._c=!0,r._d=!0,r}function Ej(){}function lc(e){const{type:t,vnode:n,proxy:r,withProxy:i,props:o,propsOptions:[s],slots:l,attrs:c,emit:d,render:h,renderCache:p,data:y,setupState:C,ctx:w,inheritAttrs:x}=e;let O,E;const B=el(e);try{if(n.shapeFlag&4){const D=i||r;O=kr(h.call(D,D,p,o,C,y,w)),E=c}else{const D=t;O=kr(D.length>1?D(o,{attrs:c,slots:l,emit:d}):D(o,null)),E=t.props?c:$C(c)}}catch(D){Ss.length=0,Xa(D,e,1),O=xe(ci)}let te=O;if(E&&x!==!1){const D=Object.keys(E),{shapeFlag:we}=te;D.length&&we&7&&(s&&D.some(Uu)&&(E=BC(E,s)),te=_o(te,E))}return n.dirs&&(te=_o(te),te.dirs=te.dirs?te.dirs.concat(n.dirs):n.dirs),n.transition&&(te.transition=n.transition),O=te,el(B),O}const $C=e=>{let t;for(const n in e)(n==="class"||n==="style"||Ma(n))&&((t||(t={}))[n]=e[n]);return t},BC=(e,t)=>{const n={};for(const r in e)(!Uu(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function HC(e,t,n){const{props:r,children:i,component:o}=e,{props:s,children:l,patchFlag:c}=t,d=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?Xp(r,s,d):!!s;if(c&8){const h=t.dynamicProps;for(let p=0;p<h.length;p++){const y=h[p];if(s[y]!==r[y]&&!Za(d,y))return!0}}}else return(i||l)&&(!l||!l.$stable)?!0:r===s?!1:r?s?Xp(r,s,d):!0:!!s;return!1}function Xp(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){const o=r[i];if(t[o]!==e[o]&&!Za(n,o))return!0}return!1}function jC({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const UC=e=>e.__isSuspense;function WC(e,t){t&&t.pendingBranch?Qe(e)?t.effects.push(...e):t.effects.push(e):NC(e)}function Jp(e,t){if(Gt){let n=Gt.provides;const r=Gt.parent&&Gt.parent.provides;r===n&&(n=Gt.provides=Object.create(r)),n[e]=t}}function Co(e,t,n=!1){const r=Gt||dn;if(r){const i=r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&pt(t)?t.call(r.proxy):t}}const tl={};function rr(e,t,n){return Zp(e,t,n)}function Zp(e,t,{immediate:n,deep:r,flush:i,onTrack:o,onTrigger:s}=Dt){const l=yp()===(Gt==null?void 0:Gt.scope)?Gt:null;let c,d=!1,h=!1;if(mn(e)?(c=()=>e.value,d=Ya(e)):go(e)?(c=()=>e,r=!0):Qe(e)?(h=!0,d=e.some(te=>go(te)||Ya(te)),c=()=>e.map(te=>{if(mn(te))return te.value;if(go(te))return Li(te);if(pt(te))return ui(te,l,2)})):pt(e)?t?c=()=>ui(e,l,2):c=()=>{if(!(l&&l.isUnmounted))return p&&p(),mr(e,l,3,[y])}:c=hr,t&&r){const te=c;c=()=>Li(te())}let p,y=te=>{p=E.onStop=()=>{ui(te,l,4)}},C;if(Es)if(y=hr,t?n&&mr(t,l,3,[c(),h?[]:void 0,y]):c(),i==="sync"){const te=F_();C=te.__watcherHandles||(te.__watcherHandles=[])}else return hr;let w=h?new Array(e.length).fill(tl):tl;const x=()=>{if(E.active)if(t){const te=E.run();(r||d||(h?te.some((D,we)=>vs(D,w[we])):vs(te,w)))&&(p&&p(),mr(t,l,3,[te,w===tl?void 0:h&&w[0]===tl?[]:w,y]),w=te)}else E.run()};x.allowRecurse=!!t;let O;i==="sync"?O=x:i==="post"?O=()=>Rn(x,l&&l.suspense):(x.pre=!0,l&&(x.id=l.uid),O=()=>sc(x));const E=new Xu(c,O);t?n?x():w=E.run():i==="post"?Rn(E.run.bind(E),l&&l.suspense):E.run();const B=()=>{E.stop(),l&&l.scope&&Wu(l.scope.effects,E)};return C&&C.push(B),B}function KC(e,t,n){const r=this.proxy,i=zt(e)?e.includes(".")?Qp(r,e):()=>r[e]:e.bind(r,r);let o;pt(t)?o=t:(o=t.handler,n=t);const s=Gt;wo(this);const l=Zp(i,o.bind(r),n);return s?wo(s):Ri(),l}function Qp(e,t){const n=t.split(".");return()=>{let r=e;for(let i=0;i<n.length&&r;i++)r=r[n[i]];return r}}function Li(e,t){if(!Rt(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),mn(e))Li(e.value,t);else if(Qe(e))for(let n=0;n<e.length;n++)Li(e[n],t);else if(co(e)||uo(e))e.forEach(n=>{Li(n,t)});else if(mp(e))for(const n in e)Li(e[n],t);return e}function Dn(e){return pt(e)?{setup:e,name:e.name}:e}const ws=e=>!!e.type.__asyncLoader,eh=e=>e.type.__isKeepAlive;function VC(e,t){th(e,"a",t)}function qC(e,t){th(e,"da",t)}function th(e,t,n=Gt){const r=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(nl(t,r,n),n){let i=n.parent;for(;i&&i.parent;)eh(i.parent.vnode)&&zC(r,t,n,i),i=i.parent}}function zC(e,t,n,r){const i=nl(t,e,r,!0);nh(()=>{Wu(r[t],i)},n)}function nl(e,t,n=Gt,r=!1){if(n){const i=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...s)=>{if(n.isUnmounted)return;po(),wo(n);const l=mr(t,n,e,s);return Ri(),ho(),l});return r?i.unshift(o):i.push(o),o}}const Wr=e=>(t,n=Gt)=>(!Es||e==="sp")&&nl(e,(...r)=>t(...r),n),GC=Wr("bm"),uc=Wr("m"),YC=Wr("bu"),XC=Wr("u"),JC=Wr("bum"),nh=Wr("um"),ZC=Wr("sp"),QC=Wr("rtg"),e_=Wr("rtc");function t_(e,t=Gt){nl("ec",e,t)}function Te(e,t){const n=dn;if(n===null)return e;const r=cl(n)||n.proxy,i=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[s,l,c,d=Dt]=t[o];s&&(pt(s)&&(s={mounted:s,updated:s}),s.deep&&Li(l),i.push({dir:s,instance:r,value:l,oldValue:void 0,arg:c,modifiers:d}))}return e}function Ii(e,t,n,r){const i=e.dirs,o=t&&t.dirs;for(let s=0;s<i.length;s++){const l=i[s];o&&(l.oldValue=o[s].value);let c=l.dir[r];c&&(po(),mr(c,n,8,[e.el,l,e,t]),ho())}}const cc="components",n_="directives";function lt(e,t){return fc(cc,e,!0,t)||e}const rh=Symbol();function ih(e){return zt(e)?fc(cc,e,!1)||e:e||rh}function rl(e){return fc(n_,e)}function fc(e,t,n=!0,r=!1){const i=dn||Gt;if(i){const o=i.type;if(e===cc){const l=R_(o,!1);if(l&&(l===t||l===Sr(t)||l===Ba(Sr(t))))return o}const s=oh(i[e]||o[e],t)||oh(i.appContext[e],t);return!s&&r?o:s}}function oh(e,t){return e&&(e[t]||e[Sr(t)]||e[Ba(Sr(t))])}function ht(e,t,n,r){let i;const o=n&&n[r];if(Qe(e)||zt(e)){i=new Array(e.length);for(let s=0,l=e.length;s<l;s++)i[s]=t(e[s],s,void 0,o&&o[s])}else if(typeof e=="number"){i=new Array(e);for(let s=0;s<e;s++)i[s]=t(s+1,s,void 0,o&&o[s])}else if(Rt(e))if(e[Symbol.iterator])i=Array.from(e,(s,l)=>t(s,l,void 0,o&&o[l]));else{const s=Object.keys(e);i=new Array(s.length);for(let l=0,c=s.length;l<c;l++){const d=s[l];i[l]=t(e[d],d,l,o&&o[l])}}else i=[];return n&&(n[r]=i),i}function r_(e,t,n={},r,i){if(dn.isCE||dn.parent&&ws(dn.parent)&&dn.parent.isCE)return t!=="default"&&(n.name=t),xe("slot",n,r&&r());let o=e[t];o&&o._c&&(o._d=!1),L();const s=o&&sh(o(n)),l=Ze(He,{key:n.key||s&&s.key||`_${t}`},s||(r?r():[]),s&&e._===1?64:-2);return!i&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),o&&o._c&&(o._d=!0),l}function sh(e){return e.some(t=>xh(t)?!(t.type===ci||t.type===He&&!sh(t.children)):!0)?e:null}const dc=e=>e?kh(e)?cl(e)||e.proxy:dc(e.parent):null,Ts=Sn(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=>dc(e.parent),$root:e=>dc(e.root),$emit:e=>e.emit,$options:e=>gc(e),$forceUpdate:e=>e.f||(e.f=()=>sc(e.update)),$nextTick:e=>e.n||(e.n=Ja.bind(e.proxy)),$watch:e=>KC.bind(e)}),pc=(e,t)=>e!==Dt&&!e.__isScriptSetup&&_t(e,t),i_={get({_:e},t){const{ctx:n,setupState:r,data:i,props:o,accessCache:s,type:l,appContext:c}=e;let d;if(t[0]!=="$"){const C=s[t];if(C!==void 0)switch(C){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return o[t]}else{if(pc(r,t))return s[t]=1,r[t];if(i!==Dt&&_t(i,t))return s[t]=2,i[t];if((d=e.propsOptions[0])&&_t(d,t))return s[t]=3,o[t];if(n!==Dt&&_t(n,t))return s[t]=4,n[t];hc&&(s[t]=0)}}const h=Ts[t];let p,y;if(h)return t==="$attrs"&&In(e,"get",t),h(e);if((p=l.__cssModules)&&(p=p[t]))return p;if(n!==Dt&&_t(n,t))return s[t]=4,n[t];if(y=c.config.globalProperties,_t(y,t))return y[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:o}=e;return pc(i,t)?(i[t]=n,!0):r!==Dt&&_t(r,t)?(r[t]=n,!0):_t(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:o}},s){let l;return!!n[s]||e!==Dt&&_t(e,s)||pc(t,s)||(l=o[0])&&_t(l,s)||_t(r,s)||_t(Ts,s)||_t(i.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:_t(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};let hc=!0;function o_(e){const t=gc(e),n=e.proxy,r=e.ctx;hc=!1,t.beforeCreate&&ah(t.beforeCreate,e,"bc");const{data:i,computed:o,methods:s,watch:l,provide:c,inject:d,created:h,beforeMount:p,mounted:y,beforeUpdate:C,updated:w,activated:x,deactivated:O,beforeDestroy:E,beforeUnmount:B,destroyed:te,unmounted:D,render:we,renderTracked:m,renderTriggered:ue,errorCaptured:I,serverPrefetch:A,expose:P,inheritAttrs:j,components:Q,directives:X,filters:ve}=t;if(d&&s_(d,r,null,e.appContext.config.unwrapInjectedRef),s)for(const q in s){const ie=s[q];pt(ie)&&(r[q]=ie.bind(n))}if(i){const q=i.call(n,n);Rt(q)&&(e.data=Pn(q))}if(hc=!0,o)for(const q in o){const ie=o[q],ce=pt(ie)?ie.bind(n,n):pt(ie.get)?ie.get.bind(n,n):hr,nt=!pt(ie)&&pt(ie.set)?ie.set.bind(n):hr,Ve=tn({get:ce,set:nt});Object.defineProperty(r,q,{enumerable:!0,configurable:!0,get:()=>Ve.value,set:ne=>Ve.value=ne})}if(l)for(const q in l)lh(l[q],r,n,q);if(c){const q=pt(c)?c.call(n):c;Reflect.ownKeys(q).forEach(ie=>{Jp(ie,q[ie])})}h&&ah(h,e,"c");function Re(q,ie){Qe(ie)?ie.forEach(ce=>q(ce.bind(n))):ie&&q(ie.bind(n))}if(Re(GC,p),Re(uc,y),Re(YC,C),Re(XC,w),Re(VC,x),Re(qC,O),Re(t_,I),Re(e_,m),Re(QC,ue),Re(JC,B),Re(nh,D),Re(ZC,A),Qe(P))if(P.length){const q=e.exposed||(e.exposed={});P.forEach(ie=>{Object.defineProperty(q,ie,{get:()=>n[ie],set:ce=>n[ie]=ce})})}else e.exposed||(e.exposed={});we&&e.render===hr&&(e.render=we),j!=null&&(e.inheritAttrs=j),Q&&(e.components=Q),X&&(e.directives=X)}function s_(e,t,n=hr,r=!1){Qe(e)&&(e=mc(e));for(const i in e){const o=e[i];let s;Rt(o)?"default"in o?s=Co(o.from||i,o.default,!0):s=Co(o.from||i):s=Co(o),mn(s)&&r?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>s.value,set:l=>s.value=l}):t[i]=s}}function ah(e,t,n){mr(Qe(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function lh(e,t,n,r){const i=r.includes(".")?Qp(n,r):()=>n[r];if(zt(e)){const o=t[e];pt(o)&&rr(i,o)}else if(pt(e))rr(i,e.bind(n));else if(Rt(e))if(Qe(e))e.forEach(o=>lh(o,t,n,r));else{const o=pt(e.handler)?e.handler.bind(n):t[e.handler];pt(o)&&rr(i,o,e)}}function gc(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:o,config:{optionMergeStrategies:s}}=e.appContext,l=o.get(t);let c;return l?c=l:!i.length&&!n&&!r?c=t:(c={},i.length&&i.forEach(d=>il(c,d,s,!0)),il(c,t,s)),Rt(t)&&o.set(t,c),c}function il(e,t,n,r=!1){const{mixins:i,extends:o}=t;o&&il(e,o,n,!0),i&&i.forEach(s=>il(e,s,n,!0));for(const s in t)if(!(r&&s==="expose")){const l=a_[s]||n&&n[s];e[s]=l?l(e[s],t[s]):t[s]}return e}const a_={data:uh,props:Pi,emits:Pi,methods:Pi,computed:Pi,beforeCreate:An,created:An,beforeMount:An,mounted:An,beforeUpdate:An,updated:An,beforeDestroy:An,beforeUnmount:An,destroyed:An,unmounted:An,activated:An,deactivated:An,errorCaptured:An,serverPrefetch:An,components:Pi,directives:Pi,watch:u_,provide:uh,inject:l_};function uh(e,t){return t?e?function(){return Sn(pt(e)?e.call(this,this):e,pt(t)?t.call(this,this):t)}:t:e}function l_(e,t){return Pi(mc(e),mc(t))}function mc(e){if(Qe(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function An(e,t){return e?[...new Set([].concat(e,t))]:t}function Pi(e,t){return e?Sn(Sn(Object.create(null),e),t):t}function u_(e,t){if(!e)return t;if(!t)return e;const n=Sn(Object.create(null),e);for(const r in t)n[r]=An(e[r],t[r]);return n}function c_(e,t,n,r=!1){const i={},o={};ja(o,al,1),e.propsDefaults=Object.create(null),ch(e,t,i,o);for(const s in e.propsOptions[0])s in i||(i[s]=void 0);n?e.props=r?i:AC(i):e.type.props?e.props=i:e.props=o,e.attrs=o}function f_(e,t,n,r){const{props:i,attrs:o,vnode:{patchFlag:s}}=e,l=St(i),[c]=e.propsOptions;let d=!1;if((r||s>0)&&!(s&16)){if(s&8){const h=e.vnode.dynamicProps;for(let p=0;p<h.length;p++){let y=h[p];if(Za(e.emitsOptions,y))continue;const C=t[y];if(c)if(_t(o,y))C!==o[y]&&(o[y]=C,d=!0);else{const w=Sr(y);i[w]=vc(c,l,w,C,e,!1)}else C!==o[y]&&(o[y]=C,d=!0)}}}else{ch(e,t,i,o)&&(d=!0);let h;for(const p in l)(!t||!_t(t,p)&&((h=fo(p))===p||!_t(t,h)))&&(c?n&&(n[p]!==void 0||n[h]!==void 0)&&(i[p]=vc(c,l,p,void 0,e,!0)):delete i[p]);if(o!==l)for(const p in o)(!t||!_t(t,p))&&(delete o[p],d=!0)}d&&jr(e,"set","$attrs")}function ch(e,t,n,r){const[i,o]=e.propsOptions;let s=!1,l;if(t)for(let c in t){if(Fa(c))continue;const d=t[c];let h;i&&_t(i,h=Sr(c))?!o||!o.includes(h)?n[h]=d:(l||(l={}))[h]=d:Za(e.emitsOptions,c)||(!(c in r)||d!==r[c])&&(r[c]=d,s=!0)}if(o){const c=St(n),d=l||Dt;for(let h=0;h<o.length;h++){const p=o[h];n[p]=vc(i,c,p,d[p],e,!_t(d,p))}}return s}function vc(e,t,n,r,i,o){const s=e[n];if(s!=null){const l=_t(s,"default");if(l&&r===void 0){const c=s.default;if(s.type!==Function&&pt(c)){const{propsDefaults:d}=i;n in d?r=d[n]:(wo(i),r=d[n]=c.call(null,t),Ri())}else r=c}s[0]&&(o&&!l?r=!1:s[1]&&(r===""||r===fo(n))&&(r=!0))}return r}function fh(e,t,n=!1){const r=t.propsCache,i=r.get(e);if(i)return i;const o=e.props,s={},l=[];let c=!1;if(!pt(e)){const h=p=>{c=!0;const[y,C]=fh(p,t,!0);Sn(s,y),C&&l.push(...C)};!n&&t.mixins.length&&t.mixins.forEach(h),e.extends&&h(e.extends),e.mixins&&e.mixins.forEach(h)}if(!o&&!c)return Rt(e)&&r.set(e,lo),lo;if(Qe(o))for(let h=0;h<o.length;h++){const p=Sr(o[h]);dh(p)&&(s[p]=Dt)}else if(o)for(const h in o){const p=Sr(h);if(dh(p)){const y=o[h],C=s[p]=Qe(y)||pt(y)?{type:y}:Object.assign({},y);if(C){const w=gh(Boolean,C.type),x=gh(String,C.type);C[0]=w>-1,C[1]=x<0||w<x,(w>-1||_t(C,"default"))&&l.push(p)}}}const d=[s,l];return Rt(e)&&r.set(e,d),d}function dh(e){return e[0]!=="$"}function ph(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function hh(e,t){return ph(e)===ph(t)}function gh(e,t){return Qe(t)?t.findIndex(n=>hh(n,e)):pt(t)&&hh(t,e)?0:-1}const mh=e=>e[0]==="_"||e==="$stable",yc=e=>Qe(e)?e.map(kr):[kr(e)],d_=(e,t,n)=>{if(t._n)return t;const r=ac((...i)=>yc(t(...i)),n);return r._c=!1,r},vh=(e,t,n)=>{const r=e._ctx;for(const i in e){if(mh(i))continue;const o=e[i];if(pt(o))t[i]=d_(i,o,r);else if(o!=null){const s=yc(o);t[i]=()=>s}}},yh=(e,t)=>{const n=yc(t);e.slots.default=()=>n},p_=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=St(t),ja(t,"_",n)):vh(t,e.slots={})}else e.slots={},t&&yh(e,t);ja(e.slots,al,1)},h_=(e,t,n)=>{const{vnode:r,slots:i}=e;let o=!0,s=Dt;if(r.shapeFlag&32){const l=t._;l?n&&l===1?o=!1:(Sn(i,t),!n&&l===1&&delete i._):(o=!t.$stable,vh(t,i)),s=t}else t&&(yh(e,t),s={default:1});if(o)for(const l in i)!mh(l)&&!(l in s)&&delete i[l]};function bh(){return{app:null,config:{isNativeTag:Kb,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 g_=0;function m_(e,t){return function(r,i=null){pt(r)||(r=Object.assign({},r)),i!=null&&!Rt(i)&&(i=null);const o=bh(),s=new Set;let l=!1;const c=o.app={_uid:g_++,_component:r,_props:i,_container:null,_context:o,_instance:null,version:$_,get config(){return o.config},set config(d){},use(d,...h){return s.has(d)||(d&&pt(d.install)?(s.add(d),d.install(c,...h)):pt(d)&&(s.add(d),d(c,...h))),c},mixin(d){return o.mixins.includes(d)||o.mixins.push(d),c},component(d,h){return h?(o.components[d]=h,c):o.components[d]},directive(d,h){return h?(o.directives[d]=h,c):o.directives[d]},mount(d,h,p){if(!l){const y=xe(r,i);return y.appContext=o,h&&t?t(y,d):e(y,d,p),l=!0,c._container=d,d.__vue_app__=c,cl(y.component)||y.component.proxy}},unmount(){l&&(e(null,c._container),delete c._container.__vue_app__)},provide(d,h){return o.provides[d]=h,c}};return c}}function bc(e,t,n,r,i=!1){if(Qe(e)){e.forEach((y,C)=>bc(y,t&&(Qe(t)?t[C]:t),n,r,i));return}if(ws(r)&&!i)return;const o=r.shapeFlag&4?cl(r.component)||r.component.proxy:r.el,s=i?null:o,{i:l,r:c}=e,d=t&&t.r,h=l.refs===Dt?l.refs={}:l.refs,p=l.setupState;if(d!=null&&d!==c&&(zt(d)?(h[d]=null,_t(p,d)&&(p[d]=null)):mn(d)&&(d.value=null)),pt(c))ui(c,l,12,[s,h]);else{const y=zt(c),C=mn(c);if(y||C){const w=()=>{if(e.f){const x=y?_t(p,c)?p[c]:h[c]:c.value;i?Qe(x)&&Wu(x,o):Qe(x)?x.includes(o)||x.push(o):y?(h[c]=[o],_t(p,c)&&(p[c]=h[c])):(c.value=[o],e.k&&(h[e.k]=c.value))}else y?(h[c]=s,_t(p,c)&&(p[c]=s)):C&&(c.value=s,e.k&&(h[e.k]=s))};s?(w.id=-1,Rn(w,n)):w()}}}const Rn=WC;function v_(e){return y_(e)}function y_(e,t){const n=Xb();n.__VUE__=!0;const{insert:r,remove:i,patchProp:o,createElement:s,createText:l,createComment:c,setText:d,setElementText:h,parentNode:p,nextSibling:y,setScopeId:C=hr,insertStaticContent:w}=e,x=(R,F,z,ee=null,W=null,Y=null,be=!1,fe=null,ge=!!F.dynamicChildren)=>{if(R===F)return;R&&!ks(R,F)&&(ee=Be(R),ne(R,W,Y,!0),R=null),F.patchFlag===-2&&(ge=!1,F.dynamicChildren=null);const{type:se,ref:Se,shapeFlag:Ce}=F;switch(se){case sl:O(R,F,z,ee);break;case ci:E(R,F,z,ee);break;case wc:R==null&&B(F,z,ee,be);break;case He:Q(R,F,z,ee,W,Y,be,fe,ge);break;default:Ce&1?we(R,F,z,ee,W,Y,be,fe,ge):Ce&6?X(R,F,z,ee,W,Y,be,fe,ge):(Ce&64||Ce&128)&&se.process(R,F,z,ee,W,Y,be,fe,ge,Le)}Se!=null&&W&&bc(Se,R&&R.ref,Y,F||R,!F)},O=(R,F,z,ee)=>{if(R==null)r(F.el=l(F.children),z,ee);else{const W=F.el=R.el;F.children!==R.children&&d(W,F.children)}},E=(R,F,z,ee)=>{R==null?r(F.el=c(F.children||""),z,ee):F.el=R.el},B=(R,F,z,ee)=>{[R.el,R.anchor]=w(R.children,F,z,ee,R.el,R.anchor)},te=({el:R,anchor:F},z,ee)=>{let W;for(;R&&R!==F;)W=y(R),r(R,z,ee),R=W;r(F,z,ee)},D=({el:R,anchor:F})=>{let z;for(;R&&R!==F;)z=y(R),i(R),R=z;i(F)},we=(R,F,z,ee,W,Y,be,fe,ge)=>{be=be||F.type==="svg",R==null?m(F,z,ee,W,Y,be,fe,ge):A(R,F,W,Y,be,fe,ge)},m=(R,F,z,ee,W,Y,be,fe)=>{let ge,se;const{type:Se,props:Ce,shapeFlag:Ne,transition:Ae,dirs:qe}=R;if(ge=R.el=s(R.type,Y,Ce&&Ce.is,Ce),Ne&8?h(ge,R.children):Ne&16&&I(R.children,ge,null,ee,W,Y&&Se!=="foreignObject",be,fe),qe&&Ii(R,null,ee,"created"),ue(ge,R,R.scopeId,be,ee),Ce){for(const st in Ce)st!=="value"&&!Fa(st)&&o(ge,st,null,Ce[st],Y,R.children,ee,W,Oe);"value"in Ce&&o(ge,"value",null,Ce.value),(se=Ce.onVnodeBeforeMount)&&Er(se,ee,R)}qe&&Ii(R,null,ee,"beforeMount");const ft=(!W||W&&!W.pendingBranch)&&Ae&&!Ae.persisted;ft&&Ae.beforeEnter(ge),r(ge,F,z),((se=Ce&&Ce.onVnodeMounted)||ft||qe)&&Rn(()=>{se&&Er(se,ee,R),ft&&Ae.enter(ge),qe&&Ii(R,null,ee,"mounted")},W)},ue=(R,F,z,ee,W)=>{if(z&&C(R,z),ee)for(let Y=0;Y<ee.length;Y++)C(R,ee[Y]);if(W){let Y=W.subTree;if(F===Y){const be=W.vnode;ue(R,be,be.scopeId,be.slotScopeIds,W.parent)}}},I=(R,F,z,ee,W,Y,be,fe,ge=0)=>{for(let se=ge;se<R.length;se++){const Se=R[se]=fe?fi(R[se]):kr(R[se]);x(null,Se,F,z,ee,W,Y,be,fe)}},A=(R,F,z,ee,W,Y,be)=>{const fe=F.el=R.el;let{patchFlag:ge,dynamicChildren:se,dirs:Se}=F;ge|=R.patchFlag&16;const Ce=R.props||Dt,Ne=F.props||Dt;let Ae;z&&Di(z,!1),(Ae=Ne.onVnodeBeforeUpdate)&&Er(Ae,z,F,R),Se&&Ii(F,R,z,"beforeUpdate"),z&&Di(z,!0);const qe=W&&F.type!=="foreignObject";if(se?P(R.dynamicChildren,se,fe,z,ee,qe,Y):be||ie(R,F,fe,null,z,ee,qe,Y,!1),ge>0){if(ge&16)j(fe,F,Ce,Ne,z,ee,W);else if(ge&2&&Ce.class!==Ne.class&&o(fe,"class",null,Ne.class,W),ge&4&&o(fe,"style",Ce.style,Ne.style,W),ge&8){const ft=F.dynamicProps;for(let st=0;st<ft.length;st++){const Ct=ft[st],Ft=Ce[Ct],an=Ne[Ct];(an!==Ft||Ct==="value")&&o(fe,Ct,Ft,an,W,R.children,z,ee,Oe)}}ge&1&&R.children!==F.children&&h(fe,F.children)}else!be&&se==null&&j(fe,F,Ce,Ne,z,ee,W);((Ae=Ne.onVnodeUpdated)||Se)&&Rn(()=>{Ae&&Er(Ae,z,F,R),Se&&Ii(F,R,z,"updated")},ee)},P=(R,F,z,ee,W,Y,be)=>{for(let fe=0;fe<F.length;fe++){const ge=R[fe],se=F[fe],Se=ge.el&&(ge.type===He||!ks(ge,se)||ge.shapeFlag&70)?p(ge.el):z;x(ge,se,Se,null,ee,W,Y,be,!0)}},j=(R,F,z,ee,W,Y,be)=>{if(z!==ee){if(z!==Dt)for(const fe in z)!Fa(fe)&&!(fe in ee)&&o(R,fe,z[fe],null,be,F.children,W,Y,Oe);for(const fe in ee){if(Fa(fe))continue;const ge=ee[fe],se=z[fe];ge!==se&&fe!=="value"&&o(R,fe,se,ge,be,F.children,W,Y,Oe)}"value"in ee&&o(R,"value",z.value,ee.value)}},Q=(R,F,z,ee,W,Y,be,fe,ge)=>{const se=F.el=R?R.el:l(""),Se=F.anchor=R?R.anchor:l("");let{patchFlag:Ce,dynamicChildren:Ne,slotScopeIds:Ae}=F;Ae&&(fe=fe?fe.concat(Ae):Ae),R==null?(r(se,z,ee),r(Se,z,ee),I(F.children,z,Se,W,Y,be,fe,ge)):Ce>0&&Ce&64&&Ne&&R.dynamicChildren?(P(R.dynamicChildren,Ne,z,W,Y,be,fe),(F.key!=null||W&&F===W.subTree)&&Cc(R,F,!0)):ie(R,F,z,Se,W,Y,be,fe,ge)},X=(R,F,z,ee,W,Y,be,fe,ge)=>{F.slotScopeIds=fe,R==null?F.shapeFlag&512?W.ctx.activate(F,z,ee,be,ge):ve(F,z,ee,W,Y,be,ge):je(R,F,ge)},ve=(R,F,z,ee,W,Y,be)=>{const fe=R.component=O_(R,ee,W);if(eh(R)&&(fe.ctx.renderer=Le),L_(fe),fe.asyncDep){if(W&&W.registerDep(fe,Re),!R.el){const ge=fe.subTree=xe(ci);E(null,ge,F,z)}return}Re(fe,R,F,z,W,Y,be)},je=(R,F,z)=>{const ee=F.component=R.component;if(HC(R,F,z))if(ee.asyncDep&&!ee.asyncResolved){q(ee,F,z);return}else ee.next=F,RC(ee.update),ee.update();else F.el=R.el,ee.vnode=F},Re=(R,F,z,ee,W,Y,be)=>{const fe=()=>{if(R.isMounted){let{next:Se,bu:Ce,u:Ne,parent:Ae,vnode:qe}=R,ft=Se,st;Di(R,!1),Se?(Se.el=qe.el,q(R,Se,be)):Se=qe,Ce&&Ha(Ce),(st=Se.props&&Se.props.onVnodeBeforeUpdate)&&Er(st,Ae,Se,qe),Di(R,!0);const Ct=lc(R),Ft=R.subTree;R.subTree=Ct,x(Ft,Ct,p(Ft.el),Be(Ft),R,W,Y),Se.el=Ct.el,ft===null&&jC(R,Ct.el),Ne&&Rn(Ne,W),(st=Se.props&&Se.props.onVnodeUpdated)&&Rn(()=>Er(st,Ae,Se,qe),W)}else{let Se;const{el:Ce,props:Ne}=F,{bm:Ae,m:qe,parent:ft}=R,st=ws(F);if(Di(R,!1),Ae&&Ha(Ae),!st&&(Se=Ne&&Ne.onVnodeBeforeMount)&&Er(Se,ft,F),Di(R,!0),Ce&>){const Ct=()=>{R.subTree=lc(R),gt(Ce,R.subTree,R,W,null)};st?F.type.__asyncLoader().then(()=>!R.isUnmounted&&Ct()):Ct()}else{const Ct=R.subTree=lc(R);x(null,Ct,z,ee,R,W,Y),F.el=Ct.el}if(qe&&Rn(qe,W),!st&&(Se=Ne&&Ne.onVnodeMounted)){const Ct=F;Rn(()=>Er(Se,ft,Ct),W)}(F.shapeFlag&256||ft&&ws(ft.vnode)&&ft.vnode.shapeFlag&256)&&R.a&&Rn(R.a,W),R.isMounted=!0,F=z=ee=null}},ge=R.effect=new Xu(fe,()=>sc(se),R.scope),se=R.update=()=>ge.run();se.id=R.uid,Di(R,!0),se()},q=(R,F,z)=>{F.component=R;const ee=R.vnode.props;R.vnode=F,R.next=null,f_(R,F.props,ee,z),h_(R,F.children,z),po(),qp(),ho()},ie=(R,F,z,ee,W,Y,be,fe,ge=!1)=>{const se=R&&R.children,Se=R?R.shapeFlag:0,Ce=F.children,{patchFlag:Ne,shapeFlag:Ae}=F;if(Ne>0){if(Ne&128){nt(se,Ce,z,ee,W,Y,be,fe,ge);return}else if(Ne&256){ce(se,Ce,z,ee,W,Y,be,fe,ge);return}}Ae&8?(Se&16&&Oe(se,W,Y),Ce!==se&&h(z,Ce)):Se&16?Ae&16?nt(se,Ce,z,ee,W,Y,be,fe,ge):Oe(se,W,Y,!0):(Se&8&&h(z,""),Ae&16&&I(Ce,z,ee,W,Y,be,fe,ge))},ce=(R,F,z,ee,W,Y,be,fe,ge)=>{R=R||lo,F=F||lo;const se=R.length,Se=F.length,Ce=Math.min(se,Se);let Ne;for(Ne=0;Ne<Ce;Ne++){const Ae=F[Ne]=ge?fi(F[Ne]):kr(F[Ne]);x(R[Ne],Ae,z,null,W,Y,be,fe,ge)}se>Se?Oe(R,W,Y,!0,!1,Ce):I(F,z,ee,W,Y,be,fe,ge,Ce)},nt=(R,F,z,ee,W,Y,be,fe,ge)=>{let se=0;const Se=F.length;let Ce=R.length-1,Ne=Se-1;for(;se<=Ce&&se<=Ne;){const Ae=R[se],qe=F[se]=ge?fi(F[se]):kr(F[se]);if(ks(Ae,qe))x(Ae,qe,z,null,W,Y,be,fe,ge);else break;se++}for(;se<=Ce&&se<=Ne;){const Ae=R[Ce],qe=F[Ne]=ge?fi(F[Ne]):kr(F[Ne]);if(ks(Ae,qe))x(Ae,qe,z,null,W,Y,be,fe,ge);else break;Ce--,Ne--}if(se>Ce){if(se<=Ne){const Ae=Ne+1,qe=Ae<Se?F[Ae].el:ee;for(;se<=Ne;)x(null,F[se]=ge?fi(F[se]):kr(F[se]),z,qe,W,Y,be,fe,ge),se++}}else if(se>Ne)for(;se<=Ce;)ne(R[se],W,Y,!0),se++;else{const Ae=se,qe=se,ft=new Map;for(se=qe;se<=Ne;se++){const De=F[se]=ge?fi(F[se]):kr(F[se]);De.key!=null&&ft.set(De.key,se)}let st,Ct=0;const Ft=Ne-qe+1;let an=!1,Ht=0;const fn=new Array(Ft);for(se=0;se<Ft;se++)fn[se]=0;for(se=Ae;se<=Ce;se++){const De=R[se];if(Ct>=Ft){ne(De,W,Y,!0);continue}let Fe;if(De.key!=null)Fe=ft.get(De.key);else for(st=qe;st<=Ne;st++)if(fn[st-qe]===0&&ks(De,F[st])){Fe=st;break}Fe===void 0?ne(De,W,Y,!0):(fn[Fe-qe]=se+1,Fe>=Ht?Ht=Fe:an=!0,x(De,F[Fe],z,null,W,Y,be,fe,ge),Ct++)}const Z=an?b_(fn):lo;for(st=Z.length-1,se=Ft-1;se>=0;se--){const De=qe+se,Fe=F[De],it=De+1<Se?F[De+1].el:ee;fn[se]===0?x(null,Fe,z,it,W,Y,be,fe,ge):an&&(st<0||se!==Z[st]?Ve(Fe,z,it,2):st--)}}},Ve=(R,F,z,ee,W=null)=>{const{el:Y,type:be,transition:fe,children:ge,shapeFlag:se}=R;if(se&6){Ve(R.component.subTree,F,z,ee);return}if(se&128){R.suspense.move(F,z,ee);return}if(se&64){be.move(R,F,z,Le);return}if(be===He){r(Y,F,z);for(let Ce=0;Ce<ge.length;Ce++)Ve(ge[Ce],F,z,ee);r(R.anchor,F,z);return}if(be===wc){te(R,F,z);return}if(ee!==2&&se&1&&fe)if(ee===0)fe.beforeEnter(Y),r(Y,F,z),Rn(()=>fe.enter(Y),W);else{const{leave:Ce,delayLeave:Ne,afterLeave:Ae}=fe,qe=()=>r(Y,F,z),ft=()=>{Ce(Y,()=>{qe(),Ae&&Ae()})};Ne?Ne(Y,qe,ft):ft()}else r(Y,F,z)},ne=(R,F,z,ee=!1,W=!1)=>{const{type:Y,props:be,ref:fe,children:ge,dynamicChildren:se,shapeFlag:Se,patchFlag:Ce,dirs:Ne}=R;if(fe!=null&&bc(fe,null,z,R,!0),Se&256){F.ctx.deactivate(R);return}const Ae=Se&1&&Ne,qe=!ws(R);let ft;if(qe&&(ft=be&&be.onVnodeBeforeUnmount)&&Er(ft,F,R),Se&6)ke(R.component,z,ee);else{if(Se&128){R.suspense.unmount(z,ee);return}Ae&&Ii(R,null,F,"beforeUnmount"),Se&64?R.type.remove(R,F,z,W,Le,ee):se&&(Y!==He||Ce>0&&Ce&64)?Oe(se,F,z,!1,!0):(Y===He&&Ce&384||!W&&Se&16)&&Oe(ge,F,z),ee&&he(R)}(qe&&(ft=be&&be.onVnodeUnmounted)||Ae)&&Rn(()=>{ft&&Er(ft,F,R),Ae&&Ii(R,null,F,"unmounted")},z)},he=R=>{const{type:F,el:z,anchor:ee,transition:W}=R;if(F===He){_e(z,ee);return}if(F===wc){D(R);return}const Y=()=>{i(z),W&&!W.persisted&&W.afterLeave&&W.afterLeave()};if(R.shapeFlag&1&&W&&!W.persisted){const{leave:be,delayLeave:fe}=W,ge=()=>be(z,Y);fe?fe(R.el,Y,ge):ge()}else Y()},_e=(R,F)=>{let z;for(;R!==F;)z=y(R),i(R),R=z;i(F)},ke=(R,F,z)=>{const{bum:ee,scope:W,update:Y,subTree:be,um:fe}=R;ee&&Ha(ee),W.stop(),Y&&(Y.active=!1,ne(be,R,F,z)),fe&&Rn(fe,F),Rn(()=>{R.isUnmounted=!0},F),F&&F.pendingBranch&&!F.isUnmounted&&R.asyncDep&&!R.asyncResolved&&R.suspenseId===F.pendingId&&(F.deps--,F.deps===0&&F.resolve())},Oe=(R,F,z,ee=!1,W=!1,Y=0)=>{for(let be=Y;be<R.length;be++)ne(R[be],F,z,ee,W)},Be=R=>R.shapeFlag&6?Be(R.component.subTree):R.shapeFlag&128?R.suspense.next():y(R.anchor||R.el),Xe=(R,F,z)=>{R==null?F._vnode&&ne(F._vnode,null,null,!0):x(F._vnode||null,R,F,null,null,null,z),qp(),zp(),F._vnode=R},Le={p:x,um:ne,m:Ve,r:he,mt:ve,mc:I,pc:ie,pbc:P,n:Be,o:e};let rt,gt;return t&&([rt,gt]=t(Le)),{render:Xe,hydrate:rt,createApp:m_(Xe,rt)}}function Di({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Cc(e,t,n=!1){const r=e.children,i=t.children;if(Qe(r)&&Qe(i))for(let o=0;o<r.length;o++){const s=r[o];let l=i[o];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=i[o]=fi(i[o]),l.el=s.el),n||Cc(s,l)),l.type===sl&&(l.el=s.el)}}function b_(e){const t=e.slice(),n=[0];let r,i,o,s,l;const c=e.length;for(r=0;r<c;r++){const d=e[r];if(d!==0){if(i=n[n.length-1],e[i]<d){t[r]=i,n.push(r);continue}for(o=0,s=n.length-1;o<s;)l=o+s>>1,e[n[l]]<d?o=l+1:s=l;d<e[n[o]]&&(o>0&&(t[r]=n[o-1]),n[o]=r)}}for(o=n.length,s=n[o-1];o-- >0;)n[o]=s,s=t[s];return n}const C_=e=>e.__isTeleport,xs=e=>e&&(e.disabled||e.disabled===""),Ch=e=>typeof SVGElement<"u"&&e instanceof SVGElement,_c=(e,t)=>{const n=e&&e.to;return zt(n)?t?t(n):null:n},__={__isTeleport:!0,process(e,t,n,r,i,o,s,l,c,d){const{mc:h,pc:p,pbc:y,o:{insert:C,querySelector:w,createText:x,createComment:O}}=d,E=xs(t.props);let{shapeFlag:B,children:te,dynamicChildren:D}=t;if(e==null){const we=t.el=x(""),m=t.anchor=x("");C(we,n,r),C(m,n,r);const ue=t.target=_c(t.props,w),I=t.targetAnchor=x("");ue&&(C(I,ue),s=s||Ch(ue));const A=(P,j)=>{B&16&&h(te,P,j,i,o,s,l,c)};E?A(n,m):ue&&A(ue,I)}else{t.el=e.el;const we=t.anchor=e.anchor,m=t.target=e.target,ue=t.targetAnchor=e.targetAnchor,I=xs(e.props),A=I?n:m,P=I?we:ue;if(s=s||Ch(m),D?(y(e.dynamicChildren,D,A,i,o,s,l),Cc(e,t,!0)):c||p(e,t,A,P,i,o,s,l,!1),E)I||ol(t,n,we,d,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const j=t.target=_c(t.props,w);j&&ol(t,j,null,d,0)}else I&&ol(t,m,ue,d,1)}_h(t)},remove(e,t,n,r,{um:i,o:{remove:o}},s){const{shapeFlag:l,children:c,anchor:d,targetAnchor:h,target:p,props:y}=e;if(p&&o(h),(s||!xs(y))&&(o(d),l&16))for(let C=0;C<c.length;C++){const w=c[C];i(w,t,n,!0,!!w.dynamicChildren)}},move:ol,hydrate:w_};function ol(e,t,n,{o:{insert:r},m:i},o=2){o===0&&r(e.targetAnchor,t,n);const{el:s,anchor:l,shapeFlag:c,children:d,props:h}=e,p=o===2;if(p&&r(s,t,n),(!p||xs(h))&&c&16)for(let y=0;y<d.length;y++)i(d[y],t,n,2);p&&r(l,t,n)}function w_(e,t,n,r,i,o,{o:{nextSibling:s,parentNode:l,querySelector:c}},d){const h=t.target=_c(t.props,c);if(h){const p=h._lpa||h.firstChild;if(t.shapeFlag&16)if(xs(t.props))t.anchor=d(s(e),t,l(e),n,r,i,o),t.targetAnchor=p;else{t.anchor=s(e);let y=p;for(;y;)if(y=s(y),y&&y.nodeType===8&&y.data==="teleport anchor"){t.targetAnchor=y,h._lpa=t.targetAnchor&&s(t.targetAnchor);break}d(p,t,h,n,r,i,o)}_h(t)}return t.anchor&&s(t.anchor)}const T_=__;function _h(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 He=Symbol(void 0),sl=Symbol(void 0),ci=Symbol(void 0),wc=Symbol(void 0),Ss=[];let vr=null;function L(e=!1){Ss.push(vr=e?null:[])}function x_(){Ss.pop(),vr=Ss[Ss.length-1]||null}let As=1;function wh(e){As+=e}function Th(e){return e.dynamicChildren=As>0?vr||lo:null,x_(),As>0&&vr&&vr.push(e),e}function H(e,t,n,r,i,o){return Th(S(e,t,n,r,i,o,!0))}function Ze(e,t,n,r,i){return Th(xe(e,t,n,r,i,!0))}function xh(e){return e?e.__v_isVNode===!0:!1}function ks(e,t){return e.type===t.type&&e.key===t.key}const al="__vInternal",Sh=({key:e})=>e??null,ll=({ref:e,ref_key:t,ref_for:n})=>e!=null?zt(e)||mn(e)||pt(e)?{i:dn,r:e,k:t,f:!!n}:e:null;function S(e,t=null,n=null,r=0,i=null,o=e===He?0:1,s=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Sh(t),ref:t&&ll(t),scopeId:Qa,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:o,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:dn};return l?(Tc(c,n),o&128&&e.normalize(c)):n&&(c.shapeFlag|=zt(n)?8:16),As>0&&!s&&vr&&(c.patchFlag>0||o&6)&&c.patchFlag!==32&&vr.push(c),c}const xe=S_;function S_(e,t=null,n=null,r=0,i=null,o=!1){if((!e||e===rh)&&(e=ci),xh(e)){const l=_o(e,t,!0);return n&&Tc(l,n),As>0&&!o&&vr&&(l.shapeFlag&6?vr[vr.indexOf(e)]=l:vr.push(l)),l.patchFlag|=-2,l}if(N_(e)&&(e=e.__vccOpts),t){t=A_(t);let{class:l,style:c}=t;l&&!zt(l)&&(t.class=at(l)),Rt(c)&&(Mp(c)&&!Qe(c)&&(c=Sn({},c)),t.style=bt(c))}const s=zt(e)?1:UC(e)?128:C_(e)?64:Rt(e)?4:pt(e)?2:0;return S(e,t,n,r,i,s,o,!0)}function A_(e){return e?Mp(e)||al in e?Sn({},e):e:null}function _o(e,t,n=!1){const{props:r,ref:i,patchFlag:o,children:s}=e,l=t?ul(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Sh(l),ref:t&&t.ref?n&&i?Qe(i)?i.concat(ll(t)):[i,ll(t)]:ll(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==He?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&_o(e.ssContent),ssFallback:e.ssFallback&&_o(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Xt(e=" ",t=0){return xe(sl,null,e,t)}function Me(e="",t=!1){return t?(L(),Ze(ci,null,e)):xe(ci,null,e)}function kr(e){return e==null||typeof e=="boolean"?xe(ci):Qe(e)?xe(He,null,e.slice()):typeof e=="object"?fi(e):xe(sl,null,String(e))}function fi(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:_o(e)}function Tc(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Qe(t))n=16;else if(typeof t=="object")if(r&65){const i=t.default;i&&(i._c&&(i._d=!1),Tc(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!(al in t)?t._ctx=dn:i===3&&dn&&(dn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else pt(t)?(t={default:t,_ctx:dn},n=32):(t=String(t),r&64?(n=16,t=[Xt(t)]):n=8);e.children=t,e.shapeFlag|=n}function ul(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const i in r)if(i==="class")t.class!==r.class&&(t.class=at([t.class,r.class]));else if(i==="style")t.style=bt([t.style,r.style]);else if(Ma(i)){const o=t[i],s=r[i];s&&o!==s&&!(Qe(o)&&o.includes(s))&&(t[i]=o?[].concat(o,s):s)}else i!==""&&(t[i]=r[i])}return t}function Er(e,t,n,r=null){mr(e,t,7,[n,r])}const k_=bh();let E_=0;function O_(e,t,n){const r=e.type,i=(t?t.appContext:e.appContext)||k_,o={uid:E_++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new Jb(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:fh(r,i),emitsOptions:Yp(r,i),emit:null,emitted:null,propsDefaults:Dt,inheritAttrs:r.inheritAttrs,ctx:Dt,data:Dt,props:Dt,attrs:Dt,slots:Dt,refs:Dt,setupState:Dt,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 o.ctx={_:o},o.root=t?t.root:o,o.emit=FC.bind(null,o),e.ce&&e.ce(o),o}let Gt=null;const Ah=()=>Gt||dn,wo=e=>{Gt=e,e.scope.on()},Ri=()=>{Gt&&Gt.scope.off(),Gt=null};function kh(e){return e.vnode.shapeFlag&4}let Es=!1;function L_(e,t=!1){Es=t;const{props:n,children:r}=e.vnode,i=kh(e);c_(e,n,i,t),p_(e,r);const o=i?I_(e,t):void 0;return Es=!1,o}function I_(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Fp(new Proxy(e.ctx,i_));const{setup:r}=n;if(r){const i=e.setupContext=r.length>1?D_(e):null;wo(e),po();const o=ui(r,e,0,[e.props,i]);if(ho(),Ri(),hp(o)){if(o.then(Ri,Ri),t)return o.then(s=>{Eh(e,s,t)}).catch(s=>{Xa(s,e,0)});e.asyncDep=o}else Eh(e,o,t)}else Lh(e,t)}function Eh(e,t,n){pt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Rt(t)&&(e.setupState=Up(t)),Lh(e,n)}let Oh;function Lh(e,t,n){const r=e.type;if(!e.render){if(!t&&Oh&&!r.render){const i=r.template||gc(e).template;if(i){const{isCustomElement:o,compilerOptions:s}=e.appContext.config,{delimiters:l,compilerOptions:c}=r,d=Sn(Sn({isCustomElement:o,delimiters:l},s),c);r.render=Oh(i,d)}}e.render=r.render||hr}wo(e),po(),o_(e),ho(),Ri()}function P_(e){return new Proxy(e.attrs,{get(t,n){return In(e,"get","$attrs"),t[n]}})}function D_(e){const t=r=>{e.exposed=r||{}};let n;return{get attrs(){return n||(n=P_(e))},slots:e.slots,emit:e.emit,expose:t}}function cl(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Up(Fp(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Ts)return Ts[n](e)},has(t,n){return n in t||n in Ts}}))}function R_(e,t=!0){return pt(e)?e.displayName||e.name:e.name||t&&e.__name}function N_(e){return pt(e)&&"__vccOpts"in e}const tn=(e,t)=>IC(e,t,Es),M_=Symbol(""),F_=()=>Co(M_),$_="3.2.47",B_="http://www.w3.org/2000/svg",Ni=typeof document<"u"?document:null,Ih=Ni&&Ni.createElement("template"),H_={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 i=t?Ni.createElementNS(B_,e):Ni.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:e=>Ni.createTextNode(e),createComment:e=>Ni.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ni.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,i,o){const s=n?n.previousSibling:t.lastChild;if(i&&(i===o||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===o||!(i=i.nextSibling)););else{Ih.innerHTML=r?`<svg>${e}</svg>`:e;const l=Ih.content;if(r){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function j_(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 U_(e,t,n){const r=e.style,i=zt(n);if(n&&!i){if(t&&!zt(t))for(const o in t)n[o]==null&&xc(r,o,"");for(const o in n)xc(r,o,n[o])}else{const o=r.display;i?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=o)}}const Ph=/\s*!important$/;function xc(e,t,n){if(Qe(n))n.forEach(r=>xc(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=W_(e,t);Ph.test(n)?e.setProperty(fo(r),n.replace(Ph,""),"important"):e[r]=n}}const Dh=["Webkit","Moz","ms"],Sc={};function W_(e,t){const n=Sc[t];if(n)return n;let r=Sr(t);if(r!=="filter"&&r in e)return Sc[t]=r;r=Ba(r);for(let i=0;i<Dh.length;i++){const o=Dh[i]+r;if(o in e)return Sc[t]=o}return t}const Rh="http://www.w3.org/1999/xlink";function K_(e,t,n,r,i){if(r&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Rh,t.slice(6,t.length)):e.setAttributeNS(Rh,t,n);else{const o=Ub(t);n==null||o&&!fp(n)?e.removeAttribute(t):e.setAttribute(t,o?"":n)}}function V_(e,t,n,r,i,o,s){if(t==="innerHTML"||t==="textContent"){r&&s(r,i,o),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 l=!1;if(n===""||n==null){const c=typeof e[t];c==="boolean"?n=fp(n):n==null&&c==="string"?(n="",l=!0):c==="number"&&(n=0,l=!0)}try{e[t]=n}catch{}l&&e.removeAttribute(t)}function di(e,t,n,r){e.addEventListener(t,n,r)}function q_(e,t,n,r){e.removeEventListener(t,n,r)}function z_(e,t,n,r,i=null){const o=e._vei||(e._vei={}),s=o[t];if(r&&s)s.value=r;else{const[l,c]=G_(t);if(r){const d=o[t]=J_(r,i);di(e,l,d,c)}else s&&(q_(e,l,s,c),o[t]=void 0)}}const Nh=/(?:Once|Passive|Capture)$/;function G_(e){let t;if(Nh.test(e)){t={};let r;for(;r=e.match(Nh);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):fo(e.slice(2)),t]}let Ac=0;const Y_=Promise.resolve(),X_=()=>Ac||(Y_.then(()=>Ac=0),Ac=Date.now());function J_(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;mr(Z_(r,n.value),t,5,[r])};return n.value=e,n.attached=X_(),n}function Z_(e,t){if(Qe(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>i=>!i._stopped&&r&&r(i))}else return t}const Mh=/^on[a-z]/,Q_=(e,t,n,r,i=!1,o,s,l,c)=>{t==="class"?j_(e,r,i):t==="style"?U_(e,n,r):Ma(t)?Uu(t)||z_(e,t,n,r,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):e1(e,t,r,i))?V_(e,t,r,o,s,l,c):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),K_(e,t,r,i))};function e1(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&Mh.test(t)&&pt(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Mh.test(t)&&zt(n)?!1:t in e}const To=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Qe(t)?n=>Ha(t,n):t};function t1(e){e.target.composing=!0}function Fh(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Mi={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e._assign=To(i);const o=r||i.props&&i.props.type==="number";di(e,t?"change":"input",s=>{if(s.target.composing)return;let l=e.value;n&&(l=l.trim()),o&&(l=Ua(l)),e._assign(l)}),n&&di(e,"change",()=>{e.value=e.value.trim()}),t||(di(e,"compositionstart",t1),di(e,"compositionend",Fh),di(e,"change",Fh))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:i}},o){if(e._assign=To(o),e.composing||document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===t||(i||e.type==="number")&&Ua(e.value)===t))return;const s=t??"";e.value!==s&&(e.value=s)}},n1={deep:!0,created(e,t,n){e._assign=To(n),di(e,"change",()=>{const r=e._modelValue,i=Ls(e),o=e.checked,s=e._assign;if(Qe(r)){const l=ju(r,i),c=l!==-1;if(o&&!c)s(r.concat(i));else if(!o&&c){const d=[...r];d.splice(l,1),s(d)}}else if(co(r)){const l=new Set(r);o?l.add(i):l.delete(i),s(l)}else s(Hh(e,o))})},mounted:$h,beforeUpdate(e,t,n){e._assign=To(n),$h(e,t,n)}};function $h(e,{value:t,oldValue:n},r){e._modelValue=t,Qe(t)?e.checked=ju(t,r.props.value)>-1:co(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=hs(t,Hh(e,!0)))}const Os={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const i=co(t);di(e,"change",()=>{const o=Array.prototype.filter.call(e.options,s=>s.selected).map(s=>n?Ua(Ls(s)):Ls(s));e._assign(e.multiple?i?new Set(o):o:o[0])}),e._assign=To(r)},mounted(e,{value:t}){Bh(e,t)},beforeUpdate(e,t,n){e._assign=To(n)},updated(e,{value:t}){Bh(e,t)}};function Bh(e,t){const n=e.multiple;if(!(n&&!Qe(t)&&!co(t))){for(let r=0,i=e.options.length;r<i;r++){const o=e.options[r],s=Ls(o);if(n)Qe(t)?o.selected=ju(t,s)>-1:o.selected=t.has(s);else if(hs(Ls(o),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Ls(e){return"_value"in e?e._value:e.value}function Hh(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const r1=["ctrl","shift","alt","meta"],i1={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)=>r1.some(n=>e[`${n}Key`]&&!t.includes(n))},yt=(e,t)=>(n,...r)=>{for(let i=0;i<t.length;i++){const o=i1[t[i]];if(o&&o(n,t))return}return e(n,...r)},Ot={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Is(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),Is(e,!0),r.enter(e)):r.leave(e,()=>{Is(e,!1)}):Is(e,t))},beforeUnmount(e,{value:t}){Is(e,t)}};function Is(e,t){e.style.display=t?e._vod:"none"}const o1=Sn({patchProp:Q_},H_);let jh;function s1(){return jh||(jh=v_(o1))}const a1=(...e)=>{const t=s1().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=l1(r);if(!i)return;const o=t._component;!pt(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.innerHTML="";const s=n(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),s},t};function l1(e){return zt(e)?document.querySelector(e):e}/**!
|
||
* Sortable 1.15.0
|
||
* @author RubaXa <trash@rubaxa.org>
|
||
* @author owenm <owen23355@gmail.com>
|
||
* @license MIT
|
||
*/function Uh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Or(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Uh(Object(n),!0).forEach(function(r){u1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fl(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?fl=function(t){return typeof t}:fl=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fl(e)}function u1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kr(){return Kr=Object.assign||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},Kr.apply(this,arguments)}function c1(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function f1(e,t){if(e==null)return{};var n=c1(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var d1="1.15.0";function Vr(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var qr=Vr(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Ps=Vr(/Edge/i),Wh=Vr(/firefox/i),Ds=Vr(/safari/i)&&!Vr(/chrome/i)&&!Vr(/android/i),Kh=Vr(/iP(ad|od|hone)/i),Vh=Vr(/chrome/i)&&Vr(/android/i),qh={capture:!1,passive:!1};function At(e,t,n){e.addEventListener(t,n,!qr&&qh)}function wt(e,t,n){e.removeEventListener(t,n,!qr&&qh)}function dl(e,t){if(t){if(t[0]===">"&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function p1(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Lr(e,t,n,r){if(e){n=n||document;do{if(t!=null&&(t[0]===">"?e.parentNode===n&&dl(e,t):dl(e,t))||r&&e===n)return e;if(e===n)break}while(e=p1(e))}return null}var zh=/\s+/g;function Vn(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(zh," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(zh," ")}}function et(e,t,n){var r=e&&e.style;if(r){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),t===void 0?n:n[t];!(t in r)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),r[t]=n+(typeof n=="string"?"":"px")}}function xo(e,t){var n="";if(typeof e=="string")n=e;else do{var r=et(e,"transform");r&&r!=="none"&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function Gh(e,t,n){if(e){var r=e.getElementsByTagName(t),i=0,o=r.length;if(n)for(;i<o;i++)n(r[i],i);return r}return[]}function Ir(){var e=document.scrollingElement;return e||document.documentElement}function nn(e,t,n,r,i){if(!(!e.getBoundingClientRect&&e!==window)){var o,s,l,c,d,h,p;if(e!==window&&e.parentNode&&e!==Ir()?(o=e.getBoundingClientRect(),s=o.top,l=o.left,c=o.bottom,d=o.right,h=o.height,p=o.width):(s=0,l=0,c=window.innerHeight,d=window.innerWidth,h=window.innerHeight,p=window.innerWidth),(t||n)&&e!==window&&(i=i||e.parentNode,!qr))do if(i&&i.getBoundingClientRect&&(et(i,"transform")!=="none"||n&&et(i,"position")!=="static")){var y=i.getBoundingClientRect();s-=y.top+parseInt(et(i,"border-top-width")),l-=y.left+parseInt(et(i,"border-left-width")),c=s+o.height,d=l+o.width;break}while(i=i.parentNode);if(r&&e!==window){var C=xo(i||e),w=C&&C.a,x=C&&C.d;C&&(s/=x,l/=w,p/=w,h/=x,c=s+h,d=l+p)}return{top:s,left:l,bottom:c,right:d,width:p,height:h}}}function Yh(e,t,n){for(var r=pi(e,!0),i=nn(e)[t];r;){var o=nn(r)[n],s=void 0;if(n==="top"||n==="left"?s=i>=o:s=i<=o,!s)return r;if(r===Ir())break;r=pi(r,!1)}return!1}function So(e,t,n,r){for(var i=0,o=0,s=e.children;o<s.length;){if(s[o].style.display!=="none"&&s[o]!==tt.ghost&&(r||s[o]!==tt.dragged)&&Lr(s[o],n.draggable,e,!1)){if(i===t)return s[o];i++}o++}return null}function kc(e,t){for(var n=e.lastElementChild;n&&(n===tt.ghost||et(n,"display")==="none"||t&&!dl(n,t));)n=n.previousElementSibling;return n||null}function ir(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==tt.clone&&(!t||dl(e,t))&&n++;return n}function Xh(e){var t=0,n=0,r=Ir();if(e)do{var i=xo(e),o=i.a,s=i.d;t+=e.scrollLeft*o,n+=e.scrollTop*s}while(e!==r&&(e=e.parentNode));return[t,n]}function h1(e,t){for(var n in e)if(e.hasOwnProperty(n)){for(var r in t)if(t.hasOwnProperty(r)&&t[r]===e[n][r])return Number(n)}return-1}function pi(e,t){if(!e||!e.getBoundingClientRect)return Ir();var n=e,r=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=et(n);if(n.clientWidth<n.scrollWidth&&(i.overflowX=="auto"||i.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(i.overflowY=="auto"||i.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return Ir();if(r||t)return n;r=!0}}while(n=n.parentNode);return Ir()}function g1(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function Ec(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}var Rs;function Jh(e,t){return function(){if(!Rs){var n=arguments,r=this;n.length===1?e.call(r,n[0]):e.apply(r,n),Rs=setTimeout(function(){Rs=void 0},t)}}}function m1(){clearTimeout(Rs),Rs=void 0}function Zh(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function Qh(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}var qn="Sortable"+new Date().getTime();function v1(){var e=[],t;return{captureAnimationState:function(){if(e=[],!!this.options.animation){var r=[].slice.call(this.el.children);r.forEach(function(i){if(!(et(i,"display")==="none"||i===tt.ghost)){e.push({target:i,rect:nn(i)});var o=Or({},e[e.length-1].rect);if(i.thisAnimationDuration){var s=xo(i,!0);s&&(o.top-=s.f,o.left-=s.e)}i.fromRect=o}})}},addAnimationState:function(r){e.push(r)},removeAnimationState:function(r){e.splice(h1(e,{target:r}),1)},animateAll:function(r){var i=this;if(!this.options.animation){clearTimeout(t),typeof r=="function"&&r();return}var o=!1,s=0;e.forEach(function(l){var c=0,d=l.target,h=d.fromRect,p=nn(d),y=d.prevFromRect,C=d.prevToRect,w=l.rect,x=xo(d,!0);x&&(p.top-=x.f,p.left-=x.e),d.toRect=p,d.thisAnimationDuration&&Ec(y,p)&&!Ec(h,p)&&(w.top-p.top)/(w.left-p.left)===(h.top-p.top)/(h.left-p.left)&&(c=b1(w,y,C,i.options)),Ec(p,h)||(d.prevFromRect=h,d.prevToRect=p,c||(c=i.options.animation),i.animate(d,w,p,c)),c&&(o=!0,s=Math.max(s,c),clearTimeout(d.animationResetTimer),d.animationResetTimer=setTimeout(function(){d.animationTime=0,d.prevFromRect=null,d.fromRect=null,d.prevToRect=null,d.thisAnimationDuration=null},c),d.thisAnimationDuration=c)}),clearTimeout(t),o?t=setTimeout(function(){typeof r=="function"&&r()},s):typeof r=="function"&&r(),e=[]},animate:function(r,i,o,s){if(s){et(r,"transition",""),et(r,"transform","");var l=xo(this.el),c=l&&l.a,d=l&&l.d,h=(i.left-o.left)/(c||1),p=(i.top-o.top)/(d||1);r.animatingX=!!h,r.animatingY=!!p,et(r,"transform","translate3d("+h+"px,"+p+"px,0)"),this.forRepaintDummy=y1(r),et(r,"transition","transform "+s+"ms"+(this.options.easing?" "+this.options.easing:"")),et(r,"transform","translate3d(0,0,0)"),typeof r.animated=="number"&&clearTimeout(r.animated),r.animated=setTimeout(function(){et(r,"transition",""),et(r,"transform",""),r.animated=!1,r.animatingX=!1,r.animatingY=!1},s)}}}}function y1(e){return e.offsetWidth}function b1(e,t,n,r){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*r.animation}var Ao=[],Oc={initializeByDefault:!0},Ns={mount:function(t){for(var n in Oc)Oc.hasOwnProperty(n)&&!(n in t)&&(t[n]=Oc[n]);Ao.forEach(function(r){if(r.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),Ao.push(t)},pluginEvent:function(t,n,r){var i=this;this.eventCanceled=!1,r.cancel=function(){i.eventCanceled=!0};var o=t+"Global";Ao.forEach(function(s){n[s.pluginName]&&(n[s.pluginName][o]&&n[s.pluginName][o](Or({sortable:n},r)),n.options[s.pluginName]&&n[s.pluginName][t]&&n[s.pluginName][t](Or({sortable:n},r)))})},initializePlugins:function(t,n,r,i){Ao.forEach(function(l){var c=l.pluginName;if(!(!t.options[c]&&!l.initializeByDefault)){var d=new l(t,n,t.options);d.sortable=t,d.options=t.options,t[c]=d,Kr(r,d.defaults)}});for(var o in t.options)if(t.options.hasOwnProperty(o)){var s=this.modifyOption(t,o,t.options[o]);typeof s<"u"&&(t.options[o]=s)}},getEventProperties:function(t,n){var r={};return Ao.forEach(function(i){typeof i.eventProperties=="function"&&Kr(r,i.eventProperties.call(n[i.pluginName],t))}),r},modifyOption:function(t,n,r){var i;return Ao.forEach(function(o){t[o.pluginName]&&o.optionListeners&&typeof o.optionListeners[n]=="function"&&(i=o.optionListeners[n].call(t[o.pluginName],r))}),i}};function C1(e){var t=e.sortable,n=e.rootEl,r=e.name,i=e.targetEl,o=e.cloneEl,s=e.toEl,l=e.fromEl,c=e.oldIndex,d=e.newIndex,h=e.oldDraggableIndex,p=e.newDraggableIndex,y=e.originalEvent,C=e.putSortable,w=e.extraEventProperties;if(t=t||n&&n[qn],!!t){var x,O=t.options,E="on"+r.charAt(0).toUpperCase()+r.substr(1);window.CustomEvent&&!qr&&!Ps?x=new CustomEvent(r,{bubbles:!0,cancelable:!0}):(x=document.createEvent("Event"),x.initEvent(r,!0,!0)),x.to=s||n,x.from=l||n,x.item=i||n,x.clone=o,x.oldIndex=c,x.newIndex=d,x.oldDraggableIndex=h,x.newDraggableIndex=p,x.originalEvent=y,x.pullMode=C?C.lastPutMode:void 0;var B=Or(Or({},w),Ns.getEventProperties(r,t));for(var te in B)x[te]=B[te];n&&n.dispatchEvent(x),O[E]&&O[E].call(t,x)}}var _1=["evt"],Nn=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=r.evt,o=f1(r,_1);Ns.pluginEvent.bind(tt)(t,n,Or({dragEl:Ee,parentEl:Kt,ghostEl:dt,rootEl:$t,nextEl:Fi,lastDownEl:pl,cloneEl:Ut,cloneHidden:hi,dragStarted:Fs,putSortable:pn,activeSortable:tt.active,originalEvent:i,oldIndex:ko,oldDraggableIndex:Ms,newIndex:zn,newDraggableIndex:gi,hideGhostForTarget:sg,unhideGhostForTarget:ag,cloneNowHidden:function(){hi=!0},cloneNowShown:function(){hi=!1},dispatchSortableEvent:function(l){kn({sortable:n,name:l,originalEvent:i})}},o))};function kn(e){C1(Or({putSortable:pn,cloneEl:Ut,targetEl:Ee,rootEl:$t,oldIndex:ko,oldDraggableIndex:Ms,newIndex:zn,newDraggableIndex:gi},e))}var Ee,Kt,dt,$t,Fi,pl,Ut,hi,ko,zn,Ms,gi,hl,pn,Eo=!1,gl=!1,ml=[],$i,yr,Lc,Ic,eg,tg,Fs,Oo,$s,Bs=!1,vl=!1,yl,yn,Pc=[],Dc=!1,bl=[],Cl=typeof document<"u",_l=Kh,ng=Ps||qr?"cssFloat":"float",w1=Cl&&!Vh&&!Kh&&"draggable"in document.createElement("div"),rg=function(){if(Cl){if(qr)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),ig=function(t,n){var r=et(t),i=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),o=So(t,0,n),s=So(t,1,n),l=o&&et(o),c=s&&et(s),d=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+nn(o).width,h=c&&parseInt(c.marginLeft)+parseInt(c.marginRight)+nn(s).width;if(r.display==="flex")return r.flexDirection==="column"||r.flexDirection==="column-reverse"?"vertical":"horizontal";if(r.display==="grid")return r.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&l.float&&l.float!=="none"){var p=l.float==="left"?"left":"right";return s&&(c.clear==="both"||c.clear===p)?"vertical":"horizontal"}return o&&(l.display==="block"||l.display==="flex"||l.display==="table"||l.display==="grid"||d>=i&&r[ng]==="none"||s&&r[ng]==="none"&&d+h>i)?"vertical":"horizontal"},T1=function(t,n,r){var i=r?t.left:t.top,o=r?t.right:t.bottom,s=r?t.width:t.height,l=r?n.left:n.top,c=r?n.right:n.bottom,d=r?n.width:n.height;return i===l||o===c||i+s/2===l+d/2},x1=function(t,n){var r;return ml.some(function(i){var o=i[qn].options.emptyInsertThreshold;if(!(!o||kc(i))){var s=nn(i),l=t>=s.left-o&&t<=s.right+o,c=n>=s.top-o&&n<=s.bottom+o;if(l&&c)return r=i}}),r},og=function(t){function n(o,s){return function(l,c,d,h){var p=l.options.group.name&&c.options.group.name&&l.options.group.name===c.options.group.name;if(o==null&&(s||p))return!0;if(o==null||o===!1)return!1;if(s&&o==="clone")return o;if(typeof o=="function")return n(o(l,c,d,h),s)(l,c,d,h);var y=(s?l:c).options.group.name;return o===!0||typeof o=="string"&&o===y||o.join&&o.indexOf(y)>-1}}var r={},i=t.group;(!i||fl(i)!="object")&&(i={name:i}),r.name=i.name,r.checkPull=n(i.pull,!0),r.checkPut=n(i.put),r.revertClone=i.revertClone,t.group=r},sg=function(){!rg&&dt&&et(dt,"display","none")},ag=function(){!rg&&dt&&et(dt,"display","")};Cl&&!Vh&&document.addEventListener("click",function(e){if(gl)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),gl=!1,!1},!0);var Bi=function(t){if(Ee){t=t.touches?t.touches[0]:t;var n=x1(t.clientX,t.clientY);if(n){var r={};for(var i in t)t.hasOwnProperty(i)&&(r[i]=t[i]);r.target=r.rootEl=n,r.preventDefault=void 0,r.stopPropagation=void 0,n[qn]._onDragOver(r)}}},S1=function(t){Ee&&Ee.parentNode[qn]._isOutsideThisEl(t.target)};function tt(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=Kr({},t),e[qn]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return ig(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(s,l){s.setData("Text",l.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:tt.supportPointer!==!1&&"PointerEvent"in window&&!Ds,emptyInsertThreshold:5};Ns.initializePlugins(this,e,n);for(var r in n)!(r in t)&&(t[r]=n[r]);og(t);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=t.forceFallback?!1:w1,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?At(e,"pointerdown",this._onTapStart):(At(e,"mousedown",this._onTapStart),At(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(At(e,"dragover",this),At(e,"dragenter",this)),ml.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),Kr(this,v1())}tt.prototype={constructor:tt,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(Oo=null)},_getDirection:function(t,n){return typeof this.options.direction=="function"?this.options.direction.call(this,t,n,Ee):this.options.direction},_onTapStart:function(t){if(t.cancelable){var n=this,r=this.el,i=this.options,o=i.preventOnFilter,s=t.type,l=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,c=(l||t).target,d=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||c,h=i.filter;if(D1(r),!Ee&&!(/mousedown|pointerdown/.test(s)&&t.button!==0||i.disabled)&&!d.isContentEditable&&!(!this.nativeDraggable&&Ds&&c&&c.tagName.toUpperCase()==="SELECT")&&(c=Lr(c,i.draggable,r,!1),!(c&&c.animated)&&pl!==c)){if(ko=ir(c),Ms=ir(c,i.draggable),typeof h=="function"){if(h.call(this,t,c,this)){kn({sortable:n,rootEl:d,name:"filter",targetEl:c,toEl:r,fromEl:r}),Nn("filter",n,{evt:t}),o&&t.cancelable&&t.preventDefault();return}}else if(h&&(h=h.split(",").some(function(p){if(p=Lr(d,p.trim(),r,!1),p)return kn({sortable:n,rootEl:p,name:"filter",targetEl:c,fromEl:r,toEl:r}),Nn("filter",n,{evt:t}),!0}),h)){o&&t.cancelable&&t.preventDefault();return}i.handle&&!Lr(d,i.handle,r,!1)||this._prepareDragStart(t,l,c)}}},_prepareDragStart:function(t,n,r){var i=this,o=i.el,s=i.options,l=o.ownerDocument,c;if(r&&!Ee&&r.parentNode===o){var d=nn(r);if($t=o,Ee=r,Kt=Ee.parentNode,Fi=Ee.nextSibling,pl=r,hl=s.group,tt.dragged=Ee,$i={target:Ee,clientX:(n||t).clientX,clientY:(n||t).clientY},eg=$i.clientX-d.left,tg=$i.clientY-d.top,this._lastX=(n||t).clientX,this._lastY=(n||t).clientY,Ee.style["will-change"]="all",c=function(){if(Nn("delayEnded",i,{evt:t}),tt.eventCanceled){i._onDrop();return}i._disableDelayedDragEvents(),!Wh&&i.nativeDraggable&&(Ee.draggable=!0),i._triggerDragStart(t,n),kn({sortable:i,name:"choose",originalEvent:t}),Vn(Ee,s.chosenClass,!0)},s.ignore.split(",").forEach(function(h){Gh(Ee,h.trim(),Rc)}),At(l,"dragover",Bi),At(l,"mousemove",Bi),At(l,"touchmove",Bi),At(l,"mouseup",i._onDrop),At(l,"touchend",i._onDrop),At(l,"touchcancel",i._onDrop),Wh&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Ee.draggable=!0),Nn("delayStart",this,{evt:t}),s.delay&&(!s.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(Ps||qr))){if(tt.eventCanceled){this._onDrop();return}At(l,"mouseup",i._disableDelayedDrag),At(l,"touchend",i._disableDelayedDrag),At(l,"touchcancel",i._disableDelayedDrag),At(l,"mousemove",i._delayedDragTouchMoveHandler),At(l,"touchmove",i._delayedDragTouchMoveHandler),s.supportPointer&&At(l,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(c,s.delay)}else c()}},_delayedDragTouchMoveHandler:function(t){var n=t.touches?t.touches[0]:t;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Ee&&Rc(Ee),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;wt(t,"mouseup",this._disableDelayedDrag),wt(t,"touchend",this._disableDelayedDrag),wt(t,"touchcancel",this._disableDelayedDrag),wt(t,"mousemove",this._delayedDragTouchMoveHandler),wt(t,"touchmove",this._delayedDragTouchMoveHandler),wt(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,n){n=n||t.pointerType=="touch"&&t,!this.nativeDraggable||n?this.options.supportPointer?At(document,"pointermove",this._onTouchMove):n?At(document,"touchmove",this._onTouchMove):At(document,"mousemove",this._onTouchMove):(At(Ee,"dragend",this),At($t,"dragstart",this._onDragStart));try{document.selection?Tl(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,n){if(Eo=!1,$t&&Ee){Nn("dragStarted",this,{evt:n}),this.nativeDraggable&&At(document,"dragover",S1);var r=this.options;!t&&Vn(Ee,r.dragClass,!1),Vn(Ee,r.ghostClass,!0),tt.active=this,t&&this._appendGhost(),kn({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(yr){this._lastX=yr.clientX,this._lastY=yr.clientY,sg();for(var t=document.elementFromPoint(yr.clientX,yr.clientY),n=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(yr.clientX,yr.clientY),t!==n);)n=t;if(Ee.parentNode[qn]._isOutsideThisEl(t),n)do{if(n[qn]){var r=void 0;if(r=n[qn]._onDragOver({clientX:yr.clientX,clientY:yr.clientY,target:t,rootEl:n}),r&&!this.options.dragoverBubble)break}t=n}while(n=n.parentNode);ag()}},_onTouchMove:function(t){if($i){var n=this.options,r=n.fallbackTolerance,i=n.fallbackOffset,o=t.touches?t.touches[0]:t,s=dt&&xo(dt,!0),l=dt&&s&&s.a,c=dt&&s&&s.d,d=_l&&yn&&Xh(yn),h=(o.clientX-$i.clientX+i.x)/(l||1)+(d?d[0]-Pc[0]:0)/(l||1),p=(o.clientY-$i.clientY+i.y)/(c||1)+(d?d[1]-Pc[1]:0)/(c||1);if(!tt.active&&!Eo){if(r&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<r)return;this._onDragStart(t,!0)}if(dt){s?(s.e+=h-(Lc||0),s.f+=p-(Ic||0)):s={a:1,b:0,c:0,d:1,e:h,f:p};var y="matrix(".concat(s.a,",").concat(s.b,",").concat(s.c,",").concat(s.d,",").concat(s.e,",").concat(s.f,")");et(dt,"webkitTransform",y),et(dt,"mozTransform",y),et(dt,"msTransform",y),et(dt,"transform",y),Lc=h,Ic=p,yr=o}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!dt){var t=this.options.fallbackOnBody?document.body:$t,n=nn(Ee,!0,_l,!0,t),r=this.options;if(_l){for(yn=t;et(yn,"position")==="static"&&et(yn,"transform")==="none"&&yn!==document;)yn=yn.parentNode;yn!==document.body&&yn!==document.documentElement?(yn===document&&(yn=Ir()),n.top+=yn.scrollTop,n.left+=yn.scrollLeft):yn=Ir(),Pc=Xh(yn)}dt=Ee.cloneNode(!0),Vn(dt,r.ghostClass,!1),Vn(dt,r.fallbackClass,!0),Vn(dt,r.dragClass,!0),et(dt,"transition",""),et(dt,"transform",""),et(dt,"box-sizing","border-box"),et(dt,"margin",0),et(dt,"top",n.top),et(dt,"left",n.left),et(dt,"width",n.width),et(dt,"height",n.height),et(dt,"opacity","0.8"),et(dt,"position",_l?"absolute":"fixed"),et(dt,"zIndex","100000"),et(dt,"pointerEvents","none"),tt.ghost=dt,t.appendChild(dt),et(dt,"transform-origin",eg/parseInt(dt.style.width)*100+"% "+tg/parseInt(dt.style.height)*100+"%")}},_onDragStart:function(t,n){var r=this,i=t.dataTransfer,o=r.options;if(Nn("dragStart",this,{evt:t}),tt.eventCanceled){this._onDrop();return}Nn("setupClone",this),tt.eventCanceled||(Ut=Qh(Ee),Ut.removeAttribute("id"),Ut.draggable=!1,Ut.style["will-change"]="",this._hideClone(),Vn(Ut,this.options.chosenClass,!1),tt.clone=Ut),r.cloneId=Tl(function(){Nn("clone",r),!tt.eventCanceled&&(r.options.removeCloneOnHide||$t.insertBefore(Ut,Ee),r._hideClone(),kn({sortable:r,name:"clone"}))}),!n&&Vn(Ee,o.dragClass,!0),n?(gl=!0,r._loopId=setInterval(r._emulateDragOver,50)):(wt(document,"mouseup",r._onDrop),wt(document,"touchend",r._onDrop),wt(document,"touchcancel",r._onDrop),i&&(i.effectAllowed="move",o.setData&&o.setData.call(r,i,Ee)),At(document,"drop",r),et(Ee,"transform","translateZ(0)")),Eo=!0,r._dragStartId=Tl(r._dragStarted.bind(r,n,t)),At(document,"selectstart",r),Fs=!0,Ds&&et(document.body,"user-select","none")},_onDragOver:function(t){var n=this.el,r=t.target,i,o,s,l=this.options,c=l.group,d=tt.active,h=hl===c,p=l.sort,y=pn||d,C,w=this,x=!1;if(Dc)return;function O(ie,ce){Nn(ie,w,Or({evt:t,isOwner:h,axis:C?"vertical":"horizontal",revert:s,dragRect:i,targetRect:o,canSort:p,fromSortable:y,target:r,completed:B,onMove:function(Ve,ne){return wl($t,n,Ee,i,Ve,nn(Ve),t,ne)},changed:te},ce))}function E(){O("dragOverAnimationCapture"),w.captureAnimationState(),w!==y&&y.captureAnimationState()}function B(ie){return O("dragOverCompleted",{insertion:ie}),ie&&(h?d._hideClone():d._showClone(w),w!==y&&(Vn(Ee,pn?pn.options.ghostClass:d.options.ghostClass,!1),Vn(Ee,l.ghostClass,!0)),pn!==w&&w!==tt.active?pn=w:w===tt.active&&pn&&(pn=null),y===w&&(w._ignoreWhileAnimating=r),w.animateAll(function(){O("dragOverAnimationComplete"),w._ignoreWhileAnimating=null}),w!==y&&(y.animateAll(),y._ignoreWhileAnimating=null)),(r===Ee&&!Ee.animated||r===n&&!r.animated)&&(Oo=null),!l.dragoverBubble&&!t.rootEl&&r!==document&&(Ee.parentNode[qn]._isOutsideThisEl(t.target),!ie&&Bi(t)),!l.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),x=!0}function te(){zn=ir(Ee),gi=ir(Ee,l.draggable),kn({sortable:w,name:"change",toEl:n,newIndex:zn,newDraggableIndex:gi,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),r=Lr(r,l.draggable,n,!0),O("dragOver"),tt.eventCanceled)return x;if(Ee.contains(t.target)||r.animated&&r.animatingX&&r.animatingY||w._ignoreWhileAnimating===r)return B(!1);if(gl=!1,d&&!l.disabled&&(h?p||(s=Kt!==$t):pn===this||(this.lastPutMode=hl.checkPull(this,d,Ee,t))&&c.checkPut(this,d,Ee,t))){if(C=this._getDirection(t,r)==="vertical",i=nn(Ee),O("dragOverValid"),tt.eventCanceled)return x;if(s)return Kt=$t,E(),this._hideClone(),O("revert"),tt.eventCanceled||(Fi?$t.insertBefore(Ee,Fi):$t.appendChild(Ee)),B(!0);var D=kc(n,l.draggable);if(!D||O1(t,C,this)&&!D.animated){if(D===Ee)return B(!1);if(D&&n===t.target&&(r=D),r&&(o=nn(r)),wl($t,n,Ee,i,r,o,t,!!r)!==!1)return E(),D&&D.nextSibling?n.insertBefore(Ee,D.nextSibling):n.appendChild(Ee),Kt=n,te(),B(!0)}else if(D&&E1(t,C,this)){var we=So(n,0,l,!0);if(we===Ee)return B(!1);if(r=we,o=nn(r),wl($t,n,Ee,i,r,o,t,!1)!==!1)return E(),n.insertBefore(Ee,we),Kt=n,te(),B(!0)}else if(r.parentNode===n){o=nn(r);var m=0,ue,I=Ee.parentNode!==n,A=!T1(Ee.animated&&Ee.toRect||i,r.animated&&r.toRect||o,C),P=C?"top":"left",j=Yh(r,"top","top")||Yh(Ee,"top","top"),Q=j?j.scrollTop:void 0;Oo!==r&&(ue=o[P],Bs=!1,vl=!A&&l.invertSwap||I),m=L1(t,r,o,C,A?1:l.swapThreshold,l.invertedSwapThreshold==null?l.swapThreshold:l.invertedSwapThreshold,vl,Oo===r);var X;if(m!==0){var ve=ir(Ee);do ve-=m,X=Kt.children[ve];while(X&&(et(X,"display")==="none"||X===dt))}if(m===0||X===r)return B(!1);Oo=r,$s=m;var je=r.nextElementSibling,Re=!1;Re=m===1;var q=wl($t,n,Ee,i,r,o,t,Re);if(q!==!1)return(q===1||q===-1)&&(Re=q===1),Dc=!0,setTimeout(k1,30),E(),Re&&!je?n.appendChild(Ee):r.parentNode.insertBefore(Ee,Re?je:r),j&&Zh(j,0,Q-j.scrollTop),Kt=Ee.parentNode,ue!==void 0&&!vl&&(yl=Math.abs(ue-nn(r)[P])),te(),B(!0)}if(n.contains(Ee))return B(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){wt(document,"mousemove",this._onTouchMove),wt(document,"touchmove",this._onTouchMove),wt(document,"pointermove",this._onTouchMove),wt(document,"dragover",Bi),wt(document,"mousemove",Bi),wt(document,"touchmove",Bi)},_offUpEvents:function(){var t=this.el.ownerDocument;wt(t,"mouseup",this._onDrop),wt(t,"touchend",this._onDrop),wt(t,"pointerup",this._onDrop),wt(t,"touchcancel",this._onDrop),wt(document,"selectstart",this)},_onDrop:function(t){var n=this.el,r=this.options;if(zn=ir(Ee),gi=ir(Ee,r.draggable),Nn("drop",this,{evt:t}),Kt=Ee&&Ee.parentNode,zn=ir(Ee),gi=ir(Ee,r.draggable),tt.eventCanceled){this._nulling();return}Eo=!1,vl=!1,Bs=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Nc(this.cloneId),Nc(this._dragStartId),this.nativeDraggable&&(wt(document,"drop",this),wt(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Ds&&et(document.body,"user-select",""),et(Ee,"transform",""),t&&(Fs&&(t.cancelable&&t.preventDefault(),!r.dropBubble&&t.stopPropagation()),dt&&dt.parentNode&&dt.parentNode.removeChild(dt),($t===Kt||pn&&pn.lastPutMode!=="clone")&&Ut&&Ut.parentNode&&Ut.parentNode.removeChild(Ut),Ee&&(this.nativeDraggable&&wt(Ee,"dragend",this),Rc(Ee),Ee.style["will-change"]="",Fs&&!Eo&&Vn(Ee,pn?pn.options.ghostClass:this.options.ghostClass,!1),Vn(Ee,this.options.chosenClass,!1),kn({sortable:this,name:"unchoose",toEl:Kt,newIndex:null,newDraggableIndex:null,originalEvent:t}),$t!==Kt?(zn>=0&&(kn({rootEl:Kt,name:"add",toEl:Kt,fromEl:$t,originalEvent:t}),kn({sortable:this,name:"remove",toEl:Kt,originalEvent:t}),kn({rootEl:Kt,name:"sort",toEl:Kt,fromEl:$t,originalEvent:t}),kn({sortable:this,name:"sort",toEl:Kt,originalEvent:t})),pn&&pn.save()):zn!==ko&&zn>=0&&(kn({sortable:this,name:"update",toEl:Kt,originalEvent:t}),kn({sortable:this,name:"sort",toEl:Kt,originalEvent:t})),tt.active&&((zn==null||zn===-1)&&(zn=ko,gi=Ms),kn({sortable:this,name:"end",toEl:Kt,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){Nn("nulling",this),$t=Ee=Kt=dt=Fi=Ut=pl=hi=$i=yr=Fs=zn=gi=ko=Ms=Oo=$s=pn=hl=tt.dragged=tt.ghost=tt.clone=tt.active=null,bl.forEach(function(t){t.checked=!0}),bl.length=Lc=Ic=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":Ee&&(this._onDragOver(t),A1(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],n,r=this.el.children,i=0,o=r.length,s=this.options;i<o;i++)n=r[i],Lr(n,s.draggable,this.el,!1)&&t.push(n.getAttribute(s.dataIdAttr)||P1(n));return t},sort:function(t,n){var r={},i=this.el;this.toArray().forEach(function(o,s){var l=i.children[s];Lr(l,this.options.draggable,i,!1)&&(r[o]=l)},this),n&&this.captureAnimationState(),t.forEach(function(o){r[o]&&(i.removeChild(r[o]),i.appendChild(r[o]))}),n&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,n){return Lr(t,n||this.options.draggable,this.el,!1)},option:function(t,n){var r=this.options;if(n===void 0)return r[t];var i=Ns.modifyOption(this,t,n);typeof i<"u"?r[t]=i:r[t]=n,t==="group"&&og(r)},destroy:function(){Nn("destroy",this);var t=this.el;t[qn]=null,wt(t,"mousedown",this._onTapStart),wt(t,"touchstart",this._onTapStart),wt(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(wt(t,"dragover",this),wt(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),ml.splice(ml.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!hi){if(Nn("hideClone",this),tt.eventCanceled)return;et(Ut,"display","none"),this.options.removeCloneOnHide&&Ut.parentNode&&Ut.parentNode.removeChild(Ut),hi=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(hi){if(Nn("showClone",this),tt.eventCanceled)return;Ee.parentNode==$t&&!this.options.group.revertClone?$t.insertBefore(Ut,Ee):Fi?$t.insertBefore(Ut,Fi):$t.appendChild(Ut),this.options.group.revertClone&&this.animate(Ee,Ut),et(Ut,"display",""),hi=!1}}};function A1(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function wl(e,t,n,r,i,o,s,l){var c,d=e[qn],h=d.options.onMove,p;return window.CustomEvent&&!qr&&!Ps?c=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(c=document.createEvent("Event"),c.initEvent("move",!0,!0)),c.to=t,c.from=e,c.dragged=n,c.draggedRect=r,c.related=i||t,c.relatedRect=o||nn(t),c.willInsertAfter=l,c.originalEvent=s,e.dispatchEvent(c),h&&(p=h.call(d,c,s)),p}function Rc(e){e.draggable=!1}function k1(){Dc=!1}function E1(e,t,n){var r=nn(So(n.el,0,n.options,!0)),i=10;return t?e.clientX<r.left-i||e.clientY<r.top&&e.clientX<r.right:e.clientY<r.top-i||e.clientY<r.bottom&&e.clientX<r.left}function O1(e,t,n){var r=nn(kc(n.el,n.options.draggable)),i=10;return t?e.clientX>r.right+i||e.clientX<=r.right&&e.clientY>r.bottom&&e.clientX>=r.left:e.clientX>r.right&&e.clientY>r.top||e.clientX<=r.right&&e.clientY>r.bottom+i}function L1(e,t,n,r,i,o,s,l){var c=r?e.clientY:e.clientX,d=r?n.height:n.width,h=r?n.top:n.left,p=r?n.bottom:n.right,y=!1;if(!s){if(l&&yl<d*i){if(!Bs&&($s===1?c>h+d*o/2:c<p-d*o/2)&&(Bs=!0),Bs)y=!0;else if($s===1?c<h+yl:c>p-yl)return-$s}else if(c>h+d*(1-i)/2&&c<p-d*(1-i)/2)return I1(t)}return y=y||s,y&&(c<h+d*o/2||c>p-d*o/2)?c>h+d/2?1:-1:0}function I1(e){return ir(Ee)<ir(e)?1:-1}function P1(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;n--;)r+=t.charCodeAt(n);return r.toString(36)}function D1(e){bl.length=0;for(var t=e.getElementsByTagName("input"),n=t.length;n--;){var r=t[n];r.checked&&bl.push(r)}}function Tl(e){return setTimeout(e,0)}function Nc(e){return clearTimeout(e)}Cl&&At(document,"touchmove",function(e){(tt.active||Eo)&&e.cancelable&&e.preventDefault()}),tt.utils={on:At,off:wt,css:et,find:Gh,is:function(t,n){return!!Lr(t,n,t,!1)},extend:g1,throttle:Jh,closest:Lr,toggleClass:Vn,clone:Qh,index:ir,nextTick:Tl,cancelNextTick:Nc,detectDirection:ig,getChild:So},tt.get=function(e){return e[qn]},tt.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach(function(r){if(!r.prototype||!r.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(r));r.utils&&(tt.utils=Or(Or({},tt.utils),r.utils)),Ns.mount(r)})},tt.create=function(e,t){return new tt(e,t)},tt.version=d1;var Jt=[],Hs,Mc,Fc=!1,$c,Bc,xl,js;function R1(){function e(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var t in this)t.charAt(0)==="_"&&typeof this[t]=="function"&&(this[t]=this[t].bind(this))}return e.prototype={dragStarted:function(n){var r=n.originalEvent;this.sortable.nativeDraggable?At(document,"dragover",this._handleAutoScroll):this.options.supportPointer?At(document,"pointermove",this._handleFallbackAutoScroll):r.touches?At(document,"touchmove",this._handleFallbackAutoScroll):At(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var r=n.originalEvent;!this.options.dragOverBubble&&!r.rootEl&&this._handleAutoScroll(r)},drop:function(){this.sortable.nativeDraggable?wt(document,"dragover",this._handleAutoScroll):(wt(document,"pointermove",this._handleFallbackAutoScroll),wt(document,"touchmove",this._handleFallbackAutoScroll),wt(document,"mousemove",this._handleFallbackAutoScroll)),lg(),Sl(),m1()},nulling:function(){xl=Mc=Hs=Fc=js=$c=Bc=null,Jt.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,r){var i=this,o=(n.touches?n.touches[0]:n).clientX,s=(n.touches?n.touches[0]:n).clientY,l=document.elementFromPoint(o,s);if(xl=n,r||this.options.forceAutoScrollFallback||Ps||qr||Ds){Hc(n,this.options,l,r);var c=pi(l,!0);Fc&&(!js||o!==$c||s!==Bc)&&(js&&lg(),js=setInterval(function(){var d=pi(document.elementFromPoint(o,s),!0);d!==c&&(c=d,Sl()),Hc(n,i.options,d,r)},10),$c=o,Bc=s)}else{if(!this.options.bubbleScroll||pi(l,!0)===Ir()){Sl();return}Hc(n,this.options,pi(l,!1),!1)}}},Kr(e,{pluginName:"scroll",initializeByDefault:!0})}function Sl(){Jt.forEach(function(e){clearInterval(e.pid)}),Jt=[]}function lg(){clearInterval(js)}var Hc=Jh(function(e,t,n,r){if(t.scroll){var i=(e.touches?e.touches[0]:e).clientX,o=(e.touches?e.touches[0]:e).clientY,s=t.scrollSensitivity,l=t.scrollSpeed,c=Ir(),d=!1,h;Mc!==n&&(Mc=n,Sl(),Hs=t.scroll,h=t.scrollFn,Hs===!0&&(Hs=pi(n,!0)));var p=0,y=Hs;do{var C=y,w=nn(C),x=w.top,O=w.bottom,E=w.left,B=w.right,te=w.width,D=w.height,we=void 0,m=void 0,ue=C.scrollWidth,I=C.scrollHeight,A=et(C),P=C.scrollLeft,j=C.scrollTop;C===c?(we=te<ue&&(A.overflowX==="auto"||A.overflowX==="scroll"||A.overflowX==="visible"),m=D<I&&(A.overflowY==="auto"||A.overflowY==="scroll"||A.overflowY==="visible")):(we=te<ue&&(A.overflowX==="auto"||A.overflowX==="scroll"),m=D<I&&(A.overflowY==="auto"||A.overflowY==="scroll"));var Q=we&&(Math.abs(B-i)<=s&&P+te<ue)-(Math.abs(E-i)<=s&&!!P),X=m&&(Math.abs(O-o)<=s&&j+D<I)-(Math.abs(x-o)<=s&&!!j);if(!Jt[p])for(var ve=0;ve<=p;ve++)Jt[ve]||(Jt[ve]={});(Jt[p].vx!=Q||Jt[p].vy!=X||Jt[p].el!==C)&&(Jt[p].el=C,Jt[p].vx=Q,Jt[p].vy=X,clearInterval(Jt[p].pid),(Q!=0||X!=0)&&(d=!0,Jt[p].pid=setInterval(function(){r&&this.layer===0&&tt.active._onTouchMove(xl);var je=Jt[this.layer].vy?Jt[this.layer].vy*l:0,Re=Jt[this.layer].vx?Jt[this.layer].vx*l:0;typeof h=="function"&&h.call(tt.dragged.parentNode[qn],Re,je,e,xl,Jt[this.layer].el)!=="continue"||Zh(Jt[this.layer].el,Re,je)}.bind({layer:p}),24))),p++}while(t.bubbleScroll&&y!==c&&(y=pi(y,!1)));Fc=d}},30),ug=function(t){var n=t.originalEvent,r=t.putSortable,i=t.dragEl,o=t.activeSortable,s=t.dispatchSortableEvent,l=t.hideGhostForTarget,c=t.unhideGhostForTarget;if(n){var d=r||o;l();var h=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,p=document.elementFromPoint(h.clientX,h.clientY);c(),d&&!d.el.contains(p)&&(s("spill"),this.onSpill({dragEl:i,putSortable:r}))}};function jc(){}jc.prototype={startIndex:null,dragStart:function(t){var n=t.oldDraggableIndex;this.startIndex=n},onSpill:function(t){var n=t.dragEl,r=t.putSortable;this.sortable.captureAnimationState(),r&&r.captureAnimationState();var i=So(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(n,i):this.sortable.el.appendChild(n),this.sortable.animateAll(),r&&r.animateAll()},drop:ug},Kr(jc,{pluginName:"revertOnSpill"});function Uc(){}Uc.prototype={onSpill:function(t){var n=t.dragEl,r=t.putSortable,i=r||this.sortable;i.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),i.animateAll()},drop:ug},Kr(Uc,{pluginName:"removeOnSpill"}),tt.mount(new R1),tt.mount(Uc,jc);const N1=(e,t=!1,n=!1)=>{if(e==null||e===!1||e===""||e.trim()==="")return[];e=e.replace(/,/g,","),e=e.replace(/。/g,","),e=e.replace(/、/g,","),e=e.replace(/;/g,","),e=e.replace(/./g,","),e=e.replace(/\t/g,`
|
||
`),e=e.replace(/\r/g,`
|
||
`),e=e.replace(/\n+/g,`
|
||
`);const r={"(":")","[":"]","<":">","{":"}"},i=Object.keys(r);let o=e.length,s="",l="",c="",d=0,h=[];for(let p=0;p<o;p++){const y=e[p];y===`
|
||
`?l===""?(s.trim()!==""&&h.push(s.trim()),h.push(`
|
||
`),d=0,l="",c="",s=""):s+=" ":y===","?l===""?(h.push(s.trim()),d=0,l="",c="",s=""):s+=y:l===""?i.includes(y)?(d=1,l=y,c=r[y],s+=y):y===" "&&s.trim()==="BREAK"?(h.push(s.trim()),d=0,l="",c="",s=""):(s+=y,s.endsWith(" BREAK")&&(s=s.substring(0,s.length-6),h.push(s.trim()),h.push("BREAK"),d=0,l="",c="",s="")):y===c?(d--,d===0&&(l="",c=""),s+=y):(y===l&&d++,s+=y)}return s!==""&&h.push(s.trim()),h},Al={name:"Physton/sd-webui-prompt-all-in-one",shortName:"sd-webui-prompt-all-in-one",github:"https://github.com/Physton/sd-webui-prompt-all-in-one",nameAssets:"Physton/sd-webui-prompt-all-in-one-assets",shortNameAssets:"sd-webui-prompt-all-in-one-assets",githubAssets:"https://github.com/Physton/sd-webui-prompt-all-in-one-assets",gitee:"https://gitee.com/Physton/sd-webui-prompt-all-in-one",docs:"https://aiodoc.physton.com",nameTagComplete:"DominikDoom/a1111-sd-webui-tagcomplete",shortNameTagComplete:"a1111-sd-webui-tagcomplete",githubTagComplete:"https://github.com/DominikDoom/a1111-sd-webui-tagcomplete"};function kl(e){return kl=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},kl(e)}var M1=/^\s+/,F1=/\s+$/;function Pe(e,t){if(e=e||"",t=t||{},e instanceof Pe)return e;if(!(this instanceof Pe))return new Pe(e,t);var n=$1(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}Pe.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),n,r,i,o,s,l;return n=t.r/255,r=t.g/255,i=t.b/255,n<=.03928?o=n/12.92:o=Math.pow((n+.055)/1.055,2.4),r<=.03928?s=r/12.92:s=Math.pow((r+.055)/1.055,2.4),i<=.03928?l=i/12.92:l=Math.pow((i+.055)/1.055,2.4),.2126*o+.7152*s+.0722*l},setAlpha:function(t){return this._a=gg(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=fg(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=fg(this._r,this._g,this._b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.v*100);return this._a==1?"hsv("+n+", "+r+"%, "+i+"%)":"hsva("+n+", "+r+"%, "+i+"%, "+this._roundA+")"},toHsl:function(){var t=cg(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=cg(this._r,this._g,this._b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.l*100);return this._a==1?"hsl("+n+", "+r+"%, "+i+"%)":"hsla("+n+", "+r+"%, "+i+"%, "+this._roundA+")"},toHex:function(t){return dg(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return U1(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(Bt(this._r,255)*100)+"%",g:Math.round(Bt(this._g,255)*100)+"%",b:Math.round(Bt(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(Bt(this._r,255)*100)+"%, "+Math.round(Bt(this._g,255)*100)+"%, "+Math.round(Bt(this._b,255)*100)+"%)":"rgba("+Math.round(Bt(this._r,255)*100)+"%, "+Math.round(Bt(this._g,255)*100)+"%, "+Math.round(Bt(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:ew[dg(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var n="#"+pg(this._r,this._g,this._b,this._a),r=n,i=this._gradientType?"GradientType = 1, ":"";if(t){var o=Pe(t);r="#"+pg(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+n+",endColorstr="+r+")"},toString:function(t){var n=!!t;t=t||this._format;var r=!1,i=this._a<1&&this._a>=0,o=!n&&i&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return o?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},clone:function(){return Pe(this.toString())},_applyModification:function(t,n){var r=t.apply(null,[this].concat([].slice.call(n)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(q1,arguments)},brighten:function(){return this._applyModification(z1,arguments)},darken:function(){return this._applyModification(G1,arguments)},desaturate:function(){return this._applyModification(W1,arguments)},saturate:function(){return this._applyModification(K1,arguments)},greyscale:function(){return this._applyModification(V1,arguments)},spin:function(){return this._applyModification(Y1,arguments)},_applyCombination:function(t,n){return t.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(Z1,arguments)},complement:function(){return this._applyCombination(X1,arguments)},monochromatic:function(){return this._applyCombination(Q1,arguments)},splitcomplement:function(){return this._applyCombination(J1,arguments)},triad:function(){return this._applyCombination(hg,[3])},tetrad:function(){return this._applyCombination(hg,[4])}},Pe.fromRatio=function(e,t){if(kl(e)=="object"){var n={};for(var r in e)e.hasOwnProperty(r)&&(r==="a"?n[r]=e[r]:n[r]=Us(e[r]));e=n}return Pe(e,t)};function $1(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,o=null,s=!1,l=!1;return typeof e=="string"&&(e=iw(e)),kl(e)=="object"&&(zr(e.r)&&zr(e.g)&&zr(e.b)?(t=B1(e.r,e.g,e.b),s=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):zr(e.h)&&zr(e.s)&&zr(e.v)?(r=Us(e.s),i=Us(e.v),t=j1(e.h,r,i),s=!0,l="hsv"):zr(e.h)&&zr(e.s)&&zr(e.l)&&(r=Us(e.s),o=Us(e.l),t=H1(e.h,r,o),s=!0,l="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=gg(n),{ok:s,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}function B1(e,t,n){return{r:Bt(e,255)*255,g:Bt(t,255)*255,b:Bt(n,255)*255}}function cg(e,t,n){e=Bt(e,255),t=Bt(t,255),n=Bt(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o,s,l=(r+i)/2;if(r==i)o=s=0;else{var c=r-i;switch(s=l>.5?c/(2-r-i):c/(r+i),r){case e:o=(t-n)/c+(t<n?6:0);break;case t:o=(n-e)/c+2;break;case n:o=(e-t)/c+4;break}o/=6}return{h:o,s,l}}function H1(e,t,n){var r,i,o;e=Bt(e,360),t=Bt(t,100),n=Bt(n,100);function s(d,h,p){return p<0&&(p+=1),p>1&&(p-=1),p<1/6?d+(h-d)*6*p:p<1/2?h:p<2/3?d+(h-d)*(2/3-p)*6:d}if(t===0)r=i=o=n;else{var l=n<.5?n*(1+t):n+t-n*t,c=2*n-l;r=s(c,l,e+1/3),i=s(c,l,e),o=s(c,l,e-1/3)}return{r:r*255,g:i*255,b:o*255}}function fg(e,t,n){e=Bt(e,255),t=Bt(t,255),n=Bt(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o,s,l=r,c=r-i;if(s=r===0?0:c/r,r==i)o=0;else{switch(r){case e:o=(t-n)/c+(t<n?6:0);break;case t:o=(n-e)/c+2;break;case n:o=(e-t)/c+4;break}o/=6}return{h:o,s,v:l}}function j1(e,t,n){e=Bt(e,360)*6,t=Bt(t,100),n=Bt(n,100);var r=Math.floor(e),i=e-r,o=n*(1-t),s=n*(1-i*t),l=n*(1-(1-i)*t),c=r%6,d=[n,s,o,o,l,n][c],h=[l,n,n,s,o,o][c],p=[o,o,l,n,n,s][c];return{r:d*255,g:h*255,b:p*255}}function dg(e,t,n,r){var i=[br(Math.round(e).toString(16)),br(Math.round(t).toString(16)),br(Math.round(n).toString(16))];return r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function U1(e,t,n,r,i){var o=[br(Math.round(e).toString(16)),br(Math.round(t).toString(16)),br(Math.round(n).toString(16)),br(mg(r))];return i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function pg(e,t,n,r){var i=[br(mg(r)),br(Math.round(e).toString(16)),br(Math.round(t).toString(16)),br(Math.round(n).toString(16))];return i.join("")}Pe.equals=function(e,t){return!e||!t?!1:Pe(e).toRgbString()==Pe(t).toRgbString()},Pe.random=function(){return Pe.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function W1(e,t){t=t===0?0:t||10;var n=Pe(e).toHsl();return n.s-=t/100,n.s=El(n.s),Pe(n)}function K1(e,t){t=t===0?0:t||10;var n=Pe(e).toHsl();return n.s+=t/100,n.s=El(n.s),Pe(n)}function V1(e){return Pe(e).desaturate(100)}function q1(e,t){t=t===0?0:t||10;var n=Pe(e).toHsl();return n.l+=t/100,n.l=El(n.l),Pe(n)}function z1(e,t){t=t===0?0:t||10;var n=Pe(e).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),Pe(n)}function G1(e,t){t=t===0?0:t||10;var n=Pe(e).toHsl();return n.l-=t/100,n.l=El(n.l),Pe(n)}function Y1(e,t){var n=Pe(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,Pe(n)}function X1(e){var t=Pe(e).toHsl();return t.h=(t.h+180)%360,Pe(t)}function hg(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var n=Pe(e).toHsl(),r=[Pe(e)],i=360/t,o=1;o<t;o++)r.push(Pe({h:(n.h+o*i)%360,s:n.s,l:n.l}));return r}function J1(e){var t=Pe(e).toHsl(),n=t.h;return[Pe(e),Pe({h:(n+72)%360,s:t.s,l:t.l}),Pe({h:(n+216)%360,s:t.s,l:t.l})]}function Z1(e,t,n){t=t||6,n=n||30;var r=Pe(e).toHsl(),i=360/n,o=[Pe(e)];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(Pe(r));return o}function Q1(e,t){t=t||6;for(var n=Pe(e).toHsv(),r=n.h,i=n.s,o=n.v,s=[],l=1/t;t--;)s.push(Pe({h:r,s:i,v:o})),o=(o+l)%1;return s}Pe.mix=function(e,t,n){n=n===0?0:n||50;var r=Pe(e).toRgb(),i=Pe(t).toRgb(),o=n/100,s={r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a};return Pe(s)},Pe.readability=function(e,t){var n=Pe(e),r=Pe(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)},Pe.isReadable=function(e,t,n){var r=Pe.readability(e,t),i,o;switch(o=!1,i=ow(n),i.level+i.size){case"AAsmall":case"AAAlarge":o=r>=4.5;break;case"AAlarge":o=r>=3;break;case"AAAsmall":o=r>=7;break}return o},Pe.mostReadable=function(e,t,n){var r=null,i=0,o,s,l,c;n=n||{},s=n.includeFallbackColors,l=n.level,c=n.size;for(var d=0;d<t.length;d++)o=Pe.readability(e,t[d]),o>i&&(i=o,r=Pe(t[d]));return Pe.isReadable(e,r,{level:l,size:c})||!s?r:(n.includeFallbackColors=!1,Pe.mostReadable(e,["#fff","#000"],n))};var Wc=Pe.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},ew=Pe.hexNames=tw(Wc);function tw(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function gg(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Bt(e,t){nw(e)&&(e="100%");var n=rw(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function El(e){return Math.min(1,Math.max(0,e))}function Gn(e){return parseInt(e,16)}function nw(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function rw(e){return typeof e=="string"&&e.indexOf("%")!=-1}function br(e){return e.length==1?"0"+e:""+e}function Us(e){return e<=1&&(e=e*100+"%"),e}function mg(e){return Math.round(parseFloat(e)*255).toString(16)}function vg(e){return Gn(e)/255}var Cr=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",n="(?:"+t+")|(?:"+e+")",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",i="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+i),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+i),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"+i),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function zr(e){return!!Cr.CSS_UNIT.exec(e)}function iw(e){e=e.replace(M1,"").replace(F1,"").toLowerCase();var t=!1;if(Wc[e])e=Wc[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=Cr.rgb.exec(e))?{r:n[1],g:n[2],b:n[3]}:(n=Cr.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Cr.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=Cr.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Cr.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=Cr.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Cr.hex8.exec(e))?{r:Gn(n[1]),g:Gn(n[2]),b:Gn(n[3]),a:vg(n[4]),format:t?"name":"hex8"}:(n=Cr.hex6.exec(e))?{r:Gn(n[1]),g:Gn(n[2]),b:Gn(n[3]),format:t?"name":"hex"}:(n=Cr.hex4.exec(e))?{r:Gn(n[1]+""+n[1]),g:Gn(n[2]+""+n[2]),b:Gn(n[3]+""+n[3]),a:vg(n[4]+""+n[4]),format:t?"name":"hex8"}:(n=Cr.hex3.exec(e))?{r:Gn(n[1]+""+n[1]),g:Gn(n[2]+""+n[2]),b:Gn(n[3]+""+n[3]),format:t?"name":"hex"}:!1}function ow(e){var t,n;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),n!=="small"&&n!=="large"&&(n="small"),{level:t,size:n}}const mi={},me={loraRegex:/^\<lora:\s*([^\:]+)\s*(:)?\s*([0-9\.]+)?\>$/,lycoRegex:/^\<lyco:\s*([^\:]+)\s*(:)?\s*([0-9\.]+)?\>$/,weightNumRegex:/(.*):([0-9\.]+)/,weightNumRegexEN:/(.*):\s*([0-9\.]+)/,weightNumRegexCN:/(.*):\s*([0-9\.]+)/,bracketsEN:[{"(":"(",")":")"},{"[":"[","]":"]"},{"{":"{","}":"}"},{"<":"<",">":">"}],bracketsCN:[{"(":"(",")":")"},{"【":"[","】":"]"},{"《":"<","》":">"},{"「":"{","」":"}"},{"『":"{","』":"}"},{"〈":"<","〉":">"},{"﹝":"(","﹞":")"},{"﹛":"{","﹜":"}"},{"﹙":"(","﹚":")"}],replaceTag(e){return typeof e!="string"||e===""||(e=this.replaceBrackets(e),this.weightNumRegexEN.test(e)&&(e=e.replace(this.weightNumRegexEN,"$1:$2")),this.weightNumRegexCN.test(e)&&(e=e.replace(this.weightNumRegexCN,"$1:$2"))),e},replaceBrackets(e){const t=e.length;if(t===0)return e;let n={};this.bracketsCN.forEach(o=>{for(const s in o)n[s]=o[s]});let r=e[0],i=e[t-1];return typeof n[r]<"u"&&(e=n[r]+e.substring(1)),typeof n[i]<"u"&&(e=e.substring(0,t-1)+n[i]),e},hasBrackets(e){const t=e.length;if(t===0)return!1;let n=[];this.bracketsEN.forEach(o=>{let s=[];for(const l in o)s.push(l);n.push(s)}),this.bracketsCN.forEach(o=>{let s=[];for(const l in o)s.push(l);n.push(s)});let r=e[0],i=e[t-1];for(const o of n)if(o[0]===r&&o[1]===i)return o;return!1},splitTag(e){let t={left:"",value:"",right:""},n=e.match(/^([\(\<\{\[]+)(.*)$/);return!n||(t.left=n[1],e=n[2],n=e.match(/((\:[0-9\.]+)?[\)\>\}\]]+)$/),!n)?(t.value=e,t):(t.right=n[1],e=e.substring(0,e.length-t.right.length),t.value=e,t)},splitTags(e,t=!1,n=!1){return N1(e,t,n)},canTranslate(e){return!(e.trim()===""||e[0]==="<"&&e[e.length-1]===">"||/^[0-9`~!@#$%^&*()_+\-=\[\]{}\\|;:'",.\/<>?]+$/.test(e)||/^[a-zA-Z]$/.test(e))},isEnglish(e){const t=e.length;if(e[0]==="<"&&e[t-1]===">")return!0;for(let n=0;n<t;n++)if(e.charCodeAt(n)>127)return!1;return!0},canOneTranslate(e){const t=["zh_CN","zh_HK","zh_TW","ar_SA","ja_JP","ko_KR","ru_RU"];return t.push("am_ET","hy_AM","as_IN","bn_BD","ba_RU","bg_BG","prs_AF","dv_MV","el_GR","gu_IN","he_IL","hi_IN","iu_CA","kn_IN","kk_KZ","km_KH","ku_Arab_IQ","ky_KG","lo_LA","mk_MK","ml_IN","mr_IN","mn_Cyrl_MN","mn_Mong_CN","my_MM","ne_NP","or_IN","ps_AF","fa_IR","pa_Guru_IN","sr_Cyrl_RS","ta_IN","tt_Latn_RU","te_IN","th_TH","bo_CN","ti_ET","uk_UA","ur_PK","ug_Arab_CN","vi_VN"),!!t.includes(e)},isEnglishByLangCode(e,t){if(!this.canOneTranslate(t))return-1;const n=e.length;for(let r=0;r<n;r++)if(e.charCodeAt(r)>127)return 0;return 1},isSameLang(e,t){if(e===t)return!0;let n=e.toLowerCase(),r=t.toLowerCase();return n===r||(e=e.replace("-","_"),t=t.replace("-","_"),e===t)||(e=e.split("_")[0],t=t.split("_")[0],e===t)},getLang(e,t,n){return n[t]&&n[t].lang&&n[t].lang[e]?this.replaceGlobals(n[t].lang[e],t):n.en_US&&n.en_US.lang&&n.en_US.lang[e]?this.replaceGlobals(n.en_US.lang[e],"en_US"):this.replaceGlobals(e,t)},replaceGlobals(e,t){for(let n in Al){let r=Al[n];if(n==="docs")switch(t){case"zh_CN":r+="/zh-CN";break;case"zh_HK":case"zh_TW":r+="/zh-TW";break;case"ru_RU":r+="/ru";break}e=e.replace(new RegExp(`{{${n}}}`,"g"),r)}return e},escapeHtml(e){return e.replace(/[&<>'"]/g,t=>({"&":"&","<":"<",">":">","'":"'",'"':"""})[t]||t)},unescapeHtml(e){return e.replace(/&|<|>|'|"/g,t=>({"&":"&","<":"<",">":">","'":"'",""":'"'})[t]||t)},getTagWeightNum(e){const t=e.match(this.weightNumRegex);let n=t?parseFloat(t[2]):0;return n=n>=0?n:0,n},getTagIncWeight(e){return this.countLayers(e,"(",")")},getTagDecWeight(e){return this.countLayers(e,"[","]")},countLayers(e,t="(",n=")"){let r=0;if(e.length<2)return r;for(;;){let i=e[0],o=e[e.length-1];if(i===t&&o===n)r++,e=e.slice(1,e.length-1);else break}return r},setLayers(e,t=0,n="(",r=")",i=""){for(;;){let o=e[0],s=e[e.length-1];if(o===n&&s===r)e=e.slice(1,e.length-1);else break}return t===0?e:n.repeat(t)+e+i+r.repeat(t)},getTranslateApiInfo(e,t){let n=!1;for(const r in t)for(const i in r.children)if(i.key===e){n=i;break}return n},isEqualTags(e,t,n=[]){if(t.length!==e.length)return!1;for(let r=0;r<e.length;r++){for(let i in e[r])if(!n.includes(i)&&t[r][i]!==e[r][i])return!1;for(let i in t[r])if(!n.includes(i)&&t[r][i]!==e[r][i])return!1}return!0},getTranslateApiItem(e,t){if(!e||e.length<=0)return{};for(let n of e)for(let r of n.children)if(r.key===t)return r;return e[0].children[0]},hideCompleteResults(e){typeof hideResults=="function"&&[100,200,300,500,1e3].forEach(n=>{setTimeout(()=>{hideResults(e)},n)})},formatTime(e,t=!0){let n=new Date(e),r=n.getFullYear(),i=n.getMonth()+1;i<10&&(i="0"+i);let o=n.getDate();o<10&&(o="0"+o);let s=n.getHours();s<10&&(s="0"+s);let l=n.getMinutes();l<10&&(l="0"+l);let c=n.getSeconds();return c<10&&(c="0"+c),t?`${r}/${i}/${o} ${s}:${l}:${c}`:`${i}/${o} ${s}:${l}:${c}`},apiUrl(){let e;return e=window.location.origin+window.location.pathname,e+=e.endsWith("/")?"":"/",e+="physton_prompt/",e},removeCSS(e,t=!0){if(!e)return;let n=null;t?n=this.gradioApp().querySelector("#"+e):n=document.querySelector("#"+e),n&&n.remove()},loadCSS(e,t="",n=!0,r=!1,i=!0){n&&this.removeCSS(t,i);let o=this.apiUrl()+"styles?file="+encodeURIComponent(e);r||(o+="&t="+new Date().getTime());let s=document.createElement("link");s.id=t,s.rel="stylesheet",s.href=o,i?this.gradioApp().appendChild(s):document.body.appendChild(s)},swapElement(e,t){let n=e.parentNode,r=t.parentNode,i=e.nextSibling,o=t.nextSibling;n.insertBefore(t,i),r.insertBefore(e,o)},insertBefore(e,t){t.parentNode.insertBefore(e,t)},insertAfter(e,t){t.nextSibling?t.parentNode.insertBefore(e,t.nextSibling):t.parentNode.appendChild(e)},gradioContainer:null,gradioApp(){if(this.gradioContainer)return this.gradioContainer;const e=document.getElementsByTagName("gradio-app"),t=e.length==0?null:e[0].shadowRoot;if(t){const n=t.querySelectorAll(".gradio-container");for(let r=0;r<n.length;r++){const i=n[r];if(i.querySelectorAll("#tabs").length)return i.classList.add("physton-gradio-container"),this.gradioContainer=i,i}}else return document.body.classList.add("physton-gradio-container"),this.gradioContainer=document.body,document.body},fitterInputColor(e,t="rgba(0,0,0,0)"){let n="fitterInputColor:"+e+":"+t;return mi[n]?mi[n]:!e||e===""||e==="default"||e==="none"||e==="null"||e==="undefined"||e==="false"||e==="true"||!Pe(e).isValid()?(mi[n]=t,t):(mi[n]=e,e)},isColorTransparent(e){let t="isColorTransparent:"+e;if(mi[t])return mi[t];let n=Pe(e).getAlpha()===0;return mi[t]=n,n}};var Kc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ol(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var yg={exports:{}};/* @license
|
||
Papa Parse
|
||
v5.4.1
|
||
https://github.com/mholt/PapaParse
|
||
License: MIT
|
||
*/(function(e,t){(function(n,r){e.exports=r()})(Kc,function n(){var r=typeof self<"u"?self:typeof window<"u"?window:r!==void 0?r:{},i=!r.document&&!!r.postMessage,o=r.IS_PAPA_WORKER||!1,s={},l=0,c={parse:function(I,A){var P=(A=A||{}).dynamicTyping||!1;if(ue(P)&&(A.dynamicTypingFunction=P,P={}),A.dynamicTyping=P,A.transform=!!ue(A.transform)&&A.transform,A.worker&&c.WORKERS_SUPPORTED){var j=function(){if(!c.WORKERS_SUPPORTED)return!1;var X=(je=r.URL||r.webkitURL||null,Re=n.toString(),c.BLOB_URL||(c.BLOB_URL=je.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",Re,")();"],{type:"text/javascript"})))),ve=new r.Worker(X),je,Re;return ve.onmessage=B,ve.id=l++,s[ve.id]=ve}();return j.userStep=A.step,j.userChunk=A.chunk,j.userComplete=A.complete,j.userError=A.error,A.step=ue(A.step),A.chunk=ue(A.chunk),A.complete=ue(A.complete),A.error=ue(A.error),delete A.worker,void j.postMessage({input:I,config:A,workerId:j.id})}var Q=null;return c.NODE_STREAM_INPUT,typeof I=="string"?(I=function(X){return X.charCodeAt(0)===65279?X.slice(1):X}(I),Q=A.download?new p(A):new C(A)):I.readable===!0&&ue(I.read)&&ue(I.on)?Q=new w(A):(r.File&&I instanceof File||I instanceof Object)&&(Q=new y(A)),Q.stream(I)},unparse:function(I,A){var P=!1,j=!0,Q=",",X=`\r
|
||
`,ve='"',je=ve+ve,Re=!1,q=null,ie=!1;(function(){if(typeof A=="object"){if(typeof A.delimiter!="string"||c.BAD_DELIMITERS.filter(function(ne){return A.delimiter.indexOf(ne)!==-1}).length||(Q=A.delimiter),(typeof A.quotes=="boolean"||typeof A.quotes=="function"||Array.isArray(A.quotes))&&(P=A.quotes),typeof A.skipEmptyLines!="boolean"&&typeof A.skipEmptyLines!="string"||(Re=A.skipEmptyLines),typeof A.newline=="string"&&(X=A.newline),typeof A.quoteChar=="string"&&(ve=A.quoteChar),typeof A.header=="boolean"&&(j=A.header),Array.isArray(A.columns)){if(A.columns.length===0)throw new Error("Option columns is empty");q=A.columns}A.escapeChar!==void 0&&(je=A.escapeChar+ve),(typeof A.escapeFormulae=="boolean"||A.escapeFormulae instanceof RegExp)&&(ie=A.escapeFormulae instanceof RegExp?A.escapeFormulae:/^[=+\-@\t\r].*$/)}})();var ce=new RegExp(O(ve),"g");if(typeof I=="string"&&(I=JSON.parse(I)),Array.isArray(I)){if(!I.length||Array.isArray(I[0]))return nt(null,I,Re);if(typeof I[0]=="object")return nt(q||Object.keys(I[0]),I,Re)}else if(typeof I=="object")return typeof I.data=="string"&&(I.data=JSON.parse(I.data)),Array.isArray(I.data)&&(I.fields||(I.fields=I.meta&&I.meta.fields||q),I.fields||(I.fields=Array.isArray(I.data[0])?I.fields:typeof I.data[0]=="object"?Object.keys(I.data[0]):[]),Array.isArray(I.data[0])||typeof I.data[0]=="object"||(I.data=[I.data])),nt(I.fields||[],I.data||[],Re);throw new Error("Unable to serialize unrecognized input");function nt(ne,he,_e){var ke="";typeof ne=="string"&&(ne=JSON.parse(ne)),typeof he=="string"&&(he=JSON.parse(he));var Oe=Array.isArray(ne)&&0<ne.length,Be=!Array.isArray(he[0]);if(Oe&&j){for(var Xe=0;Xe<ne.length;Xe++)0<Xe&&(ke+=Q),ke+=Ve(ne[Xe],Xe);0<he.length&&(ke+=X)}for(var Le=0;Le<he.length;Le++){var rt=Oe?ne.length:he[Le].length,gt=!1,R=Oe?Object.keys(he[Le]).length===0:he[Le].length===0;if(_e&&!Oe&&(gt=_e==="greedy"?he[Le].join("").trim()==="":he[Le].length===1&&he[Le][0].length===0),_e==="greedy"&&Oe){for(var F=[],z=0;z<rt;z++){var ee=Be?ne[z]:z;F.push(he[Le][ee])}gt=F.join("").trim()===""}if(!gt){for(var W=0;W<rt;W++){0<W&&!R&&(ke+=Q);var Y=Oe&&Be?ne[W]:W;ke+=Ve(he[Le][Y],W)}Le<he.length-1&&(!_e||0<rt&&!R)&&(ke+=X)}}return ke}function Ve(ne,he){if(ne==null)return"";if(ne.constructor===Date)return JSON.stringify(ne).slice(1,25);var _e=!1;ie&&typeof ne=="string"&&ie.test(ne)&&(ne="'"+ne,_e=!0);var ke=ne.toString().replace(ce,je);return(_e=_e||P===!0||typeof P=="function"&&P(ne,he)||Array.isArray(P)&&P[he]||function(Oe,Be){for(var Xe=0;Xe<Be.length;Xe++)if(-1<Oe.indexOf(Be[Xe]))return!0;return!1}(ke,c.BAD_DELIMITERS)||-1<ke.indexOf(Q)||ke.charAt(0)===" "||ke.charAt(ke.length-1)===" ")?ve+ke+ve:ke}}};if(c.RECORD_SEP=String.fromCharCode(30),c.UNIT_SEP=String.fromCharCode(31),c.BYTE_ORDER_MARK="\uFEFF",c.BAD_DELIMITERS=["\r",`
|
||
`,'"',c.BYTE_ORDER_MARK],c.WORKERS_SUPPORTED=!i&&!!r.Worker,c.NODE_STREAM_INPUT=1,c.LocalChunkSize=10485760,c.RemoteChunkSize=5242880,c.DefaultDelimiter=",",c.Parser=E,c.ParserHandle=x,c.NetworkStreamer=p,c.FileStreamer=y,c.StringStreamer=C,c.ReadableStreamStreamer=w,r.jQuery){var d=r.jQuery;d.fn.parse=function(I){var A=I.config||{},P=[];return this.each(function(X){if(!(d(this).prop("tagName").toUpperCase()==="INPUT"&&d(this).attr("type").toLowerCase()==="file"&&r.FileReader)||!this.files||this.files.length===0)return!0;for(var ve=0;ve<this.files.length;ve++)P.push({file:this.files[ve],inputElem:this,instanceConfig:d.extend({},A)})}),j(),this;function j(){if(P.length!==0){var X,ve,je,Re,q=P[0];if(ue(I.before)){var ie=I.before(q.file,q.inputElem);if(typeof ie=="object"){if(ie.action==="abort")return X="AbortError",ve=q.file,je=q.inputElem,Re=ie.reason,void(ue(I.error)&&I.error({name:X},ve,je,Re));if(ie.action==="skip")return void Q();typeof ie.config=="object"&&(q.instanceConfig=d.extend(q.instanceConfig,ie.config))}else if(ie==="skip")return void Q()}var ce=q.instanceConfig.complete;q.instanceConfig.complete=function(nt){ue(ce)&&ce(nt,q.file,q.inputElem),Q()},c.parse(q.file,q.instanceConfig)}else ue(I.complete)&&I.complete()}function Q(){P.splice(0,1),j()}}}function h(I){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(A){var P=we(A);P.chunkSize=parseInt(P.chunkSize),A.step||A.chunk||(P.chunkSize=null),this._handle=new x(P),(this._handle.streamer=this)._config=P}.call(this,I),this.parseChunk=function(A,P){if(this.isFirstChunk&&ue(this._config.beforeFirstChunk)){var j=this._config.beforeFirstChunk(A);j!==void 0&&(A=j)}this.isFirstChunk=!1,this._halted=!1;var Q=this._partialLine+A;this._partialLine="";var X=this._handle.parse(Q,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var ve=X.meta.cursor;this._finished||(this._partialLine=Q.substring(ve-this._baseIndex),this._baseIndex=ve),X&&X.data&&(this._rowCount+=X.data.length);var je=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(o)r.postMessage({results:X,workerId:c.WORKER_ID,finished:je});else if(ue(this._config.chunk)&&!P){if(this._config.chunk(X,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);X=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(X.data),this._completeResults.errors=this._completeResults.errors.concat(X.errors),this._completeResults.meta=X.meta),this._completed||!je||!ue(this._config.complete)||X&&X.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),je||X&&X.meta.paused||this._nextChunk(),X}this._halted=!0},this._sendError=function(A){ue(this._config.error)?this._config.error(A):o&&this._config.error&&r.postMessage({workerId:c.WORKER_ID,error:A,finished:!1})}}function p(I){var A;(I=I||{}).chunkSize||(I.chunkSize=c.RemoteChunkSize),h.call(this,I),this._nextChunk=i?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(P){this._input=P,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(A=new XMLHttpRequest,this._config.withCredentials&&(A.withCredentials=this._config.withCredentials),i||(A.onload=m(this._chunkLoaded,this),A.onerror=m(this._chunkError,this)),A.open(this._config.downloadRequestBody?"POST":"GET",this._input,!i),this._config.downloadRequestHeaders){var P=this._config.downloadRequestHeaders;for(var j in P)A.setRequestHeader(j,P[j])}if(this._config.chunkSize){var Q=this._start+this._config.chunkSize-1;A.setRequestHeader("Range","bytes="+this._start+"-"+Q)}try{A.send(this._config.downloadRequestBody)}catch(X){this._chunkError(X.message)}i&&A.status===0&&this._chunkError()}},this._chunkLoaded=function(){A.readyState===4&&(A.status<200||400<=A.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:A.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(P){var j=P.getResponseHeader("Content-Range");return j===null?-1:parseInt(j.substring(j.lastIndexOf("/")+1))}(A),this.parseChunk(A.responseText)))},this._chunkError=function(P){var j=A.statusText||P;this._sendError(new Error(j))}}function y(I){var A,P;(I=I||{}).chunkSize||(I.chunkSize=c.LocalChunkSize),h.call(this,I);var j=typeof FileReader<"u";this.stream=function(Q){this._input=Q,P=Q.slice||Q.webkitSlice||Q.mozSlice,j?((A=new FileReader).onload=m(this._chunkLoaded,this),A.onerror=m(this._chunkError,this)):A=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var Q=this._input;if(this._config.chunkSize){var X=Math.min(this._start+this._config.chunkSize,this._input.size);Q=P.call(Q,this._start,X)}var ve=A.readAsText(Q,this._config.encoding);j||this._chunkLoaded({target:{result:ve}})},this._chunkLoaded=function(Q){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(Q.target.result)},this._chunkError=function(){this._sendError(A.error)}}function C(I){var A;h.call(this,I=I||{}),this.stream=function(P){return A=P,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var P,j=this._config.chunkSize;return j?(P=A.substring(0,j),A=A.substring(j)):(P=A,A=""),this._finished=!A,this.parseChunk(P)}}}function w(I){h.call(this,I=I||{});var A=[],P=!0,j=!1;this.pause=function(){h.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){h.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(Q){this._input=Q,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){j&&A.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),A.length?this.parseChunk(A.shift()):P=!0},this._streamData=m(function(Q){try{A.push(typeof Q=="string"?Q:Q.toString(this._config.encoding)),P&&(P=!1,this._checkIsFinished(),this.parseChunk(A.shift()))}catch(X){this._streamError(X)}},this),this._streamError=m(function(Q){this._streamCleanUp(),this._sendError(Q)},this),this._streamEnd=m(function(){this._streamCleanUp(),j=!0,this._streamData("")},this),this._streamCleanUp=m(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function x(I){var A,P,j,Q=Math.pow(2,53),X=-Q,ve=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,je=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,Re=this,q=0,ie=0,ce=!1,nt=!1,Ve=[],ne={data:[],errors:[],meta:{}};if(ue(I.step)){var he=I.step;I.step=function(Le){if(ne=Le,Oe())ke();else{if(ke(),ne.data.length===0)return;q+=Le.data.length,I.preview&&q>I.preview?P.abort():(ne.data=ne.data[0],he(ne,Re))}}}function _e(Le){return I.skipEmptyLines==="greedy"?Le.join("").trim()==="":Le.length===1&&Le[0].length===0}function ke(){return ne&&j&&(Xe("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+c.DefaultDelimiter+"'"),j=!1),I.skipEmptyLines&&(ne.data=ne.data.filter(function(Le){return!_e(Le)})),Oe()&&function(){if(!ne)return;function Le(gt,R){ue(I.transformHeader)&&(gt=I.transformHeader(gt,R)),Ve.push(gt)}if(Array.isArray(ne.data[0])){for(var rt=0;Oe()&&rt<ne.data.length;rt++)ne.data[rt].forEach(Le);ne.data.splice(0,1)}else ne.data.forEach(Le)}(),function(){if(!ne||!I.header&&!I.dynamicTyping&&!I.transform)return ne;function Le(gt,R){var F,z=I.header?{}:[];for(F=0;F<gt.length;F++){var ee=F,W=gt[F];I.header&&(ee=F>=Ve.length?"__parsed_extra":Ve[F]),I.transform&&(W=I.transform(W,ee)),W=Be(ee,W),ee==="__parsed_extra"?(z[ee]=z[ee]||[],z[ee].push(W)):z[ee]=W}return I.header&&(F>Ve.length?Xe("FieldMismatch","TooManyFields","Too many fields: expected "+Ve.length+" fields but parsed "+F,ie+R):F<Ve.length&&Xe("FieldMismatch","TooFewFields","Too few fields: expected "+Ve.length+" fields but parsed "+F,ie+R)),z}var rt=1;return!ne.data.length||Array.isArray(ne.data[0])?(ne.data=ne.data.map(Le),rt=ne.data.length):ne.data=Le(ne.data,0),I.header&&ne.meta&&(ne.meta.fields=Ve),ie+=rt,ne}()}function Oe(){return I.header&&Ve.length===0}function Be(Le,rt){return gt=Le,I.dynamicTypingFunction&&I.dynamicTyping[gt]===void 0&&(I.dynamicTyping[gt]=I.dynamicTypingFunction(gt)),(I.dynamicTyping[gt]||I.dynamicTyping)===!0?rt==="true"||rt==="TRUE"||rt!=="false"&&rt!=="FALSE"&&(function(R){if(ve.test(R)){var F=parseFloat(R);if(X<F&&F<Q)return!0}return!1}(rt)?parseFloat(rt):je.test(rt)?new Date(rt):rt===""?null:rt):rt;var gt}function Xe(Le,rt,gt,R){var F={type:Le,code:rt,message:gt};R!==void 0&&(F.row=R),ne.errors.push(F)}this.parse=function(Le,rt,gt){var R=I.quoteChar||'"';if(I.newline||(I.newline=function(ee,W){ee=ee.substring(0,1048576);var Y=new RegExp(O(W)+"([^]*?)"+O(W),"gm"),be=(ee=ee.replace(Y,"")).split("\r"),fe=ee.split(`
|
||
`),ge=1<fe.length&&fe[0].length<be[0].length;if(be.length===1||ge)return`
|
||
`;for(var se=0,Se=0;Se<be.length;Se++)be[Se][0]===`
|
||
`&&se++;return se>=be.length/2?`\r
|
||
`:"\r"}(Le,R)),j=!1,I.delimiter)ue(I.delimiter)&&(I.delimiter=I.delimiter(Le),ne.meta.delimiter=I.delimiter);else{var F=function(ee,W,Y,be,fe){var ge,se,Se,Ce;fe=fe||[","," ","|",";",c.RECORD_SEP,c.UNIT_SEP];for(var Ne=0;Ne<fe.length;Ne++){var Ae=fe[Ne],qe=0,ft=0,st=0;Se=void 0;for(var Ct=new E({comments:be,delimiter:Ae,newline:W,preview:10}).parse(ee),Ft=0;Ft<Ct.data.length;Ft++)if(Y&&_e(Ct.data[Ft]))st++;else{var an=Ct.data[Ft].length;ft+=an,Se!==void 0?0<an&&(qe+=Math.abs(an-Se),Se=an):Se=an}0<Ct.data.length&&(ft/=Ct.data.length-st),(se===void 0||qe<=se)&&(Ce===void 0||Ce<ft)&&1.99<ft&&(se=qe,ge=Ae,Ce=ft)}return{successful:!!(I.delimiter=ge),bestDelimiter:ge}}(Le,I.newline,I.skipEmptyLines,I.comments,I.delimitersToGuess);F.successful?I.delimiter=F.bestDelimiter:(j=!0,I.delimiter=c.DefaultDelimiter),ne.meta.delimiter=I.delimiter}var z=we(I);return I.preview&&I.header&&z.preview++,A=Le,P=new E(z),ne=P.parse(A,rt,gt),ke(),ce?{meta:{paused:!0}}:ne||{meta:{paused:!1}}},this.paused=function(){return ce},this.pause=function(){ce=!0,P.abort(),A=ue(I.chunk)?"":A.substring(P.getCharIndex())},this.resume=function(){Re.streamer._halted?(ce=!1,Re.streamer.parseChunk(A,!0)):setTimeout(Re.resume,3)},this.aborted=function(){return nt},this.abort=function(){nt=!0,P.abort(),ne.meta.aborted=!0,ue(I.complete)&&I.complete(ne),A=""}}function O(I){return I.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function E(I){var A,P=(I=I||{}).delimiter,j=I.newline,Q=I.comments,X=I.step,ve=I.preview,je=I.fastMode,Re=A=I.quoteChar===void 0||I.quoteChar===null?'"':I.quoteChar;if(I.escapeChar!==void 0&&(Re=I.escapeChar),(typeof P!="string"||-1<c.BAD_DELIMITERS.indexOf(P))&&(P=","),Q===P)throw new Error("Comment character same as delimiter");Q===!0?Q="#":(typeof Q!="string"||-1<c.BAD_DELIMITERS.indexOf(Q))&&(Q=!1),j!==`
|
||
`&&j!=="\r"&&j!==`\r
|
||
`&&(j=`
|
||
`);var q=0,ie=!1;this.parse=function(ce,nt,Ve){if(typeof ce!="string")throw new Error("Input must be a string");var ne=ce.length,he=P.length,_e=j.length,ke=Q.length,Oe=ue(X),Be=[],Xe=[],Le=[],rt=q=0;if(!ce)return Ht();if(I.header&&!nt){var gt=ce.split(j)[0].split(P),R=[],F={},z=!1;for(var ee in gt){var W=gt[ee];ue(I.transformHeader)&&(W=I.transformHeader(W,ee));var Y=W,be=F[W]||0;for(0<be&&(z=!0,Y=W+"_"+be),F[W]=be+1;R.includes(Y);)Y=Y+"_"+be;R.push(Y)}if(z){var fe=ce.split(j);fe[0]=R.join(P),ce=fe.join(j)}}if(je||je!==!1&&ce.indexOf(A)===-1){for(var ge=ce.split(j),se=0;se<ge.length;se++){if(Le=ge[se],q+=Le.length,se!==ge.length-1)q+=j.length;else if(Ve)return Ht();if(!Q||Le.substring(0,ke)!==Q){if(Oe){if(Be=[],st(Le.split(P)),fn(),ie)return Ht()}else st(Le.split(P));if(ve&&ve<=se)return Be=Be.slice(0,ve),Ht(!0)}}return Ht()}for(var Se=ce.indexOf(P,q),Ce=ce.indexOf(j,q),Ne=new RegExp(O(Re)+O(A),"g"),Ae=ce.indexOf(A,q);;)if(ce[q]!==A)if(Q&&Le.length===0&&ce.substring(q,q+ke)===Q){if(Ce===-1)return Ht();q=Ce+_e,Ce=ce.indexOf(j,q),Se=ce.indexOf(P,q)}else if(Se!==-1&&(Se<Ce||Ce===-1))Le.push(ce.substring(q,Se)),q=Se+he,Se=ce.indexOf(P,q);else{if(Ce===-1)break;if(Le.push(ce.substring(q,Ce)),an(Ce+_e),Oe&&(fn(),ie))return Ht();if(ve&&Be.length>=ve)return Ht(!0)}else for(Ae=q,q++;;){if((Ae=ce.indexOf(A,Ae+1))===-1)return Ve||Xe.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:Be.length,index:q}),Ft();if(Ae===ne-1)return Ft(ce.substring(q,Ae).replace(Ne,A));if(A!==Re||ce[Ae+1]!==Re){if(A===Re||Ae===0||ce[Ae-1]!==Re){Se!==-1&&Se<Ae+1&&(Se=ce.indexOf(P,Ae+1)),Ce!==-1&&Ce<Ae+1&&(Ce=ce.indexOf(j,Ae+1));var qe=Ct(Ce===-1?Se:Math.min(Se,Ce));if(ce.substr(Ae+1+qe,he)===P){Le.push(ce.substring(q,Ae).replace(Ne,A)),ce[q=Ae+1+qe+he]!==A&&(Ae=ce.indexOf(A,q)),Se=ce.indexOf(P,q),Ce=ce.indexOf(j,q);break}var ft=Ct(Ce);if(ce.substring(Ae+1+ft,Ae+1+ft+_e)===j){if(Le.push(ce.substring(q,Ae).replace(Ne,A)),an(Ae+1+ft+_e),Se=ce.indexOf(P,q),Ae=ce.indexOf(A,q),Oe&&(fn(),ie))return Ht();if(ve&&Be.length>=ve)return Ht(!0);break}Xe.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:Be.length,index:q}),Ae++}}else Ae++}return Ft();function st(Z){Be.push(Z),rt=q}function Ct(Z){var De=0;if(Z!==-1){var Fe=ce.substring(Ae+1,Z);Fe&&Fe.trim()===""&&(De=Fe.length)}return De}function Ft(Z){return Ve||(Z===void 0&&(Z=ce.substring(q)),Le.push(Z),q=ne,st(Le),Oe&&fn()),Ht()}function an(Z){q=Z,st(Le),Le=[],Ce=ce.indexOf(j,q)}function Ht(Z){return{data:Be,errors:Xe,meta:{delimiter:P,linebreak:j,aborted:ie,truncated:!!Z,cursor:rt+(nt||0)}}}function fn(){X(Ht()),Be=[],Xe=[]}},this.abort=function(){ie=!0},this.getCharIndex=function(){return q}}function B(I){var A=I.data,P=s[A.workerId],j=!1;if(A.error)P.userError(A.error,A.file);else if(A.results&&A.results.data){var Q={abort:function(){j=!0,te(A.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:D,resume:D};if(ue(P.userStep)){for(var X=0;X<A.results.data.length&&(P.userStep({data:A.results.data[X],errors:A.results.errors,meta:A.results.meta},Q),!j);X++);delete A.results}else ue(P.userChunk)&&(P.userChunk(A.results,Q,A.file),delete A.results)}A.finished&&!j&&te(A.workerId,A.results)}function te(I,A){var P=s[I];ue(P.userComplete)&&P.userComplete(A),P.terminate(),delete s[I]}function D(){throw new Error("Not implemented.")}function we(I){if(typeof I!="object"||I===null)return I;var A=Array.isArray(I)?[]:{};for(var P in I)A[P]=we(I[P]);return A}function m(I,A){return function(){I.apply(A,arguments)}}function ue(I){return typeof I=="function"}return o&&(r.onmessage=function(I){var A=I.data;if(c.WORKER_ID===void 0&&A&&(c.WORKER_ID=A.workerId),typeof A.input=="string")r.postMessage({workerId:c.WORKER_ID,results:c.parse(A.input,A.config),finished:!0});else if(r.File&&A.input instanceof File||A.input instanceof Object){var P=c.parse(A.input,A.config);P&&r.postMessage({workerId:c.WORKER_ID,results:P,finished:!0})}}),(p.prototype=Object.create(h.prototype)).constructor=p,(y.prototype=Object.create(h.prototype)).constructor=y,(C.prototype=Object.create(C.prototype)).constructor=C,(w.prototype=Object.create(h.prototype)).constructor=w,c})})(yg);var sw=yg.exports;const aw=Ol(sw),Pr={props:{languageCode:{type:String,default:"en_US"},languages:{type:Object,default:()=>{}},translateApis:{type:Array,default:()=>[]},translateApi:{type:String,default:""},translateApiConfig:{type:Object},tagCompleteFile:{type:String,default:""},onlyCsvOnAuto:{type:Boolean,default:!1}},data(){return{cancelMultiTranslate:!1,globals:Al}},computed:{langName(){for(const e in this.languages){const t=this.languages[e];if(t.code===this.languageCode)return t.name}return item.name}},methods:{getLang(e){return me.getLang(e,this.languageCode,this.languages)},replaceGlobals(e){return me.replaceGlobals(e,this.languageCode)},getCSV(e=null,t=!1){return window.tagCompleteFileCache=window.tagCompleteFileCache||{},window.tagCompleteFileLoading=window.tagCompleteFileLoading||{},new Promise((n,r)=>{if(e=e||this.tagCompleteFile,!t&&window.tagCompleteFileCache[e]){n(window.tagCompleteFileCache[e]);return}if(window.tagCompleteFileLoading[e]){const s=setInterval(()=>{window.tagCompleteFileLoading[e]||(clearInterval(s),n(window.tagCompleteFileCache[e]))},100);return}window.tagCompleteFileLoading[e]=!0;let i={toEn:new Map,toLocal:new Map},o=(s,l)=>{[s,s.replace(/\_/g," "),s.replace(/\-/g," ")].forEach(d=>i.toLocal.set(d,l)),i.toEn.set(l,s)};if(!e&&typeof translations=="object"&&translations instanceof Map){translations.forEach((s,l)=>{o(l,s)}),window.tagCompleteFileLoading[e]=!1,window.tagCompleteFileCache[e]=i,n(i);return}if(!e){window.tagCompleteFileLoading[e]=!1,window.tagCompleteFileCache[e]=i,r(this.getLang("not_found_csv_file"));return}this.gradioAPI.getCSV(e).then(s=>{s=aw.parse(s,{header:!1,skipEmptyLines:!0}),s.data.forEach(l=>{if(l.length<2)return;let c=l[0].trim(),d=l[1].trim();c===""||d===""||o(c,d)}),window.tagCompleteFileLoading[e]=!1,window.tagCompleteFileCache[e]=i,n(i)}).catch(s=>{window.tagCompleteFileLoading[e]=!1,window.tagCompleteFileCache[e]=i,s.response&&s.response.status===404?r(this.getLang("not_found_csv_file")):r(s.message)})})},async translateToLocalByCSV(e,t=null,n=!1){let r=await this.getCSV(t,n);return e=e.trim().toLowerCase(),r.toLocal.has(e)?r.toLocal.get(e):""},async translateToEnByCSV(e,t=null,n=!1){let r=await this.getCSV(t,n);return e=e.trim().toLowerCase(),r.toEn.has(e)?r.toEn.get(e):""}}},Hi=Number.isNaN||window.isNaN,lw=/^-?(?:\d+|\d+\.\d+|\.\d+)(?:[eE][-+]?\d+)?$/,uw=/\.\d*(?:0|9){10}\d*$/,bg=(e,t=1e11)=>uw.test(String(e))?Math.round(e*t)/t:e,cw=Dn({name:"VueNumberInput",props:{attrs:{type:Object,default:void 0},center:Boolean,controls:Boolean,disabled:Boolean,inputtable:{type:Boolean,default:!0},inline:Boolean,max:{type:Number,default:1/0},min:{type:Number,default:-1/0},name:{type:String,default:void 0},placeholder:{type:String,default:void 0},readonly:Boolean,rounded:Boolean,size:{type:String,default:void 0},step:{type:Number,default:1},modelValue:{type:Number,default:NaN}},emits:["update:modelValue"],data(){return{value:NaN}},computed:{increasable(){return Hi(this.value)||this.value<this.max},decreasable(){return Hi(this.value)||this.value>this.min}},watch:{modelValue:{immediate:!0,handler(e,t){!(Hi(e)&&typeof t>"u")&&e!==this.value&&this.setValue(e)}}},methods:{isNaN:Hi,change(e){this.setValue(e.target.value)},paste(e){const t=e.clipboardData||window.clipboardData;t&&!lw.test(t.getData("text"))&&e.preventDefault()},decrease(){if(this.decreasable){let{value:e}=this;Hi(e)&&(e=0),this.setValue(bg(e-this.step))}},increase(){if(this.increasable){let{value:e}=this;Hi(e)&&(e=0),this.setValue(bg(e+this.step))}},setValue(e){const t=this.value;let n=typeof e!="number"?parseFloat(e):e;Hi(n)||(this.min<=this.max&&(n=Math.min(this.max,Math.max(this.min,n))),this.rounded&&(n=Math.round(n))),this.value=n,n===t&&(this.$refs.input.value=String(n)),this.$emit("update:modelValue",n,t)}}}),Mn=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},fw=["disabled"],dw=["name","value","min","max","step","readonly","disabled","placeholder"],pw=["disabled"];function hw(e,t,n,r,i,o){return L(),H("div",{class:at(["vue-number-input",{"vue-number-input--inline":e.inline,"vue-number-input--center":e.center,"vue-number-input--controls":e.controls,[`vue-number-input--${e.size}`]:e.size}])},[e.controls?(L(),H("button",{key:0,class:"vue-number-input__button vue-number-input__button--minus",type:"button",tabindex:"-1",disabled:e.disabled||e.readonly||!e.decreasable,onClick:t[0]||(t[0]=yt((...s)=>e.decrease&&e.decrease(...s),["prevent"]))},null,8,fw)):Me("",!0),S("input",ul({ref:"input",class:"vue-number-input__input"},e.attrs,{type:"number",name:e.name,value:isNaN(e.value)?"":e.value,min:e.min,max:e.max,step:e.step,readonly:e.readonly||!e.inputtable,disabled:e.disabled||!e.decreasable&&!e.increasable,placeholder:e.placeholder,autocomplete:"off",onChange:t[1]||(t[1]=(...s)=>e.change&&e.change(...s)),onPaste:t[2]||(t[2]=(...s)=>e.paste&&e.paste(...s))}),null,16,dw),e.controls?(L(),H("button",{key:1,class:"vue-number-input__button vue-number-input__button--plus",type:"button",tabindex:"-1",disabled:e.disabled||e.readonly||!e.increasable,onClick:t[3]||(t[3]=yt((...s)=>e.increase&&e.increase(...s),["prevent"]))},null,8,pw)):Me("",!0)],2)}const gw=Mn(cw,[["render",hw]]),mw={data(){return{autocompleteResults:null,showAppendList:!1,appendListStyle:{top:0,left:0},appendListSelected:null,appendListChildSelected:null,appendList:[{type:"wrap",name:"line_break_character",icon:"wrap",children:[]}],favorites:[],autoInputPrompt:"disabled",autoInputPromptKey:""}},computed:{appendListChildItemTags(){return this.appendListSelected===null?[]:this.appendListChildSelected===null?[]:this.appendList[this.appendListSelected].type!=="favorite"&&this.appendList[this.appendListSelected].type!=="history"?[]:this.appendList[this.appendListSelected].children[this.appendListChildSelected].tags}},mounted(){this.initAutoInputPrompt(),[{name:"txt2img",type:"prompt",key:"txt2img",neg:!1},{name:"txt2img",type:"negative_prompt",key:"txt2img_neg",neg:!0},{name:"img2img",type:"prompt",key:"img2img",neg:!1},{name:"img2img",type:"negative_prompt",key:"img2img_neg",neg:!0}].forEach(t=>{t.neg===this.neg&&this.appendList.push({type:"favorite",name:["favorite",t.name],icon:"favorite",key:t.key,dataKey:"favorite."+t.key,children:[]})})},methods:{onUnfoldClick(){this.hidePanel&&this.$nextTick(()=>{this.onResize()}),this.$emit("update:hidePanel",!this.hidePanel)},onTranslatesToLocalClick(){if(this.tags.length===0)return;if(this.loading.all_local){this.cancelMultiTranslate=!0,this.loading.all_local=!1;return}this.loading.all_local=!0;let e=[];for(const t in this.tags)this.tags[t].type&&this.tags[t].type!=="text"||e.push(t);return this.translates(e,!0,!0).finally(()=>{this.loading.all_local=!1,this.updateTags()})},onTranslatesToEnglishClick(){if(this.tags.length===0)return;if(this.loading.all_en){this.cancelMultiTranslate=!0,this.loading.all_en=!1;return}this.loading.all_en=!0;let e=[];for(const t in this.tags)this.tags[t].type&&this.tags[t].type!=="text"||e.push(t);this.translates(e,!1,!0).finally(()=>{this.loading.all_en=!1,this.updateTags()})},onCopyAllTagsClick(){this.copy(this.prompt)},onDeleteAllTagsClick(){confirm(this.getLang("delete_all_keywords_confirm"))&&(this.tags=[],this.updateTags())},appendListItemName(e){let t=[];if(typeof e.name=="object")for(let n of e.name)t.push(this.getLang(n));else t=[this.getLang(e.name)];return t.join(" / ")},onAppendTagFocus(e){if(this.$refs.promptTagAppend.value===""||this.$refs.promptTagAppend.value.trim()===""){this.appendListStyle={top:e.target.offsetTop+e.target.offsetHeight+"px",left:e.target.offsetLeft+"px"},this.appendListSelected=null,this.appendListChildSelected=null,this.showAppendList=!0;let t=[];this.appendList.forEach(n=>{typeof n.dataKey=="string"&&t.push(n.dataKey)}),this.gradioAPI.getDatas(t).then(n=>{this.appendList.forEach(r=>{typeof r.dataKey=="string"&&(r.children=n[r.dataKey]||[],r.children.reverse())})})}this._setTextareaFocus()},onAppendTagBlur(e){setTimeout(()=>{this.showAppendList=!1},300)},selectAppendList(e=!0){this.appendList.length!==0&&(this.appendListSelected===null?this.appendListSelected=0:e?(this.appendListSelected++,this.appendListSelected>=this.appendList.length&&(this.appendListSelected=0)):(this.appendListSelected--,this.appendListSelected<0&&(this.appendListSelected=this.appendList.length-1)),this.appendListChildSelected=null)},selectAppendListChild(e=!0){this.appendList.length!==0&&this.appendListSelected!==null&&this.appendList[this.appendListSelected].children.length!==0&&(this.appendListChildSelected===null?this.appendListChildSelected=0:e?(this.appendListChildSelected++,this.appendListChildSelected>=this.appendList[this.appendListSelected].children.length&&(this.appendListChildSelected=0)):(this.appendListChildSelected--,this.appendListChildSelected<0&&(this.appendListChildSelected=this.appendList[this.appendListSelected].children.length-1)),this.scrollAppendListChild())},scrollAppendListChild(){this.appendListSelected!==null&&(this.appendListChildSelected===0||this.appendListChildSelected===null?this.$refs.promptAppendListChildren[this.appendListSelected].scrollTop=0:this.$refs.promptAppendListChild[this.appendListChildSelected].scrollIntoView({behavior:"smooth",block:"center"}))},onAppendTagKeyDown(e,t=null){if(!(e.keyCode===38||e.keyCode===40))if(e.keyCode===13){if(this.getAutocompleteResults()&&this.autocompleteResults.style.display==="block"&&this.getAutocompleteResultsSelected()){let r=this.getAutocompleteResultsSelectedText();setTimeout(()=>{t=this.$refs.promptTagAppend.value,r?t=r:(r=this.getAutocompleteResultsSelectedText(),r&&(t=r)),this.onAppendTagKeyDown(e,t)},300);return}let n=this.$refs.promptTagAppend.value;if(this.$refs.promptTagAppend.value="",this.showAppendList=!0,console.log(n,t),t)n=n.replace(/\s*,\s*$/,"").trim(),me.hasBrackets(n)&&(n=me.replaceBrackets(n)),this._appendTag(n,t),this.updateTags();else{me.hasBrackets(n)?(n=me.replaceBrackets(n),n=[n]):n=me.splitTags(n,this.autoBreakBeforeWrap,this.autoBreakAfterWrap);let r=[];n.forEach(i=>{let o=-1;i===`
|
||
`?o=this._appendTag(`
|
||
`,`
|
||
`,!1,-1,"wrap"):o=this._appendTag(i),o!==-1&&r.push(o)}),this.updatePrompt(),this.autoTranslateToEnglish||this.autoTranslateToLocal?this.$nextTick(()=>{let i=!(this.tagCompleteFile&&this.onlyCsvOnAuto);this.autoTranslateToEnglish?this.translates(r,!1,i).finally(()=>{this.updateTags()}):this.autoTranslateToLocal&&this.translates(r,!0,i).finally(()=>{this.updateTags()})}):this.updateTags()}}else this.removeAutocompleteResultsSelected()},onAppendTagKeyUp(e){this.$refs.promptTagAppend.value===""||this.$refs.promptTagAppend.value.trim()===""?(this.$refs.promptTagAppend.value="",this.showAppendList=!0,e.keyCode===38||e.keyCode===40?this.appendListChildSelected===null?this.selectAppendList(e.keyCode===40):this.selectAppendListChild(e.keyCode===40):e.keyCode===37||e.keyCode===39?this.appendListSelected!==null&&(e.keyCode===37?(this.appendListChildSelected=null,this.scrollAppendListChild()):this.appendList[this.appendListSelected].children.length===0?this.appendListChildSelected=null:(this.appendListChildSelected=0,this.scrollAppendListChild())):e.keyCode===13&&(this._appendTagByList(),this.scrollAppendListChild(),this.appendListSelected=null,this.appendListChildSelected=null)):this.showAppendList=!1},onAppendGroupClick(e,t,n){if(e!==null){if(this.appendListSelected=e,t===null){if(this.appendList[this.appendListSelected].children.length>0)return}else this.appendListChildSelected=t;this._appendTagByList()}},onAppendListChildMouseLeave(e,t,n){this.appendListSelected=null,this.appendListChildSelected=null},onAppendListChildMouseEnter(e,t,n){this.appendListSelected=e,this.appendListChildSelected=t},_appendTagByList(){if(this.appendListSelected===null)return;const e=this.appendList[this.appendListSelected];let t=null;e.children.length>0&&this.appendListChildSelected!==null&&(t=e.children[this.appendListChildSelected]);let n=[];switch(e.type){case"wrap":n.push({value:`
|
||
`,localValue:`
|
||
`,disabled:!1,type:"wrap"});break;case"lora":break;case"favorite":case"history":t&&t.tags.forEach(r=>{n.push({value:r.value,localValue:r.localValue,disabled:r.disabled,type:r.type||"text"})});break}n.length<=0||(n.forEach(r=>{this._appendTag(r.value,r.localValue,r.disabled,-1,r.type)}),this.updateTags())},getAutocompleteResults(){if(!this.autocompleteResults){const e=this.$refs.promptTagAppend.parentElement.querySelector(".autocompleteResults");e&&(this.autocompleteResults=e,this.autocompleteResults.getAttribute("data-mousemove")!=="true"&&(this.autocompleteResults.setAttribute("data-mousemove","true"),this.autocompleteResults.addEventListener("mousemove",t=>{this.bindAutocompleteResultsClick()})))}return this.autocompleteResults},removeAutocompleteResultsSelected(){const e=this.getAutocompleteResults();return e?(e.querySelectorAll("li").forEach(t=>{t.classList.remove("selected")}),!0):!1},getAutocompleteResultsSelected(){const e=this.getAutocompleteResults();if(!e)return null;const t=e.querySelector("li.selected");return t||null},getAutocompleteResultsSelectedText(e=null){if(!e&&(e=this.getAutocompleteResultsSelected(),!e))return null;const r=e.querySelector(".acListItem").innerText.match(/\[(.+?)\]/);return r?r[1]:null},bindAutocompleteResultsClick(){if(this.getAutocompleteResults(),!this.autocompleteResults)return;this.autocompleteResults.querySelectorAll("li").forEach(t=>{t.getAttribute("physton-on-clicked")!=="true"&&(t.setAttribute("physton-on-clicked","true"),t.addEventListener("click",()=>{this.onAutocompleteResultsClicked(t)}))})},onAutocompleteResultsClicked(e){const t=this.getAutocompleteResultsSelectedText(e);setTimeout(()=>{let n=this.$refs.promptTagAppend.value.replace(/,\s*$/,"");this.$refs.promptTagAppend.value="",n=n.replace(/\s*,\s*$/,"").trim(),me.hasBrackets(n)&&(n=me.replaceBrackets(n)),this._appendTag(n,t),this.updateTags()},300)},onSettingBoxMouseEnter(){this.favorites=typeof window.phystonPromptfavorites=="object"?window.phystonPromptfavorites:[]},getCurrentTypeFavorites(){let e=[];return this.favorites.forEach(t=>{if(this.neg){if(t.type!=="negative_prompt")return}else if(t.type!=="prompt")return;e.push(t)}),e},onAutoInputPromptChange(){this.gradioAPI.setData(this.autoInputPromptKey,this.autoInputPrompt).then(()=>{this.$toastr.success(this.getLang("success"))}).catch(()=>{this.$toastr.error(this.getLang("failed"))})},initAutoInputPrompt(){this.autoInputPromptKey="autoInputPrompt-"+this.name,this.gradioAPI.getData(this.autoInputPromptKey).then(e=>{if(e!==null)if(this.autoInputPrompt=e,this.autoInputPrompt==="last")this.gradioAPI.getLatestHistory(this.historyKey).then(t=>{this.useHistory(t)});else{const t=()=>{if(typeof window.phystonPromptfavorites=="object"&&window.phystonPromptfavorites.length>0){for(let n of window.phystonPromptfavorites)for(let r of n.list)if(r.id===this.autoInputPrompt){this.useFavorite(r);return}return}setTimeout(t,100)};setTimeout(t,100)}})}}},vw={data(){return{dropStartX:0,dropStartY:0,dropEndX:0,dropEndY:0,dropOffsetX:0,dropOffsetY:0,dropIsSelecting:!1,dropIsStart:!1,dropIsEnd:!1,dropArea:{top:0,left:0,width:0,height:0},dropTags:[],dropTimeId:0}},methods:{_dropOver(){this.dropIsSelecting=!1,this.dropIsStart=!1,this.dropIsEnd=!1,this.dropTags=[];for(let e=0;e<this.$refs.promptTagsList.children.length;e++){let t=this.$refs.promptTagsList.children[e];t.style.display==="none"&&(t.style.display=""),t.classList.remove("drop-selected")}},onDropMouseDown(e){this.droping||(this._dropOver(),this.dropOffsetX=e.clientX-e.layerX,this.dropOffsetY=e.clientY-e.layerY,this.dropStartX=e.clientX-this.dropOffsetX,this.dropStartY=e.clientY-this.dropOffsetY,this.dropEndX=e.clientX-this.dropOffsetX,this.dropEndY=e.clientY-this.dropOffsetY,this.dropIsStart=!0)},onDropMouseMove(e){if(this.dropIsStart){this.dropIsSelecting=!0,this.dropEndX=e.clientX-this.dropOffsetX,this.dropEndY=e.clientY-this.dropOffsetY;let t=Math.min(this.dropStartX,this.dropEndX),n=Math.min(this.dropStartY,this.dropEndY),r=Math.abs(this.dropStartX-this.dropEndX),i=Math.abs(this.dropStartY-this.dropEndY);t=Math.max(t,0),n=Math.max(n,0),r=Math.min(r,this.$refs.promptTags.clientWidth-t),i=Math.min(i,this.$refs.promptTags.clientHeight-n),this.dropArea.top=n,this.dropArea.left=t,this.dropArea.width=r,this.dropArea.height=i,this.dropTimeId&&clearTimeout(this.dropTimeId),this.dropTimeId=setTimeout(this.dropSelectItems,10)}},dropSelectItems(){this.dropTimeId&&clearTimeout(this.dropTimeId);let e=[];for(let t=0;t<this.$refs.promptTagsList.children.length;t++){let n=this.$refs.promptTagsList.children[t];if(!n.classList.contains("prompt-tag"))continue;let r=n.offsetLeft,i=n.offsetTop,o=n.clientWidth,s=n.clientHeight,l=r+o,c=i+s;!(l<this.dropArea.left||c<this.dropArea.top||r>this.dropArea.left+this.dropArea.width||i>this.dropArea.top+this.dropArea.height)?(e.push(n.getAttribute("data-id")),n.classList.add("drop-selected")):n.classList.remove("drop-selected"),this.dropTags=e}},onDropMouseUp(e){this.dropIsSelecting=!1,this.dropIsStart=!1,this.dropIsEnd=!0,this.$refs.dropSelectBtns.style.left=this.$refs.dropSelectBox.style.left,this.$refs.dropSelectBtns.style.top=this.$refs.dropSelectBox.style.top},_getDropTags(){let e=[];return this.dropTags.forEach(t=>{let n=this.tags.find(r=>r.id===t);n&&e.push(n)}),e},_getDropIndexes(){let e=[];return this.dropTags.forEach(t=>{let n=this.tags.findIndex(r=>r.id===t);n!==-1&&e.push(n)}),e},_getDropTagsEle(){let e=[];return this.dropTags.forEach(t=>{let n=this.$refs.promptTagsList.querySelector(`.prompt-tag[data-id="${t}"]`);n&&e.push(n)}),e},onDropCopy(){let e=this._getDropTags();this._dropOver();let t=this.genPrompt(e,!0);this.copy(t)},onDropFavorite(){let e=this._getDropTags();this._dropOver();let t=this.genPrompt(e,!0);this.gradioAPI.pushFavorite(this.favoriteKey,e,t,"").then(n=>{n?(this.$toastr.success(this.getLang("success")),this.$emit("refreshFavorites",this.favoriteKey)):this.$toastr.error(this.getLang("failed"))}).catch(n=>{this.$toastr.error(this.getLang("failed"))})},onDropDisable(){let e=this._getDropTags();this._dropOver(),e.forEach(t=>{t.disabled=!0}),this.updateTags()},onDropEnable(){let e=this._getDropTags();this._dropOver(),e.forEach(t=>{t.disabled=!1}),this.updateTags()},onDropDelete(){let e=this._getDropIndexes();this._dropOver(),e.sort((t,n)=>n-t),e.forEach(t=>{this.tags.splice(t,1)}),this.updateTags()}}};var Vc="__autosizeInputGhost",yw={" ":"nbsp","<":"lt",">":"gt"};function bw(e){return"&"+yw[e]+";"}function Cw(e){return e.replace(/\s|<|>/g,bw)}function _w(){var e=document.createElement("div");return e.id=Vc,e.style.cssText="display:inline-block;height:0;overflow:hidden;position:absolute;top:0;visibility:hidden;white-space:nowrap;",document.body.appendChild(e),e}var ww=function(e,t){var n=window.getComputedStyle(e),r="box-sizing:"+n.boxSizing+";border-left:"+n.borderLeftWidth+" solid red;border-right:"+n.borderRightWidth+" solid red;font-family:"+n.fontFamily+";font-feature-settings:"+n.fontFeatureSettings+";font-kerning:"+n.fontKerning+";font-size:"+n.fontSize+";font-stretch:"+n.fontStretch+";font-style:"+n.fontStyle+";font-variant:"+n.fontVariant+";font-variant-caps:"+n.fontVariantCaps+";font-variant-ligatures:"+n.fontVariantLigatures+";font-variant-numeric:"+n.fontVariantNumeric+";font-weight:"+n.fontWeight+";letter-spacing:"+n.letterSpacing+";margin-left:"+n.marginLeft+";margin-right:"+n.marginRight+";padding-left:"+n.paddingLeft+";padding-right:"+n.paddingRight+";text-indent:"+n.textIndent+";text-transform:"+n.textTransform;function i(){var s=e.value||e.getAttribute("placeholder")||"",l=document.getElementById(Vc)||_w();l.style.cssText+=r,l.innerHTML=Cw(s);var c=window.getComputedStyle(l).width;return e.style.width=c,c}e.addEventListener("input",i);var o=i();return t&&t.minWidth&&o!=="0px"&&(e.style.minWidth=o),function(){e.removeEventListener("input",i);var s=document.getElementById(Vc);s&&s.parentNode.removeChild(s)}};const Tw=Ol(ww),xw={data(){return{tagClickTimeId:0}},mounted(){me.gradioApp().addEventListener("mousemove",()=>{this.$refs.highlightPrompt.hide()})},methods:{_setTag(e){typeof e.type=="string"&&e.type==="wrap"?(e.weightNum=1,e.incWeight=0,e.decWeight=0):(e.weightNum=me.getTagWeightNum(e.value),e.weightNum=e.weightNum<=0?1:e.weightNum,e.incWeight=me.getTagIncWeight(e.value),e.decWeight=me.getTagDecWeight(e.value)),this._setTagClass(e),this.$nextTick(()=>{this._setTagHeight(e)})},_setTagHeight(e){setTimeout(()=>{let t=this.$refs["promptTagValue-"+e.id][0],n=t.offsetHeight;t.parentNode.style.height=n+"px",this.$refs["promptTagEdit-"+e.id]&&(this.$refs["promptTagEdit-"+e.id][0].style.height=n+"px"),this.$refs["promptTagDelete-"+e.id]&&(this.$refs["promptTagDelete-"+e.id][0].style.height=n+"px")},300)},_setTagClass(e){if(e.isLora=!1,e.loraExists=!1,e.isLyco=!1,e.lycoExists=!1,e.isEmbedding=!1,!(typeof e.type=="string"&&e.type==="wrap")){const n=e.value.match(me.loraRegex);if(n){e.isLora=!0;const r=this.loraExists(n[1]);r!==!1&&(e.loraExists=!0,e.loraName=r)}if(!e.isLora){const r=e.value.match(me.lycoRegex);if(r){e.isLyco=!0;const i=this.lycoExists(r[1]);i!==!1&&(e.lycoExists=!0,e.lycoName=i)}}if(!e.isLora&&!e.isLyco){const r=this.embeddingExists(e.value);if(r!==!1)e.isEmbedding=!0,e.value=r;else{let i=e.value;const o=me.hasBrackets(i);(o[0]==="("&&o[1]===")"||o[0]==="["&&o[1]==="]")&&(i=me.setLayers(i,0,o[0],o[1]),i=i.replace(me.weightNumRegex,"$1"),this.embeddingExists(i)!==!1&&(e.isEmbedding=!0))}}}let t=["prompt-tag-value"];return e.isLora?(t.push("lora-tag"),e.loraExists||t.push("lora-not-exists")):e.isLyco?(t.push("lyco-tag"),e.lycoExists||t.push("lyco-not-exists")):e.isEmbedding?t.push("embedding-tag"):this.neg&&t.push("neg-tag"),e.classes=t,t},_setTagById(e,t=null,n=null){let r=this.tags.find(i=>i.id===e);return r?(t!==null&&(r.value=t),n!==null&&(r.localValue=n),r):!1},_appendTag(e,t="",n=!1,r=-1,i="text"){if(e==="")return-1;const o=Date.now()+(Math.random()*1e6).toFixed(0);let s={id:o,value:e==null||e===!1?"":e,localValue:t==null||t===!1?"":t,disabled:n,type:i};return this._setTag(s),r>=0?this.tags.splice(r,0,s):r=this.tags.push(s),this.$nextTick(()=>{this.$refs["promptTagEdit-"+o]&&Tw(this.$refs["promptTagEdit-"+o][0])}),r-1},renderTag(e){let t=this.tags.find(r=>r.id===e);if(!t)return"";let n=t.value;if(n==="BREAK"&&(this.autoBreakBeforeWrap||this.autoBreakAfterWrap))n='<div class="break-character">---------------------</div> <div class="character">BREAK</div> <div class="break-character">---------------------</div>';else if(n=me.escapeHtml(n),t.incWeight>0){n=me.setLayers(n,0,"(",")"),n='<div class="character">'+n+"</div>";let r='<div class="weight-character">'+"(".repeat(t.incWeight)+"</div>",i='<div class="weight-character">'+")".repeat(t.incWeight)+"</div>";n=r+n+i}else if(t.decWeight>0){n=me.setLayers(n,0,"[","]"),n='<div class="character">'+n+"</div>";let r='<div class="weight-character">'+"[".repeat(t.decWeight)+"</div>",i='<div class="weight-character">'+"]".repeat(t.decWeight)+"</div>";n=r+n+i}else n='<div class="character">'+n+"</div>";return n},isFavorite(e){let t=this.tags.find(n=>n.id===e);if(!t)return!1;if(typeof window.phystonPromptfavorites=="object"){for(const n of window.phystonPromptfavorites)if(n.key===this.favoriteKey){for(const r of n.list)if(r.tags.length===1&&r.tags[0].value===t.value)return r.id}}return!1},onTagMouseEnter(e){let t=this.tags.find(n=>n.id===e);if(!t)return!1;t.isFavorite=this.isFavorite(t.id)},onTagMouseMove(e){let t=this.tags.find(n=>n.id===e);if(!t)return!1;this.$refs.highlightPrompt.show(t)},onTagClick(e){let t=this.tags.find(n=>n.id===e);if(!t)return!1;this.tagClickTimeId&&clearTimeout(this.tagClickTimeId),this.tagClickTimeId=setTimeout(()=>{this.editing={},this.editing[t.id]=!0,this.$forceUpdate(),this.$nextTick(()=>{const n=this.$refs["promptTagEdit-"+t.id][0];n.focus(),n.dispatchEvent(new Event("input"))}),clearTimeout(this.tagClickTimeId)},250)},onTagDblclick(e){let t=this.tags.find(n=>n.id===e);if(!t)return!1;clearTimeout(this.tagClickTimeId),this.onDisabledTagClick(t.id)},onTagInputBlur(e){let t=this.tags.find(n=>n.id===e);if(!t)return!1;this.editing[t.id]=!1},onTagInputKeyDown(e,t){if(t.keyCode===13){let n=this.tags.find(r=>r.id===e);if(!n)return!1;this.editing[n.id]=!1,n.value!==t.target.value&&(n.value=t.target.value,this._setTag(n),this.updateTags())}},onTagInputChange(e,t){let n=this.tags.find(r=>r.id===e);if(!n)return!1;n.value!==t.target.value&&(n.value=t.target.value,this._setTag(n),this.updateTags())},onTagWeightNumChange(e,t){let n=this.tags.find(s=>s.id===e);if(!n)return!1;if(t=typeof t=="number"||typeof a=="string"?t:t.target.value,n.weightNum==t)return;let r=t,i=n.value,o=n.localValue;if(r>0){if(r===1&&!this.autoKeepWeightOne){const s=me.hasBrackets(i);s[0]==="("&&s[1]===")"&&(i=me.setLayers(i,0,s[0],s[1]),o!==""&&(o=me.setLayers(o,0,s[0],s[1]))),i=i.replace(me.weightNumRegex,"$1"),o!==""&&(o=o.replace(me.weightNumRegex,"$1"))}else{if(!me.weightNumRegex.test(i)){let s=me.hasBrackets(i);s?(i=me.setLayers(i,1,s[0],s[1],":"+r),o!==""&&(o=me.setLayers(o,1,s[0],s[1],":"+r))):(i=i+":"+r,o!==""&&(o=o+":"+r))}me.hasBrackets(i)||(i=me.setLayers(i,1,"(",")"),o!==""&&(o=me.setLayers(o,1,"(",")")))}i!==n.value&&(n.value=i,o!==""&&(n.localValue=o),this._setTag(n))}else{const s=me.hasBrackets(i);s[0]==="<"&&s[1]===">"?r=.1:this.autoKeepWeightZero?(n.value=i.replace(me.weightNumRegex,"$1:0"),o!==""&&(n.localValue=n.localValue.replace(me.weightNumRegex,"$1:0"))):(n.value=i.replace(me.weightNumRegex,"$1"),o!==""&&(n.localValue=n.localValue.replace(me.weightNumRegex,"$1")))}n.weightNum=r,this.updateTags()},onDeleteTagClick(e){let t=this.tags.find(r=>r.id===e);if(!t)return!1;let n=this.tags.indexOf(t);this.tags.splice(n,1),this.updateTags()},onFavoriteTagClick(e){let t=this.tags.find(r=>r.id===e);if(!t)return!1;let n=this.isFavorite(t.id);n?this.gradioAPI.unFavorite(this.favoriteKey,n).then(r=>{r&&(t.isFavorite=!1,this.$emit("refreshFavorites",this.favoriteKey))}):this.gradioAPI.pushFavorite(this.favoriteKey,[t],t.value,t.localValue===""?t.value:t.localValue).then(r=>{r&&(t.isFavorite=!0,this.$emit("refreshFavorites",this.favoriteKey))})},onDisabledTagClick(e){let t=this.tags.find(n=>n.id===e);t&&(t.disabled=!t.disabled,this.updateTags())},onIncWeightClick(e,t){let n=this.tags.find(s=>s.id===e);if(!n)return;let r=n.value,i=n.localValue;r=me.setLayers(r,0,"[","]"),i!==""&&(i=me.setLayers(i,0,"[","]"));let o=n.incWeight;o+=t,o<0&&(o=0),n.incWeight=o,n.decWeight=0,r=me.setLayers(r,o,"(",")"),i!==""&&(i=me.setLayers(i,o,"(",")")),n.value=r,i!==""&&(n.localValue=i),this.updateTags()},onDecWeightClick(e,t){let n=this.tags.find(s=>s.id===e);if(!n)return;let r=n.value,i=n.localValue;r=me.setLayers(r,0,"(",")"),i!==""&&(i=me.setLayers(i,0,"(",")"));let o=n.decWeight;o+=t,o<0&&(o=0),n.incWeight=0,n.decWeight=o,r=me.setLayers(r,o,"[","]"),i!==""&&(i=me.setLayers(i,o,"[","]")),n.value=r,i!==""&&(n.localValue=i),this.updateTags()},onWrapTagClick(e){let t=this.tags.find(o=>o.id===e);if(!t)return;let n=this.tags.indexOf(t),r=this._appendTag(`
|
||
`,`
|
||
`,!1,-1,"wrap"),i=this.tags[r];this.tags.splice(r,1),this.tags.splice(n+1,0,i),this.updateTags()},onTranslateToLocalClick(e){let t=this.tags.find(r=>r.id===e);if(!t)return;let n=this.tags.indexOf(t);this.loading[t.id+"_local"]||this.translates([n],!0,!0).finally(()=>{this.updateTags()})},onTranslateToEnglishClick(e){let t=this.tags.find(r=>r.id===e);if(!t)return;let n=this.tags.indexOf(t);this.loading[t.id+"_en"]||this.translates([n],!1,!0).finally(()=>{this.updateTags()})}}},Sw={data(){return{groupTagsActive:0,subGroupTagsActive:0,groupTagsColorKeyCache:{}}},watch:{groupTags:{handler(){for(let e of this.groupTags)for(let t of e.groups){let n=this.getTagsColorKey(e.name,t.name);this.groupTagsColor[n]||(this.groupTagsColor[n]=Et(me.fitterInputColor(t.color)));for(let r in t.tags)this.groupTagsColorKeyCache[r]=n}},deep:!0,immediate:!0}},methods:{activeGroupTab(e){this.groupTagsActive=e,this.subGroupTagsActive=0;let t=this.$refs.groupTabsHeader.children[e].offsetLeft-this.$refs.groupTabsHeader.offsetWidth/2+this.$refs.groupTabsHeader.children[e].offsetWidth/2;this.$refs.groupTabsHeader.scrollTo({left:t,behavior:"smooth"})},activeSubGroupTab(e){this.subGroupTagsActive=e},onClickHideGroupTags(){this.$emit("update:hideGroupTags",!this.hideGroupTags)},onClickGroupTag(e,t){this._appendTag(t,e,!1,-1,"text"),this.updateTags()},getGroupTagTooltip(e,t){let n="";return e&&e!==t&&(n+=e+"<br/>"),n+=t,n},renderGroupTag(e,t,n="",r=""){let i="",o="",s=this.getTagsColorKey(n,r),l="";return this.groupTagsColor[s]&&(l=this.groupTagsColor[s],me.isColorTransparent(l)&&(l="")),l&&(o='style="background: '+l+'"'),e&&e!==t?(i+='<div class="tag-local" '+o+">"+e+"</div>",i+='<div class="tag-en">'+t+"</div>"):i+='<div class="tag-local" '+o+">"+t+"</div>",i},getTagsColorKey(e,t){return e+"||"+t},onTagsColorChange(e){this.$emit("update:groupTagsColor",this.groupTagsColor)},onClickResetTagsColor(e){for(let t of this.groupTags)for(let n of t.groups){let r=this.getTagsColorKey(t.name,n.name);e===r&&(this.groupTagsColor[e]=Et(me.fitterInputColor(n.color)))}this.onTagsColorChange(e)},onClickClearTagsColor(e){this.groupTagsColor[e]=Et("rgba(0,0,0,0)"),this.onTagsColorChange(e)},getTagColorStyle(e){if(e.isLora||e.isLyco||e.isEmbedding)return{};if(!this.groupTagsColorKeyCache[e.value])return{};let t=this.groupTagsColorKeyCache[e.value];if(!this.groupTagsColor[t])return{};let n=this.groupTagsColor[t];return me.isColorTransparent(n)?{}:{background:n}}}},Aw={name:"IconSvg",props:{name:{type:String,required:!0},svgName:{type:String,default:""}},data(){return{svgCode:""}},watch:{name:{handler:function(e,t){this.getSvg()},immediate:!1}},mounted(){this.getSvg()},methods:{getSvg(){if(!this.name)return;let e=this.svgName||this.name;if(window.loadingSvg=window.loadingSvg||{},window.isLoadSvg=window.isLoadSvg||{},window.isLoadSvg[e]){this.svgCode=localStorage.getItem("iconSVG-"+e);return}if(localStorage.getItem("iconSVG-"+e)&&(this.svgCode=localStorage.getItem("iconSVG-"+e)),window.loadingSvg[e]){const t=setInterval(()=>{window.loadingSvg[e]||(clearInterval(t),this.svgCode=localStorage.getItem("iconSVG-"+e))},10);return}window.loadingSvg[e]=!0,window.iconSvgHash||(window.iconSvgHash=new Date().getTime()),this.gradioAPI.styles("icons/"+e+".svg",window.iconSvgHash).then(t=>{this.svgCode=t,localStorage.setItem("iconSVG-"+e,t),window.isLoadSvg[e]=!0,window.loadingSvg[e]=!1}).catch(t=>{window.loadingSvg[e]=!1})}}},kw=["innerHTML"];function Ew(e,t,n,r,i,o){return Te((L(),H("div",{class:at(["icon-svg","icon-svg-"+n.name]),"data-name":"name",innerHTML:i.svgCode},null,10,kw)),[[Ot,i.svgCode]])}const _r=Mn(Aw,[["render",Ew]]),Ow={name:"HighlightPrompt",props:{textarea:{type:Object,required:!0},hideDefaultInput:{type:Boolean,default:!1}},data(){return{scrollTop:0,showTimeId:0,hideTimeId:0,lastHighLightTag:null}},watch:{},mounted(){},methods:{show(e){this.lastHighLightTag&&this.lastHighLightTag.value===e.value||(this.lastHighLightTag=e,this.showTimeId&&clearTimeout(this.showTimeId),this.showTimeId=setTimeout(()=>{this._show(e),this.showTimeId=0},10))},_show(e){if(this.hideDefaultInput)return this._hide();if(typeof e.type=="string"&&e.type==="wrap")return this._hide();let t=e.value,n=this.textarea.value;if(t===""||t.trim()==="")return this._hide();if(n===""||n.trim()==="")return this._hide();if(t=me.escapeHtml(t),n=me.escapeHtml(this.textarea.value),n.indexOf(t)===-1)return this._hide();this.textarea.parentNode.insertBefore(this.$refs.highlightPrompt,this.textarea.nextSibling);const i=window.getComputedStyle(this.textarea);for(const l of i)this.$refs.highlightPrompt.style[l]=i[l];this.$refs.highlightPrompt.style.display="block",this.textarea.style.display="none";let o="",s=n;for(;;){const l=s.indexOf(t);if(l===-1){o+=s;break}const c=l+t.length;o+=s.substring(0,l),o+='<span class="physton-highlight-prompt">',o+=s.substring(l,c),o+="</span>",s=s.substring(c)}this.$refs.highlightPrompt.innerHTML=o,this.$refs.highlightPrompt.scrollTop=this.scrollTop},hide(){this.lastHighLightTag=null,this.showTimeId&&clearTimeout(this.showTimeId),this.hideTimeId&&clearTimeout(this.hideTimeId),this.hideTimeId=setTimeout(()=>{this._hide(),this.hideTimeId=0},10)},_hide(){this.textarea.style.display="block",this.$refs.highlightPrompt.style.display="none",this.scrollTop=this.textarea.scrollTop}}};function Lw(e,t,n,r,i,o){return L(),H("div",{class:"physton-highlight-prompt",ref:"highlightPrompt",onClick:t[0]||(t[0]=(...s)=>o.hide&&o.hide(...s))},null,512)}const Iw=Mn(Ow,[["render",Lw]]);function Pw(e){return yp()?(Qb(e),!0):!1}function Ws(e){return typeof e=="function"?e():jp(e)}const Cg=typeof window<"u",Ks=()=>{},Dw=Rw();function Rw(){var e;return Cg&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent)}function _g(e,t){function n(...r){return new Promise((i,o)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(i).catch(o)})}return n}const wg=e=>e();function Nw(e,t={}){let n,r,i=Ks;const o=l=>{clearTimeout(l),i(),i=Ks};return l=>{const c=Ws(e),d=Ws(t.maxWait);return n&&o(n),c<=0||d!==void 0&&d<=0?(r&&(o(r),r=null),Promise.resolve(l())):new Promise((h,p)=>{i=t.rejectOnCancel?p:h,d&&!r&&(r=setTimeout(()=>{n&&o(n),r=null,h(l())},d)),n=setTimeout(()=>{r&&o(r),r=null,h(l())},c)})}}function Mw(e=wg){const t=Et(!0);function n(){t.value=!1}function r(){t.value=!0}const i=(...o)=>{t.value&&e(...o)};return{isActive:tc(t),pause:n,resume:r,eventFilter:i}}function ji(e,t=200,n={}){return _g(Nw(t,n),e)}function Lo(e,t=!0){Ah()?uc(e):t?e():Ja(e)}var Tg=Object.getOwnPropertySymbols,Fw=Object.prototype.hasOwnProperty,$w=Object.prototype.propertyIsEnumerable,Bw=(e,t)=>{var n={};for(var r in e)Fw.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Tg)for(var r of Tg(e))t.indexOf(r)<0&&$w.call(e,r)&&(n[r]=e[r]);return n};function Hw(e,t,n={}){const r=n,{eventFilter:i=wg}=r,o=Bw(r,["eventFilter"]);return rr(e,_g(i,t),o)}var jw=Object.defineProperty,Uw=Object.defineProperties,Ww=Object.getOwnPropertyDescriptors,Ll=Object.getOwnPropertySymbols,xg=Object.prototype.hasOwnProperty,Sg=Object.prototype.propertyIsEnumerable,Ag=(e,t,n)=>t in e?jw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Kw=(e,t)=>{for(var n in t||(t={}))xg.call(t,n)&&Ag(e,n,t[n]);if(Ll)for(var n of Ll(t))Sg.call(t,n)&&Ag(e,n,t[n]);return e},Vw=(e,t)=>Uw(e,Ww(t)),qw=(e,t)=>{var n={};for(var r in e)xg.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Ll)for(var r of Ll(e))t.indexOf(r)<0&&Sg.call(e,r)&&(n[r]=e[r]);return n};function zw(e,t,n={}){const r=n,{eventFilter:i}=r,o=qw(r,["eventFilter"]),{eventFilter:s,pause:l,resume:c,isActive:d}=Mw(i);return{stop:Hw(e,t,Vw(Kw({},o),{eventFilter:s})),pause:l,resume:c,isActive:d}}function bn(e,t,n){return rr(e,(r,i,o)=>{r&&t(r,i,o)},n)}function Vs(e){var t;const n=Ws(e);return(t=n==null?void 0:n.$el)!=null?t:n}const qs=Cg?window:void 0;function zs(...e){let t,n,r,i;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,i]=e,t=qs):[t,n,r,i]=e,!t)return Ks;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const o=[],s=()=>{o.forEach(h=>h()),o.length=0},l=(h,p,y,C)=>(h.addEventListener(p,y,C),()=>h.removeEventListener(p,y,C)),c=rr(()=>[Vs(t),Ws(i)],([h,p])=>{s(),h&&o.push(...n.flatMap(y=>r.map(C=>l(h,y,C,p))))},{immediate:!0,flush:"post"}),d=()=>{c(),s()};return Pw(d),d}let kg=!1;function Gw(e,t,n={}){const{window:r=qs,ignore:i=[],capture:o=!0,detectIframe:s=!1}=n;if(!r)return;Dw&&!kg&&(kg=!0,Array.from(r.document.body.children).forEach(y=>y.addEventListener("click",Ks)),r.document.documentElement.addEventListener("click",Ks));let l=!0;const c=y=>i.some(C=>{if(typeof C=="string")return Array.from(r.document.querySelectorAll(C)).some(w=>w===y.target||y.composedPath().includes(w));{const w=Vs(C);return w&&(y.target===w||y.composedPath().includes(w))}}),h=[zs(r,"click",y=>{const C=Vs(e);if(!(!C||C===y.target||y.composedPath().includes(C))){if(y.detail===0&&(l=!c(y)),!l){l=!0;return}t(y)}},{passive:!0,capture:o}),zs(r,"pointerdown",y=>{const C=Vs(e);C&&(l=!y.composedPath().includes(C)&&!c(y))},{passive:!0}),s&&zs(r,"blur",y=>{setTimeout(()=>{var C;const w=Vs(e);((C=r.document.activeElement)==null?void 0:C.tagName)==="IFRAME"&&!(w!=null&&w.contains(r.document.activeElement))&&t(y)},0)})].filter(Boolean);return()=>h.forEach(y=>y())}const Il=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Pl="__vueuse_ssr_handlers__",Yw=Xw();function Xw(){return Pl in Il||(Il[Pl]=Il[Pl]||{}),Il[Pl]}function Jw(e,t){return Yw[e]||t}function Zw(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}var Qw=Object.defineProperty,Eg=Object.getOwnPropertySymbols,eT=Object.prototype.hasOwnProperty,tT=Object.prototype.propertyIsEnumerable,Og=(e,t,n)=>t in e?Qw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Lg=(e,t)=>{for(var n in t||(t={}))eT.call(t,n)&&Og(e,n,t[n]);if(Eg)for(var n of Eg(t))tT.call(t,n)&&Og(e,n,t[n]);return e};const nT={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},Ig="vueuse-storage";function rT(e,t,n,r={}){var i;const{flush:o="pre",deep:s=!0,listenToStorageChanges:l=!0,writeDefaults:c=!0,mergeDefaults:d=!1,shallow:h,window:p=qs,eventFilter:y,onError:C=I=>{console.error(I)}}=r,w=(h?kC:Et)(t);if(!n)try{n=Jw("getDefaultStorage",()=>{var I;return(I=qs)==null?void 0:I.localStorage})()}catch(I){C(I)}if(!n)return w;const x=Ws(t),O=Zw(x),E=(i=r.serializer)!=null?i:nT[O],{pause:B,resume:te}=zw(w,()=>D(w.value),{flush:o,deep:s,eventFilter:y});return p&&l&&(zs(p,"storage",ue),zs(p,Ig,m)),ue(),w;function D(I){try{if(I==null)n.removeItem(e);else{const A=E.write(I),P=n.getItem(e);P!==A&&(n.setItem(e,A),p&&p.dispatchEvent(new CustomEvent(Ig,{detail:{key:e,oldValue:P,newValue:A,storageArea:n}})))}}catch(A){C(A)}}function we(I){const A=I?I.newValue:n.getItem(e);if(A==null)return c&&x!==null&&n.setItem(e,E.write(x)),x;if(!I&&d){const P=E.read(A);return typeof d=="function"?d(P,x):O==="object"&&!Array.isArray(P)?Lg(Lg({},x),P):P}else return typeof A!="string"?A:E.read(A)}function m(I){ue(I.detail)}function ue(I){if(!(I&&I.storageArea!==n)){if(I&&I.key==null){w.value=x;return}if(!(I&&I.key!==e)){B();try{w.value=we(I)}catch(A){C(A)}finally{I?Ja(te):te()}}}}}function qc(e,t,n={}){const{window:r=qs}=n;return rT(e,t,r==null?void 0:r.localStorage,n)}var Ui=Ui||{};Ui.stringify=function(){var e={"visit_linear-gradient":function(t){return e.visit_gradient(t)},"visit_repeating-linear-gradient":function(t){return e.visit_gradient(t)},"visit_radial-gradient":function(t){return e.visit_gradient(t)},"visit_repeating-radial-gradient":function(t){return e.visit_gradient(t)},visit_gradient:function(t){var n=e.visit(t.orientation);return n&&(n+=", "),t.type+"("+n+e.visit(t.colorStops)+")"},visit_shape:function(t){var n=t.value,r=e.visit(t.at),i=e.visit(t.style);return i&&(n+=" "+i),r&&(n+=" at "+r),n},"visit_default-radial":function(t){var n="",r=e.visit(t.at);return r&&(n+=r),n},"visit_extent-keyword":function(t){var n=t.value,r=e.visit(t.at);return r&&(n+=" at "+r),n},"visit_position-keyword":function(t){return t.value},visit_position:function(t){return e.visit(t.value.x)+" "+e.visit(t.value.y)},"visit_%":function(t){return t.value+"%"},visit_em:function(t){return t.value+"em"},visit_px:function(t){return t.value+"px"},visit_literal:function(t){return e.visit_color(t.value,t)},visit_hex:function(t){return e.visit_color("#"+t.value,t)},visit_rgb:function(t){return e.visit_color("rgb("+t.value.join(", ")+")",t)},visit_rgba:function(t){return e.visit_color("rgba("+t.value.join(", ")+")",t)},visit_color:function(t,n){var r=t,i=e.visit(n.length);return i&&(r+=" "+i),r},visit_angular:function(t){return t.value+"deg"},visit_directional:function(t){return"to "+t.value},visit_array:function(t){var n="",r=t.length;return t.forEach(function(i,o){n+=e.visit(i),o<r-1&&(n+=", ")}),n},visit:function(t){if(!t)return"";var n="";if(t instanceof Array)return e.visit_array(t,n);if(t.type){var r=e["visit_"+t.type];if(r)return r(t);throw Error("Missing visitor visit_"+t.type)}else throw Error("Invalid node.")}};return function(t){return e.visit(t)}}();var Ui=Ui||{};Ui.parse=function(){var e={linearGradient:/^(\-(webkit|o|ms|moz)\-)?(linear\-gradient)/i,repeatingLinearGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-linear\-gradient)/i,radialGradient:/^(\-(webkit|o|ms|moz)\-)?(radial\-gradient)/i,repeatingRadialGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-radial\-gradient)/i,sideOrCorner:/^to (left (top|bottom)|right (top|bottom)|left|right|top|bottom)/i,extentKeywords:/^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,positionKeywords:/^(left|center|right|top|bottom)/i,pixelValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,percentageValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,emValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,angleValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,startCall:/^\(/,endCall:/^\)/,comma:/^,/,hexColor:/^\#([0-9a-fA-F]+)/,literalColor:/^([a-zA-Z]+)/,rgbColor:/^rgb/i,rgbaColor:/^rgba/i,number:/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/},t="";function n(q){var ie=new Error(t+": "+q);throw ie.source=t,ie}function r(){var q=i();return t.length>0&&n("Invalid input not EOF"),q}function i(){return te(o)}function o(){return s("linear-gradient",e.linearGradient,c)||s("repeating-linear-gradient",e.repeatingLinearGradient,c)||s("radial-gradient",e.radialGradient,p)||s("repeating-radial-gradient",e.repeatingRadialGradient,p)}function s(q,ie,ce){return l(ie,function(nt){var Ve=ce();return Ve&&(je(e.comma)||n("Missing comma before color stops")),{type:q,orientation:Ve,colorStops:te(D)}})}function l(q,ie){var ce=je(q);if(ce){je(e.startCall)||n("Missing (");var nt=ie(ce);return je(e.endCall)||n("Missing )"),nt}}function c(){return d()||h()}function d(){return ve("directional",e.sideOrCorner,1)}function h(){return ve("angular",e.angleValue,1)}function p(){var q,ie=y(),ce;return ie&&(q=[],q.push(ie),ce=t,je(e.comma)&&(ie=y(),ie?q.push(ie):t=ce)),q}function y(){var q=C()||w();if(q)q.at=O();else{var ie=x();if(ie){q=ie;var ce=O();ce&&(q.at=ce)}else{var nt=E();nt&&(q={type:"default-radial",at:nt})}}return q}function C(){var q=ve("shape",/^(circle)/i,0);return q&&(q.style=X()||x()),q}function w(){var q=ve("shape",/^(ellipse)/i,0);return q&&(q.style=j()||x()),q}function x(){return ve("extent-keyword",e.extentKeywords,1)}function O(){if(ve("position",/^at/,0)){var q=E();return q||n("Missing positioning value"),q}}function E(){var q=B();if(q.x||q.y)return{type:"position",value:q}}function B(){return{x:j(),y:j()}}function te(q){var ie=q(),ce=[];if(ie)for(ce.push(ie);je(e.comma);)ie=q(),ie?ce.push(ie):n("One extra comma");return ce}function D(){var q=we();return q||n("Expected color definition"),q.length=j(),q}function we(){return ue()||A()||I()||m()}function m(){return ve("literal",e.literalColor,0)}function ue(){return ve("hex",e.hexColor,1)}function I(){return l(e.rgbColor,function(){return{type:"rgb",value:te(P)}})}function A(){return l(e.rgbaColor,function(){return{type:"rgba",value:te(P)}})}function P(){return je(e.number)[1]}function j(){return ve("%",e.percentageValue,1)||Q()||X()}function Q(){return ve("position-keyword",e.positionKeywords,1)}function X(){return ve("px",e.pixelValue,1)||ve("em",e.emValue,1)}function ve(q,ie,ce){var nt=je(ie);if(nt)return{type:q,value:nt[ce]}}function je(q){var ie,ce;return ce=/^[\n\r\t\s]+/.exec(t),ce&&Re(ce[0].length),ie=q.exec(t),ie&&Re(ie[0].length),ie}function Re(q){t=t.substr(q)}return function(q){return t=q.toString(),r()}}();var iT=Ui.parse,oT=Ui.stringify,Fn="top",or="bottom",sr="right",$n="left",zc="auto",Gs=[Fn,or,sr,$n],Io="start",Ys="end",sT="clippingParents",Pg="viewport",Xs="popper",aT="reference",Dg=Gs.reduce(function(e,t){return e.concat([t+"-"+Io,t+"-"+Ys])},[]),Rg=[].concat(Gs,[zc]).reduce(function(e,t){return e.concat([t,t+"-"+Io,t+"-"+Ys])},[]),lT="beforeRead",uT="read",cT="afterRead",fT="beforeMain",dT="main",pT="afterMain",hT="beforeWrite",gT="write",mT="afterWrite",vT=[lT,uT,cT,fT,dT,pT,hT,gT,mT];function Dr(e){return e?(e.nodeName||"").toLowerCase():null}function Yn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Wi(e){var t=Yn(e).Element;return e instanceof t||e instanceof Element}function ar(e){var t=Yn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Gc(e){if(typeof ShadowRoot>"u")return!1;var t=Yn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function yT(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!ar(o)||!Dr(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(s){var l=i[s];l===!1?o.removeAttribute(s):o.setAttribute(s,l===!0?"":l)}))})}function bT(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 i=t.elements[r],o=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=s.reduce(function(c,d){return c[d]="",c},{});!ar(i)||!Dr(i)||(Object.assign(i.style,l),Object.keys(o).forEach(function(c){i.removeAttribute(c)}))})}}const Ng={name:"applyStyles",enabled:!0,phase:"write",fn:yT,effect:bT,requires:["computeStyles"]};function Rr(e){return e.split("-")[0]}var Ki=Math.max,Dl=Math.min,Po=Math.round;function Yc(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Mg(){return!/^((?!chrome|android).)*safari/i.test(Yc())}function Do(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&ar(e)&&(i=e.offsetWidth>0&&Po(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Po(r.height)/e.offsetHeight||1);var s=Wi(e)?Yn(e):window,l=s.visualViewport,c=!Mg()&&n,d=(r.left+(c&&l?l.offsetLeft:0))/i,h=(r.top+(c&&l?l.offsetTop:0))/o,p=r.width/i,y=r.height/o;return{width:p,height:y,top:h,right:d+p,bottom:h+y,left:d,x:d,y:h}}function Xc(e){var t=Do(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 Fg(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Gc(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Gr(e){return Yn(e).getComputedStyle(e)}function CT(e){return["table","td","th"].indexOf(Dr(e))>=0}function vi(e){return((Wi(e)?e.ownerDocument:e.document)||window.document).documentElement}function Rl(e){return Dr(e)==="html"?e:e.assignedSlot||e.parentNode||(Gc(e)?e.host:null)||vi(e)}function $g(e){return!ar(e)||Gr(e).position==="fixed"?null:e.offsetParent}function _T(e){var t=/firefox/i.test(Yc()),n=/Trident/i.test(Yc());if(n&&ar(e)){var r=Gr(e);if(r.position==="fixed")return null}var i=Rl(e);for(Gc(i)&&(i=i.host);ar(i)&&["html","body"].indexOf(Dr(i))<0;){var o=Gr(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function Js(e){for(var t=Yn(e),n=$g(e);n&&CT(n)&&Gr(n).position==="static";)n=$g(n);return n&&(Dr(n)==="html"||Dr(n)==="body"&&Gr(n).position==="static")?t:n||_T(e)||t}function Jc(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Zs(e,t,n){return Ki(e,Dl(t,n))}function wT(e,t,n){var r=Zs(e,t,n);return r>n?n:r}function Bg(){return{top:0,right:0,bottom:0,left:0}}function Hg(e){return Object.assign({},Bg(),e)}function jg(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var TT=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Hg(typeof t!="number"?t:jg(t,Gs))};function xT(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,l=Rr(n.placement),c=Jc(l),d=[$n,sr].indexOf(l)>=0,h=d?"height":"width";if(!(!o||!s)){var p=TT(i.padding,n),y=Xc(o),C=c==="y"?Fn:$n,w=c==="y"?or:sr,x=n.rects.reference[h]+n.rects.reference[c]-s[c]-n.rects.popper[h],O=s[c]-n.rects.reference[c],E=Js(o),B=E?c==="y"?E.clientHeight||0:E.clientWidth||0:0,te=x/2-O/2,D=p[C],we=B-y[h]-p[w],m=B/2-y[h]/2+te,ue=Zs(D,m,we),I=c;n.modifiersData[r]=(t={},t[I]=ue,t.centerOffset=ue-m,t)}}function ST(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||Fg(t.elements.popper,i)&&(t.elements.arrow=i))}const AT={name:"arrow",enabled:!0,phase:"main",fn:xT,effect:ST,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ro(e){return e.split("-")[1]}var kT={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ET(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Po(n*i)/i||0,y:Po(r*i)/i||0}}function Ug(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,s=e.offsets,l=e.position,c=e.gpuAcceleration,d=e.adaptive,h=e.roundOffsets,p=e.isFixed,y=s.x,C=y===void 0?0:y,w=s.y,x=w===void 0?0:w,O=typeof h=="function"?h({x:C,y:x}):{x:C,y:x};C=O.x,x=O.y;var E=s.hasOwnProperty("x"),B=s.hasOwnProperty("y"),te=$n,D=Fn,we=window;if(d){var m=Js(n),ue="clientHeight",I="clientWidth";if(m===Yn(n)&&(m=vi(n),Gr(m).position!=="static"&&l==="absolute"&&(ue="scrollHeight",I="scrollWidth")),m=m,i===Fn||(i===$n||i===sr)&&o===Ys){D=or;var A=p&&m===we&&we.visualViewport?we.visualViewport.height:m[ue];x-=A-r.height,x*=c?1:-1}if(i===$n||(i===Fn||i===or)&&o===Ys){te=sr;var P=p&&m===we&&we.visualViewport?we.visualViewport.width:m[I];C-=P-r.width,C*=c?1:-1}}var j=Object.assign({position:l},d&&kT),Q=h===!0?ET({x:C,y:x},Yn(n)):{x:C,y:x};if(C=Q.x,x=Q.y,c){var X;return Object.assign({},j,(X={},X[D]=B?"0":"",X[te]=E?"0":"",X.transform=(we.devicePixelRatio||1)<=1?"translate("+C+"px, "+x+"px)":"translate3d("+C+"px, "+x+"px, 0)",X))}return Object.assign({},j,(t={},t[D]=B?x+"px":"",t[te]=E?C+"px":"",t.transform="",t))}function OT(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,s=o===void 0?!0:o,l=n.roundOffsets,c=l===void 0?!0:l,d={placement:Rr(t.placement),variation:Ro(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Ug(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ug(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 LT={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:OT,data:{}};var Nl={passive:!0};function IT(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,s=r.resize,l=s===void 0?!0:s,c=Yn(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&d.forEach(function(h){h.addEventListener("scroll",n.update,Nl)}),l&&c.addEventListener("resize",n.update,Nl),function(){o&&d.forEach(function(h){h.removeEventListener("scroll",n.update,Nl)}),l&&c.removeEventListener("resize",n.update,Nl)}}const PT={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:IT,data:{}};var DT={left:"right",right:"left",bottom:"top",top:"bottom"};function Ml(e){return e.replace(/left|right|bottom|top/g,function(t){return DT[t]})}var RT={start:"end",end:"start"};function Wg(e){return e.replace(/start|end/g,function(t){return RT[t]})}function Zc(e){var t=Yn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Qc(e){return Do(vi(e)).left+Zc(e).scrollLeft}function NT(e,t){var n=Yn(e),r=vi(e),i=n.visualViewport,o=r.clientWidth,s=r.clientHeight,l=0,c=0;if(i){o=i.width,s=i.height;var d=Mg();(d||!d&&t==="fixed")&&(l=i.offsetLeft,c=i.offsetTop)}return{width:o,height:s,x:l+Qc(e),y:c}}function MT(e){var t,n=vi(e),r=Zc(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=Ki(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=Ki(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),l=-r.scrollLeft+Qc(e),c=-r.scrollTop;return Gr(i||n).direction==="rtl"&&(l+=Ki(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:l,y:c}}function ef(e){var t=Gr(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Kg(e){return["html","body","#document"].indexOf(Dr(e))>=0?e.ownerDocument.body:ar(e)&&ef(e)?e:Kg(Rl(e))}function Qs(e,t){var n;t===void 0&&(t=[]);var r=Kg(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=Yn(r),s=i?[o].concat(o.visualViewport||[],ef(r)?r:[]):r,l=t.concat(s);return i?l:l.concat(Qs(Rl(s)))}function tf(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function FT(e,t){var n=Do(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Vg(e,t,n){return t===Pg?tf(NT(e,n)):Wi(t)?FT(t,n):tf(MT(vi(e)))}function $T(e){var t=Qs(Rl(e)),n=["absolute","fixed"].indexOf(Gr(e).position)>=0,r=n&&ar(e)?Js(e):e;return Wi(r)?t.filter(function(i){return Wi(i)&&Fg(i,r)&&Dr(i)!=="body"}):[]}function BT(e,t,n,r){var i=t==="clippingParents"?$T(e):[].concat(t),o=[].concat(i,[n]),s=o[0],l=o.reduce(function(c,d){var h=Vg(e,d,r);return c.top=Ki(h.top,c.top),c.right=Dl(h.right,c.right),c.bottom=Dl(h.bottom,c.bottom),c.left=Ki(h.left,c.left),c},Vg(e,s,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function qg(e){var t=e.reference,n=e.element,r=e.placement,i=r?Rr(r):null,o=r?Ro(r):null,s=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,c;switch(i){case Fn:c={x:s,y:t.y-n.height};break;case or:c={x:s,y:t.y+t.height};break;case sr:c={x:t.x+t.width,y:l};break;case $n:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var d=i?Jc(i):null;if(d!=null){var h=d==="y"?"height":"width";switch(o){case Io:c[d]=c[d]-(t[h]/2-n[h]/2);break;case Ys:c[d]=c[d]+(t[h]/2-n[h]/2);break}}return c}function ea(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,s=o===void 0?e.strategy:o,l=n.boundary,c=l===void 0?sT:l,d=n.rootBoundary,h=d===void 0?Pg:d,p=n.elementContext,y=p===void 0?Xs:p,C=n.altBoundary,w=C===void 0?!1:C,x=n.padding,O=x===void 0?0:x,E=Hg(typeof O!="number"?O:jg(O,Gs)),B=y===Xs?aT:Xs,te=e.rects.popper,D=e.elements[w?B:y],we=BT(Wi(D)?D:D.contextElement||vi(e.elements.popper),c,h,s),m=Do(e.elements.reference),ue=qg({reference:m,element:te,strategy:"absolute",placement:i}),I=tf(Object.assign({},te,ue)),A=y===Xs?I:m,P={top:we.top-A.top+E.top,bottom:A.bottom-we.bottom+E.bottom,left:we.left-A.left+E.left,right:A.right-we.right+E.right},j=e.modifiersData.offset;if(y===Xs&&j){var Q=j[i];Object.keys(P).forEach(function(X){var ve=[sr,or].indexOf(X)>=0?1:-1,je=[Fn,or].indexOf(X)>=0?"y":"x";P[X]+=Q[je]*ve})}return P}function HT(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,s=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,d=c===void 0?Rg:c,h=Ro(r),p=h?l?Dg:Dg.filter(function(w){return Ro(w)===h}):Gs,y=p.filter(function(w){return d.indexOf(w)>=0});y.length===0&&(y=p);var C=y.reduce(function(w,x){return w[x]=ea(e,{placement:x,boundary:i,rootBoundary:o,padding:s})[Rr(x)],w},{});return Object.keys(C).sort(function(w,x){return C[w]-C[x]})}function jT(e){if(Rr(e)===zc)return[];var t=Ml(e);return[Wg(e),t,Wg(t)]}function UT(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,s=n.altAxis,l=s===void 0?!0:s,c=n.fallbackPlacements,d=n.padding,h=n.boundary,p=n.rootBoundary,y=n.altBoundary,C=n.flipVariations,w=C===void 0?!0:C,x=n.allowedAutoPlacements,O=t.options.placement,E=Rr(O),B=E===O,te=c||(B||!w?[Ml(O)]:jT(O)),D=[O].concat(te).reduce(function(_e,ke){return _e.concat(Rr(ke)===zc?HT(t,{placement:ke,boundary:h,rootBoundary:p,padding:d,flipVariations:w,allowedAutoPlacements:x}):ke)},[]),we=t.rects.reference,m=t.rects.popper,ue=new Map,I=!0,A=D[0],P=0;P<D.length;P++){var j=D[P],Q=Rr(j),X=Ro(j)===Io,ve=[Fn,or].indexOf(Q)>=0,je=ve?"width":"height",Re=ea(t,{placement:j,boundary:h,rootBoundary:p,altBoundary:y,padding:d}),q=ve?X?sr:$n:X?or:Fn;we[je]>m[je]&&(q=Ml(q));var ie=Ml(q),ce=[];if(o&&ce.push(Re[Q]<=0),l&&ce.push(Re[q]<=0,Re[ie]<=0),ce.every(function(_e){return _e})){A=j,I=!1;break}ue.set(j,ce)}if(I)for(var nt=w?3:1,Ve=function(ke){var Oe=D.find(function(Be){var Xe=ue.get(Be);if(Xe)return Xe.slice(0,ke).every(function(Le){return Le})});if(Oe)return A=Oe,"break"},ne=nt;ne>0;ne--){var he=Ve(ne);if(he==="break")break}t.placement!==A&&(t.modifiersData[r]._skip=!0,t.placement=A,t.reset=!0)}}const WT={name:"flip",enabled:!0,phase:"main",fn:UT,requiresIfExists:["offset"],data:{_skip:!1}};function zg(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 Gg(e){return[Fn,sr,or,$n].some(function(t){return e[t]>=0})}function KT(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,s=ea(t,{elementContext:"reference"}),l=ea(t,{altBoundary:!0}),c=zg(s,r),d=zg(l,i,o),h=Gg(c),p=Gg(d);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:h,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":p})}const VT={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:KT};function qT(e,t,n){var r=Rr(e),i=[$n,Fn].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=o[0],l=o[1];return s=s||0,l=(l||0)*i,[$n,sr].indexOf(r)>=0?{x:l,y:s}:{x:s,y:l}}function zT(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,s=Rg.reduce(function(h,p){return h[p]=qT(p,t.rects,o),h},{}),l=s[t.placement],c=l.x,d=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=d),t.modifiersData[r]=s}const GT={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:zT};function YT(e){var t=e.state,n=e.name;t.modifiersData[n]=qg({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const XT={name:"popperOffsets",enabled:!0,phase:"read",fn:YT,data:{}};function JT(e){return e==="x"?"y":"x"}function ZT(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,s=n.altAxis,l=s===void 0?!1:s,c=n.boundary,d=n.rootBoundary,h=n.altBoundary,p=n.padding,y=n.tether,C=y===void 0?!0:y,w=n.tetherOffset,x=w===void 0?0:w,O=ea(t,{boundary:c,rootBoundary:d,padding:p,altBoundary:h}),E=Rr(t.placement),B=Ro(t.placement),te=!B,D=Jc(E),we=JT(D),m=t.modifiersData.popperOffsets,ue=t.rects.reference,I=t.rects.popper,A=typeof x=="function"?x(Object.assign({},t.rects,{placement:t.placement})):x,P=typeof A=="number"?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),j=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,Q={x:0,y:0};if(m){if(o){var X,ve=D==="y"?Fn:$n,je=D==="y"?or:sr,Re=D==="y"?"height":"width",q=m[D],ie=q+O[ve],ce=q-O[je],nt=C?-I[Re]/2:0,Ve=B===Io?ue[Re]:I[Re],ne=B===Io?-I[Re]:-ue[Re],he=t.elements.arrow,_e=C&&he?Xc(he):{width:0,height:0},ke=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Bg(),Oe=ke[ve],Be=ke[je],Xe=Zs(0,ue[Re],_e[Re]),Le=te?ue[Re]/2-nt-Xe-Oe-P.mainAxis:Ve-Xe-Oe-P.mainAxis,rt=te?-ue[Re]/2+nt+Xe+Be+P.mainAxis:ne+Xe+Be+P.mainAxis,gt=t.elements.arrow&&Js(t.elements.arrow),R=gt?D==="y"?gt.clientTop||0:gt.clientLeft||0:0,F=(X=j==null?void 0:j[D])!=null?X:0,z=q+Le-F-R,ee=q+rt-F,W=Zs(C?Dl(ie,z):ie,q,C?Ki(ce,ee):ce);m[D]=W,Q[D]=W-q}if(l){var Y,be=D==="x"?Fn:$n,fe=D==="x"?or:sr,ge=m[we],se=we==="y"?"height":"width",Se=ge+O[be],Ce=ge-O[fe],Ne=[Fn,$n].indexOf(E)!==-1,Ae=(Y=j==null?void 0:j[we])!=null?Y:0,qe=Ne?Se:ge-ue[se]-I[se]-Ae+P.altAxis,ft=Ne?ge+ue[se]+I[se]-Ae-P.altAxis:Ce,st=C&&Ne?wT(qe,ge,ft):Zs(C?qe:Se,ge,C?ft:Ce);m[we]=st,Q[we]=st-ge}t.modifiersData[r]=Q}}const QT={name:"preventOverflow",enabled:!0,phase:"main",fn:ZT,requiresIfExists:["offset"]};function ex(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function tx(e){return e===Yn(e)||!ar(e)?Zc(e):ex(e)}function nx(e){var t=e.getBoundingClientRect(),n=Po(t.width)/e.offsetWidth||1,r=Po(t.height)/e.offsetHeight||1;return n!==1||r!==1}function rx(e,t,n){n===void 0&&(n=!1);var r=ar(t),i=ar(t)&&nx(t),o=vi(t),s=Do(e,i,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((Dr(t)!=="body"||ef(o))&&(l=tx(t)),ar(t)?(c=Do(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):o&&(c.x=Qc(o))),{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function ix(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(l){if(!n.has(l)){var c=t.get(l);c&&i(c)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function ox(e){var t=ix(e);return vT.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function sx(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function ax(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Yg={placement:"bottom",modifiers:[],strategy:"absolute"};function Xg(){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 lx(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,o=i===void 0?Yg:i;return function(l,c,d){d===void 0&&(d=o);var h={placement:"bottom",orderedModifiers:[],options:Object.assign({},Yg,o),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},p=[],y=!1,C={state:h,setOptions:function(E){var B=typeof E=="function"?E(h.options):E;x(),h.options=Object.assign({},o,h.options,B),h.scrollParents={reference:Wi(l)?Qs(l):l.contextElement?Qs(l.contextElement):[],popper:Qs(c)};var te=ox(ax([].concat(r,h.options.modifiers)));return h.orderedModifiers=te.filter(function(D){return D.enabled}),w(),C.update()},forceUpdate:function(){if(!y){var E=h.elements,B=E.reference,te=E.popper;if(Xg(B,te)){h.rects={reference:rx(B,Js(te),h.options.strategy==="fixed"),popper:Xc(te)},h.reset=!1,h.placement=h.options.placement,h.orderedModifiers.forEach(function(P){return h.modifiersData[P.name]=Object.assign({},P.data)});for(var D=0;D<h.orderedModifiers.length;D++){if(h.reset===!0){h.reset=!1,D=-1;continue}var we=h.orderedModifiers[D],m=we.fn,ue=we.options,I=ue===void 0?{}:ue,A=we.name;typeof m=="function"&&(h=m({state:h,options:I,name:A,instance:C})||h)}}}},update:sx(function(){return new Promise(function(O){C.forceUpdate(),O(h)})}),destroy:function(){x(),y=!0}};if(!Xg(l,c))return C;C.setOptions(d).then(function(O){!y&&d.onFirstUpdate&&d.onFirstUpdate(O)});function w(){h.orderedModifiers.forEach(function(O){var E=O.name,B=O.options,te=B===void 0?{}:B,D=O.effect;if(typeof D=="function"){var we=D({state:h,name:E,instance:C,options:te}),m=function(){};p.push(we||m)}})}function x(){p.forEach(function(O){return O()}),p=[]}return C}}var ux=[PT,XT,LT,Ng,GT,WT,QT,AT,VT],Jg=lx({defaultModifiers:ux});/*!
|
||
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
||
*
|
||
* Copyright (c) 2014-2017, Jon Schlinkert.
|
||
* Released under the MIT License.
|
||
*/function Zg(e){return Object.prototype.toString.call(e)==="[object Object]"}function cx(e){var t,n;return Zg(e)===!1?!1:(t=e.constructor,t===void 0?!0:(n=t.prototype,!(Zg(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)))}function ta(){return ta=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},ta.apply(this,arguments)}function Qg(e,t){if(e==null)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(i[n]=e[n]);return i}const fx={silent:!1,logLevel:"warn"},dx=["validator"],em=Object.prototype,tm=em.toString,px=em.hasOwnProperty,nm=/^\s*function (\w+)/;function rm(e){var t;const n=(t=e==null?void 0:e.type)!==null&&t!==void 0?t:e;if(n){const r=n.toString().match(nm);return r?r[1]:""}return""}const Vi=cx;let Cn=e=>e;const No=(e,t)=>px.call(e,t),hx=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e},Mo=Array.isArray||function(e){return tm.call(e)==="[object Array]"},Fo=e=>tm.call(e)==="[object Function]",Fl=e=>Vi(e)&&No(e,"_vueTypes_name"),im=e=>Vi(e)&&(No(e,"type")||["_vueTypes_name","validator","default","required"].some(t=>No(e,t)));function nf(e,t){return Object.defineProperty(e.bind(t),"__original",{value:e})}function qi(e,t,n=!1){let r,i=!0,o="";r=Vi(e)?e:{type:e};const s=Fl(r)?r._vueTypes_name+" - ":"";if(im(r)&&r.type!==null){if(r.type===void 0||r.type===!0||!r.required&&t===void 0)return i;Mo(r.type)?(i=r.type.some(l=>qi(l,t,!0)===!0),o=r.type.map(l=>rm(l)).join(" or ")):(o=rm(r),i=o==="Array"?Mo(t):o==="Object"?Vi(t):o==="String"||o==="Number"||o==="Boolean"||o==="Function"?function(l){if(l==null)return"";const c=l.constructor.toString().match(nm);return c?c[1]:""}(t)===o:t instanceof r.type)}if(!i){const l=`${s}value "${t}" should be of type "${o}"`;return n===!1?(Cn(l),!1):l}if(No(r,"validator")&&Fo(r.validator)){const l=Cn,c=[];if(Cn=d=>{c.push(d)},i=r.validator(t),Cn=l,!i){const d=(c.length>1?"* ":"")+c.join(`
|
||
* `);return c.length=0,n===!1?(Cn(d),i):d}}return i}function Xn(e,t){const n=Object.defineProperties(t,{_vueTypes_name:{value:e,writable:!0},isRequired:{get(){return this.required=!0,this}},def:{value(i){return i===void 0?(No(this,"default")&&delete this.default,this):Fo(i)||qi(this,i,!0)===!0?(this.default=Mo(i)?()=>[...i]:Vi(i)?()=>Object.assign({},i):i,this):(Cn(`${this._vueTypes_name} - invalid default value: "${i}"`),this)}}}),{validator:r}=n;return Fo(r)&&(n.validator=nf(r,n)),n}function Nr(e,t){const n=Xn(e,t);return Object.defineProperty(n,"validate",{value(r){return Fo(this.validator)&&Cn(`${this._vueTypes_name} - calling .validate() will overwrite the current custom validator function. Validator info:
|
||
${JSON.stringify(this)}`),this.validator=nf(r,this),this}})}function om(e,t,n){const r=function(c){const d={};return Object.getOwnPropertyNames(c).forEach(h=>{d[h]=Object.getOwnPropertyDescriptor(c,h)}),Object.defineProperties({},d)}(t);if(r._vueTypes_name=e,!Vi(n))return r;const{validator:i}=n,o=Qg(n,dx);if(Fo(i)){let{validator:c}=r;c&&(c=(l=(s=c).__original)!==null&&l!==void 0?l:s),r.validator=nf(c?function(d){return c.call(this,d)&&i.call(this,d)}:i,r)}var s,l;return Object.assign(r,o)}function $l(e){return e.replace(/^(?!\s*$)/gm," ")}const gx=()=>Nr("any",{}),mx=()=>Nr("function",{type:Function}),vx=()=>Nr("boolean",{type:Boolean}),yx=()=>Nr("string",{type:String}),bx=()=>Nr("number",{type:Number}),Cx=()=>Nr("array",{type:Array}),_x=()=>Nr("object",{type:Object}),wx=()=>Xn("integer",{type:Number,validator:e=>hx(e)}),Tx=()=>Xn("symbol",{validator:e=>typeof e=="symbol"});function xx(e,t="custom validation failed"){if(typeof e!="function")throw new TypeError("[VueTypes error]: You must provide a function as argument");return Xn(e.name||"<<anonymous function>>",{type:null,validator(n){const r=e(n);return r||Cn(`${this._vueTypes_name} - ${t}`),r}})}function Sx(e){if(!Mo(e))throw new TypeError("[VueTypes error]: You must provide an array as argument.");const t=`oneOf - value should be one of "${e.join('", "')}".`,n=e.reduce((r,i)=>{if(i!=null){const o=i.constructor;r.indexOf(o)===-1&&r.push(o)}return r},[]);return Xn("oneOf",{type:n.length>0?n:void 0,validator(r){const i=e.indexOf(r)!==-1;return i||Cn(t),i}})}function Ax(e){if(!Mo(e))throw new TypeError("[VueTypes error]: You must provide an array as argument");let t=!1,n=[];for(let i=0;i<e.length;i+=1){const o=e[i];if(im(o)){if(Fl(o)&&o._vueTypes_name==="oneOf"&&o.type){n=n.concat(o.type);continue}if(Fo(o.validator)&&(t=!0),o.type===!0||!o.type){Cn('oneOfType - invalid usage of "true" or "null" as types.');continue}n=n.concat(o.type)}else n.push(o)}n=n.filter((i,o)=>n.indexOf(i)===o);const r=n.length>0?n:null;return Xn("oneOfType",t?{type:r,validator(i){const o=[],s=e.some(l=>{const c=qi(Fl(l)&&l._vueTypes_name==="oneOf"?l.type||null:l,i,!0);return typeof c=="string"&&o.push(c),c===!0});return s||Cn(`oneOfType - provided value does not match any of the ${o.length} passed-in validators:
|
||
${$l(o.join(`
|
||
`))}`),s}}:{type:r})}function kx(e){return Xn("arrayOf",{type:Array,validator(t){let n="";const r=t.every(i=>(n=qi(e,i,!0),n===!0));return r||Cn(`arrayOf - value validation error:
|
||
${$l(n)}`),r}})}function Ex(e){return Xn("instanceOf",{type:e})}function Ox(e){return Xn("objectOf",{type:Object,validator(t){let n="";const r=Object.keys(t).every(i=>(n=qi(e,t[i],!0),n===!0));return r||Cn(`objectOf - value validation error:
|
||
${$l(n)}`),r}})}function Lx(e){const t=Object.keys(e),n=t.filter(i=>{var o;return!((o=e[i])===null||o===void 0||!o.required)}),r=Xn("shape",{type:Object,validator(i){if(!Vi(i))return!1;const o=Object.keys(i);if(n.length>0&&n.some(s=>o.indexOf(s)===-1)){const s=n.filter(l=>o.indexOf(l)===-1);return Cn(s.length===1?`shape - required property "${s[0]}" is not defined.`:`shape - required properties "${s.join('", "')}" are not defined.`),!1}return o.every(s=>{if(t.indexOf(s)===-1)return this._vueTypes_isLoose===!0||(Cn(`shape - shape definition does not include a "${s}" property. Allowed keys: "${t.join('", "')}".`),!1);const l=qi(e[s],i[s],!0);return typeof l=="string"&&Cn(`shape - "${s}" property validation error:
|
||
${$l(l)}`),l===!0})}});return Object.defineProperty(r,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(r,"loose",{get(){return this._vueTypes_isLoose=!0,this}}),r}const Ix=["name","validate","getter"],Px=(()=>{var e;return(e=class{static get any(){return gx()}static get func(){return mx().def(this.defaults.func)}static get bool(){return vx().def(this.defaults.bool)}static get string(){return yx().def(this.defaults.string)}static get number(){return bx().def(this.defaults.number)}static get array(){return Cx().def(this.defaults.array)}static get object(){return _x().def(this.defaults.object)}static get integer(){return wx().def(this.defaults.integer)}static get symbol(){return Tx()}static get nullable(){return{type:null}}static extend(t){if(Mo(t))return t.forEach(c=>this.extend(c)),this;const{name:n,validate:r=!1,getter:i=!1}=t,o=Qg(t,Ix);if(No(this,n))throw new TypeError(`[VueTypes error]: Type "${n}" already defined`);const{type:s}=o;if(Fl(s))return delete o.type,Object.defineProperty(this,n,i?{get:()=>om(n,s,o)}:{value(...c){const d=om(n,s,o);return d.validator&&(d.validator=d.validator.bind(d,...c)),d}});let l;return l=i?{get(){const c=Object.assign({},o);return r?Nr(n,c):Xn(n,c)},enumerable:!0}:{value(...c){const d=Object.assign({},o);let h;return h=r?Nr(n,d):Xn(n,d),d.validator&&(h.validator=d.validator.bind(h,...c)),h},enumerable:!0},Object.defineProperty(this,n,l)}}).defaults={},e.sensibleDefaults=void 0,e.config=fx,e.custom=xx,e.oneOf=Sx,e.instanceOf=Ex,e.oneOfType=Ax,e.arrayOf=kx,e.objectOf=Ox,e.shape=Lx,e.utils={validate:(t,n)=>qi(n,t,!0)===!0,toType:(t,n,r=!1)=>r?Nr(t,n):Xn(t,n)},e})();function Dx(e={func:()=>{},bool:!0,string:"",number:0,array:()=>[],object:()=>({}),integer:0}){var t;return(t=class extends Px{static get sensibleDefaults(){return ta({},this.defaults)}static set sensibleDefaults(n){this.defaults=n!==!1?ta({},n!==!0?n:e):{}}}).defaults=ta({},e),t}let ot=class extends Dx(){};var sm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function rf(e){var t={exports:{}};return e(t,t.exports),t.exports}var Bl=function(e){return e&&e.Math==Math&&e},rn=Bl(typeof globalThis=="object"&&globalThis)||Bl(typeof window=="object"&&window)||Bl(typeof self=="object"&&self)||Bl(typeof sm=="object"&&sm)||function(){return this}()||Function("return this")(),Nt=function(e){try{return!!e()}catch{return!0}},lr=!Nt(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),am={}.propertyIsEnumerable,lm=Object.getOwnPropertyDescriptor,Rx={f:lm&&!am.call({1:2},1)?function(e){var t=lm(this,e);return!!t&&t.enumerable}:am},Hl=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Nx={}.toString,Yr=function(e){return Nx.call(e).slice(8,-1)},Mx="".split,jl=Nt(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return Yr(e)=="String"?Mx.call(e,""):Object(e)}:Object,yi=function(e){if(e==null)throw TypeError("Can't call method on "+e);return e},$o=function(e){return jl(yi(e))},cn=function(e){return typeof e=="object"?e!==null:typeof e=="function"},of=function(e,t){if(!cn(e))return e;var n,r;if(t&&typeof(n=e.toString)=="function"&&!cn(r=n.call(e))||typeof(n=e.valueOf)=="function"&&!cn(r=n.call(e))||!t&&typeof(n=e.toString)=="function"&&!cn(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},Fx={}.hasOwnProperty,Zt=function(e,t){return Fx.call(e,t)},sf=rn.document,$x=cn(sf)&&cn(sf.createElement),um=function(e){return $x?sf.createElement(e):{}},cm=!lr&&!Nt(function(){return Object.defineProperty(um("div"),"a",{get:function(){return 7}}).a!=7}),fm=Object.getOwnPropertyDescriptor,af={f:lr?fm:function(e,t){if(e=$o(e),t=of(t,!0),cm)try{return fm(e,t)}catch{}if(Zt(e,t))return Hl(!Rx.f.call(e,t),e[t])}},En=function(e){if(!cn(e))throw TypeError(String(e)+" is not an object");return e},dm=Object.defineProperty,Xr={f:lr?dm:function(e,t,n){if(En(e),t=of(t,!0),En(n),cm)try{return dm(e,t,n)}catch{}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},ur=lr?function(e,t,n){return Xr.f(e,t,Hl(1,n))}:function(e,t,n){return e[t]=n,e},lf=function(e,t){try{ur(rn,e,t)}catch{rn[e]=t}return t},zi=rn["__core-js_shared__"]||lf("__core-js_shared__",{}),Bx=Function.toString;typeof zi.inspectSource!="function"&&(zi.inspectSource=function(e){return Bx.call(e)});var Ul,na,Wl,pm=zi.inspectSource,hm=rn.WeakMap,Hx=typeof hm=="function"&&/native code/.test(pm(hm)),gm=rf(function(e){(e.exports=function(t,n){return zi[t]||(zi[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.8.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),jx=0,Ux=Math.random(),uf=function(e){return"Symbol("+String(e===void 0?"":e)+")_"+(++jx+Ux).toString(36)},mm=gm("keys"),cf=function(e){return mm[e]||(mm[e]=uf(e))},Kl={},Wx=rn.WeakMap;if(Hx){var Bo=zi.state||(zi.state=new Wx),Kx=Bo.get,Vx=Bo.has,qx=Bo.set;Ul=function(e,t){return t.facade=e,qx.call(Bo,e,t),t},na=function(e){return Kx.call(Bo,e)||{}},Wl=function(e){return Vx.call(Bo,e)}}else{var ra=cf("state");Kl[ra]=!0,Ul=function(e,t){return t.facade=e,ur(e,ra,t),t},na=function(e){return Zt(e,ra)?e[ra]:{}},Wl=function(e){return Zt(e,ra)}}var bi={set:Ul,get:na,has:Wl,enforce:function(e){return Wl(e)?na(e):Ul(e,{})},getterFor:function(e){return function(t){var n;if(!cn(t)||(n=na(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},Ci=rf(function(e){var t=bi.get,n=bi.enforce,r=String(String).split("String");(e.exports=function(i,o,s,l){var c,d=!!l&&!!l.unsafe,h=!!l&&!!l.enumerable,p=!!l&&!!l.noTargetGet;typeof s=="function"&&(typeof o!="string"||Zt(s,"name")||ur(s,"name",o),(c=n(s)).source||(c.source=r.join(typeof o=="string"?o:""))),i!==rn?(d?!p&&i[o]&&(h=!0):delete i[o],h?i[o]=s:ur(i,o,s)):h?i[o]=s:lf(o,s)})(Function.prototype,"toString",function(){return typeof this=="function"&&t(this).source||pm(this)})}),ff=rn,vm=function(e){return typeof e=="function"?e:void 0},Vl=function(e,t){return arguments.length<2?vm(ff[e])||vm(rn[e]):ff[e]&&ff[e][t]||rn[e]&&rn[e][t]},zx=Math.ceil,Gx=Math.floor,Ho=function(e){return isNaN(e=+e)?0:(e>0?Gx:zx)(e)},Yx=Math.min,Jn=function(e){return e>0?Yx(Ho(e),9007199254740991):0},Xx=Math.max,Jx=Math.min,ql=function(e,t){var n=Ho(e);return n<0?Xx(n+t,0):Jx(n,t)},ym=function(e){return function(t,n,r){var i,o=$o(t),s=Jn(o.length),l=ql(r,s);if(e&&n!=n){for(;s>l;)if((i=o[l++])!=i)return!0}else for(;s>l;l++)if((e||l in o)&&o[l]===n)return e||l||0;return!e&&-1}},bm={includes:ym(!0),indexOf:ym(!1)},Zx=bm.indexOf,Cm=function(e,t){var n,r=$o(e),i=0,o=[];for(n in r)!Zt(Kl,n)&&Zt(r,n)&&o.push(n);for(;t.length>i;)Zt(r,n=t[i++])&&(~Zx(o,n)||o.push(n));return o},zl=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Qx=zl.concat("length","prototype"),eS={f:Object.getOwnPropertyNames||function(e){return Cm(e,Qx)}},tS={f:Object.getOwnPropertySymbols},nS=Vl("Reflect","ownKeys")||function(e){var t=eS.f(En(e)),n=tS.f;return n?t.concat(n(e)):t},rS=function(e,t){for(var n=nS(t),r=Xr.f,i=af.f,o=0;o<n.length;o++){var s=n[o];Zt(e,s)||r(e,s,i(t,s))}},iS=/#|\.prototype\./,ia=function(e,t){var n=sS[oS(e)];return n==lS||n!=aS&&(typeof t=="function"?Nt(t):!!t)},oS=ia.normalize=function(e){return String(e).replace(iS,".").toLowerCase()},sS=ia.data={},aS=ia.NATIVE="N",lS=ia.POLYFILL="P",df=ia,uS=af.f,_n=function(e,t){var n,r,i,o,s,l=e.target,c=e.global,d=e.stat;if(n=c?rn:d?rn[l]||lf(l,{}):(rn[l]||{}).prototype)for(r in t){if(o=t[r],i=e.noTargetGet?(s=uS(n,r))&&s.value:n[r],!df(c?r:l+(d?".":"#")+r,e.forced)&&i!==void 0){if(typeof o==typeof i)continue;rS(o,i)}(e.sham||i&&i.sham)&&ur(o,"sham",!0),Ci(n,r,o,e)}},pf=function(e,t){var n=[][e];return!!n&&Nt(function(){n.call(null,t||function(){throw 1},1)})},cS=Object.defineProperty,hf={},_m=function(e){throw e},jo=function(e,t){if(Zt(hf,e))return hf[e];t||(t={});var n=[][e],r=!!Zt(t,"ACCESSORS")&&t.ACCESSORS,i=Zt(t,0)?t[0]:_m,o=Zt(t,1)?t[1]:void 0;return hf[e]=!!n&&!Nt(function(){if(r&&!lr)return!0;var s={length:-1};r?cS(s,1,{enumerable:!0,get:_m}):s[1]=1,n.call(s,i,o)})},fS=bm.indexOf,wm=[].indexOf,Tm=!!wm&&1/[1].indexOf(1,-0)<0,dS=pf("indexOf"),pS=jo("indexOf",{ACCESSORS:!0,1:0});function Gi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Yi(e,t,n){return t&&xm(e.prototype,t),n&&xm(e,n),e}_n({target:"Array",proto:!0,forced:Tm||!dS||!pS},{indexOf:function(e){return Tm?wm.apply(this,arguments)||0:fS(this,e,arguments.length>1?arguments[1]:void 0)}}),function(){function e(){Gi(this,e)}return Yi(e,null,[{key:"isInBrowser",value:function(){return typeof window<"u"}},{key:"isServer",value:function(){return typeof window>"u"}},{key:"getUA",value:function(){return e.isInBrowser()?window.navigator.userAgent.toLowerCase():""}},{key:"isMobile",value:function(){return/Mobile|mini|Fennec|Android|iP(ad|od|hone)/.test(navigator.appVersion)}},{key:"isOpera",value:function(){return navigator.userAgent.indexOf("Opera")!==-1}},{key:"isIE",value:function(){var t=e.getUA();return t!==""&&t.indexOf("msie")>0}},{key:"isIE9",value:function(){var t=e.getUA();return t!==""&&t.indexOf("msie 9.0")>0}},{key:"isEdge",value:function(){var t=e.getUA();return t!==""&&t.indexOf("edge/")>0}},{key:"isChrome",value:function(){var t=e.getUA();return t!==""&&/chrome\/\d+/.test(t)&&!e.isEdge()}},{key:"isPhantomJS",value:function(){var t=e.getUA();return t!==""&&/phantomjs/.test(t)}},{key:"isFirefox",value:function(){var t=e.getUA();return t!==""&&/firefox/.test(t)}}]),e}();var hS=[].join,gS=jl!=Object,mS=pf("join",",");_n({target:"Array",proto:!0,forced:gS||!mS},{join:function(e){return hS.call($o(this),e===void 0?",":e)}});var Uo,Gl,Jr=function(e){return Object(yi(e))},Wo=Array.isArray||function(e){return Yr(e)=="Array"},Sm=!!Object.getOwnPropertySymbols&&!Nt(function(){return!String(Symbol())}),vS=Sm&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Yl=gm("wks"),oa=rn.Symbol,yS=vS?oa:oa&&oa.withoutSetter||uf,Vt=function(e){return Zt(Yl,e)||(Sm&&Zt(oa,e)?Yl[e]=oa[e]:Yl[e]=yS("Symbol."+e)),Yl[e]},bS=Vt("species"),Xl=function(e,t){var n;return Wo(e)&&(typeof(n=e.constructor)!="function"||n!==Array&&!Wo(n.prototype)?cn(n)&&(n=n[bS])===null&&(n=void 0):n=void 0),new(n===void 0?Array:n)(t===0?0:t)},Ko=function(e,t,n){var r=of(t);r in e?Xr.f(e,r,Hl(0,n)):e[r]=n},gf=Vl("navigator","userAgent")||"",Am=rn.process,km=Am&&Am.versions,Em=km&&km.v8;Em?Gl=(Uo=Em.split("."))[0]+Uo[1]:gf&&(!(Uo=gf.match(/Edge\/(\d+)/))||Uo[1]>=74)&&(Uo=gf.match(/Chrome\/(\d+)/))&&(Gl=Uo[1]);var Jl=Gl&&+Gl,CS=Vt("species"),mf=function(e){return Jl>=51||!Nt(function(){var t=[];return(t.constructor={})[CS]=function(){return{foo:1}},t[e](Boolean).foo!==1})},_S=mf("splice"),wS=jo("splice",{ACCESSORS:!0,0:0,1:2}),TS=Math.max,xS=Math.min;_n({target:"Array",proto:!0,forced:!_S||!wS},{splice:function(e,t){var n,r,i,o,s,l,c=Jr(this),d=Jn(c.length),h=ql(e,d),p=arguments.length;if(p===0?n=r=0:p===1?(n=0,r=d-h):(n=p-2,r=xS(TS(Ho(t),0),d-h)),d+n-r>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(i=Xl(c,r),o=0;o<r;o++)(s=h+o)in c&&Ko(i,o,c[s]);if(i.length=r,n<r){for(o=h;o<d-r;o++)l=o+n,(s=o+r)in c?c[l]=c[s]:delete c[l];for(o=d;o>d-r+n;o--)delete c[o-1]}else if(n>r)for(o=d-r;o>h;o--)l=o+n-1,(s=o+r-1)in c?c[l]=c[s]:delete c[l];for(o=0;o<n;o++)c[o+h]=arguments[o+2];return c.length=d-r+n,i}});var Om={};Om[Vt("toStringTag")]="z";var vf=String(Om)==="[object z]",SS=Vt("toStringTag"),AS=Yr(function(){return arguments}())=="Arguments",Lm=vf?Yr:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(i,o){try{return i[o]}catch{}}(t=Object(e),SS))=="string"?n:AS?Yr(t):(r=Yr(t))=="Object"&&typeof t.callee=="function"?"Arguments":r},kS=vf?{}.toString:function(){return"[object "+Lm(this)+"]"};vf||Ci(Object.prototype,"toString",kS,{unsafe:!0});var Im=function(){var e=En(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t};function Pm(e,t){return RegExp(e,t)}var yf,bf,Dm={UNSUPPORTED_Y:Nt(function(){var e=Pm("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),BROKEN_CARET:Nt(function(){var e=Pm("^r","gy");return e.lastIndex=2,e.exec("str")!=null})},Zl=RegExp.prototype.exec,ES=String.prototype.replace,Rm=Zl,Cf=(yf=/a/,bf=/b*/g,Zl.call(yf,"a"),Zl.call(bf,"a"),yf.lastIndex!==0||bf.lastIndex!==0),Nm=Dm.UNSUPPORTED_Y||Dm.BROKEN_CARET,_f=/()??/.exec("")[1]!==void 0;(Cf||_f||Nm)&&(Rm=function(e){var t,n,r,i,o=this,s=Nm&&o.sticky,l=Im.call(o),c=o.source,d=0,h=e;return s&&((l=l.replace("y","")).indexOf("g")===-1&&(l+="g"),h=String(e).slice(o.lastIndex),o.lastIndex>0&&(!o.multiline||o.multiline&&e[o.lastIndex-1]!==`
|
||
`)&&(c="(?: "+c+")",h=" "+h,d++),n=new RegExp("^(?:"+c+")",l)),_f&&(n=new RegExp("^"+c+"$(?!\\s)",l)),Cf&&(t=o.lastIndex),r=Zl.call(s?n:o,h),s?r?(r.input=r.input.slice(d),r[0]=r[0].slice(d),r.index=o.lastIndex,o.lastIndex+=r[0].length):o.lastIndex=0:Cf&&r&&(o.lastIndex=o.global?r.index+r[0].length:t),_f&&r&&r.length>1&&ES.call(r[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(r[i]=void 0)}),r});var sa=Rm;_n({target:"RegExp",proto:!0,forced:/./.exec!==sa},{exec:sa});var Mm=RegExp.prototype,Fm=Mm.toString,OS=Nt(function(){return Fm.call({source:"a",flags:"b"})!="/a/b"}),LS=Fm.name!="toString";(OS||LS)&&Ci(RegExp.prototype,"toString",function(){var e=En(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(n===void 0&&e instanceof RegExp&&!("flags"in Mm)?Im.call(e):n)},{unsafe:!0});var IS=Vt("species"),PS=!Nt(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"}),$m="a".replace(/./,"$0")==="$0",Bm=Vt("replace"),Hm=!!/./[Bm]&&/./[Bm]("a","$0")==="",DS=!Nt(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),jm=function(e,t,n,r){var i=Vt(e),o=!Nt(function(){var p={};return p[i]=function(){return 7},""[e](p)!=7}),s=o&&!Nt(function(){var p=!1,y=/a/;return e==="split"&&((y={}).constructor={},y.constructor[IS]=function(){return y},y.flags="",y[i]=/./[i]),y.exec=function(){return p=!0,null},y[i](""),!p});if(!o||!s||e==="replace"&&(!PS||!$m||Hm)||e==="split"&&!DS){var l=/./[i],c=n(i,""[e],function(p,y,C,w,x){return y.exec===sa?o&&!x?{done:!0,value:l.call(y,C,w)}:{done:!0,value:p.call(C,y,w)}:{done:!1}},{REPLACE_KEEPS_$0:$m,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:Hm}),d=c[0],h=c[1];Ci(String.prototype,e,d),Ci(RegExp.prototype,i,t==2?function(p,y){return h.call(p,this,y)}:function(p){return h.call(p,this)})}r&&ur(RegExp.prototype[i],"sham",!0)},RS=Vt("match"),Um=function(e){var t;return cn(e)&&((t=e[RS])!==void 0?!!t:Yr(e)=="RegExp")},wf=function(e){if(typeof e!="function")throw TypeError(String(e)+" is not a function");return e},NS=Vt("species"),Wm=function(e){return function(t,n){var r,i,o=String(yi(t)),s=Ho(n),l=o.length;return s<0||s>=l?e?"":void 0:(r=o.charCodeAt(s))<55296||r>56319||s+1===l||(i=o.charCodeAt(s+1))<56320||i>57343?e?o.charAt(s):r:e?o.slice(s,s+2):i-56320+(r-55296<<10)+65536}},Km={codeAt:Wm(!1),charAt:Wm(!0)},MS=Km.charAt,Vm=function(e,t,n){return t+(n?MS(e,t).length:1)},Tf=function(e,t){var n=e.exec;if(typeof n=="function"){var r=n.call(e,t);if(typeof r!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return r}if(Yr(e)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return sa.call(e,t)},FS=[].push,$S=Math.min,Vo=!Nt(function(){return!RegExp(4294967295,"y")});jm("split",2,function(e,t,n){var r;return r="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(i,o){var s=String(yi(this)),l=o===void 0?4294967295:o>>>0;if(l===0)return[];if(i===void 0)return[s];if(!Um(i))return t.call(s,i,l);for(var c,d,h,p=[],y=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(i.sticky?"y":""),C=0,w=new RegExp(i.source,y+"g");(c=sa.call(w,s))&&!((d=w.lastIndex)>C&&(p.push(s.slice(C,c.index)),c.length>1&&c.index<s.length&&FS.apply(p,c.slice(1)),h=c[0].length,C=d,p.length>=l));)w.lastIndex===c.index&&w.lastIndex++;return C===s.length?!h&&w.test("")||p.push(""):p.push(s.slice(C)),p.length>l?p.slice(0,l):p}:"0".split(void 0,0).length?function(i,o){return i===void 0&&o===0?[]:t.call(this,i,o)}:t,[function(i,o){var s=yi(this),l=i==null?void 0:i[e];return l!==void 0?l.call(i,s,o):r.call(String(s),i,o)},function(i,o){var s=n(r,i,this,o,r!==t);if(s.done)return s.value;var l=En(i),c=String(this),d=function(D,we){var m,ue=En(D).constructor;return ue===void 0||(m=En(ue)[NS])==null?we:wf(m)}(l,RegExp),h=l.unicode,p=(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+(Vo?"y":"g"),y=new d(Vo?l:"^(?:"+l.source+")",p),C=o===void 0?4294967295:o>>>0;if(C===0)return[];if(c.length===0)return Tf(y,c)===null?[c]:[];for(var w=0,x=0,O=[];x<c.length;){y.lastIndex=Vo?x:0;var E,B=Tf(y,Vo?c:c.slice(x));if(B===null||(E=$S(Jn(y.lastIndex+(Vo?0:x)),c.length))===w)x=Vm(c,x,h);else{if(O.push(c.slice(w,x)),O.length===C)return O;for(var te=1;te<=B.length-1;te++)if(O.push(B[te]),O.length===C)return O;x=w=E}}return O.push(c.slice(w)),O}]},!Vo);var xf=`
|
||
\v\f\r \u2028\u2029\uFEFF`,Ql="["+xf+"]",BS=RegExp("^"+Ql+Ql+"*"),HS=RegExp(Ql+Ql+"*$"),Sf=function(e){return function(t){var n=String(yi(t));return 1&e&&(n=n.replace(BS,"")),2&e&&(n=n.replace(HS,"")),n}},jS={start:Sf(1),end:Sf(2),trim:Sf(3)},US=jS.trim;_n({target:"String",proto:!0,forced:function(e){return Nt(function(){return!!xf[e]()||"
"[e]()!="
"||xf[e].name!==e})}("trim")},{trim:function(){return US(this)}});var WS=mf("slice"),KS=jo("slice",{ACCESSORS:!0,0:0,1:2}),VS=Vt("species"),qS=[].slice,zS=Math.max;_n({target:"Array",proto:!0,forced:!WS||!KS},{slice:function(e,t){var n,r,i,o=$o(this),s=Jn(o.length),l=ql(e,s),c=ql(t===void 0?s:t,s);if(Wo(o)&&(typeof(n=o.constructor)!="function"||n!==Array&&!Wo(n.prototype)?cn(n)&&(n=n[VS])===null&&(n=void 0):n=void 0,n===Array||n===void 0))return qS.call(o,l,c);for(r=new(n===void 0?Array:n)(zS(c-l,0)),i=0;l<c;l++,i++)l in o&&Ko(r,i,o[l]);return r.length=i,r}});var Af=Object.keys||function(e){return Cm(e,zl)},GS=Nt(function(){Af(1)});_n({target:"Object",stat:!0,forced:GS},{keys:function(e){return Af(Jr(e))}});var kf,YS=function(e){if(Um(e))throw TypeError("The method doesn't accept regular expressions");return e},XS=Vt("match"),JS=af.f,qm="".startsWith,ZS=Math.min,zm=function(e){var t=/./;try{"/./"[e](t)}catch{try{return t[XS]=!1,"/./"[e](t)}catch{}}return!1}("startsWith"),QS=!(zm||(kf=JS(String.prototype,"startsWith"),!kf||kf.writable));function Gm(e){return(Gm=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})(e)}_n({target:"String",proto:!0,forced:!QS&&!zm},{startsWith:function(e){var t=String(yi(this));YS(e);var n=Jn(ZS(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return qm?qm.call(t,r,n):t.slice(n,n+r.length)===r}});var qo=function(e){return typeof e=="string"},zo=function(e){return e!==null&&Gm(e)==="object"},Go=function(){function e(){Gi(this,e)}return Yi(e,null,[{key:"isWindow",value:function(t){return t===window}},{key:"addEventListener",value:function(t,n,r){var i=arguments.length>3&&arguments[3]!==void 0&&arguments[3];t&&n&&r&&t.addEventListener(n,r,i)}},{key:"removeEventListener",value:function(t,n,r){var i=arguments.length>3&&arguments[3]!==void 0&&arguments[3];t&&n&&r&&t.removeEventListener(n,r,i)}},{key:"triggerDragEvent",value:function(t,n){var r=!1,i=function(s){var l;(l=n.drag)===null||l===void 0||l.call(n,s)},o=function s(l){var c;e.removeEventListener(document,"mousemove",i),e.removeEventListener(document,"mouseup",s),document.onselectstart=null,document.ondragstart=null,r=!1,(c=n.end)===null||c===void 0||c.call(n,l)};e.addEventListener(t,"mousedown",function(s){var l;r||(document.onselectstart=function(){return!1},document.ondragstart=function(){return!1},e.addEventListener(document,"mousemove",i),e.addEventListener(document,"mouseup",o),r=!0,(l=n.start)===null||l===void 0||l.call(n,s))})}},{key:"getBoundingClientRect",value:function(t){return t&&zo(t)&&t.nodeType===1?t.getBoundingClientRect():null}},{key:"hasClass",value:function(t,n){return!!(t&&zo(t)&&qo(n)&&t.nodeType===1)&&t.classList.contains(n.trim())}},{key:"addClass",value:function(t,n){if(t&&zo(t)&&qo(n)&&t.nodeType===1&&(n=n.trim(),!e.hasClass(t,n))){var r=t.className;t.className=r?r+" "+n:n}}},{key:"removeClass",value:function(t,n){if(t&&zo(t)&&qo(n)&&t.nodeType===1&&typeof t.className=="string"){n=n.trim();for(var r=t.className.trim().split(" "),i=r.length-1;i>=0;i--)r[i]=r[i].trim(),r[i]&&r[i]!==n||r.splice(i,1);t.className=r.join(" ")}}},{key:"toggleClass",value:function(t,n,r){t&&zo(t)&&qo(n)&&t.nodeType===1&&t.classList.toggle(n,r)}},{key:"replaceClass",value:function(t,n,r){t&&zo(t)&&qo(n)&&qo(r)&&t.nodeType===1&&(n=n.trim(),r=r.trim(),e.removeClass(t,n),e.addClass(t,r))}},{key:"getScrollTop",value:function(t){var n="scrollTop"in t?t.scrollTop:t.pageYOffset;return Math.max(n,0)}},{key:"setScrollTop",value:function(t,n){"scrollTop"in t?t.scrollTop=n:t.scrollTo(t.scrollX,n)}},{key:"getRootScrollTop",value:function(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}},{key:"setRootScrollTop",value:function(t){e.setScrollTop(window,t),e.setScrollTop(document.body,t)}},{key:"getElementTop",value:function(t,n){if(e.isWindow(t))return 0;var r=n?e.getScrollTop(n):e.getRootScrollTop();return t.getBoundingClientRect().top+r}},{key:"getVisibleHeight",value:function(t){return e.isWindow(t)?t.innerHeight:t.getBoundingClientRect().height}},{key:"isHidden",value:function(t){if(!t)return!1;var n=window.getComputedStyle(t),r=n.display==="none",i=t.offsetParent===null&&n.position!=="fixed";return r||i}},{key:"triggerEvent",value:function(t,n){if("createEvent"in document){var r=document.createEvent("HTMLEvents");r.initEvent(n,!1,!0),t.dispatchEvent(r)}}},{key:"calcAngle",value:function(t,n){var r=t.getBoundingClientRect(),i=r.left+r.width/2,o=r.top+r.height/2,s=Math.abs(i-n.clientX),l=Math.abs(o-n.clientY),c=l/Math.sqrt(Math.pow(s,2)+Math.pow(l,2)),d=Math.acos(c),h=Math.floor(180/(Math.PI/d));return n.clientX>i&&n.clientY>o&&(h=180-h),n.clientX==i&&n.clientY>o&&(h=180),n.clientX>i&&n.clientY==o&&(h=90),n.clientX<i&&n.clientY>o&&(h=180+h),n.clientX<i&&n.clientY==o&&(h=270),n.clientX<i&&n.clientY<o&&(h=360-h),h}},{key:"querySelector",value:function(t,n){return n?n.querySelector(t):document.querySelector(t)}},{key:"createElement",value:function(t){for(var n=document.createElement(t),r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];for(var s=0;s<i.length;s++)i[s]&&n.classList.add(i[s]);return n}},{key:"appendChild",value:function(t){for(var n=0;n<(arguments.length<=1?0:arguments.length-1);n++)t.appendChild(n+1<1||arguments.length<=n+1?void 0:arguments[n+1])}},{key:"getWindow",value:function(t){if(t.toString()!=="[object Window]"){var n=t.ownerDocument;return n&&n.defaultView||window}return t}},{key:"isElement",value:function(t){return t instanceof this.getWindow(t).Element||t instanceof Element}},{key:"isHTMLElement",value:function(t){return t instanceof this.getWindow(t).HTMLElement||t instanceof HTMLElement}},{key:"isShadowRoot",value:function(t){return typeof ShadowRoot<"u"&&(t instanceof this.getWindow(t).ShadowRoot||t instanceof ShadowRoot)}},{key:"getWindowScroll",value:function(t){var n=this.getWindow(t);return{scrollLeft:n.pageXOffset||0,scrollTop:n.pageYOffset||0}}}]),e}(),eA=Math.floor,tA="".replace,nA=/\$([$&'`]|\d\d?|<[^>]*>)/g,rA=/\$([$&'`]|\d\d?)/g,iA=function(e,t,n,r,i,o){var s=n+e.length,l=r.length,c=rA;return i!==void 0&&(i=Jr(i),c=nA),tA.call(o,c,function(d,h){var p;switch(h.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,n);case"'":return t.slice(s);case"<":p=i[h.slice(1,-1)];break;default:var y=+h;if(y===0)return d;if(y>l){var C=eA(y/10);return C===0?d:C<=l?r[C-1]===void 0?h.charAt(1):r[C-1]+h.charAt(1):d}p=r[y-1]}return p===void 0?"":p})},oA=Math.max,sA=Math.min;jm("replace",2,function(e,t,n,r){var i=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,o=r.REPLACE_KEEPS_$0,s=i?"$":"$0";return[function(l,c){var d=yi(this),h=l==null?void 0:l[e];return h!==void 0?h.call(l,d,c):t.call(String(d),l,c)},function(l,c){if(!i&&o||typeof c=="string"&&c.indexOf(s)===-1){var d=n(t,l,this,c);if(d.done)return d.value}var h=En(l),p=String(this),y=typeof c=="function";y||(c=String(c));var C=h.global;if(C){var w=h.unicode;h.lastIndex=0}for(var x=[];;){var O=Tf(h,p);if(O===null||(x.push(O),!C))break;String(O[0])===""&&(h.lastIndex=Vm(p,Jn(h.lastIndex),w))}for(var E,B="",te=0,D=0;D<x.length;D++){O=x[D];for(var we=String(O[0]),m=oA(sA(Ho(O.index),p.length),0),ue=[],I=1;I<O.length;I++)ue.push((E=O[I])===void 0?E:String(E));var A=O.groups;if(y){var P=[we].concat(ue,m,p);A!==void 0&&P.push(A);var j=String(c.apply(void 0,P))}else j=iA(we,p,m,ue,A,c);m>=te&&(B+=p.slice(te,m)+j,te=m+we.length)}return B+p.slice(te)}]}),function(){function e(){Gi(this,e)}return Yi(e,null,[{key:"camelize",value:function(t){return t.replace(/-(\w)/g,function(n,r){return r?r.toUpperCase():""})}},{key:"capitalize",value:function(t){return t.charAt(0).toUpperCase()+t.slice(1)}}]),e}(),function(){function e(){Gi(this,e)}return Yi(e,null,[{key:"_clone",value:function(){}}]),e}();var Ym=Vt("isConcatSpreadable"),aA=Jl>=51||!Nt(function(){var e=[];return e[Ym]=!1,e.concat()[0]!==e}),lA=mf("concat"),uA=function(e){if(!cn(e))return!1;var t=e[Ym];return t!==void 0?!!t:Wo(e)};_n({target:"Array",proto:!0,forced:!aA||!lA},{concat:function(e){var t,n,r,i,o,s=Jr(this),l=Xl(s,0),c=0;for(t=-1,r=arguments.length;t<r;t++)if(uA(o=t===-1?s:arguments[t])){if(c+(i=Jn(o.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<i;n++,c++)n in o&&Ko(l,c,o[n])}else{if(c>=9007199254740991)throw TypeError("Maximum allowed index exceeded");Ko(l,c++,o)}return l.length=c,l}});var Ef,aa=function(e,t,n){if(wf(e),t===void 0)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(r){return e.call(t,r)};case 2:return function(r,i){return e.call(t,r,i)};case 3:return function(r,i,o){return e.call(t,r,i,o)}}return function(){return e.apply(t,arguments)}},Xm=[].push,_i=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,o=e==6,s=e==7,l=e==5||o;return function(c,d,h,p){for(var y,C,w=Jr(c),x=jl(w),O=aa(d,h,3),E=Jn(x.length),B=0,te=p||Xl,D=t?te(c,E):n||s?te(c,0):void 0;E>B;B++)if((l||B in x)&&(C=O(y=x[B],B,w),e))if(t)D[B]=C;else if(C)switch(e){case 3:return!0;case 5:return y;case 6:return B;case 2:Xm.call(D,y)}else switch(e){case 4:return!1;case 7:Xm.call(D,y)}return o?-1:r||i?i:D}},Jm={forEach:_i(0),map:_i(1),filter:_i(2),some:_i(3),every:_i(4),find:_i(5),findIndex:_i(6),filterOut:_i(7)},cA=lr?Object.defineProperties:function(e,t){En(e);for(var n,r=Af(t),i=r.length,o=0;i>o;)Xr.f(e,n=r[o++],t[n]);return e},fA=Vl("document","documentElement"),Zm=cf("IE_PROTO"),Of=function(){},Qm=function(e){return"<script>"+e+"<\/script>"},eu=function(){try{Ef=document.domain&&new ActiveXObject("htmlfile")}catch{}var e,t;eu=Ef?function(r){r.write(Qm("")),r.close();var i=r.parentWindow.Object;return r=null,i}(Ef):((t=um("iframe")).style.display="none",fA.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(Qm("document.F=Object")),e.close(),e.F);for(var n=zl.length;n--;)delete eu.prototype[zl[n]];return eu()};Kl[Zm]=!0;var Lf=Object.create||function(e,t){var n;return e!==null?(Of.prototype=En(e),n=new Of,Of.prototype=null,n[Zm]=e):n=eu(),t===void 0?n:cA(n,t)},If=Vt("unscopables"),Pf=Array.prototype;Pf[If]==null&&Xr.f(Pf,If,{configurable:!0,value:Lf(null)});var Yo=function(e){Pf[If][e]=!0},dA=Jm.find,ev=!0,pA=jo("find");"find"in[]&&Array(1).find(function(){ev=!1}),_n({target:"Array",proto:!0,forced:ev||!pA},{find:function(e){return dA(this,e,arguments.length>1?arguments[1]:void 0)}}),Yo("find");var hA=Jm.findIndex,tv=!0,gA=jo("findIndex");"findIndex"in[]&&Array(1).findIndex(function(){tv=!1}),_n({target:"Array",proto:!0,forced:tv||!gA},{findIndex:function(e){return hA(this,e,arguments.length>1?arguments[1]:void 0)}}),Yo("findIndex");var nv=function(e,t,n,r,i,o,s,l){for(var c,d=i,h=0,p=!!s&&aa(s,l,3);h<r;){if(h in n){if(c=p?p(n[h],h,t):n[h],o>0&&Wo(c))d=nv(e,t,c,Jn(c.length),d,o-1)-1;else{if(d>=9007199254740991)throw TypeError("Exceed the acceptable array length");e[d]=c}d++}h++}return d},mA=nv;_n({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=Jr(this),n=Jn(t.length),r=Xl(t,0);return r.length=mA(r,t,t,n,0,e===void 0?1:Ho(e)),r}});var Df=function(e){var t=e.return;if(t!==void 0)return En(t.call(e)).value},vA=function(e,t,n,r){try{return r?t(En(n)[0],n[1]):t(n)}catch(i){throw Df(e),i}},Xo={},yA=Vt("iterator"),bA=Array.prototype,rv=function(e){return e!==void 0&&(Xo.Array===e||bA[yA]===e)},CA=Vt("iterator"),iv=function(e){if(e!=null)return e[CA]||e["@@iterator"]||Xo[Lm(e)]},ov=Vt("iterator"),sv=!1;try{var _A=0,av={next:function(){return{done:!!_A++}},return:function(){sv=!0}};av[ov]=function(){return this},Array.from(av,function(){throw 2})}catch{}var lv=function(e,t){if(!t&&!sv)return!1;var n=!1;try{var r={};r[ov]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch{}return n},wA=!lv(function(e){Array.from(e)});_n({target:"Array",stat:!0,forced:wA},{from:function(e){var t,n,r,i,o,s,l=Jr(e),c=typeof this=="function"?this:Array,d=arguments.length,h=d>1?arguments[1]:void 0,p=h!==void 0,y=iv(l),C=0;if(p&&(h=aa(h,d>2?arguments[2]:void 0,2)),y==null||c==Array&&rv(y))for(n=new c(t=Jn(l.length));t>C;C++)s=p?h(l[C],C):l[C],Ko(n,C,s);else for(o=(i=y.call(l)).next,n=new c;!(r=o.call(i)).done;C++)s=p?vA(i,h,[r.value,C],!0):r.value,Ko(n,C,s);return n.length=C,n}});var uv=function(e){return function(t,n,r,i){wf(n);var o=Jr(t),s=jl(o),l=Jn(o.length),c=e?l-1:0,d=e?-1:1;if(r<2)for(;;){if(c in s){i=s[c],c+=d;break}if(c+=d,e?c<0:l<=c)throw TypeError("Reduce of empty array with no initial value")}for(;e?c>=0:l>c;c+=d)c in s&&(i=n(i,s[c],c,o));return i}},TA={left:uv(!1),right:uv(!0)},xA=Yr(rn.process)=="process",SA=TA.left,AA=pf("reduce"),kA=jo("reduce",{1:0});_n({target:"Array",proto:!0,forced:!AA||!kA||!xA&&Jl>79&&Jl<83},{reduce:function(e){return SA(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}}),Yo("flat");var Xi,cv,fv,EA=!Nt(function(){return Object.isExtensible(Object.preventExtensions({}))}),dv=rf(function(e){var t=Xr.f,n=uf("meta"),r=0,i=Object.isExtensible||function(){return!0},o=function(l){t(l,n,{value:{objectID:"O"+ ++r,weakData:{}}})},s=e.exports={REQUIRED:!1,fastKey:function(l,c){if(!cn(l))return typeof l=="symbol"?l:(typeof l=="string"?"S":"P")+l;if(!Zt(l,n)){if(!i(l))return"F";if(!c)return"E";o(l)}return l[n].objectID},getWeakData:function(l,c){if(!Zt(l,n)){if(!i(l))return!0;if(!c)return!1;o(l)}return l[n].weakData},onFreeze:function(l){return EA&&s.REQUIRED&&i(l)&&!Zt(l,n)&&o(l),l}};Kl[n]=!0}),la=function(e,t){this.stopped=e,this.result=t},pv=function(e,t,n){var r,i,o,s,l,c,d,h=n&&n.that,p=!(!n||!n.AS_ENTRIES),y=!(!n||!n.IS_ITERATOR),C=!(!n||!n.INTERRUPTED),w=aa(t,h,1+p+C),x=function(E){return r&&Df(r),new la(!0,E)},O=function(E){return p?(En(E),C?w(E[0],E[1],x):w(E[0],E[1])):C?w(E,x):w(E)};if(y)r=e;else{if(typeof(i=iv(e))!="function")throw TypeError("Target is not iterable");if(rv(i)){for(o=0,s=Jn(e.length);s>o;o++)if((l=O(e[o]))&&l instanceof la)return l;return new la(!1)}r=i.call(e)}for(c=r.next;!(d=c.call(r)).done;){try{l=O(d.value)}catch(E){throw Df(r),E}if(typeof l=="object"&&l&&l instanceof la)return l}return new la(!1)},hv=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e},OA=Xr.f,gv=Vt("toStringTag"),Rf=function(e,t,n){e&&!Zt(e=n?e:e.prototype,gv)&&OA(e,gv,{configurable:!0,value:t})},tu=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch{}return function(r,i){return En(r),function(o){if(!cn(o)&&o!==null)throw TypeError("Can't set "+String(o)+" as a prototype")}(i),t?e.call(r,i):r.__proto__=i,r}}():void 0),mv=function(e,t,n){for(var r in t)Ci(e,r,t[r],n);return e},LA=!Nt(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),vv=cf("IE_PROTO"),IA=Object.prototype,nu=LA?Object.getPrototypeOf:function(e){return e=Jr(e),Zt(e,vv)?e[vv]:typeof e.constructor=="function"&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?IA:null},Nf=Vt("iterator"),yv=!1;[].keys&&("next"in(fv=[].keys())?(cv=nu(nu(fv)))!==Object.prototype&&(Xi=cv):yv=!0),(Xi==null||Nt(function(){var e={};return Xi[Nf].call(e)!==e}))&&(Xi={}),Zt(Xi,Nf)||ur(Xi,Nf,function(){return this});var Mf={IteratorPrototype:Xi,BUGGY_SAFARI_ITERATORS:yv},PA=Mf.IteratorPrototype,DA=function(){return this},Ff=Mf.IteratorPrototype,ru=Mf.BUGGY_SAFARI_ITERATORS,ua=Vt("iterator"),RA=function(){return this},$f=function(e,t,n,r,i,o,s){(function(E,B,te){var D=B+" Iterator";E.prototype=Lf(PA,{next:Hl(1,te)}),Rf(E,D,!1),Xo[D]=DA})(n,t,r);var l,c,d,h=function(E){if(E===i&&x)return x;if(!ru&&E in C)return C[E];switch(E){case"keys":case"values":case"entries":return function(){return new n(this,E)}}return function(){return new n(this)}},p=t+" Iterator",y=!1,C=e.prototype,w=C[ua]||C["@@iterator"]||i&&C[i],x=!ru&&w||h(i),O=t=="Array"&&C.entries||w;if(O&&(l=nu(O.call(new e)),Ff!==Object.prototype&&l.next&&(nu(l)!==Ff&&(tu?tu(l,Ff):typeof l[ua]!="function"&&ur(l,ua,RA)),Rf(l,p,!0))),i=="values"&&w&&w.name!=="values"&&(y=!0,x=function(){return w.call(this)}),C[ua]!==x&&ur(C,ua,x),Xo[t]=x,i)if(c={values:h("values"),keys:o?x:h("keys"),entries:h("entries")},s)for(d in c)(ru||y||!(d in C))&&Ci(C,d,c[d]);else _n({target:t,proto:!0,forced:ru||y},c);return c},bv=Vt("species"),NA=Xr.f,Cv=dv.fastKey,_v=bi.set,Bf=bi.getterFor;(function(e,t,n){var r=e.indexOf("Map")!==-1,i=e.indexOf("Weak")!==-1,o=r?"set":"add",s=rn[e],l=s&&s.prototype,c=s,d={},h=function(O){var E=l[O];Ci(l,O,O=="add"?function(B){return E.call(this,B===0?0:B),this}:O=="delete"?function(B){return!(i&&!cn(B))&&E.call(this,B===0?0:B)}:O=="get"?function(B){return i&&!cn(B)?void 0:E.call(this,B===0?0:B)}:O=="has"?function(B){return!(i&&!cn(B))&&E.call(this,B===0?0:B)}:function(B,te){return E.call(this,B===0?0:B,te),this})};if(df(e,typeof s!="function"||!(i||l.forEach&&!Nt(function(){new s().entries().next()}))))c=n.getConstructor(t,e,r,o),dv.REQUIRED=!0;else if(df(e,!0)){var p=new c,y=p[o](i?{}:-0,1)!=p,C=Nt(function(){p.has(1)}),w=lv(function(O){new s(O)}),x=!i&&Nt(function(){for(var O=new s,E=5;E--;)O[o](E,E);return!O.has(-0)});w||((c=t(function(O,E){hv(O,c,e);var B=function(te,D,we){var m,ue;return tu&&typeof(m=D.constructor)=="function"&&m!==we&&cn(ue=m.prototype)&&ue!==we.prototype&&tu(te,ue),te}(new s,O,c);return E!=null&&pv(E,B[o],{that:B,AS_ENTRIES:r}),B})).prototype=l,l.constructor=c),(C||x)&&(h("delete"),h("has"),r&&h("get")),(x||y)&&h(o),i&&l.clear&&delete l.clear}d[e]=c,_n({global:!0,forced:c!=s},d),Rf(c,e),i||n.setStrong(c,e,r)})("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},{getConstructor:function(e,t,n,r){var i=e(function(c,d){hv(c,i,t),_v(c,{type:t,index:Lf(null),first:void 0,last:void 0,size:0}),lr||(c.size=0),d!=null&&pv(d,c[r],{that:c,AS_ENTRIES:n})}),o=Bf(t),s=function(c,d,h){var p,y,C=o(c),w=l(c,d);return w?w.value=h:(C.last=w={index:y=Cv(d,!0),key:d,value:h,previous:p=C.last,next:void 0,removed:!1},C.first||(C.first=w),p&&(p.next=w),lr?C.size++:c.size++,y!=="F"&&(C.index[y]=w)),c},l=function(c,d){var h,p=o(c),y=Cv(d);if(y!=="F")return p.index[y];for(h=p.first;h;h=h.next)if(h.key==d)return h};return mv(i.prototype,{clear:function(){for(var c=o(this),d=c.index,h=c.first;h;)h.removed=!0,h.previous&&(h.previous=h.previous.next=void 0),delete d[h.index],h=h.next;c.first=c.last=void 0,lr?c.size=0:this.size=0},delete:function(c){var d=this,h=o(d),p=l(d,c);if(p){var y=p.next,C=p.previous;delete h.index[p.index],p.removed=!0,C&&(C.next=y),y&&(y.previous=C),h.first==p&&(h.first=y),h.last==p&&(h.last=C),lr?h.size--:d.size--}return!!p},forEach:function(c){for(var d,h=o(this),p=aa(c,arguments.length>1?arguments[1]:void 0,3);d=d?d.next:h.first;)for(p(d.value,d.key,this);d&&d.removed;)d=d.previous},has:function(c){return!!l(this,c)}}),mv(i.prototype,n?{get:function(c){var d=l(this,c);return d&&d.value},set:function(c,d){return s(this,c===0?0:c,d)}}:{add:function(c){return s(this,c=c===0?0:c,c)}}),lr&&NA(i.prototype,"size",{get:function(){return o(this).size}}),i},setStrong:function(e,t,n){var r=t+" Iterator",i=Bf(t),o=Bf(r);$f(e,t,function(s,l){_v(this,{type:r,target:s,state:i(s),kind:l,last:void 0})},function(){for(var s=o(this),l=s.kind,c=s.last;c&&c.removed;)c=c.previous;return s.target&&(s.last=c=c?c.next:s.state.first)?l=="keys"?{value:c.key,done:!1}:l=="values"?{value:c.value,done:!1}:{value:[c.key,c.value],done:!1}:(s.target=void 0,{value:void 0,done:!0})},n?"entries":"values",!n,!0),function(s){var l=Vl(s),c=Xr.f;lr&&l&&!l[bv]&&c(l,bv,{configurable:!0,get:function(){return this}})}(t)}});var MA=Km.charAt,FA=bi.set,$A=bi.getterFor("String Iterator");$f(String,"String",function(e){FA(this,{type:"String Iterator",string:String(e),index:0})},function(){var e,t=$A(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=MA(n,r),t.index+=e.length,{value:e,done:!1})});var wv={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},BA=bi.set,HA=bi.getterFor("Array Iterator"),ca=$f(Array,"Array",function(e,t){BA(this,{type:"Array Iterator",target:$o(e),index:0,kind:t})},function(){var e=HA(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values");Xo.Arguments=Xo.Array,Yo("keys"),Yo("values"),Yo("entries");var Hf=Vt("iterator"),Tv=Vt("toStringTag"),jf=ca.values;for(var Uf in wv){var xv=rn[Uf],Zr=xv&&xv.prototype;if(Zr){if(Zr[Hf]!==jf)try{ur(Zr,Hf,jf)}catch{Zr[Hf]=jf}if(Zr[Tv]||ur(Zr,Tv,Uf),wv[Uf]){for(var Jo in ca)if(Zr[Jo]!==ca[Jo])try{ur(Zr,Jo,ca[Jo])}catch{Zr[Jo]=ca[Jo]}}}}(function(){function e(){Gi(this,e)}return Yi(e,null,[{key:"deduplicate",value:function(t){return Array.from(new Set(t))}},{key:"flat",value:function(t){return t.reduce(function(n,r){var i=Array.isArray(r)?e.flat(r):r;return n.concat(i)},[])}},{key:"find",value:function(t,n){return t.find(n)}},{key:"findIndex",value:function(t,n){return t.findIndex(n)}}]),e})(),function(){function e(){Gi(this,e)}return Yi(e,null,[{key:"today",value:function(){return new Date}}]),e}(),function(){function e(){Gi(this,e)}return Yi(e,null,[{key:"range",value:function(t,n,r){return Math.min(Math.max(t,n),r)}},{key:"clamp",value:function(t,n,r){return n<r?t<n?n:t>r?r:t:t<r?r:t>n?n:t}}]),e}();var jA=typeof global=="object"&&global&&global.Object===Object&&global;const Sv=jA;var UA=typeof self=="object"&&self&&self.Object===Object&&self,WA=Sv||UA||Function("return this")();const Zo=WA;var KA=Zo.Symbol;const iu=KA;var Av=Object.prototype,VA=Av.hasOwnProperty,qA=Av.toString,fa=iu?iu.toStringTag:void 0;function zA(e){var t=VA.call(e,fa),n=e[fa];try{e[fa]=void 0;var r=!0}catch{}var i=qA.call(e);return r&&(t?e[fa]=n:delete e[fa]),i}var GA=Object.prototype,YA=GA.toString;function XA(e){return YA.call(e)}var JA="[object Null]",ZA="[object Undefined]",kv=iu?iu.toStringTag:void 0;function ou(e){return e==null?e===void 0?ZA:JA:kv&&kv in Object(e)?zA(e):XA(e)}function da(e){return e!=null&&typeof e=="object"}var QA=Array.isArray;const Wf=QA;function Ji(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function Ev(e){return e}var ek="[object AsyncFunction]",tk="[object Function]",nk="[object GeneratorFunction]",rk="[object Proxy]";function Kf(e){if(!Ji(e))return!1;var t=ou(e);return t==tk||t==nk||t==ek||t==rk}var ik=Zo["__core-js_shared__"];const Vf=ik;var Ov=function(){var e=/[^.]+$/.exec(Vf&&Vf.keys&&Vf.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function ok(e){return!!Ov&&Ov in e}var sk=Function.prototype,ak=sk.toString;function lk(e){if(e!=null){try{return ak.call(e)}catch{}try{return e+""}catch{}}return""}var uk=/[\\^$.*+?()[\]{}|]/g,ck=/^\[object .+?Constructor\]$/,fk=Function.prototype,dk=Object.prototype,pk=fk.toString,hk=dk.hasOwnProperty,gk=RegExp("^"+pk.call(hk).replace(uk,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function mk(e){if(!Ji(e)||ok(e))return!1;var t=Kf(e)?gk:ck;return t.test(lk(e))}function vk(e,t){return e==null?void 0:e[t]}function qf(e,t){var n=vk(e,t);return mk(n)?n:void 0}var Lv=Object.create,yk=function(){function e(){}return function(t){if(!Ji(t))return{};if(Lv)return Lv(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const bk=yk;function Ck(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function _k(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var wk=800,Tk=16,xk=Date.now;function Sk(e){var t=0,n=0;return function(){var r=xk(),i=Tk-(r-n);if(n=r,i>0){if(++t>=wk)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Ak(e){return function(){return e}}var kk=function(){try{var e=qf(Object,"defineProperty");return e({},"",{}),e}catch{}}();const su=kk;var Ek=su?function(e,t){return su(e,"toString",{configurable:!0,enumerable:!1,value:Ak(t),writable:!0})}:Ev,Ok=Sk(Ek);const Lk=Ok;var Ik=9007199254740991,Pk=/^(?:0|[1-9]\d*)$/;function Iv(e,t){var n=typeof e;return t=t??Ik,!!t&&(n=="number"||n!="symbol"&&Pk.test(e))&&e>-1&&e%1==0&&e<t}function zf(e,t,n){t=="__proto__"&&su?su(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function au(e,t){return e===t||e!==e&&t!==t}var Dk=Object.prototype,Rk=Dk.hasOwnProperty;function Nk(e,t,n){var r=e[t];(!(Rk.call(e,t)&&au(r,n))||n===void 0&&!(t in e))&&zf(e,t,n)}function Mk(e,t,n,r){var i=!n;n||(n={});for(var o=-1,s=t.length;++o<s;){var l=t[o],c=r?r(n[l],e[l],l,n,e):void 0;c===void 0&&(c=e[l]),i?zf(n,l,c):Nk(n,l,c)}return n}var Pv=Math.max;function Fk(e,t,n){return t=Pv(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=Pv(r.length-t,0),s=Array(o);++i<o;)s[i]=r[t+i];i=-1;for(var l=Array(t+1);++i<t;)l[i]=r[i];return l[t]=n(s),Ck(e,this,l)}}function $k(e,t){return Lk(Fk(e,t,Ev),e+"")}var Bk=9007199254740991;function Dv(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Bk}function Gf(e){return e!=null&&Dv(e.length)&&!Kf(e)}function Hk(e,t,n){if(!Ji(n))return!1;var r=typeof t;return(r=="number"?Gf(n)&&Iv(t,n.length):r=="string"&&t in n)?au(n[t],e):!1}function jk(e){return $k(function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(o=e.length>3&&typeof o=="function"?(i--,o):void 0,s&&Hk(n[0],n[1],s)&&(o=i<3?void 0:o,i=1),t=Object(t);++r<i;){var l=n[r];l&&e(t,l,r,o)}return t})}var Uk=Object.prototype;function Rv(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Uk;return e===n}function Wk(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var Kk="[object Arguments]";function Nv(e){return da(e)&&ou(e)==Kk}var Mv=Object.prototype,Vk=Mv.hasOwnProperty,qk=Mv.propertyIsEnumerable,zk=Nv(function(){return arguments}())?Nv:function(e){return da(e)&&Vk.call(e,"callee")&&!qk.call(e,"callee")};const Yf=zk;function Gk(){return!1}var Fv=typeof exports=="object"&&exports&&!exports.nodeType&&exports,$v=Fv&&typeof module=="object"&&module&&!module.nodeType&&module,Yk=$v&&$v.exports===Fv,Bv=Yk?Zo.Buffer:void 0,Xk=Bv?Bv.isBuffer:void 0,Jk=Xk||Gk;const Hv=Jk;var Zk="[object Arguments]",Qk="[object Array]",eE="[object Boolean]",tE="[object Date]",nE="[object Error]",rE="[object Function]",iE="[object Map]",oE="[object Number]",sE="[object Object]",aE="[object RegExp]",lE="[object Set]",uE="[object String]",cE="[object WeakMap]",fE="[object ArrayBuffer]",dE="[object DataView]",pE="[object Float32Array]",hE="[object Float64Array]",gE="[object Int8Array]",mE="[object Int16Array]",vE="[object Int32Array]",yE="[object Uint8Array]",bE="[object Uint8ClampedArray]",CE="[object Uint16Array]",_E="[object Uint32Array]",Mt={};Mt[pE]=Mt[hE]=Mt[gE]=Mt[mE]=Mt[vE]=Mt[yE]=Mt[bE]=Mt[CE]=Mt[_E]=!0,Mt[Zk]=Mt[Qk]=Mt[fE]=Mt[eE]=Mt[dE]=Mt[tE]=Mt[nE]=Mt[rE]=Mt[iE]=Mt[oE]=Mt[sE]=Mt[aE]=Mt[lE]=Mt[uE]=Mt[cE]=!1;function wE(e){return da(e)&&Dv(e.length)&&!!Mt[ou(e)]}function TE(e){return function(t){return e(t)}}var jv=typeof exports=="object"&&exports&&!exports.nodeType&&exports,pa=jv&&typeof module=="object"&&module&&!module.nodeType&&module,xE=pa&&pa.exports===jv,Xf=xE&&Sv.process,SE=function(){try{var e=pa&&pa.require&&pa.require("util").types;return e||Xf&&Xf.binding&&Xf.binding("util")}catch{}}();const Uv=SE;var Wv=Uv&&Uv.isTypedArray,AE=Wv?TE(Wv):wE;const Kv=AE;var kE=Object.prototype,EE=kE.hasOwnProperty;function OE(e,t){var n=Wf(e),r=!n&&Yf(e),i=!n&&!r&&Hv(e),o=!n&&!r&&!i&&Kv(e),s=n||r||i||o,l=s?Wk(e.length,String):[],c=l.length;for(var d in e)(t||EE.call(e,d))&&!(s&&(d=="length"||i&&(d=="offset"||d=="parent")||o&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||Iv(d,c)))&&l.push(d);return l}function LE(e,t){return function(n){return e(t(n))}}function IE(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var PE=Object.prototype,DE=PE.hasOwnProperty;function RE(e){if(!Ji(e))return IE(e);var t=Rv(e),n=[];for(var r in e)r=="constructor"&&(t||!DE.call(e,r))||n.push(r);return n}function Vv(e){return Gf(e)?OE(e,!0):RE(e)}var NE=qf(Object,"create");const ha=NE;function ME(){this.__data__=ha?ha(null):{},this.size=0}function FE(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var $E="__lodash_hash_undefined__",BE=Object.prototype,HE=BE.hasOwnProperty;function jE(e){var t=this.__data__;if(ha){var n=t[e];return n===$E?void 0:n}return HE.call(t,e)?t[e]:void 0}var UE=Object.prototype,WE=UE.hasOwnProperty;function KE(e){var t=this.__data__;return ha?t[e]!==void 0:WE.call(t,e)}var VE="__lodash_hash_undefined__";function qE(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ha&&t===void 0?VE:t,this}function Zi(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Zi.prototype.clear=ME,Zi.prototype.delete=FE,Zi.prototype.get=jE,Zi.prototype.has=KE,Zi.prototype.set=qE;function zE(){this.__data__=[],this.size=0}function lu(e,t){for(var n=e.length;n--;)if(au(e[n][0],t))return n;return-1}var GE=Array.prototype,YE=GE.splice;function XE(e){var t=this.__data__,n=lu(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():YE.call(t,n,1),--this.size,!0}function JE(e){var t=this.__data__,n=lu(t,e);return n<0?void 0:t[n][1]}function ZE(e){return lu(this.__data__,e)>-1}function QE(e,t){var n=this.__data__,r=lu(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Qr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Qr.prototype.clear=zE,Qr.prototype.delete=XE,Qr.prototype.get=JE,Qr.prototype.has=ZE,Qr.prototype.set=QE;var eO=qf(Zo,"Map");const qv=eO;function tO(){this.size=0,this.__data__={hash:new Zi,map:new(qv||Qr),string:new Zi}}function nO(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function uu(e,t){var n=e.__data__;return nO(t)?n[typeof t=="string"?"string":"hash"]:n.map}function rO(e){var t=uu(this,e).delete(e);return this.size-=t?1:0,t}function iO(e){return uu(this,e).get(e)}function oO(e){return uu(this,e).has(e)}function sO(e,t){var n=uu(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Qo(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Qo.prototype.clear=tO,Qo.prototype.delete=rO,Qo.prototype.get=iO,Qo.prototype.has=oO,Qo.prototype.set=sO;var aO=LE(Object.getPrototypeOf,Object);const zv=aO;var lO="[object Object]",uO=Function.prototype,cO=Object.prototype,Gv=uO.toString,fO=cO.hasOwnProperty,dO=Gv.call(Object);function pO(e){if(!da(e)||ou(e)!=lO)return!1;var t=zv(e);if(t===null)return!0;var n=fO.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Gv.call(n)==dO}function hO(){this.__data__=new Qr,this.size=0}function gO(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function mO(e){return this.__data__.get(e)}function vO(e){return this.__data__.has(e)}var yO=200;function bO(e,t){var n=this.__data__;if(n instanceof Qr){var r=n.__data__;if(!qv||r.length<yO-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Qo(r)}return n.set(e,t),this.size=n.size,this}function es(e){var t=this.__data__=new Qr(e);this.size=t.size}es.prototype.clear=hO,es.prototype.delete=gO,es.prototype.get=mO,es.prototype.has=vO,es.prototype.set=bO;var Yv=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Xv=Yv&&typeof module=="object"&&module&&!module.nodeType&&module,CO=Xv&&Xv.exports===Yv,Jv=CO?Zo.Buffer:void 0,Zv=Jv?Jv.allocUnsafe:void 0;function _O(e,t){if(t)return e.slice();var n=e.length,r=Zv?Zv(n):new e.constructor(n);return e.copy(r),r}var wO=Zo.Uint8Array;const Qv=wO;function TO(e){var t=new e.constructor(e.byteLength);return new Qv(t).set(new Qv(e)),t}function xO(e,t){var n=t?TO(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function SO(e){return typeof e.constructor=="function"&&!Rv(e)?bk(zv(e)):{}}function AO(e){return function(t,n,r){for(var i=-1,o=Object(t),s=r(t),l=s.length;l--;){var c=s[e?l:++i];if(n(o[c],c,o)===!1)break}return t}}var kO=AO();const EO=kO;function Jf(e,t,n){(n!==void 0&&!au(e[t],n)||n===void 0&&!(t in e))&&zf(e,t,n)}function OO(e){return da(e)&&Gf(e)}function Zf(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function LO(e){return Mk(e,Vv(e))}function IO(e,t,n,r,i,o,s){var l=Zf(e,n),c=Zf(t,n),d=s.get(c);if(d){Jf(e,n,d);return}var h=o?o(l,c,n+"",e,t,s):void 0,p=h===void 0;if(p){var y=Wf(c),C=!y&&Hv(c),w=!y&&!C&&Kv(c);h=c,y||C||w?Wf(l)?h=l:OO(l)?h=_k(l):C?(p=!1,h=_O(c,!0)):w?(p=!1,h=xO(c,!0)):h=[]:pO(c)||Yf(c)?(h=l,Yf(l)?h=LO(l):(!Ji(l)||Kf(l))&&(h=SO(c))):p=!1}p&&(s.set(c,h),i(h,c,r,o,s),s.delete(c)),Jf(e,n,h)}function ey(e,t,n,r,i){e!==t&&EO(t,function(o,s){if(i||(i=new es),Ji(o))IO(e,t,s,n,ey,r,i);else{var l=r?r(Zf(e,s),o,s+"",e,t,i):void 0;l===void 0&&(l=o),Jf(e,s,l)}},Vv)}var PO=jk(function(e,t,n){ey(e,t,n)});const cu=PO;var DO=Object.defineProperty,RO=(e,t,n)=>t in e?DO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,wn=(e,t,n)=>(RO(e,typeof t!="symbol"?t+"":t,n),n);const Yt=e=>Math.round(e*100)/100;class qt{constructor(t){wn(this,"instance"),wn(this,"alphaValue",0),wn(this,"redValue",0),wn(this,"greenValue",0),wn(this,"blueValue",0),wn(this,"hueValue",0),wn(this,"saturationValue",0),wn(this,"brightnessValue",0),wn(this,"hslSaturationValue",0),wn(this,"lightnessValue",0),wn(this,"initAlpha",()=>{const n=this.instance.getAlpha();this.alphaValue=Math.min(1,n)*100}),wn(this,"initLightness",()=>{const{s:n,l:r}=this.instance.toHsl();this.hslSaturationValue=Yt(n),this.lightnessValue=Yt(r)}),wn(this,"initRgb",()=>{const{r:n,g:r,b:i}=this.instance.toRgb();this.redValue=Yt(n),this.greenValue=Yt(r),this.blueValue=Yt(i)}),wn(this,"initHsb",()=>{const{h:n,s:r,v:i}=this.instance.toHsv();this.hueValue=Math.min(360,Math.ceil(n)),this.saturationValue=Yt(r),this.brightnessValue=Yt(i)}),wn(this,"toHexString",()=>this.instance.toHexString()),wn(this,"toRgbString",()=>this.instance.toRgbString()),this.instance=Pe(t),this.initRgb(),this.initHsb(),this.initLightness(),this.initAlpha()}toString(t){return this.instance.toString(t)}get hex(){return this.instance.toHex()}set hex(t){this.instance=Pe(t),this.initHsb(),this.initRgb(),this.initAlpha(),this.initLightness()}set hue(t){this.saturation===0&&this.brightness===0&&(this.saturationValue=1,this.brightnessValue=1),this.instance=Pe({h:Yt(t),s:this.saturation,v:this.brightness,a:this.alphaValue/100}),this.initRgb(),this.initLightness(),this.hueValue=Yt(t)}get hue(){return this.hueValue}set saturation(t){this.instance=Pe({h:this.hue,s:Yt(t),v:this.brightness,a:this.alphaValue/100}),this.initRgb(),this.initLightness(),this.saturationValue=Yt(t)}get saturation(){return this.saturationValue}set brightness(t){this.instance=Pe({h:this.hue,s:this.saturation,v:Yt(t),a:this.alphaValue/100}),this.initRgb(),this.initLightness(),this.brightnessValue=Yt(t)}get brightness(){return this.brightnessValue}set lightness(t){this.instance=Pe({h:this.hue,s:this.hslSaturationValue,l:Yt(t),a:this.alphaValue/100}),this.initRgb(),this.initHsb(),this.lightnessValue=Yt(t)}get lightness(){return this.lightnessValue}set red(t){const n=this.instance.toRgb();this.instance=Pe({...n,r:Yt(t),a:this.alphaValue/100}),this.initHsb(),this.initLightness(),this.redValue=Yt(t)}get red(){return this.redValue}set green(t){const n=this.instance.toRgb();this.instance=Pe({...n,g:Yt(t),a:this.alphaValue/100}),this.initHsb(),this.initLightness(),this.greenValue=Yt(t)}get green(){return this.greenValue}set blue(t){const n=this.instance.toRgb();this.instance=Pe({...n,b:Yt(t),a:this.alphaValue/100}),this.initHsb(),this.initLightness(),this.blueValue=Yt(t)}get blue(){return this.blueValue}set alpha(t){this.instance.setAlpha(t/100),this.alphaValue=t}get alpha(){return this.alphaValue}get RGB(){return[this.red,this.green,this.blue,this.alpha/100]}get HSB(){return[this.hue,this.saturation,this.brightness,this.alpha/100]}get HSL(){return[this.hue,this.hslSaturationValue,this.lightness,this.alpha/100]}}function ty(e,t,n,r){return`rgba(${[e,t,n,r/100].join(",")})`}const Qf=(e,t,n)=>t<n?e<t?t:e>n?n:e:e<n?n:e>t?t:e,ed="color-history",td=8,cr=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},NO=Dn({name:"Alpha",props:{color:ot.instanceOf(qt),size:ot.oneOf(["small","default"]).def("default")},emits:["change"],setup(e,{emit:t}){const n=Et(null),r=Et(null);let i=e.color||new qt;const o=Pn({red:i.red,green:i.green,blue:i.blue,alpha:i.alpha});rr(()=>e.color,p=>{p&&(i=p,cu(o,{red:p.red,green:p.green,blue:p.blue,alpha:p.alpha}))},{deep:!0});const s=tn(()=>{const p=ty(o.red,o.green,o.blue,0),y=ty(o.red,o.green,o.blue,100);return{background:`linear-gradient(to right, ${p} , ${y})`}}),l=()=>{if(n.value&&r.value){const p=o.alpha/100,y=n.value.getBoundingClientRect(),C=r.value.offsetWidth;return Math.round(p*(y.width-C)+C/2)}return 0},c=tn(()=>({left:l()+"px",top:0})),d=p=>{p.target!==n.value&&h(p)},h=p=>{if(p.stopPropagation(),n.value&&r.value){const y=n.value.getBoundingClientRect(),C=r.value.offsetWidth;let w=p.clientX-y.left;w=Math.max(C/2,w),w=Math.min(w,y.width-C/2);const x=Math.round((w-C/2)/(y.width-C)*100);i.alpha=x,o.alpha=x,t("change",x)}};return Lo(()=>{const p={drag:y=>{h(y)},end:y=>{h(y)}};n.value&&r.value&&Go.triggerDragEvent(n.value,p)}),{barElement:n,cursorElement:r,getCursorStyle:c,getBackgroundStyle:s,onClickSider:d}}}),MO=e=>(yo("data-v-18925ba6"),e=e(),bo(),e),FO=MO(()=>S("div",{class:"vc-alpha-slider__bar-handle"},null,-1)),$O=[FO];function BO(e,t,n,r,i,o){return L(),H("div",{class:at(["vc-alpha-slider","transparent",{"small-slider":e.size==="small"}])},[S("div",{ref:"barElement",class:"vc-alpha-slider__bar",style:bt(e.getBackgroundStyle),onClick:t[0]||(t[0]=(...s)=>e.onClickSider&&e.onClickSider(...s))},[S("div",{class:at(["vc-alpha-slider__bar-pointer",{"small-bar":e.size==="small"}]),ref:"cursorElement",style:bt(e.getCursorStyle)},$O,6)],4)],2)}const nd=cr(NO,[["render",BO],["__scopeId","data-v-18925ba6"]]),HO=[["#fcc02e","#f67c01","#e64a19","#d81b43","#8e24aa","#512da7","#1f87e8","#008781","#05a045"],["#fed835","#fb8c00","#f5511e","#eb1d4e","#9c28b1","#5d35b0","#2097f3","#029688","#4cb050"],["#ffeb3c","#ffa727","#fe5722","#eb4165","#aa47bc","#673bb7","#42a5f6","#26a59a","#83c683"],["#fff176","#ffb74e","#ff8a66","#f1627e","#b968c7","#7986cc","#64b5f6","#80cbc4","#a5d6a7"],["#fff59c","#ffcc80","#ffab91","#fb879e","#cf93d9","#9ea8db","#90caf8","#b2dfdc","#c8e6ca"],["transparent","#ffffff","#dedede","#a9a9a9","#4b4b4b","#353535","#212121","#000000","advance"]],jO=Dn({name:"Palette",emits:["change"],setup(e,{emit:t}){return{palettes:HO,computedBgStyle:n=>n==="transparent"?n:n==="advance"?{}:{background:Pe(n).toRgbString()},onColorChange:n=>{t("change",n)}}}}),UO={class:"vc-compact"},WO=["onClick"];function KO(e,t,n,r,i,o){return L(),H("div",UO,[(L(!0),H(He,null,ht(e.palettes,(s,l)=>(L(),H("div",{key:l,class:"vc-compact__row"},[(L(!0),H(He,null,ht(s,(c,d)=>(L(),H("div",{key:d,class:"vc-compact__color-cube--wrap",onClick:h=>e.onColorChange(c)},[S("div",{class:at(["vc-compact__color_cube",{advance:c==="advance",transparent:c==="transparent"}]),style:bt(e.computedBgStyle(c))},null,6)],8,WO))),128))]))),128))])}const ny=cr(jO,[["render",KO],["__scopeId","data-v-b969fd48"]]),VO=Dn({name:"Board",props:{color:ot.instanceOf(qt),round:ot.bool.def(!1),hide:ot.bool.def(!0)},emits:["change"],setup(e,{emit:t}){var n,r,i;const o=Ah(),s={h:((n=e.color)==null?void 0:n.hue)||0,s:1,v:1},l=new qt(s).toHexString(),c=Pn({hueColor:l,saturation:((r=e.color)==null?void 0:r.saturation)||0,brightness:((i=e.color)==null?void 0:i.brightness)||0}),d=Et(0),h=Et(0),p=Et(),y=Et(),C=tn(()=>({top:d.value+"px",left:h.value+"px"})),w=()=>{if(o){const E=o.vnode.el;h.value=c.saturation*(E==null?void 0:E.clientWidth),d.value=(1-c.brightness)*(E==null?void 0:E.clientHeight)}},x=E=>{E.target!==y.value&&O(E)},O=E=>{if(o){const B=o.vnode.el,te=B==null?void 0:B.getBoundingClientRect();let D=E.clientX-te.left,we=E.clientY-te.top;D=Qf(D,0,te.width),we=Qf(we,0,te.height);const m=D/te.width,ue=Qf(-(we/te.height)+1,0,1);h.value=D,d.value=we,c.saturation=m,c.brightness=ue,t("change",m,ue)}};return Lo(()=>{o&&o.vnode.el&&p.value&&(Go.triggerDragEvent(p.value,{drag:E=>{O(E)},end:E=>{O(E)}}),Ja(()=>{w()}))}),bn(()=>e.color,E=>{cu(c,{hueColor:new qt({h:E.hue,s:1,v:1}).toHexString(),saturation:E.saturation,brightness:E.brightness}),w()},{deep:!0}),{state:c,cursorElement:p,getCursorStyle:C,onClickBoard:x}}}),rd=e=>(yo("data-v-058e5db2"),e=e(),bo(),e),qO=rd(()=>S("div",{class:"vc-saturation__white"},null,-1)),zO=rd(()=>S("div",{class:"vc-saturation__black"},null,-1)),GO=rd(()=>S("div",null,null,-1)),YO=[GO];function XO(e,t,n,r,i,o){return L(),H("div",{ref:"boardElement",class:at(["vc-saturation",{"vc-saturation__chrome":e.round,"vc-saturation__hidden":e.hide}]),style:bt({backgroundColor:e.state.hueColor}),onClick:t[0]||(t[0]=(...s)=>e.onClickBoard&&e.onClickBoard(...s))},[qO,zO,S("div",{class:"vc-saturation__cursor",ref:"cursorElement",style:bt(e.getCursorStyle)},YO,4)],6)}const id=cr(VO,[["render",XO],["__scopeId","data-v-058e5db2"]]),JO=Dn({name:"Hue",props:{color:ot.instanceOf(qt),size:ot.oneOf(["small","default"]).def("default")},emits:["change"],setup(e,{emit:t}){const n=Et(null),r=Et(null);let i=e.color||new qt;const o=Pn({hue:i.hue||0});rr(()=>e.color,h=>{h&&(i=h,cu(o,{hue:i.hue}))},{deep:!0});const s=()=>{if(n.value&&r.value){const h=n.value.getBoundingClientRect(),p=r.value.offsetWidth;return o.hue===360?h.width-p/2:o.hue%360*(h.width-p)/360+p/2}return 0},l=tn(()=>({left:s()+"px",top:0})),c=h=>{h.target!==n.value&&d(h)},d=h=>{if(h.stopPropagation(),n.value&&r.value){const p=n.value.getBoundingClientRect(),y=r.value.offsetWidth;let C=h.clientX-p.left;C=Math.min(C,p.width-y/2),C=Math.max(y/2,C);const w=Math.round((C-y/2)/(p.width-y)*360);i.hue=w,o.hue=w,t("change",w)}};return Lo(()=>{const h={drag:p=>{d(p)},end:p=>{d(p)}};n.value&&r.value&&Go.triggerDragEvent(n.value,h)}),{barElement:n,cursorElement:r,getCursorStyle:l,onClickSider:c}}}),ZO=e=>(yo("data-v-e1a08576"),e=e(),bo(),e),QO=ZO(()=>S("div",{class:"vc-hue-slider__bar-handle"},null,-1)),eL=[QO];function tL(e,t,n,r,i,o){return L(),H("div",{class:at(["vc-hue-slider",{"small-slider":e.size==="small"}])},[S("div",{ref:"barElement",class:"vc-hue-slider__bar",onClick:t[0]||(t[0]=(...s)=>e.onClickSider&&e.onClickSider(...s))},[S("div",{class:at(["vc-hue-slider__bar-pointer",{"small-bar":e.size==="small"}]),ref:"cursorElement",style:bt(e.getCursorStyle)},eL,6)],512)],2)}const od=cr(JO,[["render",tL],["__scopeId","data-v-e1a08576"]]),nL=Dn({name:"Lightness",props:{color:ot.instanceOf(qt),size:ot.oneOf(["small","default"]).def("default")},emits:["change"],setup(e,{emit:t}){const n=Et(null),r=Et(null);let i=e.color||new qt;const[o,s,l]=i.HSL,c=Pn({hue:o,saturation:s,lightness:l});rr(()=>e.color,w=>{if(w){i=w;const[x,O,E]=i.HSL;cu(c,{hue:x,saturation:O,lightness:E})}},{deep:!0});const d=tn(()=>{const w=Pe({h:c.hue,s:c.saturation,l:.8}).toPercentageRgbString(),x=Pe({h:c.hue,s:c.saturation,l:.6}).toPercentageRgbString(),O=Pe({h:c.hue,s:c.saturation,l:.4}).toPercentageRgbString(),E=Pe({h:c.hue,s:c.saturation,l:.2}).toPercentageRgbString();return{background:[`linear-gradient(to right, rgb(255, 255, 255), ${w}, ${x}, ${O}, ${E}, rgb(0, 0, 0))`,`-webkit-linear-gradient(left, rgb(255, 255, 255), ${w}, ${x}, ${O}, ${E}, rgb(0, 0, 0))`,`-moz-linear-gradient(left, rgb(255, 255, 255), ${w}, ${x}, ${O}, ${E}, rgb(0, 0, 0))`,`-ms-linear-gradient(left, rgb(255, 255, 255), ${w}, ${x}, ${O}, ${E}, rgb(0, 0, 0))`]}}),h=()=>{if(n.value&&r.value){const w=c.lightness,x=n.value.getBoundingClientRect(),O=r.value.offsetWidth;return(1-w)*(x.width-O)+O/2}return 0},p=tn(()=>({left:h()+"px",top:0})),y=w=>{w.target!==n.value&&C(w)},C=w=>{if(w.stopPropagation(),n.value&&r.value){const x=n.value.getBoundingClientRect(),O=r.value.offsetWidth;let E=w.clientX-x.left;E=Math.max(O/2,E),E=Math.min(E,x.width-O/2);const B=1-(E-O/2)/(x.width-O);i.lightness=B,t("change",B)}};return Lo(()=>{const w={drag:x=>{C(x)},end:x=>{C(x)}};n.value&&r.value&&Go.triggerDragEvent(n.value,w)}),{barElement:n,cursorElement:r,getCursorStyle:p,getBackgroundStyle:d,onClickSider:y}}}),rL=e=>(yo("data-v-94a50a9e"),e=e(),bo(),e),iL=rL(()=>S("div",{class:"vc-lightness-slider__bar-handle"},null,-1)),oL=[iL];function sL(e,t,n,r,i,o){return L(),H("div",{class:at(["vc-lightness-slider",{"small-slider":e.size==="small"}])},[S("div",{ref:"barElement",class:"vc-lightness-slider__bar",style:bt(e.getBackgroundStyle),onClick:t[0]||(t[0]=(...s)=>e.onClickSider&&e.onClickSider(...s))},[S("div",{class:at(["vc-lightness-slider__bar-pointer",{"small-bar":e.size==="small"}]),ref:"cursorElement",style:bt(e.getCursorStyle)},oL,6)],4)],2)}const ry=cr(nL,[["render",sL],["__scopeId","data-v-94a50a9e"]]),aL=Dn({name:"History",props:{colors:ot.arrayOf(String).def(()=>[]),round:ot.bool.def(!1)},emits:["change"],setup(e,{emit:t}){return{onColorSelect:n=>{t("change",n)}}}}),lL={key:0,class:"vc-colorPicker__record"},uL={class:"color-list"},cL=["onClick"];function fL(e,t,n,r,i,o){return e.colors&&e.colors.length>0?(L(),H("div",lL,[S("div",uL,[(L(!0),H(He,null,ht(e.colors,(s,l)=>(L(),H("div",{key:l,class:at(["color-item","transparent",{"color-item__round":e.round}]),onClick:c=>e.onColorSelect(s)},[S("div",{class:"color-item__display",style:bt({backgroundColor:s})},null,4)],10,cL))),128))])])):Me("",!0)}const sd=cr(aL,[["render",fL],["__scopeId","data-v-0f657238"]]),dL=Dn({name:"Display",props:{color:ot.instanceOf(qt),disableAlpha:ot.bool.def(!1)},emits:["update:color","change"],setup(e,{emit:t}){var n,r,i,o;const s=Et("hex"),l=Pn({color:e.color,hex:(n=e.color)==null?void 0:n.hex,alpha:((r=e.color)==null?void 0:r.alpha)+"%",rgba:(i=e.color)==null?void 0:i.RGB,previewBgColor:(o=e.color)==null?void 0:o.toRgbString()}),c=tn(()=>({background:l.previewBgColor})),d=()=>{s.value=s.value==="rgba"?"hex":"rgba"},h=ji(y=>{if(!y.target.value)return;let C=parseInt(y.target.value.replace("%",""));C>100&&(y.target.value="100%",C=100),C<0&&(y.target.value="0%",C=0),isNaN(C)&&(y.target.value="100%",C=100),!isNaN(C)&&l.color&&(l.color.alpha=C),t("update:color",l.color),t("change",l.color)},300),p=ji((y,C)=>{if(console.log(y.target.value),!!y.target.value){if(s.value==="hex"){const w=y.target.value.replace("#","");Pe(w).isValid()&&l.color&&(l.color.hex=w)}else if(C!==void 0&&l.rgba&&l.color){y.target.value<0&&(y.target.value=0),C===3&&y.target.value>1&&(y.target.value=1),C<3&&y.target.value>255&&(y.target.value=255),l.rgba[C]=Number(y.target.value);const[w,x,O,E]=l.rgba;l.color.hex=Pe({r:w,g:x,b:O}).toHex(),l.color.alpha=Math.floor(E*100)}t("update:color",l.color),t("change",l.color)}},300);return bn(()=>e.color,y=>{y&&(l.color=y,l.alpha=Math.floor(l.color.alpha)+"%",l.hex=l.color.hex,l.rgba=l.color.RGB)},{deep:!0}),bn(()=>l.color,()=>{l.color&&(l.previewBgColor=l.color.toRgbString())},{deep:!0}),{state:l,getBgColorStyle:c,inputType:s,onInputTypeChange:d,onAlphaBlur:h,onInputChange:p}}}),pL={class:"vc-display"},hL={class:"vc-current-color vc-transparent"},gL={key:0,style:{display:"flex",flex:"1",gap:"4px",height:"100%"}},mL={class:"vc-color-input"},vL=["value"],yL={key:0,class:"vc-alpha-input"},bL=["value"],CL={key:1,style:{display:"flex",flex:"1",gap:"4px",height:"100%"}},_L=["value","onInput"];function wL(e,t,n,r,i,o){return L(),H("div",pL,[S("div",hL,[S("div",{class:"color-cube",style:bt(e.getBgColorStyle)},null,4)]),e.inputType==="hex"?(L(),H("div",gL,[S("div",mL,[S("input",{value:e.state.hex,onInput:t[0]||(t[0]=(...s)=>e.onInputChange&&e.onInputChange(...s))},null,40,vL)]),e.disableAlpha?Me("",!0):(L(),H("div",yL,[S("input",{class:"vc-alpha-input__inner",value:e.state.alpha,onInput:t[1]||(t[1]=(...s)=>e.onAlphaBlur&&e.onAlphaBlur(...s))},null,40,bL)]))])):e.state.rgba?(L(),H("div",CL,[(L(!0),H(He,null,ht(e.state.rgba,(s,l)=>(L(),H("div",{class:"vc-rgb-input",key:l},[S("div",null,[S("input",{value:s,onInput:c=>e.onInputChange(c,l)},null,40,_L)]),S("div",null,ye(["R","G","B","A"][l]),1)]))),128))])):Me("",!0),S("div",{class:"vc-input-toggle",onClick:t[2]||(t[2]=(...s)=>e.onInputTypeChange&&e.onInputTypeChange(...s))})])}const ad=cr(dL,[["render",wL],["__scopeId","data-v-f6f511ec"]]),TL=Dn({name:"FkColorPicker",components:{Display:ad,Alpha:nd,Palette:ny,Board:id,Hue:od,Lightness:ry,History:sd},props:{color:ot.instanceOf(qt),disableHistory:ot.bool.def(!1),roundHistory:ot.bool.def(!1),disableAlpha:ot.bool.def(!1)},emits:["update:color","change","advanceChange"],setup(e,{emit:t}){const n=e.color||new qt,r=Pn({color:n,hex:n.toHexString(),rgb:n.toRgbString()}),i=Et(!1),o=tn(()=>({background:r.rgb})),s=()=>{i.value=!1,t("advanceChange",!1)},l=qc(ed,[],{}),c=ji(()=>{if(e.disableHistory)return;const x=r.color.toRgbString();if(l.value=l.value.filter(O=>!Pe.equals(O,x)),!l.value.includes(x)){for(;l.value.length>td;)l.value.pop();l.value.unshift(x)}},500),d=x=>{x==="advance"?(i.value=!0,t("advanceChange",!0)):(r.color.hex=x,t("advanceChange",!1))},h=x=>{r.color.alpha=x},p=x=>{r.color.hue=x},y=(x,O)=>{r.color.saturation=x,r.color.brightness=O},C=x=>{r.color.lightness=x},w=x=>{const O=x.target.value.replace("#","");Pe(O).isValid()&&(r.color.hex=O)};return bn(()=>e.color,x=>{x&&(r.color=x)},{deep:!0}),bn(()=>r.color,()=>{r.hex=r.color.hex,r.rgb=r.color.toRgbString(),c(),t("update:color",r.color),t("change",r.color)},{deep:!0}),{state:r,advancePanelShow:i,onBack:s,onCompactChange:d,onAlphaChange:h,onHueChange:p,onBoardChange:y,onLightChange:C,onInputChange:w,previewStyle:o,historyColors:l}}}),xL=e=>(yo("data-v-0d5bef46"),e=e(),bo(),e),SL={class:"vc-fk-colorPicker"},AL={class:"vc-fk-colorPicker__inner"},kL={class:"vc-fk-colorPicker__header"},EL=xL(()=>S("div",{class:"back"},null,-1)),OL=[EL];function LL(e,t,n,r,i,o){const s=lt("Palette"),l=lt("Board"),c=lt("Hue"),d=lt("Lightness"),h=lt("Alpha"),p=lt("Display"),y=lt("History");return L(),H("div",SL,[S("div",AL,[S("div",kL,[e.advancePanelShow?(L(),H("span",{key:0,style:{cursor:"pointer"},onClick:t[0]||(t[0]=(...C)=>e.onBack&&e.onBack(...C))},OL)):Me("",!0)]),e.advancePanelShow?Me("",!0):(L(),Ze(s,{key:0,onChange:e.onCompactChange},null,8,["onChange"])),e.advancePanelShow?(L(),Ze(l,{key:1,color:e.state.color,onChange:e.onBoardChange},null,8,["color","onChange"])):Me("",!0),e.advancePanelShow?(L(),Ze(c,{key:2,color:e.state.color,onChange:e.onHueChange},null,8,["color","onChange"])):Me("",!0),e.advancePanelShow?Me("",!0):(L(),Ze(d,{key:3,color:e.state.color,onChange:e.onLightChange},null,8,["color","onChange"])),e.disableAlpha?Me("",!0):(L(),Ze(h,{key:4,color:e.state.color,onChange:e.onAlphaChange},null,8,["color","onChange"])),xe(p,{color:e.state.color,"disable-alpha":e.disableAlpha},null,8,["color","disable-alpha"]),e.disableHistory?Me("",!0):(L(),Ze(y,{key:5,round:e.roundHistory,colors:e.historyColors,onChange:e.onCompactChange},null,8,["round","colors","onChange"]))])])}const iy=cr(TL,[["render",LL],["__scopeId","data-v-0d5bef46"]]),IL=Dn({name:"ChromeColorPicker",components:{Display:ad,Alpha:nd,Board:id,Hue:od,History:sd},props:{color:ot.instanceOf(qt),disableHistory:ot.bool.def(!1),roundHistory:ot.bool.def(!1),disableAlpha:ot.bool.def(!1)},emits:["update:color","change"],setup(e,{emit:t}){const n=e.color||new qt,r=Pn({color:n,hex:n.toHexString(),rgb:n.toRgbString()}),i=tn(()=>({background:r.rgb})),o=qc(ed,[],{}),s=ji(()=>{if(e.disableHistory)return;const p=r.color.toRgbString();if(o.value=o.value.filter(y=>!Pe.equals(y,p)),!o.value.includes(p)){for(;o.value.length>td;)o.value.pop();o.value.unshift(p)}},500),l=p=>{r.color.alpha=p},c=p=>{r.color.hue=p},d=(p,y)=>{r.color.saturation=p,r.color.brightness=y},h=p=>{p!=="advance"&&(r.color.hex=p)};return bn(()=>e.color,p=>{p&&(r.color=p)},{deep:!0}),bn(()=>r.color,()=>{r.hex=r.color.hex,r.rgb=r.color.toRgbString(),s(),t("update:color",r.color),t("change",r.color)},{deep:!0}),{state:r,previewStyle:i,historyColors:o,onAlphaChange:l,onHueChange:c,onBoardChange:d,onCompactChange:h}}}),PL={class:"vc-chrome-colorPicker"},DL={class:"vc-chrome-colorPicker-body"},RL={class:"chrome-controls"},NL={class:"chrome-sliders"};function ML(e,t,n,r,i,o){const s=lt("Board"),l=lt("Hue"),c=lt("Alpha"),d=lt("Display"),h=lt("History");return L(),H("div",PL,[xe(s,{round:!0,hide:!1,color:e.state.color,onChange:e.onBoardChange},null,8,["color","onChange"]),S("div",DL,[S("div",RL,[S("div",NL,[xe(l,{size:"small",color:e.state.color,onChange:e.onHueChange},null,8,["color","onChange"]),e.disableAlpha?Me("",!0):(L(),Ze(c,{key:0,size:"small",color:e.state.color,onChange:e.onAlphaChange},null,8,["color","onChange"]))])]),xe(d,{color:e.state.color,"disable-alpha":e.disableAlpha},null,8,["color","disable-alpha"]),e.disableHistory?Me("",!0):(L(),Ze(h,{key:0,round:e.roundHistory,colors:e.historyColors,onChange:e.onCompactChange},null,8,["round","colors","onChange"]))])])}const oy=cr(IL,[["render",ML],["__scopeId","data-v-33636434"]]),ld="Vue3ColorPickerProvider",FL=(e,t)=>{const n=e.getBoundingClientRect(),r=n.left+n.width/2,i=n.top+n.height/2,o=Math.abs(r-t.clientX),s=Math.abs(i-t.clientY),l=Math.sqrt(Math.pow(o,2)+Math.pow(s,2)),c=s/l,d=Math.acos(c);let h=Math.floor(180/(Math.PI/d));return t.clientX>r&&t.clientY>i&&(h=180-h),t.clientX==r&&t.clientY>i&&(h=180),t.clientX>r&&t.clientY==i&&(h=90),t.clientX<r&&t.clientY>i&&(h=180+h),t.clientX<r&&t.clientY==i&&(h=270),t.clientX<r&&t.clientY<i&&(h=360-h),h};let ud=!1;const $L=(e,t)=>{const n=function(i){var o;(o=t.drag)==null||o.call(t,i)},r=function(i){var o;document.removeEventListener("mousemove",n,!1),document.removeEventListener("mouseup",r,!1),document.onselectstart=null,document.ondragstart=null,ud=!1,(o=t.end)==null||o.call(t,i)};e&&e.addEventListener("mousedown",i=>{var o;ud||(document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",n,!1),document.addEventListener("mouseup",r,!1),ud=!0,(o=t.start)==null||o.call(t,i))})},BL={angle:{type:Number,default:0},size:{type:Number,default:16,validator:e=>e>=16},borderWidth:{type:Number,default:1,validator:e=>e>=1},borderColor:{type:String,default:"#666"}},HL=Dn({name:"Angle",props:BL,emits:["update:angle","change"],setup(e,{emit:t}){const n=Et(null),r=Et(0);rr(()=>e.angle,l=>{r.value=l});const i=()=>{let l=Number(r.value);isNaN(l)||(l=l>360||l<0?e.angle:l,r.value=l===360?0:l,t("update:angle",r.value),t("change",r.value))},o=tn(()=>({width:e.size+"px",height:e.size+"px",borderWidth:e.borderWidth+"px",borderColor:e.borderColor,transform:`rotate(${r.value}deg)`})),s=l=>{n.value&&(r.value=FL(n.value,l)%360,i())};return uc(()=>{const l={drag:c=>{s(c)},end:c=>{s(c)}};n.value&&$L(n.value,l)}),()=>xe("div",{class:"bee-angle"},[xe("div",{class:"bee-angle__round",ref:n,style:o.value},null)])}}),jL=Dn({name:"GradientColorPicker",components:{Angle:HL,Display:ad,Alpha:nd,Palette:ny,Board:id,Hue:od,Lightness:ry,History:sd},props:{startColor:ot.instanceOf(qt).isRequired,endColor:ot.instanceOf(qt).isRequired,startColorStop:ot.number.def(0),endColorStop:ot.number.def(100),angle:ot.number.def(0),type:ot.oneOf(["linear","radial"]).def("linear"),disableHistory:ot.bool.def(!1),roundHistory:ot.bool.def(!1),disableAlpha:ot.bool.def(!1),pickerType:ot.oneOf(["fk","chrome"]).def("fk")},emits:["update:startColor","update:endColor","update:angle","update:startColorStop","update:endColorStop","startColorChange","endColorChange","advanceChange","angleChange","startColorStopChange","endColorStopChange","typeChange"],setup(e,{emit:t}){const n=Pn({startActive:!0,startColor:e.startColor,endColor:e.endColor,startColorStop:e.startColorStop,endColorStop:e.endColorStop,angle:e.angle,type:e.type,startColorRgba:e.startColor.toRgbString(),endColorRgba:e.endColor.toRgbString()}),r=Co(ld),i=Et(e.pickerType==="chrome"),o=Et(),s=Et(),l=Et();rr(()=>[e.startColor,e.endColor,e.angle],j=>{n.startColor=j[0],n.endColor=j[1],n.angle=j[2]}),rr(()=>e.type,j=>{n.type=j});const c=tn({get:()=>n.startActive?n.startColor:n.endColor,set:j=>{if(n.startActive){n.startColor=j;return}n.endColor=j}}),d=tn(()=>{if(l.value&&o.value){const j=n.startColorStop/100,Q=l.value.getBoundingClientRect(),X=o.value.offsetWidth;return Math.round(j*(Q.width-X)+X/2)}return 0}),h=tn(()=>{if(l.value&&s.value){const j=n.endColorStop/100,Q=l.value.getBoundingClientRect(),X=s.value.offsetWidth;return Math.round(j*(Q.width-X)+X/2)}return 0}),p=tn(()=>{let j=`background: linear-gradient(${n.angle}deg, ${n.startColorRgba} ${n.startColorStop}%, ${n.endColorRgba} ${n.endColorStop}%)`;return n.type==="radial"&&(j=`background: radial-gradient(circle, ${n.startColorRgba} ${n.startColorStop}%, ${n.endColorRgba} ${n.endColorStop}%)`),j}),y=j=>{var Q;if(n.startActive=!0,l.value&&o.value){const X=(Q=l.value)==null?void 0:Q.getBoundingClientRect();let ve=j.clientX-X.left;ve=Math.max(o.value.offsetWidth/2,ve),ve=Math.min(ve,X.width-o.value.offsetWidth/2),n.startColorStop=Math.round((ve-o.value.offsetWidth/2)/(X.width-o.value.offsetWidth)*100),t("update:startColorStop",n.startColorStop),t("startColorStopChange",n.startColorStop)}},C=j=>{var Q;if(n.startActive=!1,l.value&&s.value){const X=(Q=l.value)==null?void 0:Q.getBoundingClientRect();let ve=j.clientX-X.left;ve=Math.max(s.value.offsetWidth/2,ve),ve=Math.min(ve,X.width-s.value.offsetWidth/2),n.endColorStop=Math.round((ve-s.value.offsetWidth/2)/(X.width-s.value.offsetWidth)*100),t("update:endColorStop",n.endColorStop),t("endColorStopChange",n.endColorStop)}},w=j=>{const Q=j.target,X=parseInt(Q.value.replace("°",""));isNaN(X)||(n.angle=X%360),t("update:angle",n.angle),t("angleChange",n.angle)},x=j=>{n.angle=j,t("update:angle",n.angle),t("angleChange",n.angle)},O=j=>{j==="advance"?(i.value=!0,t("advanceChange",!0)):(c.value.hex=j,t("advanceChange",!1)),m()},E=j=>{c.value.alpha=j,m()},B=j=>{c.value.hue=j,m()},te=(j,Q)=>{c.value.saturation=j,c.value.brightness=Q,m()},D=j=>{c.value.lightness=j,m()},we=()=>{m()},m=()=>{n.startActive?(t("update:startColor",n.startColor),t("startColorChange",n.startColor)):(t("update:endColor",n.endColor),t("endColorChange",n.endColor))},ue=()=>{i.value=!1,t("advanceChange",!1)},I=()=>{n.type=n.type==="linear"?"radial":"linear",t("typeChange",n.type)},A=qc(ed,[],{}),P=ji(()=>{if(e.disableHistory)return;const j=c.value.toRgbString();if(A.value=A.value.filter(Q=>!Pe.equals(Q,j)),!A.value.includes(j)){for(;A.value.length>td;)A.value.pop();A.value.unshift(j)}},500);return Lo(()=>{s.value&&o.value&&(Go.triggerDragEvent(s.value,{drag:j=>{C(j)},end:j=>{C(j)}}),Go.triggerDragEvent(o.value,{drag:j=>{y(j)},end:j=>{y(j)}}))}),bn(()=>n.startColor,j=>{n.startColorRgba=j.toRgbString()},{deep:!0}),bn(()=>n.endColor,j=>{n.endColorRgba=j.toRgbString()},{deep:!0}),bn(()=>c.value,()=>{P()},{deep:!0}),{startGradientRef:o,stopGradientRef:s,colorRangeRef:l,state:n,currentColor:c,getStartColorLeft:d,getEndColorLeft:h,gradientBg:p,advancePanelShow:i,onDegreeBlur:w,onCompactChange:O,onAlphaChange:E,onHueChange:B,onBoardChange:te,onLightChange:D,historyColors:A,onBack:ue,onDegreeChange:x,onDisplayChange:we,onTypeChange:I,lang:r==null?void 0:r.lang}}}),sy=e=>(yo("data-v-1e7e32e5"),e=e(),bo(),e),UL={class:"vc-gradient-picker"},WL={class:"vc-gradient-picker__header"},KL={class:"vc-gradient__types"},VL={class:"vc-gradient-picker__body"},qL={class:"vc-color-range",ref:"colorRangeRef"},zL={class:"vc-color-range__container"},GL={class:"vc-gradient__stop__container"},YL=["title"],XL=sy(()=>S("span",{class:"vc-gradient__stop--inner"},null,-1)),JL=[XL],ZL=["title"],QL=sy(()=>S("span",{class:"vc-gradient__stop--inner"},null,-1)),eI=[QL],tI={class:"vc-picker-degree-input vc-degree-input"},nI={class:"vc-degree-input__control"},rI=["value"],iI={class:"vc-degree-input__panel"},oI={class:"vc-degree-input__disk"};function sI(e,t,n,r,i,o){var s,l;const c=lt("Angle"),d=lt("Board"),h=lt("Hue"),p=lt("Palette"),y=lt("Lightness"),C=lt("Alpha"),w=lt("Display"),x=lt("History");return L(),H("div",UL,[S("div",WL,[S("div",null,[Te(S("div",{class:"back",style:{cursor:"pointer"},onClick:t[0]||(t[0]=(...O)=>e.onBack&&e.onBack(...O))},null,512),[[Ot,e.pickerType==="fk"&&e.advancePanelShow]])]),S("div",KL,[(L(),H(He,null,ht(["linear","radial"],O=>S("div",{class:at(["vc-gradient__type",{active:e.state.type===O}]),key:O,onClick:t[1]||(t[1]=(...E)=>e.onTypeChange&&e.onTypeChange(...E))},ye(e.lang?e.lang[O]:O),3)),64))])]),S("div",VL,[S("div",qL,[S("div",zL,[S("div",{class:"vc-background",style:bt(e.gradientBg)},null,4),S("div",GL,[S("div",{class:at(["vc-gradient__stop",{"vc-gradient__stop--current":e.state.startActive}]),ref:"startGradientRef",title:(s=e.lang)==null?void 0:s.start,style:bt({left:e.getStartColorLeft+"px"})},JL,14,YL),S("div",{class:at(["vc-gradient__stop",{"vc-gradient__stop--current":!e.state.startActive}]),ref:"stopGradientRef",title:(l=e.lang)==null?void 0:l.end,style:bt({left:e.getEndColorLeft+"px"})},eI,14,ZL)])])],512),S("div",tI,[S("div",nI,[S("input",{value:e.state.angle,onBlur:t[2]||(t[2]=(...O)=>e.onDegreeBlur&&e.onDegreeBlur(...O))},null,40,rI),Xt("deg ")]),S("div",iI,[S("div",oI,[xe(c,{angle:e.state.angle,"onUpdate:angle":t[3]||(t[3]=O=>e.state.angle=O),size:40,onChange:e.onDegreeChange},null,8,["angle","onChange"])])])])]),e.advancePanelShow?(L(),Ze(d,{key:0,color:e.currentColor,onChange:e.onBoardChange},null,8,["color","onChange"])):Me("",!0),e.advancePanelShow?(L(),Ze(h,{key:1,color:e.currentColor,onChange:e.onHueChange},null,8,["color","onChange"])):Me("",!0),e.advancePanelShow?Me("",!0):(L(),Ze(p,{key:2,onChange:e.onCompactChange},null,8,["onChange"])),e.advancePanelShow?Me("",!0):(L(),Ze(y,{key:3,color:e.currentColor,onChange:e.onLightChange},null,8,["color","onChange"])),e.disableAlpha?Me("",!0):(L(),Ze(C,{key:4,color:e.currentColor,onChange:e.onAlphaChange},null,8,["color","onChange"])),xe(w,{color:e.currentColor,"disable-alpha":e.disableAlpha,onChange:e.onDisplayChange},null,8,["color","disable-alpha","onChange"]),e.disableHistory?Me("",!0):(L(),Ze(x,{key:5,round:e.roundHistory,colors:e.historyColors,onChange:e.onCompactChange},null,8,["round","colors","onChange"]))])}const ay=cr(jL,[["render",sI],["__scopeId","data-v-1e7e32e5"]]),aI=Dn({name:"WrapContainer",props:{theme:ot.oneOf(["white","black"]).def("white"),showTab:ot.bool.def(!1),activeKey:ot.oneOf(["pure","gradient"]).def("pure")},emits:["update:activeKey","change"],setup(e,{emit:t}){const n=Pn({activeKey:e.activeKey}),r=Co(ld),i=o=>{n.activeKey=o,t("update:activeKey",o),t("change",o)};return bn(()=>e.activeKey,o=>{n.activeKey=o}),{state:n,onActiveKeyChange:i,lang:r==null?void 0:r.lang}}}),lI={class:"vc-colorpicker--container"},uI={key:0,class:"vc-colorpicker--tabs"},cI={class:"vc-colorpicker--tabs__inner"},fI={class:"vc-btn__content"},dI={class:"vc-btn__content"};function pI(e,t,n,r,i,o){var s,l;return L(),H("div",{class:at(["vc-colorpicker",e.theme])},[S("div",lI,[e.showTab?(L(),H("div",uI,[S("div",cI,[S("div",{class:at(["vc-colorpicker--tabs__btn",{"vc-btn-active":e.state.activeKey==="pure"}]),onClick:t[0]||(t[0]=c=>e.onActiveKeyChange("pure"))},[S("button",null,[S("div",fI,ye((s=e.lang)==null?void 0:s.pure),1)])],2),S("div",{class:at(["vc-colorpicker--tabs__btn",{"vc-btn-active":e.state.activeKey==="gradient"}]),onClick:t[1]||(t[1]=c=>e.onActiveKeyChange("gradient"))},[S("button",null,[S("div",dI,ye((l=e.lang)==null?void 0:l.gradient),1)])],2),S("div",{class:"vc-colorpicker--tabs__bg",style:bt({width:"50%",left:`calc(${e.state.activeKey==="gradient"?50:0}%)`})},null,4)])])):Me("",!0),r_(e.$slots,"default",{},void 0,!0)])],2)}const hI=cr(aI,[["render",pI],["__scopeId","data-v-0492277d"]]),gI={start:"Start",end:"End",pure:"Pure",gradient:"Gradient",linear:"linear",radial:"radial"},mI={start:"开始",end:"结束",pure:"纯色",gradient:"渐变",linear:"线性",radial:"径向"},vI={En:gI,"ZH-cn":mI},yI={isWidget:ot.bool.def(!1),pickerType:ot.oneOf(["fk","chrome"]).def("fk"),shape:ot.oneOf(["circle","square"]).def("square"),pureColor:{type:[String,Object],default:"#000000"},gradientColor:ot.string.def("linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(0, 0, 0, 1) 100%)"),format:{type:String,default:"rgb"},disableAlpha:ot.bool.def(!1),disableHistory:ot.bool.def(!1),roundHistory:ot.bool.def(!1),useType:ot.oneOf(["pure","gradient","both"]).def("pure"),activeKey:ot.oneOf(["pure","gradient"]).def("pure"),lang:{type:String,default:"ZH-cn"},zIndex:ot.number.def(9999),pickerContainer:{type:String||HTMLElement,default:"body"},debounce:ot.number.def(100),theme:ot.oneOf(["white","black"]).def("white")},bI=Dn({name:"ColorPicker",components:{FkColorPicker:iy,ChromeColorPicker:oy,GradientColorPicker:ay,WrapContainer:hI},inheritAttrs:!1,props:yI,emits:["update:pureColor","pureColorChange","update:gradientColor","gradientColorChange","update:activeKey","activeKeyChange"],setup(e,{emit:t}){Jp(ld,{lang:tn(()=>vI[e.lang||"ZH-cn"])});const n=Pn({pureColor:e.pureColor||"",activeKey:e.useType==="gradient"?"gradient":e.activeKey,isAdvanceMode:!1}),r=new qt("#000"),i=new qt("#000"),o=new qt(n.pureColor),s=Pn({startColor:r,endColor:i,startColorStop:0,endColorStop:100,angle:0,type:"linear",gradientColor:e.gradientColor}),l=Et(o),c=Et(!1),d=Et(null),h=Et(null);let p=null;const y=tn(()=>({background:n.activeKey!=="gradient"?Pe(n.pureColor).toRgbString():s.gradientColor})),C=tn(()=>n.activeKey==="gradient"?ay.name:e.pickerType==="fk"?iy.name:oy.name),w=A=>{n.isAdvanceMode=A},x=tn(()=>{const A={disableAlpha:e.disableAlpha,disableHistory:e.disableHistory,roundHistory:e.roundHistory,pickerType:e.pickerType};return n.activeKey==="gradient"?{...A,startColor:s.startColor,endColor:s.endColor,angle:s.angle,type:s.type,startColorStop:s.startColorStop,endColorStop:s.endColorStop,onStartColorChange:P=>{s.startColor=P,te()},onEndColorChange:P=>{s.endColor=P,te()},onStartColorStopChange:P=>{s.startColorStop=P,te()},onEndColorStopChange:P=>{s.endColorStop=P,te()},onAngleChange:P=>{s.angle=P,te()},onTypeChange:P=>{s.type=P,te()},onAdvanceChange:w}:{...A,disableAlpha:e.disableAlpha,disableHistory:e.disableHistory,roundHistory:e.roundHistory,color:l.value,onChange:m,onAdvanceChange:w}}),O=()=>{c.value=!0,p?p.update():we()},E=()=>{c.value=!1},B=()=>{var A,P,j,Q;try{const[X]=iT(s.gradientColor);if(X&&X.type.includes("gradient")&&X.colorStops.length>=2){const ve=X.colorStops[0],je=X.colorStops[1];s.startColorStop=Number((A=ve.length)==null?void 0:A.value)||0,s.endColorStop=Number((P=je.length)==null?void 0:P.value)||0,X.type==="linear-gradient"&&((j=X.orientation)==null?void 0:j.type)==="angular"&&(s.angle=Number((Q=X.orientation)==null?void 0:Q.value)||0),s.type=X.type.split("-")[0];const[Re,q,ie,ce]=ve.value,[nt,Ve,ne,he]=je.value;s.startColor=new qt({r:Number(Re),g:Number(q),b:Number(ie),a:Number(ce)}),s.endColor=new qt({r:Number(nt),g:Number(Ve),b:Number(ne),a:Number(he)})}}catch(X){console.log(`[Parse Color]: ${X}`)}},te=ji(()=>{const A=D();try{s.gradientColor=oT(A),t("update:gradientColor",s.gradientColor),t("gradientColorChange",s.gradientColor)}catch(P){console.log(P)}},e.debounce),D=()=>{const A=[],P=s.startColor.RGB.map(X=>X.toString()),j=s.endColor.RGB.map(X=>X.toString()),Q=[{type:"rgba",value:[P[0],P[1],P[2],P[3]],length:{value:s.startColorStop+"",type:"%"}},{type:"rgba",value:[j[0],j[1],j[2],j[3]],length:{value:s.endColorStop+"",type:"%"}}];return s.type==="linear"?A.push({type:"linear-gradient",orientation:{type:"angular",value:s.angle+""},colorStops:Q}):s.type==="radial"&&A.push({type:"radial-gradient",orientation:[{type:"shape",value:"circle"}],colorStops:Q}),A},we=()=>{d.value&&h.value&&(p=Jg(d.value,h.value,{placement:"auto",modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"flip",options:{allowedAutoPlacements:["top","bottom","left","right"],rootBoundary:"viewport"}}]}))},m=A=>{l.value=A,n.pureColor=A.toString(e.format),ue()},ue=ji(()=>{t("update:pureColor",n.pureColor),t("pureColorChange",n.pureColor)},e.debounce);Gw(h,()=>{E()});const I=A=>{n.activeKey=A,t("update:activeKey",A),t("activeKeyChange",A)};return Lo(()=>{B()}),bn(()=>e.gradientColor,A=>{A!=s.gradientColor&&(s.gradientColor=A)}),bn(()=>s.gradientColor,()=>{B()}),bn(()=>e.activeKey,A=>{n.activeKey=A}),bn(()=>e.useType,A=>{n.activeKey!=="gradient"&&A==="gradient"?n.activeKey="gradient":n.activeKey="pure"}),bn(()=>e.pureColor,A=>{Pe.equals(A,n.pureColor)||(n.pureColor=A,l.value=new qt(A))},{deep:!0}),{colorCubeRef:d,pickerRef:h,showPicker:c,colorInstance:l,getBgColorStyle:y,onColorChange:m,onShowPicker:O,onActiveKeyChange:I,getComponentName:C,getBindArgs:x,state:n}}});function CI(e,t,n,r,i,o){const s=lt("WrapContainer");return L(),H(He,null,[e.isWidget?(L(),Ze(s,{key:0,"active-key":e.state.activeKey,"onUpdate:activeKey":t[0]||(t[0]=l=>e.state.activeKey=l),"show-tab":e.useType==="both",onChange:e.onActiveKeyChange,style:bt({zIndex:e.zIndex}),theme:e.theme},{default:ac(()=>[(L(),Ze(ih(e.getComponentName),ul({key:e.getComponentName},e.getBindArgs),null,16))]),_:1},8,["active-key","show-tab","onChange","style","theme"])):Me("",!0),e.isWidget?Me("",!0):(L(),H(He,{key:1},[S("div",{class:at(["vc-color-wrap transparent",{round:e.shape==="circle"}]),ref:"colorCubeRef"},[S("div",{class:"current-color",style:bt(e.getBgColorStyle),onClick:t[1]||(t[1]=(...l)=>e.onShowPicker&&e.onShowPicker(...l))},null,4)],2),(L(),Ze(T_,{to:e.pickerContainer},[Te(S("div",{ref:"pickerRef",style:bt({zIndex:e.zIndex})},[e.showPicker?(L(),Ze(s,{key:0,"show-tab":e.useType==="both"&&!e.state.isAdvanceMode,"active-key":e.state.activeKey,"onUpdate:activeKey":t[2]||(t[2]=l=>e.state.activeKey=l),onChange:e.onActiveKeyChange,theme:e.theme},{default:ac(()=>[(L(),Ze(ih(e.getComponentName),ul({key:e.getComponentName},e.getBindArgs),null,16))]),_:1},8,["show-tab","active-key","onChange","theme"])):Me("",!0)],4),[[Ot,e.showPicker]])],8,["to"]))],64))],64)}const _I={name:"PhystonPrompt",components:{HighlightPrompt:Iw,VueNumberInput:gw,IconSvg:_r,ColorPicker:cr(bI,[["render",CI],["__scopeId","data-v-11de56b7"]])},mixins:[Pr,mw,vw,xw,Sw],props:{name:{type:String,required:!0},neg:{type:Boolean,default:!1},textarea:{type:Object,required:!0},steps:{type:Object,required:!0},canOneTranslate:{type:Boolean,default:!1},autoTranslate:{type:Boolean,default:!1},autoTranslateToEnglish:{type:Boolean,default:!1},autoTranslateToLocal:{type:Boolean,default:!1},autoRemoveSpace:{type:Boolean,default:!1},autoRemoveLastComma:{type:Boolean,default:!1},autoKeepWeightZero:{type:Boolean,default:!1},autoKeepWeightOne:{type:Boolean,default:!1},autoBreakBeforeWrap:{type:Boolean,default:!1},autoBreakAfterWrap:{type:Boolean,default:!1},hideDefaultInput:{type:Boolean,default:!1},hidePanel:{type:Boolean,default:!1},enableTooltip:{type:Boolean,default:!0},historyKey:{type:String,default:""},favoriteKey:{type:String,default:""},extraNetworks:{type:Array,default:()=>[]},loras:{type:Array,default:()=>[]},lycos:{type:Array,default:()=>[]},embeddings:{type:Array,default:()=>[]},version:{type:String,default:""},latestVersion:{type:String,default:""},isLatestVersion:{type:Boolean,default:!0},theme:{type:String,default:"dark"},groupTags:{type:Array,default:()=>[]},hideGroupTags:{type:Boolean,default:!1},groupTagsColor:{type:Object,default:()=>({})}},emits:["update:languageCode","update:autoTranslate","update:autoTranslateToEnglish","update:autoTranslateToLocal","update:autoRemoveSpace","update:autoRemoveLastComma","update:autoKeepWeightZero","update:autoKeepWeightOne","update:hideDefaultInput","update:hidePanel","update:enableTooltip","update:translateApi","click:translateApi","click:promptFormat","click:selectTheme","click:switchTheme","click:showAbout","click:selectLanguage","click:showHistory","click:showFavorite","refreshFavorites","click:showChatgpt","update:hideGroupTags","update:groupTagsColor"],data(){return{prompt:"",counterText:"0/75",tags:[],sortable:null,droping:!1,loading:{},editing:{}}},computed:{isEnglish(){return this.languageCode==="en_US"},translateApiItem(){return me.getTranslateApiItem(this.translateApis,this.translateApi)}},watch:{loras:{handler(){this.tags.forEach(e=>{this._setTagClass(e)})},immediate:!1},lycos:{handler(){this.tags.forEach(e=>{this._setTagClass(e)})},immediate:!1},embeddings:{handler(){this.tags.forEach(e=>{this._setTagClass(e)})},immediate:!1}},mounted(){this.$nextTick(()=>{this.initSortable();let e=[1e3,3e3,5e3,1e4,2e4,3e4],t=!1;e.forEach(n=>{t||setTimeout(()=>{t||typeof addAutocompleteToArea=="function"&&typeof TAC_CFG=="object"&&TAC_CFG&&TAC_CFG.activeIn&&(t=!0,addAutocompleteToArea(this.$refs.promptTagAppend))},n)}),this.init()})},methods:{init(){this.tags=[],this.onTextareaChange()},onTextareaChange(e){const t=this.textarea.parentElement.getElementsByClassName("autocompleteParent");if(t.length){if(t[0].style.display!=="none")return}else{const l=this.textarea.parentElement.getElementsByClassName("autocompleteResults");if(l.length>0&&l[0].style.display!=="none")return}let n=this.textarea.value.trim();if(n===this.prompt.trim())return;let r=me.splitTags(n,this.autoBreakBeforeWrap,this.autoBreakAfterWrap),i=[];this.tags.forEach((l,c)=>{l.disabled&&i.push({tag:l,index:c})}),i.forEach(({tag:l,index:c})=>{r.splice(c,0,l.value)});let o=[],s=this.tags;this.tags=[];for(let l in r){let c=r[l];if(c===`
|
||
`)this._appendTag(`
|
||
`,`
|
||
`,!1,-1,"wrap");else{let d=!1;for(let C of s)if(C.value===c){d=C;break}const h=d?d.localValue:"",p=d?d.disabled:!1,y=this._appendTag(c,h,p,-1,"text");!d&&y!==-1&&o.push(y)}}if(this.autoTranslateToLocal&&e){let l=!(this.tagCompleteFile&&this.onlyCsvOnAuto);l=!1,this.translates(o,!0,l).finally(()=>{this.updateTags()})}else this.updateTags()},_setTextareaFocus(){if(typeof get_uiCurrentTabContent!="function"||typeof activePromptTextarea!="object")return;const e=get_uiCurrentTabContent();if(!e)return;let t=e.id.replace("tab_","");t&&(activePromptTextarea[t]=this.textarea)},copy(e){this.$copyText(e).then(()=>{this.$toastr.success(this.getLang("success"))}).catch(()=>{this.$toastr.error(this.getLang("failed"))})},genPrompt(e=null,t=!1){e=e||this.tags;let n=[],r=e.length;return e.forEach((i,o)=>{let s="";if(typeof i.type=="string"&&i.type==="wrap")s=`
|
||
`;else{let l=me.replaceTag(i.value);l!==i.value&&(i.value=l,this._setTag(i));let c=me.replaceTag(i.localValue);if(c!==i.localValue&&(i.localValue=c),i.weightNum>0&&(i.weightNum=Number(parseFloat(i.weightNum).toFixed(6)),i.value=i.value.replace(me.weightNumRegex,"$1:"+i.weightNum),i.localValue!==""&&(i.localValue=i.localValue.replace(me.weightNumRegex,"$1:"+i.weightNum))),i.disabled&&!t)return;let d=","+(this.autoRemoveSpace?"":" "),h=null,p=!1;if(o+1<r&&(h=e[o+1],typeof h.type=="string"&&h.type==="wrap"?p=!0:h.value),p){const y=[" BREAK"," ADDCOL"," ADDROW"," ADDCOMM"," ADDBASE"];for(const C of y)i.value.endsWith(C)&&(d="")}i.value==="BREAK"&&(p?d="":d=" "),this.autoRemoveLastComma&&o+1===r&&(d=""),s=i.value+d}s&&n.push(s)}),n.length<=0?"":n.join("")},updatePrompt(){let e=[],t=this.tags.length;for(let n=0;n<t;n++)if(this.tags[n].value==="BREAK"){if(this.autoBreakBeforeWrap&&n-1>=0){let i=this.tags[n-1];typeof i.type=="string"&&i.type==="wrap"||e.push(n)}if(this.autoBreakAfterWrap&&n+1<t){let i=this.tags[n+1];typeof i.type=="string"&&i.type==="wrap"||e.push(n+1)}}for(let n=0;n<e.length;n++){let r=e[n]+n;this._appendTag(`
|
||
`,`
|
||
`,!1,r,"wrap")}if(e.length){this.updateTags();return}this.prompt=this.genPrompt(),this.textarea.value=this.prompt,me.hideCompleteResults(this.textarea),typeof updateInput=="function"?updateInput(this.textarea):this.textarea.dispatchEvent(new Event("input"))},updateTags(){console.log("tags change",this.tags),this.updatePrompt();const e=this.steps.querySelector('input[type="number"]').value;this.gradioAPI.tokenCounter(this.textarea.value,e).then(t=>{const{token_count:n,max_length:r}=t;this.counterText=`${n}/${r}`}),this.tags.length&&this.gradioAPI.getLatestHistory(this.historyKey).then(t=>{t&&t.prompt===this.prompt?this.gradioAPI.setHistory(this.historyKey,t.id,this.tags,this.prompt,t.name).then(n=>{}).catch(n=>{}):this.gradioAPI.pushHistory(this.historyKey,this.tags,this.prompt).then(n=>{}).catch(n=>{})}).catch(t=>{}),this.$nextTick(()=>{for(let t=0;t<this.$refs.promptTagsList.children.length;t++){let n=this.$refs.promptTagsList.children[t];if(!n.classList.contains("prompt-tag"))continue;let r=n.getAttribute("data-id"),i=this.$refs.promptTagWrap.find(o=>o.getAttribute("data-id")===r);i&&n.parentNode.insertBefore(i,n.nextElementSibling)}})},onResize(){this.tags.forEach(e=>{this._setTagHeight(e)})},initSortable(){this.sortable=tt.create(this.$refs.promptTagsList,{animation:150,handle:".prompt-tag-value",draggable:".prompt-tag",onEnd:e=>{if(this.dropTags.length){let n=e.item,r=n.getAttribute("data-id"),i=this._getDropTagsEle(),o=i.findIndex(c=>c.getAttribute("data-id")===r),s=i.slice(0,o),l=i.slice(o+1).reverse();s.forEach(c=>{me.insertBefore(c,n)}),l.forEach(c=>{me.insertAfter(c,n)})}this._dropOver(),this.droping=!1;let t=[];for(let n=0;n<this.$refs.promptTagsList.children.length;n++){let r=this.$refs.promptTagsList.children[n];if(!r.classList.contains("prompt-tag"))continue;let i=r.getAttribute("data-id");t.push(i)}this.tags=this.tags.sort((n,r)=>t.indexOf(n.id)-t.indexOf(r.id)),this.$forceUpdate(),this.updateTags()},onChoose:e=>{if(console.log(e),this.dropTags.length){let n=e.item.getAttribute("data-id");this._getDropTagsEle().forEach(i=>{i.getAttribute("data-id")!==n&&(i.style.display="block",i.style.transition="transform 0.2s",i.style.transform="scale(0)",setTimeout(()=>{i.style.transition="",i.style.transform="",i.style.display="none"},300))})}this.editing={},this.droping=!0},onUnchoose:e=>{if(this.droping=null,this.dropTags.length){let n=e.item.getAttribute("data-id");this._getDropTagsEle().forEach(i=>{i.getAttribute("data-id")!==n&&(i.style.display="")})}}})},useHistory(e){this.tags=[],e.tags.forEach(t=>{this._appendTag(t.value,t.localValue,t.disabled,-1,t.type||"text")}),this.updateTags()},useFavorite(e){this.useHistory(e)},useChatgpt(e){let t=me.splitTags(e,this.autoBreakBeforeWrap,this.autoBreakAfterWrap);this.tags=[],t.forEach(n=>{this._appendTag(n,"",!1,-1,"text")}),this.updateTags()},onPromptMainClick(){this.onTextareaChange(!0),this._setTextareaFocus()},translates(e,t=!1,n=!0){return new Promise((r,i)=>{if(this.languageCode==="en_US"||this.languageCode==="en_GB"){r();return}let o=[],s=(p,y)=>{p.forEach(C=>{l(C,y)})},l=(p,y)=>{this.canOneTranslate?(this.loading[p.id+"_local"]=y,this.loading[p.id+"_en"]=y):p.toLocal?this.loading[p.id+"_local"]=y:this.loading[p.id+"_en"]=y},c=(p,y)=>{p.toLocal?p.localValue=y:(p.localValue=p.value,p.value=y),this._setTagById(p.id,p.value,p.localValue)},d=p=>p.isLora&&p.loraExists?this.getExtraNetworkFullName(p.loraName,"lora"):p.isLyco&&p.lycoExists?this.getExtraNetworkFullName(p.lycoName,"lycoris"):p.isEmbedding?this.getExtraNetworkFullName(p.value,"textual inversion"):p.value;e.forEach(p=>{let y=this.tags[p],C=d(y);if(C!==y.value){y.localValue=C;return}if(me.canTranslate(y.value)){if(y.isEnglish=me.isEnglishByLangCode(y.value,this.languageCode),y.isEnglish===-1)t?y.toLocal=!0:y.toLocal=!1;else if(y.isEnglish===0)if(t)if(y.localValue==="")y.localValue=y.value,y.toLocal=!1;else{const w=y.value;y.value=y.localValue,y.localValue=w}else y.toLocal=!1;else y.toLocal=!0;l(y,!0),o.push(y)}});const h=p=>{if(p.length<=0){s(p,!1),r();return}let y={};p.forEach((w,x)=>{let O=w.toLocal?"en_US":this.languageCode,E=w.toLocal?this.languageCode:"en_US",B=O+"."+E;y[B]||(y[B]={fromLang:O,toLang:E,tags:[]}),y[B].tags.push(w)});const C=()=>{let w=y[Object.keys(y)[0]];if(!w){r();return}let x=w.tags.map(O=>d(O));this.gradioAPI.translates(x,w.fromLang,w.toLang,this.translateApi,this.translateApiConfig).then(O=>{O.success?(O.translated_text.forEach((B,te)=>{B=B.replace(/\.$/,"").trim(),me.isEnglish(B)&&B!==B.toUpperCase()&&(B=B.toLowerCase());let D=w.tags[te];B!==""&&c(D,B),l(D,!1)}),delete y[Object.keys(y)[0]],C()):(s(p,!1),this.$toastr.error(O.message),i(O.message))}).catch(O=>{s(p,!1),this.$toastr.error(O.message),i(O.message)})};C()};if(this.tagCompleteFile){let p=[];o.forEach(y=>{const C=me.splitTag(y.value);C.value!==y.value&&(y.value=C.value,y.splits=C),y.toLocal?p.push(this.translateToLocalByCSV(y.value)):p.push(this.translateToEnByCSV(y.value))}),Promise.all(p).then(y=>{let C=[];y.forEach((w,x)=>{let O=o[x];O.splits&&(O.value=O.splits.left+O.value+O.splits.right),w===""?C.push(O):(O.splits&&(w=O.splits.left+w+O.splits.right),l(O,!1),c(O,w))}),n?h(C):(s(C,!1),r())}).catch(y=>{s(o,!1),this.$toastr.error(y),i(y)})}else n?h(o):(s(o,!1),r())})}}},wI=["name"],TI={class:"prompt-header"},xI={class:"prompt-header-title"},SI={class:"prompt-header-extend"},AI={class:"extend-content"},kI={class:"extend-btn-group"},EI={key:0,class:"gradio-checkbox hover-scale-120"},OI=["checked"],LI={class:"gradio-checkbox hover-scale-120"},II=["checked"],PI={class:"gradio-checkbox hover-scale-120"},DI=["checked"],RI={class:"gradio-checkbox hover-scale-120"},NI=["checked"],MI={class:"gradio-checkbox"},FI={value:"disabled"},$I={value:"last"},BI=["label"],HI=["value"],jI={class:"prompt-header-extend"},UI={class:"extend-content"},WI={class:"extend-btn-group"},KI={key:0,class:"prompt-header-extend"},VI={class:"extend-content"},qI={class:"extend-btn-group"},zI={class:"prompt-header-extend"},GI={class:"extend-content"},YI={class:"extend-btn-group"},XI={key:1,class:"prompt-header-extend"},JI={class:"extend-content"},ZI={class:"extend-btn-group"},QI={class:"prompt-header-extend prompt-append"},e2={class:"extend-content"},t2={class:"gradio-checkbox hover-scale-120"},n2={key:0},r2=["checked"],i2={key:1},o2=["checked"],s2=["placeholder"],a2=["onClick"],l2={class:"arrow-right"},u2=["onMouseleave","onMouseenter","onClick"],c2={key:0,class:"tags-name"},f2={key:1,class:"tags-name"},d2={class:"tags-detail"},p2={class:"tags-list"},h2={key:0,class:"item-wrap"},g2={key:1,class:"tags-item"},m2={class:"item-tag-value"},v2={class:"item-tag-local-value"},y2={class:"prompt-tags-list",ref:"promptTagsList"},b2=["data-id"],C2=["onMouseenter","onMousemove"],_2={class:"prompt-tag-edit"},w2=["onClick","onDblclick","innerHTML"],T2=["placeholder","value","onBlur","onKeydown","onChange"],x2=["onClick"],S2=["onClick"],A2=["onClick"],k2=["onClick"],E2=["onClick"],O2=["onClick"],L2=["onClick"],I2=["onClick"],P2=["onClick"],D2=["onClick"],R2={class:"prompt-local-language"},N2=["onClick"],M2={class:"local-language"},F2=["data-id"],$2={class:"btns-title"},B2={class:"group-tabs"},H2={class:"group-header",ref:"groupTabsHeader"},j2=["onClick"],U2={class:"group-body"},W2={key:0,class:"sub-group-header"},K2=["onClick"],V2={key:1,class:"sub-group-body"},q2={key:0,class:"group-tags"},z2=["onClick","innerHTML"],G2={class:"tags-footer"},Y2={class:"tags-color"},X2={class:"tags-color-picker hover-scale-120",unaffected:"true"},J2=["onClick"],Z2=["onClick"],Q2={class:"tags-copyright"};function eP(e,t,n,r,i,o){const s=lt("icon-svg"),l=lt("vue-number-input"),c=lt("color-picker"),d=lt("highlight-prompt"),h=rl("tooltip");return L(),H("div",{class:"physton-prompt",name:n.name},[S("div",{class:at(["prompt-main",n.hidePanel?"fold":""]),onClick:t[55]||(t[55]=(...p)=>o.onPromptMainClick&&o.onPromptMainClick(...p))},[S("div",TI,[Te((L(),H("div",{class:"prompt-unfold",onClick:t[0]||(t[0]=(...p)=>e.onUnfoldClick&&e.onUnfoldClick(...p))},[xe(s,{class:"hover-scale-120",name:"unfold"})])),[[h,e.getLang(n.hidePanel?"show_panel":"hide_panel")]]),S("div",xI,ye(n.neg?e.getLang("negative_prompt"):e.getLang("prompt")),1),Te(S("div",{class:"prompt-header-counter"},"("+ye(i.counterText)+")",513),[[Ot,i.counterText]]),S("div",SI,[S("div",AI,[S("div",kI,[Te((L(),H("div",{class:"extend-btn-item",onClick:t[1]||(t[1]=p=>e.$emit("click:selectLanguage",p))},[xe(s,{class:"hover-scale-120",name:"i18n"})])),[[h,"Language: "+e.langName]]),S("div",{class:at(["extend-btn-item",n.isLatestVersion?"":"red-dot"])},[Te(xe(s,{class:"hover-scale-120",name:"setting"},null,512),[[h,e.getLang("setting_desc")]]),S("div",{class:"setting-box",onMouseenter:t[13]||(t[13]=(...p)=>e.onSettingBoxMouseEnter&&e.onSettingBoxMouseEnter(...p))},[o.translateApiItem.name&&!o.isEnglish?Te((L(),H("div",{key:0,class:"extend-btn-item",onClick:t[2]||(t[2]=p=>e.$emit("click:translateApi",p))},[xe(s,{class:"hover-scale-120",name:"api"})])),[[h,e.getLang("translate_api")+": "+o.translateApiItem.name]]):Me("",!0),Te((L(),H("div",{class:"extend-btn-item",onClick:t[3]||(t[3]=p=>e.$emit("click:promptFormat",p))},[xe(s,{class:"hover-scale-120",name:"format"})])),[[h,e.getLang("prompt_format")]]),Te((L(),H("div",{class:"extend-btn-item",onClick:t[4]||(t[4]=p=>e.$emit("click:selectTheme",p))},[xe(s,{class:"hover-scale-120",name:"theme"})])),[[h,e.getLang("theme_extension")]]),Te((L(),H("div",{class:"extend-btn-item",onClick:t[5]||(t[5]=p=>e.$emit("click:switchTheme",p))},[xe(s,{class:"hover-scale-120",name:n.theme==="dark"?"sun":"moon"},null,8,["name"])])),[[h,e.getLang(n.theme==="dark"?"switch_to_light_theme":"switch_to_dark_theme")]]),Te((L(),H("div",{class:at(["extend-btn-item",n.isLatestVersion?"":"red-dot"]),onClick:t[6]||(t[6]=p=>e.$emit("click:showAbout",p))},[xe(s,{class:"hover-scale-120",name:"about"})],2)),[[h,e.getLang("about_desc")]]),o.isEnglish?Me("",!0):(L(),H(He,{key:1},[n.canOneTranslate?(L(),H("div",EI,[Te((L(),H("label",null,[S("input",{type:"checkbox",name:"auto_translate",value:"1",checked:n.autoTranslate,onChange:t[7]||(t[7]=p=>e.$emit("update:autoTranslate",p.target.checked))},null,40,OI),xe(s,{name:"translate"})])),[[h,e.getLang("auto_translate")]])])):(L(),H(He,{key:1},[S("div",LI,[Te((L(),H("label",null,[S("input",{type:"checkbox",name:"auto_translate_to_local_language",value:"1",checked:n.autoTranslateToLocal,onChange:t[8]||(t[8]=p=>e.$emit("update:autoTranslateToLocal",p.target.checked))},null,40,II),xe(s,{name:"translate"})])),[[h,e.getLang("auto_translate_to_local_language")]])]),S("div",PI,[Te((L(),H("label",null,[S("input",{type:"checkbox",name:"auto_translate_to_english",value:"1",checked:n.autoTranslateToEnglish,onChange:t[9]||(t[9]=p=>e.$emit("update:autoTranslateToEnglish",p.target.checked))},null,40,DI),xe(s,{name:"english"})])),[[h,e.getLang("auto_translate_to_english")]])])],64))],64)),S("div",RI,[Te((L(),H("label",null,[S("input",{type:"checkbox",name:"enable_tooltip",value:"1",checked:n.enableTooltip,onChange:t[10]||(t[10]=p=>e.$emit("update:enableTooltip",p.target.checked))},null,40,NI),xe(s,{name:"tooltip"})])),[[h,e.getLang("whether_to_enable_tooltip")]])]),S("div",MI,[Te((L(),H("label",null,[Te(S("select",{"onUpdate:modelValue":t[11]||(t[11]=p=>e.autoInputPrompt=p),onChange:t[12]||(t[12]=(...p)=>e.onAutoInputPromptChange&&e.onAutoInputPromptChange(...p))},[S("option",FI,ye(e.getLang("auto_input_prompt"))+": "+ye(e.getLang("disabled")),1),S("option",$I,ye(e.getLang("last_input_prompt")),1),(L(!0),H(He,null,ht(e.getCurrentTypeFavorites(),p=>(L(),H("optgroup",{key:p.key,label:e.getLang("favorite")+" / "+e.getLang(p.name)},[(L(!0),H(He,null,ht(p.list,y=>(L(),H("option",{value:y.id},ye(y.name||y.prompt.substring(0,40)),9,HI))),256))],8,BI))),128))],544),[[Os,e.autoInputPrompt]])])),[[h,e.getLang("auto_input_prompt")]])])],32)],2)])])]),S("div",jI,[S("div",UI,[S("div",WI,[Te((L(),H("div",{class:"extend-btn-item",ref:"historyButton",onClick:t[14]||(t[14]=p=>e.$emit("click:showHistory",p))},[xe(s,{class:"hover-scale-120",name:"history"})])),[[h,e.getLang("history")]]),Te((L(),H("div",{class:"extend-btn-item",ref:"favoriteButton",onClick:t[15]||(t[15]=p=>e.$emit("click:showFavorite",p))},[xe(s,{class:"hover-scale-120",name:"favorite"})])),[[h,e.getLang("favorite")]])])])]),o.isEnglish?Me("",!0):(L(),H("div",KI,[S("div",VI,[S("div",qI,[n.canOneTranslate?Te((L(),H("div",{key:0,class:"extend-btn-item",onClick:t[16]||(t[16]=(...p)=>e.onTranslatesToLocalClick&&e.onTranslatesToLocalClick(...p))},[i.loading.all_local?Me("",!0):(L(),Ze(s,{key:0,class:"hover-scale-120",name:"translate"})),i.loading.all_local?(L(),Ze(s,{key:1,class:"hover-scale-120",name:"loading"})):Me("",!0)])),[[h,e.getLang("one_translate_all_keywords")]]):(L(),H(He,{key:1},[Te((L(),H("div",{class:"extend-btn-item",onClick:t[17]||(t[17]=(...p)=>e.onTranslatesToLocalClick&&e.onTranslatesToLocalClick(...p))},[i.loading.all_local?Me("",!0):(L(),Ze(s,{key:0,class:"hover-scale-120",name:"translate"})),i.loading.all_local?(L(),Ze(s,{key:1,class:"hover-scale-120",name:"loading"})):Me("",!0)])),[[h,e.getLang("translate_keywords_to_local_language")]]),Te((L(),H("div",{class:"extend-btn-item",onClick:t[18]||(t[18]=(...p)=>e.onTranslatesToEnglishClick&&e.onTranslatesToEnglishClick(...p))},[i.loading.all_en?Me("",!0):(L(),Ze(s,{key:0,class:"hover-scale-120",name:"english"})),i.loading.all_en?(L(),Ze(s,{key:1,class:"hover-scale-120",name:"loading"})):Me("",!0)])),[[h,e.getLang("translate_all_keywords_to_english")]])],64))])])])),S("div",zI,[S("div",GI,[S("div",YI,[Te((L(),H("div",{class:"extend-btn-item",onClick:t[19]||(t[19]=(...p)=>e.onCopyAllTagsClick&&e.onCopyAllTagsClick(...p))},[xe(s,{class:"hover-scale-120",name:"copy"})])),[[h,e.getLang("copy_keywords_to_clipboard")]]),Te((L(),H("div",{class:"extend-btn-item",onClick:t[20]||(t[20]=(...p)=>e.onDeleteAllTagsClick&&e.onDeleteAllTagsClick(...p))},[xe(s,{class:"hover-scale-120",name:"remove"})])),[[h,e.getLang("delete_all_keywords")]])])])]),n.neg?Me("",!0):(L(),H("div",XI,[S("div",JI,[S("div",ZI,[Te((L(),H("div",{class:"extend-btn-item",onClick:t[21]||(t[21]=p=>e.$emit("click:showChatgpt",p))},[xe(s,{class:"hover-scale-120",name:"chatgpt"})])),[[h,e.getLang("use_chatgpt_gen_prompts")]])])])])),S("div",QI,[S("div",e2,[S("div",t2,[n.hideDefaultInput?Te((L(),H("label",n2,[S("input",{type:"checkbox",name:"hide_default_input",value:"1",checked:!n.hideDefaultInput,onChange:t[22]||(t[22]=p=>e.$emit("update:hideDefaultInput",!p.target.checked))},null,40,r2),xe(s,{name:"input"})])),[[h,e.getLang("show_default_input_box")]]):Te((L(),H("label",i2,[S("input",{type:"checkbox",name:"hide_default_input",value:"1",checked:!n.hideDefaultInput,onChange:t[23]||(t[23]=p=>e.$emit("update:hideDefaultInput",!p.target.checked))},null,40,o2),xe(s,{name:"input"})])),[[h,e.getLang("hide_default_input_box")]])]),Te(S("textarea",{type:"text",class:"scroll-hide svelte-4xt1ch input-tag-append",ref:"promptTagAppend",placeholder:e.getLang("please_enter_new_keyword"),onFocus:t[24]||(t[24]=(...p)=>e.onAppendTagFocus&&e.onAppendTagFocus(...p)),onBlur:t[25]||(t[25]=(...p)=>e.onAppendTagBlur&&e.onAppendTagBlur(...p)),onKeyup:t[26]||(t[26]=(...p)=>e.onAppendTagKeyUp&&e.onAppendTagKeyUp(...p)),onKeydown:t[27]||(t[27]=(...p)=>e.onAppendTagKeyDown&&e.onAppendTagKeyDown(...p))},null,40,s2),[[h,e.getLang("enter_to_add")]]),Te(S("div",{class:"prompt-append-list",ref:"promptAppendList",style:bt(e.appendListStyle)},[(L(!0),H(He,null,ht(e.appendList,(p,y)=>(L(),H("div",{key:p.type,class:at(["prompt-append-group",e.appendListSelected===y?"selected":""])},[S("div",{class:"append-group-name",onClick:C=>e.onAppendGroupClick(y,null,C)},[p.icon==="wrap"?(L(),Ze(s,{key:0,class:"name-icon",name:"wrap"})):p.icon==="history"?(L(),Ze(s,{key:1,class:"name-icon",name:"history"})):p.icon==="favorite"?(L(),Ze(s,{key:2,class:"name-icon",name:"favorite"})):Me("",!0),Xt(" "+ye(e.appendListItemName(p))+" ",1),Te(S("span",l2,null,512),[[Ot,p.children.length>0]])],8,a2),Te(S("div",{class:"append-group-list",ref_for:!0,ref:"promptAppendListChildren"},[(L(!0),H(He,null,ht(p.children,(C,w)=>(L(),H("div",{key:w,ref_for:!0,ref:"promptAppendListChild",class:at(["append-item",e.appendListChildSelected===w?"selected":""]),onMouseleave:x=>e.onAppendListChildMouseLeave(y,w,x),onMouseenter:x=>e.onAppendListChildMouseEnter(y,w,x),onClick:x=>e.onAppendGroupClick(y,w,x)},[p.type==="favorite"||p.type==="history"?(L(),H(He,{key:0},[C.name?(L(),H("div",c2,ye(C.name),1)):(L(),H("div",f2,ye(C.prompt),1))],64)):Me("",!0)],42,u2))),128))],512),[[Ot,p.children.length>0]]),Te(S("div",d2,[S("div",p2,[(L(!0),H(He,null,ht(e.appendListChildItemTags,(C,w)=>(L(),H(He,{key:w},[C.type&&C.type==="wrap"?(L(),H("div",h2)):(L(),H("div",g2,[S("div",m2,ye(C.value),1),S("div",v2,ye(C.localValue),1)]))],64))),128))])],512),[[Ot,e.appendListSelected!==null&&e.appendListChildSelected!==null&&e.appendListSelected===y&&(p.type==="favorite"||p.type==="history")]])],2))),128))],4),[[Ot,e.showAppendList]])])])]),S("div",{class:at(["prompt-tags",i.droping?"droping":"",e.dropIsSelecting||e.dropIsEnd&&e.dropTags.length?"selecting":""]),ref:"promptTags",onMousedown:t[51]||(t[51]=(...p)=>e.onDropMouseDown&&e.onDropMouseDown(...p)),onMousemove:t[52]||(t[52]=(...p)=>e.onDropMouseMove&&e.onDropMouseMove(...p)),onMouseup:t[53]||(t[53]=(...p)=>e.onDropMouseUp&&e.onDropMouseUp(...p))},[S("div",y2,[(L(!0),H(He,null,ht(i.tags,(p,y)=>(L(),H("div",{key:p.id,class:at(["prompt-tag",p.disabled?"disabled":"",p.type==="wrap"?"wrap-tag":""]),ref_for:!0,ref:"promptTag-"+p.id,"data-id":p.id},[S("div",{class:"prompt-tag-main",onMouseenter:C=>e.onTagMouseEnter(p.id),onMousemove:yt(C=>e.onTagMouseMove(p.id),["stop"])},[S("div",_2,[p.type==="wrap"?Te((L(),H("div",{key:0,class:"prompt-tag-value",ref_for:!0,ref:"promptTagValue-"+p.id,style:{width:"100%"}},[xe(s,{name:"wrap"})])),[[h,e.getLang("line_break_character")+"<br/>"+e.getLang("drop_to_order")]]):(L(),H(He,{key:1},[Te(S("div",{class:at(p.classes),style:bt(e.getTagColorStyle(p)),ref_for:!0,ref:"promptTagValue-"+p.id,onClick:C=>e.onTagClick(p.id,C),onDblclick:C=>e.onTagDblclick(p.id),innerHTML:e.renderTag(p.id)},null,46,w2),[[Ot,!i.editing[p.id]],[h,e.getLang("click_to_edit")+"<br/>"+e.getLang("dblclick_to_disable")+"<br/>"+e.getLang("drop_to_order")]]),Te(S("textarea",{type:"text",class:"scroll-hide svelte-4xt1ch input-tag-edit",ref_for:!0,ref:"promptTagEdit-"+p.id,placeholder:e.getLang("enter_to_save"),value:p.value,onMousedown:t[28]||(t[28]=yt(()=>{},["stop"])),onMousemove:t[29]||(t[29]=yt(()=>{},["stop"])),onMouseup:t[30]||(t[30]=yt(()=>{},["stop"])),onBlur:C=>e.onTagInputBlur(p.id),onKeydown:C=>e.onTagInputKeyDown(p.id,C),onChange:C=>e.onTagInputChange(p.id,C)},null,40,T2),[[Ot,i.editing[p.id]]])],64)),S("div",{class:"btn-tag-delete",ref_for:!0,ref:"promptTagDelete-"+p.id,onClick:C=>e.onDeleteTagClick(p.id),onMousedown:t[31]||(t[31]=yt(()=>{},["stop"])),onMousemove:t[32]||(t[32]=yt(()=>{},["stop"])),onMouseup:t[33]||(t[33]=yt(()=>{},["stop"]))},[xe(s,{name:"close"})],40,x2)]),Te(S("div",{class:"btn-tag-extend",onMousedown:t[34]||(t[34]=yt(()=>{},["stop"])),onMousemove:t[35]||(t[35]=yt(()=>{},["stop"])),onMouseup:t[36]||(t[36]=yt(()=>{},["stop"]))},[xe(l,{class:"input-number","model-value":p.weightNum,center:"",controls:"",min:0,step:.1,size:"small","onUpdate:modelValue":C=>e.onTagWeightNumChange(p.id,C)},null,8,["model-value","step","onUpdate:modelValue"]),Te((L(),H("button",{type:"button",onClick:C=>e.onIncWeightClick(p.id,1)},[xe(s,{name:"weight-parentheses-inc"})],8,S2)),[[h,e.getLang("increase_weight_add_parentheses")]]),Te((L(),H("button",{type:"button",onClick:C=>e.onIncWeightClick(p.id,-1)},[xe(s,{name:"weight-parentheses-dec"})],8,A2)),[[h,e.getLang("increase_weight_subtract_parentheses")]]),Te((L(),H("button",{type:"button",onClick:C=>e.onDecWeightClick(p.id,1)},[xe(s,{name:"weight-brackets-inc"})],8,k2)),[[h,e.getLang("decrease_weight_add_brackets")]]),Te((L(),H("button",{type:"button",onClick:C=>e.onDecWeightClick(p.id,-1)},[xe(s,{name:"weight-brackets-dec"})],8,E2)),[[h,e.getLang("decrease_weight_subtract_brackets")]]),Te((L(),H("button",{type:"button",onClick:C=>e.onWrapTagClick(p.id)},[xe(s,{name:"wrap"})],8,O2)),[[h,e.getLang("line_break_character")]]),Te((L(),H("button",{type:"button",onClick:C=>e.onTranslateToEnglishClick(p.id)},[i.loading[p.id+"_en"]?Me("",!0):(L(),Ze(s,{key:0,name:"english"})),i.loading[p.id+"_en"]?(L(),Ze(s,{key:1,name:"loading"})):Me("",!0)],8,L2)),[[h,e.getLang("translate_keyword_to_english")],[Ot,!o.isEnglish]]),Te((L(),H("button",{type:"button",onClick:C=>o.copy(p.value)},[xe(s,{name:"copy"})],8,I2)),[[h,e.getLang("copy_to_clipboard")]]),Te((L(),H("button",{type:"button",onClick:C=>e.onFavoriteTagClick(p.id)},[p.isFavorite?(L(),Ze(s,{key:0,name:"favorite-yes"})):Me("",!0),p.isFavorite?Me("",!0):(L(),Ze(s,{key:1,name:"favorite-no"}))],8,P2)),[[h,e.getLang(p.isFavorite?"remove_from_favorite":"add_to_favorite")]]),Te((L(),H("button",{type:"button",onClick:C=>e.onDisabledTagClick(p.id)},[p.disabled?Me("",!0):(L(),Ze(s,{key:0,name:"disabled"})),p.disabled?(L(),Ze(s,{key:1,name:"enable"})):Me("",!0)],8,D2)),[[h,e.getLang(p.disabled?"enable_keyword":"disable_keyword")]])],544),[[Ot,p.type==="text"||!p.type]])],40,C2),Te(S("div",R2,[Te((L(),H("div",{class:"translate-to-local hover-scale-120",onClick:C=>e.onTranslateToLocalClick(p.id),onMousedown:t[37]||(t[37]=yt(()=>{},["stop"])),onMousemove:t[38]||(t[38]=yt(()=>{},["stop"])),onMouseup:t[39]||(t[39]=yt(()=>{},["stop"]))},[i.loading[p.id+"_local"]?Me("",!0):(L(),Ze(s,{key:0,name:"translate"})),i.loading[p.id+"_local"]?(L(),Ze(s,{key:1,name:"loading"})):Me("",!0)],40,N2)),[[h,e.getLang("translate_keyword_to_local_language")]]),S("div",M2,ye(p.localValue),1)],512),[[Ot,!o.isEnglish&&(p.type==="text"||!p.type)]])],10,b2))),128)),(L(!0),H(He,null,ht(i.tags,(p,y)=>(L(),H("div",{key:p.id,class:at(["prompt-wrap",p.type==="wrap"?"wrap-tag":""]),"data-id":p.id,ref_for:!0,ref:"promptTagWrap",onMousedown:t[40]||(t[40]=yt(()=>{},["stop"])),onMousemove:t[41]||(t[41]=yt(()=>{},["stop"])),onMouseup:t[42]||(t[42]=yt(()=>{},["stop"]))},null,42,F2))),128))],512),S("div",{class:"drop-select-bg",ref:"dropSelectBg",style:bt({display:e.dropIsStart?"block":"none"})},null,4),S("div",{class:"drop-select-box",ref:"dropSelectBox",style:bt({display:e.dropIsSelecting?"block":"none",top:e.dropArea.top+"px",left:e.dropArea.left+"px",width:e.dropArea.width+"px",height:e.dropArea.height+"px"})},null,4),S("div",{class:"drop-select-btns",ref:"dropSelectBtns",style:bt({display:e.dropIsEnd&&e.dropTags.length?"flex":"none",top:e.dropEndY-32+"px",left:e.dropEndX+"px"}),onMousedown:t[48]||(t[48]=yt(()=>{},["stop"])),onMousemove:t[49]||(t[49]=yt(()=>{},["stop"])),onMouseup:t[50]||(t[50]=yt(()=>{},["stop"]))},[S("div",$2,ye(e.getLang("batch_operation")),1),Te((L(),H("button",{type:"button",onClick:t[43]||(t[43]=(...p)=>e.onDropCopy&&e.onDropCopy(...p))},[xe(s,{name:"copy"})])),[[h,e.getLang("copy_to_clipboard")]]),Te((L(),H("button",{type:"button",onClick:t[44]||(t[44]=(...p)=>e.onDropFavorite&&e.onDropFavorite(...p))},[xe(s,{name:"favorite-no"})])),[[h,e.getLang("add_to_favorite")]]),Te((L(),H("button",{type:"button",onClick:t[45]||(t[45]=(...p)=>e.onDropDisable&&e.onDropDisable(...p))},[xe(s,{name:"disabled"})])),[[h,e.getLang("disable_keyword")]]),Te((L(),H("button",{type:"button",onClick:t[46]||(t[46]=(...p)=>e.onDropEnable&&e.onDropEnable(...p))},[xe(s,{name:"enable"})])),[[h,e.getLang("enable_keyword")]]),S("button",{type:"button",onClick:t[47]||(t[47]=(...p)=>e.onDropDelete&&e.onDropDelete(...p))},[xe(s,{name:"remove"})])],36)],34),n.groupTags.length?Te((L(),H("div",{key:0,class:at(["show-group-tags",n.hideGroupTags?"hided":""]),onClick:t[54]||(t[54]=(...p)=>e.onClickHideGroupTags&&e.onClickHideGroupTags(...p))},[xe(s,{class:"hover-scale-120",name:"unfold"})],2)),[[h,e.getLang(n.hideGroupTags?"show_group_tags":"hide_group_tags")]]):Me("",!0),Te(S("div",B2,[S("div",H2,[(L(!0),H(He,null,ht(n.groupTags,(p,y)=>(L(),H("div",{key:y,class:at(["group-tab",y==e.groupTagsActive?"active":""]),onClick:C=>e.activeGroupTab(y)},ye(p.name),11,j2))),128))],512),S("div",U2,[(L(!0),H(He,null,ht(n.groupTags,(p,y)=>(L(),H("div",{key:y,class:at(["group-main",y==e.groupTagsActive?"active":""])},[y==e.groupTagsActive?(L(),H("div",W2,[(L(!0),H(He,null,ht(p.groups,(C,w)=>(L(),H("div",{class:at(["sub-group-tab",["sub-group-tab",w==e.subGroupTagsActive?"active":""]]),key:w,onClick:x=>e.activeSubGroupTab(w)},ye(C.name),11,K2))),128))])):Me("",!0),y==e.groupTagsActive?(L(),H("div",V2,[(L(!0),H(He,null,ht(p.groups,(C,w)=>(L(),H("div",{key:w,class:at(["sub-group-main",w==e.subGroupTagsActive?"active":""])},[w==e.subGroupTagsActive?(L(),H("div",q2,[(L(!0),H(He,null,ht(C.tags,(x,O)=>Te((L(),H("div",{class:"tag-item",onClick:E=>e.onClickGroupTag(x,O),innerHTML:e.renderGroupTag(x,O,p.name,C.name)},null,8,z2)),[[h,e.getGroupTagTooltip(x,O)]])),256))])):Me("",!0),S("div",G2,[S("div",Y2,[S("div",null,ye(e.getLang("tags_color"))+":",1),Te((L(),H("div",X2,[xe(c,{theme:n.theme=="dark"?"black":"white",pureColor:n.groupTagsColor[e.getTagsColorKey(p.name,C.name)],"onUpdate:pureColor":x=>n.groupTagsColor[e.getTagsColorKey(p.name,C.name)]=x,onPureColorChange:x=>e.onTagsColorChange(e.getTagsColorKey(p.name,C.name))},null,8,["theme","pureColor","onUpdate:pureColor","onPureColorChange"])])),[[h,n.groupTagsColor[e.getTagsColorKey(p.name,C.name)]]]),Te((L(),H("div",{class:"tags-color-reset hover-scale-120",onClick:x=>e.onClickResetTagsColor(e.getTagsColorKey(p.name,C.name))},[xe(s,{name:"reset"})],8,J2)),[[h,e.getLang("reset_default_color")]]),Te((L(),H("div",{class:"tags-color-clear hover-scale-120",onClick:x=>e.onClickClearTagsColor(e.getTagsColorKey(p.name,C.name))},[xe(s,{name:"clear"})],8,Z2)),[[h,e.getLang("clear_color")]])]),S("div",Q2,ye(e.getLang("tags-copyright")),1)])],2))),128))])):Me("",!0)],2))),128))])],512),[[Ot,!n.hideGroupTags&&n.groupTags.length]])],2),xe(d,{ref:"highlightPrompt",textarea:n.textarea,"hide-default-input":n.hideDefaultInput},null,8,["textarea","hide-default-input"])],8,wI)}const tP=Mn(_I,[["render",eP]]),nP={name:"TranslateSetting",components:{IconSvg:_r},mixins:[Pr],props:{},data(){return{testText:"",translateSuccess:!1,errorMessage:"",translatedText:"",loading:!1,isOpen:!1,configs:[],apiKey:"",tagCompleteFiles:[],tagCompleteFilesLoading:!1,tagCompleteFileKey:"",tagCompleteResults:[],onlyCsvOnAutoValue:!1,mbart50Loading:!1,mbart50Success:!1,mbart50Message:""}},computed:{apiItem(){return me.getTranslateApiItem(this.translateApis,this.apiKey)},supportApi(){if(!this.translateApis||this.translateApis.length<=0)return[];let e=JSON.parse(JSON.stringify(this.translateApis));return e.forEach(t=>{t.children.forEach(n=>{n.disabled=!n.support[this.languageCode]})}),e}},mounted(){this.translateSuccess=!1,this.errorMessage="",this.translatedText="",this.loading=!1},emits:["update:translateApi","forceUpdate:translateApi","update:tagCompleteFile","update:onlyCsvOnAuto"],watch:{apiKey:{handler:function(e,t){this.translateSuccess=!1,this.errorMessage="",this.translatedText="",this.loading=!1,this.configs=[],this.gradioAPI.getData("translate_api."+this.apiKey).then(n=>{const r=this.apiItem;if(r&&r.config){for(const i of this.apiItem.config)n?i.value=n[i.key]||i.default:i.value=i.default||"",this.configs.push(i);console.log(this.configs)}})},immediate:!1}},methods:{open(e){this.testText=`Hi, this extension is developed by Physton. Welcome to use it!
|
||
If you have any suggestions or opinions, please feel free to raise an issue or PR on Github.
|
||
If you find this extension helpful, please give me a star on Github!
|
||
|
||
Developed by: Physton
|
||
Github: {{name}}`,this.testText=me.replaceGlobals(this.testText),this.apiKey=e,this.isOpen=!0,this.errorMessage="",this.translatedText="",this.loading=!1,this.tagCompleteFileKey=this.tagCompleteFile,this.onlyCsvOnAutoValue=this.onlyCsvOnAuto,this.mbart50Success=!1,this.mbart50Message="",this.refreshCSVs()},getItemName(e){let t=e.name;return t=t.replace("[Free] ","["+this.getLang("free")+"] "),t=t.replace("[ApiKey] ","["+this.getLang("apply_for_free")+"] "),t},onChangeConfigValue(e){e.type==="input"&&e.value===""&&e.default&&(e.value=e.default)},refreshCSVs(){this.tagCompleteFilesLoading||(this.tagCompleteFilesLoading=!0,this.tagCompleteFiles=[],this.gradioAPI.getCSVs().then(e=>{if(this.tagCompleteFilesLoading=!1,!(!e||e.length<=0)){this.tagCompleteFiles.push({key:"",name:this.getLang("not_enable")});for(const t of e)this.tagCompleteFiles.push({key:t.key,name:t.key})}}).catch(e=>{this.tagCompleteFilesLoading=!1}))},onTestClick(){if(this.loading)return;this.translateSuccess=!1,this.errorMessage="",this.translatedText="",this.loading=!0;let e={};for(const t of this.configs)e[t.key]=t.value;this.translate(this.testText,"en_US",this.languageCode,this.apiKey,e).then(t=>{t.success?(this.translatedText=t.translated_text,this.translateSuccess=!0):this.errorMessage=t.message,this.loading=!1}).catch(t=>{this.errorMessage=t.message,this.loading=!1})},translate(e,t,n,r=null,i=null){return new Promise(async(o,s)=>{r=r||this.translateApi,i=i||this.translateApiConfig||{},this.gradioAPI.translate(e,t,n,r,i).then(l=>{l.success?o(l):s(l)}).catch(l=>{s(l)})})},onSaveClick(){this.isOpen=!1;let e={};for(const t of this.configs)e[t.key]=t.value;this.$emit("update:translateApi",this.apiKey),this.$emit("update:tagCompleteFile",this.tagCompleteFileKey),this.$emit("update:onlyCsvOnAuto",this.onlyCsvOnAutoValue),this.gradioAPI.setData("translate_api."+this.apiKey,e).then(t=>{this.apiKey===this.translateApi&&this.$emit("forceUpdate:translateApi")})},onCloseClick(){this.isOpen=!1},onTagCompleteTestClick(){this.tagCompleteResults=[],["1girl","Robot dog"].forEach(t=>{let n=this.getLang("translate_result");this.translateToLocalByCSV(t,this.tagCompleteFileKey,!0).then(r=>{this.tagCompleteResults.push(n.replace("{0}",t).replace("{1}",r))}).catch(r=>{this.$toastr.error(r)})})},onMbart50Initialize(){this.mbart50Loading=!0,this.mbart50Success=!1,this.mbart50Message="",this.gradioAPI.mbart50Initialize().then(e=>{this.mbart50Loading=!1,e.success?(this.mbart50Success=!0,this.mbart50Message=this.getLang("initialize_finished")):this.mbart50Message=this.getLang("initialize_failed")+": "+e.message}).catch(e=>{this.mbart50Loading=!1,this.mbart50Message=e.message})}}},rP={key:0,class:"physton-prompt-translate-setting"},iP={class:"translate-setting-main"},oP={class:"translate-setting-content"},sP={class:"setting-line"},aP={class:"line-title"},lP={class:"line-content"},uP=["label"],cP=["value","disabled"],fP={key:0,class:"setting-line"},dP=S("div",{class:"line-title"},null,-1),pP={class:"line-content"},hP={class:"common-red"},gP={key:1,class:"setting-line"},mP=S("div",{class:"line-title"},null,-1),vP={class:"line-content"},yP={class:"help-list"},bP={class:"help-item"},CP=["href"],_P={class:"setting-line"},wP={class:"line-title"},TP={class:"line-content"},xP=["onUpdate:modelValue","onChange"],SP=["onUpdate:modelValue"],AP=["value"],kP=["innerHTML"],EP={key:2,class:"setting-line"},OP={class:"line-title"},LP={class:"line-content"},IP=["innerHTML"],PP=["innerHTML"],DP={key:3,class:"setting-line"},RP=S("div",{class:"line-title"},null,-1),NP={class:"line-content"},MP={class:"setting-line"},FP={class:"line-title"},$P={class:"line-content"},BP={class:"setting-line"},HP=S("div",{class:"line-title"},null,-1),jP={class:"line-content"},UP={class:"setting-line"},WP=S("div",{class:"line-title"},null,-1),KP={class:"line-content"},VP={key:0,class:"translate-error"},qP={class:"setting-line"},zP=S("div",{class:"line-title"},"TagComplete",-1),GP={class:"line-content"},YP={class:"help-list"},XP={class:"help-item"},JP=["href"],ZP=["innerHTML"],QP=["innerHTML"],eD={class:"line-row"},tD=["value"],nD={class:"setting-line"},rD=S("div",{class:"line-title"},null,-1),iD={class:"line-content"},oD={ref:"tagCompleteResults"},sD={class:"setting-btns"};function aD(e,t,n,r,i,o){const s=lt("icon-svg"),l=rl("tooltip");return i.isOpen?(L(),H("div",rP,[S("div",iP,[S("div",oP,[S("div",sP,[S("div",aP,ye(e.getLang("translate_api")),1),S("div",lP,[Te(S("select",{"onUpdate:modelValue":t[0]||(t[0]=c=>i.apiKey=c)},[(L(!0),H(He,null,ht(o.supportApi,c=>(L(),H("optgroup",{key:c.type,label:e.getLang(c.type)},[(L(!0),H(He,null,ht(c.children,d=>(L(),H("option",{key:d.key,value:d.key,disabled:d.disabled},ye(o.getItemName(d)),9,cP))),128))],8,uP))),128))],512),[[Os,i.apiKey]])])]),o.apiItem&&o.apiItem.type=="translators"?(L(),H("div",fP,[dP,S("div",pP,[S("span",hP,"*"+ye(e.getLang("not_api_key_desc")),1)])])):Me("",!0),o.apiItem.help?(L(),H("div",gP,[mP,S("div",vP,[(L(!0),H(He,null,ht(o.apiItem.help,c=>(L(),H("div",yP,[S("div",bP,[Xt("[?] "),S("a",{href:c.url,target:"_blank"},ye(c.title),9,CP)])]))),256))])])):Me("",!0),(L(!0),H(He,null,ht(i.configs,c=>(L(),H("div",_P,[S("div",wP,ye(c.title),1),S("div",TP,[c.type=="input"?Te((L(),H("input",{key:0,type:"text","onUpdate:modelValue":d=>c.value=d,onChange:d=>o.onChangeConfigValue(c)},null,40,xP)),[[Mi,c.value]]):Me("",!0),c.type=="select"?Te((L(),H("select",{key:1,"onUpdate:modelValue":d=>c.value=d},[(L(!0),H(He,null,ht(c.options,d=>(L(),H("option",{value:d},ye(d),9,AP))),256))],8,SP)),[[Os,c.value]]):Me("",!0),c.desc?(L(),H("div",{key:2,innerHTML:c.desc},null,8,kP)):Me("",!0)])]))),256)),o.apiItem.key==="mbart50"?(L(),H("div",EP,[S("div",OP,ye(e.getLang("initialize")),1),S("div",LP,[S("div",{class:"hover-scale-120 test-btn",onClick:t[1]||(t[1]=(...c)=>o.onMbart50Initialize&&o.onMbart50Initialize(...c))},[i.mbart50Loading?(L(),Ze(s,{key:0,name:"loading"})):(L(),H(He,{key:1},[Xt(ye(e.getLang("initialize")),1)],64))]),S("p",{class:"common-red",innerHTML:e.getLang("download_model_desc")},null,8,IP),S("p",{class:"common-red",innerHTML:e.getLang("download_model_desc2")},null,8,PP)])])):Me("",!0),o.apiItem.key==="mbart50"&&i.mbart50Message?(L(),H("div",DP,[RP,S("div",NP,[S("div",{class:at([i.mbart50Success?"":"common-red"])},ye(i.mbart50Message),3)])])):Me("",!0),S("div",MP,[S("div",FP,ye(e.getLang("translate_test")),1),S("div",$P,[Te(S("textarea",{class:"test-input","onUpdate:modelValue":t[2]||(t[2]=c=>i.testText=c)},null,512),[[Mi,i.testText]])])]),S("div",BP,[HP,S("div",jP,[S("div",{class:"hover-scale-120 test-btn",onClick:t[3]||(t[3]=(...c)=>o.onTestClick&&o.onTestClick(...c))},[i.loading?(L(),Ze(s,{key:0,name:"loading"})):(L(),H(He,{key:1},[Xt(ye(e.getLang("test")),1)],64))])])]),S("div",UP,[WP,S("div",KP,[!i.translateSuccess&&i.errorMessage?(L(),H("div",VP,ye(i.errorMessage),1)):Me("",!0),i.translatedText?Te((L(),H("textarea",{key:1,class:"test-input","onUpdate:modelValue":t[4]||(t[4]=c=>i.translatedText=c)},null,512)),[[Mi,i.translatedText]]):Me("",!0)])]),S("div",qP,[zP,S("div",GP,[S("div",YP,[S("div",XP,[Xt("[?] "),S("a",{href:e.globals.docs+"/TranslationApiConfiguration.html#tagcomplete-translation-enhancement",target:"_blank"},"[Wiki] TagComplete Translation enhancement",8,JP)])]),S("div",{innerHTML:e.getLang("tagcomplete_translate_desc")},null,8,ZP),S("div",{class:"common-red",innerHTML:e.getLang("tagcomplete_translate_desc2")},null,8,QP),S("div",eD,[Te(S("select",{"onUpdate:modelValue":t[5]||(t[5]=c=>i.tagCompleteFileKey=c),onChange:t[6]||(t[6]=c=>i.tagCompleteResults=[])},[(L(!0),H(He,null,ht(i.tagCompleteFiles,c=>(L(),H("option",{value:c.key},ye(c.name),9,tD))),256))],544),[[Os,i.tagCompleteFileKey]]),Te((L(),H("div",{class:"refresh-btn hover-scale-120",onClick:t[7]||(t[7]=(...c)=>o.refreshCSVs&&o.refreshCSVs(...c))},[i.tagCompleteFilesLoading?(L(),Ze(s,{key:0,name:"loading"})):(L(),Ze(s,{key:1,name:"refresh"}))])),[[l,e.getLang("refresh")]])]),S("label",{class:"onlyCsvOnAuto",style:bt({display:i.tagCompleteFileKey?"flex":"none"})},[Te(S("input",{class:"hover-scale-120",type:"checkbox",value:"1","onUpdate:modelValue":t[8]||(t[8]=c=>i.onlyCsvOnAutoValue=c)},null,512),[[n1,i.onlyCsvOnAutoValue]]),S("span",null,ye(e.getLang("only_csv_on_auto")),1)],4)])]),Te(S("div",nD,[rD,S("div",iD,[S("div",{class:"hover-scale-120 test-btn",onClick:t[9]||(t[9]=(...c)=>o.onTagCompleteTestClick&&o.onTagCompleteTestClick(...c))},ye(e.getLang("test")),1),Te(S("div",oD,[(L(!0),H(He,null,ht(i.tagCompleteResults,c=>(L(),H("p",{key:c},ye(c),1))),128))],512),[[Ot,i.tagCompleteResults.length>0]])])],512),[[Ot,i.tagCompleteFileKey]])]),S("div",sD,[S("div",{class:"translate-save hover-scale-120",onClick:t[10]||(t[10]=(...c)=>o.onSaveClick&&o.onSaveClick(...c))},ye(e.getLang("save")),1),S("div",{class:"translate-close hover-scale-120",onClick:t[11]||(t[11]=(...c)=>o.onCloseClick&&o.onCloseClick(...c))},ye(e.getLang("close")),1)])])])):Me("",!0)}const lD=Mn(nP,[["render",aD]]),uD={name:"SelectLanguage",components:{IconSvg:_r},mixins:[Pr],props:{},data(){return{isOpen:!1}},computed:{},mounted(){},methods:{open(){this.isOpen=!0,this.$nextTick(()=>{this.scrollToSelectedItem()})},close(){this.isOpen=!1},onLanguageClick(e){this.$emit("update:languageCode",e.code),this.close()},scrollToSelectedItem(){const e=this.$refs.items;for(let t=0;t<e.length;t++)if(e[t].classList.contains("selected")){e[t].scrollIntoView({behavior:"smooth",block:"center"});break}}}},cD=["onClick"];function fD(e,t,n,r,i,o){const s=lt("icon-svg");return i.isOpen?(L(),H("div",{key:0,class:"physton-prompt-select-language",onClick:t[3]||(t[3]=(...l)=>o.close&&o.close(...l))},[S("div",{class:"language-main",onClick:t[2]||(t[2]=yt(()=>{},["stop"]))},[S("div",{class:"language-close",onClick:t[0]||(t[0]=(...l)=>o.close&&o.close(...l))},[xe(s,{name:"close"})]),S("div",{class:"language-list",onClick:t[1]||(t[1]=yt(()=>{},["stop"]))},[(L(!0),H(He,null,ht(e.languages,l=>(L(),H("div",{key:l.code,class:at(["language-item",l.code==e.languageCode?"selected":""]),ref_for:!0,ref:"items",onClick:c=>o.onLanguageClick(l)},ye(l.code)+" - "+ye(l.name),11,cD))),128))])])])):Me("",!0)}const dD=Mn(uD,[["render",fD]]),pD={components:{IconSvg:_r},props:{},mixins:[Pr],data(){return{favoriteKey:"",favorites:[{name:"txt2img",type:"prompt",key:"txt2img",list:[]},{name:"txt2img",type:"negative_prompt",key:"txt2img_neg",list:[]},{name:"img2img",type:"prompt",key:"img2img",list:[]},{name:"img2img",type:"negative_prompt",key:"img2img_neg",list:[]}],isShow:!1,loading:!1,emptyMsg:"",mouseEnter:!1,currentItem:{}}},emits:["use"],mounted(){this.favorites.forEach(e=>{this.getFavorites(e.key)})},methods:{formatTime(e){return me.formatTime(e*1e3,!1)},getFavorites(e){if(!e)return;let t=this.favorites.find(n=>n.key===e);t&&(this.loading=!0,this.gradioAPI.getFavorites(e).then(n=>{n&&n.length>0&&(n.reverse(),n.forEach(r=>{r.is_favorite=!0}),t.list=n),window.phystonPromptfavorites=this.favorites,this.emptyMsg=this.getLang("no_favorite"),this.loading=!1}).catch(n=>{this.emptyMsg=this.getLang("get_favorite_error"),this.loading=!1}))},show(e,t){if(!(!e||!t)){if(this.favoriteKey=e,this.isShow){this.isShow=!1;return}this.mouseEnter=!1,this.loading=!0,this.isShow=!0,this.$refs.favorite.style.top=t.pageY+2+"px",this.$refs.favorite.style.left=t.pageX+2+"px",this.getFavorites(this.favoriteKey),setTimeout(()=>{this.mouseEnter||this.hide()},3e3)}},hide(){this.mouseEnter=!1,this.isShow=!1},onMouseEnter(){this.mouseEnter=!0},onMouseLeave(){this.hide()},onTabClick(e){this.favoriteKey=e,this.getFavorites(this.favoriteKey)},onFavoriteClick(e){let t=this.favorites.find(r=>r.key===this.favoriteKey);if(!t)return;let n=t.list[e];n.is_favorite?this.gradioAPI.unFavorite(this.favoriteKey,n.id).then(r=>{r&&(n.is_favorite=!1,window.phystonPromptfavorites=this.favorites)}):this.gradioAPI.doFavorite(this.favoriteKey,n.id).then(r=>{r&&(n.is_favorite=!0,window.phystonPromptfavorites=this.favorites)})},onCopyClick(e){let t=this.favorites.find(r=>r.key===this.favoriteKey);if(!t)return;let n=t.list[e];this.$copyText(n.prompt).then(()=>{this.$toastr.success("success!")}).catch(()=>{this.$toastr.error("error!")})},onNameKeyDown(e,t){t.keyCode===13&&t.target.blur()},onNameChange(e,t){let n=this.favorites.find(o=>o.key===this.favoriteKey);if(!n)return;let r=n.list[e];const i=t.target.value;this.gradioAPI.setFavoriteName(this.favoriteKey,r.id,i).then(o=>{o?(r.name=i,window.phystonPromptfavorites=this.favorites):t.target.value=r.name}).catch(o=>{t.target.value=r.name})},onItemMouseEnter(e){let t=this.favorites.find(n=>n.key===this.favoriteKey);t&&(this.currentItem=t.list[e])},onItemMouseLeave(e){this.currentItem={}},onUseClick(e){let t=this.favorites.find(n=>n.key===this.favoriteKey);t&&(this.hide(),this.$emit("use",t.list[e]))}}},hD={class:"popup-tabs"},gD=["onClick"],mD={class:"tab-name"},vD={class:"tab-type"},yD={class:"tab-count"},bD={class:"popup-detail"},CD={class:"popup-item-tags"},_D={key:0,class:"item-wrap"},wD={key:1,class:"item-tag"},TD={class:"item-tag-value"},xD={class:"item-tag-local-value"},SD={class:"content-list"},AD=["onMouseenter","onMouseleave"],kD={class:"item-header"},ED={class:"item-header-left"},OD={class:"item-header-index"},LD={class:"item-header-time"},ID={class:"item-header-name"},PD=["value","onKeydown","onChange","placeholder"],DD={class:"item-header-right"},RD=["onClick"],ND=["onClick"],MD=["onClick"],FD=["onClick"],$D={class:"item-prompt"},BD={class:"content-empty"},HD={key:1};function jD(e,t,n,r,i,o){const s=lt("icon-svg"),l=rl("tooltip");return Te((L(),H("div",{class:"physton-prompt-favorite",ref:"favorite",onMouseenter:t[0]||(t[0]=(...c)=>o.onMouseEnter&&o.onMouseEnter(...c)),onMouseleave:t[1]||(t[1]=(...c)=>o.onMouseLeave&&o.onMouseLeave(...c)),onClick:t[2]||(t[2]=yt(()=>{},["stop"]))},[S("div",hD,[(L(!0),H(He,null,ht(i.favorites,c=>(L(),H("div",{key:c.key,class:at(["popup-tab",c.key===i.favoriteKey?"active":""]),onClick:d=>o.onTabClick(c.key)},[S("div",mD,ye(e.getLang(c.name)),1),S("div",vD,ye(e.getLang(c.type)),1),S("div",yD,ye(c.list.length),1)],10,gD))),128))]),Te(S("div",bD,[S("div",CD,[(L(!0),H(He,null,ht(i.currentItem.tags,(c,d)=>(L(),H(He,{key:d},[c.type&&c.type==="wrap"?(L(),H("div",_D)):(L(),H("div",wD,[S("div",TD,ye(c.value),1),S("div",xD,ye(c.localValue),1)]))],64))),128))])],512),[[Ot,i.currentItem&&i.currentItem.tags]]),(L(!0),H(He,null,ht(i.favorites,c=>(L(),H("div",{key:c.key,class:at(["popup-tab-content",c.key===i.favoriteKey?"active":""])},[Te(S("div",SD,[(L(!0),H(He,null,ht(c.list,(d,h)=>(L(),H("div",{class:"content-item",key:d.id,onMouseenter:p=>o.onItemMouseEnter(h),onMouseleave:p=>o.onItemMouseLeave(h)},[S("div",kD,[S("div",ED,[S("div",OD,ye(c.list.length-h),1),S("div",LD,ye(o.formatTime(d.time)),1),S("div",ID,[S("input",{class:"header-name-input",value:d.name,onKeydown:p=>o.onNameKeyDown(h,p),onChange:p=>o.onNameChange(h,p),placeholder:e.getLang("unset_name")},null,40,PD)])]),S("div",DD,[Te((L(),H("div",{class:"header-btn-favorite hover-scale-140",onClick:p=>o.onFavoriteClick(h)},[xe(s,{name:"favorite-yes"})],8,RD)),[[Ot,d.is_favorite],[l,e.getLang("remove_from_favorite")]]),Te((L(),H("div",{class:"header-btn-favorite hover-scale-140",onClick:p=>o.onFavoriteClick(h)},[xe(s,{name:"favorite-no"})],8,ND)),[[Ot,!d.is_favorite],[l,e.getLang("add_to_favorite")]]),Te((L(),H("div",{class:"header-btn-copy hover-scale-140",onClick:p=>o.onCopyClick(h)},[xe(s,{name:"copy"})],8,MD)),[[l,e.getLang("copy_to_clipboard")]]),Te((L(),H("div",{class:"header-btn-use hover-scale-140",onClick:p=>o.onUseClick(h)},[xe(s,{name:"use"})],8,FD)),[[l,e.getLang("use")]])])]),S("div",$D,ye(d.prompt),1)],40,AD))),128))],512),[[Ot,c.list.length>0]]),Te(S("div",BD,[i.loading?(L(),Ze(s,{key:0,name:"loading"})):(L(),H("span",HD,ye(i.emptyMsg),1))],512),[[Ot,c.list.length===0]])],2))),128))],544)),[[Ot,i.isShow]])}const UD=Mn(pD,[["render",jD]]),WD={components:{IconSvg:_r},props:{},mixins:[Pr],data(){return{historyKey:"",histories:[{name:"txt2img",type:"prompt",key:"txt2img",list:[]},{name:"txt2img",type:"negative_prompt",key:"txt2img_neg",list:[]},{name:"img2img",type:"prompt",key:"img2img",list:[]},{name:"img2img",type:"negative_prompt",key:"img2img_neg",list:[]}],isShow:!1,loading:!1,emptyMsg:"",mouseEnter:!1,currentItem:{}}},emits:["use","refreshFavorites"],mounted(){},methods:{formatTime(e){return me.formatTime(e*1e3,!1)},getHistories(e){if(!e)return;let t=this.histories.find(n=>n.key===e);t&&(this.loading=!0,this.gradioAPI.getHistories(e).then(n=>{n&&n.length>0&&(n.reverse(),t.list=n),this.emptyMsg=this.getLang("no_history"),this.loading=!1}).catch(n=>{this.emptyMsg=this.getLang("get_history_error"),this.loading=!1}))},show(e,t){if(!(!e||!t)){if(this.historyKey=e,this.isShow){this.isShow=!1;return}this.mouseEnter=!1,this.loading=!0,this.isShow=!0,this.$refs.history.style.top=t.pageY+2+"px",this.$refs.history.style.left=t.pageX+2+"px",this.getHistories(this.historyKey),setTimeout(()=>{this.mouseEnter||this.hide()},3e3)}},hide(){this.mouseEnter=!1,this.isShow=!1},onMouseEnter(){this.mouseEnter=!0},onMouseLeave(){this.hide()},onTabClick(e){this.historyKey=e,this.getHistories(this.historyKey)},onDeleteClick(e){let t=this.histories.find(r=>r.key===this.historyKey);if(!t)return;let n=t.list[e];this.gradioAPI.deleteHistory(this.historyKey,n.id).then(r=>{r&&t.list.splice(e,1)})},onFavoriteClick(e){let t=this.histories.find(r=>r.key===this.historyKey);if(!t)return;let n=t.list[e];n.is_favorite?this.gradioAPI.unFavorite(this.historyKey,n.id).then(r=>{r&&(n.is_favorite=!1,this.$emit("refreshFavorites",this.historyKey))}):this.gradioAPI.doFavorite(this.historyKey,n.id).then(r=>{r&&(n.is_favorite=!0,this.$emit("refreshFavorites",this.historyKey))})},onCopyClick(e){let t=this.histories.find(r=>r.key===this.historyKey);if(!t)return;let n=t.list[e];this.$copyText(n.prompt).then(()=>{this.$toastr.success("success!")}).catch(()=>{this.$toastr.error("error!")})},onNameKeyDown(e,t){t.keyCode===13&&t.target.blur()},onNameChange(e,t){let n=this.histories.find(o=>o.key===this.historyKey);if(!n)return;let r=n.list[e];const i=t.target.value;this.gradioAPI.setHistoryName(this.historyKey,r.id,i).then(o=>{o?(r.name=i,this.$emit("refreshFavorites",this.historyKey)):t.target.value=r.name}).catch(o=>{t.target.value=r.name})},onItemMouseEnter(e){let t=this.histories.find(n=>n.key===this.historyKey);t&&(this.currentItem=t.list[e])},onItemMouseLeave(e){this.currentItem={}},onUseClick(e){let t=this.histories.find(n=>n.key===this.historyKey);t&&(this.hide(),this.$emit("use",t.list[e]))},onDeleteAllHistoryClick(){let e=this.histories.find(t=>t.key===this.historyKey);e&&confirm(this.getLang("delete_all_history_confirm"))&&this.gradioAPI.deleteHistories(this.historyKey).then(t=>{e.list=[]}).catch(t=>{})}}},KD={class:"popup-tabs"},VD=["onClick"],qD={class:"tab-name"},zD={class:"tab-type"},GD={class:"tab-count"},YD={class:"popup-detail"},XD={class:"popup-item-tags"},JD={key:0,class:"item-wrap"},ZD={key:1,class:"item-tag"},QD={class:"item-tag-value"},eR={class:"item-tag-local-value"},tR={class:"content-list"},nR=["onMouseenter","onMouseleave"],rR={class:"item-header"},iR={class:"item-header-left"},oR={class:"item-header-index"},sR={class:"item-header-time"},aR={class:"item-header-name"},lR=["value","onKeydown","onChange","placeholder"],uR={class:"item-header-right"},cR=["onClick"],fR=["onClick"],dR=["onClick"],pR=["onClick"],hR=["onClick"],gR={class:"item-prompt"},mR={class:"content-empty"},vR={key:1};function yR(e,t,n,r,i,o){const s=lt("icon-svg"),l=rl("tooltip");return Te((L(),H("div",{class:"physton-prompt-history",ref:"history",onMouseenter:t[1]||(t[1]=(...c)=>o.onMouseEnter&&o.onMouseEnter(...c)),onMouseleave:t[2]||(t[2]=(...c)=>o.onMouseLeave&&o.onMouseLeave(...c)),onClick:t[3]||(t[3]=yt(()=>{},["stop"]))},[S("div",KD,[(L(!0),H(He,null,ht(i.histories,c=>(L(),H("div",{key:c.key,class:at(["popup-tab",c.key===i.historyKey?"active":""]),onClick:d=>o.onTabClick(c.key)},[S("div",qD,ye(e.getLang(c.name)),1),S("div",zD,ye(e.getLang(c.type)),1),S("div",GD,ye(c.list.length),1)],10,VD))),128))]),Te(S("div",YD,[S("div",XD,[(L(!0),H(He,null,ht(i.currentItem.tags,(c,d)=>(L(),H(He,{key:d},[c.type&&c.type==="wrap"?(L(),H("div",JD)):(L(),H("div",ZD,[S("div",QD,ye(c.value),1),S("div",eR,ye(c.localValue),1)]))],64))),128))])],512),[[Ot,i.currentItem&&i.currentItem.tags]]),(L(!0),H(He,null,ht(i.histories,c=>(L(),H("div",{key:c.key,class:at(["popup-tab-content",c.key===i.historyKey?"active":""])},[Te(S("div",tR,[S("div",{class:"clear-btn",onClick:t[0]||(t[0]=(...d)=>o.onDeleteAllHistoryClick&&o.onDeleteAllHistoryClick(...d))},[xe(s,{name:"remove"}),Xt(" "+ye(e.getLang("delete_all_history")),1)]),(L(!0),H(He,null,ht(c.list,(d,h)=>(L(),H("div",{class:"content-item",key:d.id,onMouseenter:p=>o.onItemMouseEnter(h),onMouseleave:p=>o.onItemMouseLeave(h)},[S("div",rR,[S("div",iR,[S("div",oR,ye(c.list.length-h),1),S("div",sR,ye(o.formatTime(d.time)),1),S("div",aR,[S("input",{class:"header-name-input",value:d.name,onKeydown:p=>o.onNameKeyDown(h,p),onChange:p=>o.onNameChange(h,p),placeholder:e.getLang("unset_name")},null,40,lR)])]),S("div",uR,[S("div",{class:"header-btn-favorite hover-scale-140",onClick:p=>o.onDeleteClick(h)},[xe(s,{name:"remove"})],8,cR),Te((L(),H("div",{class:"header-btn-favorite hover-scale-140",onClick:p=>o.onFavoriteClick(h)},[xe(s,{name:"favorite-yes"})],8,fR)),[[Ot,d.is_favorite],[l,e.getLang("remove_from_favorite")]]),Te((L(),H("div",{class:"header-btn-favorite hover-scale-140",onClick:p=>o.onFavoriteClick(h)},[xe(s,{name:"favorite-no"})],8,dR)),[[Ot,!d.is_favorite],[l,e.getLang("add_to_favorite")]]),Te((L(),H("div",{class:"header-btn-copy hover-scale-140",onClick:p=>o.onCopyClick(h)},[xe(s,{name:"copy"})],8,pR)),[[l,e.getLang("copy_to_clipboard")]]),Te((L(),H("div",{class:"header-btn-use hover-scale-140",onClick:p=>o.onUseClick(h)},[xe(s,{name:"use"})],8,hR)),[[l,e.getLang("use")]])])]),S("div",gR,ye(d.prompt),1)],40,nR))),128))],512),[[Ot,c.list.length>0]]),Te(S("div",mR,[i.loading?(L(),Ze(s,{key:0,name:"loading"})):(L(),H("span",vR,ye(i.emptyMsg),1))],512),[[Ot,c.list.length===0]])],2))),128))],544)),[[Ot,i.isShow]])}const bR=Mn(WD,[["render",yR]]),CR={name:"ExtensionCss",components:{IconSvg:_r},mixins:[Pr],props:{},data(){return{isOpen:!1,list:[]}},computed:{},mounted(){},methods:{init(){this.refresh(!0)},refresh(e=!1){this.gradioAPI.getExtensionCssList().then(t=>{let n=[];for(let r=0;r<t.length;r++)t[r].manifest=JSON.parse(t[r].manifest),t[r].manifest&&typeof t[r].manifest=="object"&&t[r].manifest.name&&(t[r].selected=t[r].selected||!1,t[r].id="physton-prompt-extension-"+t[r].dir,n.push(t[r]));n.forEach(r=>{r.sort=r.manifest.type+"."+r.dir}),n.sort((r,i)=>r.sort>i.sort?1:-1),this.list=n,e&&this.list.forEach(r=>{r.selected&&me.loadCSS(r.style,r.id,!0,!1)})})},getName(e){if(!e)return"";let t=e.manifest.name;return e.manifest.i18n&&e.manifest.i18n[this.languageCode]&&(t=e.manifest.i18n[this.languageCode]),t},onChangeSelect(e){let t=this.list.find(n=>n.id===e);t&&(t.selected=!t.selected,t.selected?me.loadCSS(t.style,t.id,!0,!1):me.removeCSS(t.id),this.gradioAPI.setData(t.dataName,t.selected))},open(){this.isOpen=!0,this.refresh(!1)},close(){this.isOpen=!1}}},_R={class:"extension-table"},wR=["checked","onChange"],TR={class:"extension-name"},xR={class:"extension-type"},SR={class:"extension-dir"},AR={class:"extension-author"};function kR(e,t,n,r,i,o){const s=lt("icon-svg");return i.isOpen?(L(),H("div",{key:0,class:"physton-prompt-extension-css",onClick:t[3]||(t[3]=(...l)=>o.close&&o.close(...l))},[S("div",{class:"extension-main",onClick:t[2]||(t[2]=yt(()=>{},["stop"]))},[S("div",{class:"extension-close",onClick:t[0]||(t[0]=(...l)=>o.close&&o.close(...l))},[xe(s,{name:"close"})]),S("div",{class:"extension-list",onClick:t[1]||(t[1]=yt(()=>{},["stop"]))},[S("table",_R,[(L(!0),H(He,null,ht(i.list,(l,c)=>(L(),H("tr",{key:l.dir,class:"extension-item",ref_for:!0,ref:"items"},[S("td",null,[S("input",{class:"extension-checkbox",type:"checkbox",name:"extension-item",checked:l.selected,onChange:d=>o.onChangeSelect(l.id)},null,40,wR)]),S("td",TR,ye(o.getName(l)),1),S("td",xR,ye(e.getLang(l.manifest.type)),1),S("td",SR,ye(l.dir),1),S("td",AR,[l.manifest.author?(L(),H(He,{key:0},[Xt("By: "+ye(l.manifest.author),1)],64)):Me("",!0)])]))),128))])])])])):Me("",!0)}const ER=Mn(CR,[["render",kR]]),OR={name:"PromptFormat",components:{IconSvg:_r},mixins:[Pr],props:{autoRemoveSpace:{type:Boolean,default:!1},autoRemoveLastComma:{type:Boolean,default:!1},autoKeepWeightZero:{type:Boolean,default:!1},autoKeepWeightOne:{type:Boolean,default:!1},autoBreakBeforeWrap:{type:Boolean,default:!1},autoBreakAfterWrap:{type:Boolean,default:!1}},data(){return{isOpen:!1}},emits:["update:autoRemoveSpace","update:autoRemoveLastComma","update:autoKeepWeightZero","update:autoKeepWeightOne","update:autoBreakBeforeWrap","update:autoBreakAfterWrap"],computed:{},mounted(){},methods:{open(){this.isOpen=!0},close(){this.isOpen=!1}}},LR={class:"format-item"},IR=["checked"],PR=["innerHTML"],DR={class:"format-item"},RR=["checked"],NR=["innerHTML"],MR={class:"format-item"},FR=["checked"],$R=["innerHTML"],BR={class:"format-item"},HR=["checked"],jR=["innerHTML"],UR={class:"format-item"},WR=["checked"],KR=["innerHTML"];function VR(e,t,n,r,i,o){const s=lt("icon-svg");return i.isOpen?(L(),H("div",{key:0,class:"physton-prompt-format",onClick:t[8]||(t[8]=(...l)=>o.close&&o.close(...l))},[S("div",{class:"format-main",onClick:t[7]||(t[7]=yt(()=>{},["stop"]))},[S("div",{class:"format-close",onClick:t[0]||(t[0]=(...l)=>o.close&&o.close(...l))},[xe(s,{name:"close"})]),S("div",{class:"format-list",onClick:t[6]||(t[6]=yt(()=>{},["stop"]))},[S("div",LR,[S("input",{class:"format-checkbox",type:"checkbox",checked:n.autoRemoveSpace,onChange:t[1]||(t[1]=l=>e.$emit("update:autoRemoveSpace",l.target.checked))},null,40,IR),S("div",{class:"format-desc",innerHTML:e.getLang("is_remove_space")},null,8,PR)]),S("div",DR,[S("input",{class:"format-checkbox",type:"checkbox",checked:n.autoRemoveLastComma,onChange:t[2]||(t[2]=l=>e.$emit("update:autoRemoveLastComma",l.target.checked))},null,40,RR),S("div",{class:"format-desc",innerHTML:e.getLang("is_remove_last_comma")},null,8,NR)]),S("div",MR,[S("input",{class:"format-checkbox",type:"checkbox",checked:n.autoKeepWeightZero,onChange:t[3]||(t[3]=l=>e.$emit("update:autoKeepWeightZero",l.target.checked))},null,40,FR),S("div",{class:"format-desc",innerHTML:e.getLang("is_keep_weight_zero")},null,8,$R)]),S("div",BR,[S("input",{class:"format-checkbox",type:"checkbox",checked:n.autoBreakBeforeWrap,onChange:t[4]||(t[4]=l=>e.$emit("update:autoBreakBeforeWrap",l.target.checked))},null,40,HR),S("div",{class:"format-desc",innerHTML:e.getLang("is_break_before_wrap")},null,8,jR)]),S("div",UR,[S("input",{class:"format-checkbox",type:"checkbox",checked:n.autoBreakAfterWrap,onChange:t[5]||(t[5]=l=>e.$emit("update:autoBreakAfterWrap",l.target.checked))},null,40,WR),S("div",{class:"format-desc",innerHTML:e.getLang("is_break_after_wrap")},null,8,KR)])])])])):Me("",!0)}const qR=Mn(OR,[["render",VR]]),zR={name:"PackagesState",components:{IconSvg:_r},mixins:[Pr],props:{python:{type:String,default:"./python"},packagesState:{type:Array,default:()=>[]}},data(){return{todayNotShow:!1,isOpen:!1,loading:!1,showResult:!1,result:`1112323
|
||
sfsdfsdf
|
||
2222
|
||
3333
|
||
1112323
|
||
sfsdfsdf
|
||
2222
|
||
3333
|
||
1112323
|
||
sfsdfsdf
|
||
2222
|
||
3333`}},emits:[],computed:{},watch:{packagesState:{handler(){this.isAllInstalled()||this.open()},deep:!0}},mounted(){},methods:{isInstalled(e){for(let t of this.packagesState)if(t.name===e)return t.state;return!1},isAllInstalled(){for(let e of this.packagesState)if(!e.state)return!1;return!0},getCommand(e){return`${this.python} -m pip install ${e.package}`},onInstallClick(){if(this.loading)return;this.loading=!0,this.showResult=!0,this.result="";let e=[];this.packagesState.forEach(r=>{r.state||e.push(r)});const t=(r=!1)=>{this.loading=!1,r&&(this.result+=`
|
||
complete!`,setTimeout(this.close,2e3)),this.scrollToBottom()},n=()=>{let r=e.shift();if(!r)return t(!0);this.gradioAPI.installPackage(r.name,r.package).then(i=>{this.result+=`${i.message}
|
||
`,i.state?(this.scrollToBottom(),n()):t(!1)}).catch(i=>{console.log(i),this.result+=`${r.name} install failed
|
||
${i.message}
|
||
`,t(!1)})};n()},scrollToBottom(){this.$nextTick(()=>{this.$refs.result.scrollTop=this.$refs.result.scrollHeight})},onTodayNotShowChange(){this.todayNotShow=!this.todayNotShow,this.gradioAPI.setData("packagesStateTodayNotShow",new Date().toLocaleDateString())},open(){this.gradioAPI.getData("packagesStateTodayNotShow").then(e=>{e&&e===new Date().toLocaleDateString()?this.close():(this.result="",this.loading=!1,this.showResult=!1,this.isOpen=!0)}).catch(e=>{})},close(){this.isOpen=!1}}},GR={class:"today-now-show"},YR=["value"],XR={class:"state-body-name"},JR=["innerHTML"],ZR={class:"package-list"},QR={class:"package-name"},eN={class:"package-command"},tN={key:0,class:"install-result"};function nN(e,t,n,r,i,o){const s=lt("icon-svg");return i.isOpen?(L(),H("div",{key:0,class:"physton-packages-state",onClick:t[6]||(t[6]=(...l)=>o.close&&o.close(...l))},[S("div",{class:"state-main",onClick:t[5]||(t[5]=yt(()=>{},["stop"]))},[S("div",{class:"state-close",onClick:t[0]||(t[0]=(...l)=>o.close&&o.close(...l))},[xe(s,{name:"close"})]),S("div",{class:"state-body",onClick:t[4]||(t[4]=yt(()=>{},["stop"]))},[S("div",GR,[S("label",null,[S("input",{type:"checkbox",value:i.todayNotShow,onChange:t[1]||(t[1]=(...l)=>o.onTodayNotShowChange&&o.onTodayNotShowChange(...l))},null,40,YR),Xt(" "+ye(e.getLang("today_not_show")),1)])]),S("div",XR,ye(e.globals.shortName),1),S("div",{class:"state-body-language",onClick:t[2]||(t[2]=l=>e.$emit("click:selectLanguage",l))},[xe(s,{name:"i18n"}),S("div",null,"Language: "+ye(e.langName),1)]),S("div",{class:"state-body-desc",innerHTML:e.getLang("packages_desc")},null,8,JR),S("div",ZR,[(L(!0),H(He,null,ht(n.packagesState,l=>(L(),H("div",{key:l.name,class:"package-item"},[S("div",QR,ye(l.name),1),S("div",{class:at(["package-state",l.state?"installed":"not_install"])},ye(e.getLang(l.state?"installed":"not_install")),3),S("div",eN,ye(o.getCommand(l)),1)]))),128))]),S("div",{class:"btn-packages-install hover-scale-120",onClick:t[3]||(t[3]=(...l)=>o.onInstallClick&&o.onInstallClick(...l))},[i.loading?(L(),Ze(s,{key:0,name:"loading"})):(L(),H(He,{key:1},[Xt(ye(e.getLang("install")),1)],64))]),i.showResult?(L(),H("div",tN,[Xt(ye(e.getLang("packages_installing"))+" ",1),i.result?(L(),H("div",{key:0,class:"result-content",ref:"result"},ye(i.result),513)):Me("",!0)])):Me("",!0)])])])):Me("",!0)}const rN=Mn(zR,[["render",nN]]),iN={name:"ChatgptPrompt",components:{IconSvg:_r},mixins:[Pr],props:{},data(){return{isOpen:!1,api:{},configs:[],chatPreset:"",hidePanels:{api:!0},imageDesc:"",promptResult:"",saveConfigIng:!1,genIng:!1}},emits:["use"],computed:{},mounted(){},methods:{open(){this.isOpen=!0,this.saveConfigIng=!1,this.genIng=!1,this.gradioAPI.getDatas(["chatgpt_prompts_preset","chatgpt_key","translate_api.openai"]).then(e=>{console.log(e),e.chatgpt_prompts_preset!==null?this.chatPreset=e.chatgpt_prompts_preset:this.chatPreset=this.getLang("chatgpt_prompts_preset"),this.configs=[];let t={},n=me.getTranslateApiItem(this.translateApis,"openai");if(n=JSON.parse(JSON.stringify(n)),e.chatgpt_key&&typeof e.chatgpt_key=="object")for(const r of n.config)t[r.key]=e.chatgpt_key[r.key]||r.default||"";else for(const r of n.config)t[r.key]=r.default||"";t.api_key||(this.hidePanels.api=!1);for(const r of n.config)r.value=t[r.key],this.configs.push(r)})},close(){this.isOpen=!1},onUnfoldClick(e){this.hidePanels[e]=!this.hidePanels[e]},onSaveConfigClick(){if(this.saveConfigIng)return;this.saveConfigIng=!0;let e={};this.configs.forEach(t=>{e[t.key]=t.value}),this.gradioAPI.setData("chatgpt_key",e).then(t=>{this.$toastr.success(this.getLang("success")),this.saveConfigIng=!1}).catch(t=>{this.$toastr.error(t.message||t),this.saveConfigIng=!1})},onPresetChange(e){this.chatPreset=e.target.value,this._saveChatPreset()},onRestoreClick(){this.chatPreset=this.getLang("chatgpt_prompts_preset"),this._saveChatPreset()},_saveChatPreset(){this.gradioAPI.setData("chatgpt_prompts_preset",this.chatPreset)},onGenClick(){if(this.genIng)return;if(!this.imageDesc)return this.$refs.imageDesc.focus();if(this.imageDesc=this.imageDesc.trim(),!this.imageDesc)return this.$refs.imageDesc.focus();this.genIng=!0;let e=[{role:"user",content:this.chatPreset},{role:"user",content:this.imageDesc}],t={};this.configs.forEach(n=>{t[n.key]=n.value}),this.gradioAPI.genOpenAI(e,t).then(n=>{n.success?this.promptResult=n.result:this.$toastr.error(n.message||"error"),this.genIng=!1}).catch(n=>{this.$toastr.error(n.message||n),this.genIng=!1})},onUseClick(){this.$emit("use",this.promptResult),this.close()}}},oN={class:"panel-header"},sN={class:"panel-title"},aN={class:"panel-content"},lN={class:"body-line"},uN={class:"line-title"},cN={class:"line-content"},fN=["onUpdate:modelValue"],dN=["onUpdate:modelValue"],pN=["value"],hN=["innerHTML"],gN={class:"body-line"},mN=S("div",{class:"line-title"},null,-1),vN={class:"line-content text-right"},yN={class:"panel-header"},bN={class:"panel-title"},CN={class:"panel-content"},_N={class:"body-line"},wN={class:"line-title"},TN={class:"line-subtitle"},xN={class:"line-content"},SN=["value"],AN={class:"body-line"},kN=S("div",{class:"line-title"},null,-1),EN={class:"line-content text-right"},ON={class:"body-line"},LN={class:"line-title"},IN={class:"line-subtitle"},PN={class:"line-content"},DN=["placeholder"],RN={class:"body-line"},NN=S("div",{class:"line-title"},null,-1),MN={class:"line-content text-right"},FN={class:"panel-header"},$N={class:"panel-title"},BN={class:"panel-content"},HN={class:"body-line"},jN={class:"line-title"},UN={class:"line-content"},WN={key:0,class:"body-line"},KN=S("div",{class:"line-title"},null,-1),VN={class:"line-content text-right"};function qN(e,t,n,r,i,o){const s=lt("icon-svg");return i.isOpen?(L(),H("div",{key:0,class:"physton-chatgpt-prompt",onClick:t[13]||(t[13]=(...l)=>o.close&&o.close(...l))},[S("div",{class:"chatgpt-main",onClick:t[12]||(t[12]=yt(()=>{},["stop"]))},[S("div",{class:"chatgpt-close",onClick:t[0]||(t[0]=(...l)=>o.close&&o.close(...l))},[xe(s,{name:"close"})]),S("div",{class:"chatgpt-body",onClick:t[11]||(t[11]=yt(()=>{},["stop"]))},[S("div",{class:at(["body-panel",i.hidePanels.api?"fold":""])},[S("div",oN,[S("div",{class:"panel-unfold",onClick:t[1]||(t[1]=l=>o.onUnfoldClick("api"))},[xe(s,{class:"hover-scale-120",name:"unfold"})]),S("div",sN,ye(e.getLang("api_config")),1)]),S("div",aN,[(L(!0),H(He,null,ht(i.configs,l=>(L(),H("div",lN,[S("div",uN,ye(l.title),1),S("div",cN,[l.type=="input"?Te((L(),H("input",{key:0,type:"text","onUpdate:modelValue":c=>l.value=c},null,8,fN)),[[Mi,l.value]]):Me("",!0),l.type=="select"?Te((L(),H("select",{key:1,"onUpdate:modelValue":c=>l.value=c},[(L(!0),H(He,null,ht(l.options,c=>(L(),H("option",{value:c},ye(c),9,pN))),256))],8,dN)),[[Os,l.value]]):Me("",!0),l.desc?(L(),H("div",{key:2,innerHTML:l.desc},null,8,hN)):Me("",!0)])]))),256)),S("div",gN,[mN,S("div",vN,[S("div",{class:"common-btn hover-scale-120",onClick:t[2]||(t[2]=(...l)=>o.onSaveConfigClick&&o.onSaveConfigClick(...l))},[i.saveConfigIng?(L(),Ze(s,{key:0,name:"loading"})):(L(),H(He,{key:1},[Xt(ye(e.getLang("save")),1)],64))])])])])],2),S("div",{class:at(["body-panel",i.hidePanels.send?"fold":""])},[S("div",yN,[S("div",{class:"panel-unfold",onClick:t[3]||(t[3]=l=>o.onUnfoldClick("send"))},[xe(s,{class:"hover-scale-120",name:"unfold"})]),S("div",bN,ye(e.getLang("image_desc")),1)]),S("div",CN,[S("div",_N,[S("div",wN,[Xt(ye(e.getLang("preset"))+" ",1),S("div",TN,ye(e.getLang("ai_one")),1)]),S("div",xN,[S("textarea",{value:i.chatPreset,onChange:t[4]||(t[4]=(...l)=>o.onPresetChange&&o.onPresetChange(...l)),style:{height:"100px"}},null,40,SN)])]),S("div",AN,[kN,S("div",EN,[S("a",{href:"javascript:",onClick:t[5]||(t[5]=(...l)=>o.onRestoreClick&&o.onRestoreClick(...l))},ye(e.getLang("restore_to_default")),1)])]),S("div",ON,[S("div",LN,[Xt(ye(e.getLang("image_desc"))+" ",1),S("div",IN,ye(e.getLang("ai_two")),1)]),S("div",PN,[Te(S("textarea",{style:{height:"100px"},ref:"imageDesc","onUpdate:modelValue":t[6]||(t[6]=l=>i.imageDesc=l),placeholder:e.getLang("input_image_desc")},null,8,DN),[[Mi,i.imageDesc]])])]),S("div",RN,[NN,S("div",MN,[S("div",{class:"common-btn hover-scale-120",onClick:t[7]||(t[7]=(...l)=>o.onGenClick&&o.onGenClick(...l))},[i.genIng?(L(),Ze(s,{key:0,name:"loading"})):(L(),H(He,{key:1},[Xt(ye(e.getLang("generate")),1)],64))])])])])],2),S("div",{class:at(["body-panel",i.hidePanels.result?"fold":""])},[S("div",FN,[S("div",{class:"panel-unfold",onClick:t[8]||(t[8]=l=>o.onUnfoldClick("result"))},[xe(s,{class:"hover-scale-120",name:"unfold"})]),S("div",$N,ye(e.getLang("generate_result")),1)]),S("div",BN,[S("div",HN,[S("div",jN,ye(e.getLang("generate_result")),1),S("div",UN,[Te(S("textarea",{style:{height:"100px"},"onUpdate:modelValue":t[9]||(t[9]=l=>i.promptResult=l)},null,512),[[Mi,i.promptResult]])])]),i.promptResult?(L(),H("div",WN,[KN,S("div",VN,[S("div",{class:"common-btn hover-scale-120",onClick:t[10]||(t[10]=(...l)=>o.onUseClick&&o.onUseClick(...l))},ye(e.getLang("use")),1)])])):Me("",!0)])],2)])])])):Me("",!0)}const zN=Mn(iN,[["render",qN]]),GN={name:"About",components:{IconSvg:_r},mixins:[Pr],data(){return{version:"",latestVersion:"",isLatestVersion:!0,isOpen:!1,loading:!1,versions:[],icons:[]}},emits:["use"],computed:{},mounted(){this.icons=[{title:"GitHub stars",url:this.globals.github+"/stargazers",image:"https://img.shields.io/github/stars/"+this.globals.name+"?style=flat-square"},{title:"GitHub forks",url:this.globals.github+"/network/members",image:"https://img.shields.io/github/forks/"+this.globals.name+"?style=flat-square"},{title:"GitHub issues",url:this.globals.github+"/issues",image:"https://img.shields.io/github/issues/"+this.globals.name+"?style=flat-square"},{title:"GitHub issues closed",url:this.globals.github+"/issues?q=is%3Aissue+is%3Aclosed",image:"https://img.shields.io/github/issues-closed/"+this.globals.name+"?style=flat-square"},{title:"GitHub license",url:this.globals.github+"/blob/master/LICENSE.md",image:"https://img.shields.io/github/license/"+this.globals.name+"?style=flat-square"},{title:"GitHub commits",url:this.globals.github+"/commits/main",image:"https://img.shields.io/github/last-commit/"+this.globals.name+"?style=flat-square"}]},methods:{open(){this.isOpen=!0,this.version="",this.latestVersion="",this.isLatestVersion=!0,this.versions=[],this.loading=!0,this.gradioAPI.getVersion().then(e=>{this.version=e.version,this.latestVersion=e.latest_version,this.isLatestVersion=e.version===e.latest_version}),this.gradioAPI.getRemoteVersions().then(e=>{this.loading=!1;let t=[];e.forEach((n,r)=>{n.is_update_readme||(n.date=me.formatTime(n.date),t.push(n))}),this.versions=t}).catch(e=>{this.loading=!1})},close(){this.isOpen=!1},commitUrl(e){return this.globals.github+"/commit/"+e},formatVersion(e){return e?e.slice(0,7):this.getLang("unknown_version")},message(e){return e=me.escapeHtml(e),e=e.replace(/Former-commit-id: [a-z0-9]{40}/g,""),e=e.trim(),e=e.replace(`
|
||
`,"<br/>"),e=e.replace(/#(\d+)/g,'<a href="'+this.globals.github+'/issues/$1" target="_blank">#$1</a>'),e}}},YN={class:"body-title"},XN=["href"],JN=["href"],ZN=["src","alt"],QN={key:0},eM=["href"],tM={key:0,class:"has-new-version"},nM=["href"],rM=["href"],iM={class:"version-list"},oM={class:"item-header"},sM={class:"version-sha"},aM=["href"],lM={class:"version-date"},uM=["innerHTML"];function cM(e,t,n,r,i,o){const s=lt("icon-svg");return i.isOpen?(L(),H("div",{key:0,class:"physton-about-prompt",onClick:t[3]||(t[3]=(...l)=>o.close&&o.close(...l))},[S("div",{class:"about-main",onClick:t[2]||(t[2]=yt(()=>{},["stop"]))},[S("div",{class:"about-close",onClick:t[0]||(t[0]=(...l)=>o.close&&o.close(...l))},[xe(s,{name:"close"})]),S("div",{class:"about-body",onClick:t[1]||(t[1]=yt(()=>{},["stop"]))},[S("p",YN,[S("a",{href:e.globals.github,target:"_blank"},ye(e.globals.name),9,XN)]),S("p",null,[(L(!0),H(He,null,ht(i.icons,l=>(L(),H("a",{key:l.title,href:l.url,target:"_blank"},[S("img",{src:l.image,alt:l.title},null,8,ZN)],8,JN))),128))]),i.loading?Me("",!0):(L(),H("p",QN,[S("span",null,[Xt(ye(e.getLang("version"))+": ",1),S("a",{href:o.commitUrl(i.version),target:"_blank"},ye(o.formatVersion(i.version)),9,eM)]),!i.isLatestVersion&&i.latestVersion?(L(),H("span",tM,[Xt(" ("+ye(e.getLang("has_new_version"))+": ",1),S("a",{href:o.commitUrl(i.latestVersion),target:"_blank"},ye(o.formatVersion(i.latestVersion)),9,nM),Xt(")")])):Me("",!0)])),S("p",null,[Xt(ye(e.getLang("wiki_desc"))+" ",1),S("a",{href:e.replaceGlobals("{{docs}}"),target:"_blank"},"Wiki",8,rM)]),S("div",iM,[i.loading?(L(),Ze(s,{key:0,name:"loading"})):Me("",!0),(L(!0),H(He,null,ht(i.versions,l=>(L(),H("div",{class:"version-item",key:l.version},[S("div",oM,[S("div",sM,[S("a",{href:o.commitUrl(l.version),target:"_blank"},ye(o.formatVersion(l.version)),9,aM)]),S("div",lM,ye(l.date),1)]),S("div",{class:"version-msg",innerHTML:o.message(l.message)},null,8,uM)]))),128))])])])])):Me("",!0)}const fM=Mn(GN,[["render",cM]]);/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function ly(e){return typeof e>"u"||e===null}function dM(e){return typeof e=="object"&&e!==null}function pM(e){return Array.isArray(e)?e:ly(e)?[]:[e]}function hM(e,t){var n,r,i,o;if(t)for(o=Object.keys(t),n=0,r=o.length;n<r;n+=1)i=o[n],e[i]=t[i];return e}function gM(e,t){var n="",r;for(r=0;r<t;r+=1)n+=e;return n}function mM(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var vM=ly,yM=dM,bM=pM,CM=gM,_M=mM,wM=hM,on={isNothing:vM,isObject:yM,toArray:bM,repeat:CM,isNegativeZero:_M,extend:wM};function uy(e,t){var n="",r=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+=`
|
||
|
||
`+e.mark.snippet),r+" "+n):r}function ga(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=uy(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}ga.prototype=Object.create(Error.prototype),ga.prototype.constructor=ga,ga.prototype.toString=function(t){return this.name+": "+uy(this,t)};var On=ga;function cd(e,t,n,r,i){var o="",s="",l=Math.floor(i/2)-1;return r-t>l&&(o=" ... ",t=r-l+o.length),n-r>l&&(s=" ...",n=r+l-s.length),{str:o+e.slice(t,n).replace(/\t/g,"→")+s,pos:r-t+o.length}}function fd(e,t){return on.repeat(" ",t-e.length)+e}function TM(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,r=[0],i=[],o,s=-1;o=n.exec(e.buffer);)i.push(o.index),r.push(o.index+o[0].length),e.position<=o.index&&s<0&&(s=r.length-2);s<0&&(s=r.length-1);var l="",c,d,h=Math.min(e.line+t.linesAfter,i.length).toString().length,p=t.maxLength-(t.indent+h+3);for(c=1;c<=t.linesBefore&&!(s-c<0);c++)d=cd(e.buffer,r[s-c],i[s-c],e.position-(r[s]-r[s-c]),p),l=on.repeat(" ",t.indent)+fd((e.line-c+1).toString(),h)+" | "+d.str+`
|
||
`+l;for(d=cd(e.buffer,r[s],i[s],e.position,p),l+=on.repeat(" ",t.indent)+fd((e.line+1).toString(),h)+" | "+d.str+`
|
||
`,l+=on.repeat("-",t.indent+h+3+d.pos)+`^
|
||
`,c=1;c<=t.linesAfter&&!(s+c>=i.length);c++)d=cd(e.buffer,r[s+c],i[s+c],e.position-(r[s]-r[s+c]),p),l+=on.repeat(" ",t.indent)+fd((e.line+c+1).toString(),h)+" | "+d.str+`
|
||
`;return l.replace(/\n$/,"")}var xM=TM,SM=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],AM=["scalar","sequence","mapping"];function kM(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(r){t[String(r)]=n})}),t}function EM(e,t){if(t=t||{},Object.keys(t).forEach(function(n){if(SM.indexOf(n)===-1)throw new On('Unknown option "'+n+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(n){return n},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=kM(t.styleAliases||null),AM.indexOf(this.kind)===-1)throw new On('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var hn=EM;function cy(e,t){var n=[];return e[t].forEach(function(r){var i=n.length;n.forEach(function(o,s){o.tag===r.tag&&o.kind===r.kind&&o.multi===r.multi&&(i=s)}),n[i]=r}),n}function OM(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,n;function r(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(t=0,n=arguments.length;t<n;t+=1)arguments[t].forEach(r);return e}function dd(e){return this.extend(e)}dd.prototype.extend=function(t){var n=[],r=[];if(t instanceof hn)r.push(t);else if(Array.isArray(t))r=r.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(n=n.concat(t.implicit)),t.explicit&&(r=r.concat(t.explicit));else throw new On("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");n.forEach(function(o){if(!(o instanceof hn))throw new On("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(o.loadKind&&o.loadKind!=="scalar")throw new On("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(o.multi)throw new On("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(o){if(!(o instanceof hn))throw new On("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(dd.prototype);return i.implicit=(this.implicit||[]).concat(n),i.explicit=(this.explicit||[]).concat(r),i.compiledImplicit=cy(i,"implicit"),i.compiledExplicit=cy(i,"explicit"),i.compiledTypeMap=OM(i.compiledImplicit,i.compiledExplicit),i};var fy=dd,dy=new hn("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),py=new hn("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),hy=new hn("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),gy=new fy({explicit:[dy,py,hy]});function LM(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function IM(){return null}function PM(e){return e===null}var my=new hn("tag:yaml.org,2002:null",{kind:"scalar",resolve:LM,construct:IM,predicate:PM,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function DM(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function RM(e){return e==="true"||e==="True"||e==="TRUE"}function NM(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var vy=new hn("tag:yaml.org,2002:bool",{kind:"scalar",resolve:DM,construct:RM,predicate:NM,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function MM(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function FM(e){return 48<=e&&e<=55}function $M(e){return 48<=e&&e<=57}function BM(e){if(e===null)return!1;var t=e.length,n=0,r=!1,i;if(!t)return!1;if(i=e[n],(i==="-"||i==="+")&&(i=e[++n]),i==="0"){if(n+1===t)return!0;if(i=e[++n],i==="b"){for(n++;n<t;n++)if(i=e[n],i!=="_"){if(i!=="0"&&i!=="1")return!1;r=!0}return r&&i!=="_"}if(i==="x"){for(n++;n<t;n++)if(i=e[n],i!=="_"){if(!MM(e.charCodeAt(n)))return!1;r=!0}return r&&i!=="_"}if(i==="o"){for(n++;n<t;n++)if(i=e[n],i!=="_"){if(!FM(e.charCodeAt(n)))return!1;r=!0}return r&&i!=="_"}}if(i==="_")return!1;for(;n<t;n++)if(i=e[n],i!=="_"){if(!$M(e.charCodeAt(n)))return!1;r=!0}return!(!r||i==="_")}function HM(e){var t=e,n=1,r;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),r=t[0],(r==="-"||r==="+")&&(r==="-"&&(n=-1),t=t.slice(1),r=t[0]),t==="0")return 0;if(r==="0"){if(t[1]==="b")return n*parseInt(t.slice(2),2);if(t[1]==="x")return n*parseInt(t.slice(2),16);if(t[1]==="o")return n*parseInt(t.slice(2),8)}return n*parseInt(t,10)}function jM(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!on.isNegativeZero(e)}var yy=new hn("tag:yaml.org,2002:int",{kind:"scalar",resolve:BM,construct:HM,predicate:jM,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),UM=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function WM(e){return!(e===null||!UM.test(e)||e[e.length-1]==="_")}function KM(e){var t,n;return t=e.replace(/_/g,"").toLowerCase(),n=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:n*parseFloat(t,10)}var VM=/^[-+]?[0-9]+e/;function qM(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(on.isNegativeZero(e))return"-0.0";return n=e.toString(10),VM.test(n)?n.replace("e",".e"):n}function zM(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||on.isNegativeZero(e))}var by=new hn("tag:yaml.org,2002:float",{kind:"scalar",resolve:WM,construct:KM,predicate:zM,represent:qM,defaultStyle:"lowercase"}),Cy=gy.extend({implicit:[my,vy,yy,by]}),_y=Cy,wy=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Ty=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function GM(e){return e===null?!1:wy.exec(e)!==null||Ty.exec(e)!==null}function YM(e){var t,n,r,i,o,s,l,c=0,d=null,h,p,y;if(t=wy.exec(e),t===null&&(t=Ty.exec(e)),t===null)throw new Error("Date resolve error");if(n=+t[1],r=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(n,r,i));if(o=+t[4],s=+t[5],l=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c+="0";c=+c}return t[9]&&(h=+t[10],p=+(t[11]||0),d=(h*60+p)*6e4,t[9]==="-"&&(d=-d)),y=new Date(Date.UTC(n,r,i,o,s,l,c)),d&&y.setTime(y.getTime()-d),y}function XM(e){return e.toISOString()}var xy=new hn("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:GM,construct:YM,instanceOf:Date,represent:XM});function JM(e){return e==="<<"||e===null}var Sy=new hn("tag:yaml.org,2002:merge",{kind:"scalar",resolve:JM}),pd=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
||
\r`;function ZM(e){if(e===null)return!1;var t,n,r=0,i=e.length,o=pd;for(n=0;n<i;n++)if(t=o.indexOf(e.charAt(n)),!(t>64)){if(t<0)return!1;r+=6}return r%8===0}function QM(e){var t,n,r=e.replace(/[\r\n=]/g,""),i=r.length,o=pd,s=0,l=[];for(t=0;t<i;t++)t%4===0&&t&&(l.push(s>>16&255),l.push(s>>8&255),l.push(s&255)),s=s<<6|o.indexOf(r.charAt(t));return n=i%4*6,n===0?(l.push(s>>16&255),l.push(s>>8&255),l.push(s&255)):n===18?(l.push(s>>10&255),l.push(s>>2&255)):n===12&&l.push(s>>4&255),new Uint8Array(l)}function eF(e){var t="",n=0,r,i,o=e.length,s=pd;for(r=0;r<o;r++)r%3===0&&r&&(t+=s[n>>18&63],t+=s[n>>12&63],t+=s[n>>6&63],t+=s[n&63]),n=(n<<8)+e[r];return i=o%3,i===0?(t+=s[n>>18&63],t+=s[n>>12&63],t+=s[n>>6&63],t+=s[n&63]):i===2?(t+=s[n>>10&63],t+=s[n>>4&63],t+=s[n<<2&63],t+=s[64]):i===1&&(t+=s[n>>2&63],t+=s[n<<4&63],t+=s[64],t+=s[64]),t}function tF(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var Ay=new hn("tag:yaml.org,2002:binary",{kind:"scalar",resolve:ZM,construct:QM,predicate:tF,represent:eF}),nF=Object.prototype.hasOwnProperty,rF=Object.prototype.toString;function iF(e){if(e===null)return!0;var t=[],n,r,i,o,s,l=e;for(n=0,r=l.length;n<r;n+=1){if(i=l[n],s=!1,rF.call(i)!=="[object Object]")return!1;for(o in i)if(nF.call(i,o))if(!s)s=!0;else return!1;if(!s)return!1;if(t.indexOf(o)===-1)t.push(o);else return!1}return!0}function oF(e){return e!==null?e:[]}var ky=new hn("tag:yaml.org,2002:omap",{kind:"sequence",resolve:iF,construct:oF}),sF=Object.prototype.toString;function aF(e){if(e===null)return!0;var t,n,r,i,o,s=e;for(o=new Array(s.length),t=0,n=s.length;t<n;t+=1){if(r=s[t],sF.call(r)!=="[object Object]"||(i=Object.keys(r),i.length!==1))return!1;o[t]=[i[0],r[i[0]]]}return!0}function lF(e){if(e===null)return[];var t,n,r,i,o,s=e;for(o=new Array(s.length),t=0,n=s.length;t<n;t+=1)r=s[t],i=Object.keys(r),o[t]=[i[0],r[i[0]]];return o}var Ey=new hn("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:aF,construct:lF}),uF=Object.prototype.hasOwnProperty;function cF(e){if(e===null)return!0;var t,n=e;for(t in n)if(uF.call(n,t)&&n[t]!==null)return!1;return!0}function fF(e){return e!==null?e:{}}var Oy=new hn("tag:yaml.org,2002:set",{kind:"mapping",resolve:cF,construct:fF}),hd=_y.extend({implicit:[xy,Sy],explicit:[Ay,ky,Ey,Oy]}),wi=Object.prototype.hasOwnProperty,fu=1,Ly=2,Iy=3,du=4,gd=1,dF=2,Py=3,pF=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,hF=/[\x85\u2028\u2029]/,gF=/[,\[\]\{\}]/,Dy=/^(?:!|!!|![a-z\-]+!)$/i,Ry=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Ny(e){return Object.prototype.toString.call(e)}function Mr(e){return e===10||e===13}function Qi(e){return e===9||e===32}function Bn(e){return e===9||e===32||e===10||e===13}function ts(e){return e===44||e===91||e===93||e===123||e===125}function mF(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function vF(e){return e===120?2:e===117?4:e===85?8:0}function yF(e){return 48<=e&&e<=57?e-48:-1}function My(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
|
||
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"
":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}function bF(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}for(var Fy=new Array(256),$y=new Array(256),ns=0;ns<256;ns++)Fy[ns]=My(ns)?1:0,$y[ns]=My(ns);function CF(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||hd,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function By(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=xM(n),new On(t,n)}function Ke(e,t){throw By(e,t)}function pu(e,t){e.onWarning&&e.onWarning.call(null,By(e,t))}var Hy={YAML:function(t,n,r){var i,o,s;t.version!==null&&Ke(t,"duplication of %YAML directive"),r.length!==1&&Ke(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(r[0]),i===null&&Ke(t,"ill-formed argument of the YAML directive"),o=parseInt(i[1],10),s=parseInt(i[2],10),o!==1&&Ke(t,"unacceptable YAML version of the document"),t.version=r[0],t.checkLineBreaks=s<2,s!==1&&s!==2&&pu(t,"unsupported YAML version of the document")},TAG:function(t,n,r){var i,o;r.length!==2&&Ke(t,"TAG directive accepts exactly two arguments"),i=r[0],o=r[1],Dy.test(i)||Ke(t,"ill-formed tag handle (first argument) of the TAG directive"),wi.call(t.tagMap,i)&&Ke(t,'there is a previously declared suffix for "'+i+'" tag handle'),Ry.test(o)||Ke(t,"ill-formed tag prefix (second argument) of the TAG directive");try{o=decodeURIComponent(o)}catch{Ke(t,"tag prefix is malformed: "+o)}t.tagMap[i]=o}};function Ti(e,t,n,r){var i,o,s,l;if(t<n){if(l=e.input.slice(t,n),r)for(i=0,o=l.length;i<o;i+=1)s=l.charCodeAt(i),s===9||32<=s&&s<=1114111||Ke(e,"expected valid JSON character");else pF.test(l)&&Ke(e,"the stream contains non-printable characters");e.result+=l}}function jy(e,t,n,r){var i,o,s,l;for(on.isObject(n)||Ke(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(n),s=0,l=i.length;s<l;s+=1)o=i[s],wi.call(t,o)||(t[o]=n[o],r[o]=!0)}function rs(e,t,n,r,i,o,s,l,c){var d,h;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),d=0,h=i.length;d<h;d+=1)Array.isArray(i[d])&&Ke(e,"nested arrays are not supported inside keys"),typeof i=="object"&&Ny(i[d])==="[object Object]"&&(i[d]="[object Object]");if(typeof i=="object"&&Ny(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),r==="tag:yaml.org,2002:merge")if(Array.isArray(o))for(d=0,h=o.length;d<h;d+=1)jy(e,t,o[d],n);else jy(e,t,o,n);else!e.json&&!wi.call(n,i)&&wi.call(t,i)&&(e.line=s||e.line,e.lineStart=l||e.lineStart,e.position=c||e.position,Ke(e,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(t,i,{configurable:!0,enumerable:!0,writable:!0,value:o}):t[i]=o,delete n[i];return t}function md(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):Ke(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function Qt(e,t,n){for(var r=0,i=e.input.charCodeAt(e.position);i!==0;){for(;Qi(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(Mr(i))for(md(e),i=e.input.charCodeAt(e.position),r++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return n!==-1&&r!==0&&e.lineIndent<n&&pu(e,"deficient indentation"),r}function hu(e){var t=e.position,n;return n=e.input.charCodeAt(t),!!((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)&&(t+=3,n=e.input.charCodeAt(t),n===0||Bn(n)))}function vd(e,t){t===1?e.result+=" ":t>1&&(e.result+=on.repeat(`
|
||
`,t-1))}function _F(e,t,n){var r,i,o,s,l,c,d,h,p=e.kind,y=e.result,C;if(C=e.input.charCodeAt(e.position),Bn(C)||ts(C)||C===35||C===38||C===42||C===33||C===124||C===62||C===39||C===34||C===37||C===64||C===96||(C===63||C===45)&&(i=e.input.charCodeAt(e.position+1),Bn(i)||n&&ts(i)))return!1;for(e.kind="scalar",e.result="",o=s=e.position,l=!1;C!==0;){if(C===58){if(i=e.input.charCodeAt(e.position+1),Bn(i)||n&&ts(i))break}else if(C===35){if(r=e.input.charCodeAt(e.position-1),Bn(r))break}else{if(e.position===e.lineStart&&hu(e)||n&&ts(C))break;if(Mr(C))if(c=e.line,d=e.lineStart,h=e.lineIndent,Qt(e,!1,-1),e.lineIndent>=t){l=!0,C=e.input.charCodeAt(e.position);continue}else{e.position=s,e.line=c,e.lineStart=d,e.lineIndent=h;break}}l&&(Ti(e,o,s,!1),vd(e,e.line-c),o=s=e.position,l=!1),Qi(C)||(s=e.position+1),C=e.input.charCodeAt(++e.position)}return Ti(e,o,s,!1),e.result?!0:(e.kind=p,e.result=y,!1)}function wF(e,t){var n,r,i;if(n=e.input.charCodeAt(e.position),n!==39)return!1;for(e.kind="scalar",e.result="",e.position++,r=i=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(Ti(e,r,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)r=e.position,e.position++,i=e.position;else return!0;else Mr(n)?(Ti(e,r,i,!0),vd(e,Qt(e,!1,t)),r=i=e.position):e.position===e.lineStart&&hu(e)?Ke(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);Ke(e,"unexpected end of the stream within a single quoted scalar")}function TF(e,t){var n,r,i,o,s,l;if(l=e.input.charCodeAt(e.position),l!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;(l=e.input.charCodeAt(e.position))!==0;){if(l===34)return Ti(e,n,e.position,!0),e.position++,!0;if(l===92){if(Ti(e,n,e.position,!0),l=e.input.charCodeAt(++e.position),Mr(l))Qt(e,!1,t);else if(l<256&&Fy[l])e.result+=$y[l],e.position++;else if((s=vF(l))>0){for(i=s,o=0;i>0;i--)l=e.input.charCodeAt(++e.position),(s=mF(l))>=0?o=(o<<4)+s:Ke(e,"expected hexadecimal character");e.result+=bF(o),e.position++}else Ke(e,"unknown escape sequence");n=r=e.position}else Mr(l)?(Ti(e,n,r,!0),vd(e,Qt(e,!1,t)),n=r=e.position):e.position===e.lineStart&&hu(e)?Ke(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}Ke(e,"unexpected end of the stream within a double quoted scalar")}function xF(e,t){var n=!0,r,i,o,s=e.tag,l,c=e.anchor,d,h,p,y,C,w=Object.create(null),x,O,E,B;if(B=e.input.charCodeAt(e.position),B===91)h=93,C=!1,l=[];else if(B===123)h=125,C=!0,l={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=l),B=e.input.charCodeAt(++e.position);B!==0;){if(Qt(e,!0,t),B=e.input.charCodeAt(e.position),B===h)return e.position++,e.tag=s,e.anchor=c,e.kind=C?"mapping":"sequence",e.result=l,!0;n?B===44&&Ke(e,"expected the node content, but found ','"):Ke(e,"missed comma between flow collection entries"),O=x=E=null,p=y=!1,B===63&&(d=e.input.charCodeAt(e.position+1),Bn(d)&&(p=y=!0,e.position++,Qt(e,!0,t))),r=e.line,i=e.lineStart,o=e.position,is(e,t,fu,!1,!0),O=e.tag,x=e.result,Qt(e,!0,t),B=e.input.charCodeAt(e.position),(y||e.line===r)&&B===58&&(p=!0,B=e.input.charCodeAt(++e.position),Qt(e,!0,t),is(e,t,fu,!1,!0),E=e.result),C?rs(e,l,w,O,x,E,r,i,o):p?l.push(rs(e,null,w,O,x,E,r,i,o)):l.push(x),Qt(e,!0,t),B=e.input.charCodeAt(e.position),B===44?(n=!0,B=e.input.charCodeAt(++e.position)):n=!1}Ke(e,"unexpected end of the stream within a flow collection")}function SF(e,t){var n,r,i=gd,o=!1,s=!1,l=t,c=0,d=!1,h,p;if(p=e.input.charCodeAt(e.position),p===124)r=!1;else if(p===62)r=!0;else return!1;for(e.kind="scalar",e.result="";p!==0;)if(p=e.input.charCodeAt(++e.position),p===43||p===45)gd===i?i=p===43?Py:dF:Ke(e,"repeat of a chomping mode identifier");else if((h=yF(p))>=0)h===0?Ke(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?Ke(e,"repeat of an indentation width identifier"):(l=t+h-1,s=!0);else break;if(Qi(p)){do p=e.input.charCodeAt(++e.position);while(Qi(p));if(p===35)do p=e.input.charCodeAt(++e.position);while(!Mr(p)&&p!==0)}for(;p!==0;){for(md(e),e.lineIndent=0,p=e.input.charCodeAt(e.position);(!s||e.lineIndent<l)&&p===32;)e.lineIndent++,p=e.input.charCodeAt(++e.position);if(!s&&e.lineIndent>l&&(l=e.lineIndent),Mr(p)){c++;continue}if(e.lineIndent<l){i===Py?e.result+=on.repeat(`
|
||
`,o?1+c:c):i===gd&&o&&(e.result+=`
|
||
`);break}for(r?Qi(p)?(d=!0,e.result+=on.repeat(`
|
||
`,o?1+c:c)):d?(d=!1,e.result+=on.repeat(`
|
||
`,c+1)):c===0?o&&(e.result+=" "):e.result+=on.repeat(`
|
||
`,c):e.result+=on.repeat(`
|
||
`,o?1+c:c),o=!0,s=!0,c=0,n=e.position;!Mr(p)&&p!==0;)p=e.input.charCodeAt(++e.position);Ti(e,n,e.position,!1)}return!0}function Uy(e,t){var n,r=e.tag,i=e.anchor,o=[],s,l=!1,c;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),c=e.input.charCodeAt(e.position);c!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Ke(e,"tab characters must not be used in indentation")),!(c!==45||(s=e.input.charCodeAt(e.position+1),!Bn(s))));){if(l=!0,e.position++,Qt(e,!0,-1)&&e.lineIndent<=t){o.push(null),c=e.input.charCodeAt(e.position);continue}if(n=e.line,is(e,t,Iy,!1,!0),o.push(e.result),Qt(e,!0,-1),c=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&c!==0)Ke(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return l?(e.tag=r,e.anchor=i,e.kind="sequence",e.result=o,!0):!1}function AF(e,t,n){var r,i,o,s,l,c,d=e.tag,h=e.anchor,p={},y=Object.create(null),C=null,w=null,x=null,O=!1,E=!1,B;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=p),B=e.input.charCodeAt(e.position);B!==0;){if(!O&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Ke(e,"tab characters must not be used in indentation")),r=e.input.charCodeAt(e.position+1),o=e.line,(B===63||B===58)&&Bn(r))B===63?(O&&(rs(e,p,y,C,w,null,s,l,c),C=w=x=null),E=!0,O=!0,i=!0):O?(O=!1,i=!0):Ke(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,B=r;else{if(s=e.line,l=e.lineStart,c=e.position,!is(e,n,Ly,!1,!0))break;if(e.line===o){for(B=e.input.charCodeAt(e.position);Qi(B);)B=e.input.charCodeAt(++e.position);if(B===58)B=e.input.charCodeAt(++e.position),Bn(B)||Ke(e,"a whitespace character is expected after the key-value separator within a block mapping"),O&&(rs(e,p,y,C,w,null,s,l,c),C=w=x=null),E=!0,O=!1,i=!1,C=e.tag,w=e.result;else if(E)Ke(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=d,e.anchor=h,!0}else if(E)Ke(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=d,e.anchor=h,!0}if((e.line===o||e.lineIndent>t)&&(O&&(s=e.line,l=e.lineStart,c=e.position),is(e,t,du,!0,i)&&(O?w=e.result:x=e.result),O||(rs(e,p,y,C,w,x,s,l,c),C=w=x=null),Qt(e,!0,-1),B=e.input.charCodeAt(e.position)),(e.line===o||e.lineIndent>t)&&B!==0)Ke(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return O&&rs(e,p,y,C,w,null,s,l,c),E&&(e.tag=d,e.anchor=h,e.kind="mapping",e.result=p),E}function kF(e){var t,n=!1,r=!1,i,o,s;if(s=e.input.charCodeAt(e.position),s!==33)return!1;if(e.tag!==null&&Ke(e,"duplication of a tag property"),s=e.input.charCodeAt(++e.position),s===60?(n=!0,s=e.input.charCodeAt(++e.position)):s===33?(r=!0,i="!!",s=e.input.charCodeAt(++e.position)):i="!",t=e.position,n){do s=e.input.charCodeAt(++e.position);while(s!==0&&s!==62);e.position<e.length?(o=e.input.slice(t,e.position),s=e.input.charCodeAt(++e.position)):Ke(e,"unexpected end of the stream within a verbatim tag")}else{for(;s!==0&&!Bn(s);)s===33&&(r?Ke(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),Dy.test(i)||Ke(e,"named tag handle cannot contain such characters"),r=!0,t=e.position+1)),s=e.input.charCodeAt(++e.position);o=e.input.slice(t,e.position),gF.test(o)&&Ke(e,"tag suffix cannot contain flow indicator characters")}o&&!Ry.test(o)&&Ke(e,"tag name cannot contain such characters: "+o);try{o=decodeURIComponent(o)}catch{Ke(e,"tag name is malformed: "+o)}return n?e.tag=o:wi.call(e.tagMap,i)?e.tag=e.tagMap[i]+o:i==="!"?e.tag="!"+o:i==="!!"?e.tag="tag:yaml.org,2002:"+o:Ke(e,'undeclared tag handle "'+i+'"'),!0}function EF(e){var t,n;if(n=e.input.charCodeAt(e.position),n!==38)return!1;for(e.anchor!==null&&Ke(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!Bn(n)&&!ts(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&Ke(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function OF(e){var t,n,r;if(r=e.input.charCodeAt(e.position),r!==42)return!1;for(r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!Bn(r)&&!ts(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&Ke(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),wi.call(e.anchorMap,n)||Ke(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],Qt(e,!0,-1),!0}function is(e,t,n,r,i){var o,s,l,c=1,d=!1,h=!1,p,y,C,w,x,O;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,o=s=l=du===n||Iy===n,r&&Qt(e,!0,-1)&&(d=!0,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)),c===1)for(;kF(e)||EF(e);)Qt(e,!0,-1)?(d=!0,l=o,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)):l=!1;if(l&&(l=d||i),(c===1||du===n)&&(fu===n||Ly===n?x=t:x=t+1,O=e.position-e.lineStart,c===1?l&&(Uy(e,O)||AF(e,O,x))||xF(e,x)?h=!0:(s&&SF(e,x)||wF(e,x)||TF(e,x)?h=!0:OF(e)?(h=!0,(e.tag!==null||e.anchor!==null)&&Ke(e,"alias node should not have any properties")):_F(e,x,fu===n)&&(h=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):c===0&&(h=l&&Uy(e,O))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&Ke(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),p=0,y=e.implicitTypes.length;p<y;p+=1)if(w=e.implicitTypes[p],w.resolve(e.result)){e.result=w.construct(e.result),e.tag=w.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(wi.call(e.typeMap[e.kind||"fallback"],e.tag))w=e.typeMap[e.kind||"fallback"][e.tag];else for(w=null,C=e.typeMap.multi[e.kind||"fallback"],p=0,y=C.length;p<y;p+=1)if(e.tag.slice(0,C[p].tag.length)===C[p].tag){w=C[p];break}w||Ke(e,"unknown tag !<"+e.tag+">"),e.result!==null&&w.kind!==e.kind&&Ke(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+w.kind+'", not "'+e.kind+'"'),w.resolve(e.result,e.tag)?(e.result=w.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):Ke(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||h}function LF(e){var t=e.position,n,r,i,o=!1,s;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(s=e.input.charCodeAt(e.position))!==0&&(Qt(e,!0,-1),s=e.input.charCodeAt(e.position),!(e.lineIndent>0||s!==37));){for(o=!0,s=e.input.charCodeAt(++e.position),n=e.position;s!==0&&!Bn(s);)s=e.input.charCodeAt(++e.position);for(r=e.input.slice(n,e.position),i=[],r.length<1&&Ke(e,"directive name must not be less than one character in length");s!==0;){for(;Qi(s);)s=e.input.charCodeAt(++e.position);if(s===35){do s=e.input.charCodeAt(++e.position);while(s!==0&&!Mr(s));break}if(Mr(s))break;for(n=e.position;s!==0&&!Bn(s);)s=e.input.charCodeAt(++e.position);i.push(e.input.slice(n,e.position))}s!==0&&md(e),wi.call(Hy,r)?Hy[r](e,r,i):pu(e,'unknown document directive "'+r+'"')}if(Qt(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,Qt(e,!0,-1)):o&&Ke(e,"directives end mark is expected"),is(e,e.lineIndent-1,du,!1,!0),Qt(e,!0,-1),e.checkLineBreaks&&hF.test(e.input.slice(t,e.position))&&pu(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&hu(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Qt(e,!0,-1));return}if(e.position<e.length-1)Ke(e,"end of the stream or a document separator is expected");else return}function Wy(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
|
||
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var n=new CF(e,t),r=e.indexOf("\0");for(r!==-1&&(n.position=r,Ke(n,"null byte is not allowed in input")),n.input+="\0";n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)LF(n);return n.documents}function IF(e,t,n){t!==null&&typeof t=="object"&&typeof n>"u"&&(n=t,t=null);var r=Wy(e,n);if(typeof t!="function")return r;for(var i=0,o=r.length;i<o;i+=1)t(r[i])}function PF(e,t){var n=Wy(e,t);if(n.length!==0){if(n.length===1)return n[0];throw new On("expected a single document in the stream, but found more")}}var DF=IF,RF=PF,Ky={loadAll:DF,load:RF},Vy=Object.prototype.toString,qy=Object.prototype.hasOwnProperty,yd=65279,NF=9,ma=10,MF=13,FF=32,$F=33,BF=34,bd=35,HF=37,jF=38,UF=39,WF=42,zy=44,KF=45,gu=58,VF=61,qF=62,zF=63,GF=64,Gy=91,Yy=93,YF=96,Xy=123,XF=124,Jy=125,Tn={};Tn[0]="\\0",Tn[7]="\\a",Tn[8]="\\b",Tn[9]="\\t",Tn[10]="\\n",Tn[11]="\\v",Tn[12]="\\f",Tn[13]="\\r",Tn[27]="\\e",Tn[34]='\\"',Tn[92]="\\\\",Tn[133]="\\N",Tn[160]="\\_",Tn[8232]="\\L",Tn[8233]="\\P";var JF=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],ZF=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function QF(e,t){var n,r,i,o,s,l,c;if(t===null)return{};for(n={},r=Object.keys(t),i=0,o=r.length;i<o;i+=1)s=r[i],l=String(t[s]),s.slice(0,2)==="!!"&&(s="tag:yaml.org,2002:"+s.slice(2)),c=e.compiledTypeMap.fallback[s],c&&qy.call(c.styleAliases,l)&&(l=c.styleAliases[l]),n[s]=l;return n}function e$(e){var t,n,r;if(t=e.toString(16).toUpperCase(),e<=255)n="x",r=2;else if(e<=65535)n="u",r=4;else if(e<=4294967295)n="U",r=8;else throw new On("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+n+on.repeat("0",r-t.length)+t}var t$=1,va=2;function n$(e){this.schema=e.schema||hd,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=on.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=QF(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?va:t$,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Zy(e,t){for(var n=on.repeat(" ",t),r=0,i=-1,o="",s,l=e.length;r<l;)i=e.indexOf(`
|
||
`,r),i===-1?(s=e.slice(r),r=l):(s=e.slice(r,i+1),r=i+1),s.length&&s!==`
|
||
`&&(o+=n),o+=s;return o}function Cd(e,t){return`
|
||
`+on.repeat(" ",e.indent*t)}function r$(e,t){var n,r,i;for(n=0,r=e.implicitTypes.length;n<r;n+=1)if(i=e.implicitTypes[n],i.resolve(t))return!0;return!1}function mu(e){return e===FF||e===NF}function ya(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==yd||65536<=e&&e<=1114111}function Qy(e){return ya(e)&&e!==yd&&e!==MF&&e!==ma}function e0(e,t,n){var r=Qy(e),i=r&&!mu(e);return(n?r:r&&e!==zy&&e!==Gy&&e!==Yy&&e!==Xy&&e!==Jy)&&e!==bd&&!(t===gu&&!i)||Qy(t)&&!mu(t)&&e===bd||t===gu&&i}function i$(e){return ya(e)&&e!==yd&&!mu(e)&&e!==KF&&e!==zF&&e!==gu&&e!==zy&&e!==Gy&&e!==Yy&&e!==Xy&&e!==Jy&&e!==bd&&e!==jF&&e!==WF&&e!==$F&&e!==XF&&e!==VF&&e!==qF&&e!==UF&&e!==BF&&e!==HF&&e!==GF&&e!==YF}function o$(e){return!mu(e)&&e!==gu}function ba(e,t){var n=e.charCodeAt(t),r;return n>=55296&&n<=56319&&t+1<e.length&&(r=e.charCodeAt(t+1),r>=56320&&r<=57343)?(n-55296)*1024+r-56320+65536:n}function t0(e){var t=/^\n* /;return t.test(e)}var n0=1,_d=2,r0=3,i0=4,os=5;function s$(e,t,n,r,i,o,s,l){var c,d=0,h=null,p=!1,y=!1,C=r!==-1,w=-1,x=i$(ba(e,0))&&o$(ba(e,e.length-1));if(t||s)for(c=0;c<e.length;d>=65536?c+=2:c++){if(d=ba(e,c),!ya(d))return os;x=x&&e0(d,h,l),h=d}else{for(c=0;c<e.length;d>=65536?c+=2:c++){if(d=ba(e,c),d===ma)p=!0,C&&(y=y||c-w-1>r&&e[w+1]!==" ",w=c);else if(!ya(d))return os;x=x&&e0(d,h,l),h=d}y=y||C&&c-w-1>r&&e[w+1]!==" "}return!p&&!y?x&&!s&&!i(e)?n0:o===va?os:_d:n>9&&t0(e)?os:s?o===va?os:_d:y?i0:r0}function a$(e,t,n,r,i){e.dump=function(){if(t.length===0)return e.quotingType===va?'""':"''";if(!e.noCompatMode&&(JF.indexOf(t)!==-1||ZF.test(t)))return e.quotingType===va?'"'+t+'"':"'"+t+"'";var o=e.indent*Math.max(1,n),s=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-o),l=r||e.flowLevel>-1&&n>=e.flowLevel;function c(d){return r$(e,d)}switch(s$(t,l,e.indent,s,c,e.quotingType,e.forceQuotes&&!r,i)){case n0:return t;case _d:return"'"+t.replace(/'/g,"''")+"'";case r0:return"|"+o0(t,e.indent)+s0(Zy(t,o));case i0:return">"+o0(t,e.indent)+s0(Zy(l$(t,s),o));case os:return'"'+u$(t)+'"';default:throw new On("impossible error: invalid scalar style")}}()}function o0(e,t){var n=t0(e)?String(t):"",r=e[e.length-1]===`
|
||
`,i=r&&(e[e.length-2]===`
|
||
`||e===`
|
||
`),o=i?"+":r?"":"-";return n+o+`
|
||
`}function s0(e){return e[e.length-1]===`
|
||
`?e.slice(0,-1):e}function l$(e,t){for(var n=/(\n+)([^\n]*)/g,r=function(){var d=e.indexOf(`
|
||
`);return d=d!==-1?d:e.length,n.lastIndex=d,a0(e.slice(0,d),t)}(),i=e[0]===`
|
||
`||e[0]===" ",o,s;s=n.exec(e);){var l=s[1],c=s[2];o=c[0]===" ",r+=l+(!i&&!o&&c!==""?`
|
||
`:"")+a0(c,t),i=o}return r}function a0(e,t){if(e===""||e[0]===" ")return e;for(var n=/ [^ ]/g,r,i=0,o,s=0,l=0,c="";r=n.exec(e);)l=r.index,l-i>t&&(o=s>i?s:l,c+=`
|
||
`+e.slice(i,o),i=o+1),s=l;return c+=`
|
||
`,e.length-i>t&&s>i?c+=e.slice(i,s)+`
|
||
`+e.slice(s+1):c+=e.slice(i),c.slice(1)}function u$(e){for(var t="",n=0,r,i=0;i<e.length;n>=65536?i+=2:i++)n=ba(e,i),r=Tn[n],!r&&ya(n)?(t+=e[i],n>=65536&&(t+=e[i+1])):t+=r||e$(n);return t}function c$(e,t,n){var r="",i=e.tag,o,s,l;for(o=0,s=n.length;o<s;o+=1)l=n[o],e.replacer&&(l=e.replacer.call(n,String(o),l)),(ei(e,t,l,!1,!1)||typeof l>"u"&&ei(e,t,null,!1,!1))&&(r!==""&&(r+=","+(e.condenseFlow?"":" ")),r+=e.dump);e.tag=i,e.dump="["+r+"]"}function l0(e,t,n,r){var i="",o=e.tag,s,l,c;for(s=0,l=n.length;s<l;s+=1)c=n[s],e.replacer&&(c=e.replacer.call(n,String(s),c)),(ei(e,t+1,c,!0,!0,!1,!0)||typeof c>"u"&&ei(e,t+1,null,!0,!0,!1,!0))&&((!r||i!=="")&&(i+=Cd(e,t)),e.dump&&ma===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=o,e.dump=i||"[]"}function f$(e,t,n){var r="",i=e.tag,o=Object.keys(n),s,l,c,d,h;for(s=0,l=o.length;s<l;s+=1)h="",r!==""&&(h+=", "),e.condenseFlow&&(h+='"'),c=o[s],d=n[c],e.replacer&&(d=e.replacer.call(n,c,d)),ei(e,t,c,!1,!1)&&(e.dump.length>1024&&(h+="? "),h+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),ei(e,t,d,!1,!1)&&(h+=e.dump,r+=h));e.tag=i,e.dump="{"+r+"}"}function d$(e,t,n,r){var i="",o=e.tag,s=Object.keys(n),l,c,d,h,p,y;if(e.sortKeys===!0)s.sort();else if(typeof e.sortKeys=="function")s.sort(e.sortKeys);else if(e.sortKeys)throw new On("sortKeys must be a boolean or a function");for(l=0,c=s.length;l<c;l+=1)y="",(!r||i!=="")&&(y+=Cd(e,t)),d=s[l],h=n[d],e.replacer&&(h=e.replacer.call(n,d,h)),ei(e,t+1,d,!0,!0,!0)&&(p=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,p&&(e.dump&&ma===e.dump.charCodeAt(0)?y+="?":y+="? "),y+=e.dump,p&&(y+=Cd(e,t)),ei(e,t+1,h,!0,p)&&(e.dump&&ma===e.dump.charCodeAt(0)?y+=":":y+=": ",y+=e.dump,i+=y));e.tag=o,e.dump=i||"{}"}function u0(e,t,n){var r,i,o,s,l,c;for(i=n?e.explicitTypes:e.implicitTypes,o=0,s=i.length;o<s;o+=1)if(l=i[o],(l.instanceOf||l.predicate)&&(!l.instanceOf||typeof t=="object"&&t instanceof l.instanceOf)&&(!l.predicate||l.predicate(t))){if(n?l.multi&&l.representName?e.tag=l.representName(t):e.tag=l.tag:e.tag="?",l.represent){if(c=e.styleMap[l.tag]||l.defaultStyle,Vy.call(l.represent)==="[object Function]")r=l.represent(t,c);else if(qy.call(l.represent,c))r=l.represent[c](t,c);else throw new On("!<"+l.tag+'> tag resolver accepts not "'+c+'" style');e.dump=r}return!0}return!1}function ei(e,t,n,r,i,o,s){e.tag=null,e.dump=n,u0(e,n,!1)||u0(e,n,!0);var l=Vy.call(e.dump),c=r,d;r&&(r=e.flowLevel<0||e.flowLevel>t);var h=l==="[object Object]"||l==="[object Array]",p,y;if(h&&(p=e.duplicates.indexOf(n),y=p!==-1),(e.tag!==null&&e.tag!=="?"||y||e.indent!==2&&t>0)&&(i=!1),y&&e.usedDuplicates[p])e.dump="*ref_"+p;else{if(h&&y&&!e.usedDuplicates[p]&&(e.usedDuplicates[p]=!0),l==="[object Object]")r&&Object.keys(e.dump).length!==0?(d$(e,t,e.dump,i),y&&(e.dump="&ref_"+p+e.dump)):(f$(e,t,e.dump),y&&(e.dump="&ref_"+p+" "+e.dump));else if(l==="[object Array]")r&&e.dump.length!==0?(e.noArrayIndent&&!s&&t>0?l0(e,t-1,e.dump,i):l0(e,t,e.dump,i),y&&(e.dump="&ref_"+p+e.dump)):(c$(e,t,e.dump),y&&(e.dump="&ref_"+p+" "+e.dump));else if(l==="[object String]")e.tag!=="?"&&a$(e,e.dump,t,o,c);else{if(l==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new On("unacceptable kind of an object to dump "+l)}e.tag!==null&&e.tag!=="?"&&(d=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?d="!"+d:d.slice(0,18)==="tag:yaml.org,2002:"?d="!!"+d.slice(18):d="!<"+d+">",e.dump=d+" "+e.dump)}return!0}function p$(e,t){var n=[],r=[],i,o;for(wd(e,n,r),i=0,o=r.length;i<o;i+=1)t.duplicates.push(n[r[i]]);t.usedDuplicates=new Array(o)}function wd(e,t,n){var r,i,o;if(e!==null&&typeof e=="object")if(i=t.indexOf(e),i!==-1)n.indexOf(i)===-1&&n.push(i);else if(t.push(e),Array.isArray(e))for(i=0,o=e.length;i<o;i+=1)wd(e[i],t,n);else for(r=Object.keys(e),i=0,o=r.length;i<o;i+=1)wd(e[r[i]],t,n)}function h$(e,t){t=t||{};var n=new n$(t);n.noRefs||p$(e,n);var r=e;return n.replacer&&(r=n.replacer.call({"":r},"",r)),ei(n,0,r,!0,!0)?n.dump+`
|
||
`:""}var g$=h$,m$={dump:g$};function Td(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}var v$=hn,y$=fy,b$=gy,C$=Cy,_$=_y,w$=hd,T$=Ky.load,x$=Ky.loadAll,S$=m$.dump,A$=On,k$={binary:Ay,float:by,map:hy,null:my,pairs:Ey,set:Oy,timestamp:xy,bool:vy,int:yy,merge:Sy,omap:ky,seq:py,str:dy},E$=Td("safeLoad","load"),O$=Td("safeLoadAll","loadAll"),L$=Td("safeDump","dump"),I$={Type:v$,Schema:y$,FAILSAFE_SCHEMA:b$,JSON_SCHEMA:C$,CORE_SCHEMA:_$,DEFAULT_SCHEMA:w$,load:T$,loadAll:x$,dump:S$,YAMLException:A$,types:k$,safeLoad:E$,safeLoadAll:O$,safeDump:L$};const P$={name:"App",components:{About:fM,ChatgptPrompt:zN,PackagesState:rN,PromptFormat:qR,ExtensionCss:ER,IconSvg:_r,History:bR,Favorite:UD,SelectLanguage:dD,TranslateSetting:lD,PhystonPrompt:tP},mixins:[],data(){return{prompts:[{tab:"tab_txt2img",prompt:"txt2img_prompt",counter:"txt2img_token_counter",button:"txt2img_token_button",steps:"txt2img_steps",historyKey:"txt2img",favoriteKey:"txt2img",$prompt:null,$textarea:null,$steps:null,name:"txt2img_prompt",neg:!1,hideDefaultInputKey:"txt2ImgHideDefaultInput",hideDefaultInput:!1,hidePanelKey:"txt2ImgHidePanel",hidePanel:!1,hideGroupTagsKey:"txt2ImgHideGroupTags",hideGroupTags:!1,id:"phystonPrompt_txt2img_prompt"},{tab:"tab_txt2img",prompt:"txt2img_neg_prompt",counter:"txt2img_negative_token_counter",button:"txt2img_negative_token_button",steps:"txt2img_steps",historyKey:"txt2img_neg",favoriteKey:"txt2img_neg",$prompt:null,$textarea:null,$steps:null,name:"txt2img_neg_prompt",neg:!0,hideDefaultInputKey:"txt2ImgNegHideDefaultInput",hideDefaultInput:!1,hidePanelKey:"txt2ImgNegHidePanel",hidePanel:!1,hideGroupTagsKey:"txt2ImgNegHideGroupTags",hideGroupTags:!1,id:"phystonPrompt_txt2img_neg_prompt"},{tab:"tab_img2img",prompt:"img2img_prompt",counter:"img2img_token_counter",button:"img2img_token_button",steps:"img2img_steps",historyKey:"img2img",favoriteKey:"img2img",$prompt:null,$textarea:null,$steps:null,name:"img2img_prompt",neg:!1,hideDefaultInputKey:"img2ImgHideDefaultInput",hideDefaultInput:!1,hidePanelKey:"img2ImgHidePanel",hidePanel:!1,hideGroupTagsKey:"img2ImgHideGroupTags",hideGroupTags:!1,id:"phystonPrompt_img2img_prompt"},{tab:"tab_img2img",prompt:"img2img_neg_prompt",counter:"img2img_negative_token_counter",button:"img2img_negative_token_button",steps:"img2img_steps",historyKey:"img2img_neg",favoriteKey:"img2img_neg",$prompt:null,$textarea:null,$steps:null,name:"img2img_neg_prompt",neg:!0,hideDefaultInputKey:"img2ImgNegHideDefaultInput",hideDefaultInput:!1,hidePanelKey:"img2ImgNegHidePanel",hidePanel:!1,hideGroupTagsKey:"img2ImgNegHideGroupTags",hideGroupTags:!1,id:"phystonPrompt_img2img_neg_prompt"}],languageCode:"",languages:{},translateApis:[],translateApi:"",translateApiConfig:{},canOneTranslate:!1,autoTranslate:!1,autoTranslateToEnglish:!1,autoTranslateToLocal:!1,autoRemoveSpace:!0,autoRemoveLastComma:!1,autoKeepWeightZero:!1,autoKeepWeightOne:!1,autoBreakBeforeWrap:!1,autoBreakAfterWrap:!1,enableTooltip:!0,tagCompleteFile:"",onlyCsvOnAuto:!1,startWatchSave:!1,pasteBtn:null,showPastePopup:!1,pasteTitle:"",pasteContent:"",pasteLoading:!1,historyCurrentPrompt:"",favoriteCurrentPrompt:"",chatgptCurrentPrompt:"",extraNetworks:[],loras:[],lycos:[],embeddings:[],python:"",packagesState:[],version:"",latestVersion:"",isLatestVersion:!0,theme:"dark",groupTags:[],groupTagsColor:{}}},watch:{languageCode:{handler:function(e,t){this.startWatchSave&&(console.log("onLanguageCodeChange",e),this.canOneTranslate=me.canOneTranslate(this.languageCode),this.gradioAPI.setData("languageCode",e).then(n=>{}).catch(n=>{}),this.loadGroupTags())},immediate:!1},autoTranslateToEnglish:{handler:function(e,t){this.startWatchSave&&(console.log("onAutoTranslateToEnglishChange",e),this.gradioAPI.setData("autoTranslateToEnglish",e).then(n=>{}).catch(n=>{}))},immediate:!1},autoTranslateToLocal:{handler:function(e,t){this.startWatchSave&&(console.log("onAutoTranslateToLocalChange",e),this.gradioAPI.setData("autoTranslateToLocal",e).then(n=>{}).catch(n=>{}))},immediate:!1},autoTranslate:{handler:function(e,t){this.startWatchSave&&(this.autoTranslateToEnglish=this.autoTranslate,this.autoTranslateToLocal=this.autoTranslate,console.log("onAutoTranslateChange",e),this.gradioAPI.setData("autoTranslate",e).then(n=>{}).catch(n=>{}))},immediate:!1},autoRemoveSpace:{handler:function(e,t){this.startWatchSave&&(console.log("onAutoRemoveSpaceChange",e),this.gradioAPI.setData("autoRemoveSpace",e).then(n=>{this.prompts.forEach(r=>{this.$refs[r.id][0].updatePrompt()})}).catch(n=>{}))},immediate:!1},autoRemoveLastComma:{handler:function(e,t){this.startWatchSave&&(console.log("onAutoRemoveLastCommaChange",e),this.gradioAPI.setData("autoRemoveLastComma",e).then(n=>{this.prompts.forEach(r=>{this.$refs[r.id][0].updatePrompt()})}).catch(n=>{}))},immediate:!1},autoKeepWeightZero:{handler:function(e,t){this.startWatchSave&&(console.log("onAutoKeepWeightZeroChange",e),this.gradioAPI.setData("autoKeepWeightZero",e).then(n=>{}).catch(n=>{}))},immediate:!1},autoKeepWeightOne:{handler:function(e,t){this.startWatchSave&&(console.log("onAutoKeepWeightOneChange",e),this.gradioAPI.setData("autoKeepWeightOne",e).then(n=>{}).catch(n=>{}))},immediate:!1},autoBreakBeforeWrap:{handler:function(e,t){this.startWatchSave&&(console.log("onAutoBreakBeforeWrap",e),this.gradioAPI.setData("autoBreakBeforeWrap",e).then(n=>{this.prompts.forEach(r=>{this.$refs[r.id][0].updatePrompt()})}).catch(n=>{}))},immediate:!1},autoBreakAfterWrap:{handler:function(e,t){this.startWatchSave&&(console.log("onAutoBreakAfterWrap",e),this.gradioAPI.setData("autoBreakAfterWrap",e).then(n=>{this.prompts.forEach(r=>{this.$refs[r.id][0].updatePrompt()})}).catch(n=>{}))},immediate:!1},enableTooltip:{handler:function(e,t){this.startWatchSave&&(localStorage.setItem("phystonPromptEnableTooltip",e?"true":"false"),this.updateTippyState(),this.gradioAPI.setData("enableTooltip",e).then(n=>{}).catch(n=>{}))},immediate:!1},translateApi:{handler:function(e,t){this.startWatchSave&&(console.log("onTranslateApiChange",e,t),this.updateTranslateApiConfig(),this.gradioAPI.setData("translateApi",e).then(n=>{}).catch(n=>{}))},immediate:!1},tagCompleteFile:{handler:function(e,t){this.startWatchSave&&(console.log("onTagCompleteFileChange",e,t),this.gradioAPI.setData("tagCompleteFile",e).then(n=>{}).catch(n=>{}))},immediate:!1},groupTagsColor:{handler:function(e,t){this.startWatchSave&&(console.log("onGroupTagsColorChange",e,t),this.gradioAPI.setData("groupTagsColor",e).then(n=>{}).catch(n=>{}))},deep:!0,immediate:!1},onlyCsvOnAuto(){this.startWatchSave&&(console.log("onOnlyCsvOnAutoChange",this.onlyCsvOnAuto),this.gradioAPI.setData("onlyCsvOnAuto",this.onlyCsvOnAuto).then(e=>{}).catch(e=>{}))}},mounted(){me.loadCSS("toastr.min.css","physton-prompt-toastr",!0,!0,!1),me.loadCSS("tippy.css","physton-prompt-tippy",!0,!0,!1),me.loadCSS("vue3-colorpicker.css","physton-prompt-vue3-colorpicker",!0,!0,!1),me.loadCSS("main.min.css","physton-prompt-main",!0);let t=new URLSearchParams(window.location.search).get("__theme");["dark","light"].includes(t)&&(this.theme=t,me.gradioApp().classList.contains(this.theme)||me.gradioApp().classList.add(this.theme)),setTimeout(()=>{document.querySelector('meta[content="LobeHub"]')&&me.gradioApp().classList.add("physton-prompt-lobehub")},3e3),this.gradioAPI.getConfig().then(n=>{console.log("config:",n),this.languageCode=n.i18n.default,this.translateApi=n.translate_apis.default,this.translateApis=n.translate_apis.apis,this.python=n.python,this.packagesState=n.packages_state;let r={};n.i18n.languages.forEach(i=>{r[i.code]=i}),this.languages=r,this.init()}).catch(n=>{this.$toastr.error("Connection to backend API service failed. Please manually refresh the webpage. If it still doesn't work, please restart the WebUI.<br/>连接到后台接口服务失败,请手动再刷新一次网页。如果还是不行,请重启WebUI。<br/><br/>"+n.message,Al.shortName,{timeOut:2e4}),console.log(n)})},methods:{getLang(e){return me.getLang(e,this.languageCode,this.languages)},init(){this.loadExtraNetworks();let e=["languageCode","autoTranslate","autoTranslateToEnglish","autoTranslateToLocal","autoRemoveSpace","autoRemoveLastComma","autoKeepWeightZero","autoKeepWeightOne","autoBreakBeforeWrap","autoBreakAfterWrap","translateApi","enableTooltip","tagCompleteFile","onlyCsvOnAuto","extensionSelect.minimalist","groupTagsColor"];this.prompts.forEach(t=>{e.push(t.hideDefaultInputKey),e.push(t.hidePanelKey),e.push(t.hideGroupTagsKey)}),this.gradioAPI.getDatas(e).then(t=>{if(t.languageCode!==null){let n=!1;for(let r in this.languages)if(this.languages[r].code===t.languageCode){n=!0;break}n&&(this.languageCode=t.languageCode,this.$forceUpdate(),this.gradioAPI.setData("languageCode",this.languageCode))}else{let n=navigator.language||navigator.userLanguage||"";if(n){for(let r in this.languages)if(me.isSameLang(this.languages[r].code,n)){this.languageCode=this.languages[r].code,this.$forceUpdate(),this.gradioAPI.setData("languageCode",this.languageCode);break}}}if(this.canOneTranslate=me.canOneTranslate(this.languageCode),t.autoTranslateToEnglish!==null&&(this.autoTranslateToEnglish=t.autoTranslateToEnglish),t.autoTranslateToLocal!==null&&(this.autoTranslateToLocal=t.autoTranslateToLocal),t.autoTranslate!==null?this.canOneTranslate?(this.autoTranslate=t.autoTranslate,this.autoTranslateToEnglish=this.autoTranslate,this.autoTranslateToLocal=this.autoTranslate):this.autoTranslate=!1:this.canOneTranslate?(this.autoTranslate=this.autoTranslateToEnglish||this.autoTranslateToLocal,this.autoTranslateToEnglish=!0,this.autoTranslateToLocal=!0):this.autoTranslate=!1,t.autoRemoveSpace!==null&&(this.autoRemoveSpace=t.autoRemoveSpace),t.autoRemoveLastComma!==null&&(this.autoRemoveLastComma=t.autoRemoveLastComma),t.autoKeepWeightZero!==null&&(this.autoKeepWeightZero=t.autoKeepWeightZero),t.autoKeepWeightOne!==null&&(this.autoKeepWeightOne=t.autoKeepWeightOne),t.autoBreakBeforeWrap!==null&&(this.autoBreakBeforeWrap=t.autoBreakBeforeWrap),t.autoBreakAfterWrap!==null&&(this.autoBreakAfterWrap=t.autoBreakAfterWrap),t.enableTooltip!==null&&(this.enableTooltip=t.enableTooltip),localStorage.setItem("phystonPromptEnableTooltip",this.enableTooltip?"true":"false"),this.updateTippyState(),t.translateApi!==null&&(this.translateApi=t.translateApi),t.tagCompleteFile!==null&&(this.tagCompleteFile=t.tagCompleteFile,this.$nextTick(()=>{this.$refs.translateSetting.getCSV(this.tagCompleteFile)})),t.onlyCsvOnAuto!==null&&(this.onlyCsvOnAuto=t.onlyCsvOnAuto),t["extensionSelect.minimalist"]===null&&this.gradioAPI.setData("extensionSelect.minimalist",!0),t.groupTagsColor!==null&&typeof t.groupTagsColor=="object"){this.groupTagsColor={};for(let n in t.groupTagsColor){let r=t.groupTagsColor[n];this.groupTagsColor[n]=Et(me.fitterInputColor(r))}}this.updateTranslateApiConfig(),this.$refs.extensionCss.init(),this.prompts.forEach(n=>{t[n.hideDefaultInputKey]!==null&&(n.hideDefaultInput=t[n.hideDefaultInputKey]),t[n.hidePanelKey]!==null&&(n.hidePanel=t[n.hidePanelKey]),t[n.hideGroupTagsKey]!==null&&(n.hideGroupTags=t[n.hideGroupTagsKey]),n.$prompt=me.gradioApp().querySelector("#"+n.prompt),n.$textarea=n.$prompt.getElementsByTagName("textarea")[0],n.$steps=me.gradioApp().querySelector("#"+n.steps)}),this.$nextTick(()=>{this.prompts.forEach(n=>{const r=me.gradioApp().querySelector("#"+n.id);n.$prompt.parentElement.parentElement.parentElement.appendChild(r),n.$prompt.parentElement.parentElement.style.display=n.hideDefaultInput?"none":"flex"}),this.startWatchSave=!0}),this.handlePaste(),this.loadGroupTags()})},loadGroupTags(){this.gradioAPI.getGroupTags(this.languageCode).then(e=>{if(!e||e==="")this.groupTags=[];else try{this.groupTags=I$.load(e),Array.isArray(this.groupTags)||(this.groupTags=[])}catch(t){console.log(t),this.groupTags=[]}})},updateTippyState(){for(const e of this.$tippyList)this.enableTooltip?e.enable():e.disable()},updateTranslateApiConfig(){this.gradioAPI.getData("translate_api."+this.translateApi).then(e=>{let t={};const n=me.getTranslateApiItem(this.translateApis,this.translateApi);if(n.config){for(const r of n.config)n.type==="translators"&&r.key==="region"&&!e.region?t[r.key]=this.languageCode==="zh_CN"||this.languageCode==="zh_HK"||this.languageCode==="zh_TW"?"China":"EN":e?t[r.key]=e[r.key]:t[r.key]=r.default||"";t.concurrent=n.concurrent||0}this.translateApiConfig=t})},onPromptFormatClick(e){this.$refs.promptFormat.open(e)},onSelectLanguageClick(e){this.$refs.selectLanguage.open(e)},onTranslateApiClick(){this.$refs.translateSetting.open(this.translateApi)},onSelectThemeClick(){this.$refs.extensionCss.open()},handlePaste(){if(typeof gradioApp!="function")return;const e=gradioApp().querySelectorAll("#paste");!e||e.length<=0||e.forEach((t,n)=>{const r=t.cloneNode(!0);r.id="paste-new-"+n,r.innerHTML="🗒",t.parentNode.insertBefore(r,t.nextSibling),r.addEventListener("click",()=>{this.pasteBtn=t,this.openPastePopup()}),this.pasteTitle=t.title})},openPastePopup(){this.pasteContent="",this.pasteLoading=!1,this.showPastePopup=!0},closePastePopup(){this.showPastePopup=!1},onClickPasteSubmit(){this.pasteLoading=!0;const e=get_uiCurrentTabContent();let t=null,n=null,r=null,i=null,o=[];for(const s of this.prompts)s.tab==e.id&&(console.log(s),o.push(s.id),s.neg?(n=s.$textarea,i=s.$prompt):(t=s.$textarea,r=s.$prompt));if(!t||!r||!i){this.pasteLoading=!1;return}t.value=this.pasteContent,t.dispatchEvent(new Event("input")),this.pasteBtn.dispatchEvent(new Event("click")),setTimeout(()=>{let s=0,l=0;s=setInterval(()=>{if(l++,l>100){this.pasteLoading=!1,clearInterval(s);return}r.getElementsByClassName("hide").length>0&&i.getElementsByClassName("hide").length>0&&(this.pasteLoading=!1,this.closePastePopup(),clearInterval(s),me.hideCompleteResults(t),me.hideCompleteResults(n),o.forEach((c,d)=>{setTimeout(()=>{this.$refs[c][0].onTextareaChange(!0)},1e3)}))},100)},1e3)},onUpdateHideDefaultInput(e,t){const n=this.prompts.find(r=>r.id==e);n&&(n.hideDefaultInput=t,this.gradioAPI.setData(n.hideDefaultInputKey,n.hideDefaultInput),n.$prompt.parentElement.parentElement.style.display=n.hideDefaultInput?"none":"flex")},onUpdateHidePanel(e,t){const n=this.prompts.find(r=>r.id==e);n&&(n.hidePanel=t,this.gradioAPI.setData(n.hidePanelKey,n.hidePanel))},onUpdateHideGroupTags(e,t){const n=this.prompts.find(r=>r.id==e);n&&(n.hideGroupTags=t,this.gradioAPI.setData(n.hideGroupTagsKey,n.hideGroupTags))},onShowHistory(e,t){this.$refs.favorite.hide(),this.historyCurrentPrompt=e;const n=this.prompts.find(r=>r.id==e);n&&this.$refs.history.show(n.historyKey,t)},onUseHistory(e){if(!this.historyCurrentPrompt)return;const t=this.prompts.find(n=>n.id==this.historyCurrentPrompt);t&&this.$refs[t.id][0].useFavorite(e)},onShowFavorite(e,t){this.$refs.history.hide(),this.favoriteCurrentPrompt=e;const n=this.prompts.find(r=>r.id==e);n&&this.$refs.favorite.show(n.favoriteKey,t)},onUseFavorite(e){if(!this.favoriteCurrentPrompt)return;const t=this.prompts.find(n=>n.id==this.favoriteCurrentPrompt);t&&this.$refs[t.id][0].useFavorite(e)},onRefreshFavorites(e){this.$refs.favorite.getFavorites(e)},onShowChatgpt(e,t){this.chatgptCurrentPrompt=e,this.prompts.find(r=>r.id==e)&&this.$refs.chatgptPrompt.open()},onUseChatgpt(e){if(!this.chatgptCurrentPrompt)return;const t=this.prompts.find(n=>n.id==this.chatgptCurrentPrompt);t&&this.$refs[t.id][0].useChatgpt(e)},onShowAbout(){this.$refs.about.open()},onSwitchTheme(){this.theme=this.theme==="dark"?"light":"dark";let e=window.location.href,t=new URL(e),n=new URLSearchParams(t.search);n.has("__theme")?n.set("__theme",this.theme):n.append("__theme",this.theme);let r=t.origin+t.pathname+"?"+n.toString();window.location.href=r}}},D$={class:"paste-popup-title"},R$={class:"paste-popup-body"},N$=["placeholder"],M$={key:1,class:"paste-submit"};function F$(e,t,n,r,i,o){const s=lt("physton-prompt"),l=lt("translate-setting"),c=lt("select-language"),d=lt("prompt-format"),h=lt("history"),p=lt("favorite"),y=lt("extension-css"),C=lt("packages-state"),w=lt("chatgpt-prompt"),x=lt("about"),O=lt("icon-svg");return L(),H("div",null,[(L(!0),H(He,null,ht(i.prompts,E=>(L(),H(He,{key:E.name},[E.$textarea?(L(),Ze(s,{key:0,id:E.id,ref_for:!0,ref:E.id,name:E.name,neg:E.neg,textarea:E.$textarea,steps:E.$steps,"language-code":i.languageCode,"onUpdate:languageCode":t[0]||(t[0]=B=>i.languageCode=B),"translate-apis":i.translateApis,languages:i.languages,"history-key":E.historyKey,"onClick:showHistory":B=>o.onShowHistory(E.id,B),"favorite-key":E.favoriteKey,onRefreshFavorites:o.onRefreshFavorites,"onClick:showFavorite":B=>o.onShowFavorite(E.id,B),"can-one-translate":i.canOneTranslate,"onUpdate:canOneTranslate":t[1]||(t[1]=B=>i.canOneTranslate=B),"auto-translate":i.autoTranslate,"onUpdate:autoTranslate":t[2]||(t[2]=B=>i.autoTranslate=B),"auto-translate-to-english":i.autoTranslateToEnglish,"onUpdate:autoTranslateToEnglish":t[3]||(t[3]=B=>i.autoTranslateToEnglish=B),"auto-translate-to-local":i.autoTranslateToLocal,"onUpdate:autoTranslateToLocal":t[4]||(t[4]=B=>i.autoTranslateToLocal=B),"auto-remove-space":i.autoRemoveSpace,"onUpdate:autoRemoveSpace":t[5]||(t[5]=B=>i.autoRemoveSpace=B),"auto-remove-last-comma":i.autoRemoveLastComma,"onUpdate:autoRemoveLastComma":t[6]||(t[6]=B=>i.autoRemoveLastComma=B),"auto-keep-weight-zero":i.autoKeepWeightZero,"onUpdate:autoKeepWeightZero":t[7]||(t[7]=B=>i.autoKeepWeightZero=B),"auto-keep-weight-one":i.autoKeepWeightOne,"onUpdate:autoKeepWeightOne":t[8]||(t[8]=B=>i.autoKeepWeightOne=B),"auto-break-before-wrap":i.autoBreakBeforeWrap,"onUpdate:autoBreakBeforeWrap":t[9]||(t[9]=B=>i.autoBreakBeforeWrap=B),"auto-break-after-wrap":i.autoBreakAfterWrap,"onUpdate:autoBreakAfterWrap":t[10]||(t[10]=B=>i.autoBreakAfterWrap=B),"hide-default-input":E.hideDefaultInput,"onUpdate:hideDefaultInput":B=>o.onUpdateHideDefaultInput(E.id,B),"hide-panel":E.hidePanel,"onUpdate:hidePanel":B=>o.onUpdateHidePanel(E.id,B),"enable-tooltip":i.enableTooltip,"onUpdate:enableTooltip":t[11]||(t[11]=B=>i.enableTooltip=B),"translate-api":i.translateApi,"onUpdate:translateApi":t[12]||(t[12]=B=>i.translateApi=B),"translate-api-config":i.translateApiConfig,"onClick:translateApi":o.onTranslateApiClick,"onClick:promptFormat":o.onPromptFormatClick,"tag-complete-file":i.tagCompleteFile,"onUpdate:tagCompleteFile":t[13]||(t[13]=B=>i.tagCompleteFile=B),"only-csv-on-auto":i.onlyCsvOnAuto,"onUpdate:onlyCsvOnAuto":t[14]||(t[14]=B=>i.onlyCsvOnAuto=B),"onClick:selectLanguage":o.onSelectLanguageClick,"onClick:selectTheme":o.onSelectThemeClick,"onClick:showChatgpt":B=>o.onShowChatgpt(E.id,B),"extra-networks":i.extraNetworks,loras:i.loras,lycos:i.lycos,embeddings:i.embeddings,version:i.version,"latest-version":i.latestVersion,"is-latest-version":i.isLatestVersion,"onClick:showAbout":o.onShowAbout,theme:i.theme,"onClick:switchTheme":o.onSwitchTheme,"group-tags":i.groupTags,"hide-group-tags":E.hideGroupTags,"group-tags-color":i.groupTagsColor,"onUpdate:groupTagsColor":t[15]||(t[15]=B=>i.groupTagsColor=B),"onUpdate:hideGroupTags":B=>o.onUpdateHideGroupTags(E.id,B)},null,8,["id","name","neg","textarea","steps","language-code","translate-apis","languages","history-key","onClick:showHistory","favorite-key","onRefreshFavorites","onClick:showFavorite","can-one-translate","auto-translate","auto-translate-to-english","auto-translate-to-local","auto-remove-space","auto-remove-last-comma","auto-keep-weight-zero","auto-keep-weight-one","auto-break-before-wrap","auto-break-after-wrap","hide-default-input","onUpdate:hideDefaultInput","hide-panel","onUpdate:hidePanel","enable-tooltip","translate-api","translate-api-config","onClick:translateApi","onClick:promptFormat","tag-complete-file","only-csv-on-auto","onClick:selectLanguage","onClick:selectTheme","onClick:showChatgpt","extra-networks","loras","lycos","embeddings","version","latest-version","is-latest-version","onClick:showAbout","theme","onClick:switchTheme","group-tags","hide-group-tags","group-tags-color","onUpdate:hideGroupTags"])):Me("",!0)],64))),128)),xe(l,{ref:"translateSetting","language-code":i.languageCode,"onUpdate:languageCode":t[16]||(t[16]=E=>i.languageCode=E),"translate-apis":i.translateApis,languages:i.languages,"onForceUpdate:translateApi":o.updateTranslateApiConfig,"tag-complete-file":i.tagCompleteFile,"onUpdate:tagCompleteFile":t[17]||(t[17]=E=>i.tagCompleteFile=E),"only-csv-on-auto":i.onlyCsvOnAuto,"onUpdate:onlyCsvOnAuto":t[18]||(t[18]=E=>i.onlyCsvOnAuto=E),"translate-api":i.translateApi,"onUpdate:translateApi":t[19]||(t[19]=E=>i.translateApi=E)},null,8,["language-code","translate-apis","languages","onForceUpdate:translateApi","tag-complete-file","only-csv-on-auto","translate-api"]),xe(c,{ref:"selectLanguage","language-code":i.languageCode,"onUpdate:languageCode":t[20]||(t[20]=E=>i.languageCode=E),"translate-apis":i.translateApis,languages:i.languages,"translate-api":i.translateApi,"onUpdate:translateApi":t[21]||(t[21]=E=>i.translateApi=E),"tag-complete-file":i.tagCompleteFile,"onUpdate:tagCompleteFile":t[22]||(t[22]=E=>i.tagCompleteFile=E),"only-csv-on-auto":i.onlyCsvOnAuto,"onUpdate:onlyCsvOnAuto":t[23]||(t[23]=E=>i.onlyCsvOnAuto=E)},null,8,["language-code","translate-apis","languages","translate-api","tag-complete-file","only-csv-on-auto"]),xe(d,{ref:"promptFormat","language-code":i.languageCode,"onUpdate:languageCode":t[24]||(t[24]=E=>i.languageCode=E),"translate-apis":i.translateApis,languages:i.languages,"auto-remove-space":i.autoRemoveSpace,"onUpdate:autoRemoveSpace":t[25]||(t[25]=E=>i.autoRemoveSpace=E),"auto-remove-last-comma":i.autoRemoveLastComma,"onUpdate:autoRemoveLastComma":t[26]||(t[26]=E=>i.autoRemoveLastComma=E),"auto-keep-weight-zero":i.autoKeepWeightZero,"onUpdate:autoKeepWeightZero":t[27]||(t[27]=E=>i.autoKeepWeightZero=E),"auto-keep-weight-one":i.autoKeepWeightOne,"onUpdate:autoKeepWeightOne":t[28]||(t[28]=E=>i.autoKeepWeightOne=E),"auto-break-before-wrap":i.autoBreakBeforeWrap,"onUpdate:autoBreakBeforeWrap":t[29]||(t[29]=E=>i.autoBreakBeforeWrap=E),"auto-break-after-wrap":i.autoBreakAfterWrap,"onUpdate:autoBreakAfterWrap":t[30]||(t[30]=E=>i.autoBreakAfterWrap=E)},null,8,["language-code","translate-apis","languages","auto-remove-space","auto-remove-last-comma","auto-keep-weight-zero","auto-keep-weight-one","auto-break-before-wrap","auto-break-after-wrap"]),xe(h,{ref:"history","language-code":i.languageCode,"onUpdate:languageCode":t[31]||(t[31]=E=>i.languageCode=E),"translate-apis":i.translateApis,languages:i.languages,"tag-complete-file":i.tagCompleteFile,"onUpdate:tagCompleteFile":t[32]||(t[32]=E=>i.tagCompleteFile=E),"only-csv-on-auto":i.onlyCsvOnAuto,"onUpdate:onlyCsvOnAuto":t[33]||(t[33]=E=>i.onlyCsvOnAuto=E),onRefreshFavorites:o.onRefreshFavorites,onUse:o.onUseHistory},null,8,["language-code","translate-apis","languages","tag-complete-file","only-csv-on-auto","onRefreshFavorites","onUse"]),xe(p,{ref:"favorite","language-code":i.languageCode,"onUpdate:languageCode":t[34]||(t[34]=E=>i.languageCode=E),"translate-apis":i.translateApis,languages:i.languages,"tag-complete-file":i.tagCompleteFile,"onUpdate:tagCompleteFile":t[35]||(t[35]=E=>i.tagCompleteFile=E),"only-csv-on-auto":i.onlyCsvOnAuto,"onUpdate:onlyCsvOnAuto":t[36]||(t[36]=E=>i.onlyCsvOnAuto=E),onUse:o.onUseFavorite},null,8,["language-code","translate-apis","languages","tag-complete-file","only-csv-on-auto","onUse"]),xe(y,{ref:"extensionCss","language-code":i.languageCode,"onUpdate:languageCode":t[37]||(t[37]=E=>i.languageCode=E),"translate-apis":i.translateApis,languages:i.languages},null,8,["language-code","translate-apis","languages"]),xe(C,{ref:"packagesState","language-code":i.languageCode,"onUpdate:languageCode":t[38]||(t[38]=E=>i.languageCode=E),"translate-apis":i.translateApis,languages:i.languages,"onClick:selectLanguage":o.onSelectLanguageClick,"packages-state":i.packagesState,python:i.python},null,8,["language-code","translate-apis","languages","onClick:selectLanguage","packages-state","python"]),xe(w,{ref:"chatgptPrompt","language-code":i.languageCode,"onUpdate:languageCode":t[39]||(t[39]=E=>i.languageCode=E),"translate-apis":i.translateApis,languages:i.languages,onUse:o.onUseChatgpt},null,8,["language-code","translate-apis","languages","onUse"]),xe(x,{ref:"about","language-code":i.languageCode,"onUpdate:languageCode":t[40]||(t[40]=E=>i.languageCode=E),"translate-apis":i.translateApis,languages:i.languages},null,8,["language-code","translate-apis","languages"]),i.showPastePopup?(L(),H("div",{key:0,class:"physton-paste-popup",onClick:t[45]||(t[45]=(...E)=>o.closePastePopup&&o.closePastePopup(...E))},[S("div",{class:"paste-popup-main",onClick:t[44]||(t[44]=yt(()=>{},["stop"]))},[S("div",{class:"paste-popup-close",onClick:t[41]||(t[41]=(...E)=>o.closePastePopup&&o.closePastePopup(...E))},[xe(O,{name:"close"})]),S("div",D$,ye(i.pasteTitle),1),S("div",R$,[Te(S("textarea",{class:"paste-content","onUpdate:modelValue":t[42]||(t[42]=E=>i.pasteContent=E),placeholder:o.getLang("please_enter_the_content_here")},null,8,N$),[[Mi,i.pasteContent]]),i.pasteLoading?(L(),H("div",M$,[xe(O,{name:"loading"})])):(L(),H("div",{key:0,class:"paste-submit",onClick:t[43]||(t[43]=(...E)=>o.onClickPasteSubmit&&o.onClickPasteSubmit(...E))},"Submit"))])])])):Me("",!0)])}const $$=Mn(P$,[["render",F$]]);var c0={exports:{}},xd={exports:{}};/*!
|
||
* jQuery JavaScript Library v3.6.4
|
||
* https://jquery.com/
|
||
*
|
||
* Includes Sizzle.js
|
||
* https://sizzlejs.com/
|
||
*
|
||
* Copyright OpenJS Foundation and other contributors
|
||
* Released under the MIT license
|
||
* https://jquery.org/license
|
||
*
|
||
* Date: 2023-03-08T15:28Z
|
||
*/var f0;function B$(){return f0||(f0=1,function(e){(function(t,n){e.exports=t.document?n(t,!0):function(r){if(!r.document)throw new Error("jQuery requires a window with a document");return n(r)}})(typeof window<"u"?window:Kc,function(t,n){var r=[],i=Object.getPrototypeOf,o=r.slice,s=r.flat?function(u){return r.flat.call(u)}:function(u){return r.concat.apply([],u)},l=r.push,c=r.indexOf,d={},h=d.toString,p=d.hasOwnProperty,y=p.toString,C=y.call(Object),w={},x=function(f){return typeof f=="function"&&typeof f.nodeType!="number"&&typeof f.item!="function"},O=function(f){return f!=null&&f===f.window},E=t.document,B={type:!0,src:!0,nonce:!0,noModule:!0};function te(u,f,g){g=g||E;var v,b,_=g.createElement("script");if(_.text=u,f)for(v in B)b=f[v]||f.getAttribute&&f.getAttribute(v),b&&_.setAttribute(v,b);g.head.appendChild(_).parentNode.removeChild(_)}function D(u){return u==null?u+"":typeof u=="object"||typeof u=="function"?d[h.call(u)]||"object":typeof u}var we="3.6.4",m=function(u,f){return new m.fn.init(u,f)};m.fn=m.prototype={jquery:we,constructor:m,length:0,toArray:function(){return o.call(this)},get:function(u){return u==null?o.call(this):u<0?this[u+this.length]:this[u]},pushStack:function(u){var f=m.merge(this.constructor(),u);return f.prevObject=this,f},each:function(u){return m.each(this,u)},map:function(u){return this.pushStack(m.map(this,function(f,g){return u.call(f,g,f)}))},slice:function(){return this.pushStack(o.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(m.grep(this,function(u,f){return(f+1)%2}))},odd:function(){return this.pushStack(m.grep(this,function(u,f){return f%2}))},eq:function(u){var f=this.length,g=+u+(u<0?f:0);return this.pushStack(g>=0&&g<f?[this[g]]:[])},end:function(){return this.prevObject||this.constructor()},push:l,sort:r.sort,splice:r.splice},m.extend=m.fn.extend=function(){var u,f,g,v,b,_,T=arguments[0]||{},$=1,N=arguments.length,V=!1;for(typeof T=="boolean"&&(V=T,T=arguments[$]||{},$++),typeof T!="object"&&!x(T)&&(T={}),$===N&&(T=this,$--);$<N;$++)if((u=arguments[$])!=null)for(f in u)v=u[f],!(f==="__proto__"||T===v)&&(V&&v&&(m.isPlainObject(v)||(b=Array.isArray(v)))?(g=T[f],b&&!Array.isArray(g)?_=[]:!b&&!m.isPlainObject(g)?_={}:_=g,b=!1,T[f]=m.extend(V,_,v)):v!==void 0&&(T[f]=v));return T},m.extend({expando:"jQuery"+(we+Math.random()).replace(/\D/g,""),isReady:!0,error:function(u){throw new Error(u)},noop:function(){},isPlainObject:function(u){var f,g;return!u||h.call(u)!=="[object Object]"?!1:(f=i(u),f?(g=p.call(f,"constructor")&&f.constructor,typeof g=="function"&&y.call(g)===C):!0)},isEmptyObject:function(u){var f;for(f in u)return!1;return!0},globalEval:function(u,f,g){te(u,{nonce:f&&f.nonce},g)},each:function(u,f){var g,v=0;if(ue(u))for(g=u.length;v<g&&f.call(u[v],v,u[v])!==!1;v++);else for(v in u)if(f.call(u[v],v,u[v])===!1)break;return u},makeArray:function(u,f){var g=f||[];return u!=null&&(ue(Object(u))?m.merge(g,typeof u=="string"?[u]:u):l.call(g,u)),g},inArray:function(u,f,g){return f==null?-1:c.call(f,u,g)},merge:function(u,f){for(var g=+f.length,v=0,b=u.length;v<g;v++)u[b++]=f[v];return u.length=b,u},grep:function(u,f,g){for(var v,b=[],_=0,T=u.length,$=!g;_<T;_++)v=!f(u[_],_),v!==$&&b.push(u[_]);return b},map:function(u,f,g){var v,b,_=0,T=[];if(ue(u))for(v=u.length;_<v;_++)b=f(u[_],_,g),b!=null&&T.push(b);else for(_ in u)b=f(u[_],_,g),b!=null&&T.push(b);return s(T)},guid:1,support:w}),typeof Symbol=="function"&&(m.fn[Symbol.iterator]=r[Symbol.iterator]),m.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(u,f){d["[object "+f+"]"]=f.toLowerCase()});function ue(u){var f=!!u&&"length"in u&&u.length,g=D(u);return x(u)||O(u)?!1:g==="array"||f===0||typeof f=="number"&&f>0&&f-1 in u}var I=function(u){var f,g,v,b,_,T,$,N,V,J,de,G,re,We,ct,Ue,ln,en,Zn,Lt="sizzle"+1*new Date,ut=u.document,Un=0,xt=0,Wt=Fu(),Pa=Fu(),Ru=Fu(),Qn=Fu(),ro=function(k,M){return k===M&&(de=!0),0},io={}.hasOwnProperty,Wn=[],Si=Wn.pop,dr=Wn.push,Ai=Wn.push,Ob=Wn.slice,oo=function(k,M){for(var U=0,oe=k.length;U<oe;U++)if(k[U]===M)return U;return-1},rp="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",kt="[\\x20\\t\\r\\n\\f]",so="(?:\\\\[\\da-fA-F]{1,6}"+kt+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",Lb="\\["+kt+"*("+so+")(?:"+kt+"*([*^$|!~]?=)"+kt+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+so+"))|)"+kt+"*\\]",ip=":("+so+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+Lb+")*)|.*)\\)|)",cj=new RegExp(kt+"+","g"),Nu=new RegExp("^"+kt+"+|((?:^|[^\\\\])(?:\\\\.)*)"+kt+"+$","g"),fj=new RegExp("^"+kt+"*,"+kt+"*"),Ib=new RegExp("^"+kt+"*([>+~]|"+kt+")"+kt+"*"),dj=new RegExp(kt+"|>"),pj=new RegExp(ip),hj=new RegExp("^"+so+"$"),Mu={ID:new RegExp("^#("+so+")"),CLASS:new RegExp("^\\.("+so+")"),TAG:new RegExp("^("+so+"|[*])"),ATTR:new RegExp("^"+Lb),PSEUDO:new RegExp("^"+ip),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+kt+"*(even|odd|(([+-]|)(\\d*)n|)"+kt+"*(?:([+-]|)"+kt+"*(\\d+)|))"+kt+"*\\)|)","i"),bool:new RegExp("^(?:"+rp+")$","i"),needsContext:new RegExp("^"+kt+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+kt+"*((?:-\\d)?\\d*)"+kt+"*\\)|)(?=[^-]|$)","i")},gj=/HTML$/i,mj=/^(?:input|select|textarea|button)$/i,vj=/^h\d$/i,Da=/^[^{]+\{\s*\[native \w/,yj=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,op=/[+~]/,ii=new RegExp("\\\\[\\da-fA-F]{1,6}"+kt+"?|\\\\([^\\r\\n\\f])","g"),oi=function(k,M){var U="0x"+k.slice(1)-65536;return M||(U<0?String.fromCharCode(U+65536):String.fromCharCode(U>>10|55296,U&1023|56320))},Pb=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,Db=function(k,M){return M?k==="\0"?"<22>":k.slice(0,-1)+"\\"+k.charCodeAt(k.length-1).toString(16)+" ":"\\"+k},Rb=function(){G()},bj=Bu(function(k){return k.disabled===!0&&k.nodeName.toLowerCase()==="fieldset"},{dir:"parentNode",next:"legend"});try{Ai.apply(Wn=Ob.call(ut.childNodes),ut.childNodes),Wn[ut.childNodes.length].nodeType}catch{Ai={apply:Wn.length?function(M,U){dr.apply(M,Ob.call(U))}:function(M,U){for(var oe=M.length,K=0;M[oe++]=U[K++];);M.length=oe-1}}}function It(k,M,U,oe){var K,le,pe,Ie,$e,Ge,ze,Je=M&&M.ownerDocument,mt=M?M.nodeType:9;if(U=U||[],typeof k!="string"||!k||mt!==1&&mt!==9&&mt!==11)return U;if(!oe&&(G(M),M=M||re,ct)){if(mt!==11&&($e=yj.exec(k)))if(K=$e[1]){if(mt===9)if(pe=M.getElementById(K)){if(pe.id===K)return U.push(pe),U}else return U;else if(Je&&(pe=Je.getElementById(K))&&Zn(M,pe)&&pe.id===K)return U.push(pe),U}else{if($e[2])return Ai.apply(U,M.getElementsByTagName(k)),U;if((K=$e[3])&&g.getElementsByClassName&&M.getElementsByClassName)return Ai.apply(U,M.getElementsByClassName(K)),U}if(g.qsa&&!Qn[k+" "]&&(!Ue||!Ue.test(k))&&(mt!==1||M.nodeName.toLowerCase()!=="object")){if(ze=k,Je=M,mt===1&&(dj.test(k)||Ib.test(k))){for(Je=op.test(k)&&ap(M.parentNode)||M,(Je!==M||!g.scope)&&((Ie=M.getAttribute("id"))?Ie=Ie.replace(Pb,Db):M.setAttribute("id",Ie=Lt)),Ge=T(k),le=Ge.length;le--;)Ge[le]=(Ie?"#"+Ie:":scope")+" "+$u(Ge[le]);ze=Ge.join(",")}try{return Ai.apply(U,Je.querySelectorAll(ze)),U}catch{Qn(k,!0)}finally{Ie===Lt&&M.removeAttribute("id")}}}return N(k.replace(Nu,"$1"),M,U,oe)}function Fu(){var k=[];function M(U,oe){return k.push(U+" ")>v.cacheLength&&delete M[k.shift()],M[U+" "]=oe}return M}function xr(k){return k[Lt]=!0,k}function pr(k){var M=re.createElement("fieldset");try{return!!k(M)}catch{return!1}finally{M.parentNode&&M.parentNode.removeChild(M),M=null}}function sp(k,M){for(var U=k.split("|"),oe=U.length;oe--;)v.attrHandle[U[oe]]=M}function Nb(k,M){var U=M&&k,oe=U&&k.nodeType===1&&M.nodeType===1&&k.sourceIndex-M.sourceIndex;if(oe)return oe;if(U){for(;U=U.nextSibling;)if(U===M)return-1}return k?1:-1}function Cj(k){return function(M){var U=M.nodeName.toLowerCase();return U==="input"&&M.type===k}}function _j(k){return function(M){var U=M.nodeName.toLowerCase();return(U==="input"||U==="button")&&M.type===k}}function Mb(k){return function(M){return"form"in M?M.parentNode&&M.disabled===!1?"label"in M?"label"in M.parentNode?M.parentNode.disabled===k:M.disabled===k:M.isDisabled===k||M.isDisabled!==!k&&bj(M)===k:M.disabled===k:"label"in M?M.disabled===k:!1}}function ao(k){return xr(function(M){return M=+M,xr(function(U,oe){for(var K,le=k([],U.length,M),pe=le.length;pe--;)U[K=le[pe]]&&(U[K]=!(oe[K]=U[K]))})})}function ap(k){return k&&typeof k.getElementsByTagName<"u"&&k}g=It.support={},_=It.isXML=function(k){var M=k&&k.namespaceURI,U=k&&(k.ownerDocument||k).documentElement;return!gj.test(M||U&&U.nodeName||"HTML")},G=It.setDocument=function(k){var M,U,oe=k?k.ownerDocument||k:ut;return oe==re||oe.nodeType!==9||!oe.documentElement||(re=oe,We=re.documentElement,ct=!_(re),ut!=re&&(U=re.defaultView)&&U.top!==U&&(U.addEventListener?U.addEventListener("unload",Rb,!1):U.attachEvent&&U.attachEvent("onunload",Rb)),g.scope=pr(function(K){return We.appendChild(K).appendChild(re.createElement("div")),typeof K.querySelectorAll<"u"&&!K.querySelectorAll(":scope fieldset div").length}),g.cssHas=pr(function(){try{return re.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),g.attributes=pr(function(K){return K.className="i",!K.getAttribute("className")}),g.getElementsByTagName=pr(function(K){return K.appendChild(re.createComment("")),!K.getElementsByTagName("*").length}),g.getElementsByClassName=Da.test(re.getElementsByClassName),g.getById=pr(function(K){return We.appendChild(K).id=Lt,!re.getElementsByName||!re.getElementsByName(Lt).length}),g.getById?(v.filter.ID=function(K){var le=K.replace(ii,oi);return function(pe){return pe.getAttribute("id")===le}},v.find.ID=function(K,le){if(typeof le.getElementById<"u"&&ct){var pe=le.getElementById(K);return pe?[pe]:[]}}):(v.filter.ID=function(K){var le=K.replace(ii,oi);return function(pe){var Ie=typeof pe.getAttributeNode<"u"&&pe.getAttributeNode("id");return Ie&&Ie.value===le}},v.find.ID=function(K,le){if(typeof le.getElementById<"u"&&ct){var pe,Ie,$e,Ge=le.getElementById(K);if(Ge){if(pe=Ge.getAttributeNode("id"),pe&&pe.value===K)return[Ge];for($e=le.getElementsByName(K),Ie=0;Ge=$e[Ie++];)if(pe=Ge.getAttributeNode("id"),pe&&pe.value===K)return[Ge]}return[]}}),v.find.TAG=g.getElementsByTagName?function(K,le){if(typeof le.getElementsByTagName<"u")return le.getElementsByTagName(K);if(g.qsa)return le.querySelectorAll(K)}:function(K,le){var pe,Ie=[],$e=0,Ge=le.getElementsByTagName(K);if(K==="*"){for(;pe=Ge[$e++];)pe.nodeType===1&&Ie.push(pe);return Ie}return Ge},v.find.CLASS=g.getElementsByClassName&&function(K,le){if(typeof le.getElementsByClassName<"u"&&ct)return le.getElementsByClassName(K)},ln=[],Ue=[],(g.qsa=Da.test(re.querySelectorAll))&&(pr(function(K){var le;We.appendChild(K).innerHTML="<a id='"+Lt+"'></a><select id='"+Lt+"-\r\\' msallowcapture=''><option selected=''></option></select>",K.querySelectorAll("[msallowcapture^='']").length&&Ue.push("[*^$]="+kt+`*(?:''|"")`),K.querySelectorAll("[selected]").length||Ue.push("\\["+kt+"*(?:value|"+rp+")"),K.querySelectorAll("[id~="+Lt+"-]").length||Ue.push("~="),le=re.createElement("input"),le.setAttribute("name",""),K.appendChild(le),K.querySelectorAll("[name='']").length||Ue.push("\\["+kt+"*name"+kt+"*="+kt+`*(?:''|"")`),K.querySelectorAll(":checked").length||Ue.push(":checked"),K.querySelectorAll("a#"+Lt+"+*").length||Ue.push(".#.+[+~]"),K.querySelectorAll("\\\f"),Ue.push("[\\r\\n\\f]")}),pr(function(K){K.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var le=re.createElement("input");le.setAttribute("type","hidden"),K.appendChild(le).setAttribute("name","D"),K.querySelectorAll("[name=d]").length&&Ue.push("name"+kt+"*[*^$|!~]?="),K.querySelectorAll(":enabled").length!==2&&Ue.push(":enabled",":disabled"),We.appendChild(K).disabled=!0,K.querySelectorAll(":disabled").length!==2&&Ue.push(":enabled",":disabled"),K.querySelectorAll("*,:x"),Ue.push(",.*:")})),(g.matchesSelector=Da.test(en=We.matches||We.webkitMatchesSelector||We.mozMatchesSelector||We.oMatchesSelector||We.msMatchesSelector))&&pr(function(K){g.disconnectedMatch=en.call(K,"*"),en.call(K,"[s!='']:x"),ln.push("!=",ip)}),g.cssHas||Ue.push(":has"),Ue=Ue.length&&new RegExp(Ue.join("|")),ln=ln.length&&new RegExp(ln.join("|")),M=Da.test(We.compareDocumentPosition),Zn=M||Da.test(We.contains)?function(K,le){var pe=K.nodeType===9&&K.documentElement||K,Ie=le&&le.parentNode;return K===Ie||!!(Ie&&Ie.nodeType===1&&(pe.contains?pe.contains(Ie):K.compareDocumentPosition&&K.compareDocumentPosition(Ie)&16))}:function(K,le){if(le){for(;le=le.parentNode;)if(le===K)return!0}return!1},ro=M?function(K,le){if(K===le)return de=!0,0;var pe=!K.compareDocumentPosition-!le.compareDocumentPosition;return pe||(pe=(K.ownerDocument||K)==(le.ownerDocument||le)?K.compareDocumentPosition(le):1,pe&1||!g.sortDetached&&le.compareDocumentPosition(K)===pe?K==re||K.ownerDocument==ut&&Zn(ut,K)?-1:le==re||le.ownerDocument==ut&&Zn(ut,le)?1:J?oo(J,K)-oo(J,le):0:pe&4?-1:1)}:function(K,le){if(K===le)return de=!0,0;var pe,Ie=0,$e=K.parentNode,Ge=le.parentNode,ze=[K],Je=[le];if(!$e||!Ge)return K==re?-1:le==re?1:$e?-1:Ge?1:J?oo(J,K)-oo(J,le):0;if($e===Ge)return Nb(K,le);for(pe=K;pe=pe.parentNode;)ze.unshift(pe);for(pe=le;pe=pe.parentNode;)Je.unshift(pe);for(;ze[Ie]===Je[Ie];)Ie++;return Ie?Nb(ze[Ie],Je[Ie]):ze[Ie]==ut?-1:Je[Ie]==ut?1:0}),re},It.matches=function(k,M){return It(k,null,null,M)},It.matchesSelector=function(k,M){if(G(k),g.matchesSelector&&ct&&!Qn[M+" "]&&(!ln||!ln.test(M))&&(!Ue||!Ue.test(M)))try{var U=en.call(k,M);if(U||g.disconnectedMatch||k.document&&k.document.nodeType!==11)return U}catch{Qn(M,!0)}return It(M,re,null,[k]).length>0},It.contains=function(k,M){return(k.ownerDocument||k)!=re&&G(k),Zn(k,M)},It.attr=function(k,M){(k.ownerDocument||k)!=re&&G(k);var U=v.attrHandle[M.toLowerCase()],oe=U&&io.call(v.attrHandle,M.toLowerCase())?U(k,M,!ct):void 0;return oe!==void 0?oe:g.attributes||!ct?k.getAttribute(M):(oe=k.getAttributeNode(M))&&oe.specified?oe.value:null},It.escape=function(k){return(k+"").replace(Pb,Db)},It.error=function(k){throw new Error("Syntax error, unrecognized expression: "+k)},It.uniqueSort=function(k){var M,U=[],oe=0,K=0;if(de=!g.detectDuplicates,J=!g.sortStable&&k.slice(0),k.sort(ro),de){for(;M=k[K++];)M===k[K]&&(oe=U.push(K));for(;oe--;)k.splice(U[oe],1)}return J=null,k},b=It.getText=function(k){var M,U="",oe=0,K=k.nodeType;if(K){if(K===1||K===9||K===11){if(typeof k.textContent=="string")return k.textContent;for(k=k.firstChild;k;k=k.nextSibling)U+=b(k)}else if(K===3||K===4)return k.nodeValue}else for(;M=k[oe++];)U+=b(M);return U},v=It.selectors={cacheLength:50,createPseudo:xr,match:Mu,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(k){return k[1]=k[1].replace(ii,oi),k[3]=(k[3]||k[4]||k[5]||"").replace(ii,oi),k[2]==="~="&&(k[3]=" "+k[3]+" "),k.slice(0,4)},CHILD:function(k){return k[1]=k[1].toLowerCase(),k[1].slice(0,3)==="nth"?(k[3]||It.error(k[0]),k[4]=+(k[4]?k[5]+(k[6]||1):2*(k[3]==="even"||k[3]==="odd")),k[5]=+(k[7]+k[8]||k[3]==="odd")):k[3]&&It.error(k[0]),k},PSEUDO:function(k){var M,U=!k[6]&&k[2];return Mu.CHILD.test(k[0])?null:(k[3]?k[2]=k[4]||k[5]||"":U&&pj.test(U)&&(M=T(U,!0))&&(M=U.indexOf(")",U.length-M)-U.length)&&(k[0]=k[0].slice(0,M),k[2]=U.slice(0,M)),k.slice(0,3))}},filter:{TAG:function(k){var M=k.replace(ii,oi).toLowerCase();return k==="*"?function(){return!0}:function(U){return U.nodeName&&U.nodeName.toLowerCase()===M}},CLASS:function(k){var M=Wt[k+" "];return M||(M=new RegExp("(^|"+kt+")"+k+"("+kt+"|$)"))&&Wt(k,function(U){return M.test(typeof U.className=="string"&&U.className||typeof U.getAttribute<"u"&&U.getAttribute("class")||"")})},ATTR:function(k,M,U){return function(oe){var K=It.attr(oe,k);return K==null?M==="!=":M?(K+="",M==="="?K===U:M==="!="?K!==U:M==="^="?U&&K.indexOf(U)===0:M==="*="?U&&K.indexOf(U)>-1:M==="$="?U&&K.slice(-U.length)===U:M==="~="?(" "+K.replace(cj," ")+" ").indexOf(U)>-1:M==="|="?K===U||K.slice(0,U.length+1)===U+"-":!1):!0}},CHILD:function(k,M,U,oe,K){var le=k.slice(0,3)!=="nth",pe=k.slice(-4)!=="last",Ie=M==="of-type";return oe===1&&K===0?function($e){return!!$e.parentNode}:function($e,Ge,ze){var Je,mt,Pt,Ye,un,xn,er=le!==pe?"nextSibling":"previousSibling",jt=$e.parentNode,Ra=Ie&&$e.nodeName.toLowerCase(),Na=!ze&&!Ie,tr=!1;if(jt){if(le){for(;er;){for(Ye=$e;Ye=Ye[er];)if(Ie?Ye.nodeName.toLowerCase()===Ra:Ye.nodeType===1)return!1;xn=er=k==="only"&&!xn&&"nextSibling"}return!0}if(xn=[pe?jt.firstChild:jt.lastChild],pe&&Na){for(Ye=jt,Pt=Ye[Lt]||(Ye[Lt]={}),mt=Pt[Ye.uniqueID]||(Pt[Ye.uniqueID]={}),Je=mt[k]||[],un=Je[0]===Un&&Je[1],tr=un&&Je[2],Ye=un&&jt.childNodes[un];Ye=++un&&Ye&&Ye[er]||(tr=un=0)||xn.pop();)if(Ye.nodeType===1&&++tr&&Ye===$e){mt[k]=[Un,un,tr];break}}else if(Na&&(Ye=$e,Pt=Ye[Lt]||(Ye[Lt]={}),mt=Pt[Ye.uniqueID]||(Pt[Ye.uniqueID]={}),Je=mt[k]||[],un=Je[0]===Un&&Je[1],tr=un),tr===!1)for(;(Ye=++un&&Ye&&Ye[er]||(tr=un=0)||xn.pop())&&!((Ie?Ye.nodeName.toLowerCase()===Ra:Ye.nodeType===1)&&++tr&&(Na&&(Pt=Ye[Lt]||(Ye[Lt]={}),mt=Pt[Ye.uniqueID]||(Pt[Ye.uniqueID]={}),mt[k]=[Un,tr]),Ye===$e)););return tr-=K,tr===oe||tr%oe===0&&tr/oe>=0}}},PSEUDO:function(k,M){var U,oe=v.pseudos[k]||v.setFilters[k.toLowerCase()]||It.error("unsupported pseudo: "+k);return oe[Lt]?oe(M):oe.length>1?(U=[k,k,"",M],v.setFilters.hasOwnProperty(k.toLowerCase())?xr(function(K,le){for(var pe,Ie=oe(K,M),$e=Ie.length;$e--;)pe=oo(K,Ie[$e]),K[pe]=!(le[pe]=Ie[$e])}):function(K){return oe(K,0,U)}):oe}},pseudos:{not:xr(function(k){var M=[],U=[],oe=$(k.replace(Nu,"$1"));return oe[Lt]?xr(function(K,le,pe,Ie){for(var $e,Ge=oe(K,null,Ie,[]),ze=K.length;ze--;)($e=Ge[ze])&&(K[ze]=!(le[ze]=$e))}):function(K,le,pe){return M[0]=K,oe(M,null,pe,U),M[0]=null,!U.pop()}}),has:xr(function(k){return function(M){return It(k,M).length>0}}),contains:xr(function(k){return k=k.replace(ii,oi),function(M){return(M.textContent||b(M)).indexOf(k)>-1}}),lang:xr(function(k){return hj.test(k||"")||It.error("unsupported lang: "+k),k=k.replace(ii,oi).toLowerCase(),function(M){var U;do if(U=ct?M.lang:M.getAttribute("xml:lang")||M.getAttribute("lang"))return U=U.toLowerCase(),U===k||U.indexOf(k+"-")===0;while((M=M.parentNode)&&M.nodeType===1);return!1}}),target:function(k){var M=u.location&&u.location.hash;return M&&M.slice(1)===k.id},root:function(k){return k===We},focus:function(k){return k===re.activeElement&&(!re.hasFocus||re.hasFocus())&&!!(k.type||k.href||~k.tabIndex)},enabled:Mb(!1),disabled:Mb(!0),checked:function(k){var M=k.nodeName.toLowerCase();return M==="input"&&!!k.checked||M==="option"&&!!k.selected},selected:function(k){return k.parentNode&&k.parentNode.selectedIndex,k.selected===!0},empty:function(k){for(k=k.firstChild;k;k=k.nextSibling)if(k.nodeType<6)return!1;return!0},parent:function(k){return!v.pseudos.empty(k)},header:function(k){return vj.test(k.nodeName)},input:function(k){return mj.test(k.nodeName)},button:function(k){var M=k.nodeName.toLowerCase();return M==="input"&&k.type==="button"||M==="button"},text:function(k){var M;return k.nodeName.toLowerCase()==="input"&&k.type==="text"&&((M=k.getAttribute("type"))==null||M.toLowerCase()==="text")},first:ao(function(){return[0]}),last:ao(function(k,M){return[M-1]}),eq:ao(function(k,M,U){return[U<0?U+M:U]}),even:ao(function(k,M){for(var U=0;U<M;U+=2)k.push(U);return k}),odd:ao(function(k,M){for(var U=1;U<M;U+=2)k.push(U);return k}),lt:ao(function(k,M,U){for(var oe=U<0?U+M:U>M?M:U;--oe>=0;)k.push(oe);return k}),gt:ao(function(k,M,U){for(var oe=U<0?U+M:U;++oe<M;)k.push(oe);return k})}},v.pseudos.nth=v.pseudos.eq;for(f in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})v.pseudos[f]=Cj(f);for(f in{submit:!0,reset:!0})v.pseudos[f]=_j(f);function Fb(){}Fb.prototype=v.filters=v.pseudos,v.setFilters=new Fb,T=It.tokenize=function(k,M){var U,oe,K,le,pe,Ie,$e,Ge=Pa[k+" "];if(Ge)return M?0:Ge.slice(0);for(pe=k,Ie=[],$e=v.preFilter;pe;){(!U||(oe=fj.exec(pe)))&&(oe&&(pe=pe.slice(oe[0].length)||pe),Ie.push(K=[])),U=!1,(oe=Ib.exec(pe))&&(U=oe.shift(),K.push({value:U,type:oe[0].replace(Nu," ")}),pe=pe.slice(U.length));for(le in v.filter)(oe=Mu[le].exec(pe))&&(!$e[le]||(oe=$e[le](oe)))&&(U=oe.shift(),K.push({value:U,type:le,matches:oe}),pe=pe.slice(U.length));if(!U)break}return M?pe.length:pe?It.error(k):Pa(k,Ie).slice(0)};function $u(k){for(var M=0,U=k.length,oe="";M<U;M++)oe+=k[M].value;return oe}function Bu(k,M,U){var oe=M.dir,K=M.next,le=K||oe,pe=U&&le==="parentNode",Ie=xt++;return M.first?function($e,Ge,ze){for(;$e=$e[oe];)if($e.nodeType===1||pe)return k($e,Ge,ze);return!1}:function($e,Ge,ze){var Je,mt,Pt,Ye=[Un,Ie];if(ze){for(;$e=$e[oe];)if(($e.nodeType===1||pe)&&k($e,Ge,ze))return!0}else for(;$e=$e[oe];)if($e.nodeType===1||pe)if(Pt=$e[Lt]||($e[Lt]={}),mt=Pt[$e.uniqueID]||(Pt[$e.uniqueID]={}),K&&K===$e.nodeName.toLowerCase())$e=$e[oe]||$e;else{if((Je=mt[le])&&Je[0]===Un&&Je[1]===Ie)return Ye[2]=Je[2];if(mt[le]=Ye,Ye[2]=k($e,Ge,ze))return!0}return!1}}function lp(k){return k.length>1?function(M,U,oe){for(var K=k.length;K--;)if(!k[K](M,U,oe))return!1;return!0}:k[0]}function wj(k,M,U){for(var oe=0,K=M.length;oe<K;oe++)It(k,M[oe],U);return U}function Hu(k,M,U,oe,K){for(var le,pe=[],Ie=0,$e=k.length,Ge=M!=null;Ie<$e;Ie++)(le=k[Ie])&&(!U||U(le,oe,K))&&(pe.push(le),Ge&&M.push(Ie));return pe}function up(k,M,U,oe,K,le){return oe&&!oe[Lt]&&(oe=up(oe)),K&&!K[Lt]&&(K=up(K,le)),xr(function(pe,Ie,$e,Ge){var ze,Je,mt,Pt=[],Ye=[],un=Ie.length,xn=pe||wj(M||"*",$e.nodeType?[$e]:$e,[]),er=k&&(pe||!M)?Hu(xn,Pt,k,$e,Ge):xn,jt=U?K||(pe?k:un||oe)?[]:Ie:er;if(U&&U(er,jt,$e,Ge),oe)for(ze=Hu(jt,Ye),oe(ze,[],$e,Ge),Je=ze.length;Je--;)(mt=ze[Je])&&(jt[Ye[Je]]=!(er[Ye[Je]]=mt));if(pe){if(K||k){if(K){for(ze=[],Je=jt.length;Je--;)(mt=jt[Je])&&ze.push(er[Je]=mt);K(null,jt=[],ze,Ge)}for(Je=jt.length;Je--;)(mt=jt[Je])&&(ze=K?oo(pe,mt):Pt[Je])>-1&&(pe[ze]=!(Ie[ze]=mt))}}else jt=Hu(jt===Ie?jt.splice(un,jt.length):jt),K?K(null,Ie,jt,Ge):Ai.apply(Ie,jt)})}function cp(k){for(var M,U,oe,K=k.length,le=v.relative[k[0].type],pe=le||v.relative[" "],Ie=le?1:0,$e=Bu(function(Je){return Je===M},pe,!0),Ge=Bu(function(Je){return oo(M,Je)>-1},pe,!0),ze=[function(Je,mt,Pt){var Ye=!le&&(Pt||mt!==V)||((M=mt).nodeType?$e(Je,mt,Pt):Ge(Je,mt,Pt));return M=null,Ye}];Ie<K;Ie++)if(U=v.relative[k[Ie].type])ze=[Bu(lp(ze),U)];else{if(U=v.filter[k[Ie].type].apply(null,k[Ie].matches),U[Lt]){for(oe=++Ie;oe<K&&!v.relative[k[oe].type];oe++);return up(Ie>1&&lp(ze),Ie>1&&$u(k.slice(0,Ie-1).concat({value:k[Ie-2].type===" "?"*":""})).replace(Nu,"$1"),U,Ie<oe&&cp(k.slice(Ie,oe)),oe<K&&cp(k=k.slice(oe)),oe<K&&$u(k))}ze.push(U)}return lp(ze)}function Tj(k,M){var U=M.length>0,oe=k.length>0,K=function(le,pe,Ie,$e,Ge){var ze,Je,mt,Pt=0,Ye="0",un=le&&[],xn=[],er=V,jt=le||oe&&v.find.TAG("*",Ge),Ra=Un+=er==null?1:Math.random()||.1,Na=jt.length;for(Ge&&(V=pe==re||pe||Ge);Ye!==Na&&(ze=jt[Ye])!=null;Ye++){if(oe&&ze){for(Je=0,!pe&&ze.ownerDocument!=re&&(G(ze),Ie=!ct);mt=k[Je++];)if(mt(ze,pe||re,Ie)){$e.push(ze);break}Ge&&(Un=Ra)}U&&((ze=!mt&&ze)&&Pt--,le&&un.push(ze))}if(Pt+=Ye,U&&Ye!==Pt){for(Je=0;mt=M[Je++];)mt(un,xn,pe,Ie);if(le){if(Pt>0)for(;Ye--;)un[Ye]||xn[Ye]||(xn[Ye]=Si.call($e));xn=Hu(xn)}Ai.apply($e,xn),Ge&&!le&&xn.length>0&&Pt+M.length>1&&It.uniqueSort($e)}return Ge&&(Un=Ra,V=er),un};return U?xr(K):K}return $=It.compile=function(k,M){var U,oe=[],K=[],le=Ru[k+" "];if(!le){for(M||(M=T(k)),U=M.length;U--;)le=cp(M[U]),le[Lt]?oe.push(le):K.push(le);le=Ru(k,Tj(K,oe)),le.selector=k}return le},N=It.select=function(k,M,U,oe){var K,le,pe,Ie,$e,Ge=typeof k=="function"&&k,ze=!oe&&T(k=Ge.selector||k);if(U=U||[],ze.length===1){if(le=ze[0]=ze[0].slice(0),le.length>2&&(pe=le[0]).type==="ID"&&M.nodeType===9&&ct&&v.relative[le[1].type]){if(M=(v.find.ID(pe.matches[0].replace(ii,oi),M)||[])[0],M)Ge&&(M=M.parentNode);else return U;k=k.slice(le.shift().value.length)}for(K=Mu.needsContext.test(k)?0:le.length;K--&&(pe=le[K],!v.relative[Ie=pe.type]);)if(($e=v.find[Ie])&&(oe=$e(pe.matches[0].replace(ii,oi),op.test(le[0].type)&&ap(M.parentNode)||M))){if(le.splice(K,1),k=oe.length&&$u(le),!k)return Ai.apply(U,oe),U;break}}return(Ge||$(k,ze))(oe,M,!ct,U,!M||op.test(k)&&ap(M.parentNode)||M),U},g.sortStable=Lt.split("").sort(ro).join("")===Lt,g.detectDuplicates=!!de,G(),g.sortDetached=pr(function(k){return k.compareDocumentPosition(re.createElement("fieldset"))&1}),pr(function(k){return k.innerHTML="<a href='#'></a>",k.firstChild.getAttribute("href")==="#"})||sp("type|href|height|width",function(k,M,U){if(!U)return k.getAttribute(M,M.toLowerCase()==="type"?1:2)}),(!g.attributes||!pr(function(k){return k.innerHTML="<input/>",k.firstChild.setAttribute("value",""),k.firstChild.getAttribute("value")===""}))&&sp("value",function(k,M,U){if(!U&&k.nodeName.toLowerCase()==="input")return k.defaultValue}),pr(function(k){return k.getAttribute("disabled")==null})||sp(rp,function(k,M,U){var oe;if(!U)return k[M]===!0?M.toLowerCase():(oe=k.getAttributeNode(M))&&oe.specified?oe.value:null}),It}(t);m.find=I,m.expr=I.selectors,m.expr[":"]=m.expr.pseudos,m.uniqueSort=m.unique=I.uniqueSort,m.text=I.getText,m.isXMLDoc=I.isXML,m.contains=I.contains,m.escapeSelector=I.escape;var A=function(u,f,g){for(var v=[],b=g!==void 0;(u=u[f])&&u.nodeType!==9;)if(u.nodeType===1){if(b&&m(u).is(g))break;v.push(u)}return v},P=function(u,f){for(var g=[];u;u=u.nextSibling)u.nodeType===1&&u!==f&&g.push(u);return g},j=m.expr.match.needsContext;function Q(u,f){return u.nodeName&&u.nodeName.toLowerCase()===f.toLowerCase()}var X=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function ve(u,f,g){return x(f)?m.grep(u,function(v,b){return!!f.call(v,b,v)!==g}):f.nodeType?m.grep(u,function(v){return v===f!==g}):typeof f!="string"?m.grep(u,function(v){return c.call(f,v)>-1!==g}):m.filter(f,u,g)}m.filter=function(u,f,g){var v=f[0];return g&&(u=":not("+u+")"),f.length===1&&v.nodeType===1?m.find.matchesSelector(v,u)?[v]:[]:m.find.matches(u,m.grep(f,function(b){return b.nodeType===1}))},m.fn.extend({find:function(u){var f,g,v=this.length,b=this;if(typeof u!="string")return this.pushStack(m(u).filter(function(){for(f=0;f<v;f++)if(m.contains(b[f],this))return!0}));for(g=this.pushStack([]),f=0;f<v;f++)m.find(u,b[f],g);return v>1?m.uniqueSort(g):g},filter:function(u){return this.pushStack(ve(this,u||[],!1))},not:function(u){return this.pushStack(ve(this,u||[],!0))},is:function(u){return!!ve(this,typeof u=="string"&&j.test(u)?m(u):u||[],!1).length}});var je,Re=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,q=m.fn.init=function(u,f,g){var v,b;if(!u)return this;if(g=g||je,typeof u=="string")if(u[0]==="<"&&u[u.length-1]===">"&&u.length>=3?v=[null,u,null]:v=Re.exec(u),v&&(v[1]||!f))if(v[1]){if(f=f instanceof m?f[0]:f,m.merge(this,m.parseHTML(v[1],f&&f.nodeType?f.ownerDocument||f:E,!0)),X.test(v[1])&&m.isPlainObject(f))for(v in f)x(this[v])?this[v](f[v]):this.attr(v,f[v]);return this}else return b=E.getElementById(v[2]),b&&(this[0]=b,this.length=1),this;else return!f||f.jquery?(f||g).find(u):this.constructor(f).find(u);else{if(u.nodeType)return this[0]=u,this.length=1,this;if(x(u))return g.ready!==void 0?g.ready(u):u(m)}return m.makeArray(u,this)};q.prototype=m.fn,je=m(E);var ie=/^(?:parents|prev(?:Until|All))/,ce={children:!0,contents:!0,next:!0,prev:!0};m.fn.extend({has:function(u){var f=m(u,this),g=f.length;return this.filter(function(){for(var v=0;v<g;v++)if(m.contains(this,f[v]))return!0})},closest:function(u,f){var g,v=0,b=this.length,_=[],T=typeof u!="string"&&m(u);if(!j.test(u)){for(;v<b;v++)for(g=this[v];g&&g!==f;g=g.parentNode)if(g.nodeType<11&&(T?T.index(g)>-1:g.nodeType===1&&m.find.matchesSelector(g,u))){_.push(g);break}}return this.pushStack(_.length>1?m.uniqueSort(_):_)},index:function(u){return u?typeof u=="string"?c.call(m(u),this[0]):c.call(this,u.jquery?u[0]:u):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(u,f){return this.pushStack(m.uniqueSort(m.merge(this.get(),m(u,f))))},addBack:function(u){return this.add(u==null?this.prevObject:this.prevObject.filter(u))}});function nt(u,f){for(;(u=u[f])&&u.nodeType!==1;);return u}m.each({parent:function(u){var f=u.parentNode;return f&&f.nodeType!==11?f:null},parents:function(u){return A(u,"parentNode")},parentsUntil:function(u,f,g){return A(u,"parentNode",g)},next:function(u){return nt(u,"nextSibling")},prev:function(u){return nt(u,"previousSibling")},nextAll:function(u){return A(u,"nextSibling")},prevAll:function(u){return A(u,"previousSibling")},nextUntil:function(u,f,g){return A(u,"nextSibling",g)},prevUntil:function(u,f,g){return A(u,"previousSibling",g)},siblings:function(u){return P((u.parentNode||{}).firstChild,u)},children:function(u){return P(u.firstChild)},contents:function(u){return u.contentDocument!=null&&i(u.contentDocument)?u.contentDocument:(Q(u,"template")&&(u=u.content||u),m.merge([],u.childNodes))}},function(u,f){m.fn[u]=function(g,v){var b=m.map(this,f,g);return u.slice(-5)!=="Until"&&(v=g),v&&typeof v=="string"&&(b=m.filter(v,b)),this.length>1&&(ce[u]||m.uniqueSort(b),ie.test(u)&&b.reverse()),this.pushStack(b)}});var Ve=/[^\x20\t\r\n\f]+/g;function ne(u){var f={};return m.each(u.match(Ve)||[],function(g,v){f[v]=!0}),f}m.Callbacks=function(u){u=typeof u=="string"?ne(u):m.extend({},u);var f,g,v,b,_=[],T=[],$=-1,N=function(){for(b=b||u.once,v=f=!0;T.length;$=-1)for(g=T.shift();++$<_.length;)_[$].apply(g[0],g[1])===!1&&u.stopOnFalse&&($=_.length,g=!1);u.memory||(g=!1),f=!1,b&&(g?_=[]:_="")},V={add:function(){return _&&(g&&!f&&($=_.length-1,T.push(g)),function J(de){m.each(de,function(G,re){x(re)?(!u.unique||!V.has(re))&&_.push(re):re&&re.length&&D(re)!=="string"&&J(re)})}(arguments),g&&!f&&N()),this},remove:function(){return m.each(arguments,function(J,de){for(var G;(G=m.inArray(de,_,G))>-1;)_.splice(G,1),G<=$&&$--}),this},has:function(J){return J?m.inArray(J,_)>-1:_.length>0},empty:function(){return _&&(_=[]),this},disable:function(){return b=T=[],_=g="",this},disabled:function(){return!_},lock:function(){return b=T=[],!g&&!f&&(_=g=""),this},locked:function(){return!!b},fireWith:function(J,de){return b||(de=de||[],de=[J,de.slice?de.slice():de],T.push(de),f||N()),this},fire:function(){return V.fireWith(this,arguments),this},fired:function(){return!!v}};return V};function he(u){return u}function _e(u){throw u}function ke(u,f,g,v){var b;try{u&&x(b=u.promise)?b.call(u).done(f).fail(g):u&&x(b=u.then)?b.call(u,f,g):f.apply(void 0,[u].slice(v))}catch(_){g.apply(void 0,[_])}}m.extend({Deferred:function(u){var f=[["notify","progress",m.Callbacks("memory"),m.Callbacks("memory"),2],["resolve","done",m.Callbacks("once memory"),m.Callbacks("once memory"),0,"resolved"],["reject","fail",m.Callbacks("once memory"),m.Callbacks("once memory"),1,"rejected"]],g="pending",v={state:function(){return g},always:function(){return b.done(arguments).fail(arguments),this},catch:function(_){return v.then(null,_)},pipe:function(){var _=arguments;return m.Deferred(function(T){m.each(f,function($,N){var V=x(_[N[4]])&&_[N[4]];b[N[1]](function(){var J=V&&V.apply(this,arguments);J&&x(J.promise)?J.promise().progress(T.notify).done(T.resolve).fail(T.reject):T[N[0]+"With"](this,V?[J]:arguments)})}),_=null}).promise()},then:function(_,T,$){var N=0;function V(J,de,G,re){return function(){var We=this,ct=arguments,Ue=function(){var en,Zn;if(!(J<N)){if(en=G.apply(We,ct),en===de.promise())throw new TypeError("Thenable self-resolution");Zn=en&&(typeof en=="object"||typeof en=="function")&&en.then,x(Zn)?re?Zn.call(en,V(N,de,he,re),V(N,de,_e,re)):(N++,Zn.call(en,V(N,de,he,re),V(N,de,_e,re),V(N,de,he,de.notifyWith))):(G!==he&&(We=void 0,ct=[en]),(re||de.resolveWith)(We,ct))}},ln=re?Ue:function(){try{Ue()}catch(en){m.Deferred.exceptionHook&&m.Deferred.exceptionHook(en,ln.stackTrace),J+1>=N&&(G!==_e&&(We=void 0,ct=[en]),de.rejectWith(We,ct))}};J?ln():(m.Deferred.getStackHook&&(ln.stackTrace=m.Deferred.getStackHook()),t.setTimeout(ln))}}return m.Deferred(function(J){f[0][3].add(V(0,J,x($)?$:he,J.notifyWith)),f[1][3].add(V(0,J,x(_)?_:he)),f[2][3].add(V(0,J,x(T)?T:_e))}).promise()},promise:function(_){return _!=null?m.extend(_,v):v}},b={};return m.each(f,function(_,T){var $=T[2],N=T[5];v[T[1]]=$.add,N&&$.add(function(){g=N},f[3-_][2].disable,f[3-_][3].disable,f[0][2].lock,f[0][3].lock),$.add(T[3].fire),b[T[0]]=function(){return b[T[0]+"With"](this===b?void 0:this,arguments),this},b[T[0]+"With"]=$.fireWith}),v.promise(b),u&&u.call(b,b),b},when:function(u){var f=arguments.length,g=f,v=Array(g),b=o.call(arguments),_=m.Deferred(),T=function($){return function(N){v[$]=this,b[$]=arguments.length>1?o.call(arguments):N,--f||_.resolveWith(v,b)}};if(f<=1&&(ke(u,_.done(T(g)).resolve,_.reject,!f),_.state()==="pending"||x(b[g]&&b[g].then)))return _.then();for(;g--;)ke(b[g],T(g),_.reject);return _.promise()}});var Oe=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;m.Deferred.exceptionHook=function(u,f){t.console&&t.console.warn&&u&&Oe.test(u.name)&&t.console.warn("jQuery.Deferred exception: "+u.message,u.stack,f)},m.readyException=function(u){t.setTimeout(function(){throw u})};var Be=m.Deferred();m.fn.ready=function(u){return Be.then(u).catch(function(f){m.readyException(f)}),this},m.extend({isReady:!1,readyWait:1,ready:function(u){(u===!0?--m.readyWait:m.isReady)||(m.isReady=!0,!(u!==!0&&--m.readyWait>0)&&Be.resolveWith(E,[m]))}}),m.ready.then=Be.then;function Xe(){E.removeEventListener("DOMContentLoaded",Xe),t.removeEventListener("load",Xe),m.ready()}E.readyState==="complete"||E.readyState!=="loading"&&!E.documentElement.doScroll?t.setTimeout(m.ready):(E.addEventListener("DOMContentLoaded",Xe),t.addEventListener("load",Xe));var Le=function(u,f,g,v,b,_,T){var $=0,N=u.length,V=g==null;if(D(g)==="object"){b=!0;for($ in g)Le(u,f,$,g[$],!0,_,T)}else if(v!==void 0&&(b=!0,x(v)||(T=!0),V&&(T?(f.call(u,v),f=null):(V=f,f=function(J,de,G){return V.call(m(J),G)})),f))for(;$<N;$++)f(u[$],g,T?v:v.call(u[$],$,f(u[$],g)));return b?u:V?f.call(u):N?f(u[0],g):_},rt=/^-ms-/,gt=/-([a-z])/g;function R(u,f){return f.toUpperCase()}function F(u){return u.replace(rt,"ms-").replace(gt,R)}var z=function(u){return u.nodeType===1||u.nodeType===9||!+u.nodeType};function ee(){this.expando=m.expando+ee.uid++}ee.uid=1,ee.prototype={cache:function(u){var f=u[this.expando];return f||(f={},z(u)&&(u.nodeType?u[this.expando]=f:Object.defineProperty(u,this.expando,{value:f,configurable:!0}))),f},set:function(u,f,g){var v,b=this.cache(u);if(typeof f=="string")b[F(f)]=g;else for(v in f)b[F(v)]=f[v];return b},get:function(u,f){return f===void 0?this.cache(u):u[this.expando]&&u[this.expando][F(f)]},access:function(u,f,g){return f===void 0||f&&typeof f=="string"&&g===void 0?this.get(u,f):(this.set(u,f,g),g!==void 0?g:f)},remove:function(u,f){var g,v=u[this.expando];if(v!==void 0){if(f!==void 0)for(Array.isArray(f)?f=f.map(F):(f=F(f),f=f in v?[f]:f.match(Ve)||[]),g=f.length;g--;)delete v[f[g]];(f===void 0||m.isEmptyObject(v))&&(u.nodeType?u[this.expando]=void 0:delete u[this.expando])}},hasData:function(u){var f=u[this.expando];return f!==void 0&&!m.isEmptyObject(f)}};var W=new ee,Y=new ee,be=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,fe=/[A-Z]/g;function ge(u){return u==="true"?!0:u==="false"?!1:u==="null"?null:u===+u+""?+u:be.test(u)?JSON.parse(u):u}function se(u,f,g){var v;if(g===void 0&&u.nodeType===1)if(v="data-"+f.replace(fe,"-$&").toLowerCase(),g=u.getAttribute(v),typeof g=="string"){try{g=ge(g)}catch{}Y.set(u,f,g)}else g=void 0;return g}m.extend({hasData:function(u){return Y.hasData(u)||W.hasData(u)},data:function(u,f,g){return Y.access(u,f,g)},removeData:function(u,f){Y.remove(u,f)},_data:function(u,f,g){return W.access(u,f,g)},_removeData:function(u,f){W.remove(u,f)}}),m.fn.extend({data:function(u,f){var g,v,b,_=this[0],T=_&&_.attributes;if(u===void 0){if(this.length&&(b=Y.get(_),_.nodeType===1&&!W.get(_,"hasDataAttrs"))){for(g=T.length;g--;)T[g]&&(v=T[g].name,v.indexOf("data-")===0&&(v=F(v.slice(5)),se(_,v,b[v])));W.set(_,"hasDataAttrs",!0)}return b}return typeof u=="object"?this.each(function(){Y.set(this,u)}):Le(this,function($){var N;if(_&&$===void 0)return N=Y.get(_,u),N!==void 0||(N=se(_,u),N!==void 0)?N:void 0;this.each(function(){Y.set(this,u,$)})},null,f,arguments.length>1,null,!0)},removeData:function(u){return this.each(function(){Y.remove(this,u)})}}),m.extend({queue:function(u,f,g){var v;if(u)return f=(f||"fx")+"queue",v=W.get(u,f),g&&(!v||Array.isArray(g)?v=W.access(u,f,m.makeArray(g)):v.push(g)),v||[]},dequeue:function(u,f){f=f||"fx";var g=m.queue(u,f),v=g.length,b=g.shift(),_=m._queueHooks(u,f),T=function(){m.dequeue(u,f)};b==="inprogress"&&(b=g.shift(),v--),b&&(f==="fx"&&g.unshift("inprogress"),delete _.stop,b.call(u,T,_)),!v&&_&&_.empty.fire()},_queueHooks:function(u,f){var g=f+"queueHooks";return W.get(u,g)||W.access(u,g,{empty:m.Callbacks("once memory").add(function(){W.remove(u,[f+"queue",g])})})}}),m.fn.extend({queue:function(u,f){var g=2;return typeof u!="string"&&(f=u,u="fx",g--),arguments.length<g?m.queue(this[0],u):f===void 0?this:this.each(function(){var v=m.queue(this,u,f);m._queueHooks(this,u),u==="fx"&&v[0]!=="inprogress"&&m.dequeue(this,u)})},dequeue:function(u){return this.each(function(){m.dequeue(this,u)})},clearQueue:function(u){return this.queue(u||"fx",[])},promise:function(u,f){var g,v=1,b=m.Deferred(),_=this,T=this.length,$=function(){--v||b.resolveWith(_,[_])};for(typeof u!="string"&&(f=u,u=void 0),u=u||"fx";T--;)g=W.get(_[T],u+"queueHooks"),g&&g.empty&&(v++,g.empty.add($));return $(),b.promise(f)}});var Se=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Ce=new RegExp("^(?:([+-])=|)("+Se+")([a-z%]*)$","i"),Ne=["Top","Right","Bottom","Left"],Ae=E.documentElement,qe=function(u){return m.contains(u.ownerDocument,u)},ft={composed:!0};Ae.getRootNode&&(qe=function(u){return m.contains(u.ownerDocument,u)||u.getRootNode(ft)===u.ownerDocument});var st=function(u,f){return u=f||u,u.style.display==="none"||u.style.display===""&&qe(u)&&m.css(u,"display")==="none"};function Ct(u,f,g,v){var b,_,T=20,$=v?function(){return v.cur()}:function(){return m.css(u,f,"")},N=$(),V=g&&g[3]||(m.cssNumber[f]?"":"px"),J=u.nodeType&&(m.cssNumber[f]||V!=="px"&&+N)&&Ce.exec(m.css(u,f));if(J&&J[3]!==V){for(N=N/2,V=V||J[3],J=+N||1;T--;)m.style(u,f,J+V),(1-_)*(1-(_=$()/N||.5))<=0&&(T=0),J=J/_;J=J*2,m.style(u,f,J+V),g=g||[]}return g&&(J=+J||+N||0,b=g[1]?J+(g[1]+1)*g[2]:+g[2],v&&(v.unit=V,v.start=J,v.end=b)),b}var Ft={};function an(u){var f,g=u.ownerDocument,v=u.nodeName,b=Ft[v];return b||(f=g.body.appendChild(g.createElement(v)),b=m.css(f,"display"),f.parentNode.removeChild(f),b==="none"&&(b="block"),Ft[v]=b,b)}function Ht(u,f){for(var g,v,b=[],_=0,T=u.length;_<T;_++)v=u[_],v.style&&(g=v.style.display,f?(g==="none"&&(b[_]=W.get(v,"display")||null,b[_]||(v.style.display="")),v.style.display===""&&st(v)&&(b[_]=an(v))):g!=="none"&&(b[_]="none",W.set(v,"display",g)));for(_=0;_<T;_++)b[_]!=null&&(u[_].style.display=b[_]);return u}m.fn.extend({show:function(){return Ht(this,!0)},hide:function(){return Ht(this)},toggle:function(u){return typeof u=="boolean"?u?this.show():this.hide():this.each(function(){st(this)?m(this).show():m(this).hide()})}});var fn=/^(?:checkbox|radio)$/i,Z=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,De=/^$|^module$|\/(?:java|ecma)script/i;(function(){var u=E.createDocumentFragment(),f=u.appendChild(E.createElement("div")),g=E.createElement("input");g.setAttribute("type","radio"),g.setAttribute("checked","checked"),g.setAttribute("name","t"),f.appendChild(g),w.checkClone=f.cloneNode(!0).cloneNode(!0).lastChild.checked,f.innerHTML="<textarea>x</textarea>",w.noCloneChecked=!!f.cloneNode(!0).lastChild.defaultValue,f.innerHTML="<option></option>",w.option=!!f.lastChild})();var Fe={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};Fe.tbody=Fe.tfoot=Fe.colgroup=Fe.caption=Fe.thead,Fe.th=Fe.td,w.option||(Fe.optgroup=Fe.option=[1,"<select multiple='multiple'>","</select>"]);function it(u,f){var g;return typeof u.getElementsByTagName<"u"?g=u.getElementsByTagName(f||"*"):typeof u.querySelectorAll<"u"?g=u.querySelectorAll(f||"*"):g=[],f===void 0||f&&Q(u,f)?m.merge([u],g):g}function vt(u,f){for(var g=0,v=u.length;g<v;g++)W.set(u[g],"globalEval",!f||W.get(f[g],"globalEval"))}var gn=/<|&#?\w+;/;function Ln(u,f,g,v,b){for(var _,T,$,N,V,J,de=f.createDocumentFragment(),G=[],re=0,We=u.length;re<We;re++)if(_=u[re],_||_===0)if(D(_)==="object")m.merge(G,_.nodeType?[_]:_);else if(!gn.test(_))G.push(f.createTextNode(_));else{for(T=T||de.appendChild(f.createElement("div")),$=(Z.exec(_)||["",""])[1].toLowerCase(),N=Fe[$]||Fe._default,T.innerHTML=N[1]+m.htmlPrefilter(_)+N[2],J=N[0];J--;)T=T.lastChild;m.merge(G,T.childNodes),T=de.firstChild,T.textContent=""}for(de.textContent="",re=0;_=G[re++];){if(v&&m.inArray(_,v)>-1){b&&b.push(_);continue}if(V=qe(_),T=it(de.appendChild(_),"script"),V&&vt(T),g)for(J=0;_=T[J++];)De.test(_.type||"")&&g.push(_)}return de}var ni=/^([^.]*)(?:\.(.+)|)/;function ri(){return!0}function Hn(){return!1}function Aa(u,f){return u===us()==(f==="focus")}function us(){try{return E.activeElement}catch{}}function Hr(u,f,g,v,b,_){var T,$;if(typeof f=="object"){typeof g!="string"&&(v=v||g,g=void 0);for($ in f)Hr(u,$,g,v,f[$],_);return u}if(v==null&&b==null?(b=g,v=g=void 0):b==null&&(typeof g=="string"?(b=v,v=void 0):(b=v,v=g,g=void 0)),b===!1)b=Hn;else if(!b)return u;return _===1&&(T=b,b=function(N){return m().off(N),T.apply(this,arguments)},b.guid=T.guid||(T.guid=m.guid++)),u.each(function(){m.event.add(this,f,b,v,g)})}m.event={global:{},add:function(u,f,g,v,b){var _,T,$,N,V,J,de,G,re,We,ct,Ue=W.get(u);if(z(u))for(g.handler&&(_=g,g=_.handler,b=_.selector),b&&m.find.matchesSelector(Ae,b),g.guid||(g.guid=m.guid++),(N=Ue.events)||(N=Ue.events=Object.create(null)),(T=Ue.handle)||(T=Ue.handle=function(ln){return typeof m<"u"&&m.event.triggered!==ln.type?m.event.dispatch.apply(u,arguments):void 0}),f=(f||"").match(Ve)||[""],V=f.length;V--;)$=ni.exec(f[V])||[],re=ct=$[1],We=($[2]||"").split(".").sort(),re&&(de=m.event.special[re]||{},re=(b?de.delegateType:de.bindType)||re,de=m.event.special[re]||{},J=m.extend({type:re,origType:ct,data:v,handler:g,guid:g.guid,selector:b,needsContext:b&&m.expr.match.needsContext.test(b),namespace:We.join(".")},_),(G=N[re])||(G=N[re]=[],G.delegateCount=0,(!de.setup||de.setup.call(u,v,We,T)===!1)&&u.addEventListener&&u.addEventListener(re,T)),de.add&&(de.add.call(u,J),J.handler.guid||(J.handler.guid=g.guid)),b?G.splice(G.delegateCount++,0,J):G.push(J),m.event.global[re]=!0)},remove:function(u,f,g,v,b){var _,T,$,N,V,J,de,G,re,We,ct,Ue=W.hasData(u)&&W.get(u);if(!(!Ue||!(N=Ue.events))){for(f=(f||"").match(Ve)||[""],V=f.length;V--;){if($=ni.exec(f[V])||[],re=ct=$[1],We=($[2]||"").split(".").sort(),!re){for(re in N)m.event.remove(u,re+f[V],g,v,!0);continue}for(de=m.event.special[re]||{},re=(v?de.delegateType:de.bindType)||re,G=N[re]||[],$=$[2]&&new RegExp("(^|\\.)"+We.join("\\.(?:.*\\.|)")+"(\\.|$)"),T=_=G.length;_--;)J=G[_],(b||ct===J.origType)&&(!g||g.guid===J.guid)&&(!$||$.test(J.namespace))&&(!v||v===J.selector||v==="**"&&J.selector)&&(G.splice(_,1),J.selector&&G.delegateCount--,de.remove&&de.remove.call(u,J));T&&!G.length&&((!de.teardown||de.teardown.call(u,We,Ue.handle)===!1)&&m.removeEvent(u,re,Ue.handle),delete N[re])}m.isEmptyObject(N)&&W.remove(u,"handle events")}},dispatch:function(u){var f,g,v,b,_,T,$=new Array(arguments.length),N=m.event.fix(u),V=(W.get(this,"events")||Object.create(null))[N.type]||[],J=m.event.special[N.type]||{};for($[0]=N,f=1;f<arguments.length;f++)$[f]=arguments[f];if(N.delegateTarget=this,!(J.preDispatch&&J.preDispatch.call(this,N)===!1)){for(T=m.event.handlers.call(this,N,V),f=0;(b=T[f++])&&!N.isPropagationStopped();)for(N.currentTarget=b.elem,g=0;(_=b.handlers[g++])&&!N.isImmediatePropagationStopped();)(!N.rnamespace||_.namespace===!1||N.rnamespace.test(_.namespace))&&(N.handleObj=_,N.data=_.data,v=((m.event.special[_.origType]||{}).handle||_.handler).apply(b.elem,$),v!==void 0&&(N.result=v)===!1&&(N.preventDefault(),N.stopPropagation()));return J.postDispatch&&J.postDispatch.call(this,N),N.result}},handlers:function(u,f){var g,v,b,_,T,$=[],N=f.delegateCount,V=u.target;if(N&&V.nodeType&&!(u.type==="click"&&u.button>=1)){for(;V!==this;V=V.parentNode||this)if(V.nodeType===1&&!(u.type==="click"&&V.disabled===!0)){for(_=[],T={},g=0;g<N;g++)v=f[g],b=v.selector+" ",T[b]===void 0&&(T[b]=v.needsContext?m(b,this).index(V)>-1:m.find(b,this,null,[V]).length),T[b]&&_.push(v);_.length&&$.push({elem:V,handlers:_})}}return V=this,N<f.length&&$.push({elem:V,handlers:f.slice(N)}),$},addProp:function(u,f){Object.defineProperty(m.Event.prototype,u,{enumerable:!0,configurable:!0,get:x(f)?function(){if(this.originalEvent)return f(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[u]},set:function(g){Object.defineProperty(this,u,{enumerable:!0,configurable:!0,writable:!0,value:g})}})},fix:function(u){return u[m.expando]?u:new m.Event(u)},special:{load:{noBubble:!0},click:{setup:function(u){var f=this||u;return fn.test(f.type)&&f.click&&Q(f,"input")&&cs(f,"click",ri),!1},trigger:function(u){var f=this||u;return fn.test(f.type)&&f.click&&Q(f,"input")&&cs(f,"click"),!0},_default:function(u){var f=u.target;return fn.test(f.type)&&f.click&&Q(f,"input")&&W.get(f,"click")||Q(f,"a")}},beforeunload:{postDispatch:function(u){u.result!==void 0&&u.originalEvent&&(u.originalEvent.returnValue=u.result)}}}};function cs(u,f,g){if(!g){W.get(u,f)===void 0&&m.event.add(u,f,ri);return}W.set(u,f,!1),m.event.add(u,f,{namespace:!1,handler:function(v){var b,_,T=W.get(this,f);if(v.isTrigger&1&&this[f]){if(T.length)(m.event.special[f]||{}).delegateType&&v.stopPropagation();else if(T=o.call(arguments),W.set(this,f,T),b=g(this,f),this[f](),_=W.get(this,f),T!==_||b?W.set(this,f,!1):_={},T!==_)return v.stopImmediatePropagation(),v.preventDefault(),_&&_.value}else T.length&&(W.set(this,f,{value:m.event.trigger(m.extend(T[0],m.Event.prototype),T.slice(1),this)}),v.stopImmediatePropagation())}})}m.removeEvent=function(u,f,g){u.removeEventListener&&u.removeEventListener(f,g)},m.Event=function(u,f){if(!(this instanceof m.Event))return new m.Event(u,f);u&&u.type?(this.originalEvent=u,this.type=u.type,this.isDefaultPrevented=u.defaultPrevented||u.defaultPrevented===void 0&&u.returnValue===!1?ri:Hn,this.target=u.target&&u.target.nodeType===3?u.target.parentNode:u.target,this.currentTarget=u.currentTarget,this.relatedTarget=u.relatedTarget):this.type=u,f&&m.extend(this,f),this.timeStamp=u&&u.timeStamp||Date.now(),this[m.expando]=!0},m.Event.prototype={constructor:m.Event,isDefaultPrevented:Hn,isPropagationStopped:Hn,isImmediatePropagationStopped:Hn,isSimulated:!1,preventDefault:function(){var u=this.originalEvent;this.isDefaultPrevented=ri,u&&!this.isSimulated&&u.preventDefault()},stopPropagation:function(){var u=this.originalEvent;this.isPropagationStopped=ri,u&&!this.isSimulated&&u.stopPropagation()},stopImmediatePropagation:function(){var u=this.originalEvent;this.isImmediatePropagationStopped=ri,u&&!this.isSimulated&&u.stopImmediatePropagation(),this.stopPropagation()}},m.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},m.event.addProp),m.each({focus:"focusin",blur:"focusout"},function(u,f){m.event.special[u]={setup:function(){return cs(this,u,Aa),!1},trigger:function(){return cs(this,u),!0},_default:function(g){return W.get(g.target,u)},delegateType:f}}),m.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(u,f){m.event.special[u]={delegateType:f,bindType:f,handle:function(g){var v,b=this,_=g.relatedTarget,T=g.handleObj;return(!_||_!==b&&!m.contains(b,_))&&(g.type=T.origType,v=T.handler.apply(this,arguments),g.type=f),v}}}),m.fn.extend({on:function(u,f,g,v){return Hr(this,u,f,g,v)},one:function(u,f,g,v){return Hr(this,u,f,g,v,1)},off:function(u,f,g){var v,b;if(u&&u.preventDefault&&u.handleObj)return v=u.handleObj,m(u.delegateTarget).off(v.namespace?v.origType+"."+v.namespace:v.origType,v.selector,v.handler),this;if(typeof u=="object"){for(b in u)this.off(b,f,u[b]);return this}return(f===!1||typeof f=="function")&&(g=f,f=void 0),g===!1&&(g=Hn),this.each(function(){m.event.remove(this,u,g,f)})}});var ka=/<script|<style|<link/i,fs=/checked\s*(?:[^=]|=\s*.checked.)/i,PH=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function ob(u,f){return Q(u,"table")&&Q(f.nodeType!==11?f:f.firstChild,"tr")&&m(u).children("tbody")[0]||u}function DH(u){return u.type=(u.getAttribute("type")!==null)+"/"+u.type,u}function RH(u){return(u.type||"").slice(0,5)==="true/"?u.type=u.type.slice(5):u.removeAttribute("type"),u}function sb(u,f){var g,v,b,_,T,$,N;if(f.nodeType===1){if(W.hasData(u)&&(_=W.get(u),N=_.events,N)){W.remove(f,"handle events");for(b in N)for(g=0,v=N[b].length;g<v;g++)m.event.add(f,b,N[b][g])}Y.hasData(u)&&(T=Y.access(u),$=m.extend({},T),Y.set(f,$))}}function NH(u,f){var g=f.nodeName.toLowerCase();g==="input"&&fn.test(u.type)?f.checked=u.checked:(g==="input"||g==="textarea")&&(f.defaultValue=u.defaultValue)}function ds(u,f,g,v){f=s(f);var b,_,T,$,N,V,J=0,de=u.length,G=de-1,re=f[0],We=x(re);if(We||de>1&&typeof re=="string"&&!w.checkClone&&fs.test(re))return u.each(function(ct){var Ue=u.eq(ct);We&&(f[0]=re.call(this,ct,Ue.html())),ds(Ue,f,g,v)});if(de&&(b=Ln(f,u[0].ownerDocument,!1,u,v),_=b.firstChild,b.childNodes.length===1&&(b=_),_||v)){for(T=m.map(it(b,"script"),DH),$=T.length;J<de;J++)N=b,J!==G&&(N=m.clone(N,!0,!0),$&&m.merge(T,it(N,"script"))),g.call(u[J],N,J);if($)for(V=T[T.length-1].ownerDocument,m.map(T,RH),J=0;J<$;J++)N=T[J],De.test(N.type||"")&&!W.access(N,"globalEval")&&m.contains(V,N)&&(N.src&&(N.type||"").toLowerCase()!=="module"?m._evalUrl&&!N.noModule&&m._evalUrl(N.src,{nonce:N.nonce||N.getAttribute("nonce")},V):te(N.textContent.replace(PH,""),N,V))}return u}function ab(u,f,g){for(var v,b=f?m.filter(f,u):u,_=0;(v=b[_])!=null;_++)!g&&v.nodeType===1&&m.cleanData(it(v)),v.parentNode&&(g&&qe(v)&&vt(it(v,"script")),v.parentNode.removeChild(v));return u}m.extend({htmlPrefilter:function(u){return u},clone:function(u,f,g){var v,b,_,T,$=u.cloneNode(!0),N=qe(u);if(!w.noCloneChecked&&(u.nodeType===1||u.nodeType===11)&&!m.isXMLDoc(u))for(T=it($),_=it(u),v=0,b=_.length;v<b;v++)NH(_[v],T[v]);if(f)if(g)for(_=_||it(u),T=T||it($),v=0,b=_.length;v<b;v++)sb(_[v],T[v]);else sb(u,$);return T=it($,"script"),T.length>0&&vt(T,!N&&it(u,"script")),$},cleanData:function(u){for(var f,g,v,b=m.event.special,_=0;(g=u[_])!==void 0;_++)if(z(g)){if(f=g[W.expando]){if(f.events)for(v in f.events)b[v]?m.event.remove(g,v):m.removeEvent(g,v,f.handle);g[W.expando]=void 0}g[Y.expando]&&(g[Y.expando]=void 0)}}}),m.fn.extend({detach:function(u){return ab(this,u,!0)},remove:function(u){return ab(this,u)},text:function(u){return Le(this,function(f){return f===void 0?m.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=f)})},null,u,arguments.length)},append:function(){return ds(this,arguments,function(u){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var f=ob(this,u);f.appendChild(u)}})},prepend:function(){return ds(this,arguments,function(u){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var f=ob(this,u);f.insertBefore(u,f.firstChild)}})},before:function(){return ds(this,arguments,function(u){this.parentNode&&this.parentNode.insertBefore(u,this)})},after:function(){return ds(this,arguments,function(u){this.parentNode&&this.parentNode.insertBefore(u,this.nextSibling)})},empty:function(){for(var u,f=0;(u=this[f])!=null;f++)u.nodeType===1&&(m.cleanData(it(u,!1)),u.textContent="");return this},clone:function(u,f){return u=u??!1,f=f??u,this.map(function(){return m.clone(this,u,f)})},html:function(u){return Le(this,function(f){var g=this[0]||{},v=0,b=this.length;if(f===void 0&&g.nodeType===1)return g.innerHTML;if(typeof f=="string"&&!ka.test(f)&&!Fe[(Z.exec(f)||["",""])[1].toLowerCase()]){f=m.htmlPrefilter(f);try{for(;v<b;v++)g=this[v]||{},g.nodeType===1&&(m.cleanData(it(g,!1)),g.innerHTML=f);g=0}catch{}}g&&this.empty().append(f)},null,u,arguments.length)},replaceWith:function(){var u=[];return ds(this,arguments,function(f){var g=this.parentNode;m.inArray(this,u)<0&&(m.cleanData(it(this)),g&&g.replaceChild(f,this))},u)}}),m.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(u,f){m.fn[u]=function(g){for(var v,b=[],_=m(g),T=_.length-1,$=0;$<=T;$++)v=$===T?this:this.clone(!0),m(_[$])[f](v),l.apply(b,v.get());return this.pushStack(b)}});var Vd=new RegExp("^("+Se+")(?!px)[a-z%]+$","i"),qd=/^--/,Iu=function(u){var f=u.ownerDocument.defaultView;return(!f||!f.opener)&&(f=t),f.getComputedStyle(u)},lb=function(u,f,g){var v,b,_={};for(b in f)_[b]=u.style[b],u.style[b]=f[b];v=g.call(u);for(b in f)u.style[b]=_[b];return v},MH=new RegExp(Ne.join("|"),"i"),ub="[\\x20\\t\\r\\n\\f]",FH=new RegExp("^"+ub+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ub+"+$","g");(function(){function u(){if(V){N.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",V.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",Ae.appendChild(N).appendChild(V);var J=t.getComputedStyle(V);g=J.top!=="1%",$=f(J.marginLeft)===12,V.style.right="60%",_=f(J.right)===36,v=f(J.width)===36,V.style.position="absolute",b=f(V.offsetWidth/3)===12,Ae.removeChild(N),V=null}}function f(J){return Math.round(parseFloat(J))}var g,v,b,_,T,$,N=E.createElement("div"),V=E.createElement("div");V.style&&(V.style.backgroundClip="content-box",V.cloneNode(!0).style.backgroundClip="",w.clearCloneStyle=V.style.backgroundClip==="content-box",m.extend(w,{boxSizingReliable:function(){return u(),v},pixelBoxStyles:function(){return u(),_},pixelPosition:function(){return u(),g},reliableMarginLeft:function(){return u(),$},scrollboxSize:function(){return u(),b},reliableTrDimensions:function(){var J,de,G,re;return T==null&&(J=E.createElement("table"),de=E.createElement("tr"),G=E.createElement("div"),J.style.cssText="position:absolute;left:-11111px;border-collapse:separate",de.style.cssText="border:1px solid",de.style.height="1px",G.style.height="9px",G.style.display="block",Ae.appendChild(J).appendChild(de).appendChild(G),re=t.getComputedStyle(de),T=parseInt(re.height,10)+parseInt(re.borderTopWidth,10)+parseInt(re.borderBottomWidth,10)===de.offsetHeight,Ae.removeChild(J)),T}}))})();function Ea(u,f,g){var v,b,_,T,$=qd.test(f),N=u.style;return g=g||Iu(u),g&&(T=g.getPropertyValue(f)||g[f],$&&T&&(T=T.replace(FH,"$1")||void 0),T===""&&!qe(u)&&(T=m.style(u,f)),!w.pixelBoxStyles()&&Vd.test(T)&&MH.test(f)&&(v=N.width,b=N.minWidth,_=N.maxWidth,N.minWidth=N.maxWidth=N.width=T,T=g.width,N.width=v,N.minWidth=b,N.maxWidth=_)),T!==void 0?T+"":T}function cb(u,f){return{get:function(){if(u()){delete this.get;return}return(this.get=f).apply(this,arguments)}}}var fb=["Webkit","Moz","ms"],db=E.createElement("div").style,pb={};function $H(u){for(var f=u[0].toUpperCase()+u.slice(1),g=fb.length;g--;)if(u=fb[g]+f,u in db)return u}function zd(u){var f=m.cssProps[u]||pb[u];return f||(u in db?u:pb[u]=$H(u)||u)}var BH=/^(none|table(?!-c[ea]).+)/,HH={position:"absolute",visibility:"hidden",display:"block"},hb={letterSpacing:"0",fontWeight:"400"};function gb(u,f,g){var v=Ce.exec(f);return v?Math.max(0,v[2]-(g||0))+(v[3]||"px"):f}function Gd(u,f,g,v,b,_){var T=f==="width"?1:0,$=0,N=0;if(g===(v?"border":"content"))return 0;for(;T<4;T+=2)g==="margin"&&(N+=m.css(u,g+Ne[T],!0,b)),v?(g==="content"&&(N-=m.css(u,"padding"+Ne[T],!0,b)),g!=="margin"&&(N-=m.css(u,"border"+Ne[T]+"Width",!0,b))):(N+=m.css(u,"padding"+Ne[T],!0,b),g!=="padding"?N+=m.css(u,"border"+Ne[T]+"Width",!0,b):$+=m.css(u,"border"+Ne[T]+"Width",!0,b));return!v&&_>=0&&(N+=Math.max(0,Math.ceil(u["offset"+f[0].toUpperCase()+f.slice(1)]-_-N-$-.5))||0),N}function mb(u,f,g){var v=Iu(u),b=!w.boxSizingReliable()||g,_=b&&m.css(u,"boxSizing",!1,v)==="border-box",T=_,$=Ea(u,f,v),N="offset"+f[0].toUpperCase()+f.slice(1);if(Vd.test($)){if(!g)return $;$="auto"}return(!w.boxSizingReliable()&&_||!w.reliableTrDimensions()&&Q(u,"tr")||$==="auto"||!parseFloat($)&&m.css(u,"display",!1,v)==="inline")&&u.getClientRects().length&&(_=m.css(u,"boxSizing",!1,v)==="border-box",T=N in u,T&&($=u[N])),$=parseFloat($)||0,$+Gd(u,f,g||(_?"border":"content"),T,v,$)+"px"}m.extend({cssHooks:{opacity:{get:function(u,f){if(f){var g=Ea(u,"opacity");return g===""?"1":g}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(u,f,g,v){if(!(!u||u.nodeType===3||u.nodeType===8||!u.style)){var b,_,T,$=F(f),N=qd.test(f),V=u.style;if(N||(f=zd($)),T=m.cssHooks[f]||m.cssHooks[$],g!==void 0){if(_=typeof g,_==="string"&&(b=Ce.exec(g))&&b[1]&&(g=Ct(u,f,b),_="number"),g==null||g!==g)return;_==="number"&&!N&&(g+=b&&b[3]||(m.cssNumber[$]?"":"px")),!w.clearCloneStyle&&g===""&&f.indexOf("background")===0&&(V[f]="inherit"),(!T||!("set"in T)||(g=T.set(u,g,v))!==void 0)&&(N?V.setProperty(f,g):V[f]=g)}else return T&&"get"in T&&(b=T.get(u,!1,v))!==void 0?b:V[f]}},css:function(u,f,g,v){var b,_,T,$=F(f),N=qd.test(f);return N||(f=zd($)),T=m.cssHooks[f]||m.cssHooks[$],T&&"get"in T&&(b=T.get(u,!0,g)),b===void 0&&(b=Ea(u,f,v)),b==="normal"&&f in hb&&(b=hb[f]),g===""||g?(_=parseFloat(b),g===!0||isFinite(_)?_||0:b):b}}),m.each(["height","width"],function(u,f){m.cssHooks[f]={get:function(g,v,b){if(v)return BH.test(m.css(g,"display"))&&(!g.getClientRects().length||!g.getBoundingClientRect().width)?lb(g,HH,function(){return mb(g,f,b)}):mb(g,f,b)},set:function(g,v,b){var _,T=Iu(g),$=!w.scrollboxSize()&&T.position==="absolute",N=$||b,V=N&&m.css(g,"boxSizing",!1,T)==="border-box",J=b?Gd(g,f,b,V,T):0;return V&&$&&(J-=Math.ceil(g["offset"+f[0].toUpperCase()+f.slice(1)]-parseFloat(T[f])-Gd(g,f,"border",!1,T)-.5)),J&&(_=Ce.exec(v))&&(_[3]||"px")!=="px"&&(g.style[f]=v,v=m.css(g,f)),gb(g,v,J)}}}),m.cssHooks.marginLeft=cb(w.reliableMarginLeft,function(u,f){if(f)return(parseFloat(Ea(u,"marginLeft"))||u.getBoundingClientRect().left-lb(u,{marginLeft:0},function(){return u.getBoundingClientRect().left}))+"px"}),m.each({margin:"",padding:"",border:"Width"},function(u,f){m.cssHooks[u+f]={expand:function(g){for(var v=0,b={},_=typeof g=="string"?g.split(" "):[g];v<4;v++)b[u+Ne[v]+f]=_[v]||_[v-2]||_[0];return b}},u!=="margin"&&(m.cssHooks[u+f].set=gb)}),m.fn.extend({css:function(u,f){return Le(this,function(g,v,b){var _,T,$={},N=0;if(Array.isArray(v)){for(_=Iu(g),T=v.length;N<T;N++)$[v[N]]=m.css(g,v[N],!1,_);return $}return b!==void 0?m.style(g,v,b):m.css(g,v)},u,f,arguments.length>1)}});function jn(u,f,g,v,b){return new jn.prototype.init(u,f,g,v,b)}m.Tween=jn,jn.prototype={constructor:jn,init:function(u,f,g,v,b,_){this.elem=u,this.prop=g,this.easing=b||m.easing._default,this.options=f,this.start=this.now=this.cur(),this.end=v,this.unit=_||(m.cssNumber[g]?"":"px")},cur:function(){var u=jn.propHooks[this.prop];return u&&u.get?u.get(this):jn.propHooks._default.get(this)},run:function(u){var f,g=jn.propHooks[this.prop];return this.options.duration?this.pos=f=m.easing[this.easing](u,this.options.duration*u,0,1,this.options.duration):this.pos=f=u,this.now=(this.end-this.start)*f+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),g&&g.set?g.set(this):jn.propHooks._default.set(this),this}},jn.prototype.init.prototype=jn.prototype,jn.propHooks={_default:{get:function(u){var f;return u.elem.nodeType!==1||u.elem[u.prop]!=null&&u.elem.style[u.prop]==null?u.elem[u.prop]:(f=m.css(u.elem,u.prop,""),!f||f==="auto"?0:f)},set:function(u){m.fx.step[u.prop]?m.fx.step[u.prop](u):u.elem.nodeType===1&&(m.cssHooks[u.prop]||u.elem.style[zd(u.prop)]!=null)?m.style(u.elem,u.prop,u.now+u.unit):u.elem[u.prop]=u.now}}},jn.propHooks.scrollTop=jn.propHooks.scrollLeft={set:function(u){u.elem.nodeType&&u.elem.parentNode&&(u.elem[u.prop]=u.now)}},m.easing={linear:function(u){return u},swing:function(u){return .5-Math.cos(u*Math.PI)/2},_default:"swing"},m.fx=jn.prototype.init,m.fx.step={};var ps,Pu,jH=/^(?:toggle|show|hide)$/,UH=/queueHooks$/;function Yd(){Pu&&(E.hidden===!1&&t.requestAnimationFrame?t.requestAnimationFrame(Yd):t.setTimeout(Yd,m.fx.interval),m.fx.tick())}function vb(){return t.setTimeout(function(){ps=void 0}),ps=Date.now()}function Du(u,f){var g,v=0,b={height:u};for(f=f?1:0;v<4;v+=2-f)g=Ne[v],b["margin"+g]=b["padding"+g]=u;return f&&(b.opacity=b.width=u),b}function yb(u,f,g){for(var v,b=(Tr.tweeners[f]||[]).concat(Tr.tweeners["*"]),_=0,T=b.length;_<T;_++)if(v=b[_].call(g,f,u))return v}function WH(u,f,g){var v,b,_,T,$,N,V,J,de="width"in f||"height"in f,G=this,re={},We=u.style,ct=u.nodeType&&st(u),Ue=W.get(u,"fxshow");g.queue||(T=m._queueHooks(u,"fx"),T.unqueued==null&&(T.unqueued=0,$=T.empty.fire,T.empty.fire=function(){T.unqueued||$()}),T.unqueued++,G.always(function(){G.always(function(){T.unqueued--,m.queue(u,"fx").length||T.empty.fire()})}));for(v in f)if(b=f[v],jH.test(b)){if(delete f[v],_=_||b==="toggle",b===(ct?"hide":"show"))if(b==="show"&&Ue&&Ue[v]!==void 0)ct=!0;else continue;re[v]=Ue&&Ue[v]||m.style(u,v)}if(N=!m.isEmptyObject(f),!(!N&&m.isEmptyObject(re))){de&&u.nodeType===1&&(g.overflow=[We.overflow,We.overflowX,We.overflowY],V=Ue&&Ue.display,V==null&&(V=W.get(u,"display")),J=m.css(u,"display"),J==="none"&&(V?J=V:(Ht([u],!0),V=u.style.display||V,J=m.css(u,"display"),Ht([u]))),(J==="inline"||J==="inline-block"&&V!=null)&&m.css(u,"float")==="none"&&(N||(G.done(function(){We.display=V}),V==null&&(J=We.display,V=J==="none"?"":J)),We.display="inline-block")),g.overflow&&(We.overflow="hidden",G.always(function(){We.overflow=g.overflow[0],We.overflowX=g.overflow[1],We.overflowY=g.overflow[2]})),N=!1;for(v in re)N||(Ue?"hidden"in Ue&&(ct=Ue.hidden):Ue=W.access(u,"fxshow",{display:V}),_&&(Ue.hidden=!ct),ct&&Ht([u],!0),G.done(function(){ct||Ht([u]),W.remove(u,"fxshow");for(v in re)m.style(u,v,re[v])})),N=yb(ct?Ue[v]:0,v,G),v in Ue||(Ue[v]=N.start,ct&&(N.end=N.start,N.start=0))}}function KH(u,f){var g,v,b,_,T;for(g in u)if(v=F(g),b=f[v],_=u[g],Array.isArray(_)&&(b=_[1],_=u[g]=_[0]),g!==v&&(u[v]=_,delete u[g]),T=m.cssHooks[v],T&&"expand"in T){_=T.expand(_),delete u[v];for(g in _)g in u||(u[g]=_[g],f[g]=b)}else f[v]=b}function Tr(u,f,g){var v,b,_=0,T=Tr.prefilters.length,$=m.Deferred().always(function(){delete N.elem}),N=function(){if(b)return!1;for(var de=ps||vb(),G=Math.max(0,V.startTime+V.duration-de),re=G/V.duration||0,We=1-re,ct=0,Ue=V.tweens.length;ct<Ue;ct++)V.tweens[ct].run(We);return $.notifyWith(u,[V,We,G]),We<1&&Ue?G:(Ue||$.notifyWith(u,[V,1,0]),$.resolveWith(u,[V]),!1)},V=$.promise({elem:u,props:m.extend({},f),opts:m.extend(!0,{specialEasing:{},easing:m.easing._default},g),originalProperties:f,originalOptions:g,startTime:ps||vb(),duration:g.duration,tweens:[],createTween:function(de,G){var re=m.Tween(u,V.opts,de,G,V.opts.specialEasing[de]||V.opts.easing);return V.tweens.push(re),re},stop:function(de){var G=0,re=de?V.tweens.length:0;if(b)return this;for(b=!0;G<re;G++)V.tweens[G].run(1);return de?($.notifyWith(u,[V,1,0]),$.resolveWith(u,[V,de])):$.rejectWith(u,[V,de]),this}}),J=V.props;for(KH(J,V.opts.specialEasing);_<T;_++)if(v=Tr.prefilters[_].call(V,u,J,V.opts),v)return x(v.stop)&&(m._queueHooks(V.elem,V.opts.queue).stop=v.stop.bind(v)),v;return m.map(J,yb,V),x(V.opts.start)&&V.opts.start.call(u,V),V.progress(V.opts.progress).done(V.opts.done,V.opts.complete).fail(V.opts.fail).always(V.opts.always),m.fx.timer(m.extend(N,{elem:u,anim:V,queue:V.opts.queue})),V}m.Animation=m.extend(Tr,{tweeners:{"*":[function(u,f){var g=this.createTween(u,f);return Ct(g.elem,u,Ce.exec(f),g),g}]},tweener:function(u,f){x(u)?(f=u,u=["*"]):u=u.match(Ve);for(var g,v=0,b=u.length;v<b;v++)g=u[v],Tr.tweeners[g]=Tr.tweeners[g]||[],Tr.tweeners[g].unshift(f)},prefilters:[WH],prefilter:function(u,f){f?Tr.prefilters.unshift(u):Tr.prefilters.push(u)}}),m.speed=function(u,f,g){var v=u&&typeof u=="object"?m.extend({},u):{complete:g||!g&&f||x(u)&&u,duration:u,easing:g&&f||f&&!x(f)&&f};return m.fx.off?v.duration=0:typeof v.duration!="number"&&(v.duration in m.fx.speeds?v.duration=m.fx.speeds[v.duration]:v.duration=m.fx.speeds._default),(v.queue==null||v.queue===!0)&&(v.queue="fx"),v.old=v.complete,v.complete=function(){x(v.old)&&v.old.call(this),v.queue&&m.dequeue(this,v.queue)},v},m.fn.extend({fadeTo:function(u,f,g,v){return this.filter(st).css("opacity",0).show().end().animate({opacity:f},u,g,v)},animate:function(u,f,g,v){var b=m.isEmptyObject(u),_=m.speed(f,g,v),T=function(){var $=Tr(this,m.extend({},u),_);(b||W.get(this,"finish"))&&$.stop(!0)};return T.finish=T,b||_.queue===!1?this.each(T):this.queue(_.queue,T)},stop:function(u,f,g){var v=function(b){var _=b.stop;delete b.stop,_(g)};return typeof u!="string"&&(g=f,f=u,u=void 0),f&&this.queue(u||"fx",[]),this.each(function(){var b=!0,_=u!=null&&u+"queueHooks",T=m.timers,$=W.get(this);if(_)$[_]&&$[_].stop&&v($[_]);else for(_ in $)$[_]&&$[_].stop&&UH.test(_)&&v($[_]);for(_=T.length;_--;)T[_].elem===this&&(u==null||T[_].queue===u)&&(T[_].anim.stop(g),b=!1,T.splice(_,1));(b||!g)&&m.dequeue(this,u)})},finish:function(u){return u!==!1&&(u=u||"fx"),this.each(function(){var f,g=W.get(this),v=g[u+"queue"],b=g[u+"queueHooks"],_=m.timers,T=v?v.length:0;for(g.finish=!0,m.queue(this,u,[]),b&&b.stop&&b.stop.call(this,!0),f=_.length;f--;)_[f].elem===this&&_[f].queue===u&&(_[f].anim.stop(!0),_.splice(f,1));for(f=0;f<T;f++)v[f]&&v[f].finish&&v[f].finish.call(this);delete g.finish})}}),m.each(["toggle","show","hide"],function(u,f){var g=m.fn[f];m.fn[f]=function(v,b,_){return v==null||typeof v=="boolean"?g.apply(this,arguments):this.animate(Du(f,!0),v,b,_)}}),m.each({slideDown:Du("show"),slideUp:Du("hide"),slideToggle:Du("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(u,f){m.fn[u]=function(g,v,b){return this.animate(f,g,v,b)}}),m.timers=[],m.fx.tick=function(){var u,f=0,g=m.timers;for(ps=Date.now();f<g.length;f++)u=g[f],!u()&&g[f]===u&&g.splice(f--,1);g.length||m.fx.stop(),ps=void 0},m.fx.timer=function(u){m.timers.push(u),m.fx.start()},m.fx.interval=13,m.fx.start=function(){Pu||(Pu=!0,Yd())},m.fx.stop=function(){Pu=null},m.fx.speeds={slow:600,fast:200,_default:400},m.fn.delay=function(u,f){return u=m.fx&&m.fx.speeds[u]||u,f=f||"fx",this.queue(f,function(g,v){var b=t.setTimeout(g,u);v.stop=function(){t.clearTimeout(b)}})},function(){var u=E.createElement("input"),f=E.createElement("select"),g=f.appendChild(E.createElement("option"));u.type="checkbox",w.checkOn=u.value!=="",w.optSelected=g.selected,u=E.createElement("input"),u.value="t",u.type="radio",w.radioValue=u.value==="t"}();var bb,Oa=m.expr.attrHandle;m.fn.extend({attr:function(u,f){return Le(this,m.attr,u,f,arguments.length>1)},removeAttr:function(u){return this.each(function(){m.removeAttr(this,u)})}}),m.extend({attr:function(u,f,g){var v,b,_=u.nodeType;if(!(_===3||_===8||_===2)){if(typeof u.getAttribute>"u")return m.prop(u,f,g);if((_!==1||!m.isXMLDoc(u))&&(b=m.attrHooks[f.toLowerCase()]||(m.expr.match.bool.test(f)?bb:void 0)),g!==void 0){if(g===null){m.removeAttr(u,f);return}return b&&"set"in b&&(v=b.set(u,g,f))!==void 0?v:(u.setAttribute(f,g+""),g)}return b&&"get"in b&&(v=b.get(u,f))!==null?v:(v=m.find.attr(u,f),v??void 0)}},attrHooks:{type:{set:function(u,f){if(!w.radioValue&&f==="radio"&&Q(u,"input")){var g=u.value;return u.setAttribute("type",f),g&&(u.value=g),f}}}},removeAttr:function(u,f){var g,v=0,b=f&&f.match(Ve);if(b&&u.nodeType===1)for(;g=b[v++];)u.removeAttribute(g)}}),bb={set:function(u,f,g){return f===!1?m.removeAttr(u,g):u.setAttribute(g,g),g}},m.each(m.expr.match.bool.source.match(/\w+/g),function(u,f){var g=Oa[f]||m.find.attr;Oa[f]=function(v,b,_){var T,$,N=b.toLowerCase();return _||($=Oa[N],Oa[N]=T,T=g(v,b,_)!=null?N:null,Oa[N]=$),T}});var VH=/^(?:input|select|textarea|button)$/i,qH=/^(?:a|area)$/i;m.fn.extend({prop:function(u,f){return Le(this,m.prop,u,f,arguments.length>1)},removeProp:function(u){return this.each(function(){delete this[m.propFix[u]||u]})}}),m.extend({prop:function(u,f,g){var v,b,_=u.nodeType;if(!(_===3||_===8||_===2))return(_!==1||!m.isXMLDoc(u))&&(f=m.propFix[f]||f,b=m.propHooks[f]),g!==void 0?b&&"set"in b&&(v=b.set(u,g,f))!==void 0?v:u[f]=g:b&&"get"in b&&(v=b.get(u,f))!==null?v:u[f]},propHooks:{tabIndex:{get:function(u){var f=m.find.attr(u,"tabindex");return f?parseInt(f,10):VH.test(u.nodeName)||qH.test(u.nodeName)&&u.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),w.optSelected||(m.propHooks.selected={get:function(u){var f=u.parentNode;return f&&f.parentNode&&f.parentNode.selectedIndex,null},set:function(u){var f=u.parentNode;f&&(f.selectedIndex,f.parentNode&&f.parentNode.selectedIndex)}}),m.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){m.propFix[this.toLowerCase()]=this});function to(u){var f=u.match(Ve)||[];return f.join(" ")}function no(u){return u.getAttribute&&u.getAttribute("class")||""}function Xd(u){return Array.isArray(u)?u:typeof u=="string"?u.match(Ve)||[]:[]}m.fn.extend({addClass:function(u){var f,g,v,b,_,T;return x(u)?this.each(function($){m(this).addClass(u.call(this,$,no(this)))}):(f=Xd(u),f.length?this.each(function(){if(v=no(this),g=this.nodeType===1&&" "+to(v)+" ",g){for(_=0;_<f.length;_++)b=f[_],g.indexOf(" "+b+" ")<0&&(g+=b+" ");T=to(g),v!==T&&this.setAttribute("class",T)}}):this)},removeClass:function(u){var f,g,v,b,_,T;return x(u)?this.each(function($){m(this).removeClass(u.call(this,$,no(this)))}):arguments.length?(f=Xd(u),f.length?this.each(function(){if(v=no(this),g=this.nodeType===1&&" "+to(v)+" ",g){for(_=0;_<f.length;_++)for(b=f[_];g.indexOf(" "+b+" ")>-1;)g=g.replace(" "+b+" "," ");T=to(g),v!==T&&this.setAttribute("class",T)}}):this):this.attr("class","")},toggleClass:function(u,f){var g,v,b,_,T=typeof u,$=T==="string"||Array.isArray(u);return x(u)?this.each(function(N){m(this).toggleClass(u.call(this,N,no(this),f),f)}):typeof f=="boolean"&&$?f?this.addClass(u):this.removeClass(u):(g=Xd(u),this.each(function(){if($)for(_=m(this),b=0;b<g.length;b++)v=g[b],_.hasClass(v)?_.removeClass(v):_.addClass(v);else(u===void 0||T==="boolean")&&(v=no(this),v&&W.set(this,"__className__",v),this.setAttribute&&this.setAttribute("class",v||u===!1?"":W.get(this,"__className__")||""))}))},hasClass:function(u){var f,g,v=0;for(f=" "+u+" ";g=this[v++];)if(g.nodeType===1&&(" "+to(no(g))+" ").indexOf(f)>-1)return!0;return!1}});var zH=/\r/g;m.fn.extend({val:function(u){var f,g,v,b=this[0];return arguments.length?(v=x(u),this.each(function(_){var T;this.nodeType===1&&(v?T=u.call(this,_,m(this).val()):T=u,T==null?T="":typeof T=="number"?T+="":Array.isArray(T)&&(T=m.map(T,function($){return $==null?"":$+""})),f=m.valHooks[this.type]||m.valHooks[this.nodeName.toLowerCase()],(!f||!("set"in f)||f.set(this,T,"value")===void 0)&&(this.value=T))})):b?(f=m.valHooks[b.type]||m.valHooks[b.nodeName.toLowerCase()],f&&"get"in f&&(g=f.get(b,"value"))!==void 0?g:(g=b.value,typeof g=="string"?g.replace(zH,""):g??"")):void 0}}),m.extend({valHooks:{option:{get:function(u){var f=m.find.attr(u,"value");return f??to(m.text(u))}},select:{get:function(u){var f,g,v,b=u.options,_=u.selectedIndex,T=u.type==="select-one",$=T?null:[],N=T?_+1:b.length;for(_<0?v=N:v=T?_:0;v<N;v++)if(g=b[v],(g.selected||v===_)&&!g.disabled&&(!g.parentNode.disabled||!Q(g.parentNode,"optgroup"))){if(f=m(g).val(),T)return f;$.push(f)}return $},set:function(u,f){for(var g,v,b=u.options,_=m.makeArray(f),T=b.length;T--;)v=b[T],(v.selected=m.inArray(m.valHooks.option.get(v),_)>-1)&&(g=!0);return g||(u.selectedIndex=-1),_}}}}),m.each(["radio","checkbox"],function(){m.valHooks[this]={set:function(u,f){if(Array.isArray(f))return u.checked=m.inArray(m(u).val(),f)>-1}},w.checkOn||(m.valHooks[this].get=function(u){return u.getAttribute("value")===null?"on":u.value})}),w.focusin="onfocusin"in t;var Cb=/^(?:focusinfocus|focusoutblur)$/,_b=function(u){u.stopPropagation()};m.extend(m.event,{trigger:function(u,f,g,v){var b,_,T,$,N,V,J,de,G=[g||E],re=p.call(u,"type")?u.type:u,We=p.call(u,"namespace")?u.namespace.split("."):[];if(_=de=T=g=g||E,!(g.nodeType===3||g.nodeType===8)&&!Cb.test(re+m.event.triggered)&&(re.indexOf(".")>-1&&(We=re.split("."),re=We.shift(),We.sort()),N=re.indexOf(":")<0&&"on"+re,u=u[m.expando]?u:new m.Event(re,typeof u=="object"&&u),u.isTrigger=v?2:3,u.namespace=We.join("."),u.rnamespace=u.namespace?new RegExp("(^|\\.)"+We.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,u.result=void 0,u.target||(u.target=g),f=f==null?[u]:m.makeArray(f,[u]),J=m.event.special[re]||{},!(!v&&J.trigger&&J.trigger.apply(g,f)===!1))){if(!v&&!J.noBubble&&!O(g)){for($=J.delegateType||re,Cb.test($+re)||(_=_.parentNode);_;_=_.parentNode)G.push(_),T=_;T===(g.ownerDocument||E)&&G.push(T.defaultView||T.parentWindow||t)}for(b=0;(_=G[b++])&&!u.isPropagationStopped();)de=_,u.type=b>1?$:J.bindType||re,V=(W.get(_,"events")||Object.create(null))[u.type]&&W.get(_,"handle"),V&&V.apply(_,f),V=N&&_[N],V&&V.apply&&z(_)&&(u.result=V.apply(_,f),u.result===!1&&u.preventDefault());return u.type=re,!v&&!u.isDefaultPrevented()&&(!J._default||J._default.apply(G.pop(),f)===!1)&&z(g)&&N&&x(g[re])&&!O(g)&&(T=g[N],T&&(g[N]=null),m.event.triggered=re,u.isPropagationStopped()&&de.addEventListener(re,_b),g[re](),u.isPropagationStopped()&&de.removeEventListener(re,_b),m.event.triggered=void 0,T&&(g[N]=T)),u.result}},simulate:function(u,f,g){var v=m.extend(new m.Event,g,{type:u,isSimulated:!0});m.event.trigger(v,null,f)}}),m.fn.extend({trigger:function(u,f){return this.each(function(){m.event.trigger(u,f,this)})},triggerHandler:function(u,f){var g=this[0];if(g)return m.event.trigger(u,f,g,!0)}}),w.focusin||m.each({focus:"focusin",blur:"focusout"},function(u,f){var g=function(v){m.event.simulate(f,v.target,m.event.fix(v))};m.event.special[f]={setup:function(){var v=this.ownerDocument||this.document||this,b=W.access(v,f);b||v.addEventListener(u,g,!0),W.access(v,f,(b||0)+1)},teardown:function(){var v=this.ownerDocument||this.document||this,b=W.access(v,f)-1;b?W.access(v,f,b):(v.removeEventListener(u,g,!0),W.remove(v,f))}}});var La=t.location,wb={guid:Date.now()},Jd=/\?/;m.parseXML=function(u){var f,g;if(!u||typeof u!="string")return null;try{f=new t.DOMParser().parseFromString(u,"text/xml")}catch{}return g=f&&f.getElementsByTagName("parsererror")[0],(!f||g)&&m.error("Invalid XML: "+(g?m.map(g.childNodes,function(v){return v.textContent}).join(`
|
||
`):u)),f};var GH=/\[\]$/,Tb=/\r?\n/g,YH=/^(?:submit|button|image|reset|file)$/i,XH=/^(?:input|select|textarea|keygen)/i;function Zd(u,f,g,v){var b;if(Array.isArray(f))m.each(f,function(_,T){g||GH.test(u)?v(u,T):Zd(u+"["+(typeof T=="object"&&T!=null?_:"")+"]",T,g,v)});else if(!g&&D(f)==="object")for(b in f)Zd(u+"["+b+"]",f[b],g,v);else v(u,f)}m.param=function(u,f){var g,v=[],b=function(_,T){var $=x(T)?T():T;v[v.length]=encodeURIComponent(_)+"="+encodeURIComponent($??"")};if(u==null)return"";if(Array.isArray(u)||u.jquery&&!m.isPlainObject(u))m.each(u,function(){b(this.name,this.value)});else for(g in u)Zd(g,u[g],f,b);return v.join("&")},m.fn.extend({serialize:function(){return m.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var u=m.prop(this,"elements");return u?m.makeArray(u):this}).filter(function(){var u=this.type;return this.name&&!m(this).is(":disabled")&&XH.test(this.nodeName)&&!YH.test(u)&&(this.checked||!fn.test(u))}).map(function(u,f){var g=m(this).val();return g==null?null:Array.isArray(g)?m.map(g,function(v){return{name:f.name,value:v.replace(Tb,`\r
|
||
`)}}):{name:f.name,value:g.replace(Tb,`\r
|
||
`)}}).get()}});var JH=/%20/g,ZH=/#.*$/,QH=/([?&])_=[^&]*/,ej=/^(.*?):[ \t]*([^\r\n]*)$/mg,tj=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,nj=/^(?:GET|HEAD)$/,rj=/^\/\//,xb={},Qd={},Sb="*/".concat("*"),ep=E.createElement("a");ep.href=La.href;function Ab(u){return function(f,g){typeof f!="string"&&(g=f,f="*");var v,b=0,_=f.toLowerCase().match(Ve)||[];if(x(g))for(;v=_[b++];)v[0]==="+"?(v=v.slice(1)||"*",(u[v]=u[v]||[]).unshift(g)):(u[v]=u[v]||[]).push(g)}}function kb(u,f,g,v){var b={},_=u===Qd;function T($){var N;return b[$]=!0,m.each(u[$]||[],function(V,J){var de=J(f,g,v);if(typeof de=="string"&&!_&&!b[de])return f.dataTypes.unshift(de),T(de),!1;if(_)return!(N=de)}),N}return T(f.dataTypes[0])||!b["*"]&&T("*")}function tp(u,f){var g,v,b=m.ajaxSettings.flatOptions||{};for(g in f)f[g]!==void 0&&((b[g]?u:v||(v={}))[g]=f[g]);return v&&m.extend(!0,u,v),u}function ij(u,f,g){for(var v,b,_,T,$=u.contents,N=u.dataTypes;N[0]==="*";)N.shift(),v===void 0&&(v=u.mimeType||f.getResponseHeader("Content-Type"));if(v){for(b in $)if($[b]&&$[b].test(v)){N.unshift(b);break}}if(N[0]in g)_=N[0];else{for(b in g){if(!N[0]||u.converters[b+" "+N[0]]){_=b;break}T||(T=b)}_=_||T}if(_)return _!==N[0]&&N.unshift(_),g[_]}function oj(u,f,g,v){var b,_,T,$,N,V={},J=u.dataTypes.slice();if(J[1])for(T in u.converters)V[T.toLowerCase()]=u.converters[T];for(_=J.shift();_;)if(u.responseFields[_]&&(g[u.responseFields[_]]=f),!N&&v&&u.dataFilter&&(f=u.dataFilter(f,u.dataType)),N=_,_=J.shift(),_){if(_==="*")_=N;else if(N!=="*"&&N!==_){if(T=V[N+" "+_]||V["* "+_],!T){for(b in V)if($=b.split(" "),$[1]===_&&(T=V[N+" "+$[0]]||V["* "+$[0]],T)){T===!0?T=V[b]:V[b]!==!0&&(_=$[0],J.unshift($[1]));break}}if(T!==!0)if(T&&u.throws)f=T(f);else try{f=T(f)}catch(de){return{state:"parsererror",error:T?de:"No conversion from "+N+" to "+_}}}}return{state:"success",data:f}}m.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:La.href,type:"GET",isLocal:tj.test(La.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Sb,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":m.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(u,f){return f?tp(tp(u,m.ajaxSettings),f):tp(m.ajaxSettings,u)},ajaxPrefilter:Ab(xb),ajaxTransport:Ab(Qd),ajax:function(u,f){typeof u=="object"&&(f=u,u=void 0),f=f||{};var g,v,b,_,T,$,N,V,J,de,G=m.ajaxSetup({},f),re=G.context||G,We=G.context&&(re.nodeType||re.jquery)?m(re):m.event,ct=m.Deferred(),Ue=m.Callbacks("once memory"),ln=G.statusCode||{},en={},Zn={},Lt="canceled",ut={readyState:0,getResponseHeader:function(xt){var Wt;if(N){if(!_)for(_={};Wt=ej.exec(b);)_[Wt[1].toLowerCase()+" "]=(_[Wt[1].toLowerCase()+" "]||[]).concat(Wt[2]);Wt=_[xt.toLowerCase()+" "]}return Wt==null?null:Wt.join(", ")},getAllResponseHeaders:function(){return N?b:null},setRequestHeader:function(xt,Wt){return N==null&&(xt=Zn[xt.toLowerCase()]=Zn[xt.toLowerCase()]||xt,en[xt]=Wt),this},overrideMimeType:function(xt){return N==null&&(G.mimeType=xt),this},statusCode:function(xt){var Wt;if(xt)if(N)ut.always(xt[ut.status]);else for(Wt in xt)ln[Wt]=[ln[Wt],xt[Wt]];return this},abort:function(xt){var Wt=xt||Lt;return g&&g.abort(Wt),Un(0,Wt),this}};if(ct.promise(ut),G.url=((u||G.url||La.href)+"").replace(rj,La.protocol+"//"),G.type=f.method||f.type||G.method||G.type,G.dataTypes=(G.dataType||"*").toLowerCase().match(Ve)||[""],G.crossDomain==null){$=E.createElement("a");try{$.href=G.url,$.href=$.href,G.crossDomain=ep.protocol+"//"+ep.host!=$.protocol+"//"+$.host}catch{G.crossDomain=!0}}if(G.data&&G.processData&&typeof G.data!="string"&&(G.data=m.param(G.data,G.traditional)),kb(xb,G,f,ut),N)return ut;V=m.event&&G.global,V&&m.active++===0&&m.event.trigger("ajaxStart"),G.type=G.type.toUpperCase(),G.hasContent=!nj.test(G.type),v=G.url.replace(ZH,""),G.hasContent?G.data&&G.processData&&(G.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(G.data=G.data.replace(JH,"+")):(de=G.url.slice(v.length),G.data&&(G.processData||typeof G.data=="string")&&(v+=(Jd.test(v)?"&":"?")+G.data,delete G.data),G.cache===!1&&(v=v.replace(QH,"$1"),de=(Jd.test(v)?"&":"?")+"_="+wb.guid+++de),G.url=v+de),G.ifModified&&(m.lastModified[v]&&ut.setRequestHeader("If-Modified-Since",m.lastModified[v]),m.etag[v]&&ut.setRequestHeader("If-None-Match",m.etag[v])),(G.data&&G.hasContent&&G.contentType!==!1||f.contentType)&&ut.setRequestHeader("Content-Type",G.contentType),ut.setRequestHeader("Accept",G.dataTypes[0]&&G.accepts[G.dataTypes[0]]?G.accepts[G.dataTypes[0]]+(G.dataTypes[0]!=="*"?", "+Sb+"; q=0.01":""):G.accepts["*"]);for(J in G.headers)ut.setRequestHeader(J,G.headers[J]);if(G.beforeSend&&(G.beforeSend.call(re,ut,G)===!1||N))return ut.abort();if(Lt="abort",Ue.add(G.complete),ut.done(G.success),ut.fail(G.error),g=kb(Qd,G,f,ut),!g)Un(-1,"No Transport");else{if(ut.readyState=1,V&&We.trigger("ajaxSend",[ut,G]),N)return ut;G.async&&G.timeout>0&&(T=t.setTimeout(function(){ut.abort("timeout")},G.timeout));try{N=!1,g.send(en,Un)}catch(xt){if(N)throw xt;Un(-1,xt)}}function Un(xt,Wt,Pa,Ru){var Qn,ro,io,Wn,Si,dr=Wt;N||(N=!0,T&&t.clearTimeout(T),g=void 0,b=Ru||"",ut.readyState=xt>0?4:0,Qn=xt>=200&&xt<300||xt===304,Pa&&(Wn=ij(G,ut,Pa)),!Qn&&m.inArray("script",G.dataTypes)>-1&&m.inArray("json",G.dataTypes)<0&&(G.converters["text script"]=function(){}),Wn=oj(G,Wn,ut,Qn),Qn?(G.ifModified&&(Si=ut.getResponseHeader("Last-Modified"),Si&&(m.lastModified[v]=Si),Si=ut.getResponseHeader("etag"),Si&&(m.etag[v]=Si)),xt===204||G.type==="HEAD"?dr="nocontent":xt===304?dr="notmodified":(dr=Wn.state,ro=Wn.data,io=Wn.error,Qn=!io)):(io=dr,(xt||!dr)&&(dr="error",xt<0&&(xt=0))),ut.status=xt,ut.statusText=(Wt||dr)+"",Qn?ct.resolveWith(re,[ro,dr,ut]):ct.rejectWith(re,[ut,dr,io]),ut.statusCode(ln),ln=void 0,V&&We.trigger(Qn?"ajaxSuccess":"ajaxError",[ut,G,Qn?ro:io]),Ue.fireWith(re,[ut,dr]),V&&(We.trigger("ajaxComplete",[ut,G]),--m.active||m.event.trigger("ajaxStop")))}return ut},getJSON:function(u,f,g){return m.get(u,f,g,"json")},getScript:function(u,f){return m.get(u,void 0,f,"script")}}),m.each(["get","post"],function(u,f){m[f]=function(g,v,b,_){return x(v)&&(_=_||b,b=v,v=void 0),m.ajax(m.extend({url:g,type:f,dataType:_,data:v,success:b},m.isPlainObject(g)&&g))}}),m.ajaxPrefilter(function(u){var f;for(f in u.headers)f.toLowerCase()==="content-type"&&(u.contentType=u.headers[f]||"")}),m._evalUrl=function(u,f,g){return m.ajax({url:u,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(v){m.globalEval(v,f,g)}})},m.fn.extend({wrapAll:function(u){var f;return this[0]&&(x(u)&&(u=u.call(this[0])),f=m(u,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&f.insertBefore(this[0]),f.map(function(){for(var g=this;g.firstElementChild;)g=g.firstElementChild;return g}).append(this)),this},wrapInner:function(u){return x(u)?this.each(function(f){m(this).wrapInner(u.call(this,f))}):this.each(function(){var f=m(this),g=f.contents();g.length?g.wrapAll(u):f.append(u)})},wrap:function(u){var f=x(u);return this.each(function(g){m(this).wrapAll(f?u.call(this,g):u)})},unwrap:function(u){return this.parent(u).not("body").each(function(){m(this).replaceWith(this.childNodes)}),this}}),m.expr.pseudos.hidden=function(u){return!m.expr.pseudos.visible(u)},m.expr.pseudos.visible=function(u){return!!(u.offsetWidth||u.offsetHeight||u.getClientRects().length)},m.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch{}};var sj={0:200,1223:204},Ia=m.ajaxSettings.xhr();w.cors=!!Ia&&"withCredentials"in Ia,w.ajax=Ia=!!Ia,m.ajaxTransport(function(u){var f,g;if(w.cors||Ia&&!u.crossDomain)return{send:function(v,b){var _,T=u.xhr();if(T.open(u.type,u.url,u.async,u.username,u.password),u.xhrFields)for(_ in u.xhrFields)T[_]=u.xhrFields[_];u.mimeType&&T.overrideMimeType&&T.overrideMimeType(u.mimeType),!u.crossDomain&&!v["X-Requested-With"]&&(v["X-Requested-With"]="XMLHttpRequest");for(_ in v)T.setRequestHeader(_,v[_]);f=function($){return function(){f&&(f=g=T.onload=T.onerror=T.onabort=T.ontimeout=T.onreadystatechange=null,$==="abort"?T.abort():$==="error"?typeof T.status!="number"?b(0,"error"):b(T.status,T.statusText):b(sj[T.status]||T.status,T.statusText,(T.responseType||"text")!=="text"||typeof T.responseText!="string"?{binary:T.response}:{text:T.responseText},T.getAllResponseHeaders()))}},T.onload=f(),g=T.onerror=T.ontimeout=f("error"),T.onabort!==void 0?T.onabort=g:T.onreadystatechange=function(){T.readyState===4&&t.setTimeout(function(){f&&g()})},f=f("abort");try{T.send(u.hasContent&&u.data||null)}catch($){if(f)throw $}},abort:function(){f&&f()}}}),m.ajaxPrefilter(function(u){u.crossDomain&&(u.contents.script=!1)}),m.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(u){return m.globalEval(u),u}}}),m.ajaxPrefilter("script",function(u){u.cache===void 0&&(u.cache=!1),u.crossDomain&&(u.type="GET")}),m.ajaxTransport("script",function(u){if(u.crossDomain||u.scriptAttrs){var f,g;return{send:function(v,b){f=m("<script>").attr(u.scriptAttrs||{}).prop({charset:u.scriptCharset,src:u.url}).on("load error",g=function(_){f.remove(),g=null,_&&b(_.type==="error"?404:200,_.type)}),E.head.appendChild(f[0])},abort:function(){g&&g()}}}});var Eb=[],np=/(=)\?(?=&|$)|\?\?/;m.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var u=Eb.pop()||m.expando+"_"+wb.guid++;return this[u]=!0,u}}),m.ajaxPrefilter("json jsonp",function(u,f,g){var v,b,_,T=u.jsonp!==!1&&(np.test(u.url)?"url":typeof u.data=="string"&&(u.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&np.test(u.data)&&"data");if(T||u.dataTypes[0]==="jsonp")return v=u.jsonpCallback=x(u.jsonpCallback)?u.jsonpCallback():u.jsonpCallback,T?u[T]=u[T].replace(np,"$1"+v):u.jsonp!==!1&&(u.url+=(Jd.test(u.url)?"&":"?")+u.jsonp+"="+v),u.converters["script json"]=function(){return _||m.error(v+" was not called"),_[0]},u.dataTypes[0]="json",b=t[v],t[v]=function(){_=arguments},g.always(function(){b===void 0?m(t).removeProp(v):t[v]=b,u[v]&&(u.jsonpCallback=f.jsonpCallback,Eb.push(v)),_&&x(b)&&b(_[0]),_=b=void 0}),"script"}),w.createHTMLDocument=function(){var u=E.implementation.createHTMLDocument("").body;return u.innerHTML="<form></form><form></form>",u.childNodes.length===2}(),m.parseHTML=function(u,f,g){if(typeof u!="string")return[];typeof f=="boolean"&&(g=f,f=!1);var v,b,_;return f||(w.createHTMLDocument?(f=E.implementation.createHTMLDocument(""),v=f.createElement("base"),v.href=E.location.href,f.head.appendChild(v)):f=E),b=X.exec(u),_=!g&&[],b?[f.createElement(b[1])]:(b=Ln([u],f,_),_&&_.length&&m(_).remove(),m.merge([],b.childNodes))},m.fn.load=function(u,f,g){var v,b,_,T=this,$=u.indexOf(" ");return $>-1&&(v=to(u.slice($)),u=u.slice(0,$)),x(f)?(g=f,f=void 0):f&&typeof f=="object"&&(b="POST"),T.length>0&&m.ajax({url:u,type:b||"GET",dataType:"html",data:f}).done(function(N){_=arguments,T.html(v?m("<div>").append(m.parseHTML(N)).find(v):N)}).always(g&&function(N,V){T.each(function(){g.apply(this,_||[N.responseText,V,N])})}),this},m.expr.pseudos.animated=function(u){return m.grep(m.timers,function(f){return u===f.elem}).length},m.offset={setOffset:function(u,f,g){var v,b,_,T,$,N,V,J=m.css(u,"position"),de=m(u),G={};J==="static"&&(u.style.position="relative"),$=de.offset(),_=m.css(u,"top"),N=m.css(u,"left"),V=(J==="absolute"||J==="fixed")&&(_+N).indexOf("auto")>-1,V?(v=de.position(),T=v.top,b=v.left):(T=parseFloat(_)||0,b=parseFloat(N)||0),x(f)&&(f=f.call(u,g,m.extend({},$))),f.top!=null&&(G.top=f.top-$.top+T),f.left!=null&&(G.left=f.left-$.left+b),"using"in f?f.using.call(u,G):de.css(G)}},m.fn.extend({offset:function(u){if(arguments.length)return u===void 0?this:this.each(function(b){m.offset.setOffset(this,u,b)});var f,g,v=this[0];if(v)return v.getClientRects().length?(f=v.getBoundingClientRect(),g=v.ownerDocument.defaultView,{top:f.top+g.pageYOffset,left:f.left+g.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var u,f,g,v=this[0],b={top:0,left:0};if(m.css(v,"position")==="fixed")f=v.getBoundingClientRect();else{for(f=this.offset(),g=v.ownerDocument,u=v.offsetParent||g.documentElement;u&&(u===g.body||u===g.documentElement)&&m.css(u,"position")==="static";)u=u.parentNode;u&&u!==v&&u.nodeType===1&&(b=m(u).offset(),b.top+=m.css(u,"borderTopWidth",!0),b.left+=m.css(u,"borderLeftWidth",!0))}return{top:f.top-b.top-m.css(v,"marginTop",!0),left:f.left-b.left-m.css(v,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var u=this.offsetParent;u&&m.css(u,"position")==="static";)u=u.offsetParent;return u||Ae})}}),m.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(u,f){var g=f==="pageYOffset";m.fn[u]=function(v){return Le(this,function(b,_,T){var $;if(O(b)?$=b:b.nodeType===9&&($=b.defaultView),T===void 0)return $?$[f]:b[_];$?$.scrollTo(g?$.pageXOffset:T,g?T:$.pageYOffset):b[_]=T},u,v,arguments.length)}}),m.each(["top","left"],function(u,f){m.cssHooks[f]=cb(w.pixelPosition,function(g,v){if(v)return v=Ea(g,f),Vd.test(v)?m(g).position()[f]+"px":v})}),m.each({Height:"height",Width:"width"},function(u,f){m.each({padding:"inner"+u,content:f,"":"outer"+u},function(g,v){m.fn[v]=function(b,_){var T=arguments.length&&(g||typeof b!="boolean"),$=g||(b===!0||_===!0?"margin":"border");return Le(this,function(N,V,J){var de;return O(N)?v.indexOf("outer")===0?N["inner"+u]:N.document.documentElement["client"+u]:N.nodeType===9?(de=N.documentElement,Math.max(N.body["scroll"+u],de["scroll"+u],N.body["offset"+u],de["offset"+u],de["client"+u])):J===void 0?m.css(N,V,$):m.style(N,V,J,$)},f,T?b:void 0,T)}})}),m.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(u,f){m.fn[f]=function(g){return this.on(f,g)}}),m.fn.extend({bind:function(u,f,g){return this.on(u,null,f,g)},unbind:function(u,f){return this.off(u,null,f)},delegate:function(u,f,g,v){return this.on(f,u,g,v)},undelegate:function(u,f,g){return arguments.length===1?this.off(u,"**"):this.off(f,u||"**",g)},hover:function(u,f){return this.mouseenter(u).mouseleave(f||u)}}),m.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(u,f){m.fn[f]=function(g,v){return arguments.length>0?this.on(f,null,g,v):this.trigger(f)}});var aj=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;m.proxy=function(u,f){var g,v,b;if(typeof f=="string"&&(g=u[f],f=u,u=g),!!x(u))return v=o.call(arguments,2),b=function(){return u.apply(f||this,v.concat(o.call(arguments)))},b.guid=u.guid=u.guid||m.guid++,b},m.holdReady=function(u){u?m.readyWait++:m.ready(!0)},m.isArray=Array.isArray,m.parseJSON=JSON.parse,m.nodeName=Q,m.isFunction=x,m.isWindow=O,m.camelCase=F,m.type=D,m.now=Date.now,m.isNumeric=function(u){var f=m.type(u);return(f==="number"||f==="string")&&!isNaN(u-parseFloat(u))},m.trim=function(u){return u==null?"":(u+"").replace(aj,"$1")};var lj=t.jQuery,uj=t.$;return m.noConflict=function(u){return t.$===m&&(t.$=uj),u&&t.jQuery===m&&(t.jQuery=lj),m},typeof n>"u"&&(t.jQuery=t.$=m),m})}(xd)),xd.exports}(function(e){(function(t){t(["jquery"],function(n){return function(){var r,i,o=0,s={error:"error",info:"info",success:"success",warning:"warning"},l={clear:x,remove:O,error:d,getContainer:h,info:p,options:{},subscribe:y,success:C,version:"2.1.4",warning:w},c;return l;function d(A,P,j){return m({type:s.error,iconClass:ue().iconClasses.error,message:A,optionsOverride:j,title:P})}function h(A,P){return A||(A=ue()),r=n("#"+A.containerId),r.length||P&&(r=te(A)),r}function p(A,P,j){return m({type:s.info,iconClass:ue().iconClasses.info,message:A,optionsOverride:j,title:P})}function y(A){i=A}function C(A,P,j){return m({type:s.success,iconClass:ue().iconClasses.success,message:A,optionsOverride:j,title:P})}function w(A,P,j){return m({type:s.warning,iconClass:ue().iconClasses.warning,message:A,optionsOverride:j,title:P})}function x(A,P){var j=ue();r||h(j),B(A,j,P)||E(j)}function O(A){var P=ue();if(r||h(P),A&&n(":focus",A).length===0){I(A);return}r.children().length&&r.remove()}function E(A){for(var P=r.children(),j=P.length-1;j>=0;j--)B(n(P[j]),A)}function B(A,P,j){var Q=j&&j.force?j.force:!1;return A&&(Q||n(":focus",A).length===0)?(A[P.hideMethod]({duration:P.hideDuration,easing:P.hideEasing,complete:function(){I(A)}}),!0):!1}function te(A){return r=n("<div/>").attr("id",A.containerId).addClass(A.positionClass),r.appendTo(n(A.target)),r}function D(){return{tapToDismiss:!0,toastClass:"toast",containerId:"toast-container",debug:!1,showMethod:"fadeIn",showDuration:300,showEasing:"swing",onShown:void 0,hideMethod:"fadeOut",hideDuration:1e3,hideEasing:"swing",onHidden:void 0,closeMethod:!1,closeDuration:!1,closeEasing:!1,closeOnHover:!0,extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},iconClass:"toast-info",positionClass:"toast-top-right",timeOut:5e3,titleClass:"toast-title",messageClass:"toast-message",escapeHtml:!1,target:"body",closeHtml:'<button type="button">×</button>',closeClass:"toast-close-button",newestOnTop:!0,preventDuplicates:!1,progressBar:!1,progressClass:"toast-progress",rtl:!1}}function we(A){i&&i(A)}function m(A){var P=ue(),j=A.iconClass||P.iconClass;if(typeof A.optionsOverride<"u"&&(P=n.extend(P,A.optionsOverride),j=A.optionsOverride.iconClass||j),R(P,A))return;o++,r=h(P,!0);var Q=null,X=n("<div/>"),ve=n("<div/>"),je=n("<div/>"),Re=n("<div/>"),q=n(P.closeHtml),ie={intervalId:null,hideEta:null,maxHideTime:null},ce={toastId:o,state:"visible",startTime:new Date,options:P,map:A};return Ve(),_e(),he(),we(ce),P.debug&&console&&console.log(ce),X;function nt(Y){return Y==null&&(Y=""),Y.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function Ve(){ke(),Be(),Xe(),Le(),rt(),gt(),Oe(),ne()}function ne(){var Y="";switch(A.iconClass){case"toast-success":case"toast-info":Y="polite";break;default:Y="assertive"}X.attr("aria-live",Y)}function he(){P.closeOnHover&&X.hover(ee,z),!P.onclick&&P.tapToDismiss&&X.click(F),P.closeButton&&q&&q.click(function(Y){Y.stopPropagation?Y.stopPropagation():Y.cancelBubble!==void 0&&Y.cancelBubble!==!0&&(Y.cancelBubble=!0),P.onCloseClick&&P.onCloseClick(Y),F(!0)}),P.onclick&&X.click(function(Y){P.onclick(Y),F()})}function _e(){X.hide(),X[P.showMethod]({duration:P.showDuration,easing:P.showEasing,complete:P.onShown}),P.timeOut>0&&(Q=setTimeout(F,P.timeOut),ie.maxHideTime=parseFloat(P.timeOut),ie.hideEta=new Date().getTime()+ie.maxHideTime,P.progressBar&&(ie.intervalId=setInterval(W,10)))}function ke(){A.iconClass&&X.addClass(P.toastClass).addClass(j)}function Oe(){P.newestOnTop?r.prepend(X):r.append(X)}function Be(){if(A.title){var Y=A.title;P.escapeHtml&&(Y=nt(A.title)),ve.append(Y).addClass(P.titleClass),X.append(ve)}}function Xe(){if(A.message){var Y=A.message;P.escapeHtml&&(Y=nt(A.message)),je.append(Y).addClass(P.messageClass),X.append(je)}}function Le(){P.closeButton&&(q.addClass(P.closeClass).attr("role","button"),X.prepend(q))}function rt(){P.progressBar&&(Re.addClass(P.progressClass),X.prepend(Re))}function gt(){P.rtl&&X.addClass("rtl")}function R(Y,be){if(Y.preventDuplicates){if(be.message===c)return!0;c=be.message}return!1}function F(Y){var be=Y&&P.closeMethod!==!1?P.closeMethod:P.hideMethod,fe=Y&&P.closeDuration!==!1?P.closeDuration:P.hideDuration,ge=Y&&P.closeEasing!==!1?P.closeEasing:P.hideEasing;if(!(n(":focus",X).length&&!Y))return clearTimeout(ie.intervalId),X[be]({duration:fe,easing:ge,complete:function(){I(X),clearTimeout(Q),P.onHidden&&ce.state!=="hidden"&&P.onHidden(),ce.state="hidden",ce.endTime=new Date,we(ce)}})}function z(){(P.timeOut>0||P.extendedTimeOut>0)&&(Q=setTimeout(F,P.extendedTimeOut),ie.maxHideTime=parseFloat(P.extendedTimeOut),ie.hideEta=new Date().getTime()+ie.maxHideTime)}function ee(){clearTimeout(Q),ie.hideEta=0,X.stop(!0,!0)[P.showMethod]({duration:P.showDuration,easing:P.showEasing})}function W(){var Y=(ie.hideEta-new Date().getTime())/ie.maxHideTime*100;Re.width(Y+"%")}}function ue(){return n.extend({},D(),l.options)}function I(A){r||(r=h()),!A.is(":visible")&&(A.remove(),A=null,r.children().length===0&&(r.remove(),c=void 0))}}()})})(function(t,n){e.exports?e.exports=n(B$()):window.toastr=n(window.jQuery)})})(c0);var H$=c0.exports;const j$=Ol(H$);var d0={exports:{}};/*!
|
||
* clipboard.js v2.0.11
|
||
* https://clipboardjs.com/
|
||
*
|
||
* Licensed MIT © Zeno Rocha
|
||
*/(function(e,t){(function(r,i){e.exports=i()})(Kc,function(){return function(){var n={686:function(o,s,l){l.d(s,{default:function(){return Ve}});var c=l(279),d=l.n(c),h=l(370),p=l.n(h),y=l(817),C=l.n(y);function w(ne){try{return document.execCommand(ne)}catch{return!1}}var x=function(he){var _e=C()(he);return w("cut"),_e},O=x;function E(ne){var he=document.documentElement.getAttribute("dir")==="rtl",_e=document.createElement("textarea");_e.style.fontSize="12pt",_e.style.border="0",_e.style.padding="0",_e.style.margin="0",_e.style.position="absolute",_e.style[he?"right":"left"]="-9999px";var ke=window.pageYOffset||document.documentElement.scrollTop;return _e.style.top="".concat(ke,"px"),_e.setAttribute("readonly",""),_e.value=ne,_e}var B=function(he,_e){var ke=E(he);_e.container.appendChild(ke);var Oe=C()(ke);return w("copy"),ke.remove(),Oe},te=function(he){var _e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},ke="";return typeof he=="string"?ke=B(he,_e):he instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(he==null?void 0:he.type)?ke=B(he.value,_e):(ke=C()(he),w("copy")),ke},D=te;function we(ne){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?we=function(_e){return typeof _e}:we=function(_e){return _e&&typeof Symbol=="function"&&_e.constructor===Symbol&&_e!==Symbol.prototype?"symbol":typeof _e},we(ne)}var m=function(){var he=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},_e=he.action,ke=_e===void 0?"copy":_e,Oe=he.container,Be=he.target,Xe=he.text;if(ke!=="copy"&&ke!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(Be!==void 0)if(Be&&we(Be)==="object"&&Be.nodeType===1){if(ke==="copy"&&Be.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(ke==="cut"&&(Be.hasAttribute("readonly")||Be.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(Xe)return D(Xe,{container:Oe});if(Be)return ke==="cut"?O(Be):D(Be,{container:Oe})},ue=m;function I(ne){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?I=function(_e){return typeof _e}:I=function(_e){return _e&&typeof Symbol=="function"&&_e.constructor===Symbol&&_e!==Symbol.prototype?"symbol":typeof _e},I(ne)}function A(ne,he){if(!(ne instanceof he))throw new TypeError("Cannot call a class as a function")}function P(ne,he){for(var _e=0;_e<he.length;_e++){var ke=he[_e];ke.enumerable=ke.enumerable||!1,ke.configurable=!0,"value"in ke&&(ke.writable=!0),Object.defineProperty(ne,ke.key,ke)}}function j(ne,he,_e){return he&&P(ne.prototype,he),_e&&P(ne,_e),ne}function Q(ne,he){if(typeof he!="function"&&he!==null)throw new TypeError("Super expression must either be null or a function");ne.prototype=Object.create(he&&he.prototype,{constructor:{value:ne,writable:!0,configurable:!0}}),he&&X(ne,he)}function X(ne,he){return X=Object.setPrototypeOf||function(ke,Oe){return ke.__proto__=Oe,ke},X(ne,he)}function ve(ne){var he=q();return function(){var ke=ie(ne),Oe;if(he){var Be=ie(this).constructor;Oe=Reflect.construct(ke,arguments,Be)}else Oe=ke.apply(this,arguments);return je(this,Oe)}}function je(ne,he){return he&&(I(he)==="object"||typeof he=="function")?he:Re(ne)}function Re(ne){if(ne===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ne}function q(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function ie(ne){return ie=Object.setPrototypeOf?Object.getPrototypeOf:function(_e){return _e.__proto__||Object.getPrototypeOf(_e)},ie(ne)}function ce(ne,he){var _e="data-clipboard-".concat(ne);if(he.hasAttribute(_e))return he.getAttribute(_e)}var nt=function(ne){Q(_e,ne);var he=ve(_e);function _e(ke,Oe){var Be;return A(this,_e),Be=he.call(this),Be.resolveOptions(Oe),Be.listenClick(ke),Be}return j(_e,[{key:"resolveOptions",value:function(){var Oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof Oe.action=="function"?Oe.action:this.defaultAction,this.target=typeof Oe.target=="function"?Oe.target:this.defaultTarget,this.text=typeof Oe.text=="function"?Oe.text:this.defaultText,this.container=I(Oe.container)==="object"?Oe.container:document.body}},{key:"listenClick",value:function(Oe){var Be=this;this.listener=p()(Oe,"click",function(Xe){return Be.onClick(Xe)})}},{key:"onClick",value:function(Oe){var Be=Oe.delegateTarget||Oe.currentTarget,Xe=this.action(Be)||"copy",Le=ue({action:Xe,container:this.container,target:this.target(Be),text:this.text(Be)});this.emit(Le?"success":"error",{action:Xe,text:Le,trigger:Be,clearSelection:function(){Be&&Be.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(Oe){return ce("action",Oe)}},{key:"defaultTarget",value:function(Oe){var Be=ce("target",Oe);if(Be)return document.querySelector(Be)}},{key:"defaultText",value:function(Oe){return ce("text",Oe)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(Oe){var Be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return D(Oe,Be)}},{key:"cut",value:function(Oe){return O(Oe)}},{key:"isSupported",value:function(){var Oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],Be=typeof Oe=="string"?[Oe]:Oe,Xe=!!document.queryCommandSupported;return Be.forEach(function(Le){Xe=Xe&&!!document.queryCommandSupported(Le)}),Xe}}]),_e}(d()),Ve=nt},828:function(o){var s=9;if(typeof Element<"u"&&!Element.prototype.matches){var l=Element.prototype;l.matches=l.matchesSelector||l.mozMatchesSelector||l.msMatchesSelector||l.oMatchesSelector||l.webkitMatchesSelector}function c(d,h){for(;d&&d.nodeType!==s;){if(typeof d.matches=="function"&&d.matches(h))return d;d=d.parentNode}}o.exports=c},438:function(o,s,l){var c=l(828);function d(y,C,w,x,O){var E=p.apply(this,arguments);return y.addEventListener(w,E,O),{destroy:function(){y.removeEventListener(w,E,O)}}}function h(y,C,w,x,O){return typeof y.addEventListener=="function"?d.apply(null,arguments):typeof w=="function"?d.bind(null,document).apply(null,arguments):(typeof y=="string"&&(y=document.querySelectorAll(y)),Array.prototype.map.call(y,function(E){return d(E,C,w,x,O)}))}function p(y,C,w,x){return function(O){O.delegateTarget=c(O.target,C),O.delegateTarget&&x.call(y,O)}}o.exports=h},879:function(o,s){s.node=function(l){return l!==void 0&&l instanceof HTMLElement&&l.nodeType===1},s.nodeList=function(l){var c=Object.prototype.toString.call(l);return l!==void 0&&(c==="[object NodeList]"||c==="[object HTMLCollection]")&&"length"in l&&(l.length===0||s.node(l[0]))},s.string=function(l){return typeof l=="string"||l instanceof String},s.fn=function(l){var c=Object.prototype.toString.call(l);return c==="[object Function]"}},370:function(o,s,l){var c=l(879),d=l(438);function h(w,x,O){if(!w&&!x&&!O)throw new Error("Missing required arguments");if(!c.string(x))throw new TypeError("Second argument must be a String");if(!c.fn(O))throw new TypeError("Third argument must be a Function");if(c.node(w))return p(w,x,O);if(c.nodeList(w))return y(w,x,O);if(c.string(w))return C(w,x,O);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function p(w,x,O){return w.addEventListener(x,O),{destroy:function(){w.removeEventListener(x,O)}}}function y(w,x,O){return Array.prototype.forEach.call(w,function(E){E.addEventListener(x,O)}),{destroy:function(){Array.prototype.forEach.call(w,function(E){E.removeEventListener(x,O)})}}}function C(w,x,O){return d(document.body,w,x,O)}o.exports=h},817:function(o){function s(l){var c;if(l.nodeName==="SELECT")l.focus(),c=l.value;else if(l.nodeName==="INPUT"||l.nodeName==="TEXTAREA"){var d=l.hasAttribute("readonly");d||l.setAttribute("readonly",""),l.select(),l.setSelectionRange(0,l.value.length),d||l.removeAttribute("readonly"),c=l.value}else{l.hasAttribute("contenteditable")&&l.focus();var h=window.getSelection(),p=document.createRange();p.selectNodeContents(l),h.removeAllRanges(),h.addRange(p),c=h.toString()}return c}o.exports=s},279:function(o){function s(){}s.prototype={on:function(l,c,d){var h=this.e||(this.e={});return(h[l]||(h[l]=[])).push({fn:c,ctx:d}),this},once:function(l,c,d){var h=this;function p(){h.off(l,p),c.apply(d,arguments)}return p._=c,this.on(l,p,d)},emit:function(l){var c=[].slice.call(arguments,1),d=((this.e||(this.e={}))[l]||[]).slice(),h=0,p=d.length;for(h;h<p;h++)d[h].fn.apply(d[h].ctx,c);return this},off:function(l,c){var d=this.e||(this.e={}),h=d[l],p=[];if(h&&c)for(var y=0,C=h.length;y<C;y++)h[y].fn!==c&&h[y].fn._!==c&&p.push(h[y]);return p.length?d[l]=p:delete d[l],this}},o.exports=s,o.exports.TinyEmitter=s}},r={};function i(o){if(r[o])return r[o].exports;var s=r[o]={exports:{}};return n[o](s,s.exports,i),s.exports}return function(){i.n=function(o){var s=o&&o.__esModule?function(){return o.default}:function(){return o};return i.d(s,{a:s}),s}}(),function(){i.d=function(o,s){for(var l in s)i.o(s,l)&&!i.o(o,l)&&Object.defineProperty(o,l,{enumerable:!0,get:s[l]})}}(),function(){i.o=function(o,s){return Object.prototype.hasOwnProperty.call(o,s)}}(),i(686)}().default})})(d0);var U$=d0.exports;const W$=Ol(U$),K$=e=>{const t=(e==null?void 0:e.appendToBody)===void 0?!0:e.appendToBody;return{toClipboard(n,r){return new Promise((i,o)=>{const s=document.createElement("button"),l=new W$(s,{text:()=>n,action:()=>"copy",container:r!==void 0?r:document.body});l.on("success",c=>{l.destroy(),i(c)}),l.on("error",c=>{l.destroy(),o(c)}),t&&document.body.appendChild(s),s.click(),t&&document.body.removeChild(s)})}}};function p0(e,t){return function(){return e.apply(t,arguments)}}const{toString:V$}=Object.prototype,{getPrototypeOf:Sd}=Object,vu=(e=>t=>{const n=V$.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Fr=e=>(e=e.toLowerCase(),t=>vu(t)===e),yu=e=>t=>typeof t===e,{isArray:ss}=Array,Ca=yu("undefined");function q$(e){return e!==null&&!Ca(e)&&e.constructor!==null&&!Ca(e.constructor)&&fr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const h0=Fr("ArrayBuffer");function z$(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&h0(e.buffer),t}const G$=yu("string"),fr=yu("function"),g0=yu("number"),bu=e=>e!==null&&typeof e=="object",Y$=e=>e===!0||e===!1,Cu=e=>{if(vu(e)!=="object")return!1;const t=Sd(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},X$=Fr("Date"),J$=Fr("File"),Z$=Fr("Blob"),Q$=Fr("FileList"),eB=e=>bu(e)&&fr(e.pipe),tB=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||fr(e.append)&&((t=vu(e))==="formdata"||t==="object"&&fr(e.toString)&&e.toString()==="[object FormData]"))},nB=Fr("URLSearchParams"),rB=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function _a(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),ss(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let l;for(r=0;r<s;r++)l=o[r],t.call(null,e[l],l,e)}}function m0(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const v0=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),y0=e=>!Ca(e)&&e!==v0;function Ad(){const{caseless:e}=y0(this)&&this||{},t={},n=(r,i)=>{const o=e&&m0(t,i)||i;Cu(t[o])&&Cu(r)?t[o]=Ad(t[o],r):Cu(r)?t[o]=Ad({},r):ss(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&_a(arguments[r],n);return t}const iB=(e,t,n,{allOwnKeys:r}={})=>(_a(t,(i,o)=>{n&&fr(i)?e[o]=p0(i,n):e[o]=i},{allOwnKeys:r}),e),oB=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),sB=(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)},aB=(e,t,n,r)=>{let i,o,s;const l={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)s=i[o],(!r||r(s,e,t))&&!l[s]&&(t[s]=e[s],l[s]=!0);e=n!==!1&&Sd(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},lB=(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},uB=e=>{if(!e)return null;if(ss(e))return e;let t=e.length;if(!g0(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},cB=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Sd(Uint8Array)),fB=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},dB=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},pB=Fr("HTMLFormElement"),hB=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),b0=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),gB=Fr("RegExp"),C0=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};_a(n,(i,o)=>{t(i,o,e)!==!1&&(r[o]=i)}),Object.defineProperties(e,r)},mB=e=>{C0(e,(t,n)=>{if(fr(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(fr(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+"'")})}})},vB=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return ss(e)?r(e):r(String(e).split(t)),n},yB=()=>{},bB=(e,t)=>(e=+e,Number.isFinite(e)?e:t),kd="abcdefghijklmnopqrstuvwxyz",_0="0123456789",w0={DIGIT:_0,ALPHA:kd,ALPHA_DIGIT:kd+kd.toUpperCase()+_0},CB=(e=16,t=w0.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function _B(e){return!!(e&&fr(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const wB=e=>{const t=new Array(10),n=(r,i)=>{if(bu(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const o=ss(r)?[]:{};return _a(r,(s,l)=>{const c=n(s,i+1);!Ca(c)&&(o[l]=c)}),t[i]=void 0,o}}return r};return n(e,0)},TB=Fr("AsyncFunction"),ae={isArray:ss,isArrayBuffer:h0,isBuffer:q$,isFormData:tB,isArrayBufferView:z$,isString:G$,isNumber:g0,isBoolean:Y$,isObject:bu,isPlainObject:Cu,isUndefined:Ca,isDate:X$,isFile:J$,isBlob:Z$,isRegExp:gB,isFunction:fr,isStream:eB,isURLSearchParams:nB,isTypedArray:cB,isFileList:Q$,forEach:_a,merge:Ad,extend:iB,trim:rB,stripBOM:oB,inherits:sB,toFlatObject:aB,kindOf:vu,kindOfTest:Fr,endsWith:lB,toArray:uB,forEachEntry:fB,matchAll:dB,isHTMLForm:pB,hasOwnProperty:b0,hasOwnProp:b0,reduceDescriptors:C0,freezeMethods:mB,toObjectSet:vB,toCamelCase:hB,noop:yB,toFiniteNumber:bB,findKey:m0,global:v0,isContextDefined:y0,ALPHABET:w0,generateString:CB,isSpecCompliantForm:_B,toJSONObject:wB,isAsyncFn:TB,isThenable:e=>e&&(bu(e)||fr(e))&&fr(e.then)&&fr(e.catch)};function Tt(e,t,n,r,i){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),i&&(this.response=i)}ae.inherits(Tt,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:ae.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const T0=Tt.prototype,x0={};["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=>{x0[e]={value:e}}),Object.defineProperties(Tt,x0),Object.defineProperty(T0,"isAxiosError",{value:!0}),Tt.from=(e,t,n,r,i,o)=>{const s=Object.create(T0);return ae.toFlatObject(e,s,function(c){return c!==Error.prototype},l=>l!=="isAxiosError"),Tt.call(s,e.message,t,n,r,i),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};const xB=null;function Ed(e){return ae.isPlainObject(e)||ae.isArray(e)}function S0(e){return ae.endsWith(e,"[]")?e.slice(0,-2):e}function A0(e,t,n){return e?e.concat(t).map(function(i,o){return i=S0(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function SB(e){return ae.isArray(e)&&!e.some(Ed)}const AB=ae.toFlatObject(ae,{},null,function(t){return/^is[A-Z]/.test(t)});function _u(e,t,n){if(!ae.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=ae.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(x,O){return!ae.isUndefined(O[x])});const r=n.metaTokens,i=n.visitor||h,o=n.dots,s=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&ae.isSpecCompliantForm(t);if(!ae.isFunction(i))throw new TypeError("visitor must be a function");function d(w){if(w===null)return"";if(ae.isDate(w))return w.toISOString();if(!c&&ae.isBlob(w))throw new Tt("Blob is not supported. Use a Buffer instead.");return ae.isArrayBuffer(w)||ae.isTypedArray(w)?c&&typeof Blob=="function"?new Blob([w]):Buffer.from(w):w}function h(w,x,O){let E=w;if(w&&!O&&typeof w=="object"){if(ae.endsWith(x,"{}"))x=r?x:x.slice(0,-2),w=JSON.stringify(w);else if(ae.isArray(w)&&SB(w)||(ae.isFileList(w)||ae.endsWith(x,"[]"))&&(E=ae.toArray(w)))return x=S0(x),E.forEach(function(te,D){!(ae.isUndefined(te)||te===null)&&t.append(s===!0?A0([x],D,o):s===null?x:x+"[]",d(te))}),!1}return Ed(w)?!0:(t.append(A0(O,x,o),d(w)),!1)}const p=[],y=Object.assign(AB,{defaultVisitor:h,convertValue:d,isVisitable:Ed});function C(w,x){if(!ae.isUndefined(w)){if(p.indexOf(w)!==-1)throw Error("Circular reference detected in "+x.join("."));p.push(w),ae.forEach(w,function(E,B){(!(ae.isUndefined(E)||E===null)&&i.call(t,E,ae.isString(B)?B.trim():B,x,y))===!0&&C(E,x?x.concat(B):[B])}),p.pop()}}if(!ae.isObject(e))throw new TypeError("data must be an object");return C(e),t}function k0(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Od(e,t){this._pairs=[],e&&_u(e,this,t)}const E0=Od.prototype;E0.append=function(t,n){this._pairs.push([t,n])},E0.toString=function(t){const n=t?function(r){return t.call(this,r,k0)}:k0;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function kB(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function O0(e,t,n){if(!t)return e;const r=n&&n.encode||kB,i=n&&n.serialize;let o;if(i?o=i(t,n):o=ae.isURLSearchParams(t)?t.toString():new Od(t,n).toString(r),o){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class EB{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){ae.forEach(this.handlers,function(r){r!==null&&t(r)})}}const L0=EB,I0={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},OB=typeof URLSearchParams<"u"?URLSearchParams:Od,LB=typeof FormData<"u"?FormData:null,IB=typeof Blob<"u"?Blob:null,PB=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),DB=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),$r={isBrowser:!0,classes:{URLSearchParams:OB,FormData:LB,Blob:IB},isStandardBrowserEnv:PB,isStandardBrowserWebWorkerEnv:DB,protocols:["http","https","file","blob","url","data"]};function RB(e,t){return _u(e,new $r.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return $r.isNode&&ae.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function NB(e){return ae.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function MB(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],t[o]=e[o];return t}function P0(e){function t(n,r,i,o){let s=n[o++];const l=Number.isFinite(+s),c=o>=n.length;return s=!s&&ae.isArray(i)?i.length:s,c?(ae.hasOwnProp(i,s)?i[s]=[i[s],r]:i[s]=r,!l):((!i[s]||!ae.isObject(i[s]))&&(i[s]=[]),t(n,r,i[s],o)&&ae.isArray(i[s])&&(i[s]=MB(i[s])),!l)}if(ae.isFormData(e)&&ae.isFunction(e.entries)){const n={};return ae.forEachEntry(e,(r,i)=>{t(NB(r),i,n,0)}),n}return null}const FB={"Content-Type":void 0};function $B(e,t,n){if(ae.isString(e))try{return(t||JSON.parse)(e),ae.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const wu={transitional:I0,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=ae.isObject(t);if(o&&ae.isHTMLForm(t)&&(t=new FormData(t)),ae.isFormData(t))return i&&i?JSON.stringify(P0(t)):t;if(ae.isArrayBuffer(t)||ae.isBuffer(t)||ae.isStream(t)||ae.isFile(t)||ae.isBlob(t))return t;if(ae.isArrayBufferView(t))return t.buffer;if(ae.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return RB(t,this.formSerializer).toString();if((l=ae.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return _u(l?{"files[]":t}:t,c&&new c,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),$B(t)):t}],transformResponse:[function(t){const n=this.transitional||wu.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(t&&ae.isString(t)&&(r&&!this.responseType||i)){const s=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(l){if(s)throw l.name==="SyntaxError"?Tt.from(l,Tt.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:$r.classes.FormData,Blob:$r.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};ae.forEach(["delete","get","head"],function(t){wu.headers[t]={}}),ae.forEach(["post","put","patch"],function(t){wu.headers[t]=ae.merge(FB)});const Ld=wu,BB=ae.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"]),HB=e=>{const t={};let n,r,i;return e&&e.split(`
|
||
`).forEach(function(s){i=s.indexOf(":"),n=s.substring(0,i).trim().toLowerCase(),r=s.substring(i+1).trim(),!(!n||t[n]&&BB[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},D0=Symbol("internals");function wa(e){return e&&String(e).trim().toLowerCase()}function Tu(e){return e===!1||e==null?e:ae.isArray(e)?e.map(Tu):String(e)}function jB(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 UB=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Id(e,t,n,r,i){if(ae.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!ae.isString(t)){if(ae.isString(r))return t.indexOf(r)!==-1;if(ae.isRegExp(r))return r.test(t)}}function WB(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function KB(e,t){const n=ae.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,o,s){return this[r].call(this,t,i,o,s)},configurable:!0})})}class xu{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(l,c,d){const h=wa(c);if(!h)throw new Error("header name must be a non-empty string");const p=ae.findKey(i,h);(!p||i[p]===void 0||d===!0||d===void 0&&i[p]!==!1)&&(i[p||c]=Tu(l))}const s=(l,c)=>ae.forEach(l,(d,h)=>o(d,h,c));return ae.isPlainObject(t)||t instanceof this.constructor?s(t,n):ae.isString(t)&&(t=t.trim())&&!UB(t)?s(HB(t),n):t!=null&&o(n,t,r),this}get(t,n){if(t=wa(t),t){const r=ae.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return jB(i);if(ae.isFunction(n))return n.call(this,i,r);if(ae.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=wa(t),t){const r=ae.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Id(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(s){if(s=wa(s),s){const l=ae.findKey(r,s);l&&(!n||Id(r,r[l],l,n))&&(delete r[l],i=!0)}}return ae.isArray(t)?t.forEach(o):o(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!t||Id(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return ae.forEach(this,(i,o)=>{const s=ae.findKey(r,o);if(s){n[s]=Tu(i),delete n[o];return}const l=t?WB(o):String(o).trim();l!==o&&delete n[o],n[l]=Tu(i),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return ae.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&ae.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(`
|
||
`)}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(i=>r.set(i)),r}static accessor(t){const r=(this[D0]=this[D0]={accessors:{}}).accessors,i=this.prototype;function o(s){const l=wa(s);r[l]||(KB(i,s),r[l]=!0)}return ae.isArray(t)?t.forEach(o):o(t),this}}xu.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ae.freezeMethods(xu.prototype),ae.freezeMethods(xu);const ti=xu;function Pd(e,t){const n=this||Ld,r=t||n,i=ti.from(r.headers);let o=r.data;return ae.forEach(e,function(l){o=l.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function R0(e){return!!(e&&e.__CANCEL__)}function Ta(e,t,n){Tt.call(this,e??"canceled",Tt.ERR_CANCELED,t,n),this.name="CanceledError"}ae.inherits(Ta,Tt,{__CANCEL__:!0});function VB(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Tt("Request failed with status code "+n.status,[Tt.ERR_BAD_REQUEST,Tt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const qB=$r.isStandardBrowserEnv?function(){return{write:function(n,r,i,o,s,l){const c=[];c.push(n+"="+encodeURIComponent(r)),ae.isNumber(i)&&c.push("expires="+new Date(i).toGMTString()),ae.isString(o)&&c.push("path="+o),ae.isString(s)&&c.push("domain="+s),l===!0&&c.push("secure"),document.cookie=c.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function zB(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function GB(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function N0(e,t){return e&&!zB(t)?GB(e,t):t}const YB=$r.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function i(o){let s=o;return t&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{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=i(window.location.href),function(s){const l=ae.isString(s)?i(s):s;return l.protocol===r.protocol&&l.host===r.host}}():function(){return function(){return!0}}();function XB(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function JB(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,s;return t=t!==void 0?t:1e3,function(c){const d=Date.now(),h=r[o];s||(s=d),n[i]=c,r[i]=d;let p=o,y=0;for(;p!==i;)y+=n[p++],p=p%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),d-s<t)return;const C=h&&d-h;return C?Math.round(y*1e3/C):void 0}}function M0(e,t){let n=0;const r=JB(50,250);return i=>{const o=i.loaded,s=i.lengthComputable?i.total:void 0,l=o-n,c=r(l),d=o<=s;n=o;const h={loaded:o,total:s,progress:s?o/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s&&d?(s-o)/c:void 0,event:i};h[t?"download":"upload"]=!0,e(h)}}const Su={http:xB,xhr:typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){let i=e.data;const o=ti.from(e.headers).normalize(),s=e.responseType;let l;function c(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}ae.isFormData(i)&&($r.isStandardBrowserEnv||$r.isStandardBrowserWebWorkerEnv?o.setContentType(!1):o.setContentType("multipart/form-data;",!1));let d=new XMLHttpRequest;if(e.auth){const C=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(C+":"+w))}const h=N0(e.baseURL,e.url);d.open(e.method.toUpperCase(),O0(h,e.params,e.paramsSerializer),!0),d.timeout=e.timeout;function p(){if(!d)return;const C=ti.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),x={data:!s||s==="text"||s==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:C,config:e,request:d};VB(function(E){n(E),c()},function(E){r(E),c()},x),d=null}if("onloadend"in d?d.onloadend=p:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(p)},d.onabort=function(){d&&(r(new Tt("Request aborted",Tt.ECONNABORTED,e,d)),d=null)},d.onerror=function(){r(new Tt("Network Error",Tt.ERR_NETWORK,e,d)),d=null},d.ontimeout=function(){let w=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const x=e.transitional||I0;e.timeoutErrorMessage&&(w=e.timeoutErrorMessage),r(new Tt(w,x.clarifyTimeoutError?Tt.ETIMEDOUT:Tt.ECONNABORTED,e,d)),d=null},$r.isStandardBrowserEnv){const C=(e.withCredentials||YB(h))&&e.xsrfCookieName&&qB.read(e.xsrfCookieName);C&&o.set(e.xsrfHeaderName,C)}i===void 0&&o.setContentType(null),"setRequestHeader"in d&&ae.forEach(o.toJSON(),function(w,x){d.setRequestHeader(x,w)}),ae.isUndefined(e.withCredentials)||(d.withCredentials=!!e.withCredentials),s&&s!=="json"&&(d.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&d.addEventListener("progress",M0(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",M0(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=C=>{d&&(r(!C||C.type?new Ta(null,e,d):C),d.abort(),d=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const y=XB(h);if(y&&$r.protocols.indexOf(y)===-1){r(new Tt("Unsupported protocol "+y+":",Tt.ERR_BAD_REQUEST,e));return}d.send(i||null)})}};ae.forEach(Su,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const ZB={getAdapter:e=>{e=ae.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let i=0;i<t&&(n=e[i],!(r=ae.isString(n)?Su[n.toLowerCase()]:n));i++);if(!r)throw r===!1?new Tt(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(ae.hasOwnProp(Su,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`);if(!ae.isFunction(r))throw new TypeError("adapter is not a function");return r},adapters:Su};function Dd(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ta(null,e)}function F0(e){return Dd(e),e.headers=ti.from(e.headers),e.data=Pd.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ZB.getAdapter(e.adapter||Ld.adapter)(e).then(function(r){return Dd(e),r.data=Pd.call(e,e.transformResponse,r),r.headers=ti.from(r.headers),r},function(r){return R0(r)||(Dd(e),r&&r.response&&(r.response.data=Pd.call(e,e.transformResponse,r.response),r.response.headers=ti.from(r.response.headers))),Promise.reject(r)})}const $0=e=>e instanceof ti?e.toJSON():e;function as(e,t){t=t||{};const n={};function r(d,h,p){return ae.isPlainObject(d)&&ae.isPlainObject(h)?ae.merge.call({caseless:p},d,h):ae.isPlainObject(h)?ae.merge({},h):ae.isArray(h)?h.slice():h}function i(d,h,p){if(ae.isUndefined(h)){if(!ae.isUndefined(d))return r(void 0,d,p)}else return r(d,h,p)}function o(d,h){if(!ae.isUndefined(h))return r(void 0,h)}function s(d,h){if(ae.isUndefined(h)){if(!ae.isUndefined(d))return r(void 0,d)}else return r(void 0,h)}function l(d,h,p){if(p in t)return r(d,h);if(p in e)return r(void 0,d)}const c={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l,headers:(d,h)=>i($0(d),$0(h),!0)};return ae.forEach(Object.keys(Object.assign({},e,t)),function(h){const p=c[h]||i,y=p(e[h],t[h],h);ae.isUndefined(y)&&p!==l||(n[h]=y)}),n}const B0="1.4.0",Rd={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Rd[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const H0={};Rd.transitional=function(t,n,r){function i(o,s){return"[Axios v"+B0+"] Transitional option '"+o+"'"+s+(r?". "+r:"")}return(o,s,l)=>{if(t===!1)throw new Tt(i(s," has been removed"+(n?" in "+n:"")),Tt.ERR_DEPRECATED);return n&&!H0[s]&&(H0[s]=!0,console.warn(i(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,s,l):!0}};function QB(e,t,n){if(typeof e!="object")throw new Tt("options must be an object",Tt.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],s=t[o];if(s){const l=e[o],c=l===void 0||s(l,o,e);if(c!==!0)throw new Tt("option "+o+" must be "+c,Tt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Tt("Unknown option "+o,Tt.ERR_BAD_OPTION)}}const Nd={assertOptions:QB,validators:Rd},xi=Nd.validators;class Au{constructor(t){this.defaults=t,this.interceptors={request:new L0,response:new L0}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=as(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&Nd.assertOptions(r,{silentJSONParsing:xi.transitional(xi.boolean),forcedJSONParsing:xi.transitional(xi.boolean),clarifyTimeoutError:xi.transitional(xi.boolean)},!1),i!=null&&(ae.isFunction(i)?n.paramsSerializer={serialize:i}:Nd.assertOptions(i,{encode:xi.function,serialize:xi.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s;s=o&&ae.merge(o.common,o[n.method]),s&&ae.forEach(["delete","get","head","post","put","patch","common"],w=>{delete o[w]}),n.headers=ti.concat(s,o);const l=[];let c=!0;this.interceptors.request.forEach(function(x){typeof x.runWhen=="function"&&x.runWhen(n)===!1||(c=c&&x.synchronous,l.unshift(x.fulfilled,x.rejected))});const d=[];this.interceptors.response.forEach(function(x){d.push(x.fulfilled,x.rejected)});let h,p=0,y;if(!c){const w=[F0.bind(this),void 0];for(w.unshift.apply(w,l),w.push.apply(w,d),y=w.length,h=Promise.resolve(n);p<y;)h=h.then(w[p++],w[p++]);return h}y=l.length;let C=n;for(p=0;p<y;){const w=l[p++],x=l[p++];try{C=w(C)}catch(O){x.call(this,O);break}}try{h=F0.call(this,C)}catch(w){return Promise.reject(w)}for(p=0,y=d.length;p<y;)h=h.then(d[p++],d[p++]);return h}getUri(t){t=as(this.defaults,t);const n=N0(t.baseURL,t.url);return O0(n,t.params,t.paramsSerializer)}}ae.forEach(["delete","get","head","options"],function(t){Au.prototype[t]=function(n,r){return this.request(as(r||{},{method:t,url:n,data:(r||{}).data}))}}),ae.forEach(["post","put","patch"],function(t){function n(r){return function(o,s,l){return this.request(as(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:s}))}}Au.prototype[t]=n(),Au.prototype[t+"Form"]=n(!0)});const ku=Au;class Md{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(i=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const s=new Promise(l=>{r.subscribe(l),o=l}).then(i);return s.cancel=function(){r.unsubscribe(o)},s},t(function(o,s,l){r.reason||(r.reason=new Ta(o,s,l),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)}static source(){let t;return{token:new Md(function(i){t=i}),cancel:t}}}const eH=Md;function tH(e){return function(n){return e.apply(null,n)}}function nH(e){return ae.isObject(e)&&e.isAxiosError===!0}const Fd={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(Fd).forEach(([e,t])=>{Fd[t]=e});const rH=Fd;function j0(e){const t=new ku(e),n=p0(ku.prototype.request,t);return ae.extend(n,ku.prototype,t,{allOwnKeys:!0}),ae.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return j0(as(e,i))},n}const sn=j0(Ld);sn.Axios=ku,sn.CanceledError=Ta,sn.CancelToken=eH,sn.isCancel=R0,sn.VERSION=B0,sn.toFormData=_u,sn.AxiosError=Tt,sn.Cancel=sn.CanceledError,sn.all=function(t){return Promise.all(t)},sn.spread=tH,sn.isAxiosError=nH,sn.mergeConfig=as,sn.AxiosHeaders=ti,sn.formToJSON=e=>P0(ae.isHTMLForm(e)?new FormData(e):e),sn.HttpStatusCode=rH,sn.default=sn;const iH=sn;class oH{constructor(){$b(this,"apiBaseURL","");this.apiBaseURL=me.apiUrl(),this.api=iH.create({baseURL:this.apiBaseURL,timeout:6e4,headers:{"Content-Type":"application/json"}})}async getVersion(){return(await this.api.get("/get_version")).data}async getRemoteVersions(t=1,n=100){return(await this.api.get("/get_remote_versions",{params:{page:t,per_page:n}})).data.versions}async getConfig(){return(await this.api.get("/get_config")).data}async installPackage(t,n){const r={timeout:1e7};return(await this.api.post("/install_package",{name:t,package:n},r)).data.result}async getExtensions(){return(await this.api.get("/get_extensions")).data.extensions}async tokenCounter(t,n){return(await this.api.post("/token_counter",{text:t,steps:n})).data}async getData(t){return(await this.api.get("/get_data",{params:{key:t}})).data.data}async getDatas(t){return typeof t=="object"&&(t=t.join(",")),(await this.api.get("/get_datas",{params:{keys:t}})).data.datas}async setData(t,n){return(await this.api.post("/set_data",{key:t,data:n})).data.success}async setDatas(t){return(await this.api.post("/set_datas",{datas:t})).data.success}async getDataListItem(t,n){return(await this.api.get("/get_data_list_item",{params:{key:t,index:n}})).data.item}async pushDataList(t,n){return(await this.api.post("/push_data_list",{key:t,item:n})).data.success}async popDataList(t){return(await this.api.post("/pop_data_list",{key:t})).data.item}async shiftDataList(t){return(await this.api.post("/shift_data_list",{key:t})).data.item}async removeDataList(t,n){return(await this.api.post("/remove_data_list",{key:t,index:n})).data.success}async clearDataList(t){return(await this.api.post("/clear_data_list",{key:t})).data.success}async getHistories(t){return(await this.api.get("/get_histories",{params:{type:t}})).data.histories}async getFavorites(t){return(await this.api.get("/get_favorites",{params:{type:t}})).data.favorites}async pushHistory(t,n,r,i=""){return(await this.api.post("/push_history",{type:t,tags:n,prompt:r,name:i})).data.success}async pushFavorite(t,n,r,i=""){return(await this.api.post("/push_favorite",{type:t,tags:n,prompt:r,name:i})).data.success}async getLatestHistory(t){return(await this.api.get("/get_latest_history",{params:{type:t}})).data.history}async setHistory(t,n,r,i,o){return(await this.api.post("/set_history",{type:t,id:n,tags:r,prompt:i,name:o})).data.success}async setHistoryName(t,n,r){return(await this.api.post("/set_history_name",{type:t,id:n,name:r})).data.success}async setFavoriteName(t,n,r){return(await this.api.post("/set_favorite_name",{type:t,id:n,name:r})).data.success}async doFavorite(t,n){return(await this.api.post("/dofavorite",{type:t,id:n})).data.success}async unFavorite(t,n){return(await this.api.post("/unfavorite",{type:t,id:n})).data.success}async deleteHistory(t,n){return(await this.api.post("/delete_history",{type:t,id:n})).data.success}async deleteHistories(t){return(await this.api.post("/delete_histories",{type:t})).data.success}async translate(t,n,r,i,o={}){let s=(await this.api.post("/translate",{text:t,from_lang:n,to_lang:r,api:i,api_config:o})).data;return s.translated_text&&(s.translated_text=me.unescapeHtml(s.translated_text)),s}async translates(t,n,r,i,o={}){let s=(await this.api.post("/translates",{texts:t,from_lang:n,to_lang:r,api:i,api_config:o})).data;return s.translated_text&&s.translated_text.forEach((l,c)=>{s.translated_text[c]=me.unescapeHtml(l)}),s}async getCSVs(){return(await this.api.get("/get_csvs")).data.csvs}async getCSV(t){return(await this.api.get("/get_csv",{params:{key:t}})).data}async styles(t,n=""){return(await this.api.get("/styles",{params:{file:t,hash:n}})).data}async getExtensionCssList(){return(await this.api.get("/get_extension_css_list")).data.css_list}async getExtraNetworks(){return(await this.api.get("/get_extra_networks")).data.extra_networks}async genOpenAI(t,n){return(await this.api.post("/gen_openai",{messages:t,api_config:n})).data}async mbart50Initialize(){const t={timeout:1e11};return(await this.api.post("/mbart50_initialize",{},t)).data}async getGroupTags(t){return(await this.api.get("/get_group_tags",{params:{lang:t}})).data.tags}}const sH={data(){return{gradioAPI:null}},beforeMount(){this.gradioAPI=new oH},methods:{loadExtraNetworks(){this.gradioAPI.getExtraNetworks().then(e=>{e&&(this.extraNetworks=e,e.forEach(t=>{if(t.name==="textual inversion"){let n=[];t.items.forEach(r=>{n.push(r.name)}),this.embeddings=n}else if(t.name==="lora"||t.name==="lycoris"){let n=[];t.items.forEach(r=>{n.push(r.name),r.output_name&&n.push(r.output_name)}),n=[...new Set(n)],t.name==="lora"?this.loras=n:this.lycos=n}}))})},getExtraNetworkFullName(e,t="lora"){if(typeof this.extraNetworks!="object")return e;for(let n of this.extraNetworks)if(n.name===t){for(let r of n.items)if(r.name===e||r.output_name===e)return!r.civitai_info||!r.civitai_info.name?e:r.civitai_info.model&&r.civitai_info.model.name&&r.civitai_info.model.name!==r.civitai_info.name?"["+r.civitai_info.name+"] "+r.civitai_info.model.name:r.civitai_info.name}return e},loraExists(e){if(typeof this.loras!="object")return e;for(let t in this.loras)if(this.loras[t]===e)return this.loras[t];return!1},lycoExists(e){if(typeof this.lycos!="object")return e;for(let t in this.lycos)if(this.lycos[t]===e)return this.lycos[t];return!1},embeddingExists(e){if(typeof this.embeddings!="object")return e;for(let t in this.embeddings)if(this.embeddings[t]===e)return this.embeddings[t];return!1}}};var aH="tippy-box",U0="tippy-content",lH="tippy-backdrop",W0="tippy-arrow",K0="tippy-svg-arrow",eo={passive:!0,capture:!0},V0=function(){return document.body};function $d(e,t,n){if(Array.isArray(e)){var r=e[t];return r??(Array.isArray(n)?n[t]:n)}return e}function Bd(e,t){var n={}.toString.call(e);return n.indexOf("[object")===0&&n.indexOf(t+"]")>-1}function q0(e,t){return typeof e=="function"?e.apply(void 0,t):e}function z0(e,t){if(t===0)return e;var n;return function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)}}function uH(e){return e.split(/\s+/).filter(Boolean)}function ls(e){return[].concat(e)}function G0(e,t){e.indexOf(t)===-1&&e.push(t)}function cH(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function fH(e){return e.split("-")[0]}function Eu(e){return[].slice.call(e)}function Y0(e){return Object.keys(e).reduce(function(t,n){return e[n]!==void 0&&(t[n]=e[n]),t},{})}function xa(){return document.createElement("div")}function Ou(e){return["Element","Fragment"].some(function(t){return Bd(e,t)})}function dH(e){return Bd(e,"NodeList")}function pH(e){return Bd(e,"MouseEvent")}function hH(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function gH(e){return Ou(e)?[e]:dH(e)?Eu(e):Array.isArray(e)?e:Eu(document.querySelectorAll(e))}function Hd(e,t){e.forEach(function(n){n&&(n.style.transitionDuration=t+"ms")})}function X0(e,t){e.forEach(function(n){n&&n.setAttribute("data-state",t)})}function mH(e){var t,n=ls(e),r=n[0];return r!=null&&(t=r.ownerDocument)!=null&&t.body?r.ownerDocument:document}function vH(e,t){var n=t.clientX,r=t.clientY;return e.every(function(i){var o=i.popperRect,s=i.popperState,l=i.props,c=l.interactiveBorder,d=fH(s.placement),h=s.modifiersData.offset;if(!h)return!0;var p=d==="bottom"?h.top.y:0,y=d==="top"?h.bottom.y:0,C=d==="right"?h.left.x:0,w=d==="left"?h.right.x:0,x=o.top-r+p>c,O=r-o.bottom-y>c,E=o.left-n+C>c,B=n-o.right-w>c;return x||O||E||B})}function jd(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(i){e[r](i,n)})}function J0(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=n.getRootNode==null||(r=n.getRootNode())==null?void 0:r.host}return!1}var Br={isTouch:!1},Z0=0;function yH(){Br.isTouch||(Br.isTouch=!0,window.performance&&document.addEventListener("mousemove",Q0))}function Q0(){var e=performance.now();e-Z0<20&&(Br.isTouch=!1,document.removeEventListener("mousemove",Q0)),Z0=e}function bH(){var e=document.activeElement;if(hH(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function CH(){document.addEventListener("touchstart",yH,eo),window.addEventListener("blur",bH)}var _H=typeof window<"u"&&typeof document<"u",wH=_H?!!window.msCrypto:!1,TH={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},xH={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},wr=Object.assign({appendTo:V0,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},TH,xH),SH=Object.keys(wr),AH=function(t){var n=Object.keys(t);n.forEach(function(r){wr[r]=t[r]})};function eb(e){var t=e.plugins||[],n=t.reduce(function(r,i){var o=i.name,s=i.defaultValue;if(o){var l;r[o]=e[o]!==void 0?e[o]:(l=wr[o])!=null?l:s}return r},{});return Object.assign({},e,n)}function kH(e,t){var n=t?Object.keys(eb(Object.assign({},wr,{plugins:t}))):SH,r=n.reduce(function(i,o){var s=(e.getAttribute("data-tippy-"+o)||"").trim();if(!s)return i;if(o==="content")i[o]=s;else try{i[o]=JSON.parse(s)}catch{i[o]=s}return i},{});return r}function tb(e,t){var n=Object.assign({},t,{content:q0(t.content,[e])},t.ignoreAttributes?{}:kH(e,t.plugins));return n.aria=Object.assign({},wr.aria,n.aria),n.aria={expanded:n.aria.expanded==="auto"?t.interactive:n.aria.expanded,content:n.aria.content==="auto"?t.interactive?null:"describedby":n.aria.content},n}var EH=function(){return"innerHTML"};function Ud(e,t){e[EH()]=t}function nb(e){var t=xa();return e===!0?t.className=W0:(t.className=K0,Ou(e)?t.appendChild(e):Ud(t,e)),t}function rb(e,t){Ou(t.content)?(Ud(e,""),e.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?Ud(e,t.content):e.textContent=t.content)}function Wd(e){var t=e.firstElementChild,n=Eu(t.children);return{box:t,content:n.find(function(r){return r.classList.contains(U0)}),arrow:n.find(function(r){return r.classList.contains(W0)||r.classList.contains(K0)}),backdrop:n.find(function(r){return r.classList.contains(lH)})}}function ib(e){var t=xa(),n=xa();n.className=aH,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=xa();r.className=U0,r.setAttribute("data-state","hidden"),rb(r,e.props),t.appendChild(n),n.appendChild(r),i(e.props,e.props);function i(o,s){var l=Wd(t),c=l.box,d=l.content,h=l.arrow;s.theme?c.setAttribute("data-theme",s.theme):c.removeAttribute("data-theme"),typeof s.animation=="string"?c.setAttribute("data-animation",s.animation):c.removeAttribute("data-animation"),s.inertia?c.setAttribute("data-inertia",""):c.removeAttribute("data-inertia"),c.style.maxWidth=typeof s.maxWidth=="number"?s.maxWidth+"px":s.maxWidth,s.role?c.setAttribute("role",s.role):c.removeAttribute("role"),(o.content!==s.content||o.allowHTML!==s.allowHTML)&&rb(d,e.props),s.arrow?h?o.arrow!==s.arrow&&(c.removeChild(h),c.appendChild(nb(s.arrow))):c.appendChild(nb(s.arrow)):h&&c.removeChild(h)}return{popper:t,onUpdate:i}}ib.$$tippy=!0;var OH=1,Lu=[],Kd=[];function LH(e,t){var n=tb(e,Object.assign({},wr,eb(Y0(t)))),r,i,o,s=!1,l=!1,c=!1,d=!1,h,p,y,C=[],w=z0(z,n.interactiveDebounce),x,O=OH++,E=null,B=cH(n.plugins),te={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},D={id:O,reference:e,popper:xa(),popperInstance:E,props:n,state:te,plugins:B,clearDelayTimeouts:qe,setProps:ft,setContent:st,show:Ct,hide:Ft,hideWithInteractivity:an,enable:Ne,disable:Ae,unmount:Ht,destroy:fn};if(!n.render)return D;var we=n.render(D),m=we.popper,ue=we.onUpdate;m.setAttribute("data-tippy-root",""),m.id="tippy-"+D.id,D.popper=m,e._tippy=D,m._tippy=D;var I=B.map(function(Z){return Z.fn(D)}),A=e.hasAttribute("aria-expanded");return gt(),nt(),q(),ie("onCreate",[D]),n.showOnCreate&&Se(),m.addEventListener("mouseenter",function(){D.props.interactive&&D.state.isVisible&&D.clearDelayTimeouts()}),m.addEventListener("mouseleave",function(){D.props.interactive&&D.props.trigger.indexOf("mouseenter")>=0&&ve().addEventListener("mousemove",w)}),D;function P(){var Z=D.props.touch;return Array.isArray(Z)?Z:[Z,0]}function j(){return P()[0]==="hold"}function Q(){var Z;return!!((Z=D.props.render)!=null&&Z.$$tippy)}function X(){return x||e}function ve(){var Z=X().parentNode;return Z?mH(Z):document}function je(){return Wd(m)}function Re(Z){return D.state.isMounted&&!D.state.isVisible||Br.isTouch||h&&h.type==="focus"?0:$d(D.props.delay,Z?0:1,wr.delay)}function q(Z){Z===void 0&&(Z=!1),m.style.pointerEvents=D.props.interactive&&!Z?"":"none",m.style.zIndex=""+D.props.zIndex}function ie(Z,De,Fe){if(Fe===void 0&&(Fe=!0),I.forEach(function(vt){vt[Z]&&vt[Z].apply(vt,De)}),Fe){var it;(it=D.props)[Z].apply(it,De)}}function ce(){var Z=D.props.aria;if(Z.content){var De="aria-"+Z.content,Fe=m.id,it=ls(D.props.triggerTarget||e);it.forEach(function(vt){var gn=vt.getAttribute(De);if(D.state.isVisible)vt.setAttribute(De,gn?gn+" "+Fe:Fe);else{var Ln=gn&&gn.replace(Fe,"").trim();Ln?vt.setAttribute(De,Ln):vt.removeAttribute(De)}})}}function nt(){if(!(A||!D.props.aria.expanded)){var Z=ls(D.props.triggerTarget||e);Z.forEach(function(De){D.props.interactive?De.setAttribute("aria-expanded",D.state.isVisible&&De===X()?"true":"false"):De.removeAttribute("aria-expanded")})}}function Ve(){ve().removeEventListener("mousemove",w),Lu=Lu.filter(function(Z){return Z!==w})}function ne(Z){if(!(Br.isTouch&&(c||Z.type==="mousedown"))){var De=Z.composedPath&&Z.composedPath()[0]||Z.target;if(!(D.props.interactive&&J0(m,De))){if(ls(D.props.triggerTarget||e).some(function(Fe){return J0(Fe,De)})){if(Br.isTouch||D.state.isVisible&&D.props.trigger.indexOf("click")>=0)return}else ie("onClickOutside",[D,Z]);D.props.hideOnClick===!0&&(D.clearDelayTimeouts(),D.hide(),l=!0,setTimeout(function(){l=!1}),D.state.isMounted||Oe())}}}function he(){c=!0}function _e(){c=!1}function ke(){var Z=ve();Z.addEventListener("mousedown",ne,!0),Z.addEventListener("touchend",ne,eo),Z.addEventListener("touchstart",_e,eo),Z.addEventListener("touchmove",he,eo)}function Oe(){var Z=ve();Z.removeEventListener("mousedown",ne,!0),Z.removeEventListener("touchend",ne,eo),Z.removeEventListener("touchstart",_e,eo),Z.removeEventListener("touchmove",he,eo)}function Be(Z,De){Le(Z,function(){!D.state.isVisible&&m.parentNode&&m.parentNode.contains(m)&&De()})}function Xe(Z,De){Le(Z,De)}function Le(Z,De){var Fe=je().box;function it(vt){vt.target===Fe&&(jd(Fe,"remove",it),De())}if(Z===0)return De();jd(Fe,"remove",p),jd(Fe,"add",it),p=it}function rt(Z,De,Fe){Fe===void 0&&(Fe=!1);var it=ls(D.props.triggerTarget||e);it.forEach(function(vt){vt.addEventListener(Z,De,Fe),C.push({node:vt,eventType:Z,handler:De,options:Fe})})}function gt(){j()&&(rt("touchstart",F,{passive:!0}),rt("touchend",ee,{passive:!0})),uH(D.props.trigger).forEach(function(Z){if(Z!=="manual")switch(rt(Z,F),Z){case"mouseenter":rt("mouseleave",ee);break;case"focus":rt(wH?"focusout":"blur",W);break;case"focusin":rt("focusout",W);break}})}function R(){C.forEach(function(Z){var De=Z.node,Fe=Z.eventType,it=Z.handler,vt=Z.options;De.removeEventListener(Fe,it,vt)}),C=[]}function F(Z){var De,Fe=!1;if(!(!D.state.isEnabled||Y(Z)||l)){var it=((De=h)==null?void 0:De.type)==="focus";h=Z,x=Z.currentTarget,nt(),!D.state.isVisible&&pH(Z)&&Lu.forEach(function(vt){return vt(Z)}),Z.type==="click"&&(D.props.trigger.indexOf("mouseenter")<0||s)&&D.props.hideOnClick!==!1&&D.state.isVisible?Fe=!0:Se(Z),Z.type==="click"&&(s=!Fe),Fe&&!it&&Ce(Z)}}function z(Z){var De=Z.target,Fe=X().contains(De)||m.contains(De);if(!(Z.type==="mousemove"&&Fe)){var it=se().concat(m).map(function(vt){var gn,Ln=vt._tippy,ni=(gn=Ln.popperInstance)==null?void 0:gn.state;return ni?{popperRect:vt.getBoundingClientRect(),popperState:ni,props:n}:null}).filter(Boolean);vH(it,Z)&&(Ve(),Ce(Z))}}function ee(Z){var De=Y(Z)||D.props.trigger.indexOf("click")>=0&&s;if(!De){if(D.props.interactive){D.hideWithInteractivity(Z);return}Ce(Z)}}function W(Z){D.props.trigger.indexOf("focusin")<0&&Z.target!==X()||D.props.interactive&&Z.relatedTarget&&m.contains(Z.relatedTarget)||Ce(Z)}function Y(Z){return Br.isTouch?j()!==Z.type.indexOf("touch")>=0:!1}function be(){fe();var Z=D.props,De=Z.popperOptions,Fe=Z.placement,it=Z.offset,vt=Z.getReferenceClientRect,gn=Z.moveTransition,Ln=Q()?Wd(m).arrow:null,ni=vt?{getBoundingClientRect:vt,contextElement:vt.contextElement||X()}:e,ri={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(us){var Hr=us.state;if(Q()){var cs=je(),ka=cs.box;["placement","reference-hidden","escaped"].forEach(function(fs){fs==="placement"?ka.setAttribute("data-placement",Hr.placement):Hr.attributes.popper["data-popper-"+fs]?ka.setAttribute("data-"+fs,""):ka.removeAttribute("data-"+fs)}),Hr.attributes.popper={}}}},Hn=[{name:"offset",options:{offset:it}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!gn}},ri];Q()&&Ln&&Hn.push({name:"arrow",options:{element:Ln,padding:3}}),Hn.push.apply(Hn,(De==null?void 0:De.modifiers)||[]),D.popperInstance=Jg(ni,m,Object.assign({},De,{placement:Fe,onFirstUpdate:y,modifiers:Hn}))}function fe(){D.popperInstance&&(D.popperInstance.destroy(),D.popperInstance=null)}function ge(){var Z=D.props.appendTo,De,Fe=X();D.props.interactive&&Z===V0||Z==="parent"?De=Fe.parentNode:De=q0(Z,[Fe]),De.contains(m)||De.appendChild(m),D.state.isMounted=!0,be()}function se(){return Eu(m.querySelectorAll("[data-tippy-root]"))}function Se(Z){D.clearDelayTimeouts(),Z&&ie("onTrigger",[D,Z]),ke();var De=Re(!0),Fe=P(),it=Fe[0],vt=Fe[1];Br.isTouch&&it==="hold"&&vt&&(De=vt),De?r=setTimeout(function(){D.show()},De):D.show()}function Ce(Z){if(D.clearDelayTimeouts(),ie("onUntrigger",[D,Z]),!D.state.isVisible){Oe();return}if(!(D.props.trigger.indexOf("mouseenter")>=0&&D.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(Z.type)>=0&&s)){var De=Re(!1);De?i=setTimeout(function(){D.state.isVisible&&D.hide()},De):o=requestAnimationFrame(function(){D.hide()})}}function Ne(){D.state.isEnabled=!0}function Ae(){D.hide(),D.state.isEnabled=!1}function qe(){clearTimeout(r),clearTimeout(i),cancelAnimationFrame(o)}function ft(Z){if(!D.state.isDestroyed){ie("onBeforeUpdate",[D,Z]),R();var De=D.props,Fe=tb(e,Object.assign({},De,Y0(Z),{ignoreAttributes:!0}));D.props=Fe,gt(),De.interactiveDebounce!==Fe.interactiveDebounce&&(Ve(),w=z0(z,Fe.interactiveDebounce)),De.triggerTarget&&!Fe.triggerTarget?ls(De.triggerTarget).forEach(function(it){it.removeAttribute("aria-expanded")}):Fe.triggerTarget&&e.removeAttribute("aria-expanded"),nt(),q(),ue&&ue(De,Fe),D.popperInstance&&(be(),se().forEach(function(it){requestAnimationFrame(it._tippy.popperInstance.forceUpdate)})),ie("onAfterUpdate",[D,Z])}}function st(Z){D.setProps({content:Z})}function Ct(){var Z=D.state.isVisible,De=D.state.isDestroyed,Fe=!D.state.isEnabled,it=Br.isTouch&&!D.props.touch,vt=$d(D.props.duration,0,wr.duration);if(!(Z||De||Fe||it)&&!X().hasAttribute("disabled")&&(ie("onShow",[D],!1),D.props.onShow(D)!==!1)){if(D.state.isVisible=!0,Q()&&(m.style.visibility="visible"),q(),ke(),D.state.isMounted||(m.style.transition="none"),Q()){var gn=je(),Ln=gn.box,ni=gn.content;Hd([Ln,ni],0)}y=function(){var Hn;if(!(!D.state.isVisible||d)){if(d=!0,m.offsetHeight,m.style.transition=D.props.moveTransition,Q()&&D.props.animation){var Aa=je(),us=Aa.box,Hr=Aa.content;Hd([us,Hr],vt),X0([us,Hr],"visible")}ce(),nt(),G0(Kd,D),(Hn=D.popperInstance)==null||Hn.forceUpdate(),ie("onMount",[D]),D.props.animation&&Q()&&Xe(vt,function(){D.state.isShown=!0,ie("onShown",[D])})}},ge()}}function Ft(){var Z=!D.state.isVisible,De=D.state.isDestroyed,Fe=!D.state.isEnabled,it=$d(D.props.duration,1,wr.duration);if(!(Z||De||Fe)&&(ie("onHide",[D],!1),D.props.onHide(D)!==!1)){if(D.state.isVisible=!1,D.state.isShown=!1,d=!1,s=!1,Q()&&(m.style.visibility="hidden"),Ve(),Oe(),q(!0),Q()){var vt=je(),gn=vt.box,Ln=vt.content;D.props.animation&&(Hd([gn,Ln],it),X0([gn,Ln],"hidden"))}ce(),nt(),D.props.animation?Q()&&Be(it,D.unmount):D.unmount()}}function an(Z){ve().addEventListener("mousemove",w),G0(Lu,w),w(Z)}function Ht(){D.state.isVisible&&D.hide(),D.state.isMounted&&(fe(),se().forEach(function(Z){Z._tippy.unmount()}),m.parentNode&&m.parentNode.removeChild(m),Kd=Kd.filter(function(Z){return Z!==D}),D.state.isMounted=!1,ie("onHidden",[D]))}function fn(){D.state.isDestroyed||(D.clearDelayTimeouts(),D.unmount(),R(),delete e._tippy,D.state.isDestroyed=!0,ie("onDestroy",[D]))}}function Sa(e,t){t===void 0&&(t={});var n=wr.plugins.concat(t.plugins||[]);CH();var r=Object.assign({},t,{plugins:n}),i=gH(e),o=i.reduce(function(s,l){var c=l&&LH(l,r);return c&&s.push(c),s},[]);return Ou(e)?o[0]:o}Sa.defaultProps=wr,Sa.setDefaultProps=AH,Sa.currentInput=Br,Object.assign({},Ng,{effect:function(t){var n=t.state,r={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(n.elements.popper.style,r.popper),n.styles=r,n.elements.arrow&&Object.assign(n.elements.arrow.style,r.arrow)}}),Sa.setDefaultProps({render:ib});const{toClipboard:IH}=K$();onUiLoaded(()=>{const e=document.createElement("div");e.id="physton-prompt-all-in-one",me.gradioApp().appendChild(e);const t=a1($$);t.config.globalProperties.$toastr=j$,t.config.globalProperties.$copyText=IH,t.config.globalProperties.$tippyList=[],t.mixin(sH),t.directive("tooltip",{mounted(n,r){n.setAttribute("data-tippy-content",r.value);let i=n.getAttribute("unaffected");i=i===null?!1:i==="true";const o=Sa(n,{placement:"bottom",theme:"light",allowHTML:!0,onCreate(s,l){if(i)return;localStorage.getItem("phystonPromptEnableTooltip")==="true"||s.disable()}});n.$tippyInstance=o,i||t.config.globalProperties.$tippyList.push(o)},updated(n,r){n.setAttribute("data-tippy-content",r.value),n.$tippyInstance.setContent(r.value)}}),t.mount(e)})});
|
||
//# sourceMappingURL=main.entry.js.map
|