mirror of
https://github.com/Physton/sd-webui-prompt-all-in-one.git
synced 2026-01-26 11:19:55 +00:00
135 lines
749 KiB
JavaScript
135 lines
749 KiB
JavaScript
(function(_n){typeof define=="function"&&define.amd?define(_n):_n()})(function(){"use strict";var fc=Object.defineProperty;var pc=(_n,Cn,$n)=>Cn in _n?fc(_n,Cn,{enumerable:!0,configurable:!0,writable:!0,value:$n}):_n[Cn]=$n;var wl=(_n,Cn,$n)=>(pc(_n,typeof Cn!="symbol"?Cn+"":Cn,$n),$n);function makeMap(_n,Cn){const $n=Object.create(null),Nn=_n.split(",");for(let Bn=0;Bn<Nn.length;Bn++)$n[Nn[Bn]]=!0;return Cn?Bn=>!!$n[Bn.toLowerCase()]:Bn=>!!$n[Bn]}const EMPTY_OBJ={},EMPTY_ARR=[],NOOP=()=>{},NO=()=>!1,onRE=/^on[^a-z]/,isOn=_n=>onRE.test(_n),isModelListener=_n=>_n.startsWith("onUpdate:"),extend$3=Object.assign,remove=(_n,Cn)=>{const $n=_n.indexOf(Cn);$n>-1&&_n.splice($n,1)},hasOwnProperty$b=Object.prototype.hasOwnProperty,hasOwn=(_n,Cn)=>hasOwnProperty$b.call(_n,Cn),isArray$3=Array.isArray,isMap=_n=>toTypeString(_n)==="[object Map]",isSet=_n=>toTypeString(_n)==="[object Set]",isDate$1=_n=>toTypeString(_n)==="[object Date]",isFunction$2=_n=>typeof _n=="function",isString$1=_n=>typeof _n=="string",isSymbol=_n=>typeof _n=="symbol",isObject$5=_n=>_n!==null&&typeof _n=="object",isPromise=_n=>(isObject$5(_n)||isFunction$2(_n))&&isFunction$2(_n.then)&&isFunction$2(_n.catch),objectToString$1=Object.prototype.toString,toTypeString=_n=>objectToString$1.call(_n),toRawType=_n=>toTypeString(_n).slice(8,-1),isPlainObject$3=_n=>toTypeString(_n)==="[object Object]",isIntegerKey=_n=>isString$1(_n)&&_n!=="NaN"&&_n[0]!=="-"&&""+parseInt(_n,10)===_n,isReservedProp=makeMap(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),cacheStringFunction=_n=>{const Cn=Object.create(null);return $n=>Cn[$n]||(Cn[$n]=_n($n))},camelizeRE=/-(\w)/g,camelize=cacheStringFunction(_n=>_n.replace(camelizeRE,(Cn,$n)=>$n?$n.toUpperCase():"")),hyphenateRE=/\B([A-Z])/g,hyphenate=cacheStringFunction(_n=>_n.replace(hyphenateRE,"-$1").toLowerCase()),capitalize=cacheStringFunction(_n=>_n.charAt(0).toUpperCase()+_n.slice(1)),toHandlerKey=cacheStringFunction(_n=>_n?`on${capitalize(_n)}`:""),hasChanged=(_n,Cn)=>!Object.is(_n,Cn),invokeArrayFns=(_n,Cn)=>{for(let $n=0;$n<_n.length;$n++)_n[$n](Cn)},def=(_n,Cn,$n)=>{Object.defineProperty(_n,Cn,{configurable:!0,enumerable:!1,value:$n})},looseToNumber=_n=>{const Cn=parseFloat(_n);return isNaN(Cn)?_n:Cn},toNumber=_n=>{const Cn=isString$1(_n)?Number(_n):NaN;return isNaN(Cn)?_n:Cn};let _globalThis;const getGlobalThis=()=>_globalThis||(_globalThis=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function normalizeStyle(_n){if(isArray$3(_n)){const Cn={};for(let $n=0;$n<_n.length;$n++){const Nn=_n[$n],Bn=isString$1(Nn)?parseStringStyle(Nn):normalizeStyle(Nn);if(Bn)for(const Ln in Bn)Cn[Ln]=Bn[Ln]}return Cn}else if(isString$1(_n)||isObject$5(_n))return _n}const listDelimiterRE=/;(?![^(]*\))/g,propertyDelimiterRE=/:([^]+)/,styleCommentRE=/\/\*[^]*?\*\//g;function parseStringStyle(_n){const Cn={};return _n.replace(styleCommentRE,"").split(listDelimiterRE).forEach($n=>{if($n){const Nn=$n.split(propertyDelimiterRE);Nn.length>1&&(Cn[Nn[0].trim()]=Nn[1].trim())}}),Cn}function normalizeClass(_n){let Cn="";if(isString$1(_n))Cn=_n;else if(isArray$3(_n))for(let $n=0;$n<_n.length;$n++){const Nn=normalizeClass(_n[$n]);Nn&&(Cn+=Nn+" ")}else if(isObject$5(_n))for(const $n in _n)_n[$n]&&(Cn+=$n+" ");return Cn.trim()}const specialBooleanAttrs="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",isSpecialBooleanAttr=makeMap(specialBooleanAttrs);function includeBooleanAttr(_n){return!!_n||_n===""}function looseCompareArrays(_n,Cn){if(_n.length!==Cn.length)return!1;let $n=!0;for(let Nn=0;$n&&Nn<_n.length;Nn++)$n=looseEqual(_n[Nn],Cn[Nn]);return $n}function looseEqual(_n,Cn){if(_n===Cn)return!0;let $n=isDate$1(_n),Nn=isDate$1(Cn);if($n||Nn)return $n&&Nn?_n.getTime()===Cn.getTime():!1;if($n=isSymbol(_n),Nn=isSymbol(Cn),$n||Nn)return _n===Cn;if($n=isArray$3(_n),Nn=isArray$3(Cn),$n||Nn)return $n&&Nn?looseCompareArrays(_n,Cn):!1;if($n=isObject$5(_n),Nn=isObject$5(Cn),$n||Nn){if(!$n||!Nn)return!1;const Bn=Object.keys(_n).length,Ln=Object.keys(Cn).length;if(Bn!==Ln)return!1;for(const In in _n){const Pn=_n.hasOwnProperty(In),Dn=Cn.hasOwnProperty(In);if(Pn&&!Dn||!Pn&&Dn||!looseEqual(_n[In],Cn[In]))return!1}}return String(_n)===String(Cn)}function looseIndexOf(_n,Cn){return _n.findIndex($n=>looseEqual($n,Cn))}const toDisplayString=_n=>isString$1(_n)?_n:_n==null?"":isArray$3(_n)||isObject$5(_n)&&(_n.toString===objectToString$1||!isFunction$2(_n.toString))?JSON.stringify(_n,replacer,2):String(_n),replacer=(_n,Cn)=>Cn&&Cn.__v_isRef?replacer(_n,Cn.value):isMap(Cn)?{[`Map(${Cn.size})`]:[...Cn.entries()].reduce(($n,[Nn,Bn])=>($n[`${Nn} =>`]=Bn,$n),{})}:isSet(Cn)?{[`Set(${Cn.size})`]:[...Cn.values()]}:isObject$5(Cn)&&!isArray$3(Cn)&&!isPlainObject$3(Cn)?String(Cn):Cn;let activeEffectScope;class EffectScope{constructor(Cn=!1){this.detached=Cn,this._active=!0,this.effects=[],this.cleanups=[],this.parent=activeEffectScope,!Cn&&activeEffectScope&&(this.index=(activeEffectScope.scopes||(activeEffectScope.scopes=[])).push(this)-1)}get active(){return this._active}run(Cn){if(this._active){const $n=activeEffectScope;try{return activeEffectScope=this,Cn()}finally{activeEffectScope=$n}}}on(){activeEffectScope=this}off(){activeEffectScope=this.parent}stop(Cn){if(this._active){let $n,Nn;for($n=0,Nn=this.effects.length;$n<Nn;$n++)this.effects[$n].stop();for($n=0,Nn=this.cleanups.length;$n<Nn;$n++)this.cleanups[$n]();if(this.scopes)for($n=0,Nn=this.scopes.length;$n<Nn;$n++)this.scopes[$n].stop(!0);if(!this.detached&&this.parent&&!Cn){const Bn=this.parent.scopes.pop();Bn&&Bn!==this&&(this.parent.scopes[this.index]=Bn,Bn.index=this.index)}this.parent=void 0,this._active=!1}}}function recordEffectScope(_n,Cn=activeEffectScope){Cn&&Cn.active&&Cn.effects.push(_n)}function getCurrentScope(){return activeEffectScope}function onScopeDispose(_n){activeEffectScope&&activeEffectScope.cleanups.push(_n)}const createDep=_n=>{const Cn=new Set(_n);return Cn.w=0,Cn.n=0,Cn},wasTracked=_n=>(_n.w&trackOpBit)>0,newTracked=_n=>(_n.n&trackOpBit)>0,initDepMarkers=({deps:_n})=>{if(_n.length)for(let Cn=0;Cn<_n.length;Cn++)_n[Cn].w|=trackOpBit},finalizeDepMarkers=_n=>{const{deps:Cn}=_n;if(Cn.length){let $n=0;for(let Nn=0;Nn<Cn.length;Nn++){const Bn=Cn[Nn];wasTracked(Bn)&&!newTracked(Bn)?Bn.delete(_n):Cn[$n++]=Bn,Bn.w&=~trackOpBit,Bn.n&=~trackOpBit}Cn.length=$n}},targetMap=new WeakMap;let effectTrackDepth=0,trackOpBit=1;const maxMarkerBits=30;let activeEffect;const ITERATE_KEY=Symbol(""),MAP_KEY_ITERATE_KEY=Symbol("");class ReactiveEffect{constructor(Cn,$n=null,Nn){this.fn=Cn,this.scheduler=$n,this.active=!0,this.deps=[],this.parent=void 0,recordEffectScope(this,Nn)}run(){if(!this.active)return this.fn();let Cn=activeEffect,$n=shouldTrack;for(;Cn;){if(Cn===this)return;Cn=Cn.parent}try{return this.parent=activeEffect,activeEffect=this,shouldTrack=!0,trackOpBit=1<<++effectTrackDepth,effectTrackDepth<=maxMarkerBits?initDepMarkers(this):cleanupEffect(this),this.fn()}finally{effectTrackDepth<=maxMarkerBits&&finalizeDepMarkers(this),trackOpBit=1<<--effectTrackDepth,activeEffect=this.parent,shouldTrack=$n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){activeEffect===this?this.deferStop=!0:this.active&&(cleanupEffect(this),this.onStop&&this.onStop(),this.active=!1)}}function cleanupEffect(_n){const{deps:Cn}=_n;if(Cn.length){for(let $n=0;$n<Cn.length;$n++)Cn[$n].delete(_n);Cn.length=0}}let shouldTrack=!0;const trackStack=[];function pauseTracking(){trackStack.push(shouldTrack),shouldTrack=!1}function resetTracking(){const _n=trackStack.pop();shouldTrack=_n===void 0?!0:_n}function track(_n,Cn,$n){if(shouldTrack&&activeEffect){let Nn=targetMap.get(_n);Nn||targetMap.set(_n,Nn=new Map);let Bn=Nn.get($n);Bn||Nn.set($n,Bn=createDep()),trackEffects(Bn)}}function trackEffects(_n,Cn){let $n=!1;effectTrackDepth<=maxMarkerBits?newTracked(_n)||(_n.n|=trackOpBit,$n=!wasTracked(_n)):$n=!_n.has(activeEffect),$n&&(_n.add(activeEffect),activeEffect.deps.push(_n))}function trigger(_n,Cn,$n,Nn,Bn,Ln){const In=targetMap.get(_n);if(!In)return;let Pn=[];if(Cn==="clear")Pn=[...In.values()];else if($n==="length"&&isArray$3(_n)){const Dn=Number(Nn);In.forEach((Un,Hn)=>{(Hn==="length"||!isSymbol(Hn)&&Hn>=Dn)&&Pn.push(Un)})}else switch($n!==void 0&&Pn.push(In.get($n)),Cn){case"add":isArray$3(_n)?isIntegerKey($n)&&Pn.push(In.get("length")):(Pn.push(In.get(ITERATE_KEY)),isMap(_n)&&Pn.push(In.get(MAP_KEY_ITERATE_KEY)));break;case"delete":isArray$3(_n)||(Pn.push(In.get(ITERATE_KEY)),isMap(_n)&&Pn.push(In.get(MAP_KEY_ITERATE_KEY)));break;case"set":isMap(_n)&&Pn.push(In.get(ITERATE_KEY));break}if(Pn.length===1)Pn[0]&&triggerEffects(Pn[0]);else{const Dn=[];for(const Un of Pn)Un&&Dn.push(...Un);triggerEffects(createDep(Dn))}}function triggerEffects(_n,Cn){const $n=isArray$3(_n)?_n:[..._n];for(const Nn of $n)Nn.computed&&triggerEffect(Nn);for(const Nn of $n)Nn.computed||triggerEffect(Nn)}function triggerEffect(_n,Cn){(_n!==activeEffect||_n.allowRecurse)&&(_n.scheduler?_n.scheduler():_n.run())}const isNonTrackableKeys=makeMap("__proto__,__v_isRef,__isVue"),builtInSymbols=new Set(Object.getOwnPropertyNames(Symbol).filter(_n=>_n!=="arguments"&&_n!=="caller").map(_n=>Symbol[_n]).filter(isSymbol)),arrayInstrumentations=createArrayInstrumentations();function createArrayInstrumentations(){const _n={};return["includes","indexOf","lastIndexOf"].forEach(Cn=>{_n[Cn]=function(...$n){const Nn=toRaw(this);for(let Ln=0,In=this.length;Ln<In;Ln++)track(Nn,"get",Ln+"");const Bn=Nn[Cn](...$n);return Bn===-1||Bn===!1?Nn[Cn](...$n.map(toRaw)):Bn}}),["push","pop","shift","unshift","splice"].forEach(Cn=>{_n[Cn]=function(...$n){pauseTracking();const Nn=toRaw(this)[Cn].apply(this,$n);return resetTracking(),Nn}}),_n}function hasOwnProperty$a(_n){const Cn=toRaw(this);return track(Cn,"has",_n),Cn.hasOwnProperty(_n)}class BaseReactiveHandler{constructor(Cn=!1,$n=!1){this._isReadonly=Cn,this._shallow=$n}get(Cn,$n,Nn){const Bn=this._isReadonly,Ln=this._shallow;if($n==="__v_isReactive")return!Bn;if($n==="__v_isReadonly")return Bn;if($n==="__v_isShallow")return Ln;if($n==="__v_raw"&&Nn===(Bn?Ln?shallowReadonlyMap:readonlyMap:Ln?shallowReactiveMap:reactiveMap).get(Cn))return Cn;const In=isArray$3(Cn);if(!Bn){if(In&&hasOwn(arrayInstrumentations,$n))return Reflect.get(arrayInstrumentations,$n,Nn);if($n==="hasOwnProperty")return hasOwnProperty$a}const Pn=Reflect.get(Cn,$n,Nn);return(isSymbol($n)?builtInSymbols.has($n):isNonTrackableKeys($n))||(Bn||track(Cn,"get",$n),Ln)?Pn:isRef(Pn)?In&&isIntegerKey($n)?Pn:Pn.value:isObject$5(Pn)?Bn?readonly(Pn):reactive(Pn):Pn}}class MutableReactiveHandler extends BaseReactiveHandler{constructor(Cn=!1){super(!1,Cn)}set(Cn,$n,Nn,Bn){let Ln=Cn[$n];if(isReadonly(Ln)&&isRef(Ln)&&!isRef(Nn))return!1;if(!this._shallow&&(!isShallow(Nn)&&!isReadonly(Nn)&&(Ln=toRaw(Ln),Nn=toRaw(Nn)),!isArray$3(Cn)&&isRef(Ln)&&!isRef(Nn)))return Ln.value=Nn,!0;const In=isArray$3(Cn)&&isIntegerKey($n)?Number($n)<Cn.length:hasOwn(Cn,$n),Pn=Reflect.set(Cn,$n,Nn,Bn);return Cn===toRaw(Bn)&&(In?hasChanged(Nn,Ln)&&trigger(Cn,"set",$n,Nn):trigger(Cn,"add",$n,Nn)),Pn}deleteProperty(Cn,$n){const Nn=hasOwn(Cn,$n);Cn[$n];const Bn=Reflect.deleteProperty(Cn,$n);return Bn&&Nn&&trigger(Cn,"delete",$n,void 0),Bn}has(Cn,$n){const Nn=Reflect.has(Cn,$n);return(!isSymbol($n)||!builtInSymbols.has($n))&&track(Cn,"has",$n),Nn}ownKeys(Cn){return track(Cn,"iterate",isArray$3(Cn)?"length":ITERATE_KEY),Reflect.ownKeys(Cn)}}class ReadonlyReactiveHandler extends BaseReactiveHandler{constructor(Cn=!1){super(!0,Cn)}set(Cn,$n){return!0}deleteProperty(Cn,$n){return!0}}const mutableHandlers=new MutableReactiveHandler,readonlyHandlers=new ReadonlyReactiveHandler,shallowReactiveHandlers=new MutableReactiveHandler(!0),toShallow=_n=>_n,getProto=_n=>Reflect.getPrototypeOf(_n);function get(_n,Cn,$n=!1,Nn=!1){_n=_n.__v_raw;const Bn=toRaw(_n),Ln=toRaw(Cn);$n||(hasChanged(Cn,Ln)&&track(Bn,"get",Cn),track(Bn,"get",Ln));const{has:In}=getProto(Bn),Pn=Nn?toShallow:$n?toReadonly:toReactive;if(In.call(Bn,Cn))return Pn(_n.get(Cn));if(In.call(Bn,Ln))return Pn(_n.get(Ln));_n!==Bn&&_n.get(Cn)}function has(_n,Cn=!1){const $n=this.__v_raw,Nn=toRaw($n),Bn=toRaw(_n);return Cn||(hasChanged(_n,Bn)&&track(Nn,"has",_n),track(Nn,"has",Bn)),_n===Bn?$n.has(_n):$n.has(_n)||$n.has(Bn)}function size(_n,Cn=!1){return _n=_n.__v_raw,!Cn&&track(toRaw(_n),"iterate",ITERATE_KEY),Reflect.get(_n,"size",_n)}function add(_n){_n=toRaw(_n);const Cn=toRaw(this);return getProto(Cn).has.call(Cn,_n)||(Cn.add(_n),trigger(Cn,"add",_n,_n)),this}function set$1(_n,Cn){Cn=toRaw(Cn);const $n=toRaw(this),{has:Nn,get:Bn}=getProto($n);let Ln=Nn.call($n,_n);Ln||(_n=toRaw(_n),Ln=Nn.call($n,_n));const In=Bn.call($n,_n);return $n.set(_n,Cn),Ln?hasChanged(Cn,In)&&trigger($n,"set",_n,Cn):trigger($n,"add",_n,Cn),this}function deleteEntry(_n){const Cn=toRaw(this),{has:$n,get:Nn}=getProto(Cn);let Bn=$n.call(Cn,_n);Bn||(_n=toRaw(_n),Bn=$n.call(Cn,_n)),Nn&&Nn.call(Cn,_n);const Ln=Cn.delete(_n);return Bn&&trigger(Cn,"delete",_n,void 0),Ln}function clear(){const _n=toRaw(this),Cn=_n.size!==0,$n=_n.clear();return Cn&&trigger(_n,"clear",void 0,void 0),$n}function createForEach(_n,Cn){return function(Nn,Bn){const Ln=this,In=Ln.__v_raw,Pn=toRaw(In),Dn=Cn?toShallow:_n?toReadonly:toReactive;return!_n&&track(Pn,"iterate",ITERATE_KEY),In.forEach((Un,Hn)=>Nn.call(Bn,Dn(Un),Dn(Hn),Ln))}}function createIterableMethod(_n,Cn,$n){return function(...Nn){const Bn=this.__v_raw,Ln=toRaw(Bn),In=isMap(Ln),Pn=_n==="entries"||_n===Symbol.iterator&&In,Dn=_n==="keys"&&In,Un=Bn[_n](...Nn),Hn=$n?toShallow:Cn?toReadonly:toReactive;return!Cn&&track(Ln,"iterate",Dn?MAP_KEY_ITERATE_KEY:ITERATE_KEY),{next(){const{value:Xn,done:Gn}=Un.next();return Gn?{value:Xn,done:Gn}:{value:Pn?[Hn(Xn[0]),Hn(Xn[1])]:Hn(Xn),done:Gn}},[Symbol.iterator](){return this}}}}function createReadonlyMethod(_n){return function(...Cn){return _n==="delete"?!1:this}}function createInstrumentations(){const _n={get(Ln){return get(this,Ln)},get size(){return size(this)},has,add,set:set$1,delete:deleteEntry,clear,forEach:createForEach(!1,!1)},Cn={get(Ln){return get(this,Ln,!1,!0)},get size(){return size(this)},has,add,set:set$1,delete:deleteEntry,clear,forEach:createForEach(!1,!0)},$n={get(Ln){return get(this,Ln,!0)},get size(){return size(this,!0)},has(Ln){return has.call(this,Ln,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!1)},Nn={get(Ln){return get(this,Ln,!0,!0)},get size(){return size(this,!0)},has(Ln){return has.call(this,Ln,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(Ln=>{_n[Ln]=createIterableMethod(Ln,!1,!1),$n[Ln]=createIterableMethod(Ln,!0,!1),Cn[Ln]=createIterableMethod(Ln,!1,!0),Nn[Ln]=createIterableMethod(Ln,!0,!0)}),[_n,$n,Cn,Nn]}const[mutableInstrumentations,readonlyInstrumentations,shallowInstrumentations,shallowReadonlyInstrumentations]=createInstrumentations();function createInstrumentationGetter(_n,Cn){const $n=Cn?_n?shallowReadonlyInstrumentations:shallowInstrumentations:_n?readonlyInstrumentations:mutableInstrumentations;return(Nn,Bn,Ln)=>Bn==="__v_isReactive"?!_n:Bn==="__v_isReadonly"?_n:Bn==="__v_raw"?Nn:Reflect.get(hasOwn($n,Bn)&&Bn in Nn?$n:Nn,Bn,Ln)}const mutableCollectionHandlers={get:createInstrumentationGetter(!1,!1)},shallowCollectionHandlers={get:createInstrumentationGetter(!1,!0)},readonlyCollectionHandlers={get:createInstrumentationGetter(!0,!1)},reactiveMap=new WeakMap,shallowReactiveMap=new WeakMap,readonlyMap=new WeakMap,shallowReadonlyMap=new WeakMap;function targetTypeMap(_n){switch(_n){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function getTargetType(_n){return _n.__v_skip||!Object.isExtensible(_n)?0:targetTypeMap(toRawType(_n))}function reactive(_n){return isReadonly(_n)?_n:createReactiveObject(_n,!1,mutableHandlers,mutableCollectionHandlers,reactiveMap)}function shallowReactive(_n){return createReactiveObject(_n,!1,shallowReactiveHandlers,shallowCollectionHandlers,shallowReactiveMap)}function readonly(_n){return createReactiveObject(_n,!0,readonlyHandlers,readonlyCollectionHandlers,readonlyMap)}function createReactiveObject(_n,Cn,$n,Nn,Bn){if(!isObject$5(_n)||_n.__v_raw&&!(Cn&&_n.__v_isReactive))return _n;const Ln=Bn.get(_n);if(Ln)return Ln;const In=getTargetType(_n);if(In===0)return _n;const Pn=new Proxy(_n,In===2?Nn:$n);return Bn.set(_n,Pn),Pn}function isReactive(_n){return isReadonly(_n)?isReactive(_n.__v_raw):!!(_n&&_n.__v_isReactive)}function isReadonly(_n){return!!(_n&&_n.__v_isReadonly)}function isShallow(_n){return!!(_n&&_n.__v_isShallow)}function isProxy(_n){return isReactive(_n)||isReadonly(_n)}function toRaw(_n){const Cn=_n&&_n.__v_raw;return Cn?toRaw(Cn):_n}function markRaw(_n){return def(_n,"__v_skip",!0),_n}const toReactive=_n=>isObject$5(_n)?reactive(_n):_n,toReadonly=_n=>isObject$5(_n)?readonly(_n):_n;function trackRefValue(_n){shouldTrack&&activeEffect&&(_n=toRaw(_n),trackEffects(_n.dep||(_n.dep=createDep())))}function triggerRefValue(_n,Cn){_n=toRaw(_n);const $n=_n.dep;$n&&triggerEffects($n)}function isRef(_n){return!!(_n&&_n.__v_isRef===!0)}function ref(_n){return createRef(_n,!1)}function shallowRef(_n){return createRef(_n,!0)}function createRef(_n,Cn){return isRef(_n)?_n:new RefImpl(_n,Cn)}class RefImpl{constructor(Cn,$n){this.__v_isShallow=$n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=$n?Cn:toRaw(Cn),this._value=$n?Cn:toReactive(Cn)}get value(){return trackRefValue(this),this._value}set value(Cn){const $n=this.__v_isShallow||isShallow(Cn)||isReadonly(Cn);Cn=$n?Cn:toRaw(Cn),hasChanged(Cn,this._rawValue)&&(this._rawValue=Cn,this._value=$n?Cn:toReactive(Cn),triggerRefValue(this))}}function unref(_n){return isRef(_n)?_n.value:_n}const shallowUnwrapHandlers={get:(_n,Cn,$n)=>unref(Reflect.get(_n,Cn,$n)),set:(_n,Cn,$n,Nn)=>{const Bn=_n[Cn];return isRef(Bn)&&!isRef($n)?(Bn.value=$n,!0):Reflect.set(_n,Cn,$n,Nn)}};function proxyRefs(_n){return isReactive(_n)?_n:new Proxy(_n,shallowUnwrapHandlers)}class ComputedRefImpl{constructor(Cn,$n,Nn,Bn){this._setter=$n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new ReactiveEffect(Cn,()=>{this._dirty||(this._dirty=!0,triggerRefValue(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!Bn,this.__v_isReadonly=Nn}get value(){const Cn=toRaw(this);return trackRefValue(Cn),(Cn._dirty||!Cn._cacheable)&&(Cn._dirty=!1,Cn._value=Cn.effect.run()),Cn._value}set value(Cn){this._setter(Cn)}}function computed$1(_n,Cn,$n=!1){let Nn,Bn;const Ln=isFunction$2(_n);return Ln?(Nn=_n,Bn=NOOP):(Nn=_n.get,Bn=_n.set),new ComputedRefImpl(Nn,Bn,Ln||!Bn,$n)}function warn(_n,...Cn){}function callWithErrorHandling(_n,Cn,$n,Nn){let Bn;try{Bn=Nn?_n(...Nn):_n()}catch(Ln){handleError(Ln,Cn,$n)}return Bn}function callWithAsyncErrorHandling(_n,Cn,$n,Nn){if(isFunction$2(_n)){const Ln=callWithErrorHandling(_n,Cn,$n,Nn);return Ln&&isPromise(Ln)&&Ln.catch(In=>{handleError(In,Cn,$n)}),Ln}const Bn=[];for(let Ln=0;Ln<_n.length;Ln++)Bn.push(callWithAsyncErrorHandling(_n[Ln],Cn,$n,Nn));return Bn}function handleError(_n,Cn,$n,Nn=!0){const Bn=Cn?Cn.vnode:null;if(Cn){let Ln=Cn.parent;const In=Cn.proxy,Pn=$n;for(;Ln;){const Un=Ln.ec;if(Un){for(let Hn=0;Hn<Un.length;Hn++)if(Un[Hn](_n,In,Pn)===!1)return}Ln=Ln.parent}const Dn=Cn.appContext.config.errorHandler;if(Dn){callWithErrorHandling(Dn,null,10,[_n,In,Pn]);return}}logError(_n,$n,Bn,Nn)}function logError(_n,Cn,$n,Nn=!0){console.error(_n)}let isFlushing=!1,isFlushPending=!1;const queue=[];let flushIndex=0;const pendingPostFlushCbs=[];let activePostFlushCbs=null,postFlushIndex=0;const resolvedPromise=Promise.resolve();let currentFlushPromise=null;function nextTick(_n){const Cn=currentFlushPromise||resolvedPromise;return _n?Cn.then(this?_n.bind(this):_n):Cn}function findInsertionIndex(_n){let Cn=flushIndex+1,$n=queue.length;for(;Cn<$n;){const Nn=Cn+$n>>>1,Bn=queue[Nn],Ln=getId(Bn);Ln<_n||Ln===_n&&Bn.pre?Cn=Nn+1:$n=Nn}return Cn}function queueJob(_n){(!queue.length||!queue.includes(_n,isFlushing&&_n.allowRecurse?flushIndex+1:flushIndex))&&(_n.id==null?queue.push(_n):queue.splice(findInsertionIndex(_n.id),0,_n),queueFlush())}function queueFlush(){!isFlushing&&!isFlushPending&&(isFlushPending=!0,currentFlushPromise=resolvedPromise.then(flushJobs))}function invalidateJob(_n){const Cn=queue.indexOf(_n);Cn>flushIndex&&queue.splice(Cn,1)}function queuePostFlushCb(_n){isArray$3(_n)?pendingPostFlushCbs.push(..._n):(!activePostFlushCbs||!activePostFlushCbs.includes(_n,_n.allowRecurse?postFlushIndex+1:postFlushIndex))&&pendingPostFlushCbs.push(_n),queueFlush()}function flushPreFlushCbs(_n,Cn=isFlushing?flushIndex+1:0){for(;Cn<queue.length;Cn++){const $n=queue[Cn];$n&&$n.pre&&(queue.splice(Cn,1),Cn--,$n())}}function flushPostFlushCbs(_n){if(pendingPostFlushCbs.length){const Cn=[...new Set(pendingPostFlushCbs)];if(pendingPostFlushCbs.length=0,activePostFlushCbs){activePostFlushCbs.push(...Cn);return}for(activePostFlushCbs=Cn,activePostFlushCbs.sort(($n,Nn)=>getId($n)-getId(Nn)),postFlushIndex=0;postFlushIndex<activePostFlushCbs.length;postFlushIndex++)activePostFlushCbs[postFlushIndex]();activePostFlushCbs=null,postFlushIndex=0}}const getId=_n=>_n.id==null?1/0:_n.id,comparator=(_n,Cn)=>{const $n=getId(_n)-getId(Cn);if($n===0){if(_n.pre&&!Cn.pre)return-1;if(Cn.pre&&!_n.pre)return 1}return $n};function flushJobs(_n){isFlushPending=!1,isFlushing=!0,queue.sort(comparator);const Cn=NOOP;try{for(flushIndex=0;flushIndex<queue.length;flushIndex++){const $n=queue[flushIndex];$n&&$n.active!==!1&&callWithErrorHandling($n,null,14)}}finally{flushIndex=0,queue.length=0,flushPostFlushCbs(),isFlushing=!1,currentFlushPromise=null,(queue.length||pendingPostFlushCbs.length)&&flushJobs()}}function emit(_n,Cn,...$n){if(_n.isUnmounted)return;const Nn=_n.vnode.props||EMPTY_OBJ;let Bn=$n;const Ln=Cn.startsWith("update:"),In=Ln&&Cn.slice(7);if(In&&In in Nn){const Hn=`${In==="modelValue"?"model":In}Modifiers`,{number:Xn,trim:Gn}=Nn[Hn]||EMPTY_OBJ;Gn&&(Bn=$n.map(ei=>isString$1(ei)?ei.trim():ei)),Xn&&(Bn=$n.map(looseToNumber))}let Pn,Dn=Nn[Pn=toHandlerKey(Cn)]||Nn[Pn=toHandlerKey(camelize(Cn))];!Dn&&Ln&&(Dn=Nn[Pn=toHandlerKey(hyphenate(Cn))]),Dn&&callWithAsyncErrorHandling(Dn,_n,6,Bn);const Un=Nn[Pn+"Once"];if(Un){if(!_n.emitted)_n.emitted={};else if(_n.emitted[Pn])return;_n.emitted[Pn]=!0,callWithAsyncErrorHandling(Un,_n,6,Bn)}}function normalizeEmitsOptions(_n,Cn,$n=!1){const Nn=Cn.emitsCache,Bn=Nn.get(_n);if(Bn!==void 0)return Bn;const Ln=_n.emits;let In={},Pn=!1;if(!isFunction$2(_n)){const Dn=Un=>{const Hn=normalizeEmitsOptions(Un,Cn,!0);Hn&&(Pn=!0,extend$3(In,Hn))};!$n&&Cn.mixins.length&&Cn.mixins.forEach(Dn),_n.extends&&Dn(_n.extends),_n.mixins&&_n.mixins.forEach(Dn)}return!Ln&&!Pn?(isObject$5(_n)&&Nn.set(_n,null),null):(isArray$3(Ln)?Ln.forEach(Dn=>In[Dn]=null):extend$3(In,Ln),isObject$5(_n)&&Nn.set(_n,In),In)}function isEmitListener(_n,Cn){return!_n||!isOn(Cn)?!1:(Cn=Cn.slice(2).replace(/Once$/,""),hasOwn(_n,Cn[0].toLowerCase()+Cn.slice(1))||hasOwn(_n,hyphenate(Cn))||hasOwn(_n,Cn))}let currentRenderingInstance=null,currentScopeId=null;function setCurrentRenderingInstance(_n){const Cn=currentRenderingInstance;return currentRenderingInstance=_n,currentScopeId=_n&&_n.type.__scopeId||null,Cn}function pushScopeId(_n){currentScopeId=_n}function popScopeId(){currentScopeId=null}function withCtx(_n,Cn=currentRenderingInstance,$n){if(!Cn||_n._n)return _n;const Nn=(...Bn)=>{Nn._d&&setBlockTracking(-1);const Ln=setCurrentRenderingInstance(Cn);let In;try{In=_n(...Bn)}finally{setCurrentRenderingInstance(Ln),Nn._d&&setBlockTracking(1)}return In};return Nn._n=!0,Nn._c=!0,Nn._d=!0,Nn}function markAttrsAccessed(){}function renderComponentRoot(_n){const{type:Cn,vnode:$n,proxy:Nn,withProxy:Bn,props:Ln,propsOptions:[In],slots:Pn,attrs:Dn,emit:Un,render:Hn,renderCache:Xn,data:Gn,setupState:ei,ctx:nr,inheritAttrs:ni}=_n;let ai,si;const gi=setCurrentRenderingInstance(_n);try{if($n.shapeFlag&4){const ri=Bn||Nn;ai=normalizeVNode(Hn.call(ri,ri,Xn,Ln,ei,Gn,nr)),si=Dn}else{const ri=Cn;ai=normalizeVNode(ri.length>1?ri(Ln,{attrs:Dn,slots:Pn,emit:Un}):ri(Ln,null)),si=Cn.props?Dn:getFunctionalFallthrough(Dn)}}catch(ri){blockStack.length=0,handleError(ri,_n,1),ai=createVNode(Comment)}let Si=ai;if(si&&ni!==!1){const ri=Object.keys(si),{shapeFlag:Ei}=Si;ri.length&&Ei&7&&(In&&ri.some(isModelListener)&&(si=filterModelListeners(si,In)),Si=cloneVNode(Si,si))}return $n.dirs&&(Si=cloneVNode(Si),Si.dirs=Si.dirs?Si.dirs.concat($n.dirs):$n.dirs),$n.transition&&(Si.transition=$n.transition),ai=Si,setCurrentRenderingInstance(gi),ai}const getFunctionalFallthrough=_n=>{let Cn;for(const $n in _n)($n==="class"||$n==="style"||isOn($n))&&((Cn||(Cn={}))[$n]=_n[$n]);return Cn},filterModelListeners=(_n,Cn)=>{const $n={};for(const Nn in _n)(!isModelListener(Nn)||!(Nn.slice(9)in Cn))&&($n[Nn]=_n[Nn]);return $n};function shouldUpdateComponent(_n,Cn,$n){const{props:Nn,children:Bn,component:Ln}=_n,{props:In,children:Pn,patchFlag:Dn}=Cn,Un=Ln.emitsOptions;if(Cn.dirs||Cn.transition)return!0;if($n&&Dn>=0){if(Dn&1024)return!0;if(Dn&16)return Nn?hasPropsChanged(Nn,In,Un):!!In;if(Dn&8){const Hn=Cn.dynamicProps;for(let Xn=0;Xn<Hn.length;Xn++){const Gn=Hn[Xn];if(In[Gn]!==Nn[Gn]&&!isEmitListener(Un,Gn))return!0}}}else return(Bn||Pn)&&(!Pn||!Pn.$stable)?!0:Nn===In?!1:Nn?In?hasPropsChanged(Nn,In,Un):!0:!!In;return!1}function hasPropsChanged(_n,Cn,$n){const Nn=Object.keys(Cn);if(Nn.length!==Object.keys(_n).length)return!0;for(let Bn=0;Bn<Nn.length;Bn++){const Ln=Nn[Bn];if(Cn[Ln]!==_n[Ln]&&!isEmitListener($n,Ln))return!0}return!1}function updateHOCHostEl({vnode:_n,parent:Cn},$n){for(;Cn&&Cn.subTree===_n;)(_n=Cn.vnode).el=$n,Cn=Cn.parent}const COMPONENTS="components",DIRECTIVES="directives";function resolveComponent(_n,Cn){return resolveAsset(COMPONENTS,_n,!0,Cn)||_n}const NULL_DYNAMIC_COMPONENT=Symbol.for("v-ndc");function resolveDynamicComponent(_n){return isString$1(_n)?resolveAsset(COMPONENTS,_n,!1)||_n:_n||NULL_DYNAMIC_COMPONENT}function resolveDirective(_n){return resolveAsset(DIRECTIVES,_n)}function resolveAsset(_n,Cn,$n=!0,Nn=!1){const Bn=currentRenderingInstance||currentInstance;if(Bn){const Ln=Bn.type;if(_n===COMPONENTS){const Pn=getComponentName(Ln,!1);if(Pn&&(Pn===Cn||Pn===camelize(Cn)||Pn===capitalize(camelize(Cn))))return Ln}const In=resolve(Bn[_n]||Ln[_n],Cn)||resolve(Bn.appContext[_n],Cn);return!In&&Nn?Ln:In}}function resolve(_n,Cn){return _n&&(_n[Cn]||_n[camelize(Cn)]||_n[capitalize(camelize(Cn))])}const isSuspense=_n=>_n.__isSuspense;function queueEffectWithSuspense(_n,Cn){Cn&&Cn.pendingBranch?isArray$3(_n)?Cn.effects.push(..._n):Cn.effects.push(_n):queuePostFlushCb(_n)}const INITIAL_WATCHER_VALUE={};function watch(_n,Cn,$n){return doWatch(_n,Cn,$n)}function doWatch(_n,Cn,{immediate:$n,deep:Nn,flush:Bn,onTrack:Ln,onTrigger:In}=EMPTY_OBJ){var Pn;const Dn=getCurrentScope()===((Pn=currentInstance)==null?void 0:Pn.scope)?currentInstance:null;let Un,Hn=!1,Xn=!1;if(isRef(_n)?(Un=()=>_n.value,Hn=isShallow(_n)):isReactive(_n)?(Un=()=>_n,Nn=!0):isArray$3(_n)?(Xn=!0,Hn=_n.some(ri=>isReactive(ri)||isShallow(ri)),Un=()=>_n.map(ri=>{if(isRef(ri))return ri.value;if(isReactive(ri))return traverse(ri);if(isFunction$2(ri))return callWithErrorHandling(ri,Dn,2)})):isFunction$2(_n)?Cn?Un=()=>callWithErrorHandling(_n,Dn,2):Un=()=>{if(!(Dn&&Dn.isUnmounted))return Gn&&Gn(),callWithAsyncErrorHandling(_n,Dn,3,[ei])}:Un=NOOP,Cn&&Nn){const ri=Un;Un=()=>traverse(ri())}let Gn,ei=ri=>{Gn=gi.onStop=()=>{callWithErrorHandling(ri,Dn,4)}},nr;if(isInSSRComponentSetup)if(ei=NOOP,Cn?$n&&callWithAsyncErrorHandling(Cn,Dn,3,[Un(),Xn?[]:void 0,ei]):Un(),Bn==="sync"){const ri=useSSRContext();nr=ri.__watcherHandles||(ri.__watcherHandles=[])}else return NOOP;let ni=Xn?new Array(_n.length).fill(INITIAL_WATCHER_VALUE):INITIAL_WATCHER_VALUE;const ai=()=>{if(gi.active)if(Cn){const ri=gi.run();(Nn||Hn||(Xn?ri.some((Ei,$i)=>hasChanged(Ei,ni[$i])):hasChanged(ri,ni)))&&(Gn&&Gn(),callWithAsyncErrorHandling(Cn,Dn,3,[ri,ni===INITIAL_WATCHER_VALUE?void 0:Xn&&ni[0]===INITIAL_WATCHER_VALUE?[]:ni,ei]),ni=ri)}else gi.run()};ai.allowRecurse=!!Cn;let si;Bn==="sync"?si=ai:Bn==="post"?si=()=>queuePostRenderEffect(ai,Dn&&Dn.suspense):(ai.pre=!0,Dn&&(ai.id=Dn.uid),si=()=>queueJob(ai));const gi=new ReactiveEffect(Un,si);Cn?$n?ai():ni=gi.run():Bn==="post"?queuePostRenderEffect(gi.run.bind(gi),Dn&&Dn.suspense):gi.run();const Si=()=>{gi.stop(),Dn&&Dn.scope&&remove(Dn.scope.effects,gi)};return nr&&nr.push(Si),Si}function instanceWatch(_n,Cn,$n){const Nn=this.proxy,Bn=isString$1(_n)?_n.includes(".")?createPathGetter(Nn,_n):()=>Nn[_n]:_n.bind(Nn,Nn);let Ln;isFunction$2(Cn)?Ln=Cn:(Ln=Cn.handler,$n=Cn);const In=currentInstance;setCurrentInstance(this);const Pn=doWatch(Bn,Ln.bind(Nn),$n);return In?setCurrentInstance(In):unsetCurrentInstance(),Pn}function createPathGetter(_n,Cn){const $n=Cn.split(".");return()=>{let Nn=_n;for(let Bn=0;Bn<$n.length&&Nn;Bn++)Nn=Nn[$n[Bn]];return Nn}}function traverse(_n,Cn){if(!isObject$5(_n)||_n.__v_skip||(Cn=Cn||new Set,Cn.has(_n)))return _n;if(Cn.add(_n),isRef(_n))traverse(_n.value,Cn);else if(isArray$3(_n))for(let $n=0;$n<_n.length;$n++)traverse(_n[$n],Cn);else if(isSet(_n)||isMap(_n))_n.forEach($n=>{traverse($n,Cn)});else if(isPlainObject$3(_n))for(const $n in _n)traverse(_n[$n],Cn);return _n}function withDirectives(_n,Cn){const $n=currentRenderingInstance;if($n===null)return _n;const Nn=getExposeProxy($n)||$n.proxy,Bn=_n.dirs||(_n.dirs=[]);for(let Ln=0;Ln<Cn.length;Ln++){let[In,Pn,Dn,Un=EMPTY_OBJ]=Cn[Ln];In&&(isFunction$2(In)&&(In={mounted:In,updated:In}),In.deep&&traverse(Pn),Bn.push({dir:In,instance:Nn,value:Pn,oldValue:void 0,arg:Dn,modifiers:Un}))}return _n}function invokeDirectiveHook(_n,Cn,$n,Nn){const Bn=_n.dirs,Ln=Cn&&Cn.dirs;for(let In=0;In<Bn.length;In++){const Pn=Bn[In];Ln&&(Pn.oldValue=Ln[In].value);let Dn=Pn.dir[Nn];Dn&&(pauseTracking(),callWithAsyncErrorHandling(Dn,$n,8,[_n.el,Pn,_n,Cn]),resetTracking())}}const leaveCbKey=Symbol("_leaveCb"),enterCbKey=Symbol("_enterCb");function useTransitionState(){const _n={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return onMounted(()=>{_n.isMounted=!0}),onBeforeUnmount(()=>{_n.isUnmounting=!0}),_n}const TransitionHookValidator=[Function,Array],BaseTransitionPropsValidators={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:TransitionHookValidator,onEnter:TransitionHookValidator,onAfterEnter:TransitionHookValidator,onEnterCancelled:TransitionHookValidator,onBeforeLeave:TransitionHookValidator,onLeave:TransitionHookValidator,onAfterLeave:TransitionHookValidator,onLeaveCancelled:TransitionHookValidator,onBeforeAppear:TransitionHookValidator,onAppear:TransitionHookValidator,onAfterAppear:TransitionHookValidator,onAppearCancelled:TransitionHookValidator},BaseTransitionImpl={name:"BaseTransition",props:BaseTransitionPropsValidators,setup(_n,{slots:Cn}){const $n=getCurrentInstance(),Nn=useTransitionState();let Bn;return()=>{const Ln=Cn.default&&getTransitionRawChildren(Cn.default(),!0);if(!Ln||!Ln.length)return;let In=Ln[0];if(Ln.length>1){for(const ni of Ln)if(ni.type!==Comment){In=ni;break}}const Pn=toRaw(_n),{mode:Dn}=Pn;if(Nn.isLeaving)return emptyPlaceholder(In);const Un=getKeepAliveChild(In);if(!Un)return emptyPlaceholder(In);const Hn=resolveTransitionHooks(Un,Pn,Nn,$n);setTransitionHooks(Un,Hn);const Xn=$n.subTree,Gn=Xn&&getKeepAliveChild(Xn);let ei=!1;const{getTransitionKey:nr}=Un.type;if(nr){const ni=nr();Bn===void 0?Bn=ni:ni!==Bn&&(Bn=ni,ei=!0)}if(Gn&&Gn.type!==Comment&&(!isSameVNodeType(Un,Gn)||ei)){const ni=resolveTransitionHooks(Gn,Pn,Nn,$n);if(setTransitionHooks(Gn,ni),Dn==="out-in")return Nn.isLeaving=!0,ni.afterLeave=()=>{Nn.isLeaving=!1,$n.update.active!==!1&&$n.update()},emptyPlaceholder(In);Dn==="in-out"&&Un.type!==Comment&&(ni.delayLeave=(ai,si,gi)=>{const Si=getLeavingNodesForType(Nn,Gn);Si[String(Gn.key)]=Gn,ai[leaveCbKey]=()=>{si(),ai[leaveCbKey]=void 0,delete Hn.delayedLeave},Hn.delayedLeave=gi})}return In}}},BaseTransition=BaseTransitionImpl;function getLeavingNodesForType(_n,Cn){const{leavingVNodes:$n}=_n;let Nn=$n.get(Cn.type);return Nn||(Nn=Object.create(null),$n.set(Cn.type,Nn)),Nn}function resolveTransitionHooks(_n,Cn,$n,Nn){const{appear:Bn,mode:Ln,persisted:In=!1,onBeforeEnter:Pn,onEnter:Dn,onAfterEnter:Un,onEnterCancelled:Hn,onBeforeLeave:Xn,onLeave:Gn,onAfterLeave:ei,onLeaveCancelled:nr,onBeforeAppear:ni,onAppear:ai,onAfterAppear:si,onAppearCancelled:gi}=Cn,Si=String(_n.key),ri=getLeavingNodesForType($n,_n),Ei=(li,oi)=>{li&&callWithAsyncErrorHandling(li,Nn,9,oi)},$i=(li,oi)=>{const ui=oi[1];Ei(li,oi),isArray$3(li)?li.every(mi=>mi.length<=1)&&ui():li.length<=1&&ui()},zn={mode:Ln,persisted:In,beforeEnter(li){let oi=Pn;if(!$n.isMounted)if(Bn)oi=ni||Pn;else return;li[leaveCbKey]&&li[leaveCbKey](!0);const ui=ri[Si];ui&&isSameVNodeType(_n,ui)&&ui.el[leaveCbKey]&&ui.el[leaveCbKey](),Ei(oi,[li])},enter(li){let oi=Dn,ui=Un,mi=Hn;if(!$n.isMounted)if(Bn)oi=ai||Dn,ui=si||Un,mi=gi||Hn;else return;let _i=!1;const yi=li[enterCbKey]=Fi=>{_i||(_i=!0,Fi?Ei(mi,[li]):Ei(ui,[li]),zn.delayedLeave&&zn.delayedLeave(),li[enterCbKey]=void 0)};oi?$i(oi,[li,yi]):yi()},leave(li,oi){const ui=String(_n.key);if(li[enterCbKey]&&li[enterCbKey](!0),$n.isUnmounting)return oi();Ei(Xn,[li]);let mi=!1;const _i=li[leaveCbKey]=yi=>{mi||(mi=!0,oi(),yi?Ei(nr,[li]):Ei(ei,[li]),li[leaveCbKey]=void 0,ri[ui]===_n&&delete ri[ui])};ri[ui]=_n,Gn?$i(Gn,[li,_i]):_i()},clone(li){return resolveTransitionHooks(li,Cn,$n,Nn)}};return zn}function emptyPlaceholder(_n){if(isKeepAlive(_n))return _n=cloneVNode(_n),_n.children=null,_n}function getKeepAliveChild(_n){return isKeepAlive(_n)?_n.children?_n.children[0]:void 0:_n}function setTransitionHooks(_n,Cn){_n.shapeFlag&6&&_n.component?setTransitionHooks(_n.component.subTree,Cn):_n.shapeFlag&128?(_n.ssContent.transition=Cn.clone(_n.ssContent),_n.ssFallback.transition=Cn.clone(_n.ssFallback)):_n.transition=Cn}function getTransitionRawChildren(_n,Cn=!1,$n){let Nn=[],Bn=0;for(let Ln=0;Ln<_n.length;Ln++){let In=_n[Ln];const Pn=$n==null?In.key:String($n)+String(In.key!=null?In.key:Ln);In.type===Fragment?(In.patchFlag&128&&Bn++,Nn=Nn.concat(getTransitionRawChildren(In.children,Cn,Pn))):(Cn||In.type!==Comment)&&Nn.push(Pn!=null?cloneVNode(In,{key:Pn}):In)}if(Bn>1)for(let Ln=0;Ln<Nn.length;Ln++)Nn[Ln].patchFlag=-2;return Nn}/*! #__NO_SIDE_EFFECTS__ */function defineComponent(_n,Cn){return isFunction$2(_n)?(()=>extend$3({name:_n.name},Cn,{setup:_n}))():_n}const isAsyncWrapper=_n=>!!_n.type.__asyncLoader,isKeepAlive=_n=>_n.type.__isKeepAlive;function onActivated(_n,Cn){registerKeepAliveHook(_n,"a",Cn)}function onDeactivated(_n,Cn){registerKeepAliveHook(_n,"da",Cn)}function registerKeepAliveHook(_n,Cn,$n=currentInstance){const Nn=_n.__wdc||(_n.__wdc=()=>{let Bn=$n;for(;Bn;){if(Bn.isDeactivated)return;Bn=Bn.parent}return _n()});if(injectHook(Cn,Nn,$n),$n){let Bn=$n.parent;for(;Bn&&Bn.parent;)isKeepAlive(Bn.parent.vnode)&&injectToKeepAliveRoot(Nn,Cn,$n,Bn),Bn=Bn.parent}}function injectToKeepAliveRoot(_n,Cn,$n,Nn){const Bn=injectHook(Cn,_n,Nn,!0);onUnmounted(()=>{remove(Nn[Cn],Bn)},$n)}function injectHook(_n,Cn,$n=currentInstance,Nn=!1){if($n){const Bn=$n[_n]||($n[_n]=[]),Ln=Cn.__weh||(Cn.__weh=(...In)=>{if($n.isUnmounted)return;pauseTracking(),setCurrentInstance($n);const Pn=callWithAsyncErrorHandling(Cn,$n,_n,In);return unsetCurrentInstance(),resetTracking(),Pn});return Nn?Bn.unshift(Ln):Bn.push(Ln),Ln}}const createHook=_n=>(Cn,$n=currentInstance)=>(!isInSSRComponentSetup||_n==="sp")&&injectHook(_n,(...Nn)=>Cn(...Nn),$n),onBeforeMount=createHook("bm"),onMounted=createHook("m"),onBeforeUpdate=createHook("bu"),onUpdated=createHook("u"),onBeforeUnmount=createHook("bum"),onUnmounted=createHook("um"),onServerPrefetch=createHook("sp"),onRenderTriggered=createHook("rtg"),onRenderTracked=createHook("rtc");function onErrorCaptured(_n,Cn=currentInstance){injectHook("ec",_n,Cn)}function renderList(_n,Cn,$n,Nn){let Bn;const Ln=$n&&$n[Nn];if(isArray$3(_n)||isString$1(_n)){Bn=new Array(_n.length);for(let In=0,Pn=_n.length;In<Pn;In++)Bn[In]=Cn(_n[In],In,void 0,Ln&&Ln[In])}else if(typeof _n=="number"){Bn=new Array(_n);for(let In=0;In<_n;In++)Bn[In]=Cn(In+1,In,void 0,Ln&&Ln[In])}else if(isObject$5(_n))if(_n[Symbol.iterator])Bn=Array.from(_n,(In,Pn)=>Cn(In,Pn,void 0,Ln&&Ln[Pn]));else{const In=Object.keys(_n);Bn=new Array(In.length);for(let Pn=0,Dn=In.length;Pn<Dn;Pn++){const Un=In[Pn];Bn[Pn]=Cn(_n[Un],Un,Pn,Ln&&Ln[Pn])}}else Bn=[];return $n&&($n[Nn]=Bn),Bn}function renderSlot(_n,Cn,$n={},Nn,Bn){if(currentRenderingInstance.isCE||currentRenderingInstance.parent&&isAsyncWrapper(currentRenderingInstance.parent)&¤tRenderingInstance.parent.isCE)return Cn!=="default"&&($n.name=Cn),createVNode("slot",$n,Nn&&Nn());let Ln=_n[Cn];Ln&&Ln._c&&(Ln._d=!1),openBlock();const In=Ln&&ensureValidVNode(Ln($n)),Pn=createBlock(Fragment,{key:$n.key||In&&In.key||`_${Cn}`},In||(Nn?Nn():[]),In&&_n._===1?64:-2);return!Bn&&Pn.scopeId&&(Pn.slotScopeIds=[Pn.scopeId+"-s"]),Ln&&Ln._c&&(Ln._d=!0),Pn}function ensureValidVNode(_n){return _n.some(Cn=>isVNode(Cn)?!(Cn.type===Comment||Cn.type===Fragment&&!ensureValidVNode(Cn.children)):!0)?_n:null}const getPublicInstance=_n=>_n?isStatefulComponent(_n)?getExposeProxy(_n)||_n.proxy:getPublicInstance(_n.parent):null,publicPropertiesMap=extend$3(Object.create(null),{$:_n=>_n,$el:_n=>_n.vnode.el,$data:_n=>_n.data,$props:_n=>_n.props,$attrs:_n=>_n.attrs,$slots:_n=>_n.slots,$refs:_n=>_n.refs,$parent:_n=>getPublicInstance(_n.parent),$root:_n=>getPublicInstance(_n.root),$emit:_n=>_n.emit,$options:_n=>resolveMergedOptions(_n),$forceUpdate:_n=>_n.f||(_n.f=()=>queueJob(_n.update)),$nextTick:_n=>_n.n||(_n.n=nextTick.bind(_n.proxy)),$watch:_n=>instanceWatch.bind(_n)}),hasSetupBinding=(_n,Cn)=>_n!==EMPTY_OBJ&&!_n.__isScriptSetup&&hasOwn(_n,Cn),PublicInstanceProxyHandlers={get({_:_n},Cn){const{ctx:$n,setupState:Nn,data:Bn,props:Ln,accessCache:In,type:Pn,appContext:Dn}=_n;let Un;if(Cn[0]!=="$"){const ei=In[Cn];if(ei!==void 0)switch(ei){case 1:return Nn[Cn];case 2:return Bn[Cn];case 4:return $n[Cn];case 3:return Ln[Cn]}else{if(hasSetupBinding(Nn,Cn))return In[Cn]=1,Nn[Cn];if(Bn!==EMPTY_OBJ&&hasOwn(Bn,Cn))return In[Cn]=2,Bn[Cn];if((Un=_n.propsOptions[0])&&hasOwn(Un,Cn))return In[Cn]=3,Ln[Cn];if($n!==EMPTY_OBJ&&hasOwn($n,Cn))return In[Cn]=4,$n[Cn];shouldCacheAccess&&(In[Cn]=0)}}const Hn=publicPropertiesMap[Cn];let Xn,Gn;if(Hn)return Cn==="$attrs"&&track(_n,"get",Cn),Hn(_n);if((Xn=Pn.__cssModules)&&(Xn=Xn[Cn]))return Xn;if($n!==EMPTY_OBJ&&hasOwn($n,Cn))return In[Cn]=4,$n[Cn];if(Gn=Dn.config.globalProperties,hasOwn(Gn,Cn))return Gn[Cn]},set({_:_n},Cn,$n){const{data:Nn,setupState:Bn,ctx:Ln}=_n;return hasSetupBinding(Bn,Cn)?(Bn[Cn]=$n,!0):Nn!==EMPTY_OBJ&&hasOwn(Nn,Cn)?(Nn[Cn]=$n,!0):hasOwn(_n.props,Cn)||Cn[0]==="$"&&Cn.slice(1)in _n?!1:(Ln[Cn]=$n,!0)},has({_:{data:_n,setupState:Cn,accessCache:$n,ctx:Nn,appContext:Bn,propsOptions:Ln}},In){let Pn;return!!$n[In]||_n!==EMPTY_OBJ&&hasOwn(_n,In)||hasSetupBinding(Cn,In)||(Pn=Ln[0])&&hasOwn(Pn,In)||hasOwn(Nn,In)||hasOwn(publicPropertiesMap,In)||hasOwn(Bn.config.globalProperties,In)},defineProperty(_n,Cn,$n){return $n.get!=null?_n._.accessCache[Cn]=0:hasOwn($n,"value")&&this.set(_n,Cn,$n.value,null),Reflect.defineProperty(_n,Cn,$n)}};function normalizePropsOrEmits(_n){return isArray$3(_n)?_n.reduce((Cn,$n)=>(Cn[$n]=null,Cn),{}):_n}let shouldCacheAccess=!0;function applyOptions(_n){const Cn=resolveMergedOptions(_n),$n=_n.proxy,Nn=_n.ctx;shouldCacheAccess=!1,Cn.beforeCreate&&callHook$1(Cn.beforeCreate,_n,"bc");const{data:Bn,computed:Ln,methods:In,watch:Pn,provide:Dn,inject:Un,created:Hn,beforeMount:Xn,mounted:Gn,beforeUpdate:ei,updated:nr,activated:ni,deactivated:ai,beforeDestroy:si,beforeUnmount:gi,destroyed:Si,unmounted:ri,render:Ei,renderTracked:$i,renderTriggered:zn,errorCaptured:li,serverPrefetch:oi,expose:ui,inheritAttrs:mi,components:_i,directives:yi,filters:Fi}=Cn;if(Un&&resolveInjections(Un,Nn,null),In)for(const Ci in In){const Ri=In[Ci];isFunction$2(Ri)&&(Nn[Ci]=Ri.bind($n))}if(Bn){const Ci=Bn.call($n,$n);isObject$5(Ci)&&(_n.data=reactive(Ci))}if(shouldCacheAccess=!0,Ln)for(const Ci in Ln){const Ri=Ln[Ci],Hi=isFunction$2(Ri)?Ri.bind($n,$n):isFunction$2(Ri.get)?Ri.get.bind($n,$n):NOOP,aa=!isFunction$2(Ri)&&isFunction$2(Ri.set)?Ri.set.bind($n):NOOP,sa=computed({get:Hi,set:aa});Object.defineProperty(Nn,Ci,{enumerable:!0,configurable:!0,get:()=>sa.value,set:Pi=>sa.value=Pi})}if(Pn)for(const Ci in Pn)createWatcher(Pn[Ci],Nn,$n,Ci);if(Dn){const Ci=isFunction$2(Dn)?Dn.call($n):Dn;Reflect.ownKeys(Ci).forEach(Ri=>{provide(Ri,Ci[Ri])})}Hn&&callHook$1(Hn,_n,"c");function qo(Ci,Ri){isArray$3(Ri)?Ri.forEach(Hi=>Ci(Hi.bind($n))):Ri&&Ci(Ri.bind($n))}if(qo(onBeforeMount,Xn),qo(onMounted,Gn),qo(onBeforeUpdate,ei),qo(onUpdated,nr),qo(onActivated,ni),qo(onDeactivated,ai),qo(onErrorCaptured,li),qo(onRenderTracked,$i),qo(onRenderTriggered,zn),qo(onBeforeUnmount,gi),qo(onUnmounted,ri),qo(onServerPrefetch,oi),isArray$3(ui))if(ui.length){const Ci=_n.exposed||(_n.exposed={});ui.forEach(Ri=>{Object.defineProperty(Ci,Ri,{get:()=>$n[Ri],set:Hi=>$n[Ri]=Hi})})}else _n.exposed||(_n.exposed={});Ei&&_n.render===NOOP&&(_n.render=Ei),mi!=null&&(_n.inheritAttrs=mi),_i&&(_n.components=_i),yi&&(_n.directives=yi)}function resolveInjections(_n,Cn,$n=NOOP){isArray$3(_n)&&(_n=normalizeInject(_n));for(const Nn in _n){const Bn=_n[Nn];let Ln;isObject$5(Bn)?"default"in Bn?Ln=inject(Bn.from||Nn,Bn.default,!0):Ln=inject(Bn.from||Nn):Ln=inject(Bn),isRef(Ln)?Object.defineProperty(Cn,Nn,{enumerable:!0,configurable:!0,get:()=>Ln.value,set:In=>Ln.value=In}):Cn[Nn]=Ln}}function callHook$1(_n,Cn,$n){callWithAsyncErrorHandling(isArray$3(_n)?_n.map(Nn=>Nn.bind(Cn.proxy)):_n.bind(Cn.proxy),Cn,$n)}function createWatcher(_n,Cn,$n,Nn){const Bn=Nn.includes(".")?createPathGetter($n,Nn):()=>$n[Nn];if(isString$1(_n)){const Ln=Cn[_n];isFunction$2(Ln)&&watch(Bn,Ln)}else if(isFunction$2(_n))watch(Bn,_n.bind($n));else if(isObject$5(_n))if(isArray$3(_n))_n.forEach(Ln=>createWatcher(Ln,Cn,$n,Nn));else{const Ln=isFunction$2(_n.handler)?_n.handler.bind($n):Cn[_n.handler];isFunction$2(Ln)&&watch(Bn,Ln,_n)}}function resolveMergedOptions(_n){const Cn=_n.type,{mixins:$n,extends:Nn}=Cn,{mixins:Bn,optionsCache:Ln,config:{optionMergeStrategies:In}}=_n.appContext,Pn=Ln.get(Cn);let Dn;return Pn?Dn=Pn:!Bn.length&&!$n&&!Nn?Dn=Cn:(Dn={},Bn.length&&Bn.forEach(Un=>mergeOptions(Dn,Un,In,!0)),mergeOptions(Dn,Cn,In)),isObject$5(Cn)&&Ln.set(Cn,Dn),Dn}function mergeOptions(_n,Cn,$n,Nn=!1){const{mixins:Bn,extends:Ln}=Cn;Ln&&mergeOptions(_n,Ln,$n,!0),Bn&&Bn.forEach(In=>mergeOptions(_n,In,$n,!0));for(const In in Cn)if(!(Nn&&In==="expose")){const Pn=internalOptionMergeStrats[In]||$n&&$n[In];_n[In]=Pn?Pn(_n[In],Cn[In]):Cn[In]}return _n}const internalOptionMergeStrats={data:mergeDataFn,props:mergeEmitsOrPropsOptions,emits:mergeEmitsOrPropsOptions,methods:mergeObjectOptions,computed:mergeObjectOptions,beforeCreate:mergeAsArray,created:mergeAsArray,beforeMount:mergeAsArray,mounted:mergeAsArray,beforeUpdate:mergeAsArray,updated:mergeAsArray,beforeDestroy:mergeAsArray,beforeUnmount:mergeAsArray,destroyed:mergeAsArray,unmounted:mergeAsArray,activated:mergeAsArray,deactivated:mergeAsArray,errorCaptured:mergeAsArray,serverPrefetch:mergeAsArray,components:mergeObjectOptions,directives:mergeObjectOptions,watch:mergeWatchOptions,provide:mergeDataFn,inject:mergeInject};function mergeDataFn(_n,Cn){return Cn?_n?function(){return extend$3(isFunction$2(_n)?_n.call(this,this):_n,isFunction$2(Cn)?Cn.call(this,this):Cn)}:Cn:_n}function mergeInject(_n,Cn){return mergeObjectOptions(normalizeInject(_n),normalizeInject(Cn))}function normalizeInject(_n){if(isArray$3(_n)){const Cn={};for(let $n=0;$n<_n.length;$n++)Cn[_n[$n]]=_n[$n];return Cn}return _n}function mergeAsArray(_n,Cn){return _n?[...new Set([].concat(_n,Cn))]:Cn}function mergeObjectOptions(_n,Cn){return _n?extend$3(Object.create(null),_n,Cn):Cn}function mergeEmitsOrPropsOptions(_n,Cn){return _n?isArray$3(_n)&&isArray$3(Cn)?[...new Set([..._n,...Cn])]:extend$3(Object.create(null),normalizePropsOrEmits(_n),normalizePropsOrEmits(Cn??{})):Cn}function mergeWatchOptions(_n,Cn){if(!_n)return Cn;if(!Cn)return _n;const $n=extend$3(Object.create(null),_n);for(const Nn in Cn)$n[Nn]=mergeAsArray(_n[Nn],Cn[Nn]);return $n}function createAppContext(){return{app:null,config:{isNativeTag:NO,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 uid$1=0;function createAppAPI(_n,Cn){return function(Nn,Bn=null){isFunction$2(Nn)||(Nn=extend$3({},Nn)),Bn!=null&&!isObject$5(Bn)&&(Bn=null);const Ln=createAppContext(),In=new WeakSet;let Pn=!1;const Dn=Ln.app={_uid:uid$1++,_component:Nn,_props:Bn,_container:null,_context:Ln,_instance:null,version:version$1,get config(){return Ln.config},set config(Un){},use(Un,...Hn){return In.has(Un)||(Un&&isFunction$2(Un.install)?(In.add(Un),Un.install(Dn,...Hn)):isFunction$2(Un)&&(In.add(Un),Un(Dn,...Hn))),Dn},mixin(Un){return Ln.mixins.includes(Un)||Ln.mixins.push(Un),Dn},component(Un,Hn){return Hn?(Ln.components[Un]=Hn,Dn):Ln.components[Un]},directive(Un,Hn){return Hn?(Ln.directives[Un]=Hn,Dn):Ln.directives[Un]},mount(Un,Hn,Xn){if(!Pn){const Gn=createVNode(Nn,Bn);return Gn.appContext=Ln,Hn&&Cn?Cn(Gn,Un):_n(Gn,Un,Xn),Pn=!0,Dn._container=Un,Un.__vue_app__=Dn,getExposeProxy(Gn.component)||Gn.component.proxy}},unmount(){Pn&&(_n(null,Dn._container),delete Dn._container.__vue_app__)},provide(Un,Hn){return Ln.provides[Un]=Hn,Dn},runWithContext(Un){currentApp=Dn;try{return Un()}finally{currentApp=null}}};return Dn}}let currentApp=null;function provide(_n,Cn){if(currentInstance){let $n=currentInstance.provides;const Nn=currentInstance.parent&¤tInstance.parent.provides;Nn===$n&&($n=currentInstance.provides=Object.create(Nn)),$n[_n]=Cn}}function inject(_n,Cn,$n=!1){const Nn=currentInstance||currentRenderingInstance;if(Nn||currentApp){const Bn=Nn?Nn.parent==null?Nn.vnode.appContext&&Nn.vnode.appContext.provides:Nn.parent.provides:currentApp._context.provides;if(Bn&&_n in Bn)return Bn[_n];if(arguments.length>1)return $n&&isFunction$2(Cn)?Cn.call(Nn&&Nn.proxy):Cn}}function initProps(_n,Cn,$n,Nn=!1){const Bn={},Ln={};def(Ln,InternalObjectKey,1),_n.propsDefaults=Object.create(null),setFullProps(_n,Cn,Bn,Ln);for(const In in _n.propsOptions[0])In in Bn||(Bn[In]=void 0);$n?_n.props=Nn?Bn:shallowReactive(Bn):_n.type.props?_n.props=Bn:_n.props=Ln,_n.attrs=Ln}function updateProps(_n,Cn,$n,Nn){const{props:Bn,attrs:Ln,vnode:{patchFlag:In}}=_n,Pn=toRaw(Bn),[Dn]=_n.propsOptions;let Un=!1;if((Nn||In>0)&&!(In&16)){if(In&8){const Hn=_n.vnode.dynamicProps;for(let Xn=0;Xn<Hn.length;Xn++){let Gn=Hn[Xn];if(isEmitListener(_n.emitsOptions,Gn))continue;const ei=Cn[Gn];if(Dn)if(hasOwn(Ln,Gn))ei!==Ln[Gn]&&(Ln[Gn]=ei,Un=!0);else{const nr=camelize(Gn);Bn[nr]=resolvePropValue(Dn,Pn,nr,ei,_n,!1)}else ei!==Ln[Gn]&&(Ln[Gn]=ei,Un=!0)}}}else{setFullProps(_n,Cn,Bn,Ln)&&(Un=!0);let Hn;for(const Xn in Pn)(!Cn||!hasOwn(Cn,Xn)&&((Hn=hyphenate(Xn))===Xn||!hasOwn(Cn,Hn)))&&(Dn?$n&&($n[Xn]!==void 0||$n[Hn]!==void 0)&&(Bn[Xn]=resolvePropValue(Dn,Pn,Xn,void 0,_n,!0)):delete Bn[Xn]);if(Ln!==Pn)for(const Xn in Ln)(!Cn||!hasOwn(Cn,Xn))&&(delete Ln[Xn],Un=!0)}Un&&trigger(_n,"set","$attrs")}function setFullProps(_n,Cn,$n,Nn){const[Bn,Ln]=_n.propsOptions;let In=!1,Pn;if(Cn)for(let Dn in Cn){if(isReservedProp(Dn))continue;const Un=Cn[Dn];let Hn;Bn&&hasOwn(Bn,Hn=camelize(Dn))?!Ln||!Ln.includes(Hn)?$n[Hn]=Un:(Pn||(Pn={}))[Hn]=Un:isEmitListener(_n.emitsOptions,Dn)||(!(Dn in Nn)||Un!==Nn[Dn])&&(Nn[Dn]=Un,In=!0)}if(Ln){const Dn=toRaw($n),Un=Pn||EMPTY_OBJ;for(let Hn=0;Hn<Ln.length;Hn++){const Xn=Ln[Hn];$n[Xn]=resolvePropValue(Bn,Dn,Xn,Un[Xn],_n,!hasOwn(Un,Xn))}}return In}function resolvePropValue(_n,Cn,$n,Nn,Bn,Ln){const In=_n[$n];if(In!=null){const Pn=hasOwn(In,"default");if(Pn&&Nn===void 0){const Dn=In.default;if(In.type!==Function&&!In.skipFactory&&isFunction$2(Dn)){const{propsDefaults:Un}=Bn;$n in Un?Nn=Un[$n]:(setCurrentInstance(Bn),Nn=Un[$n]=Dn.call(null,Cn),unsetCurrentInstance())}else Nn=Dn}In[0]&&(Ln&&!Pn?Nn=!1:In[1]&&(Nn===""||Nn===hyphenate($n))&&(Nn=!0))}return Nn}function normalizePropsOptions(_n,Cn,$n=!1){const Nn=Cn.propsCache,Bn=Nn.get(_n);if(Bn)return Bn;const Ln=_n.props,In={},Pn=[];let Dn=!1;if(!isFunction$2(_n)){const Hn=Xn=>{Dn=!0;const[Gn,ei]=normalizePropsOptions(Xn,Cn,!0);extend$3(In,Gn),ei&&Pn.push(...ei)};!$n&&Cn.mixins.length&&Cn.mixins.forEach(Hn),_n.extends&&Hn(_n.extends),_n.mixins&&_n.mixins.forEach(Hn)}if(!Ln&&!Dn)return isObject$5(_n)&&Nn.set(_n,EMPTY_ARR),EMPTY_ARR;if(isArray$3(Ln))for(let Hn=0;Hn<Ln.length;Hn++){const Xn=camelize(Ln[Hn]);validatePropName(Xn)&&(In[Xn]=EMPTY_OBJ)}else if(Ln)for(const Hn in Ln){const Xn=camelize(Hn);if(validatePropName(Xn)){const Gn=Ln[Hn],ei=In[Xn]=isArray$3(Gn)||isFunction$2(Gn)?{type:Gn}:extend$3({},Gn);if(ei){const nr=getTypeIndex(Boolean,ei.type),ni=getTypeIndex(String,ei.type);ei[0]=nr>-1,ei[1]=ni<0||nr<ni,(nr>-1||hasOwn(ei,"default"))&&Pn.push(Xn)}}}const Un=[In,Pn];return isObject$5(_n)&&Nn.set(_n,Un),Un}function validatePropName(_n){return _n[0]!=="$"}function getType(_n){const Cn=_n&&_n.toString().match(/^\s*(function|class) (\w+)/);return Cn?Cn[2]:_n===null?"null":""}function isSameType(_n,Cn){return getType(_n)===getType(Cn)}function getTypeIndex(_n,Cn){return isArray$3(Cn)?Cn.findIndex($n=>isSameType($n,_n)):isFunction$2(Cn)&&isSameType(Cn,_n)?0:-1}const isInternalKey=_n=>_n[0]==="_"||_n==="$stable",normalizeSlotValue=_n=>isArray$3(_n)?_n.map(normalizeVNode):[normalizeVNode(_n)],normalizeSlot=(_n,Cn,$n)=>{if(Cn._n)return Cn;const Nn=withCtx((...Bn)=>normalizeSlotValue(Cn(...Bn)),$n);return Nn._c=!1,Nn},normalizeObjectSlots=(_n,Cn,$n)=>{const Nn=_n._ctx;for(const Bn in _n){if(isInternalKey(Bn))continue;const Ln=_n[Bn];if(isFunction$2(Ln))Cn[Bn]=normalizeSlot(Bn,Ln,Nn);else if(Ln!=null){const In=normalizeSlotValue(Ln);Cn[Bn]=()=>In}}},normalizeVNodeSlots=(_n,Cn)=>{const $n=normalizeSlotValue(Cn);_n.slots.default=()=>$n},initSlots=(_n,Cn)=>{if(_n.vnode.shapeFlag&32){const $n=Cn._;$n?(_n.slots=toRaw(Cn),def(Cn,"_",$n)):normalizeObjectSlots(Cn,_n.slots={})}else _n.slots={},Cn&&normalizeVNodeSlots(_n,Cn);def(_n.slots,InternalObjectKey,1)},updateSlots=(_n,Cn,$n)=>{const{vnode:Nn,slots:Bn}=_n;let Ln=!0,In=EMPTY_OBJ;if(Nn.shapeFlag&32){const Pn=Cn._;Pn?$n&&Pn===1?Ln=!1:(extend$3(Bn,Cn),!$n&&Pn===1&&delete Bn._):(Ln=!Cn.$stable,normalizeObjectSlots(Cn,Bn)),In=Cn}else Cn&&(normalizeVNodeSlots(_n,Cn),In={default:1});if(Ln)for(const Pn in Bn)!isInternalKey(Pn)&&In[Pn]==null&&delete Bn[Pn]};function setRef(_n,Cn,$n,Nn,Bn=!1){if(isArray$3(_n)){_n.forEach((Gn,ei)=>setRef(Gn,Cn&&(isArray$3(Cn)?Cn[ei]:Cn),$n,Nn,Bn));return}if(isAsyncWrapper(Nn)&&!Bn)return;const Ln=Nn.shapeFlag&4?getExposeProxy(Nn.component)||Nn.component.proxy:Nn.el,In=Bn?null:Ln,{i:Pn,r:Dn}=_n,Un=Cn&&Cn.r,Hn=Pn.refs===EMPTY_OBJ?Pn.refs={}:Pn.refs,Xn=Pn.setupState;if(Un!=null&&Un!==Dn&&(isString$1(Un)?(Hn[Un]=null,hasOwn(Xn,Un)&&(Xn[Un]=null)):isRef(Un)&&(Un.value=null)),isFunction$2(Dn))callWithErrorHandling(Dn,Pn,12,[In,Hn]);else{const Gn=isString$1(Dn),ei=isRef(Dn);if(Gn||ei){const nr=()=>{if(_n.f){const ni=Gn?hasOwn(Xn,Dn)?Xn[Dn]:Hn[Dn]:Dn.value;Bn?isArray$3(ni)&&remove(ni,Ln):isArray$3(ni)?ni.includes(Ln)||ni.push(Ln):Gn?(Hn[Dn]=[Ln],hasOwn(Xn,Dn)&&(Xn[Dn]=Hn[Dn])):(Dn.value=[Ln],_n.k&&(Hn[_n.k]=Dn.value))}else Gn?(Hn[Dn]=In,hasOwn(Xn,Dn)&&(Xn[Dn]=In)):ei&&(Dn.value=In,_n.k&&(Hn[_n.k]=In))};In?(nr.id=-1,queuePostRenderEffect(nr,$n)):nr()}}}const queuePostRenderEffect=queueEffectWithSuspense;function createRenderer(_n){return baseCreateRenderer(_n)}function baseCreateRenderer(_n,Cn){const $n=getGlobalThis();$n.__VUE__=!0;const{insert:Nn,remove:Bn,patchProp:Ln,createElement:In,createText:Pn,createComment:Dn,setText:Un,setElementText:Hn,parentNode:Xn,nextSibling:Gn,setScopeId:ei=NOOP,insertStaticContent:nr}=_n,ni=(di,hi,wi,Ii=null,Ni=null,Bi=null,Ui=!1,ji=null,Wi=!!hi.dynamicChildren)=>{if(di===hi)return;di&&!isSameVNodeType(di,hi)&&(Ii=Qo(di),Pi(di,Ni,Bi,!0),di=null),hi.patchFlag===-2&&(Wi=!1,hi.dynamicChildren=null);const{type:Vi,ref:Gi,shapeFlag:zi}=hi;switch(Vi){case Text:ai(di,hi,wi,Ii);break;case Comment:si(di,hi,wi,Ii);break;case Static:di==null&&gi(hi,wi,Ii,Ui);break;case Fragment:_i(di,hi,wi,Ii,Ni,Bi,Ui,ji,Wi);break;default:zi&1?Ei(di,hi,wi,Ii,Ni,Bi,Ui,ji,Wi):zi&6?yi(di,hi,wi,Ii,Ni,Bi,Ui,ji,Wi):(zi&64||zi&128)&&Vi.process(di,hi,wi,Ii,Ni,Bi,Ui,ji,Wi,Go)}Gi!=null&&Ni&&setRef(Gi,di&&di.ref,Bi,hi||di,!hi)},ai=(di,hi,wi,Ii)=>{if(di==null)Nn(hi.el=Pn(hi.children),wi,Ii);else{const Ni=hi.el=di.el;hi.children!==di.children&&Un(Ni,hi.children)}},si=(di,hi,wi,Ii)=>{di==null?Nn(hi.el=Dn(hi.children||""),wi,Ii):hi.el=di.el},gi=(di,hi,wi,Ii)=>{[di.el,di.anchor]=nr(di.children,hi,wi,Ii,di.el,di.anchor)},Si=({el:di,anchor:hi},wi,Ii)=>{let Ni;for(;di&&di!==hi;)Ni=Gn(di),Nn(di,wi,Ii),di=Ni;Nn(hi,wi,Ii)},ri=({el:di,anchor:hi})=>{let wi;for(;di&&di!==hi;)wi=Gn(di),Bn(di),di=wi;Bn(hi)},Ei=(di,hi,wi,Ii,Ni,Bi,Ui,ji,Wi)=>{Ui=Ui||hi.type==="svg",di==null?$i(hi,wi,Ii,Ni,Bi,Ui,ji,Wi):oi(di,hi,Ni,Bi,Ui,ji,Wi)},$i=(di,hi,wi,Ii,Ni,Bi,Ui,ji)=>{let Wi,Vi;const{type:Gi,props:zi,shapeFlag:Yo,transition:Li,dirs:Zo}=di;if(Wi=di.el=In(di.type,Bi,zi&&zi.is,zi),Yo&8?Hn(Wi,di.children):Yo&16&&li(di.children,Wi,null,Ii,Ni,Bi&&Gi!=="foreignObject",Ui,ji),Zo&&invokeDirectiveHook(di,null,Ii,"created"),zn(Wi,di,di.scopeId,Ui,Ii),zi){for(const fa in zi)fa!=="value"&&!isReservedProp(fa)&&Ln(Wi,fa,null,zi[fa],Bi,di.children,Ii,Ni,Zi);"value"in zi&&Ln(Wi,"value",null,zi.value),(Vi=zi.onVnodeBeforeMount)&&invokeVNodeHook(Vi,Ii,di)}Zo&&invokeDirectiveHook(di,null,Ii,"beforeMount");const da=needTransition(Ni,Li);da&&Li.beforeEnter(Wi),Nn(Wi,hi,wi),((Vi=zi&&zi.onVnodeMounted)||da||Zo)&&queuePostRenderEffect(()=>{Vi&&invokeVNodeHook(Vi,Ii,di),da&&Li.enter(Wi),Zo&&invokeDirectiveHook(di,null,Ii,"mounted")},Ni)},zn=(di,hi,wi,Ii,Ni)=>{if(wi&&ei(di,wi),Ii)for(let Bi=0;Bi<Ii.length;Bi++)ei(di,Ii[Bi]);if(Ni){let Bi=Ni.subTree;if(hi===Bi){const Ui=Ni.vnode;zn(di,Ui,Ui.scopeId,Ui.slotScopeIds,Ni.parent)}}},li=(di,hi,wi,Ii,Ni,Bi,Ui,ji,Wi=0)=>{for(let Vi=Wi;Vi<di.length;Vi++){const Gi=di[Vi]=ji?cloneIfMounted(di[Vi]):normalizeVNode(di[Vi]);ni(null,Gi,hi,wi,Ii,Ni,Bi,Ui,ji)}},oi=(di,hi,wi,Ii,Ni,Bi,Ui)=>{const ji=hi.el=di.el;let{patchFlag:Wi,dynamicChildren:Vi,dirs:Gi}=hi;Wi|=di.patchFlag&16;const zi=di.props||EMPTY_OBJ,Yo=hi.props||EMPTY_OBJ;let Li;wi&&toggleRecurse(wi,!1),(Li=Yo.onVnodeBeforeUpdate)&&invokeVNodeHook(Li,wi,hi,di),Gi&&invokeDirectiveHook(hi,di,wi,"beforeUpdate"),wi&&toggleRecurse(wi,!0);const Zo=Ni&&hi.type!=="foreignObject";if(Vi?ui(di.dynamicChildren,Vi,ji,wi,Ii,Zo,Bi):Ui||Ri(di,hi,ji,null,wi,Ii,Zo,Bi,!1),Wi>0){if(Wi&16)mi(ji,hi,zi,Yo,wi,Ii,Ni);else if(Wi&2&&zi.class!==Yo.class&&Ln(ji,"class",null,Yo.class,Ni),Wi&4&&Ln(ji,"style",zi.style,Yo.style,Ni),Wi&8){const da=hi.dynamicProps;for(let fa=0;fa<da.length;fa++){const Ca=da[fa],wa=zi[Ca],Na=Yo[Ca];(Na!==wa||Ca==="value")&&Ln(ji,Ca,wa,Na,Ni,di.children,wi,Ii,Zi)}}Wi&1&&di.children!==hi.children&&Hn(ji,hi.children)}else!Ui&&Vi==null&&mi(ji,hi,zi,Yo,wi,Ii,Ni);((Li=Yo.onVnodeUpdated)||Gi)&&queuePostRenderEffect(()=>{Li&&invokeVNodeHook(Li,wi,hi,di),Gi&&invokeDirectiveHook(hi,di,wi,"updated")},Ii)},ui=(di,hi,wi,Ii,Ni,Bi,Ui)=>{for(let ji=0;ji<hi.length;ji++){const Wi=di[ji],Vi=hi[ji],Gi=Wi.el&&(Wi.type===Fragment||!isSameVNodeType(Wi,Vi)||Wi.shapeFlag&70)?Xn(Wi.el):wi;ni(Wi,Vi,Gi,null,Ii,Ni,Bi,Ui,!0)}},mi=(di,hi,wi,Ii,Ni,Bi,Ui)=>{if(wi!==Ii){if(wi!==EMPTY_OBJ)for(const ji in wi)!isReservedProp(ji)&&!(ji in Ii)&&Ln(di,ji,wi[ji],null,Ui,hi.children,Ni,Bi,Zi);for(const ji in Ii){if(isReservedProp(ji))continue;const Wi=Ii[ji],Vi=wi[ji];Wi!==Vi&&ji!=="value"&&Ln(di,ji,Vi,Wi,Ui,hi.children,Ni,Bi,Zi)}"value"in Ii&&Ln(di,"value",wi.value,Ii.value)}},_i=(di,hi,wi,Ii,Ni,Bi,Ui,ji,Wi)=>{const Vi=hi.el=di?di.el:Pn(""),Gi=hi.anchor=di?di.anchor:Pn("");let{patchFlag:zi,dynamicChildren:Yo,slotScopeIds:Li}=hi;Li&&(ji=ji?ji.concat(Li):Li),di==null?(Nn(Vi,wi,Ii),Nn(Gi,wi,Ii),li(hi.children,wi,Gi,Ni,Bi,Ui,ji,Wi)):zi>0&&zi&64&&Yo&&di.dynamicChildren?(ui(di.dynamicChildren,Yo,wi,Ni,Bi,Ui,ji),(hi.key!=null||Ni&&hi===Ni.subTree)&&traverseStaticChildren(di,hi,!0)):Ri(di,hi,wi,Gi,Ni,Bi,Ui,ji,Wi)},yi=(di,hi,wi,Ii,Ni,Bi,Ui,ji,Wi)=>{hi.slotScopeIds=ji,di==null?hi.shapeFlag&512?Ni.ctx.activate(hi,wi,Ii,Ui,Wi):Fi(hi,wi,Ii,Ni,Bi,Ui,Wi):ta(di,hi,Wi)},Fi=(di,hi,wi,Ii,Ni,Bi,Ui)=>{const ji=di.component=createComponentInstance(di,Ii,Ni);if(isKeepAlive(di)&&(ji.ctx.renderer=Go),setupComponent(ji),ji.asyncDep){if(Ni&&Ni.registerDep(ji,qo),!di.el){const Wi=ji.subTree=createVNode(Comment);si(null,Wi,hi,wi)}return}qo(ji,di,hi,wi,Ni,Bi,Ui)},ta=(di,hi,wi)=>{const Ii=hi.component=di.component;if(shouldUpdateComponent(di,hi,wi))if(Ii.asyncDep&&!Ii.asyncResolved){Ci(Ii,hi,wi);return}else Ii.next=hi,invalidateJob(Ii.update),Ii.update();else hi.el=di.el,Ii.vnode=hi},qo=(di,hi,wi,Ii,Ni,Bi,Ui)=>{const ji=()=>{if(di.isMounted){let{next:Gi,bu:zi,u:Yo,parent:Li,vnode:Zo}=di,da=Gi,fa;toggleRecurse(di,!1),Gi?(Gi.el=Zo.el,Ci(di,Gi,Ui)):Gi=Zo,zi&&invokeArrayFns(zi),(fa=Gi.props&&Gi.props.onVnodeBeforeUpdate)&&invokeVNodeHook(fa,Li,Gi,Zo),toggleRecurse(di,!0);const Ca=renderComponentRoot(di),wa=di.subTree;di.subTree=Ca,ni(wa,Ca,Xn(wa.el),Qo(wa),di,Ni,Bi),Gi.el=Ca.el,da===null&&updateHOCHostEl(di,Ca.el),Yo&&queuePostRenderEffect(Yo,Ni),(fa=Gi.props&&Gi.props.onVnodeUpdated)&&queuePostRenderEffect(()=>invokeVNodeHook(fa,Li,Gi,Zo),Ni)}else{let Gi;const{el:zi,props:Yo}=hi,{bm:Li,m:Zo,parent:da}=di,fa=isAsyncWrapper(hi);if(toggleRecurse(di,!1),Li&&invokeArrayFns(Li),!fa&&(Gi=Yo&&Yo.onVnodeBeforeMount)&&invokeVNodeHook(Gi,da,hi),toggleRecurse(di,!0),zi&&ha){const Ca=()=>{di.subTree=renderComponentRoot(di),ha(zi,di.subTree,di,Ni,null)};fa?hi.type.__asyncLoader().then(()=>!di.isUnmounted&&Ca()):Ca()}else{const Ca=di.subTree=renderComponentRoot(di);ni(null,Ca,wi,Ii,di,Ni,Bi),hi.el=Ca.el}if(Zo&&queuePostRenderEffect(Zo,Ni),!fa&&(Gi=Yo&&Yo.onVnodeMounted)){const Ca=hi;queuePostRenderEffect(()=>invokeVNodeHook(Gi,da,Ca),Ni)}(hi.shapeFlag&256||da&&isAsyncWrapper(da.vnode)&&da.vnode.shapeFlag&256)&&di.a&&queuePostRenderEffect(di.a,Ni),di.isMounted=!0,hi=wi=Ii=null}},Wi=di.effect=new ReactiveEffect(ji,()=>queueJob(Vi),di.scope),Vi=di.update=()=>Wi.run();Vi.id=di.uid,toggleRecurse(di,!0),Vi()},Ci=(di,hi,wi)=>{hi.component=di;const Ii=di.vnode.props;di.vnode=hi,di.next=null,updateProps(di,hi.props,Ii,wi),updateSlots(di,hi.children,wi),pauseTracking(),flushPreFlushCbs(),resetTracking()},Ri=(di,hi,wi,Ii,Ni,Bi,Ui,ji,Wi=!1)=>{const Vi=di&&di.children,Gi=di?di.shapeFlag:0,zi=hi.children,{patchFlag:Yo,shapeFlag:Li}=hi;if(Yo>0){if(Yo&128){aa(Vi,zi,wi,Ii,Ni,Bi,Ui,ji,Wi);return}else if(Yo&256){Hi(Vi,zi,wi,Ii,Ni,Bi,Ui,ji,Wi);return}}Li&8?(Gi&16&&Zi(Vi,Ni,Bi),zi!==Vi&&Hn(wi,zi)):Gi&16?Li&16?aa(Vi,zi,wi,Ii,Ni,Bi,Ui,ji,Wi):Zi(Vi,Ni,Bi,!0):(Gi&8&&Hn(wi,""),Li&16&&li(zi,wi,Ii,Ni,Bi,Ui,ji,Wi))},Hi=(di,hi,wi,Ii,Ni,Bi,Ui,ji,Wi)=>{di=di||EMPTY_ARR,hi=hi||EMPTY_ARR;const Vi=di.length,Gi=hi.length,zi=Math.min(Vi,Gi);let Yo;for(Yo=0;Yo<zi;Yo++){const Li=hi[Yo]=Wi?cloneIfMounted(hi[Yo]):normalizeVNode(hi[Yo]);ni(di[Yo],Li,wi,null,Ni,Bi,Ui,ji,Wi)}Vi>Gi?Zi(di,Ni,Bi,!0,!1,zi):li(hi,wi,Ii,Ni,Bi,Ui,ji,Wi,zi)},aa=(di,hi,wi,Ii,Ni,Bi,Ui,ji,Wi)=>{let Vi=0;const Gi=hi.length;let zi=di.length-1,Yo=Gi-1;for(;Vi<=zi&&Vi<=Yo;){const Li=di[Vi],Zo=hi[Vi]=Wi?cloneIfMounted(hi[Vi]):normalizeVNode(hi[Vi]);if(isSameVNodeType(Li,Zo))ni(Li,Zo,wi,null,Ni,Bi,Ui,ji,Wi);else break;Vi++}for(;Vi<=zi&&Vi<=Yo;){const Li=di[zi],Zo=hi[Yo]=Wi?cloneIfMounted(hi[Yo]):normalizeVNode(hi[Yo]);if(isSameVNodeType(Li,Zo))ni(Li,Zo,wi,null,Ni,Bi,Ui,ji,Wi);else break;zi--,Yo--}if(Vi>zi){if(Vi<=Yo){const Li=Yo+1,Zo=Li<Gi?hi[Li].el:Ii;for(;Vi<=Yo;)ni(null,hi[Vi]=Wi?cloneIfMounted(hi[Vi]):normalizeVNode(hi[Vi]),wi,Zo,Ni,Bi,Ui,ji,Wi),Vi++}}else if(Vi>Yo)for(;Vi<=zi;)Pi(di[Vi],Ni,Bi,!0),Vi++;else{const Li=Vi,Zo=Vi,da=new Map;for(Vi=Zo;Vi<=Yo;Vi++){const Xi=hi[Vi]=Wi?cloneIfMounted(hi[Vi]):normalizeVNode(hi[Vi]);Xi.key!=null&&da.set(Xi.key,Vi)}let fa,Ca=0;const wa=Yo-Zo+1;let Na=!1,Sa=0;const xa=new Array(wa);for(Vi=0;Vi<wa;Vi++)xa[Vi]=0;for(Vi=Li;Vi<=zi;Vi++){const Xi=di[Vi];if(Ca>=wa){Pi(Xi,Ni,Bi,!0);continue}let ea;if(Xi.key!=null)ea=da.get(Xi.key);else for(fa=Zo;fa<=Yo;fa++)if(xa[fa-Zo]===0&&isSameVNodeType(Xi,hi[fa])){ea=fa;break}ea===void 0?Pi(Xi,Ni,Bi,!0):(xa[ea-Zo]=Vi+1,ea>=Sa?Sa=ea:Na=!0,ni(Xi,hi[ea],wi,null,Ni,Bi,Ui,ji,Wi),Ca++)}const xi=Na?getSequence(xa):EMPTY_ARR;for(fa=xi.length-1,Vi=wa-1;Vi>=0;Vi--){const Xi=Zo+Vi,ea=hi[Xi],ga=Xi+1<Gi?hi[Xi+1].el:Ii;xa[Vi]===0?ni(null,ea,wi,ga,Ni,Bi,Ui,ji,Wi):Na&&(fa<0||Vi!==xi[fa]?sa(ea,wi,ga,2):fa--)}}},sa=(di,hi,wi,Ii,Ni=null)=>{const{el:Bi,type:Ui,transition:ji,children:Wi,shapeFlag:Vi}=di;if(Vi&6){sa(di.component.subTree,hi,wi,Ii);return}if(Vi&128){di.suspense.move(hi,wi,Ii);return}if(Vi&64){Ui.move(di,hi,wi,Go);return}if(Ui===Fragment){Nn(Bi,hi,wi);for(let zi=0;zi<Wi.length;zi++)sa(Wi[zi],hi,wi,Ii);Nn(di.anchor,hi,wi);return}if(Ui===Static){Si(di,hi,wi);return}if(Ii!==2&&Vi&1&&ji)if(Ii===0)ji.beforeEnter(Bi),Nn(Bi,hi,wi),queuePostRenderEffect(()=>ji.enter(Bi),Ni);else{const{leave:zi,delayLeave:Yo,afterLeave:Li}=ji,Zo=()=>Nn(Bi,hi,wi),da=()=>{zi(Bi,()=>{Zo(),Li&&Li()})};Yo?Yo(Bi,Zo,da):da()}else Nn(Bi,hi,wi)},Pi=(di,hi,wi,Ii=!1,Ni=!1)=>{const{type:Bi,props:Ui,ref:ji,children:Wi,dynamicChildren:Vi,shapeFlag:Gi,patchFlag:zi,dirs:Yo}=di;if(ji!=null&&setRef(ji,null,wi,di,!0),Gi&256){hi.ctx.deactivate(di);return}const Li=Gi&1&&Yo,Zo=!isAsyncWrapper(di);let da;if(Zo&&(da=Ui&&Ui.onVnodeBeforeUnmount)&&invokeVNodeHook(da,hi,di),Gi&6)Ji(di.component,wi,Ii);else{if(Gi&128){di.suspense.unmount(wi,Ii);return}Li&&invokeDirectiveHook(di,null,hi,"beforeUnmount"),Gi&64?di.type.remove(di,hi,wi,Ni,Go,Ii):Vi&&(Bi!==Fragment||zi>0&&zi&64)?Zi(Vi,hi,wi,!1,!0):(Bi===Fragment&&zi&384||!Ni&&Gi&16)&&Zi(Wi,hi,wi),Ii&&Ki(di)}(Zo&&(da=Ui&&Ui.onVnodeUnmounted)||Li)&&queuePostRenderEffect(()=>{da&&invokeVNodeHook(da,hi,di),Li&&invokeDirectiveHook(di,null,hi,"unmounted")},wi)},Ki=di=>{const{type:hi,el:wi,anchor:Ii,transition:Ni}=di;if(hi===Fragment){Yi(wi,Ii);return}if(hi===Static){ri(di);return}const Bi=()=>{Bn(wi),Ni&&!Ni.persisted&&Ni.afterLeave&&Ni.afterLeave()};if(di.shapeFlag&1&&Ni&&!Ni.persisted){const{leave:Ui,delayLeave:ji}=Ni,Wi=()=>Ui(wi,Bi);ji?ji(di.el,Bi,Wi):Wi()}else Bi()},Yi=(di,hi)=>{let wi;for(;di!==hi;)wi=Gn(di),Bn(di),di=wi;Bn(hi)},Ji=(di,hi,wi)=>{const{bum:Ii,scope:Ni,update:Bi,subTree:Ui,um:ji}=di;Ii&&invokeArrayFns(Ii),Ni.stop(),Bi&&(Bi.active=!1,Pi(Ui,di,hi,wi)),ji&&queuePostRenderEffect(ji,hi),queuePostRenderEffect(()=>{di.isUnmounted=!0},hi),hi&&hi.pendingBranch&&!hi.isUnmounted&&di.asyncDep&&!di.asyncResolved&&di.suspenseId===hi.pendingId&&(hi.deps--,hi.deps===0&&hi.resolve())},Zi=(di,hi,wi,Ii=!1,Ni=!1,Bi=0)=>{for(let Ui=Bi;Ui<di.length;Ui++)Pi(di[Ui],hi,wi,Ii,Ni)},Qo=di=>di.shapeFlag&6?Qo(di.component.subTree):di.shapeFlag&128?di.suspense.next():Gn(di.anchor||di.el),la=(di,hi,wi)=>{di==null?hi._vnode&&Pi(hi._vnode,null,null,!0):ni(hi._vnode||null,di,hi,null,null,null,wi),flushPreFlushCbs(),flushPostFlushCbs(),hi._vnode=di},Go={p:ni,um:Pi,m:sa,r:Ki,mt:Fi,mc:li,pc:Ri,pbc:ui,n:Qo,o:_n};let ra,ha;return Cn&&([ra,ha]=Cn(Go)),{render:la,hydrate:ra,createApp:createAppAPI(la,ra)}}function toggleRecurse({effect:_n,update:Cn},$n){_n.allowRecurse=Cn.allowRecurse=$n}function needTransition(_n,Cn){return(!_n||_n&&!_n.pendingBranch)&&Cn&&!Cn.persisted}function traverseStaticChildren(_n,Cn,$n=!1){const Nn=_n.children,Bn=Cn.children;if(isArray$3(Nn)&&isArray$3(Bn))for(let Ln=0;Ln<Nn.length;Ln++){const In=Nn[Ln];let Pn=Bn[Ln];Pn.shapeFlag&1&&!Pn.dynamicChildren&&((Pn.patchFlag<=0||Pn.patchFlag===32)&&(Pn=Bn[Ln]=cloneIfMounted(Bn[Ln]),Pn.el=In.el),$n||traverseStaticChildren(In,Pn)),Pn.type===Text&&(Pn.el=In.el)}}function getSequence(_n){const Cn=_n.slice(),$n=[0];let Nn,Bn,Ln,In,Pn;const Dn=_n.length;for(Nn=0;Nn<Dn;Nn++){const Un=_n[Nn];if(Un!==0){if(Bn=$n[$n.length-1],_n[Bn]<Un){Cn[Nn]=Bn,$n.push(Nn);continue}for(Ln=0,In=$n.length-1;Ln<In;)Pn=Ln+In>>1,_n[$n[Pn]]<Un?Ln=Pn+1:In=Pn;Un<_n[$n[Ln]]&&(Ln>0&&(Cn[Nn]=$n[Ln-1]),$n[Ln]=Nn)}}for(Ln=$n.length,In=$n[Ln-1];Ln-- >0;)$n[Ln]=In,In=Cn[In];return $n}const isTeleport=_n=>_n.__isTeleport,isTeleportDisabled=_n=>_n&&(_n.disabled||_n.disabled===""),isTargetSVG=_n=>typeof SVGElement<"u"&&_n instanceof SVGElement,resolveTarget=(_n,Cn)=>{const $n=_n&&_n.to;return isString$1($n)?Cn?Cn($n):null:$n},TeleportImpl={__isTeleport:!0,process(_n,Cn,$n,Nn,Bn,Ln,In,Pn,Dn,Un){const{mc:Hn,pc:Xn,pbc:Gn,o:{insert:ei,querySelector:nr,createText:ni,createComment:ai}}=Un,si=isTeleportDisabled(Cn.props);let{shapeFlag:gi,children:Si,dynamicChildren:ri}=Cn;if(_n==null){const Ei=Cn.el=ni(""),$i=Cn.anchor=ni("");ei(Ei,$n,Nn),ei($i,$n,Nn);const zn=Cn.target=resolveTarget(Cn.props,nr),li=Cn.targetAnchor=ni("");zn&&(ei(li,zn),In=In||isTargetSVG(zn));const oi=(ui,mi)=>{gi&16&&Hn(Si,ui,mi,Bn,Ln,In,Pn,Dn)};si?oi($n,$i):zn&&oi(zn,li)}else{Cn.el=_n.el;const Ei=Cn.anchor=_n.anchor,$i=Cn.target=_n.target,zn=Cn.targetAnchor=_n.targetAnchor,li=isTeleportDisabled(_n.props),oi=li?$n:$i,ui=li?Ei:zn;if(In=In||isTargetSVG($i),ri?(Gn(_n.dynamicChildren,ri,oi,Bn,Ln,In,Pn),traverseStaticChildren(_n,Cn,!0)):Dn||Xn(_n,Cn,oi,ui,Bn,Ln,In,Pn,!1),si)li?Cn.props&&_n.props&&Cn.props.to!==_n.props.to&&(Cn.props.to=_n.props.to):moveTeleport(Cn,$n,Ei,Un,1);else if((Cn.props&&Cn.props.to)!==(_n.props&&_n.props.to)){const mi=Cn.target=resolveTarget(Cn.props,nr);mi&&moveTeleport(Cn,mi,null,Un,0)}else li&&moveTeleport(Cn,$i,zn,Un,1)}updateCssVars(Cn)},remove(_n,Cn,$n,Nn,{um:Bn,o:{remove:Ln}},In){const{shapeFlag:Pn,children:Dn,anchor:Un,targetAnchor:Hn,target:Xn,props:Gn}=_n;if(Xn&&Ln(Hn),In&&Ln(Un),Pn&16){const ei=In||!isTeleportDisabled(Gn);for(let nr=0;nr<Dn.length;nr++){const ni=Dn[nr];Bn(ni,Cn,$n,ei,!!ni.dynamicChildren)}}},move:moveTeleport,hydrate:hydrateTeleport};function moveTeleport(_n,Cn,$n,{o:{insert:Nn},m:Bn},Ln=2){Ln===0&&Nn(_n.targetAnchor,Cn,$n);const{el:In,anchor:Pn,shapeFlag:Dn,children:Un,props:Hn}=_n,Xn=Ln===2;if(Xn&&Nn(In,Cn,$n),(!Xn||isTeleportDisabled(Hn))&&Dn&16)for(let Gn=0;Gn<Un.length;Gn++)Bn(Un[Gn],Cn,$n,2);Xn&&Nn(Pn,Cn,$n)}function hydrateTeleport(_n,Cn,$n,Nn,Bn,Ln,{o:{nextSibling:In,parentNode:Pn,querySelector:Dn}},Un){const Hn=Cn.target=resolveTarget(Cn.props,Dn);if(Hn){const Xn=Hn._lpa||Hn.firstChild;if(Cn.shapeFlag&16)if(isTeleportDisabled(Cn.props))Cn.anchor=Un(In(_n),Cn,Pn(_n),$n,Nn,Bn,Ln),Cn.targetAnchor=Xn;else{Cn.anchor=In(_n);let Gn=Xn;for(;Gn;)if(Gn=In(Gn),Gn&&Gn.nodeType===8&&Gn.data==="teleport anchor"){Cn.targetAnchor=Gn,Hn._lpa=Cn.targetAnchor&&In(Cn.targetAnchor);break}Un(Xn,Cn,Hn,$n,Nn,Bn,Ln)}updateCssVars(Cn)}return Cn.anchor&&In(Cn.anchor)}const Teleport=TeleportImpl;function updateCssVars(_n){const Cn=_n.ctx;if(Cn&&Cn.ut){let $n=_n.children[0].el;for(;$n&&$n!==_n.targetAnchor;)$n.nodeType===1&&$n.setAttribute("data-v-owner",Cn.uid),$n=$n.nextSibling;Cn.ut()}}const Fragment=Symbol.for("v-fgt"),Text=Symbol.for("v-txt"),Comment=Symbol.for("v-cmt"),Static=Symbol.for("v-stc"),blockStack=[];let currentBlock=null;function openBlock(_n=!1){blockStack.push(currentBlock=_n?null:[])}function closeBlock(){blockStack.pop(),currentBlock=blockStack[blockStack.length-1]||null}let isBlockTreeEnabled=1;function setBlockTracking(_n){isBlockTreeEnabled+=_n}function setupBlock(_n){return _n.dynamicChildren=isBlockTreeEnabled>0?currentBlock||EMPTY_ARR:null,closeBlock(),isBlockTreeEnabled>0&¤tBlock&¤tBlock.push(_n),_n}function createElementBlock(_n,Cn,$n,Nn,Bn,Ln){return setupBlock(createBaseVNode(_n,Cn,$n,Nn,Bn,Ln,!0))}function createBlock(_n,Cn,$n,Nn,Bn){return setupBlock(createVNode(_n,Cn,$n,Nn,Bn,!0))}function isVNode(_n){return _n?_n.__v_isVNode===!0:!1}function isSameVNodeType(_n,Cn){return _n.type===Cn.type&&_n.key===Cn.key}const InternalObjectKey="__vInternal",normalizeKey=({key:_n})=>_n??null,normalizeRef=({ref:_n,ref_key:Cn,ref_for:$n})=>(typeof _n=="number"&&(_n=""+_n),_n!=null?isString$1(_n)||isRef(_n)||isFunction$2(_n)?{i:currentRenderingInstance,r:_n,k:Cn,f:!!$n}:_n:null);function createBaseVNode(_n,Cn=null,$n=null,Nn=0,Bn=null,Ln=_n===Fragment?0:1,In=!1,Pn=!1){const Dn={__v_isVNode:!0,__v_skip:!0,type:_n,props:Cn,key:Cn&&normalizeKey(Cn),ref:Cn&&normalizeRef(Cn),scopeId:currentScopeId,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:Ln,patchFlag:Nn,dynamicProps:Bn,dynamicChildren:null,appContext:null,ctx:currentRenderingInstance};return Pn?(normalizeChildren(Dn,$n),Ln&128&&_n.normalize(Dn)):$n&&(Dn.shapeFlag|=isString$1($n)?8:16),isBlockTreeEnabled>0&&!In&¤tBlock&&(Dn.patchFlag>0||Ln&6)&&Dn.patchFlag!==32&¤tBlock.push(Dn),Dn}const createVNode=_createVNode;function _createVNode(_n,Cn=null,$n=null,Nn=0,Bn=null,Ln=!1){if((!_n||_n===NULL_DYNAMIC_COMPONENT)&&(_n=Comment),isVNode(_n)){const Pn=cloneVNode(_n,Cn,!0);return $n&&normalizeChildren(Pn,$n),isBlockTreeEnabled>0&&!Ln&¤tBlock&&(Pn.shapeFlag&6?currentBlock[currentBlock.indexOf(_n)]=Pn:currentBlock.push(Pn)),Pn.patchFlag|=-2,Pn}if(isClassComponent(_n)&&(_n=_n.__vccOpts),Cn){Cn=guardReactiveProps(Cn);let{class:Pn,style:Dn}=Cn;Pn&&!isString$1(Pn)&&(Cn.class=normalizeClass(Pn)),isObject$5(Dn)&&(isProxy(Dn)&&!isArray$3(Dn)&&(Dn=extend$3({},Dn)),Cn.style=normalizeStyle(Dn))}const In=isString$1(_n)?1:isSuspense(_n)?128:isTeleport(_n)?64:isObject$5(_n)?4:isFunction$2(_n)?2:0;return createBaseVNode(_n,Cn,$n,Nn,Bn,In,Ln,!0)}function guardReactiveProps(_n){return _n?isProxy(_n)||InternalObjectKey in _n?extend$3({},_n):_n:null}function cloneVNode(_n,Cn,$n=!1){const{props:Nn,ref:Bn,patchFlag:Ln,children:In}=_n,Pn=Cn?mergeProps(Nn||{},Cn):Nn;return{__v_isVNode:!0,__v_skip:!0,type:_n.type,props:Pn,key:Pn&&normalizeKey(Pn),ref:Cn&&Cn.ref?$n&&Bn?isArray$3(Bn)?Bn.concat(normalizeRef(Cn)):[Bn,normalizeRef(Cn)]:normalizeRef(Cn):Bn,scopeId:_n.scopeId,slotScopeIds:_n.slotScopeIds,children:In,target:_n.target,targetAnchor:_n.targetAnchor,staticCount:_n.staticCount,shapeFlag:_n.shapeFlag,patchFlag:Cn&&_n.type!==Fragment?Ln===-1?16:Ln|16:Ln,dynamicProps:_n.dynamicProps,dynamicChildren:_n.dynamicChildren,appContext:_n.appContext,dirs:_n.dirs,transition:_n.transition,component:_n.component,suspense:_n.suspense,ssContent:_n.ssContent&&cloneVNode(_n.ssContent),ssFallback:_n.ssFallback&&cloneVNode(_n.ssFallback),el:_n.el,anchor:_n.anchor,ctx:_n.ctx,ce:_n.ce}}function createTextVNode(_n=" ",Cn=0){return createVNode(Text,null,_n,Cn)}function createCommentVNode(_n="",Cn=!1){return Cn?(openBlock(),createBlock(Comment,null,_n)):createVNode(Comment,null,_n)}function normalizeVNode(_n){return _n==null||typeof _n=="boolean"?createVNode(Comment):isArray$3(_n)?createVNode(Fragment,null,_n.slice()):typeof _n=="object"?cloneIfMounted(_n):createVNode(Text,null,String(_n))}function cloneIfMounted(_n){return _n.el===null&&_n.patchFlag!==-1||_n.memo?_n:cloneVNode(_n)}function normalizeChildren(_n,Cn){let $n=0;const{shapeFlag:Nn}=_n;if(Cn==null)Cn=null;else if(isArray$3(Cn))$n=16;else if(typeof Cn=="object")if(Nn&65){const Bn=Cn.default;Bn&&(Bn._c&&(Bn._d=!1),normalizeChildren(_n,Bn()),Bn._c&&(Bn._d=!0));return}else{$n=32;const Bn=Cn._;!Bn&&!(InternalObjectKey in Cn)?Cn._ctx=currentRenderingInstance:Bn===3&¤tRenderingInstance&&(currentRenderingInstance.slots._===1?Cn._=1:(Cn._=2,_n.patchFlag|=1024))}else isFunction$2(Cn)?(Cn={default:Cn,_ctx:currentRenderingInstance},$n=32):(Cn=String(Cn),Nn&64?($n=16,Cn=[createTextVNode(Cn)]):$n=8);_n.children=Cn,_n.shapeFlag|=$n}function mergeProps(..._n){const Cn={};for(let $n=0;$n<_n.length;$n++){const Nn=_n[$n];for(const Bn in Nn)if(Bn==="class")Cn.class!==Nn.class&&(Cn.class=normalizeClass([Cn.class,Nn.class]));else if(Bn==="style")Cn.style=normalizeStyle([Cn.style,Nn.style]);else if(isOn(Bn)){const Ln=Cn[Bn],In=Nn[Bn];In&&Ln!==In&&!(isArray$3(Ln)&&Ln.includes(In))&&(Cn[Bn]=Ln?[].concat(Ln,In):In)}else Bn!==""&&(Cn[Bn]=Nn[Bn])}return Cn}function invokeVNodeHook(_n,Cn,$n,Nn=null){callWithAsyncErrorHandling(_n,Cn,7,[$n,Nn])}const emptyAppContext=createAppContext();let uid=0;function createComponentInstance(_n,Cn,$n){const Nn=_n.type,Bn=(Cn?Cn.appContext:_n.appContext)||emptyAppContext,Ln={uid:uid++,vnode:_n,type:Nn,parent:Cn,appContext:Bn,root:null,next:null,subTree:null,effect:null,update:null,scope:new EffectScope(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:Cn?Cn.provides:Object.create(Bn.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:normalizePropsOptions(Nn,Bn),emitsOptions:normalizeEmitsOptions(Nn,Bn),emit:null,emitted:null,propsDefaults:EMPTY_OBJ,inheritAttrs:Nn.inheritAttrs,ctx:EMPTY_OBJ,data:EMPTY_OBJ,props:EMPTY_OBJ,attrs:EMPTY_OBJ,slots:EMPTY_OBJ,refs:EMPTY_OBJ,setupState:EMPTY_OBJ,setupContext:null,attrsProxy:null,slotsProxy: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 Ln.ctx={_:Ln},Ln.root=Cn?Cn.root:Ln,Ln.emit=emit.bind(null,Ln),_n.ce&&_n.ce(Ln),Ln}let currentInstance=null;const getCurrentInstance=()=>currentInstance||currentRenderingInstance;let internalSetCurrentInstance,globalCurrentInstanceSetters,settersKey="__VUE_INSTANCE_SETTERS__";(globalCurrentInstanceSetters=getGlobalThis()[settersKey])||(globalCurrentInstanceSetters=getGlobalThis()[settersKey]=[]),globalCurrentInstanceSetters.push(_n=>currentInstance=_n),internalSetCurrentInstance=_n=>{globalCurrentInstanceSetters.length>1?globalCurrentInstanceSetters.forEach(Cn=>Cn(_n)):globalCurrentInstanceSetters[0](_n)};const setCurrentInstance=_n=>{internalSetCurrentInstance(_n),_n.scope.on()},unsetCurrentInstance=()=>{currentInstance&¤tInstance.scope.off(),internalSetCurrentInstance(null)};function isStatefulComponent(_n){return _n.vnode.shapeFlag&4}let isInSSRComponentSetup=!1;function setupComponent(_n,Cn=!1){isInSSRComponentSetup=Cn;const{props:$n,children:Nn}=_n.vnode,Bn=isStatefulComponent(_n);initProps(_n,$n,Bn,Cn),initSlots(_n,Nn);const Ln=Bn?setupStatefulComponent(_n,Cn):void 0;return isInSSRComponentSetup=!1,Ln}function setupStatefulComponent(_n,Cn){const $n=_n.type;_n.accessCache=Object.create(null),_n.proxy=markRaw(new Proxy(_n.ctx,PublicInstanceProxyHandlers));const{setup:Nn}=$n;if(Nn){const Bn=_n.setupContext=Nn.length>1?createSetupContext(_n):null;setCurrentInstance(_n),pauseTracking();const Ln=callWithErrorHandling(Nn,_n,0,[_n.props,Bn]);if(resetTracking(),unsetCurrentInstance(),isPromise(Ln)){if(Ln.then(unsetCurrentInstance,unsetCurrentInstance),Cn)return Ln.then(In=>{handleSetupResult(_n,In,Cn)}).catch(In=>{handleError(In,_n,0)});_n.asyncDep=Ln}else handleSetupResult(_n,Ln,Cn)}else finishComponentSetup(_n,Cn)}function handleSetupResult(_n,Cn,$n){isFunction$2(Cn)?_n.type.__ssrInlineRender?_n.ssrRender=Cn:_n.render=Cn:isObject$5(Cn)&&(_n.setupState=proxyRefs(Cn)),finishComponentSetup(_n,$n)}let compile;function finishComponentSetup(_n,Cn,$n){const Nn=_n.type;if(!_n.render){if(!Cn&&compile&&!Nn.render){const Bn=Nn.template||resolveMergedOptions(_n).template;if(Bn){const{isCustomElement:Ln,compilerOptions:In}=_n.appContext.config,{delimiters:Pn,compilerOptions:Dn}=Nn,Un=extend$3(extend$3({isCustomElement:Ln,delimiters:Pn},In),Dn);Nn.render=compile(Bn,Un)}}_n.render=Nn.render||NOOP}{setCurrentInstance(_n),pauseTracking();try{applyOptions(_n)}finally{resetTracking(),unsetCurrentInstance()}}}function getAttrsProxy(_n){return _n.attrsProxy||(_n.attrsProxy=new Proxy(_n.attrs,{get(Cn,$n){return track(_n,"get","$attrs"),Cn[$n]}}))}function createSetupContext(_n){const Cn=$n=>{_n.exposed=$n||{}};return{get attrs(){return getAttrsProxy(_n)},slots:_n.slots,emit:_n.emit,expose:Cn}}function getExposeProxy(_n){if(_n.exposed)return _n.exposeProxy||(_n.exposeProxy=new Proxy(proxyRefs(markRaw(_n.exposed)),{get(Cn,$n){if($n in Cn)return Cn[$n];if($n in publicPropertiesMap)return publicPropertiesMap[$n](_n)},has(Cn,$n){return $n in Cn||$n in publicPropertiesMap}}))}function getComponentName(_n,Cn=!0){return isFunction$2(_n)?_n.displayName||_n.name:_n.name||Cn&&_n.__name}function isClassComponent(_n){return isFunction$2(_n)&&"__vccOpts"in _n}const computed=(_n,Cn)=>computed$1(_n,Cn,isInSSRComponentSetup);function h$2(_n,Cn,$n){const Nn=arguments.length;return Nn===2?isObject$5(Cn)&&!isArray$3(Cn)?isVNode(Cn)?createVNode(_n,null,[Cn]):createVNode(_n,Cn):createVNode(_n,null,Cn):(Nn>3?$n=Array.prototype.slice.call(arguments,2):Nn===3&&isVNode($n)&&($n=[$n]),createVNode(_n,Cn,$n))}const ssrContextKey=Symbol.for("v-scx"),useSSRContext=()=>inject(ssrContextKey),version$1="3.3.8",svgNS="http://www.w3.org/2000/svg",doc=typeof document<"u"?document:null,templateContainer=doc&&doc.createElement("template"),nodeOps={insert:(_n,Cn,$n)=>{Cn.insertBefore(_n,$n||null)},remove:_n=>{const Cn=_n.parentNode;Cn&&Cn.removeChild(_n)},createElement:(_n,Cn,$n,Nn)=>{const Bn=Cn?doc.createElementNS(svgNS,_n):doc.createElement(_n,$n?{is:$n}:void 0);return _n==="select"&&Nn&&Nn.multiple!=null&&Bn.setAttribute("multiple",Nn.multiple),Bn},createText:_n=>doc.createTextNode(_n),createComment:_n=>doc.createComment(_n),setText:(_n,Cn)=>{_n.nodeValue=Cn},setElementText:(_n,Cn)=>{_n.textContent=Cn},parentNode:_n=>_n.parentNode,nextSibling:_n=>_n.nextSibling,querySelector:_n=>doc.querySelector(_n),setScopeId(_n,Cn){_n.setAttribute(Cn,"")},insertStaticContent(_n,Cn,$n,Nn,Bn,Ln){const In=$n?$n.previousSibling:Cn.lastChild;if(Bn&&(Bn===Ln||Bn.nextSibling))for(;Cn.insertBefore(Bn.cloneNode(!0),$n),!(Bn===Ln||!(Bn=Bn.nextSibling)););else{templateContainer.innerHTML=Nn?`<svg>${_n}</svg>`:_n;const Pn=templateContainer.content;if(Nn){const Dn=Pn.firstChild;for(;Dn.firstChild;)Pn.appendChild(Dn.firstChild);Pn.removeChild(Dn)}Cn.insertBefore(Pn,$n)}return[In?In.nextSibling:Cn.firstChild,$n?$n.previousSibling:Cn.lastChild]}},TRANSITION="transition",ANIMATION="animation",vtcKey=Symbol("_vtc"),Transition=(_n,{slots:Cn})=>h$2(BaseTransition,resolveTransitionProps(_n),Cn);Transition.displayName="Transition";const DOMTransitionPropsValidators={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};Transition.props=extend$3({},BaseTransitionPropsValidators,DOMTransitionPropsValidators);const callHook=(_n,Cn=[])=>{isArray$3(_n)?_n.forEach($n=>$n(...Cn)):_n&&_n(...Cn)},hasExplicitCallback=_n=>_n?isArray$3(_n)?_n.some(Cn=>Cn.length>1):_n.length>1:!1;function resolveTransitionProps(_n){const Cn={};for(const _i in _n)_i in DOMTransitionPropsValidators||(Cn[_i]=_n[_i]);if(_n.css===!1)return Cn;const{name:$n="v",type:Nn,duration:Bn,enterFromClass:Ln=`${$n}-enter-from`,enterActiveClass:In=`${$n}-enter-active`,enterToClass:Pn=`${$n}-enter-to`,appearFromClass:Dn=Ln,appearActiveClass:Un=In,appearToClass:Hn=Pn,leaveFromClass:Xn=`${$n}-leave-from`,leaveActiveClass:Gn=`${$n}-leave-active`,leaveToClass:ei=`${$n}-leave-to`}=_n,nr=normalizeDuration(Bn),ni=nr&&nr[0],ai=nr&&nr[1],{onBeforeEnter:si,onEnter:gi,onEnterCancelled:Si,onLeave:ri,onLeaveCancelled:Ei,onBeforeAppear:$i=si,onAppear:zn=gi,onAppearCancelled:li=Si}=Cn,oi=(_i,yi,Fi)=>{removeTransitionClass(_i,yi?Hn:Pn),removeTransitionClass(_i,yi?Un:In),Fi&&Fi()},ui=(_i,yi)=>{_i._isLeaving=!1,removeTransitionClass(_i,Xn),removeTransitionClass(_i,ei),removeTransitionClass(_i,Gn),yi&&yi()},mi=_i=>(yi,Fi)=>{const ta=_i?zn:gi,qo=()=>oi(yi,_i,Fi);callHook(ta,[yi,qo]),nextFrame(()=>{removeTransitionClass(yi,_i?Dn:Ln),addTransitionClass(yi,_i?Hn:Pn),hasExplicitCallback(ta)||whenTransitionEnds(yi,Nn,ni,qo)})};return extend$3(Cn,{onBeforeEnter(_i){callHook(si,[_i]),addTransitionClass(_i,Ln),addTransitionClass(_i,In)},onBeforeAppear(_i){callHook($i,[_i]),addTransitionClass(_i,Dn),addTransitionClass(_i,Un)},onEnter:mi(!1),onAppear:mi(!0),onLeave(_i,yi){_i._isLeaving=!0;const Fi=()=>ui(_i,yi);addTransitionClass(_i,Xn),forceReflow(),addTransitionClass(_i,Gn),nextFrame(()=>{_i._isLeaving&&(removeTransitionClass(_i,Xn),addTransitionClass(_i,ei),hasExplicitCallback(ri)||whenTransitionEnds(_i,Nn,ai,Fi))}),callHook(ri,[_i,Fi])},onEnterCancelled(_i){oi(_i,!1),callHook(Si,[_i])},onAppearCancelled(_i){oi(_i,!0),callHook(li,[_i])},onLeaveCancelled(_i){ui(_i),callHook(Ei,[_i])}})}function normalizeDuration(_n){if(_n==null)return null;if(isObject$5(_n))return[NumberOf(_n.enter),NumberOf(_n.leave)];{const Cn=NumberOf(_n);return[Cn,Cn]}}function NumberOf(_n){return toNumber(_n)}function addTransitionClass(_n,Cn){Cn.split(/\s+/).forEach($n=>$n&&_n.classList.add($n)),(_n[vtcKey]||(_n[vtcKey]=new Set)).add(Cn)}function removeTransitionClass(_n,Cn){Cn.split(/\s+/).forEach(Nn=>Nn&&_n.classList.remove(Nn));const $n=_n[vtcKey];$n&&($n.delete(Cn),$n.size||(_n[vtcKey]=void 0))}function nextFrame(_n){requestAnimationFrame(()=>{requestAnimationFrame(_n)})}let endId=0;function whenTransitionEnds(_n,Cn,$n,Nn){const Bn=_n._endId=++endId,Ln=()=>{Bn===_n._endId&&Nn()};if($n)return setTimeout(Ln,$n);const{type:In,timeout:Pn,propCount:Dn}=getTransitionInfo(_n,Cn);if(!In)return Nn();const Un=In+"end";let Hn=0;const Xn=()=>{_n.removeEventListener(Un,Gn),Ln()},Gn=ei=>{ei.target===_n&&++Hn>=Dn&&Xn()};setTimeout(()=>{Hn<Dn&&Xn()},Pn+1),_n.addEventListener(Un,Gn)}function getTransitionInfo(_n,Cn){const $n=window.getComputedStyle(_n),Nn=nr=>($n[nr]||"").split(", "),Bn=Nn(`${TRANSITION}Delay`),Ln=Nn(`${TRANSITION}Duration`),In=getTimeout(Bn,Ln),Pn=Nn(`${ANIMATION}Delay`),Dn=Nn(`${ANIMATION}Duration`),Un=getTimeout(Pn,Dn);let Hn=null,Xn=0,Gn=0;Cn===TRANSITION?In>0&&(Hn=TRANSITION,Xn=In,Gn=Ln.length):Cn===ANIMATION?Un>0&&(Hn=ANIMATION,Xn=Un,Gn=Dn.length):(Xn=Math.max(In,Un),Hn=Xn>0?In>Un?TRANSITION:ANIMATION:null,Gn=Hn?Hn===TRANSITION?Ln.length:Dn.length:0);const ei=Hn===TRANSITION&&/\b(transform|all)(,|$)/.test(Nn(`${TRANSITION}Property`).toString());return{type:Hn,timeout:Xn,propCount:Gn,hasTransform:ei}}function getTimeout(_n,Cn){for(;_n.length<Cn.length;)_n=_n.concat(_n);return Math.max(...Cn.map(($n,Nn)=>toMs($n)+toMs(_n[Nn])))}function toMs(_n){return _n==="auto"?0:Number(_n.slice(0,-1).replace(",","."))*1e3}function forceReflow(){return document.body.offsetHeight}function patchClass(_n,Cn,$n){const Nn=_n[vtcKey];Nn&&(Cn=(Cn?[Cn,...Nn]:[...Nn]).join(" ")),Cn==null?_n.removeAttribute("class"):$n?_n.setAttribute("class",Cn):_n.className=Cn}const vShowOldKey=Symbol("_vod"),vShow={beforeMount(_n,{value:Cn},{transition:$n}){_n[vShowOldKey]=_n.style.display==="none"?"":_n.style.display,$n&&Cn?$n.beforeEnter(_n):setDisplay(_n,Cn)},mounted(_n,{value:Cn},{transition:$n}){$n&&Cn&&$n.enter(_n)},updated(_n,{value:Cn,oldValue:$n},{transition:Nn}){!Cn!=!$n&&(Nn?Cn?(Nn.beforeEnter(_n),setDisplay(_n,!0),Nn.enter(_n)):Nn.leave(_n,()=>{setDisplay(_n,!1)}):setDisplay(_n,Cn))},beforeUnmount(_n,{value:Cn}){setDisplay(_n,Cn)}};function setDisplay(_n,Cn){_n.style.display=Cn?_n[vShowOldKey]:"none"}function patchStyle(_n,Cn,$n){const Nn=_n.style,Bn=isString$1($n);if($n&&!Bn){if(Cn&&!isString$1(Cn))for(const Ln in Cn)$n[Ln]==null&&setStyle(Nn,Ln,"");for(const Ln in $n)setStyle(Nn,Ln,$n[Ln])}else{const Ln=Nn.display;Bn?Cn!==$n&&(Nn.cssText=$n):Cn&&_n.removeAttribute("style"),vShowOldKey in _n&&(Nn.display=Ln)}}const importantRE=/\s*!important$/;function setStyle(_n,Cn,$n){if(isArray$3($n))$n.forEach(Nn=>setStyle(_n,Cn,Nn));else if($n==null&&($n=""),Cn.startsWith("--"))_n.setProperty(Cn,$n);else{const Nn=autoPrefix(_n,Cn);importantRE.test($n)?_n.setProperty(hyphenate(Nn),$n.replace(importantRE,""),"important"):_n[Nn]=$n}}const prefixes=["Webkit","Moz","ms"],prefixCache={};function autoPrefix(_n,Cn){const $n=prefixCache[Cn];if($n)return $n;let Nn=camelize(Cn);if(Nn!=="filter"&&Nn in _n)return prefixCache[Cn]=Nn;Nn=capitalize(Nn);for(let Bn=0;Bn<prefixes.length;Bn++){const Ln=prefixes[Bn]+Nn;if(Ln in _n)return prefixCache[Cn]=Ln}return Cn}const xlinkNS="http://www.w3.org/1999/xlink";function patchAttr(_n,Cn,$n,Nn,Bn){if(Nn&&Cn.startsWith("xlink:"))$n==null?_n.removeAttributeNS(xlinkNS,Cn.slice(6,Cn.length)):_n.setAttributeNS(xlinkNS,Cn,$n);else{const Ln=isSpecialBooleanAttr(Cn);$n==null||Ln&&!includeBooleanAttr($n)?_n.removeAttribute(Cn):_n.setAttribute(Cn,Ln?"":$n)}}function patchDOMProp(_n,Cn,$n,Nn,Bn,Ln,In){if(Cn==="innerHTML"||Cn==="textContent"){Nn&&In(Nn,Bn,Ln),_n[Cn]=$n??"";return}const Pn=_n.tagName;if(Cn==="value"&&Pn!=="PROGRESS"&&!Pn.includes("-")){_n._value=$n;const Un=Pn==="OPTION"?_n.getAttribute("value"):_n.value,Hn=$n??"";Un!==Hn&&(_n.value=Hn),$n==null&&_n.removeAttribute(Cn);return}let Dn=!1;if($n===""||$n==null){const Un=typeof _n[Cn];Un==="boolean"?$n=includeBooleanAttr($n):$n==null&&Un==="string"?($n="",Dn=!0):Un==="number"&&($n=0,Dn=!0)}try{_n[Cn]=$n}catch{}Dn&&_n.removeAttribute(Cn)}function addEventListener(_n,Cn,$n,Nn){_n.addEventListener(Cn,$n,Nn)}function removeEventListener(_n,Cn,$n,Nn){_n.removeEventListener(Cn,$n,Nn)}const veiKey=Symbol("_vei");function patchEvent(_n,Cn,$n,Nn,Bn=null){const Ln=_n[veiKey]||(_n[veiKey]={}),In=Ln[Cn];if(Nn&&In)In.value=Nn;else{const[Pn,Dn]=parseName(Cn);if(Nn){const Un=Ln[Cn]=createInvoker(Nn,Bn);addEventListener(_n,Pn,Un,Dn)}else In&&(removeEventListener(_n,Pn,In,Dn),Ln[Cn]=void 0)}}const optionsModifierRE=/(?:Once|Passive|Capture)$/;function parseName(_n){let Cn;if(optionsModifierRE.test(_n)){Cn={};let Nn;for(;Nn=_n.match(optionsModifierRE);)_n=_n.slice(0,_n.length-Nn[0].length),Cn[Nn[0].toLowerCase()]=!0}return[_n[2]===":"?_n.slice(3):hyphenate(_n.slice(2)),Cn]}let cachedNow=0;const p$2=Promise.resolve(),getNow=()=>cachedNow||(p$2.then(()=>cachedNow=0),cachedNow=Date.now());function createInvoker(_n,Cn){const $n=Nn=>{if(!Nn._vts)Nn._vts=Date.now();else if(Nn._vts<=$n.attached)return;callWithAsyncErrorHandling(patchStopImmediatePropagation(Nn,$n.value),Cn,5,[Nn])};return $n.value=_n,$n.attached=getNow(),$n}function patchStopImmediatePropagation(_n,Cn){if(isArray$3(Cn)){const $n=_n.stopImmediatePropagation;return _n.stopImmediatePropagation=()=>{$n.call(_n),_n._stopped=!0},Cn.map(Nn=>Bn=>!Bn._stopped&&Nn&&Nn(Bn))}else return Cn}const nativeOnRE=/^on[a-z]/,patchProp=(_n,Cn,$n,Nn,Bn=!1,Ln,In,Pn,Dn)=>{Cn==="class"?patchClass(_n,Nn,Bn):Cn==="style"?patchStyle(_n,$n,Nn):isOn(Cn)?isModelListener(Cn)||patchEvent(_n,Cn,$n,Nn,In):(Cn[0]==="."?(Cn=Cn.slice(1),!0):Cn[0]==="^"?(Cn=Cn.slice(1),!1):shouldSetAsProp(_n,Cn,Nn,Bn))?patchDOMProp(_n,Cn,Nn,Ln,In,Pn,Dn):(Cn==="true-value"?_n._trueValue=Nn:Cn==="false-value"&&(_n._falseValue=Nn),patchAttr(_n,Cn,Nn,Bn))};function shouldSetAsProp(_n,Cn,$n,Nn){return Nn?!!(Cn==="innerHTML"||Cn==="textContent"||Cn in _n&&nativeOnRE.test(Cn)&&isFunction$2($n)):Cn==="spellcheck"||Cn==="draggable"||Cn==="translate"||Cn==="form"||Cn==="list"&&_n.tagName==="INPUT"||Cn==="type"&&_n.tagName==="TEXTAREA"||nativeOnRE.test(Cn)&&isString$1($n)?!1:Cn in _n}const getModelAssigner=_n=>{const Cn=_n.props["onUpdate:modelValue"]||!1;return isArray$3(Cn)?$n=>invokeArrayFns(Cn,$n):Cn};function onCompositionStart(_n){_n.target.composing=!0}function onCompositionEnd(_n){const Cn=_n.target;Cn.composing&&(Cn.composing=!1,Cn.dispatchEvent(new Event("input")))}const assignKey=Symbol("_assign"),vModelText={created(_n,{modifiers:{lazy:Cn,trim:$n,number:Nn}},Bn){_n[assignKey]=getModelAssigner(Bn);const Ln=Nn||Bn.props&&Bn.props.type==="number";addEventListener(_n,Cn?"change":"input",In=>{if(In.target.composing)return;let Pn=_n.value;$n&&(Pn=Pn.trim()),Ln&&(Pn=looseToNumber(Pn)),_n[assignKey](Pn)}),$n&&addEventListener(_n,"change",()=>{_n.value=_n.value.trim()}),Cn||(addEventListener(_n,"compositionstart",onCompositionStart),addEventListener(_n,"compositionend",onCompositionEnd),addEventListener(_n,"change",onCompositionEnd))},mounted(_n,{value:Cn}){_n.value=Cn??""},beforeUpdate(_n,{value:Cn,modifiers:{lazy:$n,trim:Nn,number:Bn}},Ln){if(_n[assignKey]=getModelAssigner(Ln),_n.composing||document.activeElement===_n&&_n.type!=="range"&&($n||Nn&&_n.value.trim()===Cn||(Bn||_n.type==="number")&&looseToNumber(_n.value)===Cn))return;const In=Cn??"";_n.value!==In&&(_n.value=In)}},vModelCheckbox={deep:!0,created(_n,Cn,$n){_n[assignKey]=getModelAssigner($n),addEventListener(_n,"change",()=>{const Nn=_n._modelValue,Bn=getValue$1(_n),Ln=_n.checked,In=_n[assignKey];if(isArray$3(Nn)){const Pn=looseIndexOf(Nn,Bn),Dn=Pn!==-1;if(Ln&&!Dn)In(Nn.concat(Bn));else if(!Ln&&Dn){const Un=[...Nn];Un.splice(Pn,1),In(Un)}}else if(isSet(Nn)){const Pn=new Set(Nn);Ln?Pn.add(Bn):Pn.delete(Bn),In(Pn)}else In(getCheckboxValue(_n,Ln))})},mounted:setChecked,beforeUpdate(_n,Cn,$n){_n[assignKey]=getModelAssigner($n),setChecked(_n,Cn,$n)}};function setChecked(_n,{value:Cn,oldValue:$n},Nn){_n._modelValue=Cn,isArray$3(Cn)?_n.checked=looseIndexOf(Cn,Nn.props.value)>-1:isSet(Cn)?_n.checked=Cn.has(Nn.props.value):Cn!==$n&&(_n.checked=looseEqual(Cn,getCheckboxValue(_n,!0)))}const vModelSelect={deep:!0,created(_n,{value:Cn,modifiers:{number:$n}},Nn){const Bn=isSet(Cn);addEventListener(_n,"change",()=>{const Ln=Array.prototype.filter.call(_n.options,In=>In.selected).map(In=>$n?looseToNumber(getValue$1(In)):getValue$1(In));_n[assignKey](_n.multiple?Bn?new Set(Ln):Ln:Ln[0])}),_n[assignKey]=getModelAssigner(Nn)},mounted(_n,{value:Cn}){setSelected(_n,Cn)},beforeUpdate(_n,Cn,$n){_n[assignKey]=getModelAssigner($n)},updated(_n,{value:Cn}){setSelected(_n,Cn)}};function setSelected(_n,Cn){const $n=_n.multiple;if(!($n&&!isArray$3(Cn)&&!isSet(Cn))){for(let Nn=0,Bn=_n.options.length;Nn<Bn;Nn++){const Ln=_n.options[Nn],In=getValue$1(Ln);if($n)isArray$3(Cn)?Ln.selected=looseIndexOf(Cn,In)>-1:Ln.selected=Cn.has(In);else if(looseEqual(getValue$1(Ln),Cn)){_n.selectedIndex!==Nn&&(_n.selectedIndex=Nn);return}}!$n&&_n.selectedIndex!==-1&&(_n.selectedIndex=-1)}}function getValue$1(_n){return"_value"in _n?_n._value:_n.value}function getCheckboxValue(_n,Cn){const $n=Cn?"_trueValue":"_falseValue";return $n in _n?_n[$n]:Cn}const systemModifiers=["ctrl","shift","alt","meta"],modifierGuards={stop:_n=>_n.stopPropagation(),prevent:_n=>_n.preventDefault(),self:_n=>_n.target!==_n.currentTarget,ctrl:_n=>!_n.ctrlKey,shift:_n=>!_n.shiftKey,alt:_n=>!_n.altKey,meta:_n=>!_n.metaKey,left:_n=>"button"in _n&&_n.button!==0,middle:_n=>"button"in _n&&_n.button!==1,right:_n=>"button"in _n&&_n.button!==2,exact:(_n,Cn)=>systemModifiers.some($n=>_n[`${$n}Key`]&&!Cn.includes($n))},withModifiers=(_n,Cn)=>($n,...Nn)=>{for(let Bn=0;Bn<Cn.length;Bn++){const Ln=modifierGuards[Cn[Bn]];if(Ln&&Ln($n,Cn))return}return _n($n,...Nn)},rendererOptions=extend$3({patchProp},nodeOps);let renderer;function ensureRenderer(){return renderer||(renderer=createRenderer(rendererOptions))}const createApp=(..._n)=>{const Cn=ensureRenderer().createApp(..._n),{mount:$n}=Cn;return Cn.mount=Nn=>{const Bn=normalizeContainer(Nn);if(!Bn)return;const Ln=Cn._component;!isFunction$2(Ln)&&!Ln.render&&!Ln.template&&(Ln.template=Bn.innerHTML),Bn.innerHTML="";const In=$n(Bn,!1,Bn instanceof SVGElement);return Bn instanceof Element&&(Bn.removeAttribute("v-cloak"),Bn.setAttribute("data-v-app","")),In},Cn};function normalizeContainer(_n){return isString$1(_n)?document.querySelector(_n):_n}/**!
|
||
* Sortable 1.15.0
|
||
* @author RubaXa <trash@rubaxa.org>
|
||
* @author owenm <owen23355@gmail.com>
|
||
* @license MIT
|
||
*/function ownKeys(_n,Cn){var $n=Object.keys(_n);if(Object.getOwnPropertySymbols){var Nn=Object.getOwnPropertySymbols(_n);Cn&&(Nn=Nn.filter(function(Bn){return Object.getOwnPropertyDescriptor(_n,Bn).enumerable})),$n.push.apply($n,Nn)}return $n}function _objectSpread2(_n){for(var Cn=1;Cn<arguments.length;Cn++){var $n=arguments[Cn]!=null?arguments[Cn]:{};Cn%2?ownKeys(Object($n),!0).forEach(function(Nn){_defineProperty(_n,Nn,$n[Nn])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_n,Object.getOwnPropertyDescriptors($n)):ownKeys(Object($n)).forEach(function(Nn){Object.defineProperty(_n,Nn,Object.getOwnPropertyDescriptor($n,Nn))})}return _n}function _typeof$1(_n){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$1=function(Cn){return typeof Cn}:_typeof$1=function(Cn){return Cn&&typeof Symbol=="function"&&Cn.constructor===Symbol&&Cn!==Symbol.prototype?"symbol":typeof Cn},_typeof$1(_n)}function _defineProperty(_n,Cn,$n){return Cn in _n?Object.defineProperty(_n,Cn,{value:$n,enumerable:!0,configurable:!0,writable:!0}):_n[Cn]=$n,_n}function _extends(){return _extends=Object.assign||function(_n){for(var Cn=1;Cn<arguments.length;Cn++){var $n=arguments[Cn];for(var Nn in $n)Object.prototype.hasOwnProperty.call($n,Nn)&&(_n[Nn]=$n[Nn])}return _n},_extends.apply(this,arguments)}function _objectWithoutPropertiesLoose(_n,Cn){if(_n==null)return{};var $n={},Nn=Object.keys(_n),Bn,Ln;for(Ln=0;Ln<Nn.length;Ln++)Bn=Nn[Ln],!(Cn.indexOf(Bn)>=0)&&($n[Bn]=_n[Bn]);return $n}function _objectWithoutProperties(_n,Cn){if(_n==null)return{};var $n=_objectWithoutPropertiesLoose(_n,Cn),Nn,Bn;if(Object.getOwnPropertySymbols){var Ln=Object.getOwnPropertySymbols(_n);for(Bn=0;Bn<Ln.length;Bn++)Nn=Ln[Bn],!(Cn.indexOf(Nn)>=0)&&Object.prototype.propertyIsEnumerable.call(_n,Nn)&&($n[Nn]=_n[Nn])}return $n}var version="1.15.0";function userAgent(_n){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(_n)}var IE11OrLess=userAgent(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Edge=userAgent(/Edge/i),FireFox=userAgent(/firefox/i),Safari=userAgent(/safari/i)&&!userAgent(/chrome/i)&&!userAgent(/android/i),IOS=userAgent(/iP(ad|od|hone)/i),ChromeForAndroid=userAgent(/chrome/i)&&userAgent(/android/i),captureMode={capture:!1,passive:!1};function on$1(_n,Cn,$n){_n.addEventListener(Cn,$n,!IE11OrLess&&captureMode)}function off(_n,Cn,$n){_n.removeEventListener(Cn,$n,!IE11OrLess&&captureMode)}function matches(_n,Cn){if(Cn){if(Cn[0]===">"&&(Cn=Cn.substring(1)),_n)try{if(_n.matches)return _n.matches(Cn);if(_n.msMatchesSelector)return _n.msMatchesSelector(Cn);if(_n.webkitMatchesSelector)return _n.webkitMatchesSelector(Cn)}catch{return!1}return!1}}function getParentOrHost(_n){return _n.host&&_n!==document&&_n.host.nodeType?_n.host:_n.parentNode}function closest(_n,Cn,$n,Nn){if(_n){$n=$n||document;do{if(Cn!=null&&(Cn[0]===">"?_n.parentNode===$n&&matches(_n,Cn):matches(_n,Cn))||Nn&&_n===$n)return _n;if(_n===$n)break}while(_n=getParentOrHost(_n))}return null}var R_SPACE=/\s+/g;function toggleClass(_n,Cn,$n){if(_n&&Cn)if(_n.classList)_n.classList[$n?"add":"remove"](Cn);else{var Nn=(" "+_n.className+" ").replace(R_SPACE," ").replace(" "+Cn+" "," ");_n.className=(Nn+($n?" "+Cn:"")).replace(R_SPACE," ")}}function css(_n,Cn,$n){var Nn=_n&&_n.style;if(Nn){if($n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?$n=document.defaultView.getComputedStyle(_n,""):_n.currentStyle&&($n=_n.currentStyle),Cn===void 0?$n:$n[Cn];!(Cn in Nn)&&Cn.indexOf("webkit")===-1&&(Cn="-webkit-"+Cn),Nn[Cn]=$n+(typeof $n=="string"?"":"px")}}function matrix(_n,Cn){var $n="";if(typeof _n=="string")$n=_n;else do{var Nn=css(_n,"transform");Nn&&Nn!=="none"&&($n=Nn+" "+$n)}while(!Cn&&(_n=_n.parentNode));var Bn=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return Bn&&new Bn($n)}function find(_n,Cn,$n){if(_n){var Nn=_n.getElementsByTagName(Cn),Bn=0,Ln=Nn.length;if($n)for(;Bn<Ln;Bn++)$n(Nn[Bn],Bn);return Nn}return[]}function getWindowScrollingElement(){var _n=document.scrollingElement;return _n||document.documentElement}function getRect(_n,Cn,$n,Nn,Bn){if(!(!_n.getBoundingClientRect&&_n!==window)){var Ln,In,Pn,Dn,Un,Hn,Xn;if(_n!==window&&_n.parentNode&&_n!==getWindowScrollingElement()?(Ln=_n.getBoundingClientRect(),In=Ln.top,Pn=Ln.left,Dn=Ln.bottom,Un=Ln.right,Hn=Ln.height,Xn=Ln.width):(In=0,Pn=0,Dn=window.innerHeight,Un=window.innerWidth,Hn=window.innerHeight,Xn=window.innerWidth),(Cn||$n)&&_n!==window&&(Bn=Bn||_n.parentNode,!IE11OrLess))do if(Bn&&Bn.getBoundingClientRect&&(css(Bn,"transform")!=="none"||$n&&css(Bn,"position")!=="static")){var Gn=Bn.getBoundingClientRect();In-=Gn.top+parseInt(css(Bn,"border-top-width")),Pn-=Gn.left+parseInt(css(Bn,"border-left-width")),Dn=In+Ln.height,Un=Pn+Ln.width;break}while(Bn=Bn.parentNode);if(Nn&&_n!==window){var ei=matrix(Bn||_n),nr=ei&&ei.a,ni=ei&&ei.d;ei&&(In/=ni,Pn/=nr,Xn/=nr,Hn/=ni,Dn=In+Hn,Un=Pn+Xn)}return{top:In,left:Pn,bottom:Dn,right:Un,width:Xn,height:Hn}}}function isScrolledPast(_n,Cn,$n){for(var Nn=getParentAutoScrollElement(_n,!0),Bn=getRect(_n)[Cn];Nn;){var Ln=getRect(Nn)[$n],In=void 0;if($n==="top"||$n==="left"?In=Bn>=Ln:In=Bn<=Ln,!In)return Nn;if(Nn===getWindowScrollingElement())break;Nn=getParentAutoScrollElement(Nn,!1)}return!1}function getChild(_n,Cn,$n,Nn){for(var Bn=0,Ln=0,In=_n.children;Ln<In.length;){if(In[Ln].style.display!=="none"&&In[Ln]!==Sortable.ghost&&(Nn||In[Ln]!==Sortable.dragged)&&closest(In[Ln],$n.draggable,_n,!1)){if(Bn===Cn)return In[Ln];Bn++}Ln++}return null}function lastChild(_n,Cn){for(var $n=_n.lastElementChild;$n&&($n===Sortable.ghost||css($n,"display")==="none"||Cn&&!matches($n,Cn));)$n=$n.previousElementSibling;return $n||null}function index(_n,Cn){var $n=0;if(!_n||!_n.parentNode)return-1;for(;_n=_n.previousElementSibling;)_n.nodeName.toUpperCase()!=="TEMPLATE"&&_n!==Sortable.clone&&(!Cn||matches(_n,Cn))&&$n++;return $n}function getRelativeScrollOffset(_n){var Cn=0,$n=0,Nn=getWindowScrollingElement();if(_n)do{var Bn=matrix(_n),Ln=Bn.a,In=Bn.d;Cn+=_n.scrollLeft*Ln,$n+=_n.scrollTop*In}while(_n!==Nn&&(_n=_n.parentNode));return[Cn,$n]}function indexOfObject(_n,Cn){for(var $n in _n)if(_n.hasOwnProperty($n)){for(var Nn in Cn)if(Cn.hasOwnProperty(Nn)&&Cn[Nn]===_n[$n][Nn])return Number($n)}return-1}function getParentAutoScrollElement(_n,Cn){if(!_n||!_n.getBoundingClientRect)return getWindowScrollingElement();var $n=_n,Nn=!1;do if($n.clientWidth<$n.scrollWidth||$n.clientHeight<$n.scrollHeight){var Bn=css($n);if($n.clientWidth<$n.scrollWidth&&(Bn.overflowX=="auto"||Bn.overflowX=="scroll")||$n.clientHeight<$n.scrollHeight&&(Bn.overflowY=="auto"||Bn.overflowY=="scroll")){if(!$n.getBoundingClientRect||$n===document.body)return getWindowScrollingElement();if(Nn||Cn)return $n;Nn=!0}}while($n=$n.parentNode);return getWindowScrollingElement()}function extend$2(_n,Cn){if(_n&&Cn)for(var $n in Cn)Cn.hasOwnProperty($n)&&(_n[$n]=Cn[$n]);return _n}function isRectEqual(_n,Cn){return Math.round(_n.top)===Math.round(Cn.top)&&Math.round(_n.left)===Math.round(Cn.left)&&Math.round(_n.height)===Math.round(Cn.height)&&Math.round(_n.width)===Math.round(Cn.width)}var _throttleTimeout;function throttle(_n,Cn){return function(){if(!_throttleTimeout){var $n=arguments,Nn=this;$n.length===1?_n.call(Nn,$n[0]):_n.apply(Nn,$n),_throttleTimeout=setTimeout(function(){_throttleTimeout=void 0},Cn)}}}function cancelThrottle(){clearTimeout(_throttleTimeout),_throttleTimeout=void 0}function scrollBy(_n,Cn,$n){_n.scrollLeft+=Cn,_n.scrollTop+=$n}function clone(_n){var Cn=window.Polymer,$n=window.jQuery||window.Zepto;return Cn&&Cn.dom?Cn.dom(_n).cloneNode(!0):$n?$n(_n).clone(!0)[0]:_n.cloneNode(!0)}var expando="Sortable"+new Date().getTime();function AnimationStateManager(){var _n=[],Cn;return{captureAnimationState:function(){if(_n=[],!!this.options.animation){var Nn=[].slice.call(this.el.children);Nn.forEach(function(Bn){if(!(css(Bn,"display")==="none"||Bn===Sortable.ghost)){_n.push({target:Bn,rect:getRect(Bn)});var Ln=_objectSpread2({},_n[_n.length-1].rect);if(Bn.thisAnimationDuration){var In=matrix(Bn,!0);In&&(Ln.top-=In.f,Ln.left-=In.e)}Bn.fromRect=Ln}})}},addAnimationState:function(Nn){_n.push(Nn)},removeAnimationState:function(Nn){_n.splice(indexOfObject(_n,{target:Nn}),1)},animateAll:function(Nn){var Bn=this;if(!this.options.animation){clearTimeout(Cn),typeof Nn=="function"&&Nn();return}var Ln=!1,In=0;_n.forEach(function(Pn){var Dn=0,Un=Pn.target,Hn=Un.fromRect,Xn=getRect(Un),Gn=Un.prevFromRect,ei=Un.prevToRect,nr=Pn.rect,ni=matrix(Un,!0);ni&&(Xn.top-=ni.f,Xn.left-=ni.e),Un.toRect=Xn,Un.thisAnimationDuration&&isRectEqual(Gn,Xn)&&!isRectEqual(Hn,Xn)&&(nr.top-Xn.top)/(nr.left-Xn.left)===(Hn.top-Xn.top)/(Hn.left-Xn.left)&&(Dn=calculateRealTime(nr,Gn,ei,Bn.options)),isRectEqual(Xn,Hn)||(Un.prevFromRect=Hn,Un.prevToRect=Xn,Dn||(Dn=Bn.options.animation),Bn.animate(Un,nr,Xn,Dn)),Dn&&(Ln=!0,In=Math.max(In,Dn),clearTimeout(Un.animationResetTimer),Un.animationResetTimer=setTimeout(function(){Un.animationTime=0,Un.prevFromRect=null,Un.fromRect=null,Un.prevToRect=null,Un.thisAnimationDuration=null},Dn),Un.thisAnimationDuration=Dn)}),clearTimeout(Cn),Ln?Cn=setTimeout(function(){typeof Nn=="function"&&Nn()},In):typeof Nn=="function"&&Nn(),_n=[]},animate:function(Nn,Bn,Ln,In){if(In){css(Nn,"transition",""),css(Nn,"transform","");var Pn=matrix(this.el),Dn=Pn&&Pn.a,Un=Pn&&Pn.d,Hn=(Bn.left-Ln.left)/(Dn||1),Xn=(Bn.top-Ln.top)/(Un||1);Nn.animatingX=!!Hn,Nn.animatingY=!!Xn,css(Nn,"transform","translate3d("+Hn+"px,"+Xn+"px,0)"),this.forRepaintDummy=repaint(Nn),css(Nn,"transition","transform "+In+"ms"+(this.options.easing?" "+this.options.easing:"")),css(Nn,"transform","translate3d(0,0,0)"),typeof Nn.animated=="number"&&clearTimeout(Nn.animated),Nn.animated=setTimeout(function(){css(Nn,"transition",""),css(Nn,"transform",""),Nn.animated=!1,Nn.animatingX=!1,Nn.animatingY=!1},In)}}}}function repaint(_n){return _n.offsetWidth}function calculateRealTime(_n,Cn,$n,Nn){return Math.sqrt(Math.pow(Cn.top-_n.top,2)+Math.pow(Cn.left-_n.left,2))/Math.sqrt(Math.pow(Cn.top-$n.top,2)+Math.pow(Cn.left-$n.left,2))*Nn.animation}var plugins=[],defaults$2={initializeByDefault:!0},PluginManager={mount:function(Cn){for(var $n in defaults$2)defaults$2.hasOwnProperty($n)&&!($n in Cn)&&(Cn[$n]=defaults$2[$n]);plugins.forEach(function(Nn){if(Nn.pluginName===Cn.pluginName)throw"Sortable: Cannot mount plugin ".concat(Cn.pluginName," more than once")}),plugins.push(Cn)},pluginEvent:function(Cn,$n,Nn){var Bn=this;this.eventCanceled=!1,Nn.cancel=function(){Bn.eventCanceled=!0};var Ln=Cn+"Global";plugins.forEach(function(In){$n[In.pluginName]&&($n[In.pluginName][Ln]&&$n[In.pluginName][Ln](_objectSpread2({sortable:$n},Nn)),$n.options[In.pluginName]&&$n[In.pluginName][Cn]&&$n[In.pluginName][Cn](_objectSpread2({sortable:$n},Nn)))})},initializePlugins:function(Cn,$n,Nn,Bn){plugins.forEach(function(Pn){var Dn=Pn.pluginName;if(!(!Cn.options[Dn]&&!Pn.initializeByDefault)){var Un=new Pn(Cn,$n,Cn.options);Un.sortable=Cn,Un.options=Cn.options,Cn[Dn]=Un,_extends(Nn,Un.defaults)}});for(var Ln in Cn.options)if(Cn.options.hasOwnProperty(Ln)){var In=this.modifyOption(Cn,Ln,Cn.options[Ln]);typeof In<"u"&&(Cn.options[Ln]=In)}},getEventProperties:function(Cn,$n){var Nn={};return plugins.forEach(function(Bn){typeof Bn.eventProperties=="function"&&_extends(Nn,Bn.eventProperties.call($n[Bn.pluginName],Cn))}),Nn},modifyOption:function(Cn,$n,Nn){var Bn;return plugins.forEach(function(Ln){Cn[Ln.pluginName]&&Ln.optionListeners&&typeof Ln.optionListeners[$n]=="function"&&(Bn=Ln.optionListeners[$n].call(Cn[Ln.pluginName],Nn))}),Bn}};function dispatchEvent(_n){var Cn=_n.sortable,$n=_n.rootEl,Nn=_n.name,Bn=_n.targetEl,Ln=_n.cloneEl,In=_n.toEl,Pn=_n.fromEl,Dn=_n.oldIndex,Un=_n.newIndex,Hn=_n.oldDraggableIndex,Xn=_n.newDraggableIndex,Gn=_n.originalEvent,ei=_n.putSortable,nr=_n.extraEventProperties;if(Cn=Cn||$n&&$n[expando],!!Cn){var ni,ai=Cn.options,si="on"+Nn.charAt(0).toUpperCase()+Nn.substr(1);window.CustomEvent&&!IE11OrLess&&!Edge?ni=new CustomEvent(Nn,{bubbles:!0,cancelable:!0}):(ni=document.createEvent("Event"),ni.initEvent(Nn,!0,!0)),ni.to=In||$n,ni.from=Pn||$n,ni.item=Bn||$n,ni.clone=Ln,ni.oldIndex=Dn,ni.newIndex=Un,ni.oldDraggableIndex=Hn,ni.newDraggableIndex=Xn,ni.originalEvent=Gn,ni.pullMode=ei?ei.lastPutMode:void 0;var gi=_objectSpread2(_objectSpread2({},nr),PluginManager.getEventProperties(Nn,Cn));for(var Si in gi)ni[Si]=gi[Si];$n&&$n.dispatchEvent(ni),ai[si]&&ai[si].call(Cn,ni)}}var _excluded=["evt"],pluginEvent=function(Cn,$n){var Nn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Bn=Nn.evt,Ln=_objectWithoutProperties(Nn,_excluded);PluginManager.pluginEvent.bind(Sortable)(Cn,$n,_objectSpread2({dragEl,parentEl,ghostEl,rootEl,nextEl,lastDownEl,cloneEl,cloneHidden,dragStarted:moved,putSortable,activeSortable:Sortable.active,originalEvent:Bn,oldIndex,oldDraggableIndex,newIndex,newDraggableIndex,hideGhostForTarget:_hideGhostForTarget,unhideGhostForTarget:_unhideGhostForTarget,cloneNowHidden:function(){cloneHidden=!0},cloneNowShown:function(){cloneHidden=!1},dispatchSortableEvent:function(Pn){_dispatchEvent({sortable:$n,name:Pn,originalEvent:Bn})}},Ln))};function _dispatchEvent(_n){dispatchEvent(_objectSpread2({putSortable,cloneEl,targetEl:dragEl,rootEl,oldIndex,oldDraggableIndex,newIndex,newDraggableIndex},_n))}var dragEl,parentEl,ghostEl,rootEl,nextEl,lastDownEl,cloneEl,cloneHidden,oldIndex,newIndex,oldDraggableIndex,newDraggableIndex,activeGroup,putSortable,awaitingDragStarted=!1,ignoreNextClick=!1,sortables=[],tapEvt,touchEvt,lastDx,lastDy,tapDistanceLeft,tapDistanceTop,moved,lastTarget,lastDirection,pastFirstInvertThresh=!1,isCircumstantialInvert=!1,targetMoveDistance,ghostRelativeParent,ghostRelativeParentInitialScroll=[],_silent=!1,savedInputChecked=[],documentExists=typeof document<"u",PositionGhostAbsolutely=IOS,CSSFloatProperty=Edge||IE11OrLess?"cssFloat":"float",supportDraggable=documentExists&&!ChromeForAndroid&&!IOS&&"draggable"in document.createElement("div"),supportCssPointerEvents=function(){if(documentExists){if(IE11OrLess)return!1;var _n=document.createElement("x");return _n.style.cssText="pointer-events:auto",_n.style.pointerEvents==="auto"}}(),_detectDirection=function(Cn,$n){var Nn=css(Cn),Bn=parseInt(Nn.width)-parseInt(Nn.paddingLeft)-parseInt(Nn.paddingRight)-parseInt(Nn.borderLeftWidth)-parseInt(Nn.borderRightWidth),Ln=getChild(Cn,0,$n),In=getChild(Cn,1,$n),Pn=Ln&&css(Ln),Dn=In&&css(In),Un=Pn&&parseInt(Pn.marginLeft)+parseInt(Pn.marginRight)+getRect(Ln).width,Hn=Dn&&parseInt(Dn.marginLeft)+parseInt(Dn.marginRight)+getRect(In).width;if(Nn.display==="flex")return Nn.flexDirection==="column"||Nn.flexDirection==="column-reverse"?"vertical":"horizontal";if(Nn.display==="grid")return Nn.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(Ln&&Pn.float&&Pn.float!=="none"){var Xn=Pn.float==="left"?"left":"right";return In&&(Dn.clear==="both"||Dn.clear===Xn)?"vertical":"horizontal"}return Ln&&(Pn.display==="block"||Pn.display==="flex"||Pn.display==="table"||Pn.display==="grid"||Un>=Bn&&Nn[CSSFloatProperty]==="none"||In&&Nn[CSSFloatProperty]==="none"&&Un+Hn>Bn)?"vertical":"horizontal"},_dragElInRowColumn=function(Cn,$n,Nn){var Bn=Nn?Cn.left:Cn.top,Ln=Nn?Cn.right:Cn.bottom,In=Nn?Cn.width:Cn.height,Pn=Nn?$n.left:$n.top,Dn=Nn?$n.right:$n.bottom,Un=Nn?$n.width:$n.height;return Bn===Pn||Ln===Dn||Bn+In/2===Pn+Un/2},_detectNearestEmptySortable=function(Cn,$n){var Nn;return sortables.some(function(Bn){var Ln=Bn[expando].options.emptyInsertThreshold;if(!(!Ln||lastChild(Bn))){var In=getRect(Bn),Pn=Cn>=In.left-Ln&&Cn<=In.right+Ln,Dn=$n>=In.top-Ln&&$n<=In.bottom+Ln;if(Pn&&Dn)return Nn=Bn}}),Nn},_prepareGroup=function(Cn){function $n(Ln,In){return function(Pn,Dn,Un,Hn){var Xn=Pn.options.group.name&&Dn.options.group.name&&Pn.options.group.name===Dn.options.group.name;if(Ln==null&&(In||Xn))return!0;if(Ln==null||Ln===!1)return!1;if(In&&Ln==="clone")return Ln;if(typeof Ln=="function")return $n(Ln(Pn,Dn,Un,Hn),In)(Pn,Dn,Un,Hn);var Gn=(In?Pn:Dn).options.group.name;return Ln===!0||typeof Ln=="string"&&Ln===Gn||Ln.join&&Ln.indexOf(Gn)>-1}}var Nn={},Bn=Cn.group;(!Bn||_typeof$1(Bn)!="object")&&(Bn={name:Bn}),Nn.name=Bn.name,Nn.checkPull=$n(Bn.pull,!0),Nn.checkPut=$n(Bn.put),Nn.revertClone=Bn.revertClone,Cn.group=Nn},_hideGhostForTarget=function(){!supportCssPointerEvents&&ghostEl&&css(ghostEl,"display","none")},_unhideGhostForTarget=function(){!supportCssPointerEvents&&ghostEl&&css(ghostEl,"display","")};documentExists&&!ChromeForAndroid&&document.addEventListener("click",function(_n){if(ignoreNextClick)return _n.preventDefault(),_n.stopPropagation&&_n.stopPropagation(),_n.stopImmediatePropagation&&_n.stopImmediatePropagation(),ignoreNextClick=!1,!1},!0);var nearestEmptyInsertDetectEvent=function(Cn){if(dragEl){Cn=Cn.touches?Cn.touches[0]:Cn;var $n=_detectNearestEmptySortable(Cn.clientX,Cn.clientY);if($n){var Nn={};for(var Bn in Cn)Cn.hasOwnProperty(Bn)&&(Nn[Bn]=Cn[Bn]);Nn.target=Nn.rootEl=$n,Nn.preventDefault=void 0,Nn.stopPropagation=void 0,$n[expando]._onDragOver(Nn)}}},_checkOutsideTargetEl=function(Cn){dragEl&&dragEl.parentNode[expando]._isOutsideThisEl(Cn.target)};function Sortable(_n,Cn){if(!(_n&&_n.nodeType&&_n.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(_n));this.el=_n,this.options=Cn=_extends({},Cn),_n[expando]=this;var $n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(_n.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return _detectDirection(_n,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(In,Pn){In.setData("Text",Pn.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:Sortable.supportPointer!==!1&&"PointerEvent"in window&&!Safari,emptyInsertThreshold:5};PluginManager.initializePlugins(this,_n,$n);for(var Nn in $n)!(Nn in Cn)&&(Cn[Nn]=$n[Nn]);_prepareGroup(Cn);for(var Bn in this)Bn.charAt(0)==="_"&&typeof this[Bn]=="function"&&(this[Bn]=this[Bn].bind(this));this.nativeDraggable=Cn.forceFallback?!1:supportDraggable,this.nativeDraggable&&(this.options.touchStartThreshold=1),Cn.supportPointer?on$1(_n,"pointerdown",this._onTapStart):(on$1(_n,"mousedown",this._onTapStart),on$1(_n,"touchstart",this._onTapStart)),this.nativeDraggable&&(on$1(_n,"dragover",this),on$1(_n,"dragenter",this)),sortables.push(this.el),Cn.store&&Cn.store.get&&this.sort(Cn.store.get(this)||[]),_extends(this,AnimationStateManager())}Sortable.prototype={constructor:Sortable,_isOutsideThisEl:function(Cn){!this.el.contains(Cn)&&Cn!==this.el&&(lastTarget=null)},_getDirection:function(Cn,$n){return typeof this.options.direction=="function"?this.options.direction.call(this,Cn,$n,dragEl):this.options.direction},_onTapStart:function(Cn){if(Cn.cancelable){var $n=this,Nn=this.el,Bn=this.options,Ln=Bn.preventOnFilter,In=Cn.type,Pn=Cn.touches&&Cn.touches[0]||Cn.pointerType&&Cn.pointerType==="touch"&&Cn,Dn=(Pn||Cn).target,Un=Cn.target.shadowRoot&&(Cn.path&&Cn.path[0]||Cn.composedPath&&Cn.composedPath()[0])||Dn,Hn=Bn.filter;if(_saveInputCheckedState(Nn),!dragEl&&!(/mousedown|pointerdown/.test(In)&&Cn.button!==0||Bn.disabled)&&!Un.isContentEditable&&!(!this.nativeDraggable&&Safari&&Dn&&Dn.tagName.toUpperCase()==="SELECT")&&(Dn=closest(Dn,Bn.draggable,Nn,!1),!(Dn&&Dn.animated)&&lastDownEl!==Dn)){if(oldIndex=index(Dn),oldDraggableIndex=index(Dn,Bn.draggable),typeof Hn=="function"){if(Hn.call(this,Cn,Dn,this)){_dispatchEvent({sortable:$n,rootEl:Un,name:"filter",targetEl:Dn,toEl:Nn,fromEl:Nn}),pluginEvent("filter",$n,{evt:Cn}),Ln&&Cn.cancelable&&Cn.preventDefault();return}}else if(Hn&&(Hn=Hn.split(",").some(function(Xn){if(Xn=closest(Un,Xn.trim(),Nn,!1),Xn)return _dispatchEvent({sortable:$n,rootEl:Xn,name:"filter",targetEl:Dn,fromEl:Nn,toEl:Nn}),pluginEvent("filter",$n,{evt:Cn}),!0}),Hn)){Ln&&Cn.cancelable&&Cn.preventDefault();return}Bn.handle&&!closest(Un,Bn.handle,Nn,!1)||this._prepareDragStart(Cn,Pn,Dn)}}},_prepareDragStart:function(Cn,$n,Nn){var Bn=this,Ln=Bn.el,In=Bn.options,Pn=Ln.ownerDocument,Dn;if(Nn&&!dragEl&&Nn.parentNode===Ln){var Un=getRect(Nn);if(rootEl=Ln,dragEl=Nn,parentEl=dragEl.parentNode,nextEl=dragEl.nextSibling,lastDownEl=Nn,activeGroup=In.group,Sortable.dragged=dragEl,tapEvt={target:dragEl,clientX:($n||Cn).clientX,clientY:($n||Cn).clientY},tapDistanceLeft=tapEvt.clientX-Un.left,tapDistanceTop=tapEvt.clientY-Un.top,this._lastX=($n||Cn).clientX,this._lastY=($n||Cn).clientY,dragEl.style["will-change"]="all",Dn=function(){if(pluginEvent("delayEnded",Bn,{evt:Cn}),Sortable.eventCanceled){Bn._onDrop();return}Bn._disableDelayedDragEvents(),!FireFox&&Bn.nativeDraggable&&(dragEl.draggable=!0),Bn._triggerDragStart(Cn,$n),_dispatchEvent({sortable:Bn,name:"choose",originalEvent:Cn}),toggleClass(dragEl,In.chosenClass,!0)},In.ignore.split(",").forEach(function(Hn){find(dragEl,Hn.trim(),_disableDraggable)}),on$1(Pn,"dragover",nearestEmptyInsertDetectEvent),on$1(Pn,"mousemove",nearestEmptyInsertDetectEvent),on$1(Pn,"touchmove",nearestEmptyInsertDetectEvent),on$1(Pn,"mouseup",Bn._onDrop),on$1(Pn,"touchend",Bn._onDrop),on$1(Pn,"touchcancel",Bn._onDrop),FireFox&&this.nativeDraggable&&(this.options.touchStartThreshold=4,dragEl.draggable=!0),pluginEvent("delayStart",this,{evt:Cn}),In.delay&&(!In.delayOnTouchOnly||$n)&&(!this.nativeDraggable||!(Edge||IE11OrLess))){if(Sortable.eventCanceled){this._onDrop();return}on$1(Pn,"mouseup",Bn._disableDelayedDrag),on$1(Pn,"touchend",Bn._disableDelayedDrag),on$1(Pn,"touchcancel",Bn._disableDelayedDrag),on$1(Pn,"mousemove",Bn._delayedDragTouchMoveHandler),on$1(Pn,"touchmove",Bn._delayedDragTouchMoveHandler),In.supportPointer&&on$1(Pn,"pointermove",Bn._delayedDragTouchMoveHandler),Bn._dragStartTimer=setTimeout(Dn,In.delay)}else Dn()}},_delayedDragTouchMoveHandler:function(Cn){var $n=Cn.touches?Cn.touches[0]:Cn;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(){dragEl&&_disableDraggable(dragEl),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var Cn=this.el.ownerDocument;off(Cn,"mouseup",this._disableDelayedDrag),off(Cn,"touchend",this._disableDelayedDrag),off(Cn,"touchcancel",this._disableDelayedDrag),off(Cn,"mousemove",this._delayedDragTouchMoveHandler),off(Cn,"touchmove",this._delayedDragTouchMoveHandler),off(Cn,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(Cn,$n){$n=$n||Cn.pointerType=="touch"&&Cn,!this.nativeDraggable||$n?this.options.supportPointer?on$1(document,"pointermove",this._onTouchMove):$n?on$1(document,"touchmove",this._onTouchMove):on$1(document,"mousemove",this._onTouchMove):(on$1(dragEl,"dragend",this),on$1(rootEl,"dragstart",this._onDragStart));try{document.selection?_nextTick(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(Cn,$n){if(awaitingDragStarted=!1,rootEl&&dragEl){pluginEvent("dragStarted",this,{evt:$n}),this.nativeDraggable&&on$1(document,"dragover",_checkOutsideTargetEl);var Nn=this.options;!Cn&&toggleClass(dragEl,Nn.dragClass,!1),toggleClass(dragEl,Nn.ghostClass,!0),Sortable.active=this,Cn&&this._appendGhost(),_dispatchEvent({sortable:this,name:"start",originalEvent:$n})}else this._nulling()},_emulateDragOver:function(){if(touchEvt){this._lastX=touchEvt.clientX,this._lastY=touchEvt.clientY,_hideGhostForTarget();for(var Cn=document.elementFromPoint(touchEvt.clientX,touchEvt.clientY),$n=Cn;Cn&&Cn.shadowRoot&&(Cn=Cn.shadowRoot.elementFromPoint(touchEvt.clientX,touchEvt.clientY),Cn!==$n);)$n=Cn;if(dragEl.parentNode[expando]._isOutsideThisEl(Cn),$n)do{if($n[expando]){var Nn=void 0;if(Nn=$n[expando]._onDragOver({clientX:touchEvt.clientX,clientY:touchEvt.clientY,target:Cn,rootEl:$n}),Nn&&!this.options.dragoverBubble)break}Cn=$n}while($n=$n.parentNode);_unhideGhostForTarget()}},_onTouchMove:function(Cn){if(tapEvt){var $n=this.options,Nn=$n.fallbackTolerance,Bn=$n.fallbackOffset,Ln=Cn.touches?Cn.touches[0]:Cn,In=ghostEl&&matrix(ghostEl,!0),Pn=ghostEl&&In&&In.a,Dn=ghostEl&&In&&In.d,Un=PositionGhostAbsolutely&&ghostRelativeParent&&getRelativeScrollOffset(ghostRelativeParent),Hn=(Ln.clientX-tapEvt.clientX+Bn.x)/(Pn||1)+(Un?Un[0]-ghostRelativeParentInitialScroll[0]:0)/(Pn||1),Xn=(Ln.clientY-tapEvt.clientY+Bn.y)/(Dn||1)+(Un?Un[1]-ghostRelativeParentInitialScroll[1]:0)/(Dn||1);if(!Sortable.active&&!awaitingDragStarted){if(Nn&&Math.max(Math.abs(Ln.clientX-this._lastX),Math.abs(Ln.clientY-this._lastY))<Nn)return;this._onDragStart(Cn,!0)}if(ghostEl){In?(In.e+=Hn-(lastDx||0),In.f+=Xn-(lastDy||0)):In={a:1,b:0,c:0,d:1,e:Hn,f:Xn};var Gn="matrix(".concat(In.a,",").concat(In.b,",").concat(In.c,",").concat(In.d,",").concat(In.e,",").concat(In.f,")");css(ghostEl,"webkitTransform",Gn),css(ghostEl,"mozTransform",Gn),css(ghostEl,"msTransform",Gn),css(ghostEl,"transform",Gn),lastDx=Hn,lastDy=Xn,touchEvt=Ln}Cn.cancelable&&Cn.preventDefault()}},_appendGhost:function(){if(!ghostEl){var Cn=this.options.fallbackOnBody?document.body:rootEl,$n=getRect(dragEl,!0,PositionGhostAbsolutely,!0,Cn),Nn=this.options;if(PositionGhostAbsolutely){for(ghostRelativeParent=Cn;css(ghostRelativeParent,"position")==="static"&&css(ghostRelativeParent,"transform")==="none"&&ghostRelativeParent!==document;)ghostRelativeParent=ghostRelativeParent.parentNode;ghostRelativeParent!==document.body&&ghostRelativeParent!==document.documentElement?(ghostRelativeParent===document&&(ghostRelativeParent=getWindowScrollingElement()),$n.top+=ghostRelativeParent.scrollTop,$n.left+=ghostRelativeParent.scrollLeft):ghostRelativeParent=getWindowScrollingElement(),ghostRelativeParentInitialScroll=getRelativeScrollOffset(ghostRelativeParent)}ghostEl=dragEl.cloneNode(!0),toggleClass(ghostEl,Nn.ghostClass,!1),toggleClass(ghostEl,Nn.fallbackClass,!0),toggleClass(ghostEl,Nn.dragClass,!0),css(ghostEl,"transition",""),css(ghostEl,"transform",""),css(ghostEl,"box-sizing","border-box"),css(ghostEl,"margin",0),css(ghostEl,"top",$n.top),css(ghostEl,"left",$n.left),css(ghostEl,"width",$n.width),css(ghostEl,"height",$n.height),css(ghostEl,"opacity","0.8"),css(ghostEl,"position",PositionGhostAbsolutely?"absolute":"fixed"),css(ghostEl,"zIndex","100000"),css(ghostEl,"pointerEvents","none"),Sortable.ghost=ghostEl,Cn.appendChild(ghostEl),css(ghostEl,"transform-origin",tapDistanceLeft/parseInt(ghostEl.style.width)*100+"% "+tapDistanceTop/parseInt(ghostEl.style.height)*100+"%")}},_onDragStart:function(Cn,$n){var Nn=this,Bn=Cn.dataTransfer,Ln=Nn.options;if(pluginEvent("dragStart",this,{evt:Cn}),Sortable.eventCanceled){this._onDrop();return}pluginEvent("setupClone",this),Sortable.eventCanceled||(cloneEl=clone(dragEl),cloneEl.removeAttribute("id"),cloneEl.draggable=!1,cloneEl.style["will-change"]="",this._hideClone(),toggleClass(cloneEl,this.options.chosenClass,!1),Sortable.clone=cloneEl),Nn.cloneId=_nextTick(function(){pluginEvent("clone",Nn),!Sortable.eventCanceled&&(Nn.options.removeCloneOnHide||rootEl.insertBefore(cloneEl,dragEl),Nn._hideClone(),_dispatchEvent({sortable:Nn,name:"clone"}))}),!$n&&toggleClass(dragEl,Ln.dragClass,!0),$n?(ignoreNextClick=!0,Nn._loopId=setInterval(Nn._emulateDragOver,50)):(off(document,"mouseup",Nn._onDrop),off(document,"touchend",Nn._onDrop),off(document,"touchcancel",Nn._onDrop),Bn&&(Bn.effectAllowed="move",Ln.setData&&Ln.setData.call(Nn,Bn,dragEl)),on$1(document,"drop",Nn),css(dragEl,"transform","translateZ(0)")),awaitingDragStarted=!0,Nn._dragStartId=_nextTick(Nn._dragStarted.bind(Nn,$n,Cn)),on$1(document,"selectstart",Nn),moved=!0,Safari&&css(document.body,"user-select","none")},_onDragOver:function(Cn){var $n=this.el,Nn=Cn.target,Bn,Ln,In,Pn=this.options,Dn=Pn.group,Un=Sortable.active,Hn=activeGroup===Dn,Xn=Pn.sort,Gn=putSortable||Un,ei,nr=this,ni=!1;if(_silent)return;function ai(Ri,Hi){pluginEvent(Ri,nr,_objectSpread2({evt:Cn,isOwner:Hn,axis:ei?"vertical":"horizontal",revert:In,dragRect:Bn,targetRect:Ln,canSort:Xn,fromSortable:Gn,target:Nn,completed:gi,onMove:function(sa,Pi){return _onMove(rootEl,$n,dragEl,Bn,sa,getRect(sa),Cn,Pi)},changed:Si},Hi))}function si(){ai("dragOverAnimationCapture"),nr.captureAnimationState(),nr!==Gn&&Gn.captureAnimationState()}function gi(Ri){return ai("dragOverCompleted",{insertion:Ri}),Ri&&(Hn?Un._hideClone():Un._showClone(nr),nr!==Gn&&(toggleClass(dragEl,putSortable?putSortable.options.ghostClass:Un.options.ghostClass,!1),toggleClass(dragEl,Pn.ghostClass,!0)),putSortable!==nr&&nr!==Sortable.active?putSortable=nr:nr===Sortable.active&&putSortable&&(putSortable=null),Gn===nr&&(nr._ignoreWhileAnimating=Nn),nr.animateAll(function(){ai("dragOverAnimationComplete"),nr._ignoreWhileAnimating=null}),nr!==Gn&&(Gn.animateAll(),Gn._ignoreWhileAnimating=null)),(Nn===dragEl&&!dragEl.animated||Nn===$n&&!Nn.animated)&&(lastTarget=null),!Pn.dragoverBubble&&!Cn.rootEl&&Nn!==document&&(dragEl.parentNode[expando]._isOutsideThisEl(Cn.target),!Ri&&nearestEmptyInsertDetectEvent(Cn)),!Pn.dragoverBubble&&Cn.stopPropagation&&Cn.stopPropagation(),ni=!0}function Si(){newIndex=index(dragEl),newDraggableIndex=index(dragEl,Pn.draggable),_dispatchEvent({sortable:nr,name:"change",toEl:$n,newIndex,newDraggableIndex,originalEvent:Cn})}if(Cn.preventDefault!==void 0&&Cn.cancelable&&Cn.preventDefault(),Nn=closest(Nn,Pn.draggable,$n,!0),ai("dragOver"),Sortable.eventCanceled)return ni;if(dragEl.contains(Cn.target)||Nn.animated&&Nn.animatingX&&Nn.animatingY||nr._ignoreWhileAnimating===Nn)return gi(!1);if(ignoreNextClick=!1,Un&&!Pn.disabled&&(Hn?Xn||(In=parentEl!==rootEl):putSortable===this||(this.lastPutMode=activeGroup.checkPull(this,Un,dragEl,Cn))&&Dn.checkPut(this,Un,dragEl,Cn))){if(ei=this._getDirection(Cn,Nn)==="vertical",Bn=getRect(dragEl),ai("dragOverValid"),Sortable.eventCanceled)return ni;if(In)return parentEl=rootEl,si(),this._hideClone(),ai("revert"),Sortable.eventCanceled||(nextEl?rootEl.insertBefore(dragEl,nextEl):rootEl.appendChild(dragEl)),gi(!0);var ri=lastChild($n,Pn.draggable);if(!ri||_ghostIsLast(Cn,ei,this)&&!ri.animated){if(ri===dragEl)return gi(!1);if(ri&&$n===Cn.target&&(Nn=ri),Nn&&(Ln=getRect(Nn)),_onMove(rootEl,$n,dragEl,Bn,Nn,Ln,Cn,!!Nn)!==!1)return si(),ri&&ri.nextSibling?$n.insertBefore(dragEl,ri.nextSibling):$n.appendChild(dragEl),parentEl=$n,Si(),gi(!0)}else if(ri&&_ghostIsFirst(Cn,ei,this)){var Ei=getChild($n,0,Pn,!0);if(Ei===dragEl)return gi(!1);if(Nn=Ei,Ln=getRect(Nn),_onMove(rootEl,$n,dragEl,Bn,Nn,Ln,Cn,!1)!==!1)return si(),$n.insertBefore(dragEl,Ei),parentEl=$n,Si(),gi(!0)}else if(Nn.parentNode===$n){Ln=getRect(Nn);var $i=0,zn,li=dragEl.parentNode!==$n,oi=!_dragElInRowColumn(dragEl.animated&&dragEl.toRect||Bn,Nn.animated&&Nn.toRect||Ln,ei),ui=ei?"top":"left",mi=isScrolledPast(Nn,"top","top")||isScrolledPast(dragEl,"top","top"),_i=mi?mi.scrollTop:void 0;lastTarget!==Nn&&(zn=Ln[ui],pastFirstInvertThresh=!1,isCircumstantialInvert=!oi&&Pn.invertSwap||li),$i=_getSwapDirection(Cn,Nn,Ln,ei,oi?1:Pn.swapThreshold,Pn.invertedSwapThreshold==null?Pn.swapThreshold:Pn.invertedSwapThreshold,isCircumstantialInvert,lastTarget===Nn);var yi;if($i!==0){var Fi=index(dragEl);do Fi-=$i,yi=parentEl.children[Fi];while(yi&&(css(yi,"display")==="none"||yi===ghostEl))}if($i===0||yi===Nn)return gi(!1);lastTarget=Nn,lastDirection=$i;var ta=Nn.nextElementSibling,qo=!1;qo=$i===1;var Ci=_onMove(rootEl,$n,dragEl,Bn,Nn,Ln,Cn,qo);if(Ci!==!1)return(Ci===1||Ci===-1)&&(qo=Ci===1),_silent=!0,setTimeout(_unsilent,30),si(),qo&&!ta?$n.appendChild(dragEl):Nn.parentNode.insertBefore(dragEl,qo?ta:Nn),mi&&scrollBy(mi,0,_i-mi.scrollTop),parentEl=dragEl.parentNode,zn!==void 0&&!isCircumstantialInvert&&(targetMoveDistance=Math.abs(zn-getRect(Nn)[ui])),Si(),gi(!0)}if($n.contains(dragEl))return gi(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){off(document,"mousemove",this._onTouchMove),off(document,"touchmove",this._onTouchMove),off(document,"pointermove",this._onTouchMove),off(document,"dragover",nearestEmptyInsertDetectEvent),off(document,"mousemove",nearestEmptyInsertDetectEvent),off(document,"touchmove",nearestEmptyInsertDetectEvent)},_offUpEvents:function(){var Cn=this.el.ownerDocument;off(Cn,"mouseup",this._onDrop),off(Cn,"touchend",this._onDrop),off(Cn,"pointerup",this._onDrop),off(Cn,"touchcancel",this._onDrop),off(document,"selectstart",this)},_onDrop:function(Cn){var $n=this.el,Nn=this.options;if(newIndex=index(dragEl),newDraggableIndex=index(dragEl,Nn.draggable),pluginEvent("drop",this,{evt:Cn}),parentEl=dragEl&&dragEl.parentNode,newIndex=index(dragEl),newDraggableIndex=index(dragEl,Nn.draggable),Sortable.eventCanceled){this._nulling();return}awaitingDragStarted=!1,isCircumstantialInvert=!1,pastFirstInvertThresh=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),_cancelNextTick(this.cloneId),_cancelNextTick(this._dragStartId),this.nativeDraggable&&(off(document,"drop",this),off($n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Safari&&css(document.body,"user-select",""),css(dragEl,"transform",""),Cn&&(moved&&(Cn.cancelable&&Cn.preventDefault(),!Nn.dropBubble&&Cn.stopPropagation()),ghostEl&&ghostEl.parentNode&&ghostEl.parentNode.removeChild(ghostEl),(rootEl===parentEl||putSortable&&putSortable.lastPutMode!=="clone")&&cloneEl&&cloneEl.parentNode&&cloneEl.parentNode.removeChild(cloneEl),dragEl&&(this.nativeDraggable&&off(dragEl,"dragend",this),_disableDraggable(dragEl),dragEl.style["will-change"]="",moved&&!awaitingDragStarted&&toggleClass(dragEl,putSortable?putSortable.options.ghostClass:this.options.ghostClass,!1),toggleClass(dragEl,this.options.chosenClass,!1),_dispatchEvent({sortable:this,name:"unchoose",toEl:parentEl,newIndex:null,newDraggableIndex:null,originalEvent:Cn}),rootEl!==parentEl?(newIndex>=0&&(_dispatchEvent({rootEl:parentEl,name:"add",toEl:parentEl,fromEl:rootEl,originalEvent:Cn}),_dispatchEvent({sortable:this,name:"remove",toEl:parentEl,originalEvent:Cn}),_dispatchEvent({rootEl:parentEl,name:"sort",toEl:parentEl,fromEl:rootEl,originalEvent:Cn}),_dispatchEvent({sortable:this,name:"sort",toEl:parentEl,originalEvent:Cn})),putSortable&&putSortable.save()):newIndex!==oldIndex&&newIndex>=0&&(_dispatchEvent({sortable:this,name:"update",toEl:parentEl,originalEvent:Cn}),_dispatchEvent({sortable:this,name:"sort",toEl:parentEl,originalEvent:Cn})),Sortable.active&&((newIndex==null||newIndex===-1)&&(newIndex=oldIndex,newDraggableIndex=oldDraggableIndex),_dispatchEvent({sortable:this,name:"end",toEl:parentEl,originalEvent:Cn}),this.save()))),this._nulling()},_nulling:function(){pluginEvent("nulling",this),rootEl=dragEl=parentEl=ghostEl=nextEl=cloneEl=lastDownEl=cloneHidden=tapEvt=touchEvt=moved=newIndex=newDraggableIndex=oldIndex=oldDraggableIndex=lastTarget=lastDirection=putSortable=activeGroup=Sortable.dragged=Sortable.ghost=Sortable.clone=Sortable.active=null,savedInputChecked.forEach(function(Cn){Cn.checked=!0}),savedInputChecked.length=lastDx=lastDy=0},handleEvent:function(Cn){switch(Cn.type){case"drop":case"dragend":this._onDrop(Cn);break;case"dragenter":case"dragover":dragEl&&(this._onDragOver(Cn),_globalDragOver(Cn));break;case"selectstart":Cn.preventDefault();break}},toArray:function(){for(var Cn=[],$n,Nn=this.el.children,Bn=0,Ln=Nn.length,In=this.options;Bn<Ln;Bn++)$n=Nn[Bn],closest($n,In.draggable,this.el,!1)&&Cn.push($n.getAttribute(In.dataIdAttr)||_generateId($n));return Cn},sort:function(Cn,$n){var Nn={},Bn=this.el;this.toArray().forEach(function(Ln,In){var Pn=Bn.children[In];closest(Pn,this.options.draggable,Bn,!1)&&(Nn[Ln]=Pn)},this),$n&&this.captureAnimationState(),Cn.forEach(function(Ln){Nn[Ln]&&(Bn.removeChild(Nn[Ln]),Bn.appendChild(Nn[Ln]))}),$n&&this.animateAll()},save:function(){var Cn=this.options.store;Cn&&Cn.set&&Cn.set(this)},closest:function(Cn,$n){return closest(Cn,$n||this.options.draggable,this.el,!1)},option:function(Cn,$n){var Nn=this.options;if($n===void 0)return Nn[Cn];var Bn=PluginManager.modifyOption(this,Cn,$n);typeof Bn<"u"?Nn[Cn]=Bn:Nn[Cn]=$n,Cn==="group"&&_prepareGroup(Nn)},destroy:function(){pluginEvent("destroy",this);var Cn=this.el;Cn[expando]=null,off(Cn,"mousedown",this._onTapStart),off(Cn,"touchstart",this._onTapStart),off(Cn,"pointerdown",this._onTapStart),this.nativeDraggable&&(off(Cn,"dragover",this),off(Cn,"dragenter",this)),Array.prototype.forEach.call(Cn.querySelectorAll("[draggable]"),function($n){$n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),sortables.splice(sortables.indexOf(this.el),1),this.el=Cn=null},_hideClone:function(){if(!cloneHidden){if(pluginEvent("hideClone",this),Sortable.eventCanceled)return;css(cloneEl,"display","none"),this.options.removeCloneOnHide&&cloneEl.parentNode&&cloneEl.parentNode.removeChild(cloneEl),cloneHidden=!0}},_showClone:function(Cn){if(Cn.lastPutMode!=="clone"){this._hideClone();return}if(cloneHidden){if(pluginEvent("showClone",this),Sortable.eventCanceled)return;dragEl.parentNode==rootEl&&!this.options.group.revertClone?rootEl.insertBefore(cloneEl,dragEl):nextEl?rootEl.insertBefore(cloneEl,nextEl):rootEl.appendChild(cloneEl),this.options.group.revertClone&&this.animate(dragEl,cloneEl),css(cloneEl,"display",""),cloneHidden=!1}}};function _globalDragOver(_n){_n.dataTransfer&&(_n.dataTransfer.dropEffect="move"),_n.cancelable&&_n.preventDefault()}function _onMove(_n,Cn,$n,Nn,Bn,Ln,In,Pn){var Dn,Un=_n[expando],Hn=Un.options.onMove,Xn;return window.CustomEvent&&!IE11OrLess&&!Edge?Dn=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(Dn=document.createEvent("Event"),Dn.initEvent("move",!0,!0)),Dn.to=Cn,Dn.from=_n,Dn.dragged=$n,Dn.draggedRect=Nn,Dn.related=Bn||Cn,Dn.relatedRect=Ln||getRect(Cn),Dn.willInsertAfter=Pn,Dn.originalEvent=In,_n.dispatchEvent(Dn),Hn&&(Xn=Hn.call(Un,Dn,In)),Xn}function _disableDraggable(_n){_n.draggable=!1}function _unsilent(){_silent=!1}function _ghostIsFirst(_n,Cn,$n){var Nn=getRect(getChild($n.el,0,$n.options,!0)),Bn=10;return Cn?_n.clientX<Nn.left-Bn||_n.clientY<Nn.top&&_n.clientX<Nn.right:_n.clientY<Nn.top-Bn||_n.clientY<Nn.bottom&&_n.clientX<Nn.left}function _ghostIsLast(_n,Cn,$n){var Nn=getRect(lastChild($n.el,$n.options.draggable)),Bn=10;return Cn?_n.clientX>Nn.right+Bn||_n.clientX<=Nn.right&&_n.clientY>Nn.bottom&&_n.clientX>=Nn.left:_n.clientX>Nn.right&&_n.clientY>Nn.top||_n.clientX<=Nn.right&&_n.clientY>Nn.bottom+Bn}function _getSwapDirection(_n,Cn,$n,Nn,Bn,Ln,In,Pn){var Dn=Nn?_n.clientY:_n.clientX,Un=Nn?$n.height:$n.width,Hn=Nn?$n.top:$n.left,Xn=Nn?$n.bottom:$n.right,Gn=!1;if(!In){if(Pn&&targetMoveDistance<Un*Bn){if(!pastFirstInvertThresh&&(lastDirection===1?Dn>Hn+Un*Ln/2:Dn<Xn-Un*Ln/2)&&(pastFirstInvertThresh=!0),pastFirstInvertThresh)Gn=!0;else if(lastDirection===1?Dn<Hn+targetMoveDistance:Dn>Xn-targetMoveDistance)return-lastDirection}else if(Dn>Hn+Un*(1-Bn)/2&&Dn<Xn-Un*(1-Bn)/2)return _getInsertDirection(Cn)}return Gn=Gn||In,Gn&&(Dn<Hn+Un*Ln/2||Dn>Xn-Un*Ln/2)?Dn>Hn+Un/2?1:-1:0}function _getInsertDirection(_n){return index(dragEl)<index(_n)?1:-1}function _generateId(_n){for(var Cn=_n.tagName+_n.className+_n.src+_n.href+_n.textContent,$n=Cn.length,Nn=0;$n--;)Nn+=Cn.charCodeAt($n);return Nn.toString(36)}function _saveInputCheckedState(_n){savedInputChecked.length=0;for(var Cn=_n.getElementsByTagName("input"),$n=Cn.length;$n--;){var Nn=Cn[$n];Nn.checked&&savedInputChecked.push(Nn)}}function _nextTick(_n){return setTimeout(_n,0)}function _cancelNextTick(_n){return clearTimeout(_n)}documentExists&&on$1(document,"touchmove",function(_n){(Sortable.active||awaitingDragStarted)&&_n.cancelable&&_n.preventDefault()}),Sortable.utils={on:on$1,off,css,find,is:function(Cn,$n){return!!closest(Cn,$n,Cn,!1)},extend:extend$2,throttle,closest,toggleClass,clone,index,nextTick:_nextTick,cancelNextTick:_cancelNextTick,detectDirection:_detectDirection,getChild},Sortable.get=function(_n){return _n[expando]},Sortable.mount=function(){for(var _n=arguments.length,Cn=new Array(_n),$n=0;$n<_n;$n++)Cn[$n]=arguments[$n];Cn[0].constructor===Array&&(Cn=Cn[0]),Cn.forEach(function(Nn){if(!Nn.prototype||!Nn.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(Nn));Nn.utils&&(Sortable.utils=_objectSpread2(_objectSpread2({},Sortable.utils),Nn.utils)),PluginManager.mount(Nn)})},Sortable.create=function(_n,Cn){return new Sortable(_n,Cn)},Sortable.version=version;var autoScrolls=[],scrollEl,scrollRootEl,scrolling=!1,lastAutoScrollX,lastAutoScrollY,touchEvt$1,pointerElemChangedInterval;function AutoScrollPlugin(){function _n(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var Cn in this)Cn.charAt(0)==="_"&&typeof this[Cn]=="function"&&(this[Cn]=this[Cn].bind(this))}return _n.prototype={dragStarted:function($n){var Nn=$n.originalEvent;this.sortable.nativeDraggable?on$1(document,"dragover",this._handleAutoScroll):this.options.supportPointer?on$1(document,"pointermove",this._handleFallbackAutoScroll):Nn.touches?on$1(document,"touchmove",this._handleFallbackAutoScroll):on$1(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function($n){var Nn=$n.originalEvent;!this.options.dragOverBubble&&!Nn.rootEl&&this._handleAutoScroll(Nn)},drop:function(){this.sortable.nativeDraggable?off(document,"dragover",this._handleAutoScroll):(off(document,"pointermove",this._handleFallbackAutoScroll),off(document,"touchmove",this._handleFallbackAutoScroll),off(document,"mousemove",this._handleFallbackAutoScroll)),clearPointerElemChangedInterval(),clearAutoScrolls(),cancelThrottle()},nulling:function(){touchEvt$1=scrollRootEl=scrollEl=scrolling=pointerElemChangedInterval=lastAutoScrollX=lastAutoScrollY=null,autoScrolls.length=0},_handleFallbackAutoScroll:function($n){this._handleAutoScroll($n,!0)},_handleAutoScroll:function($n,Nn){var Bn=this,Ln=($n.touches?$n.touches[0]:$n).clientX,In=($n.touches?$n.touches[0]:$n).clientY,Pn=document.elementFromPoint(Ln,In);if(touchEvt$1=$n,Nn||this.options.forceAutoScrollFallback||Edge||IE11OrLess||Safari){autoScroll($n,this.options,Pn,Nn);var Dn=getParentAutoScrollElement(Pn,!0);scrolling&&(!pointerElemChangedInterval||Ln!==lastAutoScrollX||In!==lastAutoScrollY)&&(pointerElemChangedInterval&&clearPointerElemChangedInterval(),pointerElemChangedInterval=setInterval(function(){var Un=getParentAutoScrollElement(document.elementFromPoint(Ln,In),!0);Un!==Dn&&(Dn=Un,clearAutoScrolls()),autoScroll($n,Bn.options,Un,Nn)},10),lastAutoScrollX=Ln,lastAutoScrollY=In)}else{if(!this.options.bubbleScroll||getParentAutoScrollElement(Pn,!0)===getWindowScrollingElement()){clearAutoScrolls();return}autoScroll($n,this.options,getParentAutoScrollElement(Pn,!1),!1)}}},_extends(_n,{pluginName:"scroll",initializeByDefault:!0})}function clearAutoScrolls(){autoScrolls.forEach(function(_n){clearInterval(_n.pid)}),autoScrolls=[]}function clearPointerElemChangedInterval(){clearInterval(pointerElemChangedInterval)}var autoScroll=throttle(function(_n,Cn,$n,Nn){if(Cn.scroll){var Bn=(_n.touches?_n.touches[0]:_n).clientX,Ln=(_n.touches?_n.touches[0]:_n).clientY,In=Cn.scrollSensitivity,Pn=Cn.scrollSpeed,Dn=getWindowScrollingElement(),Un=!1,Hn;scrollRootEl!==$n&&(scrollRootEl=$n,clearAutoScrolls(),scrollEl=Cn.scroll,Hn=Cn.scrollFn,scrollEl===!0&&(scrollEl=getParentAutoScrollElement($n,!0)));var Xn=0,Gn=scrollEl;do{var ei=Gn,nr=getRect(ei),ni=nr.top,ai=nr.bottom,si=nr.left,gi=nr.right,Si=nr.width,ri=nr.height,Ei=void 0,$i=void 0,zn=ei.scrollWidth,li=ei.scrollHeight,oi=css(ei),ui=ei.scrollLeft,mi=ei.scrollTop;ei===Dn?(Ei=Si<zn&&(oi.overflowX==="auto"||oi.overflowX==="scroll"||oi.overflowX==="visible"),$i=ri<li&&(oi.overflowY==="auto"||oi.overflowY==="scroll"||oi.overflowY==="visible")):(Ei=Si<zn&&(oi.overflowX==="auto"||oi.overflowX==="scroll"),$i=ri<li&&(oi.overflowY==="auto"||oi.overflowY==="scroll"));var _i=Ei&&(Math.abs(gi-Bn)<=In&&ui+Si<zn)-(Math.abs(si-Bn)<=In&&!!ui),yi=$i&&(Math.abs(ai-Ln)<=In&&mi+ri<li)-(Math.abs(ni-Ln)<=In&&!!mi);if(!autoScrolls[Xn])for(var Fi=0;Fi<=Xn;Fi++)autoScrolls[Fi]||(autoScrolls[Fi]={});(autoScrolls[Xn].vx!=_i||autoScrolls[Xn].vy!=yi||autoScrolls[Xn].el!==ei)&&(autoScrolls[Xn].el=ei,autoScrolls[Xn].vx=_i,autoScrolls[Xn].vy=yi,clearInterval(autoScrolls[Xn].pid),(_i!=0||yi!=0)&&(Un=!0,autoScrolls[Xn].pid=setInterval((function(){Nn&&this.layer===0&&Sortable.active._onTouchMove(touchEvt$1);var ta=autoScrolls[this.layer].vy?autoScrolls[this.layer].vy*Pn:0,qo=autoScrolls[this.layer].vx?autoScrolls[this.layer].vx*Pn:0;typeof Hn=="function"&&Hn.call(Sortable.dragged.parentNode[expando],qo,ta,_n,touchEvt$1,autoScrolls[this.layer].el)!=="continue"||scrollBy(autoScrolls[this.layer].el,qo,ta)}).bind({layer:Xn}),24))),Xn++}while(Cn.bubbleScroll&&Gn!==Dn&&(Gn=getParentAutoScrollElement(Gn,!1)));scrolling=Un}},30),drop=function(Cn){var $n=Cn.originalEvent,Nn=Cn.putSortable,Bn=Cn.dragEl,Ln=Cn.activeSortable,In=Cn.dispatchSortableEvent,Pn=Cn.hideGhostForTarget,Dn=Cn.unhideGhostForTarget;if($n){var Un=Nn||Ln;Pn();var Hn=$n.changedTouches&&$n.changedTouches.length?$n.changedTouches[0]:$n,Xn=document.elementFromPoint(Hn.clientX,Hn.clientY);Dn(),Un&&!Un.el.contains(Xn)&&(In("spill"),this.onSpill({dragEl:Bn,putSortable:Nn}))}};function Revert(){}Revert.prototype={startIndex:null,dragStart:function(Cn){var $n=Cn.oldDraggableIndex;this.startIndex=$n},onSpill:function(Cn){var $n=Cn.dragEl,Nn=Cn.putSortable;this.sortable.captureAnimationState(),Nn&&Nn.captureAnimationState();var Bn=getChild(this.sortable.el,this.startIndex,this.options);Bn?this.sortable.el.insertBefore($n,Bn):this.sortable.el.appendChild($n),this.sortable.animateAll(),Nn&&Nn.animateAll()},drop},_extends(Revert,{pluginName:"revertOnSpill"});function Remove(){}Remove.prototype={onSpill:function(Cn){var $n=Cn.dragEl,Nn=Cn.putSortable,Bn=Nn||this.sortable;Bn.captureAnimationState(),$n.parentNode&&$n.parentNode.removeChild($n),Bn.animateAll()},drop},_extends(Remove,{pluginName:"removeOnSpill"}),Sortable.mount(new AutoScrollPlugin),Sortable.mount(Remove,Revert);const splitTags=(_n,Cn=!1,$n=!1)=>{if(_n==null||_n===!1||_n===""||_n.trim()==="")return[];_n=_n.replace(/,/g,","),_n=_n.replace(/。/g,","),_n=_n.replace(/、/g,","),_n=_n.replace(/;/g,","),_n=_n.replace(/./g,","),_n=_n.replace(/\t/g,`
|
||
`),_n=_n.replace(/\r/g,`
|
||
`),_n=_n.replace(/\n+/g,`
|
||
`),_n=_n.replace(/\>_\</g,"|||EXPRESSION1|||");const Nn={"(":")","[":"]","<":">","{":"}"},Bn=Object.keys(Nn);let Ln=_n.length,In="",Pn="",Dn="",Un=0,Hn=[];for(let Gn=0;Gn<Ln;Gn++){const ei=_n[Gn];ei===`
|
||
`?Pn===""?(In.trim()!==""&&Hn.push(In.trim()),Hn.push(`
|
||
`),Un=0,Pn="",Dn="",In=""):In+=" ":ei===","?Pn===""?(Hn.push(In.trim()),Un=0,Pn="",Dn="",In=""):In+=ei:Pn===""?Bn.includes(ei)?(Un=1,Pn=ei,Dn=Nn[ei],In+=ei):ei===" "&&In.trim()==="BREAK"?(Hn.push(In.trim()),Un=0,Pn="",Dn="",In=""):(In+=ei,In.endsWith(" BREAK")&&(In=In.substring(0,In.length-6),Hn.push(In.trim()),Hn.push("BREAK"),Un=0,Pn="",Dn="",In="")):ei===Dn?(Un--,Un===0&&(Pn="",Dn=""),In+=ei):(ei===Pn&&Un++,In+=ei)}In!==""&&Hn.push(In.trim());let Xn=[];for(let Gn of Hn){if(Gn===`
|
||
`){Xn.push(Gn);continue}let ei=Gn[0],nr=Gn[Gn.length-1];if(ei==="["&&nr==="]"){Xn.push(Gn);continue}if(ei==="("&&nr===")"){Xn.push(Gn);continue}let ni=/\<lora:[^\>]+\>/,ai=null,si=[];for(;ai=ni.exec(Gn);){let gi=ai.index,Si=gi+ai[0].length,ri=Gn.substring(0,gi),Ei=Gn.substring(Si),$i=ai[0];si.push(ri),si.push($i),Gn=Ei}si.push(Gn);for(let gi of si)gi===""||gi.trim()===""||(gi=gi.replace(/\|\|\|EXPRESSION1\|\|\|/g,">_<"),Xn.push(gi))}return Hn=Xn,Hn},globals={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",civitaiUrl:"https://civitai.com"};function _typeof(_n){"@babel/helpers - typeof";return _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Cn){return typeof Cn}:function(Cn){return Cn&&typeof Symbol=="function"&&Cn.constructor===Symbol&&Cn!==Symbol.prototype?"symbol":typeof Cn},_typeof(_n)}var trimLeft=/^\s+/,trimRight=/\s+$/;function tinycolor(_n,Cn){if(_n=_n||"",Cn=Cn||{},_n instanceof tinycolor)return _n;if(!(this instanceof tinycolor))return new tinycolor(_n,Cn);var $n=inputToRGB(_n);this._originalInput=_n,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=Cn.format||$n.format,this._gradientType=Cn.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}tinycolor.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 Cn=this.toRgb();return(Cn.r*299+Cn.g*587+Cn.b*114)/1e3},getLuminance:function(){var Cn=this.toRgb(),$n,Nn,Bn,Ln,In,Pn;return $n=Cn.r/255,Nn=Cn.g/255,Bn=Cn.b/255,$n<=.03928?Ln=$n/12.92:Ln=Math.pow(($n+.055)/1.055,2.4),Nn<=.03928?In=Nn/12.92:In=Math.pow((Nn+.055)/1.055,2.4),Bn<=.03928?Pn=Bn/12.92:Pn=Math.pow((Bn+.055)/1.055,2.4),.2126*Ln+.7152*In+.0722*Pn},setAlpha:function(Cn){return this._a=boundAlpha(Cn),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var Cn=rgbToHsv(this._r,this._g,this._b);return{h:Cn.h*360,s:Cn.s,v:Cn.v,a:this._a}},toHsvString:function(){var Cn=rgbToHsv(this._r,this._g,this._b),$n=Math.round(Cn.h*360),Nn=Math.round(Cn.s*100),Bn=Math.round(Cn.v*100);return this._a==1?"hsv("+$n+", "+Nn+"%, "+Bn+"%)":"hsva("+$n+", "+Nn+"%, "+Bn+"%, "+this._roundA+")"},toHsl:function(){var Cn=rgbToHsl(this._r,this._g,this._b);return{h:Cn.h*360,s:Cn.s,l:Cn.l,a:this._a}},toHslString:function(){var Cn=rgbToHsl(this._r,this._g,this._b),$n=Math.round(Cn.h*360),Nn=Math.round(Cn.s*100),Bn=Math.round(Cn.l*100);return this._a==1?"hsl("+$n+", "+Nn+"%, "+Bn+"%)":"hsla("+$n+", "+Nn+"%, "+Bn+"%, "+this._roundA+")"},toHex:function(Cn){return rgbToHex(this._r,this._g,this._b,Cn)},toHexString:function(Cn){return"#"+this.toHex(Cn)},toHex8:function(Cn){return rgbaToHex(this._r,this._g,this._b,this._a,Cn)},toHex8String:function(Cn){return"#"+this.toHex8(Cn)},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(bound01(this._r,255)*100)+"%",g:Math.round(bound01(this._g,255)*100)+"%",b:Math.round(bound01(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(bound01(this._r,255)*100)+"%, "+Math.round(bound01(this._g,255)*100)+"%, "+Math.round(bound01(this._b,255)*100)+"%)":"rgba("+Math.round(bound01(this._r,255)*100)+"%, "+Math.round(bound01(this._g,255)*100)+"%, "+Math.round(bound01(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:hexNames[rgbToHex(this._r,this._g,this._b,!0)]||!1},toFilter:function(Cn){var $n="#"+rgbaToArgbHex(this._r,this._g,this._b,this._a),Nn=$n,Bn=this._gradientType?"GradientType = 1, ":"";if(Cn){var Ln=tinycolor(Cn);Nn="#"+rgbaToArgbHex(Ln._r,Ln._g,Ln._b,Ln._a)}return"progid:DXImageTransform.Microsoft.gradient("+Bn+"startColorstr="+$n+",endColorstr="+Nn+")"},toString:function(Cn){var $n=!!Cn;Cn=Cn||this._format;var Nn=!1,Bn=this._a<1&&this._a>=0,Ln=!$n&&Bn&&(Cn==="hex"||Cn==="hex6"||Cn==="hex3"||Cn==="hex4"||Cn==="hex8"||Cn==="name");return Ln?Cn==="name"&&this._a===0?this.toName():this.toRgbString():(Cn==="rgb"&&(Nn=this.toRgbString()),Cn==="prgb"&&(Nn=this.toPercentageRgbString()),(Cn==="hex"||Cn==="hex6")&&(Nn=this.toHexString()),Cn==="hex3"&&(Nn=this.toHexString(!0)),Cn==="hex4"&&(Nn=this.toHex8String(!0)),Cn==="hex8"&&(Nn=this.toHex8String()),Cn==="name"&&(Nn=this.toName()),Cn==="hsl"&&(Nn=this.toHslString()),Cn==="hsv"&&(Nn=this.toHsvString()),Nn||this.toHexString())},clone:function(){return tinycolor(this.toString())},_applyModification:function(Cn,$n){var Nn=Cn.apply(null,[this].concat([].slice.call($n)));return this._r=Nn._r,this._g=Nn._g,this._b=Nn._b,this.setAlpha(Nn._a),this},lighten:function(){return this._applyModification(_lighten,arguments)},brighten:function(){return this._applyModification(_brighten,arguments)},darken:function(){return this._applyModification(_darken,arguments)},desaturate:function(){return this._applyModification(_desaturate,arguments)},saturate:function(){return this._applyModification(_saturate,arguments)},greyscale:function(){return this._applyModification(_greyscale,arguments)},spin:function(){return this._applyModification(_spin,arguments)},_applyCombination:function(Cn,$n){return Cn.apply(null,[this].concat([].slice.call($n)))},analogous:function(){return this._applyCombination(_analogous,arguments)},complement:function(){return this._applyCombination(_complement,arguments)},monochromatic:function(){return this._applyCombination(_monochromatic,arguments)},splitcomplement:function(){return this._applyCombination(_splitcomplement,arguments)},triad:function(){return this._applyCombination(polyad,[3])},tetrad:function(){return this._applyCombination(polyad,[4])}},tinycolor.fromRatio=function(_n,Cn){if(_typeof(_n)=="object"){var $n={};for(var Nn in _n)_n.hasOwnProperty(Nn)&&(Nn==="a"?$n[Nn]=_n[Nn]:$n[Nn]=convertToPercentage(_n[Nn]));_n=$n}return tinycolor(_n,Cn)};function inputToRGB(_n){var Cn={r:0,g:0,b:0},$n=1,Nn=null,Bn=null,Ln=null,In=!1,Pn=!1;return typeof _n=="string"&&(_n=stringInputToObject(_n)),_typeof(_n)=="object"&&(isValidCSSUnit(_n.r)&&isValidCSSUnit(_n.g)&&isValidCSSUnit(_n.b)?(Cn=rgbToRgb(_n.r,_n.g,_n.b),In=!0,Pn=String(_n.r).substr(-1)==="%"?"prgb":"rgb"):isValidCSSUnit(_n.h)&&isValidCSSUnit(_n.s)&&isValidCSSUnit(_n.v)?(Nn=convertToPercentage(_n.s),Bn=convertToPercentage(_n.v),Cn=hsvToRgb(_n.h,Nn,Bn),In=!0,Pn="hsv"):isValidCSSUnit(_n.h)&&isValidCSSUnit(_n.s)&&isValidCSSUnit(_n.l)&&(Nn=convertToPercentage(_n.s),Ln=convertToPercentage(_n.l),Cn=hslToRgb(_n.h,Nn,Ln),In=!0,Pn="hsl"),_n.hasOwnProperty("a")&&($n=_n.a)),$n=boundAlpha($n),{ok:In,format:_n.format||Pn,r:Math.min(255,Math.max(Cn.r,0)),g:Math.min(255,Math.max(Cn.g,0)),b:Math.min(255,Math.max(Cn.b,0)),a:$n}}function rgbToRgb(_n,Cn,$n){return{r:bound01(_n,255)*255,g:bound01(Cn,255)*255,b:bound01($n,255)*255}}function rgbToHsl(_n,Cn,$n){_n=bound01(_n,255),Cn=bound01(Cn,255),$n=bound01($n,255);var Nn=Math.max(_n,Cn,$n),Bn=Math.min(_n,Cn,$n),Ln,In,Pn=(Nn+Bn)/2;if(Nn==Bn)Ln=In=0;else{var Dn=Nn-Bn;switch(In=Pn>.5?Dn/(2-Nn-Bn):Dn/(Nn+Bn),Nn){case _n:Ln=(Cn-$n)/Dn+(Cn<$n?6:0);break;case Cn:Ln=($n-_n)/Dn+2;break;case $n:Ln=(_n-Cn)/Dn+4;break}Ln/=6}return{h:Ln,s:In,l:Pn}}function hslToRgb(_n,Cn,$n){var Nn,Bn,Ln;_n=bound01(_n,360),Cn=bound01(Cn,100),$n=bound01($n,100);function In(Un,Hn,Xn){return Xn<0&&(Xn+=1),Xn>1&&(Xn-=1),Xn<1/6?Un+(Hn-Un)*6*Xn:Xn<1/2?Hn:Xn<2/3?Un+(Hn-Un)*(2/3-Xn)*6:Un}if(Cn===0)Nn=Bn=Ln=$n;else{var Pn=$n<.5?$n*(1+Cn):$n+Cn-$n*Cn,Dn=2*$n-Pn;Nn=In(Dn,Pn,_n+1/3),Bn=In(Dn,Pn,_n),Ln=In(Dn,Pn,_n-1/3)}return{r:Nn*255,g:Bn*255,b:Ln*255}}function rgbToHsv(_n,Cn,$n){_n=bound01(_n,255),Cn=bound01(Cn,255),$n=bound01($n,255);var Nn=Math.max(_n,Cn,$n),Bn=Math.min(_n,Cn,$n),Ln,In,Pn=Nn,Dn=Nn-Bn;if(In=Nn===0?0:Dn/Nn,Nn==Bn)Ln=0;else{switch(Nn){case _n:Ln=(Cn-$n)/Dn+(Cn<$n?6:0);break;case Cn:Ln=($n-_n)/Dn+2;break;case $n:Ln=(_n-Cn)/Dn+4;break}Ln/=6}return{h:Ln,s:In,v:Pn}}function hsvToRgb(_n,Cn,$n){_n=bound01(_n,360)*6,Cn=bound01(Cn,100),$n=bound01($n,100);var Nn=Math.floor(_n),Bn=_n-Nn,Ln=$n*(1-Cn),In=$n*(1-Bn*Cn),Pn=$n*(1-(1-Bn)*Cn),Dn=Nn%6,Un=[$n,In,Ln,Ln,Pn,$n][Dn],Hn=[Pn,$n,$n,In,Ln,Ln][Dn],Xn=[Ln,Ln,Pn,$n,$n,In][Dn];return{r:Un*255,g:Hn*255,b:Xn*255}}function rgbToHex(_n,Cn,$n,Nn){var Bn=[pad2(Math.round(_n).toString(16)),pad2(Math.round(Cn).toString(16)),pad2(Math.round($n).toString(16))];return Nn&&Bn[0].charAt(0)==Bn[0].charAt(1)&&Bn[1].charAt(0)==Bn[1].charAt(1)&&Bn[2].charAt(0)==Bn[2].charAt(1)?Bn[0].charAt(0)+Bn[1].charAt(0)+Bn[2].charAt(0):Bn.join("")}function rgbaToHex(_n,Cn,$n,Nn,Bn){var Ln=[pad2(Math.round(_n).toString(16)),pad2(Math.round(Cn).toString(16)),pad2(Math.round($n).toString(16)),pad2(convertDecimalToHex(Nn))];return Bn&&Ln[0].charAt(0)==Ln[0].charAt(1)&&Ln[1].charAt(0)==Ln[1].charAt(1)&&Ln[2].charAt(0)==Ln[2].charAt(1)&&Ln[3].charAt(0)==Ln[3].charAt(1)?Ln[0].charAt(0)+Ln[1].charAt(0)+Ln[2].charAt(0)+Ln[3].charAt(0):Ln.join("")}function rgbaToArgbHex(_n,Cn,$n,Nn){var Bn=[pad2(convertDecimalToHex(Nn)),pad2(Math.round(_n).toString(16)),pad2(Math.round(Cn).toString(16)),pad2(Math.round($n).toString(16))];return Bn.join("")}tinycolor.equals=function(_n,Cn){return!_n||!Cn?!1:tinycolor(_n).toRgbString()==tinycolor(Cn).toRgbString()},tinycolor.random=function(){return tinycolor.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function _desaturate(_n,Cn){Cn=Cn===0?0:Cn||10;var $n=tinycolor(_n).toHsl();return $n.s-=Cn/100,$n.s=clamp01($n.s),tinycolor($n)}function _saturate(_n,Cn){Cn=Cn===0?0:Cn||10;var $n=tinycolor(_n).toHsl();return $n.s+=Cn/100,$n.s=clamp01($n.s),tinycolor($n)}function _greyscale(_n){return tinycolor(_n).desaturate(100)}function _lighten(_n,Cn){Cn=Cn===0?0:Cn||10;var $n=tinycolor(_n).toHsl();return $n.l+=Cn/100,$n.l=clamp01($n.l),tinycolor($n)}function _brighten(_n,Cn){Cn=Cn===0?0:Cn||10;var $n=tinycolor(_n).toRgb();return $n.r=Math.max(0,Math.min(255,$n.r-Math.round(255*-(Cn/100)))),$n.g=Math.max(0,Math.min(255,$n.g-Math.round(255*-(Cn/100)))),$n.b=Math.max(0,Math.min(255,$n.b-Math.round(255*-(Cn/100)))),tinycolor($n)}function _darken(_n,Cn){Cn=Cn===0?0:Cn||10;var $n=tinycolor(_n).toHsl();return $n.l-=Cn/100,$n.l=clamp01($n.l),tinycolor($n)}function _spin(_n,Cn){var $n=tinycolor(_n).toHsl(),Nn=($n.h+Cn)%360;return $n.h=Nn<0?360+Nn:Nn,tinycolor($n)}function _complement(_n){var Cn=tinycolor(_n).toHsl();return Cn.h=(Cn.h+180)%360,tinycolor(Cn)}function polyad(_n,Cn){if(isNaN(Cn)||Cn<=0)throw new Error("Argument to polyad must be a positive number");for(var $n=tinycolor(_n).toHsl(),Nn=[tinycolor(_n)],Bn=360/Cn,Ln=1;Ln<Cn;Ln++)Nn.push(tinycolor({h:($n.h+Ln*Bn)%360,s:$n.s,l:$n.l}));return Nn}function _splitcomplement(_n){var Cn=tinycolor(_n).toHsl(),$n=Cn.h;return[tinycolor(_n),tinycolor({h:($n+72)%360,s:Cn.s,l:Cn.l}),tinycolor({h:($n+216)%360,s:Cn.s,l:Cn.l})]}function _analogous(_n,Cn,$n){Cn=Cn||6,$n=$n||30;var Nn=tinycolor(_n).toHsl(),Bn=360/$n,Ln=[tinycolor(_n)];for(Nn.h=(Nn.h-(Bn*Cn>>1)+720)%360;--Cn;)Nn.h=(Nn.h+Bn)%360,Ln.push(tinycolor(Nn));return Ln}function _monochromatic(_n,Cn){Cn=Cn||6;for(var $n=tinycolor(_n).toHsv(),Nn=$n.h,Bn=$n.s,Ln=$n.v,In=[],Pn=1/Cn;Cn--;)In.push(tinycolor({h:Nn,s:Bn,v:Ln})),Ln=(Ln+Pn)%1;return In}tinycolor.mix=function(_n,Cn,$n){$n=$n===0?0:$n||50;var Nn=tinycolor(_n).toRgb(),Bn=tinycolor(Cn).toRgb(),Ln=$n/100,In={r:(Bn.r-Nn.r)*Ln+Nn.r,g:(Bn.g-Nn.g)*Ln+Nn.g,b:(Bn.b-Nn.b)*Ln+Nn.b,a:(Bn.a-Nn.a)*Ln+Nn.a};return tinycolor(In)},tinycolor.readability=function(_n,Cn){var $n=tinycolor(_n),Nn=tinycolor(Cn);return(Math.max($n.getLuminance(),Nn.getLuminance())+.05)/(Math.min($n.getLuminance(),Nn.getLuminance())+.05)},tinycolor.isReadable=function(_n,Cn,$n){var Nn=tinycolor.readability(_n,Cn),Bn,Ln;switch(Ln=!1,Bn=validateWCAG2Parms($n),Bn.level+Bn.size){case"AAsmall":case"AAAlarge":Ln=Nn>=4.5;break;case"AAlarge":Ln=Nn>=3;break;case"AAAsmall":Ln=Nn>=7;break}return Ln},tinycolor.mostReadable=function(_n,Cn,$n){var Nn=null,Bn=0,Ln,In,Pn,Dn;$n=$n||{},In=$n.includeFallbackColors,Pn=$n.level,Dn=$n.size;for(var Un=0;Un<Cn.length;Un++)Ln=tinycolor.readability(_n,Cn[Un]),Ln>Bn&&(Bn=Ln,Nn=tinycolor(Cn[Un]));return tinycolor.isReadable(_n,Nn,{level:Pn,size:Dn})||!In?Nn:($n.includeFallbackColors=!1,tinycolor.mostReadable(_n,["#fff","#000"],$n))};var names=tinycolor.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"},hexNames=tinycolor.hexNames=flip$2(names);function flip$2(_n){var Cn={};for(var $n in _n)_n.hasOwnProperty($n)&&(Cn[_n[$n]]=$n);return Cn}function boundAlpha(_n){return _n=parseFloat(_n),(isNaN(_n)||_n<0||_n>1)&&(_n=1),_n}function bound01(_n,Cn){isOnePointZero(_n)&&(_n="100%");var $n=isPercentage(_n);return _n=Math.min(Cn,Math.max(0,parseFloat(_n))),$n&&(_n=parseInt(_n*Cn,10)/100),Math.abs(_n-Cn)<1e-6?1:_n%Cn/parseFloat(Cn)}function clamp01(_n){return Math.min(1,Math.max(0,_n))}function parseIntFromHex(_n){return parseInt(_n,16)}function isOnePointZero(_n){return typeof _n=="string"&&_n.indexOf(".")!=-1&&parseFloat(_n)===1}function isPercentage(_n){return typeof _n=="string"&&_n.indexOf("%")!=-1}function pad2(_n){return _n.length==1?"0"+_n:""+_n}function convertToPercentage(_n){return _n<=1&&(_n=_n*100+"%"),_n}function convertDecimalToHex(_n){return Math.round(parseFloat(_n)*255).toString(16)}function convertHexToDecimal(_n){return parseIntFromHex(_n)/255}var matchers=function(){var _n="[-\\+]?\\d+%?",Cn="[-\\+]?\\d*\\.\\d+%?",$n="(?:"+Cn+")|(?:"+_n+")",Nn="[\\s|\\(]+("+$n+")[,|\\s]+("+$n+")[,|\\s]+("+$n+")\\s*\\)?",Bn="[\\s|\\(]+("+$n+")[,|\\s]+("+$n+")[,|\\s]+("+$n+")[,|\\s]+("+$n+")\\s*\\)?";return{CSS_UNIT:new RegExp($n),rgb:new RegExp("rgb"+Nn),rgba:new RegExp("rgba"+Bn),hsl:new RegExp("hsl"+Nn),hsla:new RegExp("hsla"+Bn),hsv:new RegExp("hsv"+Nn),hsva:new RegExp("hsva"+Bn),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 isValidCSSUnit(_n){return!!matchers.CSS_UNIT.exec(_n)}function stringInputToObject(_n){_n=_n.replace(trimLeft,"").replace(trimRight,"").toLowerCase();var Cn=!1;if(names[_n])_n=names[_n],Cn=!0;else if(_n=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var $n;return($n=matchers.rgb.exec(_n))?{r:$n[1],g:$n[2],b:$n[3]}:($n=matchers.rgba.exec(_n))?{r:$n[1],g:$n[2],b:$n[3],a:$n[4]}:($n=matchers.hsl.exec(_n))?{h:$n[1],s:$n[2],l:$n[3]}:($n=matchers.hsla.exec(_n))?{h:$n[1],s:$n[2],l:$n[3],a:$n[4]}:($n=matchers.hsv.exec(_n))?{h:$n[1],s:$n[2],v:$n[3]}:($n=matchers.hsva.exec(_n))?{h:$n[1],s:$n[2],v:$n[3],a:$n[4]}:($n=matchers.hex8.exec(_n))?{r:parseIntFromHex($n[1]),g:parseIntFromHex($n[2]),b:parseIntFromHex($n[3]),a:convertHexToDecimal($n[4]),format:Cn?"name":"hex8"}:($n=matchers.hex6.exec(_n))?{r:parseIntFromHex($n[1]),g:parseIntFromHex($n[2]),b:parseIntFromHex($n[3]),format:Cn?"name":"hex"}:($n=matchers.hex4.exec(_n))?{r:parseIntFromHex($n[1]+""+$n[1]),g:parseIntFromHex($n[2]+""+$n[2]),b:parseIntFromHex($n[3]+""+$n[3]),a:convertHexToDecimal($n[4]+""+$n[4]),format:Cn?"name":"hex8"}:($n=matchers.hex3.exec(_n))?{r:parseIntFromHex($n[1]+""+$n[1]),g:parseIntFromHex($n[2]+""+$n[2]),b:parseIntFromHex($n[3]+""+$n[3]),format:Cn?"name":"hex"}:!1}function validateWCAG2Parms(_n){var Cn,$n;return _n=_n||{level:"AA",size:"small"},Cn=(_n.level||"AA").toUpperCase(),$n=(_n.size||"small").toLowerCase(),Cn!=="AA"&&Cn!=="AAA"&&(Cn="AA"),$n!=="small"&&$n!=="large"&&($n="small"),{level:Cn,size:$n}}const common$1={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(_n){return typeof _n!="string"||_n===""||(_n=this.replaceBrackets(_n),this.weightNumRegexEN.test(_n)&&(_n=_n.replace(this.weightNumRegexEN,"$1:$2")),this.weightNumRegexCN.test(_n)&&(_n=_n.replace(this.weightNumRegexCN,"$1:$2"))),_n},replaceBrackets(_n){const Cn=_n.length;if(Cn===0)return _n;let $n={};this.bracketsCN.forEach(Ln=>{for(const In in Ln)$n[In]=Ln[In]});let Nn=_n[0],Bn=_n[Cn-1];return typeof $n[Nn]<"u"&&(_n=$n[Nn]+_n.substring(1)),typeof $n[Bn]<"u"&&(_n=_n.substring(0,Cn-1)+$n[Bn]),_n},hasBrackets(_n){const Cn=_n.length;if(Cn===0)return!1;let $n=[];this.bracketsEN.forEach(Ln=>{let In=[];for(const Pn in Ln)In.push(Pn);$n.push(In)}),this.bracketsCN.forEach(Ln=>{let In=[];for(const Pn in Ln)In.push(Pn);$n.push(In)});let Nn=_n[0],Bn=_n[Cn-1];for(const Ln of $n)if(Ln[0]===Nn&&Ln[1]===Bn)return Ln;return!1},splitTag(_n){let Cn={left:"",value:"",right:""},$n=_n.match(/^([\(\<\{\[]+)(.*)$/);return!$n||(Cn.left=$n[1],_n=$n[2],$n=_n.match(/((\:[0-9\.]+)?[\)\>\}\]]+)$/),!$n)?(Cn.value=_n,Cn):(Cn.right=$n[1],_n=_n.substring(0,_n.length-Cn.right.length),Cn.value=_n,Cn)},splitTags(_n,Cn=!1,$n=!1){return splitTags(_n,Cn,$n)},canTranslate(_n){return!(_n.trim()===""||_n[0]==="<"&&_n[_n.length-1]===">"||/^[0-9`~!@#$%^&*()_+\-=\[\]{}\\|;:'",.\/<>?]+$/.test(_n)||/^[a-zA-Z]$/.test(_n))},isEnglish(_n){const Cn=_n.length;if(_n[0]==="<"&&_n[Cn-1]===">")return!0;for(let $n=0;$n<Cn;$n++)if(_n.charCodeAt($n)>127)return!1;return!0},canOneTranslate(_n){const Cn=["zh_CN","zh_HK","zh_TW","ar_SA","ja_JP","ko_KR","ru_RU"];return Cn.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"),!!Cn.includes(_n)},isEnglishByLangCode(_n,Cn){if(!this.canOneTranslate(Cn))return-1;const $n=_n.length;for(let Nn=0;Nn<$n;Nn++)if(_n.charCodeAt(Nn)>127)return 0;return 1},isSameLang(_n,Cn){if(_n===Cn)return!0;let $n=_n.toLowerCase(),Nn=Cn.toLowerCase();return $n===Nn||(_n=_n.replace("-","_"),Cn=Cn.replace("-","_"),_n===Cn)||(_n=_n.split("_")[0],Cn=Cn.split("_")[0],_n===Cn)},getLang(_n,Cn,$n){return $n[Cn]&&$n[Cn].lang&&$n[Cn].lang[_n]?this.replaceGlobals($n[Cn].lang[_n],Cn):$n.en_US&&$n.en_US.lang&&$n.en_US.lang[_n]?this.replaceGlobals($n.en_US.lang[_n],"en_US"):this.replaceGlobals(_n,Cn)},replaceGlobals(_n,Cn){for(let $n in globals){let Nn=globals[$n];if($n==="docs")switch(Cn){case"zh_CN":Nn+="/zh-CN";break;case"zh_HK":case"zh_TW":Nn+="/zh-TW";break;case"ru_RU":Nn+="/ru";break}_n=_n.replace(new RegExp(`{{${$n}}}`,"g"),Nn)}return _n},escapeHtml(_n){return _n.replace(/[&<>'"]/g,Cn=>({"&":"&","<":"<",">":">","'":"'",'"':"""})[Cn]||Cn)},unescapeHtml(_n){return _n.replace(/&|<|>|'|"/g,Cn=>({"&":"&","<":"<",">":">","'":"'",""":'"'})[Cn]||Cn)},getTagWeightNum(_n){const Cn=_n.match(this.weightNumRegex);return Cn?parseFloat(Cn[2]):1},getTagIncWeight(_n){return this.countLayers(_n,"(",")")},getTagDecWeight(_n){return this.countLayers(_n,"[","]")},countLayers(_n,Cn="(",$n=")"){let Nn=0;if(_n.length<2)return Nn;for(;;){let Bn=_n[0],Ln=_n[_n.length-1];if(Bn===Cn&&Ln===$n)Nn++,_n=_n.slice(1,_n.length-1);else break}return Nn},setLayers(_n,Cn=0,$n="(",Nn=")",Bn=""){for(;;){let Ln=_n[0],In=_n[_n.length-1];if(Ln===$n&&In===Nn)_n=_n.slice(1,_n.length-1);else break}return Cn===0?_n:$n.repeat(Cn)+_n+Bn+Nn.repeat(Cn)},getTranslateApiInfo(_n,Cn){let $n=!1;for(const Nn in Cn)for(const Bn in Nn.children)if(Bn.key===_n){$n=Bn;break}return $n},isEqualTags(_n,Cn,$n=[]){if(Cn.length!==_n.length)return!1;for(let Nn=0;Nn<_n.length;Nn++){for(let Bn in _n[Nn])if(!$n.includes(Bn)&&Cn[Nn][Bn]!==_n[Nn][Bn])return!1;for(let Bn in Cn[Nn])if(!$n.includes(Bn)&&Cn[Nn][Bn]!==_n[Nn][Bn])return!1}return!0},getTranslateApiItem(_n,Cn){if(!_n||_n.length<=0)return{};for(let $n of _n)for(let Nn of $n.children)if(Nn.key===Cn)return Nn;return _n[0].children[0]},hideCompleteResults(_n){typeof hideResults=="function"&&[100,200,300,500,1e3].forEach($n=>{setTimeout(()=>{hideResults(_n)},$n)})},formatTime(_n,Cn=!0){let $n=new Date(_n),Nn=$n.getFullYear(),Bn=$n.getMonth()+1;Bn<10&&(Bn="0"+Bn);let Ln=$n.getDate();Ln<10&&(Ln="0"+Ln);let In=$n.getHours();In<10&&(In="0"+In);let Pn=$n.getMinutes();Pn<10&&(Pn="0"+Pn);let Dn=$n.getSeconds();return Dn<10&&(Dn="0"+Dn),Cn?`${Nn}/${Bn}/${Ln} ${In}:${Pn}:${Dn}`:`${Bn}/${Ln} ${In}:${Pn}:${Dn}`},apiUrl(){let _n;return _n=window.location.origin+window.location.pathname,_n+=_n.endsWith("/")?"":"/",_n+="physton_prompt/",_n},removeCSS(_n,Cn=!0){if(!_n)return;let $n=null;Cn?$n=this.gradioApp().querySelector("#"+_n):$n=document.querySelector("#"+_n),$n&&$n.remove()},loadCSS(_n,Cn="",$n=!0,Nn=!1,Bn=!0){$n&&this.removeCSS(Cn,Bn);let Ln=this.apiUrl()+"styles?file="+encodeURIComponent(_n);Nn||(Ln+="&t="+new Date().getTime());let In=document.createElement("link");In.id=Cn,In.rel="stylesheet",In.href=Ln,Bn?this.gradioApp().appendChild(In):document.body.appendChild(In)},swapElement(_n,Cn){let $n=_n.parentNode,Nn=Cn.parentNode,Bn=_n.nextSibling,Ln=Cn.nextSibling;$n.insertBefore(Cn,Bn),Nn.insertBefore(_n,Ln)},insertBefore(_n,Cn){Cn.parentNode.insertBefore(_n,Cn)},insertAfter(_n,Cn){Cn.nextSibling?Cn.parentNode.insertBefore(_n,Cn.nextSibling):Cn.parentNode.appendChild(_n)},gradioContainer:null,gradioApp(){if(this.gradioContainer)return this.gradioContainer;const _n=document.getElementsByTagName("gradio-app"),Cn=_n.length==0?null:_n[0].shadowRoot;if(Cn){const $n=Cn.querySelectorAll(".gradio-container");for(let Nn=0;Nn<$n.length;Nn++){const Bn=$n[Nn];if(Bn.querySelectorAll("#tabs").length)return Bn.classList.add("physton-gradio-container"),this.gradioContainer=Bn,Bn}}else return document.body.classList.add("physton-gradio-container"),this.gradioContainer=document.body,document.body},fitterInputColor(_n,Cn="rgba(0,0,0,0)"){let $n="fitterInputColor:"+_n+":"+Cn;return localStorage[$n]?localStorage[$n]:!_n||_n===""||_n==="default"||_n==="none"||_n==="null"||_n==="undefined"||_n==="false"||_n==="true"||!tinycolor(_n).isValid()?(localStorage[$n]=Cn,Cn):(localStorage[$n]=_n,_n)},isColorTransparent(_n){let Cn="isColorTransparent:"+_n;if(localStorage[Cn])return localStorage[Cn]==="true";let $n=tinycolor(_n).getAlpha()===0;return localStorage[Cn]=$n,$n},getTagsColorKey(_n,Cn){return _n+"||"+Cn}};var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(_n){return _n&&_n.__esModule&&Object.prototype.hasOwnProperty.call(_n,"default")?_n.default:_n}var papaparse_min={exports:{}};/* @license
|
||
Papa Parse
|
||
v5.4.1
|
||
https://github.com/mholt/PapaParse
|
||
License: MIT
|
||
*/(function(_n,Cn){(function($n,Nn){_n.exports=Nn()})(commonjsGlobal,function $n(){var Nn=typeof self<"u"?self:typeof window<"u"?window:Nn!==void 0?Nn:{},Bn=!Nn.document&&!!Nn.postMessage,Ln=Nn.IS_PAPA_WORKER||!1,In={},Pn=0,Dn={parse:function(li,oi){var ui=(oi=oi||{}).dynamicTyping||!1;if(zn(ui)&&(oi.dynamicTypingFunction=ui,ui={}),oi.dynamicTyping=ui,oi.transform=!!zn(oi.transform)&&oi.transform,oi.worker&&Dn.WORKERS_SUPPORTED){var mi=function(){if(!Dn.WORKERS_SUPPORTED)return!1;var yi=(ta=Nn.URL||Nn.webkitURL||null,qo=$n.toString(),Dn.BLOB_URL||(Dn.BLOB_URL=ta.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; ","(",qo,")();"],{type:"text/javascript"})))),Fi=new Nn.Worker(yi),ta,qo;return Fi.onmessage=gi,Fi.id=Pn++,In[Fi.id]=Fi}();return mi.userStep=oi.step,mi.userChunk=oi.chunk,mi.userComplete=oi.complete,mi.userError=oi.error,oi.step=zn(oi.step),oi.chunk=zn(oi.chunk),oi.complete=zn(oi.complete),oi.error=zn(oi.error),delete oi.worker,void mi.postMessage({input:li,config:oi,workerId:mi.id})}var _i=null;return Dn.NODE_STREAM_INPUT,typeof li=="string"?(li=function(yi){return yi.charCodeAt(0)===65279?yi.slice(1):yi}(li),_i=oi.download?new Xn(oi):new ei(oi)):li.readable===!0&&zn(li.read)&&zn(li.on)?_i=new nr(oi):(Nn.File&&li instanceof File||li instanceof Object)&&(_i=new Gn(oi)),_i.stream(li)},unparse:function(li,oi){var ui=!1,mi=!0,_i=",",yi=`\r
|
||
`,Fi='"',ta=Fi+Fi,qo=!1,Ci=null,Ri=!1;(function(){if(typeof oi=="object"){if(typeof oi.delimiter!="string"||Dn.BAD_DELIMITERS.filter(function(Pi){return oi.delimiter.indexOf(Pi)!==-1}).length||(_i=oi.delimiter),(typeof oi.quotes=="boolean"||typeof oi.quotes=="function"||Array.isArray(oi.quotes))&&(ui=oi.quotes),typeof oi.skipEmptyLines!="boolean"&&typeof oi.skipEmptyLines!="string"||(qo=oi.skipEmptyLines),typeof oi.newline=="string"&&(yi=oi.newline),typeof oi.quoteChar=="string"&&(Fi=oi.quoteChar),typeof oi.header=="boolean"&&(mi=oi.header),Array.isArray(oi.columns)){if(oi.columns.length===0)throw new Error("Option columns is empty");Ci=oi.columns}oi.escapeChar!==void 0&&(ta=oi.escapeChar+Fi),(typeof oi.escapeFormulae=="boolean"||oi.escapeFormulae instanceof RegExp)&&(Ri=oi.escapeFormulae instanceof RegExp?oi.escapeFormulae:/^[=+\-@\t\r].*$/)}})();var Hi=new RegExp(ai(Fi),"g");if(typeof li=="string"&&(li=JSON.parse(li)),Array.isArray(li)){if(!li.length||Array.isArray(li[0]))return aa(null,li,qo);if(typeof li[0]=="object")return aa(Ci||Object.keys(li[0]),li,qo)}else if(typeof li=="object")return typeof li.data=="string"&&(li.data=JSON.parse(li.data)),Array.isArray(li.data)&&(li.fields||(li.fields=li.meta&&li.meta.fields||Ci),li.fields||(li.fields=Array.isArray(li.data[0])?li.fields:typeof li.data[0]=="object"?Object.keys(li.data[0]):[]),Array.isArray(li.data[0])||typeof li.data[0]=="object"||(li.data=[li.data])),aa(li.fields||[],li.data||[],qo);throw new Error("Unable to serialize unrecognized input");function aa(Pi,Ki,Yi){var Ji="";typeof Pi=="string"&&(Pi=JSON.parse(Pi)),typeof Ki=="string"&&(Ki=JSON.parse(Ki));var Zi=Array.isArray(Pi)&&0<Pi.length,Qo=!Array.isArray(Ki[0]);if(Zi&&mi){for(var la=0;la<Pi.length;la++)0<la&&(Ji+=_i),Ji+=sa(Pi[la],la);0<Ki.length&&(Ji+=yi)}for(var Go=0;Go<Ki.length;Go++){var ra=Zi?Pi.length:Ki[Go].length,ha=!1,di=Zi?Object.keys(Ki[Go]).length===0:Ki[Go].length===0;if(Yi&&!Zi&&(ha=Yi==="greedy"?Ki[Go].join("").trim()==="":Ki[Go].length===1&&Ki[Go][0].length===0),Yi==="greedy"&&Zi){for(var hi=[],wi=0;wi<ra;wi++){var Ii=Qo?Pi[wi]:wi;hi.push(Ki[Go][Ii])}ha=hi.join("").trim()===""}if(!ha){for(var Ni=0;Ni<ra;Ni++){0<Ni&&!di&&(Ji+=_i);var Bi=Zi&&Qo?Pi[Ni]:Ni;Ji+=sa(Ki[Go][Bi],Ni)}Go<Ki.length-1&&(!Yi||0<ra&&!di)&&(Ji+=yi)}}return Ji}function sa(Pi,Ki){if(Pi==null)return"";if(Pi.constructor===Date)return JSON.stringify(Pi).slice(1,25);var Yi=!1;Ri&&typeof Pi=="string"&&Ri.test(Pi)&&(Pi="'"+Pi,Yi=!0);var Ji=Pi.toString().replace(Hi,ta);return(Yi=Yi||ui===!0||typeof ui=="function"&&ui(Pi,Ki)||Array.isArray(ui)&&ui[Ki]||function(Zi,Qo){for(var la=0;la<Qo.length;la++)if(-1<Zi.indexOf(Qo[la]))return!0;return!1}(Ji,Dn.BAD_DELIMITERS)||-1<Ji.indexOf(_i)||Ji.charAt(0)===" "||Ji.charAt(Ji.length-1)===" ")?Fi+Ji+Fi:Ji}}};if(Dn.RECORD_SEP=String.fromCharCode(30),Dn.UNIT_SEP=String.fromCharCode(31),Dn.BYTE_ORDER_MARK="\uFEFF",Dn.BAD_DELIMITERS=["\r",`
|
||
`,'"',Dn.BYTE_ORDER_MARK],Dn.WORKERS_SUPPORTED=!Bn&&!!Nn.Worker,Dn.NODE_STREAM_INPUT=1,Dn.LocalChunkSize=10485760,Dn.RemoteChunkSize=5242880,Dn.DefaultDelimiter=",",Dn.Parser=si,Dn.ParserHandle=ni,Dn.NetworkStreamer=Xn,Dn.FileStreamer=Gn,Dn.StringStreamer=ei,Dn.ReadableStreamStreamer=nr,Nn.jQuery){var Un=Nn.jQuery;Un.fn.parse=function(li){var oi=li.config||{},ui=[];return this.each(function(yi){if(!(Un(this).prop("tagName").toUpperCase()==="INPUT"&&Un(this).attr("type").toLowerCase()==="file"&&Nn.FileReader)||!this.files||this.files.length===0)return!0;for(var Fi=0;Fi<this.files.length;Fi++)ui.push({file:this.files[Fi],inputElem:this,instanceConfig:Un.extend({},oi)})}),mi(),this;function mi(){if(ui.length!==0){var yi,Fi,ta,qo,Ci=ui[0];if(zn(li.before)){var Ri=li.before(Ci.file,Ci.inputElem);if(typeof Ri=="object"){if(Ri.action==="abort")return yi="AbortError",Fi=Ci.file,ta=Ci.inputElem,qo=Ri.reason,void(zn(li.error)&&li.error({name:yi},Fi,ta,qo));if(Ri.action==="skip")return void _i();typeof Ri.config=="object"&&(Ci.instanceConfig=Un.extend(Ci.instanceConfig,Ri.config))}else if(Ri==="skip")return void _i()}var Hi=Ci.instanceConfig.complete;Ci.instanceConfig.complete=function(aa){zn(Hi)&&Hi(aa,Ci.file,Ci.inputElem),_i()},Dn.parse(Ci.file,Ci.instanceConfig)}else zn(li.complete)&&li.complete()}function _i(){ui.splice(0,1),mi()}}}function Hn(li){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(oi){var ui=Ei(oi);ui.chunkSize=parseInt(ui.chunkSize),oi.step||oi.chunk||(ui.chunkSize=null),this._handle=new ni(ui),(this._handle.streamer=this)._config=ui}).call(this,li),this.parseChunk=function(oi,ui){if(this.isFirstChunk&&zn(this._config.beforeFirstChunk)){var mi=this._config.beforeFirstChunk(oi);mi!==void 0&&(oi=mi)}this.isFirstChunk=!1,this._halted=!1;var _i=this._partialLine+oi;this._partialLine="";var yi=this._handle.parse(_i,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var Fi=yi.meta.cursor;this._finished||(this._partialLine=_i.substring(Fi-this._baseIndex),this._baseIndex=Fi),yi&&yi.data&&(this._rowCount+=yi.data.length);var ta=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(Ln)Nn.postMessage({results:yi,workerId:Dn.WORKER_ID,finished:ta});else if(zn(this._config.chunk)&&!ui){if(this._config.chunk(yi,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);yi=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(yi.data),this._completeResults.errors=this._completeResults.errors.concat(yi.errors),this._completeResults.meta=yi.meta),this._completed||!ta||!zn(this._config.complete)||yi&&yi.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),ta||yi&&yi.meta.paused||this._nextChunk(),yi}this._halted=!0},this._sendError=function(oi){zn(this._config.error)?this._config.error(oi):Ln&&this._config.error&&Nn.postMessage({workerId:Dn.WORKER_ID,error:oi,finished:!1})}}function Xn(li){var oi;(li=li||{}).chunkSize||(li.chunkSize=Dn.RemoteChunkSize),Hn.call(this,li),this._nextChunk=Bn?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(ui){this._input=ui,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(oi=new XMLHttpRequest,this._config.withCredentials&&(oi.withCredentials=this._config.withCredentials),Bn||(oi.onload=$i(this._chunkLoaded,this),oi.onerror=$i(this._chunkError,this)),oi.open(this._config.downloadRequestBody?"POST":"GET",this._input,!Bn),this._config.downloadRequestHeaders){var ui=this._config.downloadRequestHeaders;for(var mi in ui)oi.setRequestHeader(mi,ui[mi])}if(this._config.chunkSize){var _i=this._start+this._config.chunkSize-1;oi.setRequestHeader("Range","bytes="+this._start+"-"+_i)}try{oi.send(this._config.downloadRequestBody)}catch(yi){this._chunkError(yi.message)}Bn&&oi.status===0&&this._chunkError()}},this._chunkLoaded=function(){oi.readyState===4&&(oi.status<200||400<=oi.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:oi.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(ui){var mi=ui.getResponseHeader("Content-Range");return mi===null?-1:parseInt(mi.substring(mi.lastIndexOf("/")+1))}(oi),this.parseChunk(oi.responseText)))},this._chunkError=function(ui){var mi=oi.statusText||ui;this._sendError(new Error(mi))}}function Gn(li){var oi,ui;(li=li||{}).chunkSize||(li.chunkSize=Dn.LocalChunkSize),Hn.call(this,li);var mi=typeof FileReader<"u";this.stream=function(_i){this._input=_i,ui=_i.slice||_i.webkitSlice||_i.mozSlice,mi?((oi=new FileReader).onload=$i(this._chunkLoaded,this),oi.onerror=$i(this._chunkError,this)):oi=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var _i=this._input;if(this._config.chunkSize){var yi=Math.min(this._start+this._config.chunkSize,this._input.size);_i=ui.call(_i,this._start,yi)}var Fi=oi.readAsText(_i,this._config.encoding);mi||this._chunkLoaded({target:{result:Fi}})},this._chunkLoaded=function(_i){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(_i.target.result)},this._chunkError=function(){this._sendError(oi.error)}}function ei(li){var oi;Hn.call(this,li=li||{}),this.stream=function(ui){return oi=ui,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var ui,mi=this._config.chunkSize;return mi?(ui=oi.substring(0,mi),oi=oi.substring(mi)):(ui=oi,oi=""),this._finished=!oi,this.parseChunk(ui)}}}function nr(li){Hn.call(this,li=li||{});var oi=[],ui=!0,mi=!1;this.pause=function(){Hn.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){Hn.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(_i){this._input=_i,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){mi&&oi.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),oi.length?this.parseChunk(oi.shift()):ui=!0},this._streamData=$i(function(_i){try{oi.push(typeof _i=="string"?_i:_i.toString(this._config.encoding)),ui&&(ui=!1,this._checkIsFinished(),this.parseChunk(oi.shift()))}catch(yi){this._streamError(yi)}},this),this._streamError=$i(function(_i){this._streamCleanUp(),this._sendError(_i)},this),this._streamEnd=$i(function(){this._streamCleanUp(),mi=!0,this._streamData("")},this),this._streamCleanUp=$i(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function ni(li){var oi,ui,mi,_i=Math.pow(2,53),yi=-_i,Fi=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,ta=/^((\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)))$/,qo=this,Ci=0,Ri=0,Hi=!1,aa=!1,sa=[],Pi={data:[],errors:[],meta:{}};if(zn(li.step)){var Ki=li.step;li.step=function(Go){if(Pi=Go,Zi())Ji();else{if(Ji(),Pi.data.length===0)return;Ci+=Go.data.length,li.preview&&Ci>li.preview?ui.abort():(Pi.data=Pi.data[0],Ki(Pi,qo))}}}function Yi(Go){return li.skipEmptyLines==="greedy"?Go.join("").trim()==="":Go.length===1&&Go[0].length===0}function Ji(){return Pi&&mi&&(la("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+Dn.DefaultDelimiter+"'"),mi=!1),li.skipEmptyLines&&(Pi.data=Pi.data.filter(function(Go){return!Yi(Go)})),Zi()&&function(){if(!Pi)return;function Go(ha,di){zn(li.transformHeader)&&(ha=li.transformHeader(ha,di)),sa.push(ha)}if(Array.isArray(Pi.data[0])){for(var ra=0;Zi()&&ra<Pi.data.length;ra++)Pi.data[ra].forEach(Go);Pi.data.splice(0,1)}else Pi.data.forEach(Go)}(),function(){if(!Pi||!li.header&&!li.dynamicTyping&&!li.transform)return Pi;function Go(ha,di){var hi,wi=li.header?{}:[];for(hi=0;hi<ha.length;hi++){var Ii=hi,Ni=ha[hi];li.header&&(Ii=hi>=sa.length?"__parsed_extra":sa[hi]),li.transform&&(Ni=li.transform(Ni,Ii)),Ni=Qo(Ii,Ni),Ii==="__parsed_extra"?(wi[Ii]=wi[Ii]||[],wi[Ii].push(Ni)):wi[Ii]=Ni}return li.header&&(hi>sa.length?la("FieldMismatch","TooManyFields","Too many fields: expected "+sa.length+" fields but parsed "+hi,Ri+di):hi<sa.length&&la("FieldMismatch","TooFewFields","Too few fields: expected "+sa.length+" fields but parsed "+hi,Ri+di)),wi}var ra=1;return!Pi.data.length||Array.isArray(Pi.data[0])?(Pi.data=Pi.data.map(Go),ra=Pi.data.length):Pi.data=Go(Pi.data,0),li.header&&Pi.meta&&(Pi.meta.fields=sa),Ri+=ra,Pi}()}function Zi(){return li.header&&sa.length===0}function Qo(Go,ra){return ha=Go,li.dynamicTypingFunction&&li.dynamicTyping[ha]===void 0&&(li.dynamicTyping[ha]=li.dynamicTypingFunction(ha)),(li.dynamicTyping[ha]||li.dynamicTyping)===!0?ra==="true"||ra==="TRUE"||ra!=="false"&&ra!=="FALSE"&&(function(di){if(Fi.test(di)){var hi=parseFloat(di);if(yi<hi&&hi<_i)return!0}return!1}(ra)?parseFloat(ra):ta.test(ra)?new Date(ra):ra===""?null:ra):ra;var ha}function la(Go,ra,ha,di){var hi={type:Go,code:ra,message:ha};di!==void 0&&(hi.row=di),Pi.errors.push(hi)}this.parse=function(Go,ra,ha){var di=li.quoteChar||'"';if(li.newline||(li.newline=function(Ii,Ni){Ii=Ii.substring(0,1048576);var Bi=new RegExp(ai(Ni)+"([^]*?)"+ai(Ni),"gm"),Ui=(Ii=Ii.replace(Bi,"")).split("\r"),ji=Ii.split(`
|
||
`),Wi=1<ji.length&&ji[0].length<Ui[0].length;if(Ui.length===1||Wi)return`
|
||
`;for(var Vi=0,Gi=0;Gi<Ui.length;Gi++)Ui[Gi][0]===`
|
||
`&&Vi++;return Vi>=Ui.length/2?`\r
|
||
`:"\r"}(Go,di)),mi=!1,li.delimiter)zn(li.delimiter)&&(li.delimiter=li.delimiter(Go),Pi.meta.delimiter=li.delimiter);else{var hi=function(Ii,Ni,Bi,Ui,ji){var Wi,Vi,Gi,zi;ji=ji||[","," ","|",";",Dn.RECORD_SEP,Dn.UNIT_SEP];for(var Yo=0;Yo<ji.length;Yo++){var Li=ji[Yo],Zo=0,da=0,fa=0;Gi=void 0;for(var Ca=new si({comments:Ui,delimiter:Li,newline:Ni,preview:10}).parse(Ii),wa=0;wa<Ca.data.length;wa++)if(Bi&&Yi(Ca.data[wa]))fa++;else{var Na=Ca.data[wa].length;da+=Na,Gi!==void 0?0<Na&&(Zo+=Math.abs(Na-Gi),Gi=Na):Gi=Na}0<Ca.data.length&&(da/=Ca.data.length-fa),(Vi===void 0||Zo<=Vi)&&(zi===void 0||zi<da)&&1.99<da&&(Vi=Zo,Wi=Li,zi=da)}return{successful:!!(li.delimiter=Wi),bestDelimiter:Wi}}(Go,li.newline,li.skipEmptyLines,li.comments,li.delimitersToGuess);hi.successful?li.delimiter=hi.bestDelimiter:(mi=!0,li.delimiter=Dn.DefaultDelimiter),Pi.meta.delimiter=li.delimiter}var wi=Ei(li);return li.preview&&li.header&&wi.preview++,oi=Go,ui=new si(wi),Pi=ui.parse(oi,ra,ha),Ji(),Hi?{meta:{paused:!0}}:Pi||{meta:{paused:!1}}},this.paused=function(){return Hi},this.pause=function(){Hi=!0,ui.abort(),oi=zn(li.chunk)?"":oi.substring(ui.getCharIndex())},this.resume=function(){qo.streamer._halted?(Hi=!1,qo.streamer.parseChunk(oi,!0)):setTimeout(qo.resume,3)},this.aborted=function(){return aa},this.abort=function(){aa=!0,ui.abort(),Pi.meta.aborted=!0,zn(li.complete)&&li.complete(Pi),oi=""}}function ai(li){return li.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function si(li){var oi,ui=(li=li||{}).delimiter,mi=li.newline,_i=li.comments,yi=li.step,Fi=li.preview,ta=li.fastMode,qo=oi=li.quoteChar===void 0||li.quoteChar===null?'"':li.quoteChar;if(li.escapeChar!==void 0&&(qo=li.escapeChar),(typeof ui!="string"||-1<Dn.BAD_DELIMITERS.indexOf(ui))&&(ui=","),_i===ui)throw new Error("Comment character same as delimiter");_i===!0?_i="#":(typeof _i!="string"||-1<Dn.BAD_DELIMITERS.indexOf(_i))&&(_i=!1),mi!==`
|
||
`&&mi!=="\r"&&mi!==`\r
|
||
`&&(mi=`
|
||
`);var Ci=0,Ri=!1;this.parse=function(Hi,aa,sa){if(typeof Hi!="string")throw new Error("Input must be a string");var Pi=Hi.length,Ki=ui.length,Yi=mi.length,Ji=_i.length,Zi=zn(yi),Qo=[],la=[],Go=[],ra=Ci=0;if(!Hi)return Sa();if(li.header&&!aa){var ha=Hi.split(mi)[0].split(ui),di=[],hi={},wi=!1;for(var Ii in ha){var Ni=ha[Ii];zn(li.transformHeader)&&(Ni=li.transformHeader(Ni,Ii));var Bi=Ni,Ui=hi[Ni]||0;for(0<Ui&&(wi=!0,Bi=Ni+"_"+Ui),hi[Ni]=Ui+1;di.includes(Bi);)Bi=Bi+"_"+Ui;di.push(Bi)}if(wi){var ji=Hi.split(mi);ji[0]=di.join(ui),Hi=ji.join(mi)}}if(ta||ta!==!1&&Hi.indexOf(oi)===-1){for(var Wi=Hi.split(mi),Vi=0;Vi<Wi.length;Vi++){if(Go=Wi[Vi],Ci+=Go.length,Vi!==Wi.length-1)Ci+=mi.length;else if(sa)return Sa();if(!_i||Go.substring(0,Ji)!==_i){if(Zi){if(Qo=[],fa(Go.split(ui)),xa(),Ri)return Sa()}else fa(Go.split(ui));if(Fi&&Fi<=Vi)return Qo=Qo.slice(0,Fi),Sa(!0)}}return Sa()}for(var Gi=Hi.indexOf(ui,Ci),zi=Hi.indexOf(mi,Ci),Yo=new RegExp(ai(qo)+ai(oi),"g"),Li=Hi.indexOf(oi,Ci);;)if(Hi[Ci]!==oi)if(_i&&Go.length===0&&Hi.substring(Ci,Ci+Ji)===_i){if(zi===-1)return Sa();Ci=zi+Yi,zi=Hi.indexOf(mi,Ci),Gi=Hi.indexOf(ui,Ci)}else if(Gi!==-1&&(Gi<zi||zi===-1))Go.push(Hi.substring(Ci,Gi)),Ci=Gi+Ki,Gi=Hi.indexOf(ui,Ci);else{if(zi===-1)break;if(Go.push(Hi.substring(Ci,zi)),Na(zi+Yi),Zi&&(xa(),Ri))return Sa();if(Fi&&Qo.length>=Fi)return Sa(!0)}else for(Li=Ci,Ci++;;){if((Li=Hi.indexOf(oi,Li+1))===-1)return sa||la.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:Qo.length,index:Ci}),wa();if(Li===Pi-1)return wa(Hi.substring(Ci,Li).replace(Yo,oi));if(oi!==qo||Hi[Li+1]!==qo){if(oi===qo||Li===0||Hi[Li-1]!==qo){Gi!==-1&&Gi<Li+1&&(Gi=Hi.indexOf(ui,Li+1)),zi!==-1&&zi<Li+1&&(zi=Hi.indexOf(mi,Li+1));var Zo=Ca(zi===-1?Gi:Math.min(Gi,zi));if(Hi.substr(Li+1+Zo,Ki)===ui){Go.push(Hi.substring(Ci,Li).replace(Yo,oi)),Hi[Ci=Li+1+Zo+Ki]!==oi&&(Li=Hi.indexOf(oi,Ci)),Gi=Hi.indexOf(ui,Ci),zi=Hi.indexOf(mi,Ci);break}var da=Ca(zi);if(Hi.substring(Li+1+da,Li+1+da+Yi)===mi){if(Go.push(Hi.substring(Ci,Li).replace(Yo,oi)),Na(Li+1+da+Yi),Gi=Hi.indexOf(ui,Ci),Li=Hi.indexOf(oi,Ci),Zi&&(xa(),Ri))return Sa();if(Fi&&Qo.length>=Fi)return Sa(!0);break}la.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:Qo.length,index:Ci}),Li++}}else Li++}return wa();function fa(xi){Qo.push(xi),ra=Ci}function Ca(xi){var Xi=0;if(xi!==-1){var ea=Hi.substring(Li+1,xi);ea&&ea.trim()===""&&(Xi=ea.length)}return Xi}function wa(xi){return sa||(xi===void 0&&(xi=Hi.substring(Ci)),Go.push(xi),Ci=Pi,fa(Go),Zi&&xa()),Sa()}function Na(xi){Ci=xi,fa(Go),Go=[],zi=Hi.indexOf(mi,Ci)}function Sa(xi){return{data:Qo,errors:la,meta:{delimiter:ui,linebreak:mi,aborted:Ri,truncated:!!xi,cursor:ra+(aa||0)}}}function xa(){yi(Sa()),Qo=[],la=[]}},this.abort=function(){Ri=!0},this.getCharIndex=function(){return Ci}}function gi(li){var oi=li.data,ui=In[oi.workerId],mi=!1;if(oi.error)ui.userError(oi.error,oi.file);else if(oi.results&&oi.results.data){var _i={abort:function(){mi=!0,Si(oi.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:ri,resume:ri};if(zn(ui.userStep)){for(var yi=0;yi<oi.results.data.length&&(ui.userStep({data:oi.results.data[yi],errors:oi.results.errors,meta:oi.results.meta},_i),!mi);yi++);delete oi.results}else zn(ui.userChunk)&&(ui.userChunk(oi.results,_i,oi.file),delete oi.results)}oi.finished&&!mi&&Si(oi.workerId,oi.results)}function Si(li,oi){var ui=In[li];zn(ui.userComplete)&&ui.userComplete(oi),ui.terminate(),delete In[li]}function ri(){throw new Error("Not implemented.")}function Ei(li){if(typeof li!="object"||li===null)return li;var oi=Array.isArray(li)?[]:{};for(var ui in li)oi[ui]=Ei(li[ui]);return oi}function $i(li,oi){return function(){li.apply(oi,arguments)}}function zn(li){return typeof li=="function"}return Ln&&(Nn.onmessage=function(li){var oi=li.data;if(Dn.WORKER_ID===void 0&&oi&&(Dn.WORKER_ID=oi.workerId),typeof oi.input=="string")Nn.postMessage({workerId:Dn.WORKER_ID,results:Dn.parse(oi.input,oi.config),finished:!0});else if(Nn.File&&oi.input instanceof File||oi.input instanceof Object){var ui=Dn.parse(oi.input,oi.config);ui&&Nn.postMessage({workerId:Dn.WORKER_ID,results:ui,finished:!0})}}),(Xn.prototype=Object.create(Hn.prototype)).constructor=Xn,(Gn.prototype=Object.create(Hn.prototype)).constructor=Gn,(ei.prototype=Object.create(ei.prototype)).constructor=ei,(nr.prototype=Object.create(Hn.prototype)).constructor=nr,Dn})})(papaparse_min);var papaparse_minExports=papaparse_min.exports;const Papa=getDefaultExportFromCjs(papaparse_minExports),LanguageMixin={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},groupTagsTranslate:{type:Boolean,default:!0},groupTagsTranslateCache:{type:Object,default:()=>({toEn:new Map,toLocal:new Map})}},data(){return{cancelMultiTranslate:!1,globals}},computed:{langName(){for(const _n in this.languages){const Cn=this.languages[_n];if(Cn.code===this.languageCode)return Cn.name}return item.name}},methods:{getLang(_n){return common$1.getLang(_n,this.languageCode,this.languages)},replaceGlobals(_n){return common$1.replaceGlobals(_n,this.languageCode)},getCSV(_n=null,Cn=!1){return window.tagCompleteFileCache=window.tagCompleteFileCache||{},window.tagCompleteFileLoading=window.tagCompleteFileLoading||{},new Promise(($n,Nn)=>{if(_n=_n||this.tagCompleteFile,!Cn&&window.tagCompleteFileCache[_n]){$n(window.tagCompleteFileCache[_n]);return}if(window.tagCompleteFileLoading[_n]){const In=setInterval(()=>{window.tagCompleteFileLoading[_n]||(clearInterval(In),$n(window.tagCompleteFileCache[_n]))},100);return}window.tagCompleteFileLoading[_n]=!0;let Bn={toEn:new Map,toLocal:new Map},Ln=(In,Pn)=>{[In,In.replace(/\_/g," "),In.replace(/\-/g," ")].forEach(Un=>Bn.toLocal.set(Un,Pn)),Bn.toEn.set(Pn,In)};if(!_n&&typeof translations=="object"&&translations instanceof Map){translations.forEach((In,Pn)=>{Ln(Pn,In)}),window.tagCompleteFileLoading[_n]=!1,window.tagCompleteFileCache[_n]=Bn,$n(Bn);return}if(!_n){window.tagCompleteFileLoading[_n]=!1,window.tagCompleteFileCache[_n]=Bn,Nn(this.getLang("not_found_csv_file"));return}this.gradioAPI.getCSV(_n).then(In=>{In=Papa.parse(In,{header:!1,skipEmptyLines:!0}),In.data.forEach(Pn=>{if(Pn.length<2)return;let Dn=Pn[0].trim(),Un=Pn[1].trim();Dn===""||Un===""||Ln(Dn,Un)}),window.tagCompleteFileLoading[_n]=!1,window.tagCompleteFileCache[_n]=Bn,$n(Bn)}).catch(In=>{window.tagCompleteFileLoading[_n]=!1,window.tagCompleteFileCache[_n]=Bn,In.response&&In.response.status===404?Nn(this.getLang("not_found_csv_file")):Nn(In.message)})})},_translateToLocalBy(_n,Cn,$n=!1){_n=_n.trim().toLowerCase();let Nn=Bn=>{var Ln;return((Ln=Bn.join)==null?void 0:Ln.call(Bn," / "))??Bn};if(Cn.has(_n))return Nn(Cn.get(_n));{const Bn=_n.split(",").map(Pn=>Pn.trim());let Ln=[],In=[];if(Bn.forEach(Pn=>{Cn.has(Pn)?Ln.push(Nn(Cn.get(Pn))):$n&&Pn.length&&In.push(Pn)}),Ln.length>0&&!In.length)return Ln.join(", ")}return""},async translateToLocalByCSV(_n,Cn=null,$n=!1,Nn=!1){let Bn=await this.getCSV(Cn,$n);return this._translateToLocalBy(_n,Bn.toLocal,Nn)},async translateToEnByCSV(_n,Cn=null,$n=!1){let Nn=await this.getCSV(Cn,$n);return this._toEn(_n,Nn.toEn)},async translateToLocalByGroupTags(_n,Cn=!1){return console.log("translateToLocalByGroupTags",_n),this._translateToLocalBy(_n,this.groupTagsTranslateCache.toLocal,Cn)},async translateToEnByGroupTags(_n){return this._toEn(_n,this.groupTagsTranslateCache.toEn)},_toEn(_n,Cn){return _n=_n.trim().toLowerCase(),Cn.has(_n)?Cn.get(_n):""}}},isNaN$1=Number.isNaN||window.isNaN,REGEXP_NUMBER=/^-?(?:\d+|\d+\.\d+|\.\d+)(?:[eE][-+]?\d+)?$/,REGEXP_DECIMALS=/\.\d*(?:0|9){10}\d*$/,normalizeDecimalNumber=(_n,Cn=1e11)=>REGEXP_DECIMALS.test(String(_n))?Math.round(_n*Cn)/Cn:_n,_sfc_main$g=defineComponent({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 isNaN$1(this.value)||this.value<this.max},decreasable(){return isNaN$1(this.value)||this.value>this.min}},watch:{modelValue:{immediate:!0,handler(_n,Cn){!(isNaN$1(_n)&&typeof Cn>"u")&&_n!==this.value&&this.setValue(_n)}}},methods:{isNaN:isNaN$1,change(_n){this.setValue(_n.target.value)},paste(_n){const Cn=_n.clipboardData||window.clipboardData;Cn&&!REGEXP_NUMBER.test(Cn.getData("text"))&&_n.preventDefault()},decrease(){if(this.decreasable){let{value:_n}=this;isNaN$1(_n)&&(_n=0),this.setValue(normalizeDecimalNumber(_n-this.step))}},increase(){if(this.increasable){let{value:_n}=this;isNaN$1(_n)&&(_n=0),this.setValue(normalizeDecimalNumber(_n+this.step))}},setValue(_n){const Cn=this.value;let $n=typeof _n!="number"?parseFloat(_n):_n;isNaN$1($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===Cn&&(this.$refs.input.value=String($n)),this.$emit("update:modelValue",$n,Cn)}}}),_export_sfc=(_n,Cn)=>{const $n=_n.__vccOpts||_n;for(const[Nn,Bn]of Cn)$n[Nn]=Bn;return $n},_hoisted_1$f=["disabled"],_hoisted_2$d=["name","value","min","max","step","readonly","disabled","placeholder"],_hoisted_3$d=["disabled"];function _sfc_render$g(_n,Cn,$n,Nn,Bn,Ln){return openBlock(),createElementBlock("div",{class:normalizeClass(["vue-number-input",{"vue-number-input--inline":_n.inline,"vue-number-input--center":_n.center,"vue-number-input--controls":_n.controls,[`vue-number-input--${_n.size}`]:_n.size}])},[_n.controls?(openBlock(),createElementBlock("button",{key:0,class:"vue-number-input__button vue-number-input__button--minus",type:"button",tabindex:"-1",disabled:_n.disabled||_n.readonly||!_n.decreasable,onClick:Cn[0]||(Cn[0]=withModifiers((...In)=>_n.decrease&&_n.decrease(...In),["prevent"]))},null,8,_hoisted_1$f)):createCommentVNode("",!0),createBaseVNode("input",mergeProps({ref:"input",class:"vue-number-input__input"},_n.attrs,{type:"number",name:_n.name,value:isNaN(_n.value)?"":_n.value,min:_n.min,max:_n.max,step:_n.step,readonly:_n.readonly||!_n.inputtable,disabled:_n.disabled||!_n.decreasable&&!_n.increasable,placeholder:_n.placeholder,autocomplete:"off",onChange:Cn[1]||(Cn[1]=(...In)=>_n.change&&_n.change(...In)),onPaste:Cn[2]||(Cn[2]=(...In)=>_n.paste&&_n.paste(...In))}),null,16,_hoisted_2$d),_n.controls?(openBlock(),createElementBlock("button",{key:1,class:"vue-number-input__button vue-number-input__button--plus",type:"button",tabindex:"-1",disabled:_n.disabled||_n.readonly||!_n.increasable,onClick:Cn[3]||(Cn[3]=withModifiers((...In)=>_n.increase&&_n.increase(...In),["prevent"]))},null,8,_hoisted_3$d)):createCommentVNode("",!0)],2)}const VueNumberInput=_export_sfc(_sfc_main$g,[["render",_sfc_render$g]]),HeaderMixin={data(){return{autocompleteResults:null,autocompleteResultsParent: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(Cn=>{Cn.neg===this.neg&&this.appendList.push({type:"favorite",name:["favorite",Cn.name],icon:"favorite",key:Cn.key,dataKey:"favorite."+Cn.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 _n=[];for(const Cn in this.tags)this.tags[Cn].type&&this.tags[Cn].type!=="text"||_n.push(Cn);return this.translates(_n,!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 _n=[];for(const Cn in this.tags)this.tags[Cn].type&&this.tags[Cn].type!=="text"||_n.push(Cn);this.translates(_n,!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(_n){let Cn=[];if(typeof _n.name=="object")for(let $n of _n.name)Cn.push(this.getLang($n));else Cn=[this.getLang(_n.name)];return Cn.join(" / ")},onAppendTagFocus(_n){if(this.$refs.promptTagAppend.value===""||this.$refs.promptTagAppend.value.trim()===""){this.appendListStyle={top:_n.target.offsetTop+_n.target.offsetHeight+"px",left:_n.target.offsetLeft+"px"},this.appendListSelected=null,this.appendListChildSelected=null,this.showAppendList=!0;let Cn=[];this.appendList.forEach($n=>{typeof $n.dataKey=="string"&&Cn.push($n.dataKey)}),this.gradioAPI.getDatas(Cn).then($n=>{this.appendList.forEach(Nn=>{typeof Nn.dataKey=="string"&&(Nn.children=$n[Nn.dataKey]||[],Nn.children.reverse())})})}this._setTextareaFocus()},onAppendTagBlur(_n){setTimeout(()=>{this.showAppendList=!1},300)},selectAppendList(_n=!0){this.appendList.length!==0&&(this.appendListSelected===null?this.appendListSelected=0:_n?(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(_n=!0){this.appendList.length!==0&&this.appendListSelected!==null&&this.appendList[this.appendListSelected].children.length!==0&&(this.appendListChildSelected===null?this.appendListChildSelected=0:_n?(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(_n,Cn=null){if(!(_n.keyCode===38||_n.keyCode===40))if(_n.keyCode===13){if(this.getAutocompleteResults()&&(this.autocompleteResultsParent&&this.autocompleteResultsParent.style.display==="flex"||this.autocompleteResults.style.display==="none")&&this.getAutocompleteResultsSelected()){let Nn=this.getAutocompleteResultsSelectedText();setTimeout(()=>{Cn=this.$refs.promptTagAppend.value,Nn?Cn=Nn:(Nn=this.getAutocompleteResultsSelectedText(),Nn&&(Cn=Nn)),this.onAppendTagKeyDown(_n,Cn)},300);return}let $n=this.$refs.promptTagAppend.value;if(this.$refs.promptTagAppend.value="",this.showAppendList=!0,console.log($n,Cn),Cn)$n=$n.replace(/\s*,\s*$/,"").trim(),common$1.hasBrackets($n)&&($n=common$1.replaceBrackets($n)),this._appendTag($n,Cn),this.updateTags();else{common$1.hasBrackets($n)?($n=common$1.replaceBrackets($n),$n=[$n]):$n=common$1.splitTags($n,this.autoBreakBeforeWrap,this.autoBreakAfterWrap);let Nn=[];$n.forEach(Bn=>{let Ln=-1;Bn===`
|
||
`?Ln=this._appendTag(`
|
||
`,`
|
||
`,!1,-1,"wrap"):Ln=this._appendTag(Bn),Ln!==-1&&Nn.push(Ln)}),this.autoTranslateByIndexes(Nn)}}else this.removeAutocompleteResultsSelected()},autoTranslateByIndexes(_n){this.updatePrompt(),this.autoTranslateToEnglish||this.autoTranslateToLocal?this.$nextTick(()=>{let Cn=!(this.tagCompleteFile&&this.onlyCsvOnAuto);this.autoTranslateToEnglish?this.translates(_n,!1,Cn).finally(()=>{this.updateTags()}):this.autoTranslateToLocal&&this.translates(_n,!0,Cn).finally(()=>{this.updateTags()})}):this.updateTags()},onAppendTagKeyUp(_n){this.$refs.promptTagAppend.value===""||this.$refs.promptTagAppend.value.trim()===""?(this.$refs.promptTagAppend.value="",this.showAppendList=!0,_n.keyCode===38||_n.keyCode===40?this.appendListChildSelected===null?this.selectAppendList(_n.keyCode===40):this.selectAppendListChild(_n.keyCode===40):_n.keyCode===37||_n.keyCode===39?this.appendListSelected!==null&&(_n.keyCode===37?(this.appendListChildSelected=null,this.scrollAppendListChild()):this.appendList[this.appendListSelected].children.length===0?this.appendListChildSelected=null:(this.appendListChildSelected=0,this.scrollAppendListChild())):_n.keyCode===13&&(this._appendTagByList(),this.scrollAppendListChild(),this.appendListSelected=null,this.appendListChildSelected=null)):this.showAppendList=!1},onAppendGroupClick(_n,Cn,$n){if(_n!==null){if(this.appendListSelected=_n,Cn===null){if(this.appendList[this.appendListSelected].children.length>0)return}else this.appendListChildSelected=Cn;this._appendTagByList()}},onAppendListChildMouseLeave(_n,Cn,$n){this.appendListSelected=null,this.appendListChildSelected=null},onAppendListChildMouseEnter(_n,Cn,$n){this.appendListSelected=_n,this.appendListChildSelected=Cn},_appendTagByList(){if(this.appendListSelected===null)return;const _n=this.appendList[this.appendListSelected];let Cn=null;_n.children.length>0&&this.appendListChildSelected!==null&&(Cn=_n.children[this.appendListChildSelected]);let $n=[];switch(_n.type){case"wrap":$n.push({value:`
|
||
`,localValue:`
|
||
`,disabled:!1,type:"wrap"});break;case"lora":break;case"favorite":case"history":Cn&&Cn.tags.forEach(Nn=>{$n.push({value:Nn.value,localValue:Nn.localValue,disabled:Nn.disabled,type:Nn.type||"text"})});break}$n.length<=0||($n.forEach(Nn=>{this._appendTag(Nn.value,Nn.localValue,Nn.disabled,-1,Nn.type)}),this.updateTags())},getAutocompleteResults(){if(!this.autocompleteResults){const _n=this.$refs.promptTagAppend.parentElement.querySelector(".autocompleteResults");if(_n){this.autocompleteResults=_n,this.autocompleteResults.getAttribute("data-mousemove")!=="true"&&(this.autocompleteResults.setAttribute("data-mousemove","true"),this.autocompleteResults.addEventListener("mousemove",$n=>{this.bindAutocompleteResultsClick()}));const Cn=this.$refs.promptTagAppend.parentElement.querySelector(".autocompleteParent");Cn&&(this.autocompleteResultsParent=Cn)}}return this.autocompleteResults},removeAutocompleteResultsSelected(){const _n=this.getAutocompleteResults();return _n?(_n.querySelectorAll("li").forEach(Cn=>{Cn.classList.remove("selected")}),!0):!1},getAutocompleteResultsSelected(){const _n=this.getAutocompleteResults();if(!_n)return null;const Cn=_n.querySelector("li.selected");return Cn||null},getAutocompleteResultsSelectedText(_n=null){if(!_n&&(_n=this.getAutocompleteResultsSelected(),!_n))return null;const Nn=_n.querySelector(".acListItem").innerText.match(/\[(.+?)\]/);return Nn?Nn[1]:null},bindAutocompleteResultsClick(){if(this.getAutocompleteResults(),!this.autocompleteResults)return;this.autocompleteResults.querySelectorAll("li").forEach(Cn=>{Cn.getAttribute("physton-on-clicked")!=="true"&&(Cn.setAttribute("physton-on-clicked","true"),Cn.addEventListener("click",()=>{this.onAutocompleteResultsClicked(Cn)}))})},onAutocompleteResultsClicked(_n){const Cn=this.getAutocompleteResultsSelectedText(_n);setTimeout(()=>{let $n=this.$refs.promptTagAppend.value.replace(/,\s*$/,"");this.$refs.promptTagAppend.value="",$n=$n.replace(/\s*,\s*$/,"").trim(),common$1.hasBrackets($n)&&($n=common$1.replaceBrackets($n)),this._appendTag($n,Cn),this.updateTags()},300)},onSettingBoxMouseEnter(){this.favorites=typeof window.phystonPromptfavorites=="object"?window.phystonPromptfavorites:[]},getCurrentTypeFavorites(){this.favorites=typeof window.phystonPromptfavorites=="object"?window.phystonPromptfavorites:[];let _n=[];return this.favorites.forEach(Cn=>{if(this.neg){if(Cn.type!=="negative_prompt")return}else if(Cn.type!=="prompt")return;_n.push(Cn)}),_n},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(_n=>{if(_n!==null)if(this.autoInputPrompt=_n,this.autoInputPrompt==="last")this.gradioAPI.getLatestHistory(this.historyKey).then(Cn=>{this.useHistory(Cn)});else{const Cn=()=>{if(typeof window.phystonPromptfavorites=="object"&&window.phystonPromptfavorites.length>0){for(let $n of window.phystonPromptfavorites)for(let Nn of $n.list)if(Nn.id===this.autoInputPrompt){this.useFavorite(Nn);return}return}setTimeout(Cn,100)};setTimeout(Cn,100)}})}}},DropMixin={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 _n=0;_n<this.$refs.promptTagsList.children.length;_n++){let Cn=this.$refs.promptTagsList.children[_n];Cn.style.display==="none"&&(Cn.style.display=""),Cn.classList.remove("drop-selected")}},onDropMouseDown(_n){this.droping||(this._dropOver(),this.dropOffsetX=_n.clientX-_n.layerX,this.dropOffsetY=_n.clientY-_n.layerY,this.dropStartX=_n.clientX-this.dropOffsetX,this.dropStartY=_n.clientY-this.dropOffsetY,this.dropEndX=_n.clientX-this.dropOffsetX,this.dropEndY=_n.clientY-this.dropOffsetY,this.dropIsStart=!0)},onDropMouseMove(_n){if(this.dropIsStart){this.dropIsSelecting=!0,this.dropEndX=_n.clientX-this.dropOffsetX,this.dropEndY=_n.clientY-this.dropOffsetY;let Cn=Math.min(this.dropStartX,this.dropEndX),$n=Math.min(this.dropStartY,this.dropEndY),Nn=Math.abs(this.dropStartX-this.dropEndX),Bn=Math.abs(this.dropStartY-this.dropEndY);Cn=Math.max(Cn,0),$n=Math.max($n,0),Nn=Math.min(Nn,this.$refs.promptTags.clientWidth-Cn),Bn=Math.min(Bn,this.$refs.promptTags.clientHeight-$n),this.dropArea.top=$n,this.dropArea.left=Cn,this.dropArea.width=Nn,this.dropArea.height=Bn,this.dropTimeId&&clearTimeout(this.dropTimeId),this.dropTimeId=setTimeout(this.dropSelectItems,10)}this.$emit("hideExtraNetworks")},dropSelectItems(){this.dropTimeId&&clearTimeout(this.dropTimeId);let _n=[];for(let Cn=0;Cn<this.$refs.promptTagsList.children.length;Cn++){let $n=this.$refs.promptTagsList.children[Cn];if(!$n.classList.contains("prompt-tag"))continue;let Nn=$n.offsetLeft,Bn=$n.offsetTop,Ln=$n.clientWidth,In=$n.clientHeight,Pn=Nn+Ln,Dn=Bn+In;!(Pn<this.dropArea.left||Dn<this.dropArea.top||Nn>this.dropArea.left+this.dropArea.width||Bn>this.dropArea.top+this.dropArea.height)?(_n.push($n.getAttribute("data-id")),$n.classList.add("drop-selected")):$n.classList.remove("drop-selected"),this.dropTags=_n}},onDropMouseUp(_n){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 _n=[];return this.dropTags.forEach(Cn=>{let $n=this.tags.find(Nn=>Nn.id===Cn);$n&&_n.push($n)}),_n},_getDropIndexes(){let _n=[];return this.dropTags.forEach(Cn=>{let $n=this.tags.findIndex(Nn=>Nn.id===Cn);$n!==-1&&_n.push($n)}),_n},_getDropTagsEle(){let _n=[];return this.dropTags.forEach(Cn=>{let $n=this.$refs.promptTagsList.querySelector(`.prompt-tag[data-id="${Cn}"]`);$n&&_n.push($n)}),_n},onDropCopy(){let _n=this._getDropTags();this._dropOver();let Cn=this.genPrompt(_n,!0);this.copy(Cn)},onDropFavorite(){let _n=this._getDropTags();this._dropOver();let Cn=this.genPrompt(_n,!0);this.gradioAPI.pushFavorite(this.favoriteKey,_n,Cn,"").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 _n=this._getDropTags();this._dropOver(),_n.forEach(Cn=>{Cn.disabled=!0}),this.updateTags()},onDropEnable(){let _n=this._getDropTags();this._dropOver(),_n.forEach(Cn=>{Cn.disabled=!1}),this.updateTags()},onDropDelete(){let _n=this._getDropIndexes();this._dropOver(),_n.sort((Cn,$n)=>$n-Cn),_n.forEach(Cn=>{this.tags.splice(Cn,1)}),this.updateTags()}}};var GHOST_ELEMENT_ID="__autosizeInputGhost",characterEntities={" ":"nbsp","<":"lt",">":"gt"};function mapSpecialCharacterToCharacterEntity(_n){return"&"+characterEntities[_n]+";"}function escapeSpecialCharacters(_n){return _n.replace(/\s|<|>/g,mapSpecialCharacterToCharacterEntity)}function createGhostElement(){var _n=document.createElement("div");return _n.id=GHOST_ELEMENT_ID,_n.style.cssText="display:inline-block;height:0;overflow:hidden;position:absolute;top:0;visibility:hidden;white-space:nowrap;",document.body.appendChild(_n),_n}var autosizeInput=function(_n,Cn){var $n=window.getComputedStyle(_n),Nn="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 Bn(){var In=_n.value||_n.getAttribute("placeholder")||"",Pn=document.getElementById(GHOST_ELEMENT_ID)||createGhostElement();Pn.style.cssText+=Nn,Pn.innerHTML=escapeSpecialCharacters(In);var Dn=window.getComputedStyle(Pn).width;return _n.style.width=Dn,Dn}_n.addEventListener("input",Bn);var Ln=Bn();return Cn&&Cn.minWidth&&Ln!=="0px"&&(_n.style.minWidth=Ln),function(){_n.removeEventListener("input",Bn);var In=document.getElementById(GHOST_ELEMENT_ID);In&&In.parentNode.removeChild(In)}};const autoSizeInput=getDefaultExportFromCjs(autosizeInput),TagMixin={data(){return{tagClickTimeId:0,showExtendId:""}},mounted(){},methods:{_setTag(_n){if(typeof _n.type=="string"&&_n.type==="wrap")_n.weightNum=1,_n.incWeight=0,_n.decWeight=0;else if(_n.weightNum=common$1.getTagWeightNum(_n.value),_n.incWeight=common$1.getTagIncWeight(_n.value),_n.decWeight=common$1.getTagDecWeight(_n.value),_n.originalValue=_n.value,!_n.value.match(common$1.loraRegex)&&!_n.value.match(common$1.lycoRegex)){let Cn=_n.value;const $n=common$1.hasBrackets(Cn);($n[0]==="("&&$n[1]===")"||$n[0]==="["&&$n[1]==="]")&&(Cn=common$1.setLayers(Cn,0,$n[0],$n[1]),_n.originalValue=Cn.replace(common$1.weightNumRegex,"$1"))}this._setTagClass(_n),this.$nextTick(()=>{this._setTagHeight(_n)})},_setTagHeight(_n){let Cn=10,$n=setInterval(()=>{if(Cn--,Cn<=0&&clearInterval($n),!this.$refs["promptTagValue-"+_n.id]||!this.$refs["promptTagValue-"+_n.id][0])return!1;clearInterval($n);let Nn=this.$refs["promptTagValue-"+_n.id][0],Bn=Nn.offsetHeight;Nn.parentNode.style.height=Bn+"px",this.$refs["promptTagEdit-"+_n.id]&&(this.$refs["promptTagEdit-"+_n.id][0].style.height=Bn+"px"),this.$refs["promptTagDelete-"+_n.id]&&(this.$refs["promptTagDelete-"+_n.id][0].style.height=Bn+"px")},50)},_getTagType(_n){},_setTagClass(_n){if(_n.isLora=!1,_n.loraExists=!1,_n.isLyco=!1,_n.lycoExists=!1,_n.isEmbedding=!1,!(typeof _n.type=="string"&&_n.type==="wrap")){const $n=_n.value.match(common$1.loraRegex);if($n&&(_n.isLora=!0,_n.loraName=$n[1],this.loraExists($n[1])!==!1&&(_n.loraExists=!0)),!_n.isLora){const Nn=_n.value.match(common$1.lycoRegex);Nn&&(_n.isLyco=!0,_n.lycoName=Nn[1],this.lycoExists(Nn[1])!==!1&&(_n.lycoExists=!0))}if(!_n.isLora&&!_n.isLyco){const Nn=this.embeddingExists(_n.value);if(Nn!==!1)_n.isEmbedding=!0,_n.value=Nn,_n.embeddingName=Nn;else{const Bn=this.embeddingExists(_n.originalValue);Bn!==!1&&(_n.isEmbedding=!0,_n.embeddingName=Bn)}}}let Cn=["prompt-tag-value"];return _n.isLora?(Cn.push("lora-tag"),_n.loraExists||Cn.push("lora-not-exists")):_n.isLyco?(Cn.push("lyco-tag"),_n.lycoExists||Cn.push("lyco-not-exists")):_n.isEmbedding?Cn.push("embedding-tag"):this.neg&&Cn.push("neg-tag"),_n.classes=Cn,Cn},_setTagById(_n,Cn=null,$n=null){let Nn=this.tags.find(Bn=>Bn.id===_n);return Nn?(Cn!==null&&(Nn.value=Cn),$n!==null&&(Nn.localValue=$n),Nn):!1},_isTagBlacklist(_n){var Cn,$n,Nn,Bn,Ln;if(typeof _n.type=="string"&&_n.type==="wrap")return!1;if(_n.isLora){if((Cn=this.blacklist.lora)!=null&&Cn.includes(_n.loraName.toLowerCase()))return!0}else if(_n.isLyco){if(($n=this.blacklist.lycoris)!=null&&$n.includes(_n.lycoName.toLowerCase()))return!0}else if(_n.isEmbedding){if((Nn=this.blacklist.embedding)!=null&&Nn.includes(_n.embeddingName.toLowerCase()))return!0}else if(this.neg){if((Bn=this.blacklist.negative_prompt)!=null&&Bn.includes(_n.originalValue.toLowerCase()))return!0}else if((Ln=this.blacklist.prompt)!=null&&Ln.includes(_n.originalValue.toLowerCase()))return!0;return!1},_appendTag(_n,Cn="",$n=!1,Nn=-1,Bn="text"){if(_n==="")return-1;const Ln=Date.now()+(Math.random()*1e6).toFixed(0);let In={id:Ln,value:_n==null||_n===!1?"":_n,localValue:Cn==null||Cn===!1?"":Cn,disabled:$n,type:Bn};return this._setTag(In),this._isTagBlacklist(In)?-1:(Nn>=0?this.tags.splice(Nn,0,In):Nn=this.tags.push(In),this.$nextTick(()=>{this.$refs["promptTagEdit-"+Ln]&&autoSizeInput(this.$refs["promptTagEdit-"+Ln][0])}),Nn-1)},renderTag(_n){let Cn=this.tags.find(Nn=>Nn.id===_n);if(!Cn)return"";let $n=Cn.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=common$1.escapeHtml($n),Cn.incWeight>0){$n=common$1.setLayers($n,0,"(",")"),$n='<div class="character">'+$n+"</div>";let Nn='<div class="weight-character">'+"(".repeat(Cn.incWeight)+"</div>",Bn='<div class="weight-character">'+")".repeat(Cn.incWeight)+"</div>";$n=Nn+$n+Bn}else if(Cn.decWeight>0){$n=common$1.setLayers($n,0,"[","]"),$n='<div class="character">'+$n+"</div>";let Nn='<div class="weight-character">'+"[".repeat(Cn.decWeight)+"</div>",Bn='<div class="weight-character">'+"]".repeat(Cn.decWeight)+"</div>";$n=Nn+$n+Bn}else $n='<div class="character">'+$n+"</div>";return $n},isFavorite(_n){let Cn=this.tags.find($n=>$n.id===_n);if(!Cn)return!1;if(typeof window.phystonPromptfavorites=="object"){for(const $n of window.phystonPromptfavorites)if($n.key===this.favoriteKey){for(const Nn of $n.list)if(Nn.tags.length===1&&Nn.tags[0].value===Cn.value)return Nn.id}}return!1},onLoraPopupUseKeywords(_n){let Cn=[];for(let $n of _n){let Nn=$n.toLowerCase();if(!this.tags.find(Ln=>Ln.value.toLowerCase()===Nn)){let Ln=this._appendTag($n,"",!1,-1,"text");Ln!==-1&&Cn.push(Ln)}}Cn.length&&this.autoTranslateByIndexes(Cn)},onTagMouseEnter(_n){if(this.isEditing)return!1;let Cn=this.tags.find($n=>$n.id===_n);if(!Cn)return!1;if(Cn.isFavorite=this.isFavorite(Cn.id),this.hotkey.hover==="extend"&&(this.showExtendId=_n),Cn.isLora||Cn.isLyco||Cn.isEmbedding){let $n=Cn.isLora?Cn.loraName:Cn.isLyco?Cn.lycoName:Cn.embeddingName;this.$emit("showExtraNetworks",this.$refs["promptTagValue-"+Cn.id][0],$n,this.onLoraPopupUseKeywords,"tags")}},onTagMouseMove(_n){},onTagMouseLeave(_n){if(!this.tags.find($n=>$n.id===_n))return!1;this.hotkey.hover==="extend"&&(this.showExtendId=""),this.$emit("hideExtraNetworks")},onTagClick(_n){this.tagClickTimeId&&clearTimeout(this.tagClickTimeId),this.tagClickTimeId=setTimeout(()=>{switch(this.hotkey.click){case"edit":this._handleEditTag(_n);break;case"disable":this._handleDisableTag(_n);break;case"extend":this._handleHoverTag(_n);break}clearTimeout(this.tagClickTimeId)},250)},onTagDblclick(_n){switch(clearTimeout(this.tagClickTimeId),this.hotkey.dblClick){case"edit":this._handleEditTag(_n);break;case"disable":this._handleDisableTag(_n);break;case"extend":this._handleHoverTag(_n);break}},onTagRightClick(_n,Cn){switch(this.hotkey.rightClick){case"edit":this._handleEditTag(_n);break;case"disable":this._handleDisableTag(_n);break;case"extend":this._handleHoverTag(_n);break}},_handleEditTag(_n){let Cn=this.tags.find($n=>$n.id===_n);if(!Cn)return!1;this.editing={},this.editing[Cn.id]=!0,this.isEditing=!0,this.$forceUpdate(),this.$nextTick(()=>{const $n=this.$refs["promptTagEdit-"+Cn.id][0];$n.focus(),$n.dispatchEvent(new Event("input"))})},_handleDisableTag(_n){let Cn=this.tags.find($n=>$n.id===_n);if(!Cn)return!1;this.onDisabledTagClick(Cn.id)},_handleHoverTag(_n){if(!this.tags.find($n=>$n.id===_n))return!1;this.showExtendId=_n},onTagInputBlur(_n){let Cn=this.tags.find($n=>$n.id===_n);if(!Cn)return!1;this.editing[Cn.id]=!1,this.isEditing=!1},onTagInputKeyDown(_n,Cn){if(Cn.keyCode===13){let $n=this.tags.find(Nn=>Nn.id===_n);if(!$n)return!1;this.editing[$n.id]=!1,this.isEditing=!1,$n.value!==Cn.target.value&&($n.value=Cn.target.value,this._setTag($n),this.updateTags())}},onTagInputChange(_n,Cn){let $n=this.tags.find(Nn=>Nn.id===_n);if(!$n)return!1;$n.value!==Cn.target.value&&($n.value=Cn.target.value,this._setTag($n),this.updateTags())},onTagWeightNumChange(_n,Cn){let $n=this.tags.find(In=>In.id===_n);if(!$n)return!1;if(Cn=typeof Cn=="number"||typeof a=="string"?Cn:Cn.target.value,$n.weightNum==Cn)return;let Nn=Cn,Bn=$n.value,Ln=$n.localValue;if(Nn!==0){if(Nn===1&&!this.autoKeepWeightOne){const In=common$1.hasBrackets(Bn);In[0]==="("&&In[1]===")"&&(Bn=common$1.setLayers(Bn,0,In[0],In[1]),Ln!==""&&(Ln=common$1.setLayers(Ln,0,In[0],In[1]))),Bn=Bn.replace(common$1.weightNumRegex,"$1"),Ln!==""&&(Ln=Ln.replace(common$1.weightNumRegex,"$1"))}else{if(!common$1.weightNumRegex.test(Bn)){let In=common$1.hasBrackets(Bn);In?(Bn=common$1.setLayers(Bn,1,In[0],In[1],":"+Nn),Ln!==""&&(Ln=common$1.setLayers(Ln,1,In[0],In[1],":"+Nn))):(Bn=Bn+":"+Nn,Ln!==""&&(Ln=Ln+":"+Nn))}common$1.hasBrackets(Bn)||(Bn=common$1.setLayers(Bn,1,"(",")"),Ln!==""&&(Ln=common$1.setLayers(Ln,1,"(",")")))}Bn!==$n.value&&($n.value=Bn,Ln!==""&&($n.localValue=Ln),this._setTag($n))}else this.autoKeepWeightZero?($n.value=Bn.replace(common$1.weightNumRegex,"$1:0"),Ln!==""&&($n.localValue=$n.localValue.replace(common$1.weightNumRegex,"$1:0"))):($n.value=Bn.replace(common$1.weightNumRegex,"$1"),Ln!==""&&($n.localValue=$n.localValue.replace(common$1.weightNumRegex,"$1")));$n.weightNum=Nn,this.updateTags()},onDeleteTagClick(_n){let Cn=this.tags.find(Nn=>Nn.id===_n);if(!Cn)return!1;let $n=this.tags.indexOf(Cn);this.tags.splice($n,1),this.updateTags()},onFavoriteTagClick(_n){let Cn=this.tags.find(Nn=>Nn.id===_n);if(!Cn)return!1;let $n=this.isFavorite(Cn.id);$n?this.gradioAPI.unFavorite(this.favoriteKey,$n).then(Nn=>{Nn&&(Cn.isFavorite=!1,this.$emit("refreshFavorites",this.favoriteKey))}):this.gradioAPI.pushFavorite(this.favoriteKey,[Cn],Cn.value,Cn.localValue===""?Cn.value:Cn.localValue).then(Nn=>{Nn&&(Cn.isFavorite=!0,this.$emit("refreshFavorites",this.favoriteKey))})},onDisabledTagClick(_n){let Cn=this.tags.find($n=>$n.id===_n);Cn&&(Cn.disabled=!Cn.disabled,this.updateTags())},onIncWeightClick(_n,Cn){let $n=this.tags.find(In=>In.id===_n);if(!$n)return;let Nn=$n.value,Bn=$n.localValue;Nn=common$1.setLayers(Nn,0,"[","]"),Bn!==""&&(Bn=common$1.setLayers(Bn,0,"[","]"));let Ln=$n.incWeight;Ln+=Cn,Ln<0&&(Ln=0),$n.incWeight=Ln,$n.decWeight=0,Nn=common$1.setLayers(Nn,Ln,"(",")"),Bn!==""&&(Bn=common$1.setLayers(Bn,Ln,"(",")")),$n.value=Nn,Bn!==""&&($n.localValue=Bn),this.updateTags()},onDecWeightClick(_n,Cn){let $n=this.tags.find(In=>In.id===_n);if(!$n)return;let Nn=$n.value,Bn=$n.localValue;Nn=common$1.setLayers(Nn,0,"(",")"),Bn!==""&&(Bn=common$1.setLayers(Bn,0,"(",")"));let Ln=$n.decWeight;Ln+=Cn,Ln<0&&(Ln=0),$n.incWeight=0,$n.decWeight=Ln,Nn=common$1.setLayers(Nn,Ln,"[","]"),Bn!==""&&(Bn=common$1.setLayers(Bn,Ln,"[","]")),$n.value=Nn,Bn!==""&&($n.localValue=Bn),this.updateTags()},onWrapTagClick(_n){let Cn=this.tags.find(Ln=>Ln.id===_n);if(!Cn)return;let $n=this.tags.indexOf(Cn),Nn=this._appendTag(`
|
||
`,`
|
||
`,!1,-1,"wrap"),Bn=this.tags[Nn];this.tags.splice(Nn,1),this.tags.splice($n+1,0,Bn),this.updateTags()},onTranslateToLocalClick(_n){let Cn=this.tags.find(Nn=>Nn.id===_n);if(!Cn)return;let $n=this.tags.indexOf(Cn);this.loading[Cn.id+"_local"]||this.translates([$n],!0,!0).finally(()=>{this.updateTags()})},onTranslateToEnglishClick(_n){let Cn=this.tags.find(Nn=>Nn.id===_n);if(!Cn)return;let $n=this.tags.indexOf(Cn);this.loading[Cn.id+"_en"]||this.translates([$n],!1,!0).finally(()=>{this.updateTags()})},onBlacklistClick(_n){let Cn=this.tags.find(Nn=>Nn.id===_n);if(!Cn)return;if(!this.cancelBlacklistConfirm){let Nn=this.getLang("confirm_add_blacklist").replace("{0}",Cn.value)+`
|
||
`+this.getLang("blacklist_desc");if(!confirm(Nn))return}let $n=JSON.parse(JSON.stringify(this.blacklist));Cn.isLora?$n.lora.push(Cn.loraName):Cn.isLyco?$n.lycoris.push(Cn.lycoName):Cn.isEmbedding?$n.embedding.push(Cn.embeddingName):this.neg?$n.negative_prompt.push(Cn.originalValue):$n.prompt.push(Cn.originalValue),this.gradioAPI.setData("blacklist",$n),this.$emit("update:blacklist",$n,this.cancelBlacklistConfirm),this.tags.forEach(Nn=>{Nn.value===Cn.value&&this.onDeleteTagClick(Nn.id)})}}},GroupTagsMixin={data(){return{groupTagsActive:"",subGroupTagsActive:"",groupTagsProcessed:[]}},watch:{groupTags:{handler(){this.genGroup(),(!this.groupTagsActive||!this.subGroupTagsActive)&&(this.groupTagsActive="favorite",this.subGroupTagsActive="favorite-"+this.favoriteKey),this._setGroupTagItemWidth()},deep:!0,immediate:!0},favorites:{handler(){this.genGroup()},deep:!0,immediate:!0},extraNetworks:{handler(){this.genGroup()},deep:!0,immediate:!0}},mounted(){this.gradioAPI.getData("groupTagsActive-"+this.name).then(_n=>{_n!==null&&typeof _n=="object"&&(this.groupTagsActive=_n.groupTagsActive,this.subGroupTagsActive=_n.subGroupTagsActive)})},methods:{genGroup(){let _n=[],Cn={name:this.getLang("favorite"),tabKey:"favorite",type:"favorite",groups:[]};if(this.getCurrentTypeFavorites().forEach($n=>{let Nn={color:"",name:this.getLang($n.name),tabKey:"favorite-"+$n.key,type:"favorite",tags:{},ori:{}};$n.list.forEach(Bn=>{Nn.tags[Bn.prompt]=Bn.name==""?Bn.prompt:Bn.name,Nn.ori[Bn.prompt]=Bn}),Cn.groups.push(Nn)}),_n.push(Cn),!this.$appMode){let $n={name:"Extra Networks",tabKey:"extraNetworks",type:"extraNetworks",groups:[]};this.extraNetworks.forEach(Nn=>{let Bn={color:"",name:Nn.title,tabKey:"extraNetworks-"+Nn.name,type:"extraNetworks",subType:Nn.name,tags:{},datas:[]};Nn.items.forEach(Dn=>{Bn.datas.push(Dn)}),$n.groups.push(Bn),Nn.items.forEach(Dn=>{Dn.dirnameFormat=Dn.dirname.replaceAll("\\","/")});let Ln=[],In=Nn.items.map(Dn=>Dn.dirnameFormat.split("/")),Pn=Math.min(...In.map(Dn=>Dn.length));Nn.items.forEach(Dn=>{Dn.base_dirname=Dn.dirnameFormat.split("/").slice(Pn).join("/"),Ln.push(Dn.base_dirname)}),Ln=[...new Set(Ln)],Ln=Ln.filter(Dn=>Dn!==""),Ln.length>1&&Ln.forEach(Dn=>{let Un={color:"",name:Dn,tabKey:"extraNetworks-"+Nn.name+"-"+Dn,type:"extraNetworks",subType:Nn.name,tags:{},datas:[]};Nn.items.forEach(Hn=>{Hn.base_dirname===Dn&&Un.datas.push(Hn)}),$n.groups.push(Un)}),$n.groups.push({type:"wrap"})}),_n.push($n)}_n=_n.concat(this.groupTags),this.groupTagsProcessed=_n},saveGroupActive(){this.gradioAPI.setData("groupTagsActive-"+this.name,{groupTagsActive:this.groupTagsActive,subGroupTagsActive:this.subGroupTagsActive})},activeGroupTab(_n){this.groupTagsActive=this.groupTagsProcessed[_n].tabKey,this.subGroupTagsActive=this.groupTagsProcessed[_n].groups[0].tabKey,this.saveGroupActive();let Cn=this.$refs.groupTabsHeader.children[_n].offsetLeft-this.$refs.groupTabsHeader.offsetWidth/2+this.$refs.groupTabsHeader.children[_n].offsetWidth/2;this.$refs.groupTabsHeader.scrollTo({left:Cn,behavior:"smooth"}),this._setGroupTagItemWidth()},activeSubGroupTab(_n,Cn){this.subGroupTagsActive=this.groupTagsProcessed[_n].groups[Cn].tabKey,this.saveGroupActive(),this._setGroupTagItemWidth()},_setGroupTagItemWidth(){this.$nextTick(()=>{if(!this.$refs.groupTagItem)return;this.$refs.groupTagItem.forEach((Cn,$n)=>{Cn.style.width="auto"});let _n=0;this.$refs.groupTagItem.forEach((Cn,$n)=>{_n=Math.max(_n,Cn.offsetWidth)}),_n>0&&this.$refs.groupTagItem.forEach((Cn,$n)=>{Cn.style.width=_n+"px"})})},onClickHideGroupTags(){this.$emit("update:hideGroupTags",!this.hideGroupTags)},onClickGroupTag(_n,Cn,$n,Nn){let Bn=[];if(this.tags.forEach((Ln,In)=>{Ln.originalValue===Cn&&Bn.push(In)}),Bn.length)Bn.reverse().forEach(Ln=>{this.tags.splice(Ln,1)}),this.updateTags();else if($n.type==="favorite"){let Ln=Nn.ori[Cn];this.onClickGroupTagFavorite(Ln)}else this._appendTag(Cn,_n,!1,-1,"text"),this.updateTags()},onClickGroupTagFavorite(_n){_n.tags.forEach(Cn=>{this._appendTag(Cn.value,Cn.localValue,Cn.disabled,-1,Cn.type)}),this.updateTags()},onClickGroupTagExtraNetwork(data,group,subGroup){if(subGroup.subType==="checkpoints"){if(data.loading)return;data.loading=!0;let _n=Cn=>{if(Cn>100){data.loading=!1;return}if(opts&&opts.sd_model_checkpoint===data.basename){data.loading=!1;return}setTimeout(_n,100,Cn+1)};_n(0),selectCheckpoint(data.basename);return}let indexes=this._groupTagsExtraNetworkTagsIndexes(data);if(indexes.length)indexes.reverse().forEach(_n=>{console.log(_n),this.tags.splice(_n,1)}),this.updateTags();else{let index=this._appendTag(eval(data.prompt),"",!1,-1,"text");this.autoTranslateToLocal?this.translates([index],!0,!1).finally(()=>{this.updateTags()}):this.updateTags()}},getGroupTagTooltip(_n,Cn){let $n="";return _n&&_n!==Cn&&($n+=_n+"<br/>"),$n+=Cn,$n},getGroupTagStyle(_n,Cn,$n){let Nn={},Bn=common$1.getTagsColorKey(_n,Cn),Ln="";this.groupTagsColor[Bn]&&(Ln=this.groupTagsColor[Bn],common$1.isColorTransparent(Ln)&&(Ln="")),Ln&&(Nn={background:Ln});for(let In of this.tags)if(In.originalValue===$n){Nn.filter="grayscale(1)";break}return Nn},_groupTagsExtraNetworkTagsIndexes(_n){let Cn=_n.name,$n=_n.output_name||void 0,Nn=[];for(let Bn in this.tags){let Ln=this.tags[Bn];if(typeof Ln.type=="string"&&Ln.type==="wrap")continue;let In=!1;Ln.isLora?In=Ln.loraName===Cn||$n&&Ln.loraName===$n:Ln.isLyco?In=Ln.lycoName===Cn||$n&&Ln.lycoName===$n:Ln.isEmbedding?In=Ln.embeddingName===Cn||$n&&Ln.embeddingName===$n:In=Ln.originalValue===Cn||$n&&Ln.originalValue===$n,In&&Nn.push(Bn)}return Nn},getGroupTagExtraNetworkStyle(_n){let Cn=this._groupTagsExtraNetworkTagsIndexes(_n),$n={width:this.extraNetworksWidth+"px",height:this.extraNetworksHeight+"px"};return Cn.length&&($n.filter="grayscale(1)"),$n},getTagsColorKey(_n,Cn){return common$1.getTagsColorKey(_n,Cn)},onTagsColorChange(_n){this.$emit("update:groupTagsColor",this.groupTagsColor)},onClickResetTagsColor(_n){for(let Cn of this.groupTagsProcessed)for(let $n of Cn.groups){if($n.type&&$n.typ=="wrap")continue;let Nn=common$1.getTagsColorKey(Cn.name,$n.name);_n===Nn&&(this.groupTagsColor[_n]=ref(common$1.fitterInputColor($n.color)))}this.onTagsColorChange(_n)},onClickClearTagsColor(_n){this.groupTagsColor[_n]=ref("rgba(0,0,0,0)"),this.onTagsColorChange(_n)},getTagColorStyle(_n){if(_n.isLora||_n.isLyco||_n.isEmbedding)return{};if(!this.groupTagsColorKeyCache[_n.value])return{};let Cn=this.groupTagsColorKeyCache[_n.value];if(!this.groupTagsColor[Cn])return{};let $n=this.groupTagsColor[Cn];return common$1.isColorTransparent($n)?{}:{background:$n}},onGroupExtraNetworkMouseEnter(_n,Cn){this.$emit("showExtraNetworks",_n.target,Cn,this.onLoraPopupUseKeywords,!0,"groupTags")},onGroupExtraNetworkMouseMove(){},onGroupExtraNetworkMouseLeave(){this.$emit("hideExtraNetworks")}}},_sfc_main$f={name:"IconSvg",props:{name:{type:String,required:!0},svgName:{type:String,default:""}},data(){return{svgCode:""}},watch:{name:{handler:function(_n,Cn){this.getSvg()},immediate:!1}},mounted(){this.getSvg()},methods:{getSvg(){if(!this.name)return;let _n=this.svgName||this.name;if(window.loadingSvg=window.loadingSvg||{},window.isLoadSvg=window.isLoadSvg||{},window.isLoadSvg[_n]){this.svgCode=localStorage.getItem("iconSVG-"+_n);return}if(localStorage.getItem("iconSVG-"+_n)&&(this.svgCode=localStorage.getItem("iconSVG-"+_n)),window.loadingSvg[_n]){const Cn=setInterval(()=>{window.loadingSvg[_n]||(clearInterval(Cn),this.svgCode=localStorage.getItem("iconSVG-"+_n))},10);return}window.loadingSvg[_n]=!0,window.iconSvgHash||(window.iconSvgHash=new Date().getTime()),this.gradioAPI.styles("icons/"+_n+".svg",window.iconSvgHash).then(Cn=>{this.svgCode=Cn,localStorage.setItem("iconSVG-"+_n,Cn),window.isLoadSvg[_n]=!0,window.loadingSvg[_n]=!1}).catch(Cn=>{window.loadingSvg[_n]=!1})}}},_hoisted_1$e=["innerHTML"];function _sfc_render$f(_n,Cn,$n,Nn,Bn,Ln){return withDirectives((openBlock(),createElementBlock("div",{class:normalizeClass(["icon-svg","icon-svg-"+$n.name]),"data-name":"name",innerHTML:Bn.svgCode},null,10,_hoisted_1$e)),[[vShow,Bn.svgCode]])}const IconSvg=_export_sfc(_sfc_main$f,[["render",_sfc_render$f]]),_sfc_main$e={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(_n){this.lastHighLightTag&&this.lastHighLightTag.value===_n.value||(this.lastHighLightTag=_n,this.showTimeId&&clearTimeout(this.showTimeId),this.showTimeId=setTimeout(()=>{this._show(_n),this.showTimeId=0},10))},_show(_n){if(this.hideDefaultInput)return this._hide();if(typeof _n.type=="string"&&_n.type==="wrap")return this._hide();let Cn=_n.value,$n=this.textarea.value;if(Cn===""||Cn.trim()==="")return this._hide();if($n===""||$n.trim()==="")return this._hide();if(Cn=common$1.escapeHtml(Cn),$n=common$1.escapeHtml(this.textarea.value),$n.indexOf(Cn)===-1)return this._hide();this.textarea.parentNode.insertBefore(this.$refs.highlightPrompt,this.textarea.nextSibling);const Bn=window.getComputedStyle(this.textarea);for(const Pn of Bn)this.$refs.highlightPrompt.style[Pn]=Bn[Pn];this.$refs.highlightPrompt.style.display="block",this.textarea.style.display="none";let Ln="",In=$n;for(;;){const Pn=In.indexOf(Cn);if(Pn===-1){Ln+=In;break}const Dn=Pn+Cn.length;Ln+=In.substring(0,Pn),Ln+='<span class="physton-highlight-prompt">',Ln+=In.substring(Pn,Dn),Ln+="</span>",In=In.substring(Dn)}this.$refs.highlightPrompt.innerHTML=Ln,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 _sfc_render$e(_n,Cn,$n,Nn,Bn,Ln){return openBlock(),createElementBlock("div",{class:"physton-highlight-prompt",ref:"highlightPrompt",onClick:Cn[0]||(Cn[0]=(...In)=>Ln.hide&&Ln.hide(...In))},null,512)}const HighlightPrompt=_export_sfc(_sfc_main$e,[["render",_sfc_render$e]]);function tryOnScopeDispose(_n){return getCurrentScope()?(onScopeDispose(_n),!0):!1}function toValue(_n){return typeof _n=="function"?_n():unref(_n)}const isClient=typeof window<"u"&&typeof document<"u",toString$1=Object.prototype.toString,isObject$4=_n=>toString$1.call(_n)==="[object Object]",noop$1=()=>{},isIOS=getIsIOS();function getIsIOS(){var _n;return isClient&&((_n=window==null?void 0:window.navigator)==null?void 0:_n.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent)}function createFilterWrapper(_n,Cn){function $n(...Nn){return new Promise((Bn,Ln)=>{Promise.resolve(_n(()=>Cn.apply(this,Nn),{fn:Cn,thisArg:this,args:Nn})).then(Bn).catch(Ln)})}return $n}const bypassFilter=_n=>_n();function debounceFilter(_n,Cn={}){let $n,Nn,Bn=noop$1;const Ln=Pn=>{clearTimeout(Pn),Bn(),Bn=noop$1};return Pn=>{const Dn=toValue(_n),Un=toValue(Cn.maxWait);return $n&&Ln($n),Dn<=0||Un!==void 0&&Un<=0?(Nn&&(Ln(Nn),Nn=null),Promise.resolve(Pn())):new Promise((Hn,Xn)=>{Bn=Cn.rejectOnCancel?Xn:Hn,Un&&!Nn&&(Nn=setTimeout(()=>{$n&&Ln($n),Nn=null,Hn(Pn())},Un)),$n=setTimeout(()=>{Nn&&Ln(Nn),Nn=null,Hn(Pn())},Dn)})}}function pausableFilter(_n=bypassFilter){const Cn=ref(!0);function $n(){Cn.value=!1}function Nn(){Cn.value=!0}const Bn=(...Ln)=>{Cn.value&&_n(...Ln)};return{isActive:readonly(Cn),pause:$n,resume:Nn,eventFilter:Bn}}function useDebounceFn(_n,Cn=200,$n={}){return createFilterWrapper(debounceFilter(Cn,$n),_n)}function watchWithFilter(_n,Cn,$n={}){const{eventFilter:Nn=bypassFilter,...Bn}=$n;return watch(_n,createFilterWrapper(Nn,Cn),Bn)}function watchPausable(_n,Cn,$n={}){const{eventFilter:Nn,...Bn}=$n,{eventFilter:Ln,pause:In,resume:Pn,isActive:Dn}=pausableFilter(Nn);return{stop:watchWithFilter(_n,Cn,{...Bn,eventFilter:Ln}),pause:In,resume:Pn,isActive:Dn}}function tryOnMounted(_n,Cn=!0){getCurrentInstance()?onMounted(_n):Cn?_n():nextTick(_n)}function whenever(_n,Cn,$n){return watch(_n,(Nn,Bn,Ln)=>{Nn&&Cn(Nn,Bn,Ln)},$n)}function unrefElement(_n){var Cn;const $n=toValue(_n);return(Cn=$n==null?void 0:$n.$el)!=null?Cn:$n}const defaultWindow=isClient?window:void 0;function useEventListener(..._n){let Cn,$n,Nn,Bn;if(typeof _n[0]=="string"||Array.isArray(_n[0])?([$n,Nn,Bn]=_n,Cn=defaultWindow):[Cn,$n,Nn,Bn]=_n,!Cn)return noop$1;Array.isArray($n)||($n=[$n]),Array.isArray(Nn)||(Nn=[Nn]);const Ln=[],In=()=>{Ln.forEach(Hn=>Hn()),Ln.length=0},Pn=(Hn,Xn,Gn,ei)=>(Hn.addEventListener(Xn,Gn,ei),()=>Hn.removeEventListener(Xn,Gn,ei)),Dn=watch(()=>[unrefElement(Cn),toValue(Bn)],([Hn,Xn])=>{if(In(),!Hn)return;const Gn=isObject$4(Xn)?{...Xn}:Xn;Ln.push(...$n.flatMap(ei=>Nn.map(nr=>Pn(Hn,ei,nr,Gn))))},{immediate:!0,flush:"post"}),Un=()=>{Dn(),In()};return tryOnScopeDispose(Un),Un}let _iOSWorkaround=!1;function onClickOutside(_n,Cn,$n={}){const{window:Nn=defaultWindow,ignore:Bn=[],capture:Ln=!0,detectIframe:In=!1}=$n;if(!Nn)return;isIOS&&!_iOSWorkaround&&(_iOSWorkaround=!0,Array.from(Nn.document.body.children).forEach(Gn=>Gn.addEventListener("click",noop$1)),Nn.document.documentElement.addEventListener("click",noop$1));let Pn=!0;const Dn=Gn=>Bn.some(ei=>{if(typeof ei=="string")return Array.from(Nn.document.querySelectorAll(ei)).some(nr=>nr===Gn.target||Gn.composedPath().includes(nr));{const nr=unrefElement(ei);return nr&&(Gn.target===nr||Gn.composedPath().includes(nr))}}),Hn=[useEventListener(Nn,"click",Gn=>{const ei=unrefElement(_n);if(!(!ei||ei===Gn.target||Gn.composedPath().includes(ei))){if(Gn.detail===0&&(Pn=!Dn(Gn)),!Pn){Pn=!0;return}Cn(Gn)}},{passive:!0,capture:Ln}),useEventListener(Nn,"pointerdown",Gn=>{const ei=unrefElement(_n);ei&&(Pn=!Gn.composedPath().includes(ei)&&!Dn(Gn))},{passive:!0}),In&&useEventListener(Nn,"blur",Gn=>{setTimeout(()=>{var ei;const nr=unrefElement(_n);((ei=Nn.document.activeElement)==null?void 0:ei.tagName)==="IFRAME"&&!(nr!=null&&nr.contains(Nn.document.activeElement))&&Cn(Gn)},0)})].filter(Boolean);return()=>Hn.forEach(Gn=>Gn())}const _global$1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},globalKey="__vueuse_ssr_handlers__",handlers=getHandlers();function getHandlers(){return globalKey in _global$1||(_global$1[globalKey]=_global$1[globalKey]||{}),_global$1[globalKey]}function getSSRHandler(_n,Cn){return handlers[_n]||Cn}function guessSerializerType(_n){return _n==null?"any":_n instanceof Set?"set":_n instanceof Map?"map":_n instanceof Date?"date":typeof _n=="boolean"?"boolean":typeof _n=="string"?"string":typeof _n=="object"?"object":Number.isNaN(_n)?"any":"number"}const StorageSerializers={boolean:{read:_n=>_n==="true",write:_n=>String(_n)},object:{read:_n=>JSON.parse(_n),write:_n=>JSON.stringify(_n)},number:{read:_n=>Number.parseFloat(_n),write:_n=>String(_n)},any:{read:_n=>_n,write:_n=>String(_n)},string:{read:_n=>_n,write:_n=>String(_n)},map:{read:_n=>new Map(JSON.parse(_n)),write:_n=>JSON.stringify(Array.from(_n.entries()))},set:{read:_n=>new Set(JSON.parse(_n)),write:_n=>JSON.stringify(Array.from(_n))},date:{read:_n=>new Date(_n),write:_n=>_n.toISOString()}},customStorageEventName="vueuse-storage";function useStorage(_n,Cn,$n,Nn={}){var Bn;const{flush:Ln="pre",deep:In=!0,listenToStorageChanges:Pn=!0,writeDefaults:Dn=!0,mergeDefaults:Un=!1,shallow:Hn,window:Xn=defaultWindow,eventFilter:Gn,onError:ei=li=>{console.error(li)}}=Nn,nr=(Hn?shallowRef:ref)(Cn);if(!$n)try{$n=getSSRHandler("getDefaultStorage",()=>{var li;return(li=defaultWindow)==null?void 0:li.localStorage})()}catch(li){ei(li)}if(!$n)return nr;const ni=toValue(Cn),ai=guessSerializerType(ni),si=(Bn=Nn.serializer)!=null?Bn:StorageSerializers[ai],{pause:gi,resume:Si}=watchPausable(nr,()=>ri(nr.value),{flush:Ln,deep:In,eventFilter:Gn});return Xn&&Pn&&(useEventListener(Xn,"storage",zn),useEventListener(Xn,customStorageEventName,$i)),zn(),nr;function ri(li){try{if(li==null)$n.removeItem(_n);else{const oi=si.write(li),ui=$n.getItem(_n);ui!==oi&&($n.setItem(_n,oi),Xn&&Xn.dispatchEvent(new CustomEvent(customStorageEventName,{detail:{key:_n,oldValue:ui,newValue:oi,storageArea:$n}})))}}catch(oi){ei(oi)}}function Ei(li){const oi=li?li.newValue:$n.getItem(_n);if(oi==null)return Dn&&ni!==null&&$n.setItem(_n,si.write(ni)),ni;if(!li&&Un){const ui=si.read(oi);return typeof Un=="function"?Un(ui,ni):ai==="object"&&!Array.isArray(ui)?{...ni,...ui}:ui}else return typeof oi!="string"?oi:si.read(oi)}function $i(li){zn(li.detail)}function zn(li){if(!(li&&li.storageArea!==$n)){if(li&&li.key==null){nr.value=ni;return}if(!(li&&li.key!==_n)){gi();try{(li==null?void 0:li.newValue)!==si.write(nr.value)&&(nr.value=Ei(li))}catch(oi){ei(oi)}finally{li?nextTick(Si):Si()}}}}}function useLocalStorage(_n,Cn,$n={}){const{window:Nn=defaultWindow}=$n;return useStorage(_n,Cn,Nn==null?void 0:Nn.localStorage,$n)}var GradientParser=GradientParser||{};GradientParser.stringify=function(){var _n={"visit_linear-gradient":function(Cn){return _n.visit_gradient(Cn)},"visit_repeating-linear-gradient":function(Cn){return _n.visit_gradient(Cn)},"visit_radial-gradient":function(Cn){return _n.visit_gradient(Cn)},"visit_repeating-radial-gradient":function(Cn){return _n.visit_gradient(Cn)},visit_gradient:function(Cn){var $n=_n.visit(Cn.orientation);return $n&&($n+=", "),Cn.type+"("+$n+_n.visit(Cn.colorStops)+")"},visit_shape:function(Cn){var $n=Cn.value,Nn=_n.visit(Cn.at),Bn=_n.visit(Cn.style);return Bn&&($n+=" "+Bn),Nn&&($n+=" at "+Nn),$n},"visit_default-radial":function(Cn){var $n="",Nn=_n.visit(Cn.at);return Nn&&($n+=Nn),$n},"visit_extent-keyword":function(Cn){var $n=Cn.value,Nn=_n.visit(Cn.at);return Nn&&($n+=" at "+Nn),$n},"visit_position-keyword":function(Cn){return Cn.value},visit_position:function(Cn){return _n.visit(Cn.value.x)+" "+_n.visit(Cn.value.y)},"visit_%":function(Cn){return Cn.value+"%"},visit_em:function(Cn){return Cn.value+"em"},visit_px:function(Cn){return Cn.value+"px"},visit_literal:function(Cn){return _n.visit_color(Cn.value,Cn)},visit_hex:function(Cn){return _n.visit_color("#"+Cn.value,Cn)},visit_rgb:function(Cn){return _n.visit_color("rgb("+Cn.value.join(", ")+")",Cn)},visit_rgba:function(Cn){return _n.visit_color("rgba("+Cn.value.join(", ")+")",Cn)},visit_color:function(Cn,$n){var Nn=Cn,Bn=_n.visit($n.length);return Bn&&(Nn+=" "+Bn),Nn},visit_angular:function(Cn){return Cn.value+"deg"},visit_directional:function(Cn){return"to "+Cn.value},visit_array:function(Cn){var $n="",Nn=Cn.length;return Cn.forEach(function(Bn,Ln){$n+=_n.visit(Bn),Ln<Nn-1&&($n+=", ")}),$n},visit:function(Cn){if(!Cn)return"";var $n="";if(Cn instanceof Array)return _n.visit_array(Cn,$n);if(Cn.type){var Nn=_n["visit_"+Cn.type];if(Nn)return Nn(Cn);throw Error("Missing visitor visit_"+Cn.type)}else throw Error("Invalid node.")}};return function(Cn){return _n.visit(Cn)}}();var GradientParser=GradientParser||{};GradientParser.parse=function(){var _n={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]+\.?))/},Cn="";function $n(Ci){var Ri=new Error(Cn+": "+Ci);throw Ri.source=Cn,Ri}function Nn(){var Ci=Bn();return Cn.length>0&&$n("Invalid input not EOF"),Ci}function Bn(){return Si(Ln)}function Ln(){return In("linear-gradient",_n.linearGradient,Dn)||In("repeating-linear-gradient",_n.repeatingLinearGradient,Dn)||In("radial-gradient",_n.radialGradient,Xn)||In("repeating-radial-gradient",_n.repeatingRadialGradient,Xn)}function In(Ci,Ri,Hi){return Pn(Ri,function(aa){var sa=Hi();return sa&&(ta(_n.comma)||$n("Missing comma before color stops")),{type:Ci,orientation:sa,colorStops:Si(ri)}})}function Pn(Ci,Ri){var Hi=ta(Ci);if(Hi){ta(_n.startCall)||$n("Missing (");var aa=Ri(Hi);return ta(_n.endCall)||$n("Missing )"),aa}}function Dn(){return Un()||Hn()}function Un(){return Fi("directional",_n.sideOrCorner,1)}function Hn(){return Fi("angular",_n.angleValue,1)}function Xn(){var Ci,Ri=Gn(),Hi;return Ri&&(Ci=[],Ci.push(Ri),Hi=Cn,ta(_n.comma)&&(Ri=Gn(),Ri?Ci.push(Ri):Cn=Hi)),Ci}function Gn(){var Ci=ei()||nr();if(Ci)Ci.at=ai();else{var Ri=ni();if(Ri){Ci=Ri;var Hi=ai();Hi&&(Ci.at=Hi)}else{var aa=si();aa&&(Ci={type:"default-radial",at:aa})}}return Ci}function ei(){var Ci=Fi("shape",/^(circle)/i,0);return Ci&&(Ci.style=yi()||ni()),Ci}function nr(){var Ci=Fi("shape",/^(ellipse)/i,0);return Ci&&(Ci.style=mi()||ni()),Ci}function ni(){return Fi("extent-keyword",_n.extentKeywords,1)}function ai(){if(Fi("position",/^at/,0)){var Ci=si();return Ci||$n("Missing positioning value"),Ci}}function si(){var Ci=gi();if(Ci.x||Ci.y)return{type:"position",value:Ci}}function gi(){return{x:mi(),y:mi()}}function Si(Ci){var Ri=Ci(),Hi=[];if(Ri)for(Hi.push(Ri);ta(_n.comma);)Ri=Ci(),Ri?Hi.push(Ri):$n("One extra comma");return Hi}function ri(){var Ci=Ei();return Ci||$n("Expected color definition"),Ci.length=mi(),Ci}function Ei(){return zn()||oi()||li()||$i()}function $i(){return Fi("literal",_n.literalColor,0)}function zn(){return Fi("hex",_n.hexColor,1)}function li(){return Pn(_n.rgbColor,function(){return{type:"rgb",value:Si(ui)}})}function oi(){return Pn(_n.rgbaColor,function(){return{type:"rgba",value:Si(ui)}})}function ui(){return ta(_n.number)[1]}function mi(){return Fi("%",_n.percentageValue,1)||_i()||yi()}function _i(){return Fi("position-keyword",_n.positionKeywords,1)}function yi(){return Fi("px",_n.pixelValue,1)||Fi("em",_n.emValue,1)}function Fi(Ci,Ri,Hi){var aa=ta(Ri);if(aa)return{type:Ci,value:aa[Hi]}}function ta(Ci){var Ri,Hi;return Hi=/^[\n\r\t\s]+/.exec(Cn),Hi&&qo(Hi[0].length),Ri=Ci.exec(Cn),Ri&&qo(Ri[0].length),Ri}function qo(Ci){Cn=Cn.substr(Ci)}return function(Ci){return Cn=Ci.toString(),Nn()}}();var parse=GradientParser.parse,stringify=GradientParser.stringify,top="top",bottom="bottom",right="right",left="left",auto="auto",basePlacements=[top,bottom,right,left],start="start",end="end",clippingParents="clippingParents",viewport="viewport",popper="popper",reference="reference",variationPlacements=basePlacements.reduce(function(_n,Cn){return _n.concat([Cn+"-"+start,Cn+"-"+end])},[]),placements=[].concat(basePlacements,[auto]).reduce(function(_n,Cn){return _n.concat([Cn,Cn+"-"+start,Cn+"-"+end])},[]),beforeRead="beforeRead",read="read",afterRead="afterRead",beforeMain="beforeMain",main="main",afterMain="afterMain",beforeWrite="beforeWrite",write="write",afterWrite="afterWrite",modifierPhases=[beforeRead,read,afterRead,beforeMain,main,afterMain,beforeWrite,write,afterWrite];function getNodeName(_n){return _n?(_n.nodeName||"").toLowerCase():null}function getWindow(_n){if(_n==null)return window;if(_n.toString()!=="[object Window]"){var Cn=_n.ownerDocument;return Cn&&Cn.defaultView||window}return _n}function isElement$1(_n){var Cn=getWindow(_n).Element;return _n instanceof Cn||_n instanceof Element}function isHTMLElement(_n){var Cn=getWindow(_n).HTMLElement;return _n instanceof Cn||_n instanceof HTMLElement}function isShadowRoot(_n){if(typeof ShadowRoot>"u")return!1;var Cn=getWindow(_n).ShadowRoot;return _n instanceof Cn||_n instanceof ShadowRoot}function applyStyles(_n){var Cn=_n.state;Object.keys(Cn.elements).forEach(function($n){var Nn=Cn.styles[$n]||{},Bn=Cn.attributes[$n]||{},Ln=Cn.elements[$n];!isHTMLElement(Ln)||!getNodeName(Ln)||(Object.assign(Ln.style,Nn),Object.keys(Bn).forEach(function(In){var Pn=Bn[In];Pn===!1?Ln.removeAttribute(In):Ln.setAttribute(In,Pn===!0?"":Pn)}))})}function effect$2(_n){var Cn=_n.state,$n={popper:{position:Cn.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(Cn.elements.popper.style,$n.popper),Cn.styles=$n,Cn.elements.arrow&&Object.assign(Cn.elements.arrow.style,$n.arrow),function(){Object.keys(Cn.elements).forEach(function(Nn){var Bn=Cn.elements[Nn],Ln=Cn.attributes[Nn]||{},In=Object.keys(Cn.styles.hasOwnProperty(Nn)?Cn.styles[Nn]:$n[Nn]),Pn=In.reduce(function(Dn,Un){return Dn[Un]="",Dn},{});!isHTMLElement(Bn)||!getNodeName(Bn)||(Object.assign(Bn.style,Pn),Object.keys(Ln).forEach(function(Dn){Bn.removeAttribute(Dn)}))})}}const applyStyles$1={name:"applyStyles",enabled:!0,phase:"write",fn:applyStyles,effect:effect$2,requires:["computeStyles"]};function getBasePlacement$1(_n){return _n.split("-")[0]}var max=Math.max,min=Math.min,round=Math.round;function getUAString(){var _n=navigator.userAgentData;return _n!=null&&_n.brands&&Array.isArray(_n.brands)?_n.brands.map(function(Cn){return Cn.brand+"/"+Cn.version}).join(" "):navigator.userAgent}function isLayoutViewport(){return!/^((?!chrome|android).)*safari/i.test(getUAString())}function getBoundingClientRect(_n,Cn,$n){Cn===void 0&&(Cn=!1),$n===void 0&&($n=!1);var Nn=_n.getBoundingClientRect(),Bn=1,Ln=1;Cn&&isHTMLElement(_n)&&(Bn=_n.offsetWidth>0&&round(Nn.width)/_n.offsetWidth||1,Ln=_n.offsetHeight>0&&round(Nn.height)/_n.offsetHeight||1);var In=isElement$1(_n)?getWindow(_n):window,Pn=In.visualViewport,Dn=!isLayoutViewport()&&$n,Un=(Nn.left+(Dn&&Pn?Pn.offsetLeft:0))/Bn,Hn=(Nn.top+(Dn&&Pn?Pn.offsetTop:0))/Ln,Xn=Nn.width/Bn,Gn=Nn.height/Ln;return{width:Xn,height:Gn,top:Hn,right:Un+Xn,bottom:Hn+Gn,left:Un,x:Un,y:Hn}}function getLayoutRect(_n){var Cn=getBoundingClientRect(_n),$n=_n.offsetWidth,Nn=_n.offsetHeight;return Math.abs(Cn.width-$n)<=1&&($n=Cn.width),Math.abs(Cn.height-Nn)<=1&&(Nn=Cn.height),{x:_n.offsetLeft,y:_n.offsetTop,width:$n,height:Nn}}function contains(_n,Cn){var $n=Cn.getRootNode&&Cn.getRootNode();if(_n.contains(Cn))return!0;if($n&&isShadowRoot($n)){var Nn=Cn;do{if(Nn&&_n.isSameNode(Nn))return!0;Nn=Nn.parentNode||Nn.host}while(Nn)}return!1}function getComputedStyle(_n){return getWindow(_n).getComputedStyle(_n)}function isTableElement(_n){return["table","td","th"].indexOf(getNodeName(_n))>=0}function getDocumentElement(_n){return((isElement$1(_n)?_n.ownerDocument:_n.document)||window.document).documentElement}function getParentNode(_n){return getNodeName(_n)==="html"?_n:_n.assignedSlot||_n.parentNode||(isShadowRoot(_n)?_n.host:null)||getDocumentElement(_n)}function getTrueOffsetParent(_n){return!isHTMLElement(_n)||getComputedStyle(_n).position==="fixed"?null:_n.offsetParent}function getContainingBlock(_n){var Cn=/firefox/i.test(getUAString()),$n=/Trident/i.test(getUAString());if($n&&isHTMLElement(_n)){var Nn=getComputedStyle(_n);if(Nn.position==="fixed")return null}var Bn=getParentNode(_n);for(isShadowRoot(Bn)&&(Bn=Bn.host);isHTMLElement(Bn)&&["html","body"].indexOf(getNodeName(Bn))<0;){var Ln=getComputedStyle(Bn);if(Ln.transform!=="none"||Ln.perspective!=="none"||Ln.contain==="paint"||["transform","perspective"].indexOf(Ln.willChange)!==-1||Cn&&Ln.willChange==="filter"||Cn&&Ln.filter&&Ln.filter!=="none")return Bn;Bn=Bn.parentNode}return null}function getOffsetParent(_n){for(var Cn=getWindow(_n),$n=getTrueOffsetParent(_n);$n&&isTableElement($n)&&getComputedStyle($n).position==="static";)$n=getTrueOffsetParent($n);return $n&&(getNodeName($n)==="html"||getNodeName($n)==="body"&&getComputedStyle($n).position==="static")?Cn:$n||getContainingBlock(_n)||Cn}function getMainAxisFromPlacement(_n){return["top","bottom"].indexOf(_n)>=0?"x":"y"}function within(_n,Cn,$n){return max(_n,min(Cn,$n))}function withinMaxClamp(_n,Cn,$n){var Nn=within(_n,Cn,$n);return Nn>$n?$n:Nn}function getFreshSideObject(){return{top:0,right:0,bottom:0,left:0}}function mergePaddingObject(_n){return Object.assign({},getFreshSideObject(),_n)}function expandToHashMap(_n,Cn){return Cn.reduce(function($n,Nn){return $n[Nn]=_n,$n},{})}var toPaddingObject=function _n(Cn,$n){return Cn=typeof Cn=="function"?Cn(Object.assign({},$n.rects,{placement:$n.placement})):Cn,mergePaddingObject(typeof Cn!="number"?Cn:expandToHashMap(Cn,basePlacements))};function arrow(_n){var Cn,$n=_n.state,Nn=_n.name,Bn=_n.options,Ln=$n.elements.arrow,In=$n.modifiersData.popperOffsets,Pn=getBasePlacement$1($n.placement),Dn=getMainAxisFromPlacement(Pn),Un=[left,right].indexOf(Pn)>=0,Hn=Un?"height":"width";if(!(!Ln||!In)){var Xn=toPaddingObject(Bn.padding,$n),Gn=getLayoutRect(Ln),ei=Dn==="y"?top:left,nr=Dn==="y"?bottom:right,ni=$n.rects.reference[Hn]+$n.rects.reference[Dn]-In[Dn]-$n.rects.popper[Hn],ai=In[Dn]-$n.rects.reference[Dn],si=getOffsetParent(Ln),gi=si?Dn==="y"?si.clientHeight||0:si.clientWidth||0:0,Si=ni/2-ai/2,ri=Xn[ei],Ei=gi-Gn[Hn]-Xn[nr],$i=gi/2-Gn[Hn]/2+Si,zn=within(ri,$i,Ei),li=Dn;$n.modifiersData[Nn]=(Cn={},Cn[li]=zn,Cn.centerOffset=zn-$i,Cn)}}function effect$1(_n){var Cn=_n.state,$n=_n.options,Nn=$n.element,Bn=Nn===void 0?"[data-popper-arrow]":Nn;Bn!=null&&(typeof Bn=="string"&&(Bn=Cn.elements.popper.querySelector(Bn),!Bn)||contains(Cn.elements.popper,Bn)&&(Cn.elements.arrow=Bn))}const arrow$1={name:"arrow",enabled:!0,phase:"main",fn:arrow,effect:effect$1,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function getVariation(_n){return _n.split("-")[1]}var unsetSides={top:"auto",right:"auto",bottom:"auto",left:"auto"};function roundOffsetsByDPR(_n,Cn){var $n=_n.x,Nn=_n.y,Bn=Cn.devicePixelRatio||1;return{x:round($n*Bn)/Bn||0,y:round(Nn*Bn)/Bn||0}}function mapToStyles(_n){var Cn,$n=_n.popper,Nn=_n.popperRect,Bn=_n.placement,Ln=_n.variation,In=_n.offsets,Pn=_n.position,Dn=_n.gpuAcceleration,Un=_n.adaptive,Hn=_n.roundOffsets,Xn=_n.isFixed,Gn=In.x,ei=Gn===void 0?0:Gn,nr=In.y,ni=nr===void 0?0:nr,ai=typeof Hn=="function"?Hn({x:ei,y:ni}):{x:ei,y:ni};ei=ai.x,ni=ai.y;var si=In.hasOwnProperty("x"),gi=In.hasOwnProperty("y"),Si=left,ri=top,Ei=window;if(Un){var $i=getOffsetParent($n),zn="clientHeight",li="clientWidth";if($i===getWindow($n)&&($i=getDocumentElement($n),getComputedStyle($i).position!=="static"&&Pn==="absolute"&&(zn="scrollHeight",li="scrollWidth")),$i=$i,Bn===top||(Bn===left||Bn===right)&&Ln===end){ri=bottom;var oi=Xn&&$i===Ei&&Ei.visualViewport?Ei.visualViewport.height:$i[zn];ni-=oi-Nn.height,ni*=Dn?1:-1}if(Bn===left||(Bn===top||Bn===bottom)&&Ln===end){Si=right;var ui=Xn&&$i===Ei&&Ei.visualViewport?Ei.visualViewport.width:$i[li];ei-=ui-Nn.width,ei*=Dn?1:-1}}var mi=Object.assign({position:Pn},Un&&unsetSides),_i=Hn===!0?roundOffsetsByDPR({x:ei,y:ni},getWindow($n)):{x:ei,y:ni};if(ei=_i.x,ni=_i.y,Dn){var yi;return Object.assign({},mi,(yi={},yi[ri]=gi?"0":"",yi[Si]=si?"0":"",yi.transform=(Ei.devicePixelRatio||1)<=1?"translate("+ei+"px, "+ni+"px)":"translate3d("+ei+"px, "+ni+"px, 0)",yi))}return Object.assign({},mi,(Cn={},Cn[ri]=gi?ni+"px":"",Cn[Si]=si?ei+"px":"",Cn.transform="",Cn))}function computeStyles(_n){var Cn=_n.state,$n=_n.options,Nn=$n.gpuAcceleration,Bn=Nn===void 0?!0:Nn,Ln=$n.adaptive,In=Ln===void 0?!0:Ln,Pn=$n.roundOffsets,Dn=Pn===void 0?!0:Pn,Un={placement:getBasePlacement$1(Cn.placement),variation:getVariation(Cn.placement),popper:Cn.elements.popper,popperRect:Cn.rects.popper,gpuAcceleration:Bn,isFixed:Cn.options.strategy==="fixed"};Cn.modifiersData.popperOffsets!=null&&(Cn.styles.popper=Object.assign({},Cn.styles.popper,mapToStyles(Object.assign({},Un,{offsets:Cn.modifiersData.popperOffsets,position:Cn.options.strategy,adaptive:In,roundOffsets:Dn})))),Cn.modifiersData.arrow!=null&&(Cn.styles.arrow=Object.assign({},Cn.styles.arrow,mapToStyles(Object.assign({},Un,{offsets:Cn.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:Dn})))),Cn.attributes.popper=Object.assign({},Cn.attributes.popper,{"data-popper-placement":Cn.placement})}const computeStyles$1={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:computeStyles,data:{}};var passive={passive:!0};function effect(_n){var Cn=_n.state,$n=_n.instance,Nn=_n.options,Bn=Nn.scroll,Ln=Bn===void 0?!0:Bn,In=Nn.resize,Pn=In===void 0?!0:In,Dn=getWindow(Cn.elements.popper),Un=[].concat(Cn.scrollParents.reference,Cn.scrollParents.popper);return Ln&&Un.forEach(function(Hn){Hn.addEventListener("scroll",$n.update,passive)}),Pn&&Dn.addEventListener("resize",$n.update,passive),function(){Ln&&Un.forEach(function(Hn){Hn.removeEventListener("scroll",$n.update,passive)}),Pn&&Dn.removeEventListener("resize",$n.update,passive)}}const eventListeners={name:"eventListeners",enabled:!0,phase:"write",fn:function _n(){},effect,data:{}};var hash$1={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(_n){return _n.replace(/left|right|bottom|top/g,function(Cn){return hash$1[Cn]})}var hash={start:"end",end:"start"};function getOppositeVariationPlacement(_n){return _n.replace(/start|end/g,function(Cn){return hash[Cn]})}function getWindowScroll(_n){var Cn=getWindow(_n),$n=Cn.pageXOffset,Nn=Cn.pageYOffset;return{scrollLeft:$n,scrollTop:Nn}}function getWindowScrollBarX(_n){return getBoundingClientRect(getDocumentElement(_n)).left+getWindowScroll(_n).scrollLeft}function getViewportRect(_n,Cn){var $n=getWindow(_n),Nn=getDocumentElement(_n),Bn=$n.visualViewport,Ln=Nn.clientWidth,In=Nn.clientHeight,Pn=0,Dn=0;if(Bn){Ln=Bn.width,In=Bn.height;var Un=isLayoutViewport();(Un||!Un&&Cn==="fixed")&&(Pn=Bn.offsetLeft,Dn=Bn.offsetTop)}return{width:Ln,height:In,x:Pn+getWindowScrollBarX(_n),y:Dn}}function getDocumentRect(_n){var Cn,$n=getDocumentElement(_n),Nn=getWindowScroll(_n),Bn=(Cn=_n.ownerDocument)==null?void 0:Cn.body,Ln=max($n.scrollWidth,$n.clientWidth,Bn?Bn.scrollWidth:0,Bn?Bn.clientWidth:0),In=max($n.scrollHeight,$n.clientHeight,Bn?Bn.scrollHeight:0,Bn?Bn.clientHeight:0),Pn=-Nn.scrollLeft+getWindowScrollBarX(_n),Dn=-Nn.scrollTop;return getComputedStyle(Bn||$n).direction==="rtl"&&(Pn+=max($n.clientWidth,Bn?Bn.clientWidth:0)-Ln),{width:Ln,height:In,x:Pn,y:Dn}}function isScrollParent(_n){var Cn=getComputedStyle(_n),$n=Cn.overflow,Nn=Cn.overflowX,Bn=Cn.overflowY;return/auto|scroll|overlay|hidden/.test($n+Bn+Nn)}function getScrollParent(_n){return["html","body","#document"].indexOf(getNodeName(_n))>=0?_n.ownerDocument.body:isHTMLElement(_n)&&isScrollParent(_n)?_n:getScrollParent(getParentNode(_n))}function listScrollParents(_n,Cn){var $n;Cn===void 0&&(Cn=[]);var Nn=getScrollParent(_n),Bn=Nn===(($n=_n.ownerDocument)==null?void 0:$n.body),Ln=getWindow(Nn),In=Bn?[Ln].concat(Ln.visualViewport||[],isScrollParent(Nn)?Nn:[]):Nn,Pn=Cn.concat(In);return Bn?Pn:Pn.concat(listScrollParents(getParentNode(In)))}function rectToClientRect(_n){return Object.assign({},_n,{left:_n.x,top:_n.y,right:_n.x+_n.width,bottom:_n.y+_n.height})}function getInnerBoundingClientRect(_n,Cn){var $n=getBoundingClientRect(_n,!1,Cn==="fixed");return $n.top=$n.top+_n.clientTop,$n.left=$n.left+_n.clientLeft,$n.bottom=$n.top+_n.clientHeight,$n.right=$n.left+_n.clientWidth,$n.width=_n.clientWidth,$n.height=_n.clientHeight,$n.x=$n.left,$n.y=$n.top,$n}function getClientRectFromMixedType(_n,Cn,$n){return Cn===viewport?rectToClientRect(getViewportRect(_n,$n)):isElement$1(Cn)?getInnerBoundingClientRect(Cn,$n):rectToClientRect(getDocumentRect(getDocumentElement(_n)))}function getClippingParents(_n){var Cn=listScrollParents(getParentNode(_n)),$n=["absolute","fixed"].indexOf(getComputedStyle(_n).position)>=0,Nn=$n&&isHTMLElement(_n)?getOffsetParent(_n):_n;return isElement$1(Nn)?Cn.filter(function(Bn){return isElement$1(Bn)&&contains(Bn,Nn)&&getNodeName(Bn)!=="body"}):[]}function getClippingRect(_n,Cn,$n,Nn){var Bn=Cn==="clippingParents"?getClippingParents(_n):[].concat(Cn),Ln=[].concat(Bn,[$n]),In=Ln[0],Pn=Ln.reduce(function(Dn,Un){var Hn=getClientRectFromMixedType(_n,Un,Nn);return Dn.top=max(Hn.top,Dn.top),Dn.right=min(Hn.right,Dn.right),Dn.bottom=min(Hn.bottom,Dn.bottom),Dn.left=max(Hn.left,Dn.left),Dn},getClientRectFromMixedType(_n,In,Nn));return Pn.width=Pn.right-Pn.left,Pn.height=Pn.bottom-Pn.top,Pn.x=Pn.left,Pn.y=Pn.top,Pn}function computeOffsets(_n){var Cn=_n.reference,$n=_n.element,Nn=_n.placement,Bn=Nn?getBasePlacement$1(Nn):null,Ln=Nn?getVariation(Nn):null,In=Cn.x+Cn.width/2-$n.width/2,Pn=Cn.y+Cn.height/2-$n.height/2,Dn;switch(Bn){case top:Dn={x:In,y:Cn.y-$n.height};break;case bottom:Dn={x:In,y:Cn.y+Cn.height};break;case right:Dn={x:Cn.x+Cn.width,y:Pn};break;case left:Dn={x:Cn.x-$n.width,y:Pn};break;default:Dn={x:Cn.x,y:Cn.y}}var Un=Bn?getMainAxisFromPlacement(Bn):null;if(Un!=null){var Hn=Un==="y"?"height":"width";switch(Ln){case start:Dn[Un]=Dn[Un]-(Cn[Hn]/2-$n[Hn]/2);break;case end:Dn[Un]=Dn[Un]+(Cn[Hn]/2-$n[Hn]/2);break}}return Dn}function detectOverflow(_n,Cn){Cn===void 0&&(Cn={});var $n=Cn,Nn=$n.placement,Bn=Nn===void 0?_n.placement:Nn,Ln=$n.strategy,In=Ln===void 0?_n.strategy:Ln,Pn=$n.boundary,Dn=Pn===void 0?clippingParents:Pn,Un=$n.rootBoundary,Hn=Un===void 0?viewport:Un,Xn=$n.elementContext,Gn=Xn===void 0?popper:Xn,ei=$n.altBoundary,nr=ei===void 0?!1:ei,ni=$n.padding,ai=ni===void 0?0:ni,si=mergePaddingObject(typeof ai!="number"?ai:expandToHashMap(ai,basePlacements)),gi=Gn===popper?reference:popper,Si=_n.rects.popper,ri=_n.elements[nr?gi:Gn],Ei=getClippingRect(isElement$1(ri)?ri:ri.contextElement||getDocumentElement(_n.elements.popper),Dn,Hn,In),$i=getBoundingClientRect(_n.elements.reference),zn=computeOffsets({reference:$i,element:Si,strategy:"absolute",placement:Bn}),li=rectToClientRect(Object.assign({},Si,zn)),oi=Gn===popper?li:$i,ui={top:Ei.top-oi.top+si.top,bottom:oi.bottom-Ei.bottom+si.bottom,left:Ei.left-oi.left+si.left,right:oi.right-Ei.right+si.right},mi=_n.modifiersData.offset;if(Gn===popper&&mi){var _i=mi[Bn];Object.keys(ui).forEach(function(yi){var Fi=[right,bottom].indexOf(yi)>=0?1:-1,ta=[top,bottom].indexOf(yi)>=0?"y":"x";ui[yi]+=_i[ta]*Fi})}return ui}function computeAutoPlacement(_n,Cn){Cn===void 0&&(Cn={});var $n=Cn,Nn=$n.placement,Bn=$n.boundary,Ln=$n.rootBoundary,In=$n.padding,Pn=$n.flipVariations,Dn=$n.allowedAutoPlacements,Un=Dn===void 0?placements:Dn,Hn=getVariation(Nn),Xn=Hn?Pn?variationPlacements:variationPlacements.filter(function(nr){return getVariation(nr)===Hn}):basePlacements,Gn=Xn.filter(function(nr){return Un.indexOf(nr)>=0});Gn.length===0&&(Gn=Xn);var ei=Gn.reduce(function(nr,ni){return nr[ni]=detectOverflow(_n,{placement:ni,boundary:Bn,rootBoundary:Ln,padding:In})[getBasePlacement$1(ni)],nr},{});return Object.keys(ei).sort(function(nr,ni){return ei[nr]-ei[ni]})}function getExpandedFallbackPlacements(_n){if(getBasePlacement$1(_n)===auto)return[];var Cn=getOppositePlacement(_n);return[getOppositeVariationPlacement(_n),Cn,getOppositeVariationPlacement(Cn)]}function flip(_n){var Cn=_n.state,$n=_n.options,Nn=_n.name;if(!Cn.modifiersData[Nn]._skip){for(var Bn=$n.mainAxis,Ln=Bn===void 0?!0:Bn,In=$n.altAxis,Pn=In===void 0?!0:In,Dn=$n.fallbackPlacements,Un=$n.padding,Hn=$n.boundary,Xn=$n.rootBoundary,Gn=$n.altBoundary,ei=$n.flipVariations,nr=ei===void 0?!0:ei,ni=$n.allowedAutoPlacements,ai=Cn.options.placement,si=getBasePlacement$1(ai),gi=si===ai,Si=Dn||(gi||!nr?[getOppositePlacement(ai)]:getExpandedFallbackPlacements(ai)),ri=[ai].concat(Si).reduce(function(Yi,Ji){return Yi.concat(getBasePlacement$1(Ji)===auto?computeAutoPlacement(Cn,{placement:Ji,boundary:Hn,rootBoundary:Xn,padding:Un,flipVariations:nr,allowedAutoPlacements:ni}):Ji)},[]),Ei=Cn.rects.reference,$i=Cn.rects.popper,zn=new Map,li=!0,oi=ri[0],ui=0;ui<ri.length;ui++){var mi=ri[ui],_i=getBasePlacement$1(mi),yi=getVariation(mi)===start,Fi=[top,bottom].indexOf(_i)>=0,ta=Fi?"width":"height",qo=detectOverflow(Cn,{placement:mi,boundary:Hn,rootBoundary:Xn,altBoundary:Gn,padding:Un}),Ci=Fi?yi?right:left:yi?bottom:top;Ei[ta]>$i[ta]&&(Ci=getOppositePlacement(Ci));var Ri=getOppositePlacement(Ci),Hi=[];if(Ln&&Hi.push(qo[_i]<=0),Pn&&Hi.push(qo[Ci]<=0,qo[Ri]<=0),Hi.every(function(Yi){return Yi})){oi=mi,li=!1;break}zn.set(mi,Hi)}if(li)for(var aa=nr?3:1,sa=function(Ji){var Zi=ri.find(function(Qo){var la=zn.get(Qo);if(la)return la.slice(0,Ji).every(function(Go){return Go})});if(Zi)return oi=Zi,"break"},Pi=aa;Pi>0;Pi--){var Ki=sa(Pi);if(Ki==="break")break}Cn.placement!==oi&&(Cn.modifiersData[Nn]._skip=!0,Cn.placement=oi,Cn.reset=!0)}}const flip$1={name:"flip",enabled:!0,phase:"main",fn:flip,requiresIfExists:["offset"],data:{_skip:!1}};function getSideOffsets(_n,Cn,$n){return $n===void 0&&($n={x:0,y:0}),{top:_n.top-Cn.height-$n.y,right:_n.right-Cn.width+$n.x,bottom:_n.bottom-Cn.height+$n.y,left:_n.left-Cn.width-$n.x}}function isAnySideFullyClipped(_n){return[top,right,bottom,left].some(function(Cn){return _n[Cn]>=0})}function hide(_n){var Cn=_n.state,$n=_n.name,Nn=Cn.rects.reference,Bn=Cn.rects.popper,Ln=Cn.modifiersData.preventOverflow,In=detectOverflow(Cn,{elementContext:"reference"}),Pn=detectOverflow(Cn,{altBoundary:!0}),Dn=getSideOffsets(In,Nn),Un=getSideOffsets(Pn,Bn,Ln),Hn=isAnySideFullyClipped(Dn),Xn=isAnySideFullyClipped(Un);Cn.modifiersData[$n]={referenceClippingOffsets:Dn,popperEscapeOffsets:Un,isReferenceHidden:Hn,hasPopperEscaped:Xn},Cn.attributes.popper=Object.assign({},Cn.attributes.popper,{"data-popper-reference-hidden":Hn,"data-popper-escaped":Xn})}const hide$1={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:hide};function distanceAndSkiddingToXY(_n,Cn,$n){var Nn=getBasePlacement$1(_n),Bn=[left,top].indexOf(Nn)>=0?-1:1,Ln=typeof $n=="function"?$n(Object.assign({},Cn,{placement:_n})):$n,In=Ln[0],Pn=Ln[1];return In=In||0,Pn=(Pn||0)*Bn,[left,right].indexOf(Nn)>=0?{x:Pn,y:In}:{x:In,y:Pn}}function offset(_n){var Cn=_n.state,$n=_n.options,Nn=_n.name,Bn=$n.offset,Ln=Bn===void 0?[0,0]:Bn,In=placements.reduce(function(Hn,Xn){return Hn[Xn]=distanceAndSkiddingToXY(Xn,Cn.rects,Ln),Hn},{}),Pn=In[Cn.placement],Dn=Pn.x,Un=Pn.y;Cn.modifiersData.popperOffsets!=null&&(Cn.modifiersData.popperOffsets.x+=Dn,Cn.modifiersData.popperOffsets.y+=Un),Cn.modifiersData[Nn]=In}const offset$1={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:offset};function popperOffsets(_n){var Cn=_n.state,$n=_n.name;Cn.modifiersData[$n]=computeOffsets({reference:Cn.rects.reference,element:Cn.rects.popper,strategy:"absolute",placement:Cn.placement})}const popperOffsets$1={name:"popperOffsets",enabled:!0,phase:"read",fn:popperOffsets,data:{}};function getAltAxis(_n){return _n==="x"?"y":"x"}function preventOverflow(_n){var Cn=_n.state,$n=_n.options,Nn=_n.name,Bn=$n.mainAxis,Ln=Bn===void 0?!0:Bn,In=$n.altAxis,Pn=In===void 0?!1:In,Dn=$n.boundary,Un=$n.rootBoundary,Hn=$n.altBoundary,Xn=$n.padding,Gn=$n.tether,ei=Gn===void 0?!0:Gn,nr=$n.tetherOffset,ni=nr===void 0?0:nr,ai=detectOverflow(Cn,{boundary:Dn,rootBoundary:Un,padding:Xn,altBoundary:Hn}),si=getBasePlacement$1(Cn.placement),gi=getVariation(Cn.placement),Si=!gi,ri=getMainAxisFromPlacement(si),Ei=getAltAxis(ri),$i=Cn.modifiersData.popperOffsets,zn=Cn.rects.reference,li=Cn.rects.popper,oi=typeof ni=="function"?ni(Object.assign({},Cn.rects,{placement:Cn.placement})):ni,ui=typeof oi=="number"?{mainAxis:oi,altAxis:oi}:Object.assign({mainAxis:0,altAxis:0},oi),mi=Cn.modifiersData.offset?Cn.modifiersData.offset[Cn.placement]:null,_i={x:0,y:0};if($i){if(Ln){var yi,Fi=ri==="y"?top:left,ta=ri==="y"?bottom:right,qo=ri==="y"?"height":"width",Ci=$i[ri],Ri=Ci+ai[Fi],Hi=Ci-ai[ta],aa=ei?-li[qo]/2:0,sa=gi===start?zn[qo]:li[qo],Pi=gi===start?-li[qo]:-zn[qo],Ki=Cn.elements.arrow,Yi=ei&&Ki?getLayoutRect(Ki):{width:0,height:0},Ji=Cn.modifiersData["arrow#persistent"]?Cn.modifiersData["arrow#persistent"].padding:getFreshSideObject(),Zi=Ji[Fi],Qo=Ji[ta],la=within(0,zn[qo],Yi[qo]),Go=Si?zn[qo]/2-aa-la-Zi-ui.mainAxis:sa-la-Zi-ui.mainAxis,ra=Si?-zn[qo]/2+aa+la+Qo+ui.mainAxis:Pi+la+Qo+ui.mainAxis,ha=Cn.elements.arrow&&getOffsetParent(Cn.elements.arrow),di=ha?ri==="y"?ha.clientTop||0:ha.clientLeft||0:0,hi=(yi=mi==null?void 0:mi[ri])!=null?yi:0,wi=Ci+Go-hi-di,Ii=Ci+ra-hi,Ni=within(ei?min(Ri,wi):Ri,Ci,ei?max(Hi,Ii):Hi);$i[ri]=Ni,_i[ri]=Ni-Ci}if(Pn){var Bi,Ui=ri==="x"?top:left,ji=ri==="x"?bottom:right,Wi=$i[Ei],Vi=Ei==="y"?"height":"width",Gi=Wi+ai[Ui],zi=Wi-ai[ji],Yo=[top,left].indexOf(si)!==-1,Li=(Bi=mi==null?void 0:mi[Ei])!=null?Bi:0,Zo=Yo?Gi:Wi-zn[Vi]-li[Vi]-Li+ui.altAxis,da=Yo?Wi+zn[Vi]+li[Vi]-Li-ui.altAxis:zi,fa=ei&&Yo?withinMaxClamp(Zo,Wi,da):within(ei?Zo:Gi,Wi,ei?da:zi);$i[Ei]=fa,_i[Ei]=fa-Wi}Cn.modifiersData[Nn]=_i}}const preventOverflow$1={name:"preventOverflow",enabled:!0,phase:"main",fn:preventOverflow,requiresIfExists:["offset"]};function getHTMLElementScroll(_n){return{scrollLeft:_n.scrollLeft,scrollTop:_n.scrollTop}}function getNodeScroll(_n){return _n===getWindow(_n)||!isHTMLElement(_n)?getWindowScroll(_n):getHTMLElementScroll(_n)}function isElementScaled(_n){var Cn=_n.getBoundingClientRect(),$n=round(Cn.width)/_n.offsetWidth||1,Nn=round(Cn.height)/_n.offsetHeight||1;return $n!==1||Nn!==1}function getCompositeRect(_n,Cn,$n){$n===void 0&&($n=!1);var Nn=isHTMLElement(Cn),Bn=isHTMLElement(Cn)&&isElementScaled(Cn),Ln=getDocumentElement(Cn),In=getBoundingClientRect(_n,Bn,$n),Pn={scrollLeft:0,scrollTop:0},Dn={x:0,y:0};return(Nn||!Nn&&!$n)&&((getNodeName(Cn)!=="body"||isScrollParent(Ln))&&(Pn=getNodeScroll(Cn)),isHTMLElement(Cn)?(Dn=getBoundingClientRect(Cn,!0),Dn.x+=Cn.clientLeft,Dn.y+=Cn.clientTop):Ln&&(Dn.x=getWindowScrollBarX(Ln))),{x:In.left+Pn.scrollLeft-Dn.x,y:In.top+Pn.scrollTop-Dn.y,width:In.width,height:In.height}}function order(_n){var Cn=new Map,$n=new Set,Nn=[];_n.forEach(function(Ln){Cn.set(Ln.name,Ln)});function Bn(Ln){$n.add(Ln.name);var In=[].concat(Ln.requires||[],Ln.requiresIfExists||[]);In.forEach(function(Pn){if(!$n.has(Pn)){var Dn=Cn.get(Pn);Dn&&Bn(Dn)}}),Nn.push(Ln)}return _n.forEach(function(Ln){$n.has(Ln.name)||Bn(Ln)}),Nn}function orderModifiers(_n){var Cn=order(_n);return modifierPhases.reduce(function($n,Nn){return $n.concat(Cn.filter(function(Bn){return Bn.phase===Nn}))},[])}function debounce$1(_n){var Cn;return function(){return Cn||(Cn=new Promise(function($n){Promise.resolve().then(function(){Cn=void 0,$n(_n())})})),Cn}}function mergeByName(_n){var Cn=_n.reduce(function($n,Nn){var Bn=$n[Nn.name];return $n[Nn.name]=Bn?Object.assign({},Bn,Nn,{options:Object.assign({},Bn.options,Nn.options),data:Object.assign({},Bn.data,Nn.data)}):Nn,$n},{});return Object.keys(Cn).map(function($n){return Cn[$n]})}var DEFAULT_OPTIONS={placement:"bottom",modifiers:[],strategy:"absolute"};function areValidElements(){for(var _n=arguments.length,Cn=new Array(_n),$n=0;$n<_n;$n++)Cn[$n]=arguments[$n];return!Cn.some(function(Nn){return!(Nn&&typeof Nn.getBoundingClientRect=="function")})}function popperGenerator(_n){_n===void 0&&(_n={});var Cn=_n,$n=Cn.defaultModifiers,Nn=$n===void 0?[]:$n,Bn=Cn.defaultOptions,Ln=Bn===void 0?DEFAULT_OPTIONS:Bn;return function(Pn,Dn,Un){Un===void 0&&(Un=Ln);var Hn={placement:"bottom",orderedModifiers:[],options:Object.assign({},DEFAULT_OPTIONS,Ln),modifiersData:{},elements:{reference:Pn,popper:Dn},attributes:{},styles:{}},Xn=[],Gn=!1,ei={state:Hn,setOptions:function(si){var gi=typeof si=="function"?si(Hn.options):si;ni(),Hn.options=Object.assign({},Ln,Hn.options,gi),Hn.scrollParents={reference:isElement$1(Pn)?listScrollParents(Pn):Pn.contextElement?listScrollParents(Pn.contextElement):[],popper:listScrollParents(Dn)};var Si=orderModifiers(mergeByName([].concat(Nn,Hn.options.modifiers)));return Hn.orderedModifiers=Si.filter(function(ri){return ri.enabled}),nr(),ei.update()},forceUpdate:function(){if(!Gn){var si=Hn.elements,gi=si.reference,Si=si.popper;if(areValidElements(gi,Si)){Hn.rects={reference:getCompositeRect(gi,getOffsetParent(Si),Hn.options.strategy==="fixed"),popper:getLayoutRect(Si)},Hn.reset=!1,Hn.placement=Hn.options.placement,Hn.orderedModifiers.forEach(function(ui){return Hn.modifiersData[ui.name]=Object.assign({},ui.data)});for(var ri=0;ri<Hn.orderedModifiers.length;ri++){if(Hn.reset===!0){Hn.reset=!1,ri=-1;continue}var Ei=Hn.orderedModifiers[ri],$i=Ei.fn,zn=Ei.options,li=zn===void 0?{}:zn,oi=Ei.name;typeof $i=="function"&&(Hn=$i({state:Hn,options:li,name:oi,instance:ei})||Hn)}}}},update:debounce$1(function(){return new Promise(function(ai){ei.forceUpdate(),ai(Hn)})}),destroy:function(){ni(),Gn=!0}};if(!areValidElements(Pn,Dn))return ei;ei.setOptions(Un).then(function(ai){!Gn&&Un.onFirstUpdate&&Un.onFirstUpdate(ai)});function nr(){Hn.orderedModifiers.forEach(function(ai){var si=ai.name,gi=ai.options,Si=gi===void 0?{}:gi,ri=ai.effect;if(typeof ri=="function"){var Ei=ri({state:Hn,name:si,instance:ei,options:Si}),$i=function(){};Xn.push(Ei||$i)}})}function ni(){Xn.forEach(function(ai){return ai()}),Xn=[]}return ei}}var defaultModifiers=[eventListeners,popperOffsets$1,computeStyles$1,applyStyles$1,offset$1,flip$1,preventOverflow$1,arrow$1,hide$1],createPopper=popperGenerator({defaultModifiers});/*!
|
||
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
||
*
|
||
* Copyright (c) 2014-2017, Jon Schlinkert.
|
||
* Released under the MIT License.
|
||
*/function isObject$3(_n){return Object.prototype.toString.call(_n)==="[object Object]"}function isPlainObject$2(_n){var Cn,$n;return isObject$3(_n)===!1?!1:(Cn=_n.constructor,Cn===void 0?!0:($n=Cn.prototype,!(isObject$3($n)===!1||$n.hasOwnProperty("isPrototypeOf")===!1)))}function t$1(){return t$1=Object.assign?Object.assign.bind():function(_n){for(var Cn=1;Cn<arguments.length;Cn++){var $n=arguments[Cn];for(var Nn in $n)Object.prototype.hasOwnProperty.call($n,Nn)&&(_n[Nn]=$n[Nn])}return _n},t$1.apply(this,arguments)}function r$1(_n,Cn){if(_n==null)return{};var $n,Nn,Bn={},Ln=Object.keys(_n);for(Nn=0;Nn<Ln.length;Nn++)Cn.indexOf($n=Ln[Nn])>=0||(Bn[$n]=_n[$n]);return Bn}const n$1={silent:!1,logLevel:"warn"},i$2=["validator"],o$1=Object.prototype,a$2=o$1.toString,s$1=o$1.hasOwnProperty,u$1=/^\s*function (\w+)/;function l$1(_n){var Cn;const $n=(Cn=_n==null?void 0:_n.type)!==null&&Cn!==void 0?Cn:_n;if($n){const Nn=$n.toString().match(u$1);return Nn?Nn[1]:""}return""}const c$1=isPlainObject$2,f$1=_n=>_n;let d$1=f$1;const p$1=(_n,Cn)=>s$1.call(_n,Cn),y$1=Number.isInteger||function(_n){return typeof _n=="number"&&isFinite(_n)&&Math.floor(_n)===_n},v$1=Array.isArray||function(_n){return a$2.call(_n)==="[object Array]"},h$1=_n=>a$2.call(_n)==="[object Function]",b$1=_n=>c$1(_n)&&p$1(_n,"_vueTypes_name"),g$1=_n=>c$1(_n)&&(p$1(_n,"type")||["_vueTypes_name","validator","default","required"].some(Cn=>p$1(_n,Cn)));function O$1(_n,Cn){return Object.defineProperty(_n.bind(Cn),"__original",{value:_n})}function m$1(_n,Cn,$n=!1){let Nn,Bn=!0,Ln="";Nn=c$1(_n)?_n:{type:_n};const In=b$1(Nn)?Nn._vueTypes_name+" - ":"";if(g$1(Nn)&&Nn.type!==null){if(Nn.type===void 0||Nn.type===!0||!Nn.required&&Cn===void 0)return Bn;v$1(Nn.type)?(Bn=Nn.type.some(Pn=>m$1(Pn,Cn,!0)===!0),Ln=Nn.type.map(Pn=>l$1(Pn)).join(" or ")):(Ln=l$1(Nn),Bn=Ln==="Array"?v$1(Cn):Ln==="Object"?c$1(Cn):Ln==="String"||Ln==="Number"||Ln==="Boolean"||Ln==="Function"?function(Pn){if(Pn==null)return"";const Dn=Pn.constructor.toString().match(u$1);return Dn?Dn[1]:""}(Cn)===Ln:Cn instanceof Nn.type)}if(!Bn){const Pn=`${In}value "${Cn}" should be of type "${Ln}"`;return $n===!1?(d$1(Pn),!1):Pn}if(p$1(Nn,"validator")&&h$1(Nn.validator)){const Pn=d$1,Dn=[];if(d$1=Un=>{Dn.push(Un)},Bn=Nn.validator(Cn),d$1=Pn,!Bn){const Un=(Dn.length>1?"* ":"")+Dn.join(`
|
||
* `);return Dn.length=0,$n===!1?(d$1(Un),Bn):Un}}return Bn}function j$1(_n,Cn){const $n=Object.defineProperties(Cn,{_vueTypes_name:{value:_n,writable:!0},isRequired:{get(){return this.required=!0,this}},def:{value(Bn){return Bn===void 0?(p$1(this,"default")&&delete this.default,this):h$1(Bn)||m$1(this,Bn,!0)===!0?(this.default=v$1(Bn)?()=>[...Bn]:c$1(Bn)?()=>Object.assign({},Bn):Bn,this):(d$1(`${this._vueTypes_name} - invalid default value: "${Bn}"`),this)}}}),{validator:Nn}=$n;return h$1(Nn)&&($n.validator=O$1(Nn,$n)),$n}function _$1(_n,Cn){const $n=j$1(_n,Cn);return Object.defineProperty($n,"validate",{value(Nn){return h$1(this.validator)&&d$1(`${this._vueTypes_name} - calling .validate() will overwrite the current custom validator function. Validator info:
|
||
${JSON.stringify(this)}`),this.validator=O$1(Nn,this),this}})}function T$1(_n,Cn,$n){const Nn=function(Dn){const Un={};return Object.getOwnPropertyNames(Dn).forEach(Hn=>{Un[Hn]=Object.getOwnPropertyDescriptor(Dn,Hn)}),Object.defineProperties({},Un)}(Cn);if(Nn._vueTypes_name=_n,!c$1($n))return Nn;const{validator:Bn}=$n,Ln=r$1($n,i$2);if(h$1(Bn)){let{validator:Dn}=Nn;Dn&&(Dn=(Pn=(In=Dn).__original)!==null&&Pn!==void 0?Pn:In),Nn.validator=O$1(Dn?function(Un){return Dn.call(this,Un)&&Bn.call(this,Un)}:Bn,Nn)}var In,Pn;return Object.assign(Nn,Ln)}function $$1(_n){return _n.replace(/^(?!\s*$)/gm," ")}const w$1=()=>_$1("any",{}),P$1=()=>_$1("function",{type:Function}),x$1=()=>_$1("boolean",{type:Boolean}),E$1=()=>_$1("string",{type:String}),N$1=()=>_$1("number",{type:Number}),q$1=()=>_$1("array",{type:Array}),A$1=()=>_$1("object",{type:Object}),V$2=()=>j$1("integer",{type:Number,validator:_n=>y$1(_n)}),S$1=()=>j$1("symbol",{validator:_n=>typeof _n=="symbol"});function D$1(_n,Cn="custom validation failed"){if(typeof _n!="function")throw new TypeError("[VueTypes error]: You must provide a function as argument");return j$1(_n.name||"<<anonymous function>>",{type:null,validator($n){const Nn=_n($n);return Nn||d$1(`${this._vueTypes_name} - ${Cn}`),Nn}})}function L$2(_n){if(!v$1(_n))throw new TypeError("[VueTypes error]: You must provide an array as argument.");const Cn=`oneOf - value should be one of "${_n.join('", "')}".`,$n=_n.reduce((Nn,Bn)=>{if(Bn!=null){const Ln=Bn.constructor;Nn.indexOf(Ln)===-1&&Nn.push(Ln)}return Nn},[]);return j$1("oneOf",{type:$n.length>0?$n:void 0,validator(Nn){const Bn=_n.indexOf(Nn)!==-1;return Bn||d$1(Cn),Bn}})}function F$1(_n){if(!v$1(_n))throw new TypeError("[VueTypes error]: You must provide an array as argument");let Cn=!1,$n=[];for(let Bn=0;Bn<_n.length;Bn+=1){const Ln=_n[Bn];if(g$1(Ln)){if(b$1(Ln)&&Ln._vueTypes_name==="oneOf"&&Ln.type){$n=$n.concat(Ln.type);continue}if(h$1(Ln.validator)&&(Cn=!0),Ln.type===!0||!Ln.type){d$1('oneOfType - invalid usage of "true" or "null" as types.');continue}$n=$n.concat(Ln.type)}else $n.push(Ln)}$n=$n.filter((Bn,Ln)=>$n.indexOf(Bn)===Ln);const Nn=$n.length>0?$n:null;return j$1("oneOfType",Cn?{type:Nn,validator(Bn){const Ln=[],In=_n.some(Pn=>{const Dn=m$1(b$1(Pn)&&Pn._vueTypes_name==="oneOf"?Pn.type||null:Pn,Bn,!0);return typeof Dn=="string"&&Ln.push(Dn),Dn===!0});return In||d$1(`oneOfType - provided value does not match any of the ${Ln.length} passed-in validators:
|
||
${$$1(Ln.join(`
|
||
`))}`),In}}:{type:Nn})}function Y$1(_n){return j$1("arrayOf",{type:Array,validator(Cn){let $n="";const Nn=Cn.every(Bn=>($n=m$1(_n,Bn,!0),$n===!0));return Nn||d$1(`arrayOf - value validation error:
|
||
${$$1($n)}`),Nn}})}function B$1(_n){return j$1("instanceOf",{type:_n})}function I$1(_n){return j$1("objectOf",{type:Object,validator(Cn){let $n="";const Nn=Object.keys(Cn).every(Bn=>($n=m$1(_n,Cn[Bn],!0),$n===!0));return Nn||d$1(`objectOf - value validation error:
|
||
${$$1($n)}`),Nn}})}function J$1(_n){const Cn=Object.keys(_n),$n=Cn.filter(Bn=>{var Ln;return!((Ln=_n[Bn])===null||Ln===void 0||!Ln.required)}),Nn=j$1("shape",{type:Object,validator(Bn){if(!c$1(Bn))return!1;const Ln=Object.keys(Bn);if($n.length>0&&$n.some(In=>Ln.indexOf(In)===-1)){const In=$n.filter(Pn=>Ln.indexOf(Pn)===-1);return d$1(In.length===1?`shape - required property "${In[0]}" is not defined.`:`shape - required properties "${In.join('", "')}" are not defined.`),!1}return Ln.every(In=>{if(Cn.indexOf(In)===-1)return this._vueTypes_isLoose===!0||(d$1(`shape - shape definition does not include a "${In}" property. Allowed keys: "${Cn.join('", "')}".`),!1);const Pn=m$1(_n[In],Bn[In],!0);return typeof Pn=="string"&&d$1(`shape - "${In}" property validation error:
|
||
${$$1(Pn)}`),Pn===!0})}});return Object.defineProperty(Nn,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(Nn,"loose",{get(){return this._vueTypes_isLoose=!0,this}}),Nn}const M$1=["name","validate","getter"],R$2=(()=>{var _n;return(_n=class{static get any(){return w$1()}static get func(){return P$1().def(this.defaults.func)}static get bool(){return x$1().def(this.defaults.bool)}static get string(){return E$1().def(this.defaults.string)}static get number(){return N$1().def(this.defaults.number)}static get array(){return q$1().def(this.defaults.array)}static get object(){return A$1().def(this.defaults.object)}static get integer(){return V$2().def(this.defaults.integer)}static get symbol(){return S$1()}static get nullable(){return{type:null}}static extend(Cn){if(v$1(Cn))return Cn.forEach(Dn=>this.extend(Dn)),this;const{name:$n,validate:Nn=!1,getter:Bn=!1}=Cn,Ln=r$1(Cn,M$1);if(p$1(this,$n))throw new TypeError(`[VueTypes error]: Type "${$n}" already defined`);const{type:In}=Ln;if(b$1(In))return delete Ln.type,Object.defineProperty(this,$n,Bn?{get:()=>T$1($n,In,Ln)}:{value(...Dn){const Un=T$1($n,In,Ln);return Un.validator&&(Un.validator=Un.validator.bind(Un,...Dn)),Un}});let Pn;return Pn=Bn?{get(){const Dn=Object.assign({},Ln);return Nn?_$1($n,Dn):j$1($n,Dn)},enumerable:!0}:{value(...Dn){const Un=Object.assign({},Ln);let Hn;return Hn=Nn?_$1($n,Un):j$1($n,Un),Un.validator&&(Hn.validator=Un.validator.bind(Hn,...Dn)),Hn},enumerable:!0},Object.defineProperty(this,$n,Pn)}}).defaults={},_n.sensibleDefaults=void 0,_n.config=n$1,_n.custom=D$1,_n.oneOf=L$2,_n.instanceOf=B$1,_n.oneOfType=F$1,_n.arrayOf=Y$1,_n.objectOf=I$1,_n.shape=J$1,_n.utils={validate:(Cn,$n)=>m$1($n,Cn,!0)===!0,toType:(Cn,$n,Nn=!1)=>Nn?_$1(Cn,$n):j$1(Cn,$n)},_n})();function z$1(_n={func:()=>{},bool:!0,string:"",number:0,array:()=>[],object:()=>({}),integer:0}){var Cn;return(Cn=class extends R$2{static get sensibleDefaults(){return t$1({},this.defaults)}static set sensibleDefaults($n){this.defaults=$n!==!1?t$1({},$n!==!0?$n:_n):{}}}).defaults=t$1({},_n),Cn}let C$1=class extends z$1(){};var t=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function e(_n){var Cn={exports:{}};return _n(Cn,Cn.exports),Cn.exports}var n=function(_n){return _n&&_n.Math==Math&&_n},r=n(typeof globalThis=="object"&&globalThis)||n(typeof window=="object"&&window)||n(typeof self=="object"&&self)||n(typeof t=="object"&&t)||function(){return this}()||Function("return this")(),o=function(_n){try{return!!_n()}catch{return!0}},i$1=!o(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),u={}.propertyIsEnumerable,a$1=Object.getOwnPropertyDescriptor,c={f:a$1&&!u.call({1:2},1)?function(_n){var Cn=a$1(this,_n);return!!Cn&&Cn.enumerable}:u},l=function(_n,Cn){return{enumerable:!(1&_n),configurable:!(2&_n),writable:!(4&_n),value:Cn}},f={}.toString,s=function(_n){return f.call(_n).slice(8,-1)},d="".split,v=o(function(){return!Object("z").propertyIsEnumerable(0)})?function(_n){return s(_n)=="String"?d.call(_n,""):Object(_n)}:Object,p=function(_n){if(_n==null)throw TypeError("Can't call method on "+_n);return _n},g=function(_n){return v(p(_n))},h=function(_n){return typeof _n=="object"?_n!==null:typeof _n=="function"},y=function(_n,Cn){if(!h(_n))return _n;var $n,Nn;if(Cn&&typeof($n=_n.toString)=="function"&&!h(Nn=$n.call(_n))||typeof($n=_n.valueOf)=="function"&&!h(Nn=$n.call(_n))||!Cn&&typeof($n=_n.toString)=="function"&&!h(Nn=$n.call(_n)))return Nn;throw TypeError("Can't convert object to primitive value")},m={}.hasOwnProperty,S=function(_n,Cn){return m.call(_n,Cn)},x=r.document,b=h(x)&&h(x.createElement),E=function(_n){return b?x.createElement(_n):{}},w=!i$1&&!o(function(){return Object.defineProperty(E("div"),"a",{get:function(){return 7}}).a!=7}),O=Object.getOwnPropertyDescriptor,T={f:i$1?O:function(_n,Cn){if(_n=g(_n),Cn=y(Cn,!0),w)try{return O(_n,Cn)}catch{}if(S(_n,Cn))return l(!c.f.call(_n,Cn),_n[Cn])}},A=function(_n){if(!h(_n))throw TypeError(String(_n)+" is not an object");return _n},k=Object.defineProperty,R$1={f:i$1?k:function(_n,Cn,$n){if(A(_n),Cn=y(Cn,!0),A($n),w)try{return k(_n,Cn,$n)}catch{}if("get"in $n||"set"in $n)throw TypeError("Accessors not supported");return"value"in $n&&(_n[Cn]=$n.value),_n}},I=i$1?function(_n,Cn,$n){return R$1.f(_n,Cn,l(1,$n))}:function(_n,Cn,$n){return _n[Cn]=$n,_n},j=function(_n,Cn){try{I(r,_n,Cn)}catch{r[_n]=Cn}return Cn},C=r["__core-js_shared__"]||j("__core-js_shared__",{}),L$1=Function.toString;typeof C.inspectSource!="function"&&(C.inspectSource=function(_n){return L$1.call(_n)});var P,M,_,D=C.inspectSource,U=r.WeakMap,N=typeof U=="function"&&/native code/.test(D(U)),F=e(function(_n){(_n.exports=function(Cn,$n){return C[Cn]||(C[Cn]=$n!==void 0?$n:{})})("versions",[]).push({version:"3.8.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),W=0,z=Math.random(),$=function(_n){return"Symbol("+String(_n===void 0?"":_n)+")_"+(++W+z).toString(36)},B=F("keys"),Y=function(_n){return B[_n]||(B[_n]=$(_n))},G={},H=r.WeakMap;if(N){var X$1=C.state||(C.state=new H),V$1=X$1.get,K=X$1.has,q=X$1.set;P=function(_n,Cn){return Cn.facade=_n,q.call(X$1,_n,Cn),Cn},M=function(_n){return V$1.call(X$1,_n)||{}},_=function(_n){return K.call(X$1,_n)}}else{var Q=Y("state");G[Q]=!0,P=function(_n,Cn){return Cn.facade=_n,I(_n,Q,Cn),Cn},M=function(_n){return S(_n,Q)?_n[Q]:{}},_=function(_n){return S(_n,Q)}}var J={set:P,get:M,has:_,enforce:function(_n){return _(_n)?M(_n):P(_n,{})},getterFor:function(_n){return function(Cn){var $n;if(!h(Cn)||($n=M(Cn)).type!==_n)throw TypeError("Incompatible receiver, "+_n+" required");return $n}}},Z=e(function(_n){var Cn=J.get,$n=J.enforce,Nn=String(String).split("String");(_n.exports=function(Bn,Ln,In,Pn){var Dn,Un=!!Pn&&!!Pn.unsafe,Hn=!!Pn&&!!Pn.enumerable,Xn=!!Pn&&!!Pn.noTargetGet;typeof In=="function"&&(typeof Ln!="string"||S(In,"name")||I(In,"name",Ln),(Dn=$n(In)).source||(Dn.source=Nn.join(typeof Ln=="string"?Ln:""))),Bn!==r?(Un?!Xn&&Bn[Ln]&&(Hn=!0):delete Bn[Ln],Hn?Bn[Ln]=In:I(Bn,Ln,In)):Hn?Bn[Ln]=In:j(Ln,In)})(Function.prototype,"toString",function(){return typeof this=="function"&&Cn(this).source||D(this)})}),tt$1=r,et=function(_n){return typeof _n=="function"?_n:void 0},nt$1=function(_n,Cn){return arguments.length<2?et(tt$1[_n])||et(r[_n]):tt$1[_n]&&tt$1[_n][Cn]||r[_n]&&r[_n][Cn]},rt$1=Math.ceil,ot$1=Math.floor,it$1=function(_n){return isNaN(_n=+_n)?0:(_n>0?ot$1:rt$1)(_n)},ut$1=Math.min,at$1=function(_n){return _n>0?ut$1(it$1(_n),9007199254740991):0},ct$1=Math.max,lt$1=Math.min,ft$1=function(_n,Cn){var $n=it$1(_n);return $n<0?ct$1($n+Cn,0):lt$1($n,Cn)},st$1=function(_n){return function(Cn,$n,Nn){var Bn,Ln=g(Cn),In=at$1(Ln.length),Pn=ft$1(Nn,In);if(_n&&$n!=$n){for(;In>Pn;)if((Bn=Ln[Pn++])!=Bn)return!0}else for(;In>Pn;Pn++)if((_n||Pn in Ln)&&Ln[Pn]===$n)return _n||Pn||0;return!_n&&-1}},dt$1={includes:st$1(!0),indexOf:st$1(!1)},vt$1=dt$1.indexOf,pt$1=function(_n,Cn){var $n,Nn=g(_n),Bn=0,Ln=[];for($n in Nn)!S(G,$n)&&S(Nn,$n)&&Ln.push($n);for(;Cn.length>Bn;)S(Nn,$n=Cn[Bn++])&&(~vt$1(Ln,$n)||Ln.push($n));return Ln},gt$1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ht$1=gt$1.concat("length","prototype"),yt$1={f:Object.getOwnPropertyNames||function(_n){return pt$1(_n,ht$1)}},mt$1={f:Object.getOwnPropertySymbols},St$1=nt$1("Reflect","ownKeys")||function(_n){var Cn=yt$1.f(A(_n)),$n=mt$1.f;return $n?Cn.concat($n(_n)):Cn},xt$1=function(_n,Cn){for(var $n=St$1(Cn),Nn=R$1.f,Bn=T.f,Ln=0;Ln<$n.length;Ln++){var In=$n[Ln];S(_n,In)||Nn(_n,In,Bn(Cn,In))}},bt$1=/#|\.prototype\./,Et$1=function(_n,Cn){var $n=Ot$1[wt$1(_n)];return $n==At$1||$n!=Tt$1&&(typeof Cn=="function"?o(Cn):!!Cn)},wt$1=Et$1.normalize=function(_n){return String(_n).replace(bt$1,".").toLowerCase()},Ot$1=Et$1.data={},Tt$1=Et$1.NATIVE="N",At$1=Et$1.POLYFILL="P",kt$1=Et$1,Rt$1=T.f,It$1=function(_n,Cn){var $n,Nn,Bn,Ln,In,Pn=_n.target,Dn=_n.global,Un=_n.stat;if($n=Dn?r:Un?r[Pn]||j(Pn,{}):(r[Pn]||{}).prototype)for(Nn in Cn){if(Ln=Cn[Nn],Bn=_n.noTargetGet?(In=Rt$1($n,Nn))&&In.value:$n[Nn],!kt$1(Dn?Nn:Pn+(Un?".":"#")+Nn,_n.forced)&&Bn!==void 0){if(typeof Ln==typeof Bn)continue;xt$1(Ln,Bn)}(_n.sham||Bn&&Bn.sham)&&I(Ln,"sham",!0),Z($n,Nn,Ln,_n)}},jt$1=function(_n,Cn){var $n=[][_n];return!!$n&&o(function(){$n.call(null,Cn||function(){throw 1},1)})},Ct$1=Object.defineProperty,Lt$1={},Pt$1=function(_n){throw _n},Mt$1=function(_n,Cn){if(S(Lt$1,_n))return Lt$1[_n];Cn||(Cn={});var $n=[][_n],Nn=!!S(Cn,"ACCESSORS")&&Cn.ACCESSORS,Bn=S(Cn,0)?Cn[0]:Pt$1,Ln=S(Cn,1)?Cn[1]:void 0;return Lt$1[_n]=!!$n&&!o(function(){if(Nn&&!i$1)return!0;var In={length:-1};Nn?Ct$1(In,1,{enumerable:!0,get:Pt$1}):In[1]=1,$n.call(In,Bn,Ln)})},_t$1=dt$1.indexOf,Dt$1=[].indexOf,Ut$1=!!Dt$1&&1/[1].indexOf(1,-0)<0,Nt$1=jt$1("indexOf"),Ft$1=Mt$1("indexOf",{ACCESSORS:!0,1:0});function Wt$1(_n,Cn){if(!(_n instanceof Cn))throw new TypeError("Cannot call a class as a function")}function zt$1(_n,Cn){for(var $n=0;$n<Cn.length;$n++){var Nn=Cn[$n];Nn.enumerable=Nn.enumerable||!1,Nn.configurable=!0,"value"in Nn&&(Nn.writable=!0),Object.defineProperty(_n,Nn.key,Nn)}}function $t$1(_n,Cn,$n){return Cn&&zt$1(_n.prototype,Cn),$n&&zt$1(_n,$n),_n}It$1({target:"Array",proto:!0,forced:Ut$1||!Nt$1||!Ft$1},{indexOf:function(_n){return Ut$1?Dt$1.apply(this,arguments)||0:_t$1(this,_n,arguments.length>1?arguments[1]:void 0)}}),function(){function _n(){Wt$1(this,_n)}return $t$1(_n,null,[{key:"isInBrowser",value:function(){return typeof window<"u"}},{key:"isServer",value:function(){return typeof window>"u"}},{key:"getUA",value:function(){return _n.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 Cn=_n.getUA();return Cn!==""&&Cn.indexOf("msie")>0}},{key:"isIE9",value:function(){var Cn=_n.getUA();return Cn!==""&&Cn.indexOf("msie 9.0")>0}},{key:"isEdge",value:function(){var Cn=_n.getUA();return Cn!==""&&Cn.indexOf("edge/")>0}},{key:"isChrome",value:function(){var Cn=_n.getUA();return Cn!==""&&/chrome\/\d+/.test(Cn)&&!_n.isEdge()}},{key:"isPhantomJS",value:function(){var Cn=_n.getUA();return Cn!==""&&/phantomjs/.test(Cn)}},{key:"isFirefox",value:function(){var Cn=_n.getUA();return Cn!==""&&/firefox/.test(Cn)}}]),_n}();var Yt$1=[].join,Gt$1=v!=Object,Ht$1=jt$1("join",",");It$1({target:"Array",proto:!0,forced:Gt$1||!Ht$1},{join:function(_n){return Yt$1.call(g(this),_n===void 0?",":_n)}});var Xt$1,Vt$1,Kt$1=function(_n){return Object(p(_n))},qt$1=Array.isArray||function(_n){return s(_n)=="Array"},Qt$1=!!Object.getOwnPropertySymbols&&!o(function(){return!String(Symbol())}),Jt$1=Qt$1&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Zt$1=F("wks"),te=r.Symbol,ee=Jt$1?te:te&&te.withoutSetter||$,ne=function(_n){return S(Zt$1,_n)||(Qt$1&&S(te,_n)?Zt$1[_n]=te[_n]:Zt$1[_n]=ee("Symbol."+_n)),Zt$1[_n]},re=ne("species"),oe=function(_n,Cn){var $n;return qt$1(_n)&&(typeof($n=_n.constructor)!="function"||$n!==Array&&!qt$1($n.prototype)?h($n)&&($n=$n[re])===null&&($n=void 0):$n=void 0),new($n===void 0?Array:$n)(Cn===0?0:Cn)},ie$1=function(_n,Cn,$n){var Nn=y(Cn);Nn in _n?R$1.f(_n,Nn,l(0,$n)):_n[Nn]=$n},ue=nt$1("navigator","userAgent")||"",ae$1=r.process,ce$1=ae$1&&ae$1.versions,le$1=ce$1&&ce$1.v8;le$1?Vt$1=(Xt$1=le$1.split("."))[0]+Xt$1[1]:ue&&(!(Xt$1=ue.match(/Edge\/(\d+)/))||Xt$1[1]>=74)&&(Xt$1=ue.match(/Chrome\/(\d+)/))&&(Vt$1=Xt$1[1]);var fe$1=Vt$1&&+Vt$1,se=ne("species"),de$1=function(_n){return fe$1>=51||!o(function(){var Cn=[];return(Cn.constructor={})[se]=function(){return{foo:1}},Cn[_n](Boolean).foo!==1})},ve$1=de$1("splice"),pe$1=Mt$1("splice",{ACCESSORS:!0,0:0,1:2}),ge$1=Math.max,he$1=Math.min;It$1({target:"Array",proto:!0,forced:!ve$1||!pe$1},{splice:function(_n,Cn){var $n,Nn,Bn,Ln,In,Pn,Dn=Kt$1(this),Un=at$1(Dn.length),Hn=ft$1(_n,Un),Xn=arguments.length;if(Xn===0?$n=Nn=0:Xn===1?($n=0,Nn=Un-Hn):($n=Xn-2,Nn=he$1(ge$1(it$1(Cn),0),Un-Hn)),Un+$n-Nn>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(Bn=oe(Dn,Nn),Ln=0;Ln<Nn;Ln++)(In=Hn+Ln)in Dn&&ie$1(Bn,Ln,Dn[In]);if(Bn.length=Nn,$n<Nn){for(Ln=Hn;Ln<Un-Nn;Ln++)Pn=Ln+$n,(In=Ln+Nn)in Dn?Dn[Pn]=Dn[In]:delete Dn[Pn];for(Ln=Un;Ln>Un-Nn+$n;Ln--)delete Dn[Ln-1]}else if($n>Nn)for(Ln=Un-Nn;Ln>Hn;Ln--)Pn=Ln+$n-1,(In=Ln+Nn-1)in Dn?Dn[Pn]=Dn[In]:delete Dn[Pn];for(Ln=0;Ln<$n;Ln++)Dn[Ln+Hn]=arguments[Ln+2];return Dn.length=Un-Nn+$n,Bn}});var ye$1={};ye$1[ne("toStringTag")]="z";var me=String(ye$1)==="[object z]",Se=ne("toStringTag"),xe=s(function(){return arguments}())=="Arguments",be$1=me?s:function(_n){var Cn,$n,Nn;return _n===void 0?"Undefined":_n===null?"Null":typeof($n=function(Bn,Ln){try{return Bn[Ln]}catch{}}(Cn=Object(_n),Se))=="string"?$n:xe?s(Cn):(Nn=s(Cn))=="Object"&&typeof Cn.callee=="function"?"Arguments":Nn},Ee=me?{}.toString:function(){return"[object "+be$1(this)+"]"};me||Z(Object.prototype,"toString",Ee,{unsafe:!0});var we$1=function(){var _n=A(this),Cn="";return _n.global&&(Cn+="g"),_n.ignoreCase&&(Cn+="i"),_n.multiline&&(Cn+="m"),_n.dotAll&&(Cn+="s"),_n.unicode&&(Cn+="u"),_n.sticky&&(Cn+="y"),Cn};function Oe(_n,Cn){return RegExp(_n,Cn)}var Te,Ae,ke={UNSUPPORTED_Y:o(function(){var _n=Oe("a","y");return _n.lastIndex=2,_n.exec("abcd")!=null}),BROKEN_CARET:o(function(){var _n=Oe("^r","gy");return _n.lastIndex=2,_n.exec("str")!=null})},Re=RegExp.prototype.exec,Ie$1=String.prototype.replace,je=Re,Ce$1=(Te=/a/,Ae=/b*/g,Re.call(Te,"a"),Re.call(Ae,"a"),Te.lastIndex!==0||Ae.lastIndex!==0),Le=ke.UNSUPPORTED_Y||ke.BROKEN_CARET,Pe=/()??/.exec("")[1]!==void 0;(Ce$1||Pe||Le)&&(je=function(_n){var Cn,$n,Nn,Bn,Ln=this,In=Le&&Ln.sticky,Pn=we$1.call(Ln),Dn=Ln.source,Un=0,Hn=_n;return In&&((Pn=Pn.replace("y","")).indexOf("g")===-1&&(Pn+="g"),Hn=String(_n).slice(Ln.lastIndex),Ln.lastIndex>0&&(!Ln.multiline||Ln.multiline&&_n[Ln.lastIndex-1]!==`
|
||
`)&&(Dn="(?: "+Dn+")",Hn=" "+Hn,Un++),$n=new RegExp("^(?:"+Dn+")",Pn)),Pe&&($n=new RegExp("^"+Dn+"$(?!\\s)",Pn)),Ce$1&&(Cn=Ln.lastIndex),Nn=Re.call(In?$n:Ln,Hn),In?Nn?(Nn.input=Nn.input.slice(Un),Nn[0]=Nn[0].slice(Un),Nn.index=Ln.lastIndex,Ln.lastIndex+=Nn[0].length):Ln.lastIndex=0:Ce$1&&Nn&&(Ln.lastIndex=Ln.global?Nn.index+Nn[0].length:Cn),Pe&&Nn&&Nn.length>1&&Ie$1.call(Nn[0],$n,function(){for(Bn=1;Bn<arguments.length-2;Bn++)arguments[Bn]===void 0&&(Nn[Bn]=void 0)}),Nn});var Me$1=je;It$1({target:"RegExp",proto:!0,forced:/./.exec!==Me$1},{exec:Me$1});var _e=RegExp.prototype,De=_e.toString,Ue=o(function(){return De.call({source:"a",flags:"b"})!="/a/b"}),Ne=De.name!="toString";(Ue||Ne)&&Z(RegExp.prototype,"toString",function(){var _n=A(this),Cn=String(_n.source),$n=_n.flags;return"/"+Cn+"/"+String($n===void 0&&_n instanceof RegExp&&!("flags"in _e)?we$1.call(_n):$n)},{unsafe:!0});var Fe=ne("species"),We=!o(function(){var _n=/./;return _n.exec=function(){var Cn=[];return Cn.groups={a:"7"},Cn},"".replace(_n,"$<a>")!=="7"}),ze$1="a".replace(/./,"$0")==="$0",$e$1=ne("replace"),Be$1=!!/./[$e$1]&&/./[$e$1]("a","$0")==="",Ye=!o(function(){var _n=/(?:)/,Cn=_n.exec;_n.exec=function(){return Cn.apply(this,arguments)};var $n="ab".split(_n);return $n.length!==2||$n[0]!=="a"||$n[1]!=="b"}),Ge$1=function(_n,Cn,$n,Nn){var Bn=ne(_n),Ln=!o(function(){var Xn={};return Xn[Bn]=function(){return 7},""[_n](Xn)!=7}),In=Ln&&!o(function(){var Xn=!1,Gn=/a/;return _n==="split"&&((Gn={}).constructor={},Gn.constructor[Fe]=function(){return Gn},Gn.flags="",Gn[Bn]=/./[Bn]),Gn.exec=function(){return Xn=!0,null},Gn[Bn](""),!Xn});if(!Ln||!In||_n==="replace"&&(!We||!ze$1||Be$1)||_n==="split"&&!Ye){var Pn=/./[Bn],Dn=$n(Bn,""[_n],function(Xn,Gn,ei,nr,ni){return Gn.exec===Me$1?Ln&&!ni?{done:!0,value:Pn.call(Gn,ei,nr)}:{done:!0,value:Xn.call(ei,Gn,nr)}:{done:!1}},{REPLACE_KEEPS_$0:ze$1,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:Be$1}),Un=Dn[0],Hn=Dn[1];Z(String.prototype,_n,Un),Z(RegExp.prototype,Bn,Cn==2?function(Xn,Gn){return Hn.call(Xn,this,Gn)}:function(Xn){return Hn.call(Xn,this)})}Nn&&I(RegExp.prototype[Bn],"sham",!0)},He$1=ne("match"),Xe=function(_n){var Cn;return h(_n)&&((Cn=_n[He$1])!==void 0?!!Cn:s(_n)=="RegExp")},Ve$1=function(_n){if(typeof _n!="function")throw TypeError(String(_n)+" is not a function");return _n},Ke=ne("species"),qe=function(_n){return function(Cn,$n){var Nn,Bn,Ln=String(p(Cn)),In=it$1($n),Pn=Ln.length;return In<0||In>=Pn?_n?"":void 0:(Nn=Ln.charCodeAt(In))<55296||Nn>56319||In+1===Pn||(Bn=Ln.charCodeAt(In+1))<56320||Bn>57343?_n?Ln.charAt(In):Nn:_n?Ln.slice(In,In+2):Bn-56320+(Nn-55296<<10)+65536}},Qe={codeAt:qe(!1),charAt:qe(!0)},Je=Qe.charAt,Ze=function(_n,Cn,$n){return Cn+($n?Je(_n,Cn).length:1)},tn=function(_n,Cn){var $n=_n.exec;if(typeof $n=="function"){var Nn=$n.call(_n,Cn);if(typeof Nn!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return Nn}if(s(_n)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return Me$1.call(_n,Cn)},en=[].push,nn=Math.min,rn=!o(function(){return!RegExp(4294967295,"y")});Ge$1("split",2,function(_n,Cn,$n){var Nn;return Nn="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(Bn,Ln){var In=String(p(this)),Pn=Ln===void 0?4294967295:Ln>>>0;if(Pn===0)return[];if(Bn===void 0)return[In];if(!Xe(Bn))return Cn.call(In,Bn,Pn);for(var Dn,Un,Hn,Xn=[],Gn=(Bn.ignoreCase?"i":"")+(Bn.multiline?"m":"")+(Bn.unicode?"u":"")+(Bn.sticky?"y":""),ei=0,nr=new RegExp(Bn.source,Gn+"g");(Dn=Me$1.call(nr,In))&&!((Un=nr.lastIndex)>ei&&(Xn.push(In.slice(ei,Dn.index)),Dn.length>1&&Dn.index<In.length&&en.apply(Xn,Dn.slice(1)),Hn=Dn[0].length,ei=Un,Xn.length>=Pn));)nr.lastIndex===Dn.index&&nr.lastIndex++;return ei===In.length?!Hn&&nr.test("")||Xn.push(""):Xn.push(In.slice(ei)),Xn.length>Pn?Xn.slice(0,Pn):Xn}:"0".split(void 0,0).length?function(Bn,Ln){return Bn===void 0&&Ln===0?[]:Cn.call(this,Bn,Ln)}:Cn,[function(Bn,Ln){var In=p(this),Pn=Bn==null?void 0:Bn[_n];return Pn!==void 0?Pn.call(Bn,In,Ln):Nn.call(String(In),Bn,Ln)},function(Bn,Ln){var In=$n(Nn,Bn,this,Ln,Nn!==Cn);if(In.done)return In.value;var Pn=A(Bn),Dn=String(this),Un=function(ri,Ei){var $i,zn=A(ri).constructor;return zn===void 0||($i=A(zn)[Ke])==null?Ei:Ve$1($i)}(Pn,RegExp),Hn=Pn.unicode,Xn=(Pn.ignoreCase?"i":"")+(Pn.multiline?"m":"")+(Pn.unicode?"u":"")+(rn?"y":"g"),Gn=new Un(rn?Pn:"^(?:"+Pn.source+")",Xn),ei=Ln===void 0?4294967295:Ln>>>0;if(ei===0)return[];if(Dn.length===0)return tn(Gn,Dn)===null?[Dn]:[];for(var nr=0,ni=0,ai=[];ni<Dn.length;){Gn.lastIndex=rn?ni:0;var si,gi=tn(Gn,rn?Dn:Dn.slice(ni));if(gi===null||(si=nn(at$1(Gn.lastIndex+(rn?0:ni)),Dn.length))===nr)ni=Ze(Dn,ni,Hn);else{if(ai.push(Dn.slice(nr,ni)),ai.length===ei)return ai;for(var Si=1;Si<=gi.length-1;Si++)if(ai.push(gi[Si]),ai.length===ei)return ai;ni=nr=si}}return ai.push(Dn.slice(nr)),ai}]},!rn);var on=`
|
||
\v\f\r \u2028\u2029\uFEFF`,un="["+on+"]",an=RegExp("^"+un+un+"*"),cn=RegExp(un+un+"*$"),ln=function(_n){return function(Cn){var $n=String(p(Cn));return 1&_n&&($n=$n.replace(an,"")),2&_n&&($n=$n.replace(cn,"")),$n}},fn={start:ln(1),end:ln(2),trim:ln(3)},sn=fn.trim;It$1({target:"String",proto:!0,forced:function(_n){return o(function(){return!!on[_n]()||"
"[_n]()!="
"||on[_n].name!==_n})}("trim")},{trim:function(){return sn(this)}});var dn=de$1("slice"),vn=Mt$1("slice",{ACCESSORS:!0,0:0,1:2}),pn=ne("species"),gn=[].slice,hn=Math.max;It$1({target:"Array",proto:!0,forced:!dn||!vn},{slice:function(_n,Cn){var $n,Nn,Bn,Ln=g(this),In=at$1(Ln.length),Pn=ft$1(_n,In),Dn=ft$1(Cn===void 0?In:Cn,In);if(qt$1(Ln)&&(typeof($n=Ln.constructor)!="function"||$n!==Array&&!qt$1($n.prototype)?h($n)&&($n=$n[pn])===null&&($n=void 0):$n=void 0,$n===Array||$n===void 0))return gn.call(Ln,Pn,Dn);for(Nn=new($n===void 0?Array:$n)(hn(Dn-Pn,0)),Bn=0;Pn<Dn;Pn++,Bn++)Pn in Ln&&ie$1(Nn,Bn,Ln[Pn]);return Nn.length=Bn,Nn}});var yn=Object.keys||function(_n){return pt$1(_n,gt$1)},mn=o(function(){yn(1)});It$1({target:"Object",stat:!0,forced:mn},{keys:function(_n){return yn(Kt$1(_n))}});var Sn,xn=function(_n){if(Xe(_n))throw TypeError("The method doesn't accept regular expressions");return _n},bn=ne("match"),En=T.f,wn="".startsWith,On=Math.min,Tn=function(_n){var Cn=/./;try{"/./"[_n](Cn)}catch{try{return Cn[bn]=!1,"/./"[_n](Cn)}catch{}}return!1}("startsWith"),An=!(Tn||(Sn=En(String.prototype,"startsWith"),!Sn||Sn.writable));function kn(_n){return(kn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Cn){return typeof Cn}:function(Cn){return Cn&&typeof Symbol=="function"&&Cn.constructor===Symbol&&Cn!==Symbol.prototype?"symbol":typeof Cn})(_n)}It$1({target:"String",proto:!0,forced:!An&&!Tn},{startsWith:function(_n){var Cn=String(p(this));xn(_n);var $n=at$1(On(arguments.length>1?arguments[1]:void 0,Cn.length)),Nn=String(_n);return wn?wn.call(Cn,Nn,$n):Cn.slice($n,$n+Nn.length)===Nn}});var jn=function(_n){return typeof _n=="string"},Mn=function(_n){return _n!==null&&kn(_n)==="object"},Vn=function(){function _n(){Wt$1(this,_n)}return $t$1(_n,null,[{key:"isWindow",value:function(Cn){return Cn===window}},{key:"addEventListener",value:function(Cn,$n,Nn){var Bn=arguments.length>3&&arguments[3]!==void 0&&arguments[3];Cn&&$n&&Nn&&Cn.addEventListener($n,Nn,Bn)}},{key:"removeEventListener",value:function(Cn,$n,Nn){var Bn=arguments.length>3&&arguments[3]!==void 0&&arguments[3];Cn&&$n&&Nn&&Cn.removeEventListener($n,Nn,Bn)}},{key:"triggerDragEvent",value:function(Cn,$n){var Nn=!1,Bn=function(In){var Pn;(Pn=$n.drag)===null||Pn===void 0||Pn.call($n,In)},Ln=function In(Pn){var Dn;_n.removeEventListener(document,"mousemove",Bn),_n.removeEventListener(document,"mouseup",In),document.onselectstart=null,document.ondragstart=null,Nn=!1,(Dn=$n.end)===null||Dn===void 0||Dn.call($n,Pn)};_n.addEventListener(Cn,"mousedown",function(In){var Pn;Nn||(document.onselectstart=function(){return!1},document.ondragstart=function(){return!1},_n.addEventListener(document,"mousemove",Bn),_n.addEventListener(document,"mouseup",Ln),Nn=!0,(Pn=$n.start)===null||Pn===void 0||Pn.call($n,In))})}},{key:"getBoundingClientRect",value:function(Cn){return Cn&&Mn(Cn)&&Cn.nodeType===1?Cn.getBoundingClientRect():null}},{key:"hasClass",value:function(Cn,$n){return!!(Cn&&Mn(Cn)&&jn($n)&&Cn.nodeType===1)&&Cn.classList.contains($n.trim())}},{key:"addClass",value:function(Cn,$n){if(Cn&&Mn(Cn)&&jn($n)&&Cn.nodeType===1&&($n=$n.trim(),!_n.hasClass(Cn,$n))){var Nn=Cn.className;Cn.className=Nn?Nn+" "+$n:$n}}},{key:"removeClass",value:function(Cn,$n){if(Cn&&Mn(Cn)&&jn($n)&&Cn.nodeType===1&&typeof Cn.className=="string"){$n=$n.trim();for(var Nn=Cn.className.trim().split(" "),Bn=Nn.length-1;Bn>=0;Bn--)Nn[Bn]=Nn[Bn].trim(),Nn[Bn]&&Nn[Bn]!==$n||Nn.splice(Bn,1);Cn.className=Nn.join(" ")}}},{key:"toggleClass",value:function(Cn,$n,Nn){Cn&&Mn(Cn)&&jn($n)&&Cn.nodeType===1&&Cn.classList.toggle($n,Nn)}},{key:"replaceClass",value:function(Cn,$n,Nn){Cn&&Mn(Cn)&&jn($n)&&jn(Nn)&&Cn.nodeType===1&&($n=$n.trim(),Nn=Nn.trim(),_n.removeClass(Cn,$n),_n.addClass(Cn,Nn))}},{key:"getScrollTop",value:function(Cn){var $n="scrollTop"in Cn?Cn.scrollTop:Cn.pageYOffset;return Math.max($n,0)}},{key:"setScrollTop",value:function(Cn,$n){"scrollTop"in Cn?Cn.scrollTop=$n:Cn.scrollTo(Cn.scrollX,$n)}},{key:"getRootScrollTop",value:function(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}},{key:"setRootScrollTop",value:function(Cn){_n.setScrollTop(window,Cn),_n.setScrollTop(document.body,Cn)}},{key:"getElementTop",value:function(Cn,$n){if(_n.isWindow(Cn))return 0;var Nn=$n?_n.getScrollTop($n):_n.getRootScrollTop();return Cn.getBoundingClientRect().top+Nn}},{key:"getVisibleHeight",value:function(Cn){return _n.isWindow(Cn)?Cn.innerHeight:Cn.getBoundingClientRect().height}},{key:"isHidden",value:function(Cn){if(!Cn)return!1;var $n=window.getComputedStyle(Cn),Nn=$n.display==="none",Bn=Cn.offsetParent===null&&$n.position!=="fixed";return Nn||Bn}},{key:"triggerEvent",value:function(Cn,$n){if("createEvent"in document){var Nn=document.createEvent("HTMLEvents");Nn.initEvent($n,!1,!0),Cn.dispatchEvent(Nn)}}},{key:"calcAngle",value:function(Cn,$n){var Nn=Cn.getBoundingClientRect(),Bn=Nn.left+Nn.width/2,Ln=Nn.top+Nn.height/2,In=Math.abs(Bn-$n.clientX),Pn=Math.abs(Ln-$n.clientY),Dn=Pn/Math.sqrt(Math.pow(In,2)+Math.pow(Pn,2)),Un=Math.acos(Dn),Hn=Math.floor(180/(Math.PI/Un));return $n.clientX>Bn&&$n.clientY>Ln&&(Hn=180-Hn),$n.clientX==Bn&&$n.clientY>Ln&&(Hn=180),$n.clientX>Bn&&$n.clientY==Ln&&(Hn=90),$n.clientX<Bn&&$n.clientY>Ln&&(Hn=180+Hn),$n.clientX<Bn&&$n.clientY==Ln&&(Hn=270),$n.clientX<Bn&&$n.clientY<Ln&&(Hn=360-Hn),Hn}},{key:"querySelector",value:function(Cn,$n){return $n?$n.querySelector(Cn):document.querySelector(Cn)}},{key:"createElement",value:function(Cn){for(var $n=document.createElement(Cn),Nn=arguments.length,Bn=new Array(Nn>1?Nn-1:0),Ln=1;Ln<Nn;Ln++)Bn[Ln-1]=arguments[Ln];for(var In=0;In<Bn.length;In++)Bn[In]&&$n.classList.add(Bn[In]);return $n}},{key:"appendChild",value:function(Cn){for(var $n=0;$n<(arguments.length<=1?0:arguments.length-1);$n++)Cn.appendChild($n+1<1||arguments.length<=$n+1?void 0:arguments[$n+1])}},{key:"getWindow",value:function(Cn){if(Cn.toString()!=="[object Window]"){var $n=Cn.ownerDocument;return $n&&$n.defaultView||window}return Cn}},{key:"isElement",value:function(Cn){return Cn instanceof this.getWindow(Cn).Element||Cn instanceof Element}},{key:"isHTMLElement",value:function(Cn){return Cn instanceof this.getWindow(Cn).HTMLElement||Cn instanceof HTMLElement}},{key:"isShadowRoot",value:function(Cn){return typeof ShadowRoot<"u"&&(Cn instanceof this.getWindow(Cn).ShadowRoot||Cn instanceof ShadowRoot)}},{key:"getWindowScroll",value:function(Cn){var $n=this.getWindow(Cn);return{scrollLeft:$n.pageXOffset||0,scrollTop:$n.pageYOffset||0}}}]),_n}(),Kn=Math.floor,qn="".replace,Qn=/\$([$&'`]|\d\d?|<[^>]*>)/g,Jn=/\$([$&'`]|\d\d?)/g,Zn=function(_n,Cn,$n,Nn,Bn,Ln){var In=$n+_n.length,Pn=Nn.length,Dn=Jn;return Bn!==void 0&&(Bn=Kt$1(Bn),Dn=Qn),qn.call(Ln,Dn,function(Un,Hn){var Xn;switch(Hn.charAt(0)){case"$":return"$";case"&":return _n;case"`":return Cn.slice(0,$n);case"'":return Cn.slice(In);case"<":Xn=Bn[Hn.slice(1,-1)];break;default:var Gn=+Hn;if(Gn===0)return Un;if(Gn>Pn){var ei=Kn(Gn/10);return ei===0?Un:ei<=Pn?Nn[ei-1]===void 0?Hn.charAt(1):Nn[ei-1]+Hn.charAt(1):Un}Xn=Nn[Gn-1]}return Xn===void 0?"":Xn})},tr=Math.max,er=Math.min;Ge$1("replace",2,function(_n,Cn,$n,Nn){var Bn=Nn.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,Ln=Nn.REPLACE_KEEPS_$0,In=Bn?"$":"$0";return[function(Pn,Dn){var Un=p(this),Hn=Pn==null?void 0:Pn[_n];return Hn!==void 0?Hn.call(Pn,Un,Dn):Cn.call(String(Un),Pn,Dn)},function(Pn,Dn){if(!Bn&&Ln||typeof Dn=="string"&&Dn.indexOf(In)===-1){var Un=$n(Cn,Pn,this,Dn);if(Un.done)return Un.value}var Hn=A(Pn),Xn=String(this),Gn=typeof Dn=="function";Gn||(Dn=String(Dn));var ei=Hn.global;if(ei){var nr=Hn.unicode;Hn.lastIndex=0}for(var ni=[];;){var ai=tn(Hn,Xn);if(ai===null||(ni.push(ai),!ei))break;String(ai[0])===""&&(Hn.lastIndex=Ze(Xn,at$1(Hn.lastIndex),nr))}for(var si,gi="",Si=0,ri=0;ri<ni.length;ri++){ai=ni[ri];for(var Ei=String(ai[0]),$i=tr(er(it$1(ai.index),Xn.length),0),zn=[],li=1;li<ai.length;li++)zn.push((si=ai[li])===void 0?si:String(si));var oi=ai.groups;if(Gn){var ui=[Ei].concat(zn,$i,Xn);oi!==void 0&&ui.push(oi);var mi=String(Dn.apply(void 0,ui))}else mi=Zn(Ei,Xn,$i,zn,oi,Dn);$i>=Si&&(gi+=Xn.slice(Si,$i)+mi,Si=$i+Ei.length)}return gi+Xn.slice(Si)}]}),function(){function _n(){Wt$1(this,_n)}return $t$1(_n,null,[{key:"camelize",value:function(Cn){return Cn.replace(/-(\w)/g,function($n,Nn){return Nn?Nn.toUpperCase():""})}},{key:"capitalize",value:function(Cn){return Cn.charAt(0).toUpperCase()+Cn.slice(1)}}]),_n}(),function(){function _n(){Wt$1(this,_n)}return $t$1(_n,null,[{key:"_clone",value:function(){}}]),_n}();var or=ne("isConcatSpreadable"),ir=fe$1>=51||!o(function(){var _n=[];return _n[or]=!1,_n.concat()[0]!==_n}),ur=de$1("concat"),ar=function(_n){if(!h(_n))return!1;var Cn=_n[or];return Cn!==void 0?!!Cn:qt$1(_n)};It$1({target:"Array",proto:!0,forced:!ir||!ur},{concat:function(_n){var Cn,$n,Nn,Bn,Ln,In=Kt$1(this),Pn=oe(In,0),Dn=0;for(Cn=-1,Nn=arguments.length;Cn<Nn;Cn++)if(ar(Ln=Cn===-1?In:arguments[Cn])){if(Dn+(Bn=at$1(Ln.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for($n=0;$n<Bn;$n++,Dn++)$n in Ln&&ie$1(Pn,Dn,Ln[$n])}else{if(Dn>=9007199254740991)throw TypeError("Maximum allowed index exceeded");ie$1(Pn,Dn++,Ln)}return Pn.length=Dn,Pn}});var cr,lr=function(_n,Cn,$n){if(Ve$1(_n),Cn===void 0)return _n;switch($n){case 0:return function(){return _n.call(Cn)};case 1:return function(Nn){return _n.call(Cn,Nn)};case 2:return function(Nn,Bn){return _n.call(Cn,Nn,Bn)};case 3:return function(Nn,Bn,Ln){return _n.call(Cn,Nn,Bn,Ln)}}return function(){return _n.apply(Cn,arguments)}},fr=[].push,sr=function(_n){var Cn=_n==1,$n=_n==2,Nn=_n==3,Bn=_n==4,Ln=_n==6,In=_n==7,Pn=_n==5||Ln;return function(Dn,Un,Hn,Xn){for(var Gn,ei,nr=Kt$1(Dn),ni=v(nr),ai=lr(Un,Hn,3),si=at$1(ni.length),gi=0,Si=Xn||oe,ri=Cn?Si(Dn,si):$n||In?Si(Dn,0):void 0;si>gi;gi++)if((Pn||gi in ni)&&(ei=ai(Gn=ni[gi],gi,nr),_n))if(Cn)ri[gi]=ei;else if(ei)switch(_n){case 3:return!0;case 5:return Gn;case 6:return gi;case 2:fr.call(ri,Gn)}else switch(_n){case 4:return!1;case 7:fr.call(ri,Gn)}return Ln?-1:Nn||Bn?Bn:ri}},dr={forEach:sr(0),map:sr(1),filter:sr(2),some:sr(3),every:sr(4),find:sr(5),findIndex:sr(6),filterOut:sr(7)},vr=i$1?Object.defineProperties:function(_n,Cn){A(_n);for(var $n,Nn=yn(Cn),Bn=Nn.length,Ln=0;Bn>Ln;)R$1.f(_n,$n=Nn[Ln++],Cn[$n]);return _n},pr=nt$1("document","documentElement"),gr=Y("IE_PROTO"),hr=function(){},yr=function(_n){return"<script>"+_n+"<\/script>"},mr=function(){try{cr=document.domain&&new ActiveXObject("htmlfile")}catch{}var _n,Cn;mr=cr?function(Nn){Nn.write(yr("")),Nn.close();var Bn=Nn.parentWindow.Object;return Nn=null,Bn}(cr):((Cn=E("iframe")).style.display="none",pr.appendChild(Cn),Cn.src="javascript:",(_n=Cn.contentWindow.document).open(),_n.write(yr("document.F=Object")),_n.close(),_n.F);for(var $n=gt$1.length;$n--;)delete mr.prototype[gt$1[$n]];return mr()};G[gr]=!0;var Sr=Object.create||function(_n,Cn){var $n;return _n!==null?(hr.prototype=A(_n),$n=new hr,hr.prototype=null,$n[gr]=_n):$n=mr(),Cn===void 0?$n:vr($n,Cn)},xr=ne("unscopables"),br=Array.prototype;br[xr]==null&&R$1.f(br,xr,{configurable:!0,value:Sr(null)});var Er=function(_n){br[xr][_n]=!0},wr=dr.find,Or=!0,Tr=Mt$1("find");"find"in[]&&Array(1).find(function(){Or=!1}),It$1({target:"Array",proto:!0,forced:Or||!Tr},{find:function(_n){return wr(this,_n,arguments.length>1?arguments[1]:void 0)}}),Er("find");var Ar=dr.findIndex,kr=!0,Rr=Mt$1("findIndex");"findIndex"in[]&&Array(1).findIndex(function(){kr=!1}),It$1({target:"Array",proto:!0,forced:kr||!Rr},{findIndex:function(_n){return Ar(this,_n,arguments.length>1?arguments[1]:void 0)}}),Er("findIndex");var Ir=function(_n,Cn,$n,Nn,Bn,Ln,In,Pn){for(var Dn,Un=Bn,Hn=0,Xn=!!In&&lr(In,Pn,3);Hn<Nn;){if(Hn in $n){if(Dn=Xn?Xn($n[Hn],Hn,Cn):$n[Hn],Ln>0&&qt$1(Dn))Un=Ir(_n,Cn,Dn,at$1(Dn.length),Un,Ln-1)-1;else{if(Un>=9007199254740991)throw TypeError("Exceed the acceptable array length");_n[Un]=Dn}Un++}Hn++}return Un},jr=Ir;It$1({target:"Array",proto:!0},{flat:function(){var _n=arguments.length?arguments[0]:void 0,Cn=Kt$1(this),$n=at$1(Cn.length),Nn=oe(Cn,0);return Nn.length=jr(Nn,Cn,Cn,$n,0,_n===void 0?1:it$1(_n)),Nn}});var Cr=function(_n){var Cn=_n.return;if(Cn!==void 0)return A(Cn.call(_n)).value},Lr=function(_n,Cn,$n,Nn){try{return Nn?Cn(A($n)[0],$n[1]):Cn($n)}catch(Bn){throw Cr(_n),Bn}},Pr={},Mr=ne("iterator"),_r=Array.prototype,Dr=function(_n){return _n!==void 0&&(Pr.Array===_n||_r[Mr]===_n)},Ur=ne("iterator"),Nr=function(_n){if(_n!=null)return _n[Ur]||_n["@@iterator"]||Pr[be$1(_n)]},Fr=ne("iterator"),Wr=!1;try{var zr=0,$r={next:function(){return{done:!!zr++}},return:function(){Wr=!0}};$r[Fr]=function(){return this},Array.from($r,function(){throw 2})}catch(_n){}var Br=function(_n,Cn){if(!Cn&&!Wr)return!1;var $n=!1;try{var Nn={};Nn[Fr]=function(){return{next:function(){return{done:$n=!0}}}},_n(Nn)}catch{}return $n},Yr=!Br(function(_n){Array.from(_n)});It$1({target:"Array",stat:!0,forced:Yr},{from:function(_n){var Cn,$n,Nn,Bn,Ln,In,Pn=Kt$1(_n),Dn=typeof this=="function"?this:Array,Un=arguments.length,Hn=Un>1?arguments[1]:void 0,Xn=Hn!==void 0,Gn=Nr(Pn),ei=0;if(Xn&&(Hn=lr(Hn,Un>2?arguments[2]:void 0,2)),Gn==null||Dn==Array&&Dr(Gn))for($n=new Dn(Cn=at$1(Pn.length));Cn>ei;ei++)In=Xn?Hn(Pn[ei],ei):Pn[ei],ie$1($n,ei,In);else for(Ln=(Bn=Gn.call(Pn)).next,$n=new Dn;!(Nn=Ln.call(Bn)).done;ei++)In=Xn?Lr(Bn,Hn,[Nn.value,ei],!0):Nn.value,ie$1($n,ei,In);return $n.length=ei,$n}});var Gr=function(_n){return function(Cn,$n,Nn,Bn){Ve$1($n);var Ln=Kt$1(Cn),In=v(Ln),Pn=at$1(Ln.length),Dn=_n?Pn-1:0,Un=_n?-1:1;if(Nn<2)for(;;){if(Dn in In){Bn=In[Dn],Dn+=Un;break}if(Dn+=Un,_n?Dn<0:Pn<=Dn)throw TypeError("Reduce of empty array with no initial value")}for(;_n?Dn>=0:Pn>Dn;Dn+=Un)Dn in In&&(Bn=$n(Bn,In[Dn],Dn,Ln));return Bn}},Hr={left:Gr(!1),right:Gr(!0)},Xr=s(r.process)=="process",Vr=Hr.left,Kr=jt$1("reduce"),qr=Mt$1("reduce",{1:0});It$1({target:"Array",proto:!0,forced:!Kr||!qr||!Xr&&fe$1>79&&fe$1<83},{reduce:function(_n){return Vr(this,_n,arguments.length,arguments.length>1?arguments[1]:void 0)}}),Er("flat");var Qr,Jr,Zr,to$1=!o(function(){return Object.isExtensible(Object.preventExtensions({}))}),eo$1=e(function(_n){var Cn=R$1.f,$n=$("meta"),Nn=0,Bn=Object.isExtensible||function(){return!0},Ln=function(Pn){Cn(Pn,$n,{value:{objectID:"O"+ ++Nn,weakData:{}}})},In=_n.exports={REQUIRED:!1,fastKey:function(Pn,Dn){if(!h(Pn))return typeof Pn=="symbol"?Pn:(typeof Pn=="string"?"S":"P")+Pn;if(!S(Pn,$n)){if(!Bn(Pn))return"F";if(!Dn)return"E";Ln(Pn)}return Pn[$n].objectID},getWeakData:function(Pn,Dn){if(!S(Pn,$n)){if(!Bn(Pn))return!0;if(!Dn)return!1;Ln(Pn)}return Pn[$n].weakData},onFreeze:function(Pn){return to$1&&In.REQUIRED&&Bn(Pn)&&!S(Pn,$n)&&Ln(Pn),Pn}};G[$n]=!0}),no$1=function(_n,Cn){this.stopped=_n,this.result=Cn},ro$1=function(_n,Cn,$n){var Nn,Bn,Ln,In,Pn,Dn,Un,Hn=$n&&$n.that,Xn=!(!$n||!$n.AS_ENTRIES),Gn=!(!$n||!$n.IS_ITERATOR),ei=!(!$n||!$n.INTERRUPTED),nr=lr(Cn,Hn,1+Xn+ei),ni=function(si){return Nn&&Cr(Nn),new no$1(!0,si)},ai=function(si){return Xn?(A(si),ei?nr(si[0],si[1],ni):nr(si[0],si[1])):ei?nr(si,ni):nr(si)};if(Gn)Nn=_n;else{if(typeof(Bn=Nr(_n))!="function")throw TypeError("Target is not iterable");if(Dr(Bn)){for(Ln=0,In=at$1(_n.length);In>Ln;Ln++)if((Pn=ai(_n[Ln]))&&Pn instanceof no$1)return Pn;return new no$1(!1)}Nn=Bn.call(_n)}for(Dn=Nn.next;!(Un=Dn.call(Nn)).done;){try{Pn=ai(Un.value)}catch(si){throw Cr(Nn),si}if(typeof Pn=="object"&&Pn&&Pn instanceof no$1)return Pn}return new no$1(!1)},oo$1=function(_n,Cn,$n){if(!(_n instanceof Cn))throw TypeError("Incorrect "+($n?$n+" ":"")+"invocation");return _n},io$1=R$1.f,uo$1=ne("toStringTag"),ao$1=function(_n,Cn,$n){_n&&!S(_n=$n?_n:_n.prototype,uo$1)&&io$1(_n,uo$1,{configurable:!0,value:Cn})},co$1=Object.setPrototypeOf||("__proto__"in{}?function(){var _n,Cn=!1,$n={};try{(_n=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call($n,[]),Cn=$n instanceof Array}catch{}return function(Nn,Bn){return A(Nn),function(Ln){if(!h(Ln)&&Ln!==null)throw TypeError("Can't set "+String(Ln)+" as a prototype")}(Bn),Cn?_n.call(Nn,Bn):Nn.__proto__=Bn,Nn}}():void 0),lo$1=function(_n,Cn,$n){for(var Nn in Cn)Z(_n,Nn,Cn[Nn],$n);return _n},fo$1=!o(function(){function _n(){}return _n.prototype.constructor=null,Object.getPrototypeOf(new _n)!==_n.prototype}),so$1=Y("IE_PROTO"),vo$1=Object.prototype,po$1=fo$1?Object.getPrototypeOf:function(_n){return _n=Kt$1(_n),S(_n,so$1)?_n[so$1]:typeof _n.constructor=="function"&&_n instanceof _n.constructor?_n.constructor.prototype:_n instanceof Object?vo$1:null},go$1=ne("iterator"),ho$1=!1;[].keys&&("next"in(Zr=[].keys())?(Jr=po$1(po$1(Zr)))!==Object.prototype&&(Qr=Jr):ho$1=!0),(Qr==null||o(function(){var _n={};return Qr[go$1].call(_n)!==_n}))&&(Qr={}),S(Qr,go$1)||I(Qr,go$1,function(){return this});var yo$1={IteratorPrototype:Qr,BUGGY_SAFARI_ITERATORS:ho$1},mo$1=yo$1.IteratorPrototype,So$1=function(){return this},xo=yo$1.IteratorPrototype,bo$1=yo$1.BUGGY_SAFARI_ITERATORS,Eo$1=ne("iterator"),wo$1=function(){return this},Oo$1=function(_n,Cn,$n,Nn,Bn,Ln,In){(function(si,gi,Si){var ri=gi+" Iterator";si.prototype=Sr(mo$1,{next:l(1,Si)}),ao$1(si,ri,!1),Pr[ri]=So$1})($n,Cn,Nn);var Pn,Dn,Un,Hn=function(si){if(si===Bn&&ni)return ni;if(!bo$1&&si in ei)return ei[si];switch(si){case"keys":case"values":case"entries":return function(){return new $n(this,si)}}return function(){return new $n(this)}},Xn=Cn+" Iterator",Gn=!1,ei=_n.prototype,nr=ei[Eo$1]||ei["@@iterator"]||Bn&&ei[Bn],ni=!bo$1&&nr||Hn(Bn),ai=Cn=="Array"&&ei.entries||nr;if(ai&&(Pn=po$1(ai.call(new _n)),xo!==Object.prototype&&Pn.next&&(po$1(Pn)!==xo&&(co$1?co$1(Pn,xo):typeof Pn[Eo$1]!="function"&&I(Pn,Eo$1,wo$1)),ao$1(Pn,Xn,!0))),Bn=="values"&&nr&&nr.name!=="values"&&(Gn=!0,ni=function(){return nr.call(this)}),ei[Eo$1]!==ni&&I(ei,Eo$1,ni),Pr[Cn]=ni,Bn)if(Dn={values:Hn("values"),keys:Ln?ni:Hn("keys"),entries:Hn("entries")},In)for(Un in Dn)(bo$1||Gn||!(Un in ei))&&Z(ei,Un,Dn[Un]);else It$1({target:Cn,proto:!0,forced:bo$1||Gn},Dn);return Dn},To$1=ne("species"),Ao$1=R$1.f,ko$1=eo$1.fastKey,Ro$1=J.set,Io$1=J.getterFor;(function(_n,Cn,$n){var Nn=_n.indexOf("Map")!==-1,Bn=_n.indexOf("Weak")!==-1,Ln=Nn?"set":"add",In=r[_n],Pn=In&&In.prototype,Dn=In,Un={},Hn=function(ai){var si=Pn[ai];Z(Pn,ai,ai=="add"?function(gi){return si.call(this,gi===0?0:gi),this}:ai=="delete"?function(gi){return!(Bn&&!h(gi))&&si.call(this,gi===0?0:gi)}:ai=="get"?function(gi){return Bn&&!h(gi)?void 0:si.call(this,gi===0?0:gi)}:ai=="has"?function(gi){return!(Bn&&!h(gi))&&si.call(this,gi===0?0:gi)}:function(gi,Si){return si.call(this,gi===0?0:gi,Si),this})};if(kt$1(_n,typeof In!="function"||!(Bn||Pn.forEach&&!o(function(){new In().entries().next()}))))Dn=$n.getConstructor(Cn,_n,Nn,Ln),eo$1.REQUIRED=!0;else if(kt$1(_n,!0)){var Xn=new Dn,Gn=Xn[Ln](Bn?{}:-0,1)!=Xn,ei=o(function(){Xn.has(1)}),nr=Br(function(ai){new In(ai)}),ni=!Bn&&o(function(){for(var ai=new In,si=5;si--;)ai[Ln](si,si);return!ai.has(-0)});nr||((Dn=Cn(function(ai,si){oo$1(ai,Dn,_n);var gi=function(Si,ri,Ei){var $i,zn;return co$1&&typeof($i=ri.constructor)=="function"&&$i!==Ei&&h(zn=$i.prototype)&&zn!==Ei.prototype&&co$1(Si,zn),Si}(new In,ai,Dn);return si!=null&&ro$1(si,gi[Ln],{that:gi,AS_ENTRIES:Nn}),gi})).prototype=Pn,Pn.constructor=Dn),(ei||ni)&&(Hn("delete"),Hn("has"),Nn&&Hn("get")),(ni||Gn)&&Hn(Ln),Bn&&Pn.clear&&delete Pn.clear}Un[_n]=Dn,It$1({global:!0,forced:Dn!=In},Un),ao$1(Dn,_n),Bn||$n.setStrong(Dn,_n,Nn)})("Set",function(_n){return function(){return _n(this,arguments.length?arguments[0]:void 0)}},{getConstructor:function(_n,Cn,$n,Nn){var Bn=_n(function(Dn,Un){oo$1(Dn,Bn,Cn),Ro$1(Dn,{type:Cn,index:Sr(null),first:void 0,last:void 0,size:0}),i$1||(Dn.size=0),Un!=null&&ro$1(Un,Dn[Nn],{that:Dn,AS_ENTRIES:$n})}),Ln=Io$1(Cn),In=function(Dn,Un,Hn){var Xn,Gn,ei=Ln(Dn),nr=Pn(Dn,Un);return nr?nr.value=Hn:(ei.last=nr={index:Gn=ko$1(Un,!0),key:Un,value:Hn,previous:Xn=ei.last,next:void 0,removed:!1},ei.first||(ei.first=nr),Xn&&(Xn.next=nr),i$1?ei.size++:Dn.size++,Gn!=="F"&&(ei.index[Gn]=nr)),Dn},Pn=function(Dn,Un){var Hn,Xn=Ln(Dn),Gn=ko$1(Un);if(Gn!=="F")return Xn.index[Gn];for(Hn=Xn.first;Hn;Hn=Hn.next)if(Hn.key==Un)return Hn};return lo$1(Bn.prototype,{clear:function(){for(var Dn=Ln(this),Un=Dn.index,Hn=Dn.first;Hn;)Hn.removed=!0,Hn.previous&&(Hn.previous=Hn.previous.next=void 0),delete Un[Hn.index],Hn=Hn.next;Dn.first=Dn.last=void 0,i$1?Dn.size=0:this.size=0},delete:function(Dn){var Un=this,Hn=Ln(Un),Xn=Pn(Un,Dn);if(Xn){var Gn=Xn.next,ei=Xn.previous;delete Hn.index[Xn.index],Xn.removed=!0,ei&&(ei.next=Gn),Gn&&(Gn.previous=ei),Hn.first==Xn&&(Hn.first=Gn),Hn.last==Xn&&(Hn.last=ei),i$1?Hn.size--:Un.size--}return!!Xn},forEach:function(Dn){for(var Un,Hn=Ln(this),Xn=lr(Dn,arguments.length>1?arguments[1]:void 0,3);Un=Un?Un.next:Hn.first;)for(Xn(Un.value,Un.key,this);Un&&Un.removed;)Un=Un.previous},has:function(Dn){return!!Pn(this,Dn)}}),lo$1(Bn.prototype,$n?{get:function(Dn){var Un=Pn(this,Dn);return Un&&Un.value},set:function(Dn,Un){return In(this,Dn===0?0:Dn,Un)}}:{add:function(Dn){return In(this,Dn=Dn===0?0:Dn,Dn)}}),i$1&&Ao$1(Bn.prototype,"size",{get:function(){return Ln(this).size}}),Bn},setStrong:function(_n,Cn,$n){var Nn=Cn+" Iterator",Bn=Io$1(Cn),Ln=Io$1(Nn);Oo$1(_n,Cn,function(In,Pn){Ro$1(this,{type:Nn,target:In,state:Bn(In),kind:Pn,last:void 0})},function(){for(var In=Ln(this),Pn=In.kind,Dn=In.last;Dn&&Dn.removed;)Dn=Dn.previous;return In.target&&(In.last=Dn=Dn?Dn.next:In.state.first)?Pn=="keys"?{value:Dn.key,done:!1}:Pn=="values"?{value:Dn.value,done:!1}:{value:[Dn.key,Dn.value],done:!1}:(In.target=void 0,{value:void 0,done:!0})},$n?"entries":"values",!$n,!0),function(In){var Pn=nt$1(In),Dn=R$1.f;i$1&&Pn&&!Pn[To$1]&&Dn(Pn,To$1,{configurable:!0,get:function(){return this}})}(Cn)}});var jo=Qe.charAt,Co$1=J.set,Lo$1=J.getterFor("String Iterator");Oo$1(String,"String",function(_n){Co$1(this,{type:"String Iterator",string:String(_n),index:0})},function(){var _n,Cn=Lo$1(this),$n=Cn.string,Nn=Cn.index;return Nn>=$n.length?{value:void 0,done:!0}:(_n=jo($n,Nn),Cn.index+=_n.length,{value:_n,done:!1})});var Po$1={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},Mo$1=J.set,_o$1=J.getterFor("Array Iterator"),Do$1=Oo$1(Array,"Array",function(_n,Cn){Mo$1(this,{type:"Array Iterator",target:g(_n),index:0,kind:Cn})},function(){var _n=_o$1(this),Cn=_n.target,$n=_n.kind,Nn=_n.index++;return!Cn||Nn>=Cn.length?(_n.target=void 0,{value:void 0,done:!0}):$n=="keys"?{value:Nn,done:!1}:$n=="values"?{value:Cn[Nn],done:!1}:{value:[Nn,Cn[Nn]],done:!1}},"values");Pr.Arguments=Pr.Array,Er("keys"),Er("values"),Er("entries");var Uo=ne("iterator"),No$1=ne("toStringTag"),Fo=Do$1.values;for(var Wo$1 in Po$1){var zo=r[Wo$1],$o$1=zo&&zo.prototype;if($o$1){if($o$1[Uo]!==Fo)try{I($o$1,Uo,Fo)}catch{$o$1[Uo]=Fo}if($o$1[No$1]||I($o$1,No$1,Wo$1),Po$1[Wo$1]){for(var Bo$1 in Do$1)if($o$1[Bo$1]!==Do$1[Bo$1])try{I($o$1,Bo$1,Do$1[Bo$1])}catch{$o$1[Bo$1]=Do$1[Bo$1]}}}}(function(){function _n(){Wt$1(this,_n)}return $t$1(_n,null,[{key:"deduplicate",value:function(Cn){return Array.from(new Set(Cn))}},{key:"flat",value:function(Cn){return Cn.reduce(function($n,Nn){var Bn=Array.isArray(Nn)?_n.flat(Nn):Nn;return $n.concat(Bn)},[])}},{key:"find",value:function(Cn,$n){return Cn.find($n)}},{key:"findIndex",value:function(Cn,$n){return Cn.findIndex($n)}}]),_n})(),function(){function _n(){Wt$1(this,_n)}return $t$1(_n,null,[{key:"today",value:function(){return new Date}}]),_n}(),function(){function _n(){Wt$1(this,_n)}return $t$1(_n,null,[{key:"range",value:function(Cn,$n,Nn){return Math.min(Math.max(Cn,$n),Nn)}},{key:"clamp",value:function(Cn,$n,Nn){return $n<Nn?Cn<$n?$n:Cn>Nn?Nn:Cn:Cn<Nn?Nn:Cn>$n?$n:Cn}}]),_n}();var freeGlobal=typeof global=="object"&&global&&global.Object===Object&&global;const freeGlobal$1=freeGlobal;var freeSelf=typeof self=="object"&&self&&self.Object===Object&&self,root=freeGlobal$1||freeSelf||Function("return this")();const root$1=root;var Symbol$1=root$1.Symbol;const Symbol$2=Symbol$1;var objectProto$a=Object.prototype,hasOwnProperty$9=objectProto$a.hasOwnProperty,nativeObjectToString$1=objectProto$a.toString,symToStringTag$1=Symbol$2?Symbol$2.toStringTag:void 0;function getRawTag(_n){var Cn=hasOwnProperty$9.call(_n,symToStringTag$1),$n=_n[symToStringTag$1];try{_n[symToStringTag$1]=void 0;var Nn=!0}catch{}var Bn=nativeObjectToString$1.call(_n);return Nn&&(Cn?_n[symToStringTag$1]=$n:delete _n[symToStringTag$1]),Bn}var objectProto$9=Object.prototype,nativeObjectToString=objectProto$9.toString;function objectToString(_n){return nativeObjectToString.call(_n)}var nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$2?Symbol$2.toStringTag:void 0;function baseGetTag(_n){return _n==null?_n===void 0?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(_n)?getRawTag(_n):objectToString(_n)}function isObjectLike(_n){return _n!=null&&typeof _n=="object"}var isArray$1=Array.isArray;const isArray$2=isArray$1;function isObject$2(_n){var Cn=typeof _n;return _n!=null&&(Cn=="object"||Cn=="function")}function identity(_n){return _n}var asyncTag="[object AsyncFunction]",funcTag$1="[object Function]",genTag="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction$1(_n){if(!isObject$2(_n))return!1;var Cn=baseGetTag(_n);return Cn==funcTag$1||Cn==genTag||Cn==asyncTag||Cn==proxyTag}var coreJsData=root$1["__core-js_shared__"];const coreJsData$1=coreJsData;var maskSrcKey=function(){var _n=/[^.]+$/.exec(coreJsData$1&&coreJsData$1.keys&&coreJsData$1.keys.IE_PROTO||"");return _n?"Symbol(src)_1."+_n:""}();function isMasked(_n){return!!maskSrcKey&&maskSrcKey in _n}var funcProto$2=Function.prototype,funcToString$2=funcProto$2.toString;function toSource(_n){if(_n!=null){try{return funcToString$2.call(_n)}catch{}try{return _n+""}catch{}}return""}var reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto$1=Function.prototype,objectProto$8=Object.prototype,funcToString$1=funcProto$1.toString,hasOwnProperty$8=objectProto$8.hasOwnProperty,reIsNative=RegExp("^"+funcToString$1.call(hasOwnProperty$8).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative(_n){if(!isObject$2(_n)||isMasked(_n))return!1;var Cn=isFunction$1(_n)?reIsNative:reIsHostCtor;return Cn.test(toSource(_n))}function getValue(_n,Cn){return _n==null?void 0:_n[Cn]}function getNative(_n,Cn){var $n=getValue(_n,Cn);return baseIsNative($n)?$n:void 0}var objectCreate=Object.create,baseCreate=function(){function _n(){}return function(Cn){if(!isObject$2(Cn))return{};if(objectCreate)return objectCreate(Cn);_n.prototype=Cn;var $n=new _n;return _n.prototype=void 0,$n}}();const baseCreate$1=baseCreate;function apply(_n,Cn,$n){switch($n.length){case 0:return _n.call(Cn);case 1:return _n.call(Cn,$n[0]);case 2:return _n.call(Cn,$n[0],$n[1]);case 3:return _n.call(Cn,$n[0],$n[1],$n[2])}return _n.apply(Cn,$n)}function copyArray(_n,Cn){var $n=-1,Nn=_n.length;for(Cn||(Cn=Array(Nn));++$n<Nn;)Cn[$n]=_n[$n];return Cn}var HOT_COUNT=800,HOT_SPAN=16,nativeNow=Date.now;function shortOut(_n){var Cn=0,$n=0;return function(){var Nn=nativeNow(),Bn=HOT_SPAN-(Nn-$n);if($n=Nn,Bn>0){if(++Cn>=HOT_COUNT)return arguments[0]}else Cn=0;return _n.apply(void 0,arguments)}}function constant(_n){return function(){return _n}}var defineProperty=function(){try{var _n=getNative(Object,"defineProperty");return _n({},"",{}),_n}catch{}}();const defineProperty$1=defineProperty;var baseSetToString=defineProperty$1?function(_n,Cn){return defineProperty$1(_n,"toString",{configurable:!0,enumerable:!1,value:constant(Cn),writable:!0})}:identity;const baseSetToString$1=baseSetToString;var setToString=shortOut(baseSetToString$1);const setToString$1=setToString;var MAX_SAFE_INTEGER$1=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex(_n,Cn){var $n=typeof _n;return Cn=Cn??MAX_SAFE_INTEGER$1,!!Cn&&($n=="number"||$n!="symbol"&&reIsUint.test(_n))&&_n>-1&&_n%1==0&&_n<Cn}function baseAssignValue(_n,Cn,$n){Cn=="__proto__"&&defineProperty$1?defineProperty$1(_n,Cn,{configurable:!0,enumerable:!0,value:$n,writable:!0}):_n[Cn]=$n}function eq(_n,Cn){return _n===Cn||_n!==_n&&Cn!==Cn}var objectProto$7=Object.prototype,hasOwnProperty$7=objectProto$7.hasOwnProperty;function assignValue(_n,Cn,$n){var Nn=_n[Cn];(!(hasOwnProperty$7.call(_n,Cn)&&eq(Nn,$n))||$n===void 0&&!(Cn in _n))&&baseAssignValue(_n,Cn,$n)}function copyObject(_n,Cn,$n,Nn){var Bn=!$n;$n||($n={});for(var Ln=-1,In=Cn.length;++Ln<In;){var Pn=Cn[Ln],Dn=Nn?Nn($n[Pn],_n[Pn],Pn,$n,_n):void 0;Dn===void 0&&(Dn=_n[Pn]),Bn?baseAssignValue($n,Pn,Dn):assignValue($n,Pn,Dn)}return $n}var nativeMax=Math.max;function overRest(_n,Cn,$n){return Cn=nativeMax(Cn===void 0?_n.length-1:Cn,0),function(){for(var Nn=arguments,Bn=-1,Ln=nativeMax(Nn.length-Cn,0),In=Array(Ln);++Bn<Ln;)In[Bn]=Nn[Cn+Bn];Bn=-1;for(var Pn=Array(Cn+1);++Bn<Cn;)Pn[Bn]=Nn[Bn];return Pn[Cn]=$n(In),apply(_n,this,Pn)}}function baseRest(_n,Cn){return setToString$1(overRest(_n,Cn,identity),_n+"")}var MAX_SAFE_INTEGER=9007199254740991;function isLength(_n){return typeof _n=="number"&&_n>-1&&_n%1==0&&_n<=MAX_SAFE_INTEGER}function isArrayLike(_n){return _n!=null&&isLength(_n.length)&&!isFunction$1(_n)}function isIterateeCall(_n,Cn,$n){if(!isObject$2($n))return!1;var Nn=typeof Cn;return(Nn=="number"?isArrayLike($n)&&isIndex(Cn,$n.length):Nn=="string"&&Cn in $n)?eq($n[Cn],_n):!1}function createAssigner(_n){return baseRest(function(Cn,$n){var Nn=-1,Bn=$n.length,Ln=Bn>1?$n[Bn-1]:void 0,In=Bn>2?$n[2]:void 0;for(Ln=_n.length>3&&typeof Ln=="function"?(Bn--,Ln):void 0,In&&isIterateeCall($n[0],$n[1],In)&&(Ln=Bn<3?void 0:Ln,Bn=1),Cn=Object(Cn);++Nn<Bn;){var Pn=$n[Nn];Pn&&_n(Cn,Pn,Nn,Ln)}return Cn})}var objectProto$6=Object.prototype;function isPrototype(_n){var Cn=_n&&_n.constructor,$n=typeof Cn=="function"&&Cn.prototype||objectProto$6;return _n===$n}function baseTimes(_n,Cn){for(var $n=-1,Nn=Array(_n);++$n<_n;)Nn[$n]=Cn($n);return Nn}var argsTag$1="[object Arguments]";function baseIsArguments(_n){return isObjectLike(_n)&&baseGetTag(_n)==argsTag$1}var objectProto$5=Object.prototype,hasOwnProperty$6=objectProto$5.hasOwnProperty,propertyIsEnumerable=objectProto$5.propertyIsEnumerable,isArguments=baseIsArguments(function(){return arguments}())?baseIsArguments:function(_n){return isObjectLike(_n)&&hasOwnProperty$6.call(_n,"callee")&&!propertyIsEnumerable.call(_n,"callee")};const isArguments$1=isArguments;function stubFalse(){return!1}var freeExports$2=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule$2=freeExports$2&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports$2=freeModule$2&&freeModule$2.exports===freeExports$2,Buffer$2=moduleExports$2?root$1.Buffer:void 0,nativeIsBuffer=Buffer$2?Buffer$2.isBuffer:void 0,isBuffer$1=nativeIsBuffer||stubFalse;const isBuffer$2=isBuffer$1;var argsTag="[object Arguments]",arrayTag="[object Array]",boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",funcTag="[object Function]",mapTag="[object Map]",numberTag="[object Number]",objectTag$1="[object Object]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag="[object String]",weakMapTag="[object WeakMap]",arrayBufferTag="[object ArrayBuffer]",dataViewTag="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",typedArrayTags={};typedArrayTags[float32Tag]=typedArrayTags[float64Tag]=typedArrayTags[int8Tag]=typedArrayTags[int16Tag]=typedArrayTags[int32Tag]=typedArrayTags[uint8Tag]=typedArrayTags[uint8ClampedTag]=typedArrayTags[uint16Tag]=typedArrayTags[uint32Tag]=!0,typedArrayTags[argsTag]=typedArrayTags[arrayTag]=typedArrayTags[arrayBufferTag]=typedArrayTags[boolTag]=typedArrayTags[dataViewTag]=typedArrayTags[dateTag]=typedArrayTags[errorTag]=typedArrayTags[funcTag]=typedArrayTags[mapTag]=typedArrayTags[numberTag]=typedArrayTags[objectTag$1]=typedArrayTags[regexpTag]=typedArrayTags[setTag]=typedArrayTags[stringTag]=typedArrayTags[weakMapTag]=!1;function baseIsTypedArray(_n){return isObjectLike(_n)&&isLength(_n.length)&&!!typedArrayTags[baseGetTag(_n)]}function baseUnary(_n){return function(Cn){return _n(Cn)}}var freeExports$1=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule$1=freeExports$1&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports$1=freeModule$1&&freeModule$1.exports===freeExports$1,freeProcess=moduleExports$1&&freeGlobal$1.process,nodeUtil=function(){try{var _n=freeModule$1&&freeModule$1.require&&freeModule$1.require("util").types;return _n||freeProcess&&freeProcess.binding&&freeProcess.binding("util")}catch{}}();const nodeUtil$1=nodeUtil;var nodeIsTypedArray=nodeUtil$1&&nodeUtil$1.isTypedArray,isTypedArray$1=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray;const isTypedArray$2=isTypedArray$1;var objectProto$4=Object.prototype,hasOwnProperty$5=objectProto$4.hasOwnProperty;function arrayLikeKeys(_n,Cn){var $n=isArray$2(_n),Nn=!$n&&isArguments$1(_n),Bn=!$n&&!Nn&&isBuffer$2(_n),Ln=!$n&&!Nn&&!Bn&&isTypedArray$2(_n),In=$n||Nn||Bn||Ln,Pn=In?baseTimes(_n.length,String):[],Dn=Pn.length;for(var Un in _n)(Cn||hasOwnProperty$5.call(_n,Un))&&!(In&&(Un=="length"||Bn&&(Un=="offset"||Un=="parent")||Ln&&(Un=="buffer"||Un=="byteLength"||Un=="byteOffset")||isIndex(Un,Dn)))&&Pn.push(Un);return Pn}function overArg(_n,Cn){return function($n){return _n(Cn($n))}}function nativeKeysIn(_n){var Cn=[];if(_n!=null)for(var $n in Object(_n))Cn.push($n);return Cn}var objectProto$3=Object.prototype,hasOwnProperty$4=objectProto$3.hasOwnProperty;function baseKeysIn(_n){if(!isObject$2(_n))return nativeKeysIn(_n);var Cn=isPrototype(_n),$n=[];for(var Nn in _n)Nn=="constructor"&&(Cn||!hasOwnProperty$4.call(_n,Nn))||$n.push(Nn);return $n}function keysIn(_n){return isArrayLike(_n)?arrayLikeKeys(_n,!0):baseKeysIn(_n)}var nativeCreate=getNative(Object,"create");const nativeCreate$1=nativeCreate;function hashClear(){this.__data__=nativeCreate$1?nativeCreate$1(null):{},this.size=0}function hashDelete(_n){var Cn=this.has(_n)&&delete this.__data__[_n];return this.size-=Cn?1:0,Cn}var HASH_UNDEFINED$1="__lodash_hash_undefined__",objectProto$2=Object.prototype,hasOwnProperty$3=objectProto$2.hasOwnProperty;function hashGet(_n){var Cn=this.__data__;if(nativeCreate$1){var $n=Cn[_n];return $n===HASH_UNDEFINED$1?void 0:$n}return hasOwnProperty$3.call(Cn,_n)?Cn[_n]:void 0}var objectProto$1=Object.prototype,hasOwnProperty$2=objectProto$1.hasOwnProperty;function hashHas(_n){var Cn=this.__data__;return nativeCreate$1?Cn[_n]!==void 0:hasOwnProperty$2.call(Cn,_n)}var HASH_UNDEFINED="__lodash_hash_undefined__";function hashSet(_n,Cn){var $n=this.__data__;return this.size+=this.has(_n)?0:1,$n[_n]=nativeCreate$1&&Cn===void 0?HASH_UNDEFINED:Cn,this}function Hash(_n){var Cn=-1,$n=_n==null?0:_n.length;for(this.clear();++Cn<$n;){var Nn=_n[Cn];this.set(Nn[0],Nn[1])}}Hash.prototype.clear=hashClear,Hash.prototype.delete=hashDelete,Hash.prototype.get=hashGet,Hash.prototype.has=hashHas,Hash.prototype.set=hashSet;function listCacheClear(){this.__data__=[],this.size=0}function assocIndexOf(_n,Cn){for(var $n=_n.length;$n--;)if(eq(_n[$n][0],Cn))return $n;return-1}var arrayProto=Array.prototype,splice=arrayProto.splice;function listCacheDelete(_n){var Cn=this.__data__,$n=assocIndexOf(Cn,_n);if($n<0)return!1;var Nn=Cn.length-1;return $n==Nn?Cn.pop():splice.call(Cn,$n,1),--this.size,!0}function listCacheGet(_n){var Cn=this.__data__,$n=assocIndexOf(Cn,_n);return $n<0?void 0:Cn[$n][1]}function listCacheHas(_n){return assocIndexOf(this.__data__,_n)>-1}function listCacheSet(_n,Cn){var $n=this.__data__,Nn=assocIndexOf($n,_n);return Nn<0?(++this.size,$n.push([_n,Cn])):$n[Nn][1]=Cn,this}function ListCache(_n){var Cn=-1,$n=_n==null?0:_n.length;for(this.clear();++Cn<$n;){var Nn=_n[Cn];this.set(Nn[0],Nn[1])}}ListCache.prototype.clear=listCacheClear,ListCache.prototype.delete=listCacheDelete,ListCache.prototype.get=listCacheGet,ListCache.prototype.has=listCacheHas,ListCache.prototype.set=listCacheSet;var Map$1=getNative(root$1,"Map");const Map$2=Map$1;function mapCacheClear(){this.size=0,this.__data__={hash:new Hash,map:new(Map$2||ListCache),string:new Hash}}function isKeyable(_n){var Cn=typeof _n;return Cn=="string"||Cn=="number"||Cn=="symbol"||Cn=="boolean"?_n!=="__proto__":_n===null}function getMapData(_n,Cn){var $n=_n.__data__;return isKeyable(Cn)?$n[typeof Cn=="string"?"string":"hash"]:$n.map}function mapCacheDelete(_n){var Cn=getMapData(this,_n).delete(_n);return this.size-=Cn?1:0,Cn}function mapCacheGet(_n){return getMapData(this,_n).get(_n)}function mapCacheHas(_n){return getMapData(this,_n).has(_n)}function mapCacheSet(_n,Cn){var $n=getMapData(this,_n),Nn=$n.size;return $n.set(_n,Cn),this.size+=$n.size==Nn?0:1,this}function MapCache(_n){var Cn=-1,$n=_n==null?0:_n.length;for(this.clear();++Cn<$n;){var Nn=_n[Cn];this.set(Nn[0],Nn[1])}}MapCache.prototype.clear=mapCacheClear,MapCache.prototype.delete=mapCacheDelete,MapCache.prototype.get=mapCacheGet,MapCache.prototype.has=mapCacheHas,MapCache.prototype.set=mapCacheSet;var getPrototype=overArg(Object.getPrototypeOf,Object);const getPrototype$1=getPrototype;var objectTag="[object Object]",funcProto=Function.prototype,objectProto=Object.prototype,funcToString=funcProto.toString,hasOwnProperty$1=objectProto.hasOwnProperty,objectCtorString=funcToString.call(Object);function isPlainObject$1(_n){if(!isObjectLike(_n)||baseGetTag(_n)!=objectTag)return!1;var Cn=getPrototype$1(_n);if(Cn===null)return!0;var $n=hasOwnProperty$1.call(Cn,"constructor")&&Cn.constructor;return typeof $n=="function"&&$n instanceof $n&&funcToString.call($n)==objectCtorString}function stackClear(){this.__data__=new ListCache,this.size=0}function stackDelete(_n){var Cn=this.__data__,$n=Cn.delete(_n);return this.size=Cn.size,$n}function stackGet(_n){return this.__data__.get(_n)}function stackHas(_n){return this.__data__.has(_n)}var LARGE_ARRAY_SIZE=200;function stackSet(_n,Cn){var $n=this.__data__;if($n instanceof ListCache){var Nn=$n.__data__;if(!Map$2||Nn.length<LARGE_ARRAY_SIZE-1)return Nn.push([_n,Cn]),this.size=++$n.size,this;$n=this.__data__=new MapCache(Nn)}return $n.set(_n,Cn),this.size=$n.size,this}function Stack(_n){var Cn=this.__data__=new ListCache(_n);this.size=Cn.size}Stack.prototype.clear=stackClear,Stack.prototype.delete=stackDelete,Stack.prototype.get=stackGet,Stack.prototype.has=stackHas,Stack.prototype.set=stackSet;var freeExports=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule=freeExports&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports=freeModule&&freeModule.exports===freeExports,Buffer$1=moduleExports?root$1.Buffer:void 0,allocUnsafe=Buffer$1?Buffer$1.allocUnsafe:void 0;function cloneBuffer(_n,Cn){if(Cn)return _n.slice();var $n=_n.length,Nn=allocUnsafe?allocUnsafe($n):new _n.constructor($n);return _n.copy(Nn),Nn}var Uint8Array$1=root$1.Uint8Array;const Uint8Array$2=Uint8Array$1;function cloneArrayBuffer(_n){var Cn=new _n.constructor(_n.byteLength);return new Uint8Array$2(Cn).set(new Uint8Array$2(_n)),Cn}function cloneTypedArray(_n,Cn){var $n=Cn?cloneArrayBuffer(_n.buffer):_n.buffer;return new _n.constructor($n,_n.byteOffset,_n.length)}function initCloneObject(_n){return typeof _n.constructor=="function"&&!isPrototype(_n)?baseCreate$1(getPrototype$1(_n)):{}}function createBaseFor(_n){return function(Cn,$n,Nn){for(var Bn=-1,Ln=Object(Cn),In=Nn(Cn),Pn=In.length;Pn--;){var Dn=In[_n?Pn:++Bn];if($n(Ln[Dn],Dn,Ln)===!1)break}return Cn}}var baseFor=createBaseFor();const baseFor$1=baseFor;function assignMergeValue(_n,Cn,$n){($n!==void 0&&!eq(_n[Cn],$n)||$n===void 0&&!(Cn in _n))&&baseAssignValue(_n,Cn,$n)}function isArrayLikeObject(_n){return isObjectLike(_n)&&isArrayLike(_n)}function safeGet(_n,Cn){if(!(Cn==="constructor"&&typeof _n[Cn]=="function")&&Cn!="__proto__")return _n[Cn]}function toPlainObject(_n){return copyObject(_n,keysIn(_n))}function baseMergeDeep(_n,Cn,$n,Nn,Bn,Ln,In){var Pn=safeGet(_n,$n),Dn=safeGet(Cn,$n),Un=In.get(Dn);if(Un){assignMergeValue(_n,$n,Un);return}var Hn=Ln?Ln(Pn,Dn,$n+"",_n,Cn,In):void 0,Xn=Hn===void 0;if(Xn){var Gn=isArray$2(Dn),ei=!Gn&&isBuffer$2(Dn),nr=!Gn&&!ei&&isTypedArray$2(Dn);Hn=Dn,Gn||ei||nr?isArray$2(Pn)?Hn=Pn:isArrayLikeObject(Pn)?Hn=copyArray(Pn):ei?(Xn=!1,Hn=cloneBuffer(Dn,!0)):nr?(Xn=!1,Hn=cloneTypedArray(Dn,!0)):Hn=[]:isPlainObject$1(Dn)||isArguments$1(Dn)?(Hn=Pn,isArguments$1(Pn)?Hn=toPlainObject(Pn):(!isObject$2(Pn)||isFunction$1(Pn))&&(Hn=initCloneObject(Dn))):Xn=!1}Xn&&(In.set(Dn,Hn),Bn(Hn,Dn,Nn,Ln,In),In.delete(Dn)),assignMergeValue(_n,$n,Hn)}function baseMerge(_n,Cn,$n,Nn,Bn){_n!==Cn&&baseFor$1(Cn,function(Ln,In){if(Bn||(Bn=new Stack),isObject$2(Ln))baseMergeDeep(_n,Cn,In,$n,baseMerge,Nn,Bn);else{var Pn=Nn?Nn(safeGet(_n,In),Ln,In+"",_n,Cn,Bn):void 0;Pn===void 0&&(Pn=Ln),assignMergeValue(_n,In,Pn)}},keysIn)}var merge$2=createAssigner(function(_n,Cn,$n){baseMerge(_n,Cn,$n)});const le=merge$2;var ze=Object.defineProperty,Ge=(_n,Cn,$n)=>Cn in _n?ze(_n,Cn,{enumerable:!0,configurable:!0,writable:!0,value:$n}):_n[Cn]=$n,L=(_n,Cn,$n)=>(Ge(_n,typeof Cn!="symbol"?Cn+"":Cn,$n),$n);const V=_n=>Math.round(_n*100)/100;class R{constructor(Cn){L(this,"instance"),L(this,"alphaValue",0),L(this,"redValue",0),L(this,"greenValue",0),L(this,"blueValue",0),L(this,"hueValue",0),L(this,"saturationValue",0),L(this,"brightnessValue",0),L(this,"hslSaturationValue",0),L(this,"lightnessValue",0),L(this,"initAlpha",()=>{const $n=this.instance.getAlpha();this.alphaValue=Math.min(1,$n)*100}),L(this,"initLightness",()=>{const{s:$n,l:Nn}=this.instance.toHsl();this.hslSaturationValue=V($n),this.lightnessValue=V(Nn)}),L(this,"initRgb",()=>{const{r:$n,g:Nn,b:Bn}=this.instance.toRgb();this.redValue=V($n),this.greenValue=V(Nn),this.blueValue=V(Bn)}),L(this,"initHsb",()=>{const{h:$n,s:Nn,v:Bn}=this.instance.toHsv();this.hueValue=Math.min(360,Math.ceil($n)),this.saturationValue=V(Nn),this.brightnessValue=V(Bn)}),L(this,"toHexString",()=>this.instance.toHexString()),L(this,"toRgbString",()=>this.instance.toRgbString()),this.instance=tinycolor(Cn),this.initRgb(),this.initHsb(),this.initLightness(),this.initAlpha()}toString(Cn){return this.instance.toString(Cn)}get hex(){return this.instance.toHex()}set hex(Cn){this.instance=tinycolor(Cn),this.initHsb(),this.initRgb(),this.initAlpha(),this.initLightness()}set hue(Cn){this.saturation===0&&this.brightness===0&&(this.saturationValue=1,this.brightnessValue=1),this.instance=tinycolor({h:V(Cn),s:this.saturation,v:this.brightness,a:this.alphaValue/100}),this.initRgb(),this.initLightness(),this.hueValue=V(Cn)}get hue(){return this.hueValue}set saturation(Cn){this.instance=tinycolor({h:this.hue,s:V(Cn),v:this.brightness,a:this.alphaValue/100}),this.initRgb(),this.initLightness(),this.saturationValue=V(Cn)}get saturation(){return this.saturationValue}set brightness(Cn){this.instance=tinycolor({h:this.hue,s:this.saturation,v:V(Cn),a:this.alphaValue/100}),this.initRgb(),this.initLightness(),this.brightnessValue=V(Cn)}get brightness(){return this.brightnessValue}set lightness(Cn){this.instance=tinycolor({h:this.hue,s:this.hslSaturationValue,l:V(Cn),a:this.alphaValue/100}),this.initRgb(),this.initHsb(),this.lightnessValue=V(Cn)}get lightness(){return this.lightnessValue}set red(Cn){const $n=this.instance.toRgb();this.instance=tinycolor({...$n,r:V(Cn),a:this.alphaValue/100}),this.initHsb(),this.initLightness(),this.redValue=V(Cn)}get red(){return this.redValue}set green(Cn){const $n=this.instance.toRgb();this.instance=tinycolor({...$n,g:V(Cn),a:this.alphaValue/100}),this.initHsb(),this.initLightness(),this.greenValue=V(Cn)}get green(){return this.greenValue}set blue(Cn){const $n=this.instance.toRgb();this.instance=tinycolor({...$n,b:V(Cn),a:this.alphaValue/100}),this.initHsb(),this.initLightness(),this.blueValue=V(Cn)}get blue(){return this.blueValue}set alpha(Cn){this.instance.setAlpha(Cn/100),this.alphaValue=Cn}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 $e(_n,Cn,$n,Nn){return`rgba(${[_n,Cn,$n,Nn/100].join(",")})`}const ie=(_n,Cn,$n)=>Cn<$n?_n<Cn?Cn:_n>$n?$n:_n:_n<$n?$n:_n>Cn?Cn:_n,de="color-history",ge=8,X=(_n,Cn)=>{const $n=_n.__vccOpts||_n;for(const[Nn,Bn]of Cn)$n[Nn]=Bn;return $n},tt=defineComponent({name:"Alpha",props:{color:C$1.instanceOf(R),size:C$1.oneOf(["small","default"]).def("default")},emits:["change"],setup(_n,{emit:Cn}){const $n=ref(null),Nn=ref(null);let Bn=_n.color||new R;const Ln=reactive({red:Bn.red,green:Bn.green,blue:Bn.blue,alpha:Bn.alpha});watch(()=>_n.color,Xn=>{Xn&&(Bn=Xn,le(Ln,{red:Xn.red,green:Xn.green,blue:Xn.blue,alpha:Xn.alpha}))},{deep:!0});const In=computed(()=>{const Xn=$e(Ln.red,Ln.green,Ln.blue,0),Gn=$e(Ln.red,Ln.green,Ln.blue,100);return{background:`linear-gradient(to right, ${Xn} , ${Gn})`}}),Pn=()=>{if($n.value&&Nn.value){const Xn=Ln.alpha/100,Gn=$n.value.getBoundingClientRect(),ei=Nn.value.offsetWidth;return Math.round(Xn*(Gn.width-ei)+ei/2)}return 0},Dn=computed(()=>({left:Pn()+"px",top:0})),Un=Xn=>{Xn.target!==$n.value&&Hn(Xn)},Hn=Xn=>{if(Xn.stopPropagation(),$n.value&&Nn.value){const Gn=$n.value.getBoundingClientRect(),ei=Nn.value.offsetWidth;let nr=Xn.clientX-Gn.left;nr=Math.max(ei/2,nr),nr=Math.min(nr,Gn.width-ei/2);const ni=Math.round((nr-ei/2)/(Gn.width-ei)*100);Bn.alpha=ni,Ln.alpha=ni,Cn("change",ni)}};return tryOnMounted(()=>{const Xn={drag:Gn=>{Hn(Gn)},end:Gn=>{Hn(Gn)}};$n.value&&Nn.value&&Vn.triggerDragEvent($n.value,Xn)}),{barElement:$n,cursorElement:Nn,getCursorStyle:Dn,getBackgroundStyle:In,onClickSider:Un}}}),ot=_n=>(pushScopeId("data-v-18925ba6"),_n=_n(),popScopeId(),_n),nt=ot(()=>createBaseVNode("div",{class:"vc-alpha-slider__bar-handle"},null,-1)),at=[nt];function rt(_n,Cn,$n,Nn,Bn,Ln){return openBlock(),createElementBlock("div",{class:normalizeClass(["vc-alpha-slider","transparent",{"small-slider":_n.size==="small"}])},[createBaseVNode("div",{ref:"barElement",class:"vc-alpha-slider__bar",style:normalizeStyle(_n.getBackgroundStyle),onClick:Cn[0]||(Cn[0]=(...In)=>_n.onClickSider&&_n.onClickSider(...In))},[createBaseVNode("div",{class:normalizeClass(["vc-alpha-slider__bar-pointer",{"small-bar":_n.size==="small"}]),ref:"cursorElement",style:normalizeStyle(_n.getCursorStyle)},at,6)],4)],2)}const he=X(tt,[["render",rt],["__scopeId","data-v-18925ba6"]]),lt=[["#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"]],st=defineComponent({name:"Palette",emits:["change"],setup(_n,{emit:Cn}){return{palettes:lt,computedBgStyle:$n=>$n==="transparent"?$n:$n==="advance"?{}:{background:tinycolor($n).toRgbString()},onColorChange:$n=>{Cn("change",$n)}}}}),it={class:"vc-compact"},ct=["onClick"];function ut(_n,Cn,$n,Nn,Bn,Ln){return openBlock(),createElementBlock("div",it,[(openBlock(!0),createElementBlock(Fragment,null,renderList(_n.palettes,(In,Pn)=>(openBlock(),createElementBlock("div",{key:Pn,class:"vc-compact__row"},[(openBlock(!0),createElementBlock(Fragment,null,renderList(In,(Dn,Un)=>(openBlock(),createElementBlock("div",{key:Un,class:"vc-compact__color-cube--wrap",onClick:Hn=>_n.onColorChange(Dn)},[createBaseVNode("div",{class:normalizeClass(["vc-compact__color_cube",{advance:Dn==="advance",transparent:Dn==="transparent"}]),style:normalizeStyle(_n.computedBgStyle(Dn))},null,6)],8,ct))),128))]))),128))])}const Ve=X(st,[["render",ut],["__scopeId","data-v-b969fd48"]]),dt=defineComponent({name:"Board",props:{color:C$1.instanceOf(R),round:C$1.bool.def(!1),hide:C$1.bool.def(!0)},emits:["change"],setup(_n,{emit:Cn}){var $n,Nn,Bn;const Ln=getCurrentInstance(),In={h:(($n=_n.color)==null?void 0:$n.hue)||0,s:1,v:1},Pn=new R(In).toHexString(),Dn=reactive({hueColor:Pn,saturation:((Nn=_n.color)==null?void 0:Nn.saturation)||0,brightness:((Bn=_n.color)==null?void 0:Bn.brightness)||0}),Un=ref(0),Hn=ref(0),Xn=ref(),Gn=ref(),ei=computed(()=>({top:Un.value+"px",left:Hn.value+"px"})),nr=()=>{if(Ln){const si=Ln.vnode.el;Hn.value=Dn.saturation*(si==null?void 0:si.clientWidth),Un.value=(1-Dn.brightness)*(si==null?void 0:si.clientHeight)}},ni=si=>{si.target!==Gn.value&&ai(si)},ai=si=>{if(Ln){const gi=Ln.vnode.el,Si=gi==null?void 0:gi.getBoundingClientRect();let ri=si.clientX-Si.left,Ei=si.clientY-Si.top;ri=ie(ri,0,Si.width),Ei=ie(Ei,0,Si.height);const $i=ri/Si.width,zn=ie(-(Ei/Si.height)+1,0,1);Hn.value=ri,Un.value=Ei,Dn.saturation=$i,Dn.brightness=zn,Cn("change",$i,zn)}};return tryOnMounted(()=>{Ln&&Ln.vnode.el&&Xn.value&&(Vn.triggerDragEvent(Xn.value,{drag:si=>{ai(si)},end:si=>{ai(si)}}),nextTick(()=>{nr()}))}),whenever(()=>_n.color,si=>{le(Dn,{hueColor:new R({h:si.hue,s:1,v:1}).toHexString(),saturation:si.saturation,brightness:si.brightness}),nr()},{deep:!0}),{state:Dn,cursorElement:Xn,getCursorStyle:ei,onClickBoard:ni}}}),pe=_n=>(pushScopeId("data-v-058e5db2"),_n=_n(),popScopeId(),_n),gt=pe(()=>createBaseVNode("div",{class:"vc-saturation__white"},null,-1)),ht=pe(()=>createBaseVNode("div",{class:"vc-saturation__black"},null,-1)),pt=pe(()=>createBaseVNode("div",null,null,-1)),ft=[pt];function vt(_n,Cn,$n,Nn,Bn,Ln){return openBlock(),createElementBlock("div",{ref:"boardElement",class:normalizeClass(["vc-saturation",{"vc-saturation__chrome":_n.round,"vc-saturation__hidden":_n.hide}]),style:normalizeStyle({backgroundColor:_n.state.hueColor}),onClick:Cn[0]||(Cn[0]=(...In)=>_n.onClickBoard&&_n.onClickBoard(...In))},[gt,ht,createBaseVNode("div",{class:"vc-saturation__cursor",ref:"cursorElement",style:normalizeStyle(_n.getCursorStyle)},ft,4)],6)}const fe=X(dt,[["render",vt],["__scopeId","data-v-058e5db2"]]),Ct=defineComponent({name:"Hue",props:{color:C$1.instanceOf(R),size:C$1.oneOf(["small","default"]).def("default")},emits:["change"],setup(_n,{emit:Cn}){const $n=ref(null),Nn=ref(null);let Bn=_n.color||new R;const Ln=reactive({hue:Bn.hue||0});watch(()=>_n.color,Hn=>{Hn&&(Bn=Hn,le(Ln,{hue:Bn.hue}))},{deep:!0});const In=()=>{if($n.value&&Nn.value){const Hn=$n.value.getBoundingClientRect(),Xn=Nn.value.offsetWidth;return Ln.hue===360?Hn.width-Xn/2:Ln.hue%360*(Hn.width-Xn)/360+Xn/2}return 0},Pn=computed(()=>({left:In()+"px",top:0})),Dn=Hn=>{Hn.target!==$n.value&&Un(Hn)},Un=Hn=>{if(Hn.stopPropagation(),$n.value&&Nn.value){const Xn=$n.value.getBoundingClientRect(),Gn=Nn.value.offsetWidth;let ei=Hn.clientX-Xn.left;ei=Math.min(ei,Xn.width-Gn/2),ei=Math.max(Gn/2,ei);const nr=Math.round((ei-Gn/2)/(Xn.width-Gn)*360);Bn.hue=nr,Ln.hue=nr,Cn("change",nr)}};return tryOnMounted(()=>{const Hn={drag:Xn=>{Un(Xn)},end:Xn=>{Un(Xn)}};$n.value&&Nn.value&&Vn.triggerDragEvent($n.value,Hn)}),{barElement:$n,cursorElement:Nn,getCursorStyle:Pn,onClickSider:Dn}}}),bt=_n=>(pushScopeId("data-v-e1a08576"),_n=_n(),popScopeId(),_n),yt=bt(()=>createBaseVNode("div",{class:"vc-hue-slider__bar-handle"},null,-1)),_t=[yt];function mt(_n,Cn,$n,Nn,Bn,Ln){return openBlock(),createElementBlock("div",{class:normalizeClass(["vc-hue-slider",{"small-slider":_n.size==="small"}])},[createBaseVNode("div",{ref:"barElement",class:"vc-hue-slider__bar",onClick:Cn[0]||(Cn[0]=(...In)=>_n.onClickSider&&_n.onClickSider(...In))},[createBaseVNode("div",{class:normalizeClass(["vc-hue-slider__bar-pointer",{"small-bar":_n.size==="small"}]),ref:"cursorElement",style:normalizeStyle(_n.getCursorStyle)},_t,6)],512)],2)}const ve=X(Ct,[["render",mt],["__scopeId","data-v-e1a08576"]]),St=defineComponent({name:"Lightness",props:{color:C$1.instanceOf(R),size:C$1.oneOf(["small","default"]).def("default")},emits:["change"],setup(_n,{emit:Cn}){const $n=ref(null),Nn=ref(null);let Bn=_n.color||new R;const[Ln,In,Pn]=Bn.HSL,Dn=reactive({hue:Ln,saturation:In,lightness:Pn});watch(()=>_n.color,nr=>{if(nr){Bn=nr;const[ni,ai,si]=Bn.HSL;le(Dn,{hue:ni,saturation:ai,lightness:si})}},{deep:!0});const Un=computed(()=>{const nr=tinycolor({h:Dn.hue,s:Dn.saturation,l:.8}).toPercentageRgbString(),ni=tinycolor({h:Dn.hue,s:Dn.saturation,l:.6}).toPercentageRgbString(),ai=tinycolor({h:Dn.hue,s:Dn.saturation,l:.4}).toPercentageRgbString(),si=tinycolor({h:Dn.hue,s:Dn.saturation,l:.2}).toPercentageRgbString();return{background:[`linear-gradient(to right, rgb(255, 255, 255), ${nr}, ${ni}, ${ai}, ${si}, rgb(0, 0, 0))`,`-webkit-linear-gradient(left, rgb(255, 255, 255), ${nr}, ${ni}, ${ai}, ${si}, rgb(0, 0, 0))`,`-moz-linear-gradient(left, rgb(255, 255, 255), ${nr}, ${ni}, ${ai}, ${si}, rgb(0, 0, 0))`,`-ms-linear-gradient(left, rgb(255, 255, 255), ${nr}, ${ni}, ${ai}, ${si}, rgb(0, 0, 0))`]}}),Hn=()=>{if($n.value&&Nn.value){const nr=Dn.lightness,ni=$n.value.getBoundingClientRect(),ai=Nn.value.offsetWidth;return(1-nr)*(ni.width-ai)+ai/2}return 0},Xn=computed(()=>({left:Hn()+"px",top:0})),Gn=nr=>{nr.target!==$n.value&&ei(nr)},ei=nr=>{if(nr.stopPropagation(),$n.value&&Nn.value){const ni=$n.value.getBoundingClientRect(),ai=Nn.value.offsetWidth;let si=nr.clientX-ni.left;si=Math.max(ai/2,si),si=Math.min(si,ni.width-ai/2);const gi=1-(si-ai/2)/(ni.width-ai);Bn.lightness=gi,Cn("change",gi)}};return tryOnMounted(()=>{const nr={drag:ni=>{ei(ni)},end:ni=>{ei(ni)}};$n.value&&Nn.value&&Vn.triggerDragEvent($n.value,nr)}),{barElement:$n,cursorElement:Nn,getCursorStyle:Xn,getBackgroundStyle:Un,onClickSider:Gn}}}),kt=_n=>(pushScopeId("data-v-94a50a9e"),_n=_n(),popScopeId(),_n),$t=kt(()=>createBaseVNode("div",{class:"vc-lightness-slider__bar-handle"},null,-1)),wt=[$t];function Ht(_n,Cn,$n,Nn,Bn,Ln){return openBlock(),createElementBlock("div",{class:normalizeClass(["vc-lightness-slider",{"small-slider":_n.size==="small"}])},[createBaseVNode("div",{ref:"barElement",class:"vc-lightness-slider__bar",style:normalizeStyle(_n.getBackgroundStyle),onClick:Cn[0]||(Cn[0]=(...In)=>_n.onClickSider&&_n.onClickSider(...In))},[createBaseVNode("div",{class:normalizeClass(["vc-lightness-slider__bar-pointer",{"small-bar":_n.size==="small"}]),ref:"cursorElement",style:normalizeStyle(_n.getCursorStyle)},wt,6)],4)],2)}const Ie=X(St,[["render",Ht],["__scopeId","data-v-94a50a9e"]]),Bt=defineComponent({name:"History",props:{colors:C$1.arrayOf(String).def(()=>[]),round:C$1.bool.def(!1)},emits:["change"],setup(_n,{emit:Cn}){return{onColorSelect:$n=>{Cn("change",$n)}}}}),Rt={key:0,class:"vc-colorPicker__record"},At={class:"color-list"},Pt=["onClick"];function Vt(_n,Cn,$n,Nn,Bn,Ln){return _n.colors&&_n.colors.length>0?(openBlock(),createElementBlock("div",Rt,[createBaseVNode("div",At,[(openBlock(!0),createElementBlock(Fragment,null,renderList(_n.colors,(In,Pn)=>(openBlock(),createElementBlock("div",{key:Pn,class:normalizeClass(["color-item","transparent",{"color-item__round":_n.round}]),onClick:Dn=>_n.onColorSelect(In)},[createBaseVNode("div",{class:"color-item__display",style:normalizeStyle({backgroundColor:In})},null,4)],10,Pt))),128))])])):createCommentVNode("",!0)}const Ce=X(Bt,[["render",Vt],["__scopeId","data-v-0f657238"]]),It=defineComponent({name:"Display",props:{color:C$1.instanceOf(R),disableAlpha:C$1.bool.def(!1)},emits:["update:color","change"],setup(_n,{emit:Cn}){var $n,Nn,Bn,Ln;const In=ref("hex"),Pn=reactive({color:_n.color,hex:($n=_n.color)==null?void 0:$n.hex,alpha:((Nn=_n.color)==null?void 0:Nn.alpha)+"%",rgba:(Bn=_n.color)==null?void 0:Bn.RGB,previewBgColor:(Ln=_n.color)==null?void 0:Ln.toRgbString()}),Dn=computed(()=>({background:Pn.previewBgColor})),Un=()=>{In.value=In.value==="rgba"?"hex":"rgba"},Hn=useDebounceFn(Gn=>{if(!Gn.target.value)return;let ei=parseInt(Gn.target.value.replace("%",""));ei>100&&(Gn.target.value="100%",ei=100),ei<0&&(Gn.target.value="0%",ei=0),isNaN(ei)&&(Gn.target.value="100%",ei=100),!isNaN(ei)&&Pn.color&&(Pn.color.alpha=ei),Cn("update:color",Pn.color),Cn("change",Pn.color)},300),Xn=useDebounceFn((Gn,ei)=>{if(console.log(Gn.target.value),!!Gn.target.value){if(In.value==="hex"){const nr=Gn.target.value.replace("#","");tinycolor(nr).isValid()&&Pn.color&&(Pn.color.hex=nr)}else if(ei!==void 0&&Pn.rgba&&Pn.color){Gn.target.value<0&&(Gn.target.value=0),ei===3&&Gn.target.value>1&&(Gn.target.value=1),ei<3&&Gn.target.value>255&&(Gn.target.value=255),Pn.rgba[ei]=Number(Gn.target.value);const[nr,ni,ai,si]=Pn.rgba;Pn.color.hex=tinycolor({r:nr,g:ni,b:ai}).toHex(),Pn.color.alpha=Math.floor(si*100)}Cn("update:color",Pn.color),Cn("change",Pn.color)}},300);return whenever(()=>_n.color,Gn=>{Gn&&(Pn.color=Gn,Pn.alpha=Math.floor(Pn.color.alpha)+"%",Pn.hex=Pn.color.hex,Pn.rgba=Pn.color.RGB)},{deep:!0}),whenever(()=>Pn.color,()=>{Pn.color&&(Pn.previewBgColor=Pn.color.toRgbString())},{deep:!0}),{state:Pn,getBgColorStyle:Dn,inputType:In,onInputTypeChange:Un,onAlphaBlur:Hn,onInputChange:Xn}}}),Mt={class:"vc-display"},Kt={class:"vc-current-color vc-transparent"},Lt={key:0,style:{display:"flex",flex:"1",gap:"4px",height:"100%"}},Et={class:"vc-color-input"},Nt=["value"],Wt={key:0,class:"vc-alpha-input"},Dt=["value"],Tt={key:1,style:{display:"flex",flex:"1",gap:"4px",height:"100%"}},Ot=["value","onInput"];function zt(_n,Cn,$n,Nn,Bn,Ln){return openBlock(),createElementBlock("div",Mt,[createBaseVNode("div",Kt,[createBaseVNode("div",{class:"color-cube",style:normalizeStyle(_n.getBgColorStyle)},null,4)]),_n.inputType==="hex"?(openBlock(),createElementBlock("div",Lt,[createBaseVNode("div",Et,[createBaseVNode("input",{value:_n.state.hex,onInput:Cn[0]||(Cn[0]=(...In)=>_n.onInputChange&&_n.onInputChange(...In))},null,40,Nt)]),_n.disableAlpha?createCommentVNode("",!0):(openBlock(),createElementBlock("div",Wt,[createBaseVNode("input",{class:"vc-alpha-input__inner",value:_n.state.alpha,onInput:Cn[1]||(Cn[1]=(...In)=>_n.onAlphaBlur&&_n.onAlphaBlur(...In))},null,40,Dt)]))])):_n.state.rgba?(openBlock(),createElementBlock("div",Tt,[(openBlock(!0),createElementBlock(Fragment,null,renderList(_n.state.rgba,(In,Pn)=>(openBlock(),createElementBlock("div",{class:"vc-rgb-input",key:Pn},[createBaseVNode("div",null,[createBaseVNode("input",{value:In,onInput:Dn=>_n.onInputChange(Dn,Pn)},null,40,Ot)]),createBaseVNode("div",null,toDisplayString(["R","G","B","A"][Pn]),1)]))),128))])):createCommentVNode("",!0),createBaseVNode("div",{class:"vc-input-toggle",onClick:Cn[2]||(Cn[2]=(...In)=>_n.onInputTypeChange&&_n.onInputTypeChange(...In))})])}const be=X(It,[["render",zt],["__scopeId","data-v-f6f511ec"]]),Gt=defineComponent({name:"FkColorPicker",components:{Display:be,Alpha:he,Palette:Ve,Board:fe,Hue:ve,Lightness:Ie,History:Ce},props:{color:C$1.instanceOf(R),disableHistory:C$1.bool.def(!1),roundHistory:C$1.bool.def(!1),disableAlpha:C$1.bool.def(!1)},emits:["update:color","change","advanceChange"],setup(_n,{emit:Cn}){const $n=_n.color||new R,Nn=reactive({color:$n,hex:$n.toHexString(),rgb:$n.toRgbString()}),Bn=ref(!1),Ln=computed(()=>({background:Nn.rgb})),In=()=>{Bn.value=!1,Cn("advanceChange",!1)},Pn=useLocalStorage(de,[],{}),Dn=useDebounceFn(()=>{if(_n.disableHistory)return;const ni=Nn.color.toRgbString();if(Pn.value=Pn.value.filter(ai=>!tinycolor.equals(ai,ni)),!Pn.value.includes(ni)){for(;Pn.value.length>ge;)Pn.value.pop();Pn.value.unshift(ni)}},500),Un=ni=>{ni==="advance"?(Bn.value=!0,Cn("advanceChange",!0)):(Nn.color.hex=ni,Cn("advanceChange",!1))},Hn=ni=>{Nn.color.alpha=ni},Xn=ni=>{Nn.color.hue=ni},Gn=(ni,ai)=>{Nn.color.saturation=ni,Nn.color.brightness=ai},ei=ni=>{Nn.color.lightness=ni},nr=ni=>{const ai=ni.target.value.replace("#","");tinycolor(ai).isValid()&&(Nn.color.hex=ai)};return whenever(()=>_n.color,ni=>{ni&&(Nn.color=ni)},{deep:!0}),whenever(()=>Nn.color,()=>{Nn.hex=Nn.color.hex,Nn.rgb=Nn.color.toRgbString(),Dn(),Cn("update:color",Nn.color),Cn("change",Nn.color)},{deep:!0}),{state:Nn,advancePanelShow:Bn,onBack:In,onCompactChange:Un,onAlphaChange:Hn,onHueChange:Xn,onBoardChange:Gn,onLightChange:ei,onInputChange:nr,previewStyle:Ln,historyColors:Pn}}}),Xt=_n=>(pushScopeId("data-v-0d5bef46"),_n=_n(),popScopeId(),_n),qt={class:"vc-fk-colorPicker"},Ft={class:"vc-fk-colorPicker__inner"},Yt={class:"vc-fk-colorPicker__header"},Ut=Xt(()=>createBaseVNode("div",{class:"back"},null,-1)),jt=[Ut];function Zt(_n,Cn,$n,Nn,Bn,Ln){const In=resolveComponent("Palette"),Pn=resolveComponent("Board"),Dn=resolveComponent("Hue"),Un=resolveComponent("Lightness"),Hn=resolveComponent("Alpha"),Xn=resolveComponent("Display"),Gn=resolveComponent("History");return openBlock(),createElementBlock("div",qt,[createBaseVNode("div",Ft,[createBaseVNode("div",Yt,[_n.advancePanelShow?(openBlock(),createElementBlock("span",{key:0,style:{cursor:"pointer"},onClick:Cn[0]||(Cn[0]=(...ei)=>_n.onBack&&_n.onBack(...ei))},jt)):createCommentVNode("",!0)]),_n.advancePanelShow?createCommentVNode("",!0):(openBlock(),createBlock(In,{key:0,onChange:_n.onCompactChange},null,8,["onChange"])),_n.advancePanelShow?(openBlock(),createBlock(Pn,{key:1,color:_n.state.color,onChange:_n.onBoardChange},null,8,["color","onChange"])):createCommentVNode("",!0),_n.advancePanelShow?(openBlock(),createBlock(Dn,{key:2,color:_n.state.color,onChange:_n.onHueChange},null,8,["color","onChange"])):createCommentVNode("",!0),_n.advancePanelShow?createCommentVNode("",!0):(openBlock(),createBlock(Un,{key:3,color:_n.state.color,onChange:_n.onLightChange},null,8,["color","onChange"])),_n.disableAlpha?createCommentVNode("",!0):(openBlock(),createBlock(Hn,{key:4,color:_n.state.color,onChange:_n.onAlphaChange},null,8,["color","onChange"])),createVNode(Xn,{color:_n.state.color,"disable-alpha":_n.disableAlpha},null,8,["color","disable-alpha"]),_n.disableHistory?createCommentVNode("",!0):(openBlock(),createBlock(Gn,{key:5,round:_n.roundHistory,colors:_n.historyColors,onChange:_n.onCompactChange},null,8,["round","colors","onChange"]))])])}const we=X(Gt,[["render",Zt],["__scopeId","data-v-0d5bef46"]]),Jt=defineComponent({name:"ChromeColorPicker",components:{Display:be,Alpha:he,Board:fe,Hue:ve,History:Ce},props:{color:C$1.instanceOf(R),disableHistory:C$1.bool.def(!1),roundHistory:C$1.bool.def(!1),disableAlpha:C$1.bool.def(!1)},emits:["update:color","change"],setup(_n,{emit:Cn}){const $n=_n.color||new R,Nn=reactive({color:$n,hex:$n.toHexString(),rgb:$n.toRgbString()}),Bn=computed(()=>({background:Nn.rgb})),Ln=useLocalStorage(de,[],{}),In=useDebounceFn(()=>{if(_n.disableHistory)return;const Xn=Nn.color.toRgbString();if(Ln.value=Ln.value.filter(Gn=>!tinycolor.equals(Gn,Xn)),!Ln.value.includes(Xn)){for(;Ln.value.length>ge;)Ln.value.pop();Ln.value.unshift(Xn)}},500),Pn=Xn=>{Nn.color.alpha=Xn},Dn=Xn=>{Nn.color.hue=Xn},Un=(Xn,Gn)=>{Nn.color.saturation=Xn,Nn.color.brightness=Gn},Hn=Xn=>{Xn!=="advance"&&(Nn.color.hex=Xn)};return whenever(()=>_n.color,Xn=>{Xn&&(Nn.color=Xn)},{deep:!0}),whenever(()=>Nn.color,()=>{Nn.hex=Nn.color.hex,Nn.rgb=Nn.color.toRgbString(),In(),Cn("update:color",Nn.color),Cn("change",Nn.color)},{deep:!0}),{state:Nn,previewStyle:Bn,historyColors:Ln,onAlphaChange:Pn,onHueChange:Dn,onBoardChange:Un,onCompactChange:Hn}}}),Qt={class:"vc-chrome-colorPicker"},xt={class:"vc-chrome-colorPicker-body"},eo={class:"chrome-controls"},to={class:"chrome-sliders"};function oo(_n,Cn,$n,Nn,Bn,Ln){const In=resolveComponent("Board"),Pn=resolveComponent("Hue"),Dn=resolveComponent("Alpha"),Un=resolveComponent("Display"),Hn=resolveComponent("History");return openBlock(),createElementBlock("div",Qt,[createVNode(In,{round:!0,hide:!1,color:_n.state.color,onChange:_n.onBoardChange},null,8,["color","onChange"]),createBaseVNode("div",xt,[createBaseVNode("div",eo,[createBaseVNode("div",to,[createVNode(Pn,{size:"small",color:_n.state.color,onChange:_n.onHueChange},null,8,["color","onChange"]),_n.disableAlpha?createCommentVNode("",!0):(openBlock(),createBlock(Dn,{key:0,size:"small",color:_n.state.color,onChange:_n.onAlphaChange},null,8,["color","onChange"]))])]),createVNode(Un,{color:_n.state.color,"disable-alpha":_n.disableAlpha},null,8,["color","disable-alpha"]),_n.disableHistory?createCommentVNode("",!0):(openBlock(),createBlock(Hn,{key:0,round:_n.roundHistory,colors:_n.historyColors,onChange:_n.onCompactChange},null,8,["round","colors","onChange"]))])])}const He=X(Jt,[["render",oo],["__scopeId","data-v-33636434"]]),ye="Vue3ColorPickerProvider",no=(_n,Cn)=>{const $n=_n.getBoundingClientRect(),Nn=$n.left+$n.width/2,Bn=$n.top+$n.height/2,Ln=Math.abs(Nn-Cn.clientX),In=Math.abs(Bn-Cn.clientY),Pn=Math.sqrt(Math.pow(Ln,2)+Math.pow(In,2)),Dn=In/Pn,Un=Math.acos(Dn);let Hn=Math.floor(180/(Math.PI/Un));return Cn.clientX>Nn&&Cn.clientY>Bn&&(Hn=180-Hn),Cn.clientX==Nn&&Cn.clientY>Bn&&(Hn=180),Cn.clientX>Nn&&Cn.clientY==Bn&&(Hn=90),Cn.clientX<Nn&&Cn.clientY>Bn&&(Hn=180+Hn),Cn.clientX<Nn&&Cn.clientY==Bn&&(Hn=270),Cn.clientX<Nn&&Cn.clientY<Bn&&(Hn=360-Hn),Hn};let ce=!1;const ao=(_n,Cn)=>{const $n=function(Bn){var Ln;(Ln=Cn.drag)==null||Ln.call(Cn,Bn)},Nn=function(Bn){var Ln;document.removeEventListener("mousemove",$n,!1),document.removeEventListener("mouseup",Nn,!1),document.onselectstart=null,document.ondragstart=null,ce=!1,(Ln=Cn.end)==null||Ln.call(Cn,Bn)};_n&&_n.addEventListener("mousedown",Bn=>{var Ln;ce||(document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",$n,!1),document.addEventListener("mouseup",Nn,!1),ce=!0,(Ln=Cn.start)==null||Ln.call(Cn,Bn))})},ro={angle:{type:Number,default:0},size:{type:Number,default:16,validator:_n=>_n>=16},borderWidth:{type:Number,default:1,validator:_n=>_n>=1},borderColor:{type:String,default:"#666"}},lo=defineComponent({name:"Angle",props:ro,emits:["update:angle","change"],setup(_n,{emit:Cn}){const $n=ref(null),Nn=ref(0);watch(()=>_n.angle,Pn=>{Nn.value=Pn});const Bn=()=>{let Pn=Number(Nn.value);isNaN(Pn)||(Pn=Pn>360||Pn<0?_n.angle:Pn,Nn.value=Pn===360?0:Pn,Cn("update:angle",Nn.value),Cn("change",Nn.value))},Ln=computed(()=>({width:_n.size+"px",height:_n.size+"px",borderWidth:_n.borderWidth+"px",borderColor:_n.borderColor,transform:`rotate(${Nn.value}deg)`})),In=Pn=>{$n.value&&(Nn.value=no($n.value,Pn)%360,Bn())};return onMounted(()=>{const Pn={drag:Dn=>{In(Dn)},end:Dn=>{In(Dn)}};$n.value&&ao($n.value,Pn)}),()=>createVNode("div",{class:"bee-angle"},[createVNode("div",{class:"bee-angle__round",ref:$n,style:Ln.value},null)])}}),so=defineComponent({name:"GradientColorPicker",components:{Angle:lo,Display:be,Alpha:he,Palette:Ve,Board:fe,Hue:ve,Lightness:Ie,History:Ce},props:{startColor:C$1.instanceOf(R).isRequired,endColor:C$1.instanceOf(R).isRequired,startColorStop:C$1.number.def(0),endColorStop:C$1.number.def(100),angle:C$1.number.def(0),type:C$1.oneOf(["linear","radial"]).def("linear"),disableHistory:C$1.bool.def(!1),roundHistory:C$1.bool.def(!1),disableAlpha:C$1.bool.def(!1),pickerType:C$1.oneOf(["fk","chrome"]).def("fk")},emits:["update:startColor","update:endColor","update:angle","update:startColorStop","update:endColorStop","startColorChange","endColorChange","advanceChange","angleChange","startColorStopChange","endColorStopChange","typeChange"],setup(_n,{emit:Cn}){const $n=reactive({startActive:!0,startColor:_n.startColor,endColor:_n.endColor,startColorStop:_n.startColorStop,endColorStop:_n.endColorStop,angle:_n.angle,type:_n.type,startColorRgba:_n.startColor.toRgbString(),endColorRgba:_n.endColor.toRgbString()}),Nn=inject(ye),Bn=ref(_n.pickerType==="chrome"),Ln=ref(),In=ref(),Pn=ref();watch(()=>[_n.startColor,_n.endColor,_n.angle],mi=>{$n.startColor=mi[0],$n.endColor=mi[1],$n.angle=mi[2]}),watch(()=>_n.type,mi=>{$n.type=mi});const Dn=computed({get:()=>$n.startActive?$n.startColor:$n.endColor,set:mi=>{if($n.startActive){$n.startColor=mi;return}$n.endColor=mi}}),Un=computed(()=>{if(Pn.value&&Ln.value){const mi=$n.startColorStop/100,_i=Pn.value.getBoundingClientRect(),yi=Ln.value.offsetWidth;return Math.round(mi*(_i.width-yi)+yi/2)}return 0}),Hn=computed(()=>{if(Pn.value&&In.value){const mi=$n.endColorStop/100,_i=Pn.value.getBoundingClientRect(),yi=In.value.offsetWidth;return Math.round(mi*(_i.width-yi)+yi/2)}return 0}),Xn=computed(()=>{let mi=`background: linear-gradient(${$n.angle}deg, ${$n.startColorRgba} ${$n.startColorStop}%, ${$n.endColorRgba} ${$n.endColorStop}%)`;return $n.type==="radial"&&(mi=`background: radial-gradient(circle, ${$n.startColorRgba} ${$n.startColorStop}%, ${$n.endColorRgba} ${$n.endColorStop}%)`),mi}),Gn=mi=>{var _i;if($n.startActive=!0,Pn.value&&Ln.value){const yi=(_i=Pn.value)==null?void 0:_i.getBoundingClientRect();let Fi=mi.clientX-yi.left;Fi=Math.max(Ln.value.offsetWidth/2,Fi),Fi=Math.min(Fi,yi.width-Ln.value.offsetWidth/2),$n.startColorStop=Math.round((Fi-Ln.value.offsetWidth/2)/(yi.width-Ln.value.offsetWidth)*100),Cn("update:startColorStop",$n.startColorStop),Cn("startColorStopChange",$n.startColorStop)}},ei=mi=>{var _i;if($n.startActive=!1,Pn.value&&In.value){const yi=(_i=Pn.value)==null?void 0:_i.getBoundingClientRect();let Fi=mi.clientX-yi.left;Fi=Math.max(In.value.offsetWidth/2,Fi),Fi=Math.min(Fi,yi.width-In.value.offsetWidth/2),$n.endColorStop=Math.round((Fi-In.value.offsetWidth/2)/(yi.width-In.value.offsetWidth)*100),Cn("update:endColorStop",$n.endColorStop),Cn("endColorStopChange",$n.endColorStop)}},nr=mi=>{const _i=mi.target,yi=parseInt(_i.value.replace("°",""));isNaN(yi)||($n.angle=yi%360),Cn("update:angle",$n.angle),Cn("angleChange",$n.angle)},ni=mi=>{$n.angle=mi,Cn("update:angle",$n.angle),Cn("angleChange",$n.angle)},ai=mi=>{mi==="advance"?(Bn.value=!0,Cn("advanceChange",!0)):(Dn.value.hex=mi,Cn("advanceChange",!1)),$i()},si=mi=>{Dn.value.alpha=mi,$i()},gi=mi=>{Dn.value.hue=mi,$i()},Si=(mi,_i)=>{Dn.value.saturation=mi,Dn.value.brightness=_i,$i()},ri=mi=>{Dn.value.lightness=mi,$i()},Ei=()=>{$i()},$i=()=>{$n.startActive?(Cn("update:startColor",$n.startColor),Cn("startColorChange",$n.startColor)):(Cn("update:endColor",$n.endColor),Cn("endColorChange",$n.endColor))},zn=()=>{Bn.value=!1,Cn("advanceChange",!1)},li=()=>{$n.type=$n.type==="linear"?"radial":"linear",Cn("typeChange",$n.type)},oi=useLocalStorage(de,[],{}),ui=useDebounceFn(()=>{if(_n.disableHistory)return;const mi=Dn.value.toRgbString();if(oi.value=oi.value.filter(_i=>!tinycolor.equals(_i,mi)),!oi.value.includes(mi)){for(;oi.value.length>ge;)oi.value.pop();oi.value.unshift(mi)}},500);return tryOnMounted(()=>{In.value&&Ln.value&&(Vn.triggerDragEvent(In.value,{drag:mi=>{ei(mi)},end:mi=>{ei(mi)}}),Vn.triggerDragEvent(Ln.value,{drag:mi=>{Gn(mi)},end:mi=>{Gn(mi)}}))}),whenever(()=>$n.startColor,mi=>{$n.startColorRgba=mi.toRgbString()},{deep:!0}),whenever(()=>$n.endColor,mi=>{$n.endColorRgba=mi.toRgbString()},{deep:!0}),whenever(()=>Dn.value,()=>{ui()},{deep:!0}),{startGradientRef:Ln,stopGradientRef:In,colorRangeRef:Pn,state:$n,currentColor:Dn,getStartColorLeft:Un,getEndColorLeft:Hn,gradientBg:Xn,advancePanelShow:Bn,onDegreeBlur:nr,onCompactChange:ai,onAlphaChange:si,onHueChange:gi,onBoardChange:Si,onLightChange:ri,historyColors:oi,onBack:zn,onDegreeChange:ni,onDisplayChange:Ei,onTypeChange:li,lang:Nn==null?void 0:Nn.lang}}}),Me=_n=>(pushScopeId("data-v-1e7e32e5"),_n=_n(),popScopeId(),_n),io={class:"vc-gradient-picker"},co={class:"vc-gradient-picker__header"},uo={class:"vc-gradient__types"},go={class:"vc-gradient-picker__body"},ho={class:"vc-color-range",ref:"colorRangeRef"},po={class:"vc-color-range__container"},fo={class:"vc-gradient__stop__container"},vo=["title"],Co=Me(()=>createBaseVNode("span",{class:"vc-gradient__stop--inner"},null,-1)),bo=[Co],yo=["title"],_o=Me(()=>createBaseVNode("span",{class:"vc-gradient__stop--inner"},null,-1)),mo=[_o],So={class:"vc-picker-degree-input vc-degree-input"},ko={class:"vc-degree-input__control"},$o=["value"],wo={class:"vc-degree-input__panel"},Ho={class:"vc-degree-input__disk"};function Bo(_n,Cn,$n,Nn,Bn,Ln){var In,Pn;const Dn=resolveComponent("Angle"),Un=resolveComponent("Board"),Hn=resolveComponent("Hue"),Xn=resolveComponent("Palette"),Gn=resolveComponent("Lightness"),ei=resolveComponent("Alpha"),nr=resolveComponent("Display"),ni=resolveComponent("History");return openBlock(),createElementBlock("div",io,[createBaseVNode("div",co,[createBaseVNode("div",null,[withDirectives(createBaseVNode("div",{class:"back",style:{cursor:"pointer"},onClick:Cn[0]||(Cn[0]=(...ai)=>_n.onBack&&_n.onBack(...ai))},null,512),[[vShow,_n.pickerType==="fk"&&_n.advancePanelShow]])]),createBaseVNode("div",uo,[(openBlock(),createElementBlock(Fragment,null,renderList(["linear","radial"],ai=>createBaseVNode("div",{class:normalizeClass(["vc-gradient__type",{active:_n.state.type===ai}]),key:ai,onClick:Cn[1]||(Cn[1]=(...si)=>_n.onTypeChange&&_n.onTypeChange(...si))},toDisplayString(_n.lang?_n.lang[ai]:ai),3)),64))])]),createBaseVNode("div",go,[createBaseVNode("div",ho,[createBaseVNode("div",po,[createBaseVNode("div",{class:"vc-background",style:normalizeStyle(_n.gradientBg)},null,4),createBaseVNode("div",fo,[createBaseVNode("div",{class:normalizeClass(["vc-gradient__stop",{"vc-gradient__stop--current":_n.state.startActive}]),ref:"startGradientRef",title:(In=_n.lang)==null?void 0:In.start,style:normalizeStyle({left:_n.getStartColorLeft+"px"})},bo,14,vo),createBaseVNode("div",{class:normalizeClass(["vc-gradient__stop",{"vc-gradient__stop--current":!_n.state.startActive}]),ref:"stopGradientRef",title:(Pn=_n.lang)==null?void 0:Pn.end,style:normalizeStyle({left:_n.getEndColorLeft+"px"})},mo,14,yo)])])],512),createBaseVNode("div",So,[createBaseVNode("div",ko,[createBaseVNode("input",{value:_n.state.angle,onBlur:Cn[2]||(Cn[2]=(...ai)=>_n.onDegreeBlur&&_n.onDegreeBlur(...ai))},null,40,$o),createTextVNode("deg ")]),createBaseVNode("div",wo,[createBaseVNode("div",Ho,[createVNode(Dn,{angle:_n.state.angle,"onUpdate:angle":Cn[3]||(Cn[3]=ai=>_n.state.angle=ai),size:40,onChange:_n.onDegreeChange},null,8,["angle","onChange"])])])])]),_n.advancePanelShow?(openBlock(),createBlock(Un,{key:0,color:_n.currentColor,onChange:_n.onBoardChange},null,8,["color","onChange"])):createCommentVNode("",!0),_n.advancePanelShow?(openBlock(),createBlock(Hn,{key:1,color:_n.currentColor,onChange:_n.onHueChange},null,8,["color","onChange"])):createCommentVNode("",!0),_n.advancePanelShow?createCommentVNode("",!0):(openBlock(),createBlock(Xn,{key:2,onChange:_n.onCompactChange},null,8,["onChange"])),_n.advancePanelShow?createCommentVNode("",!0):(openBlock(),createBlock(Gn,{key:3,color:_n.currentColor,onChange:_n.onLightChange},null,8,["color","onChange"])),_n.disableAlpha?createCommentVNode("",!0):(openBlock(),createBlock(ei,{key:4,color:_n.currentColor,onChange:_n.onAlphaChange},null,8,["color","onChange"])),createVNode(nr,{color:_n.currentColor,"disable-alpha":_n.disableAlpha,onChange:_n.onDisplayChange},null,8,["color","disable-alpha","onChange"]),_n.disableHistory?createCommentVNode("",!0):(openBlock(),createBlock(ni,{key:5,round:_n.roundHistory,colors:_n.historyColors,onChange:_n.onCompactChange},null,8,["round","colors","onChange"]))])}const Be=X(so,[["render",Bo],["__scopeId","data-v-1e7e32e5"]]),Ro=defineComponent({name:"WrapContainer",props:{theme:C$1.oneOf(["white","black"]).def("white"),showTab:C$1.bool.def(!1),activeKey:C$1.oneOf(["pure","gradient"]).def("pure")},emits:["update:activeKey","change"],setup(_n,{emit:Cn}){const $n=reactive({activeKey:_n.activeKey}),Nn=inject(ye),Bn=Ln=>{$n.activeKey=Ln,Cn("update:activeKey",Ln),Cn("change",Ln)};return whenever(()=>_n.activeKey,Ln=>{$n.activeKey=Ln}),{state:$n,onActiveKeyChange:Bn,lang:Nn==null?void 0:Nn.lang}}}),Ao={class:"vc-colorpicker--container"},Po={key:0,class:"vc-colorpicker--tabs"},Vo={class:"vc-colorpicker--tabs__inner"},Io={class:"vc-btn__content"},Mo={class:"vc-btn__content"};function Ko(_n,Cn,$n,Nn,Bn,Ln){var In,Pn;return openBlock(),createElementBlock("div",{class:normalizeClass(["vc-colorpicker",_n.theme])},[createBaseVNode("div",Ao,[_n.showTab?(openBlock(),createElementBlock("div",Po,[createBaseVNode("div",Vo,[createBaseVNode("div",{class:normalizeClass(["vc-colorpicker--tabs__btn",{"vc-btn-active":_n.state.activeKey==="pure"}]),onClick:Cn[0]||(Cn[0]=Dn=>_n.onActiveKeyChange("pure"))},[createBaseVNode("button",null,[createBaseVNode("div",Io,toDisplayString((In=_n.lang)==null?void 0:In.pure),1)])],2),createBaseVNode("div",{class:normalizeClass(["vc-colorpicker--tabs__btn",{"vc-btn-active":_n.state.activeKey==="gradient"}]),onClick:Cn[1]||(Cn[1]=Dn=>_n.onActiveKeyChange("gradient"))},[createBaseVNode("button",null,[createBaseVNode("div",Mo,toDisplayString((Pn=_n.lang)==null?void 0:Pn.gradient),1)])],2),createBaseVNode("div",{class:"vc-colorpicker--tabs__bg",style:normalizeStyle({width:"50%",left:`calc(${_n.state.activeKey==="gradient"?50:0}%)`})},null,4)])])):createCommentVNode("",!0),renderSlot(_n.$slots,"default",{},void 0,!0)])],2)}const Lo=X(Ro,[["render",Ko],["__scopeId","data-v-0492277d"]]),Eo={start:"Start",end:"End",pure:"Pure",gradient:"Gradient",linear:"linear",radial:"radial"},No={start:"开始",end:"结束",pure:"纯色",gradient:"渐变",linear:"线性",radial:"径向"},Wo={En:Eo,"ZH-cn":No},Do={isWidget:C$1.bool.def(!1),pickerType:C$1.oneOf(["fk","chrome"]).def("fk"),shape:C$1.oneOf(["circle","square"]).def("square"),pureColor:{type:[String,Object],default:"#000000"},gradientColor:C$1.string.def("linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(0, 0, 0, 1) 100%)"),format:{type:String,default:"rgb"},disableAlpha:C$1.bool.def(!1),disableHistory:C$1.bool.def(!1),roundHistory:C$1.bool.def(!1),useType:C$1.oneOf(["pure","gradient","both"]).def("pure"),activeKey:C$1.oneOf(["pure","gradient"]).def("pure"),lang:{type:String,default:"ZH-cn"},zIndex:C$1.number.def(9999),pickerContainer:{type:String||HTMLElement,default:"body"},debounce:C$1.number.def(100),theme:C$1.oneOf(["white","black"]).def("white")},To=defineComponent({name:"ColorPicker",components:{FkColorPicker:we,ChromeColorPicker:He,GradientColorPicker:Be,WrapContainer:Lo},inheritAttrs:!1,props:Do,emits:["update:pureColor","pureColorChange","update:gradientColor","gradientColorChange","update:activeKey","activeKeyChange"],setup(_n,{emit:Cn}){provide(ye,{lang:computed(()=>Wo[_n.lang||"ZH-cn"])});const $n=reactive({pureColor:_n.pureColor||"",activeKey:_n.useType==="gradient"?"gradient":_n.activeKey,isAdvanceMode:!1}),Nn=new R("#000"),Bn=new R("#000"),Ln=new R($n.pureColor),In=reactive({startColor:Nn,endColor:Bn,startColorStop:0,endColorStop:100,angle:0,type:"linear",gradientColor:_n.gradientColor}),Pn=ref(Ln),Dn=ref(!1),Un=ref(null),Hn=ref(null);let Xn=null;const Gn=computed(()=>({background:$n.activeKey!=="gradient"?tinycolor($n.pureColor).toRgbString():In.gradientColor})),ei=computed(()=>$n.activeKey==="gradient"?Be.name:_n.pickerType==="fk"?we.name:He.name),nr=oi=>{$n.isAdvanceMode=oi},ni=computed(()=>{const oi={disableAlpha:_n.disableAlpha,disableHistory:_n.disableHistory,roundHistory:_n.roundHistory,pickerType:_n.pickerType};return $n.activeKey==="gradient"?{...oi,startColor:In.startColor,endColor:In.endColor,angle:In.angle,type:In.type,startColorStop:In.startColorStop,endColorStop:In.endColorStop,onStartColorChange:ui=>{In.startColor=ui,Si()},onEndColorChange:ui=>{In.endColor=ui,Si()},onStartColorStopChange:ui=>{In.startColorStop=ui,Si()},onEndColorStopChange:ui=>{In.endColorStop=ui,Si()},onAngleChange:ui=>{In.angle=ui,Si()},onTypeChange:ui=>{In.type=ui,Si()},onAdvanceChange:nr}:{...oi,disableAlpha:_n.disableAlpha,disableHistory:_n.disableHistory,roundHistory:_n.roundHistory,color:Pn.value,onChange:$i,onAdvanceChange:nr}}),ai=()=>{Dn.value=!0,Xn?Xn.update():Ei()},si=()=>{Dn.value=!1},gi=()=>{var oi,ui,mi,_i;try{const[yi]=parse(In.gradientColor);if(yi&&yi.type.includes("gradient")&&yi.colorStops.length>=2){const Fi=yi.colorStops[0],ta=yi.colorStops[1];In.startColorStop=Number((oi=Fi.length)==null?void 0:oi.value)||0,In.endColorStop=Number((ui=ta.length)==null?void 0:ui.value)||0,yi.type==="linear-gradient"&&((mi=yi.orientation)==null?void 0:mi.type)==="angular"&&(In.angle=Number((_i=yi.orientation)==null?void 0:_i.value)||0),In.type=yi.type.split("-")[0];const[qo,Ci,Ri,Hi]=Fi.value,[aa,sa,Pi,Ki]=ta.value;In.startColor=new R({r:Number(qo),g:Number(Ci),b:Number(Ri),a:Number(Hi)}),In.endColor=new R({r:Number(aa),g:Number(sa),b:Number(Pi),a:Number(Ki)})}}catch(yi){console.log(`[Parse Color]: ${yi}`)}},Si=useDebounceFn(()=>{const oi=ri();try{In.gradientColor=stringify(oi),Cn("update:gradientColor",In.gradientColor),Cn("gradientColorChange",In.gradientColor)}catch(ui){console.log(ui)}},_n.debounce),ri=()=>{const oi=[],ui=In.startColor.RGB.map(yi=>yi.toString()),mi=In.endColor.RGB.map(yi=>yi.toString()),_i=[{type:"rgba",value:[ui[0],ui[1],ui[2],ui[3]],length:{value:In.startColorStop+"",type:"%"}},{type:"rgba",value:[mi[0],mi[1],mi[2],mi[3]],length:{value:In.endColorStop+"",type:"%"}}];return In.type==="linear"?oi.push({type:"linear-gradient",orientation:{type:"angular",value:In.angle+""},colorStops:_i}):In.type==="radial"&&oi.push({type:"radial-gradient",orientation:[{type:"shape",value:"circle"}],colorStops:_i}),oi},Ei=()=>{Un.value&&Hn.value&&(Xn=createPopper(Un.value,Hn.value,{placement:"auto",modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"flip",options:{allowedAutoPlacements:["top","bottom","left","right"],rootBoundary:"viewport"}}]}))},$i=oi=>{Pn.value=oi,$n.pureColor=oi.toString(_n.format),zn()},zn=useDebounceFn(()=>{Cn("update:pureColor",$n.pureColor),Cn("pureColorChange",$n.pureColor)},_n.debounce);onClickOutside(Hn,()=>{si()});const li=oi=>{$n.activeKey=oi,Cn("update:activeKey",oi),Cn("activeKeyChange",oi)};return tryOnMounted(()=>{gi()}),whenever(()=>_n.gradientColor,oi=>{oi!=In.gradientColor&&(In.gradientColor=oi)}),whenever(()=>In.gradientColor,()=>{gi()}),whenever(()=>_n.activeKey,oi=>{$n.activeKey=oi}),whenever(()=>_n.useType,oi=>{$n.activeKey!=="gradient"&&oi==="gradient"?$n.activeKey="gradient":$n.activeKey="pure"}),whenever(()=>_n.pureColor,oi=>{tinycolor.equals(oi,$n.pureColor)||($n.pureColor=oi,Pn.value=new R(oi))},{deep:!0}),{colorCubeRef:Un,pickerRef:Hn,showPicker:Dn,colorInstance:Pn,getBgColorStyle:Gn,onColorChange:$i,onShowPicker:ai,onActiveKeyChange:li,getComponentName:ei,getBindArgs:ni,state:$n}}});function Oo(_n,Cn,$n,Nn,Bn,Ln){const In=resolveComponent("WrapContainer");return openBlock(),createElementBlock(Fragment,null,[_n.isWidget?(openBlock(),createBlock(In,{key:0,"active-key":_n.state.activeKey,"onUpdate:activeKey":Cn[0]||(Cn[0]=Pn=>_n.state.activeKey=Pn),"show-tab":_n.useType==="both",onChange:_n.onActiveKeyChange,style:normalizeStyle({zIndex:_n.zIndex}),theme:_n.theme},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(_n.getComponentName),mergeProps({key:_n.getComponentName},_n.getBindArgs),null,16))]),_:1},8,["active-key","show-tab","onChange","style","theme"])):createCommentVNode("",!0),_n.isWidget?createCommentVNode("",!0):(openBlock(),createElementBlock(Fragment,{key:1},[createBaseVNode("div",{class:normalizeClass(["vc-color-wrap transparent",{round:_n.shape==="circle"}]),ref:"colorCubeRef"},[createBaseVNode("div",{class:"current-color",style:normalizeStyle(_n.getBgColorStyle),onClick:Cn[1]||(Cn[1]=(...Pn)=>_n.onShowPicker&&_n.onShowPicker(...Pn))},null,4)],2),(openBlock(),createBlock(Teleport,{to:_n.pickerContainer},[withDirectives(createBaseVNode("div",{ref:"pickerRef",style:normalizeStyle({zIndex:_n.zIndex})},[_n.showPicker?(openBlock(),createBlock(In,{key:0,"show-tab":_n.useType==="both"&&!_n.state.isAdvanceMode,"active-key":_n.state.activeKey,"onUpdate:activeKey":Cn[2]||(Cn[2]=Pn=>_n.state.activeKey=Pn),onChange:_n.onActiveKeyChange,theme:_n.theme},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(_n.getComponentName),mergeProps({key:_n.getComponentName},_n.getBindArgs),null,16))]),_:1},8,["show-tab","active-key","onChange","theme"])):createCommentVNode("",!0)],4),[[vShow,_n.showPicker]])],8,["to"]))],64))],64)}const ae=X(To,[["render",Oo],["__scopeId","data-v-11de56b7"]]),_sfc_main$d={name:"PhystonPrompt",components:{HighlightPrompt,VueNumberInput,IconSvg,ColorPicker:ae},mixins:[LanguageMixin,HeaderMixin,DropMixin,TagMixin,GroupTagsMixin],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},autoRemoveLoraBeforeComma:{type:Boolean,default:!1},autoRemoveLoraAfterComma:{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:()=>[]},extraNetworksWidth:{type:Number,default:100},extraNetworksHeight:{type:Number,default:120},hideGroupTags:{type:Boolean,default:!1},groupTagsColor:{type:Object,default:()=>({})},groupTagsColorKeyCache:{type:Object,default:()=>({})},blacklist:{type:Object,default:()=>({})},cancelBlacklistConfirm:{type:Boolean,default:!1},hotkey:{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:blacklist","click:hotkey","click:selectTheme","click:switchTheme","click:showAbout","click:selectLanguage","click:showHistory","click:showFavorite","refreshFavorites","click:showChatgpt","update:hideGroupTags","update:groupTagsColor","update:blacklist","showExtraNetworks","hideExtraNetworks","update:extraNetworksWidth","update:extraNetworksHeight"],data(){return{prompt:"",counterText:"0/75",tags:[],sortable:null,droping:!1,loading:{},editing:{},isEditing:!1}},computed:{isEnglish(){return this.languageCode==="en_US"},translateApiItem(){return common$1.getTranslateApiItem(this.translateApis,this.translateApi)}},watch:{loras:{handler(){this.tags.forEach(_n=>{this._setTagClass(_n)})},immediate:!1},lycos:{handler(){this.tags.forEach(_n=>{this._setTagClass(_n)})},immediate:!1},embeddings:{handler(){this.tags.forEach(_n=>{this._setTagClass(_n)})},immediate:!1}},mounted(){this.$appMode&&(this.counterText=""),this.$nextTick(()=>{this.initSortable();let _n=[1e3,3e3,5e3,1e4,2e4,3e4],Cn=!1;_n.forEach($n=>{Cn||setTimeout(()=>{Cn||typeof addAutocompleteToArea=="function"&&typeof TAC_CFG=="object"&&TAC_CFG&&TAC_CFG.activeIn&&(Cn=!0,addAutocompleteToArea(this.$refs.promptTagAppend))},$n)}),this.init()})},methods:{init(){this.tags=[],this.onTextareaChange();let _n=this.textarea.value;setInterval(()=>{let Cn=this.textarea.value;_n!==Cn&&document.activeElement!==this.textarea&&(_n=Cn,this.onTextareaChange(!0))},500)},onTextareaChange(_n){this.onTextareaChangeTimeId&&clearTimeout(this.onTextareaChangeTimeId),this.onTextareaChangeTimeId=setTimeout(()=>{this._onTextareaChange(_n)},100)},_onTextareaChange(_n){console.log("onTextareaChange",_n);const Cn=this.textarea.parentElement.getElementsByClassName("autocompleteParent");if(Cn.length){if(Cn[0].style.display!=="none")return}else{const Pn=this.textarea.parentElement.getElementsByClassName("autocompleteResults");if(Pn.length>0&&Pn[0].style.display!=="none")return}let $n=this.textarea.value.trim();if($n===this.prompt.trim())return;let Nn=common$1.splitTags($n,this.autoBreakBeforeWrap,this.autoBreakAfterWrap),Bn=[];this.tags.forEach((Pn,Dn)=>{Pn.disabled&&Bn.push({tag:Pn,index:Dn})}),Bn.forEach(({tag:Pn,index:Dn})=>{Nn.splice(Dn,0,Pn.value)});let Ln=[],In=this.tags;this.tags=[];for(let Pn in Nn){let Dn=Nn[Pn];if(Dn===`
|
||
`)this._appendTag(`
|
||
`,`
|
||
`,!1,-1,"wrap");else{let Un=!1;for(let ei of In)if(ei.value===Dn){Un=ei;break}const Hn=Un?Un.localValue:"",Xn=Un?Un.disabled:!1,Gn=this._appendTag(Dn,Hn,Xn,-1,"text");!Un&&Gn!==-1&&Ln.push(Gn)}}if(this.autoTranslateToLocal&&_n){let Pn=!(this.tagCompleteFile&&this.onlyCsvOnAuto);Pn=!1,this.translates(Ln,!0,Pn).finally(()=>{this.updateTags()})}else this.updateTags()},_setTextareaFocus(){if(typeof get_uiCurrentTabContent!="function"||typeof activePromptTextarea!="object")return;const _n=get_uiCurrentTabContent();if(!_n)return;let Cn=_n.id.replace("tab_","");Cn&&(activePromptTextarea[Cn]=this.textarea)},copy(_n){this.$copyText(_n).then(()=>{this.$toastr.success(this.getLang("success"))}).catch(()=>{this.$toastr.error(this.getLang("failed"))})},genPrompt(_n=null,Cn=!1){_n=_n||this.tags;let $n=[],Nn=_n.length;return _n.forEach((Bn,Ln)=>{let In="";if(typeof Bn.type=="string"&&Bn.type==="wrap")In=`
|
||
`;else{let Pn=common$1.replaceTag(Bn.value);Pn!==Bn.value&&(Bn.value=Pn,this._setTag(Bn));let Dn=common$1.replaceTag(Bn.localValue);if(Dn!==Bn.localValue&&(Bn.localValue=Dn),(Bn.weightNum>0||Bn.weightNum<0)&&(Bn.weightNum=Number(parseFloat(Bn.weightNum).toFixed(6)),Bn.value=Bn.value.replace(common$1.weightNumRegex,"$1:"+Bn.weightNum),Bn.localValue!==""&&(Bn.localValue=Bn.localValue.replace(common$1.weightNumRegex,"$1:"+Bn.weightNum))),Bn.disabled&&!Cn)return;let Un=","+(this.autoRemoveSpace?"":" "),Hn=Un,Xn=null,Gn=!1,ei=!1,nr=!1,ni=!1;if(Ln+1<Nn&&(Xn=_n[Ln+1],typeof Xn.type=="string"&&Xn.type==="wrap"?Gn=!0:Xn.value==="BREAK"?ei=!0:Xn.isLora?nr=!0:Xn.isLyco&&(ni=!0)),Gn){const ai=[" BREAK"," ADDCOL"," ADDROW"," ADDCOMM"," ADDBASE"];for(const si of ai)Bn.value.endsWith(si)&&(Un="")}else ei?Un=" ":(nr||ni)&&this.autoRemoveLoraBeforeComma&&(Un=this.autoRemoveSpace?"":" ");Bn.value==="BREAK"&&(Gn?Un="":Un=" "),this.autoRemoveLastComma&&Ln+1===Nn&&(Un=""),Un===Hn&&(Bn.isLora||Bn.isLyco)&&this.autoRemoveLoraAfterComma&&(Un=this.autoRemoveSpace?"":" "),In=Bn.value+Un}In&&$n.push(In)}),$n.length<=0?"":$n.join("")},updatePrompt(){let _n=[],Cn=this.tags.length;for(let $n=0;$n<Cn;$n++)if(this.tags[$n].value==="BREAK"){if(this.autoBreakBeforeWrap&&$n-1>=0){let Bn=this.tags[$n-1];typeof Bn.type=="string"&&Bn.type==="wrap"||_n.push($n)}if(this.autoBreakAfterWrap&&$n+1<Cn){let Bn=this.tags[$n+1];typeof Bn.type=="string"&&Bn.type==="wrap"||_n.push($n+1)}}for(let $n=0;$n<_n.length;$n++){let Nn=_n[$n]+$n;this._appendTag(`
|
||
`,`
|
||
`,!1,Nn,"wrap")}if(_n.length){this.updateTags();return}this.prompt=this.genPrompt(),this.textarea.value=this.prompt,common$1.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 _n=this.steps.querySelector('input[type="number"]').value;this.$appMode||this.gradioAPI.tokenCounter(this.textarea.value,_n).then(Cn=>{const{token_count:$n,max_length:Nn}=Cn;this.counterText=`${$n}/${Nn}`}),this.tags.length&&this.gradioAPI.getLatestHistory(this.historyKey).then(Cn=>{Cn&&Cn.prompt===this.prompt?this.gradioAPI.setHistory(this.historyKey,Cn.id,this.tags,this.prompt,Cn.name).then($n=>{}).catch($n=>{}):this.gradioAPI.pushHistory(this.historyKey,this.tags,this.prompt).then($n=>{}).catch($n=>{})}).catch(Cn=>{}),this.$nextTick(()=>{for(let Cn=0;Cn<this.$refs.promptTagsList.children.length;Cn++){let $n=this.$refs.promptTagsList.children[Cn];if(!$n.classList.contains("prompt-tag"))continue;let Nn=$n.getAttribute("data-id"),Bn=this.$refs.promptTagWrap.find(Ln=>Ln.getAttribute("data-id")===Nn);Bn&&$n.parentNode.insertBefore(Bn,$n.nextElementSibling)}})},onResize(){this.tags.forEach(_n=>{this._setTagHeight(_n)})},initSortable(){this.sortable=Sortable.create(this.$refs.promptTagsList,{animation:150,handle:".prompt-tag-value",draggable:".prompt-tag",onEnd:_n=>{if(this.dropTags.length){let $n=_n.item,Nn=$n.getAttribute("data-id"),Bn=this._getDropTagsEle(),Ln=Bn.findIndex(Dn=>Dn.getAttribute("data-id")===Nn),In=Bn.slice(0,Ln),Pn=Bn.slice(Ln+1).reverse();In.forEach(Dn=>{common$1.insertBefore(Dn,$n)}),Pn.forEach(Dn=>{common$1.insertAfter(Dn,$n)})}this._dropOver(),this.droping=!1;let Cn=[];for(let $n=0;$n<this.$refs.promptTagsList.children.length;$n++){let Nn=this.$refs.promptTagsList.children[$n];if(!Nn.classList.contains("prompt-tag"))continue;let Bn=Nn.getAttribute("data-id");Cn.push(Bn)}this.tags=this.tags.sort(($n,Nn)=>Cn.indexOf($n.id)-Cn.indexOf(Nn.id)),this.$forceUpdate(),this.updateTags()},onChoose:_n=>{if(console.log(_n),this.dropTags.length){let $n=_n.item.getAttribute("data-id");this._getDropTagsEle().forEach(Bn=>{Bn.getAttribute("data-id")!==$n&&(Bn.style.display="block",Bn.style.transition="transform 0.2s",Bn.style.transform="scale(0)",setTimeout(()=>{Bn.style.transition="",Bn.style.transform="",Bn.style.display="none"},300))})}this.editing={},this.isEditing=!1,this.droping=!0},onUnchoose:_n=>{if(this.droping=null,this.dropTags.length){let $n=_n.item.getAttribute("data-id");this._getDropTagsEle().forEach(Bn=>{Bn.getAttribute("data-id")!==$n&&(Bn.style.display="")})}}})},useHistory(_n){this.tags=[],_n.tags.forEach(Cn=>{this._appendTag(Cn.value,Cn.localValue,Cn.disabled,-1,Cn.type||"text")}),this.updateTags()},useFavorite(_n){this.useHistory(_n)},useChatgpt(_n){let Cn=common$1.splitTags(_n,this.autoBreakBeforeWrap,this.autoBreakAfterWrap);this.tags=[],Cn.forEach($n=>{this._appendTag($n,"",!1,-1,"text")}),this.updateTags()},onPromptMainClick(){this.onTextareaChange(!0),this._setTextareaFocus(),this.showExtendId=""},translates(_n,Cn=!1,$n=!0){return new Promise((Nn,Bn)=>{if(this.languageCode==="en_US"||this.languageCode==="en_GB"){Nn();return}let Ln=[],In=(ei,nr)=>{ei.forEach(ni=>{Pn(ni,nr)})},Pn=(ei,nr)=>{this.canOneTranslate?(this.loading[ei.id+"_local"]=nr,this.loading[ei.id+"_en"]=nr):ei.toLocal?this.loading[ei.id+"_local"]=nr:this.loading[ei.id+"_en"]=nr},Dn=(ei,nr)=>{ei.toLocal?ei.localValue=nr:(ei.localValue=ei.value,ei.value=nr),this._setTagById(ei.id,ei.value,ei.localValue)},Un=ei=>ei.isLora&&ei.loraExists?this.getExtraNetworkFullName(ei.loraName,"lora"):ei.isLyco&&ei.lycoExists?this.getExtraNetworkFullName(ei.lycoName,"lycoris"):ei.isEmbedding?this.getExtraNetworkFullName(ei.value,"textual inversion"):ei.value;_n.forEach(ei=>{var ai,si,gi,Si;let nr=this.tags[ei],ni=Un(nr);if(ni!==nr.value){nr.localValue=ni;return}if(common$1.canTranslate(nr.value)){if(nr.isLora){if((ai=this.blacklist.translate)!=null&&ai.includes(nr.loraName.toLowerCase()))return}else if(nr.isLyco){if((si=this.blacklist.translate)!=null&&si.includes(nr.lycoName.toLowerCase()))return}else if(nr.isEmbedding){if((gi=this.blacklist.translate)!=null&&gi.includes(nr.embeddingName.toLowerCase()))return}else if((Si=this.blacklist.translate)!=null&&Si.includes(nr.originalValue.toLowerCase()))return;if(nr.isEnglish=common$1.isEnglishByLangCode(nr.value,this.languageCode),nr.isEnglish===-1)Cn?nr.toLocal=!0:nr.toLocal=!1;else if(nr.isEnglish===0)if(Cn)if(nr.localValue==="")nr.localValue=nr.value,nr.toLocal=!1;else{const ri=nr.value;nr.value=nr.localValue,nr.localValue=ri}else nr.toLocal=!1;else nr.toLocal=!0;Pn(nr,!0),Ln.push(nr)}});const Hn=ei=>{if(ei.length<=0){In(ei,!1),Nn();return}let nr={};ei.forEach((ai,si)=>{let gi=ai.toLocal?"en_US":this.languageCode,Si=ai.toLocal?this.languageCode:"en_US",ri=gi+"."+Si;nr[ri]||(nr[ri]={fromLang:gi,toLang:Si,tags:[]}),nr[ri].tags.push(ai)});const ni=()=>{let ai=nr[Object.keys(nr)[0]];if(!ai){Nn();return}let si=ai.tags.map(gi=>Un(gi));this.gradioAPI.translates(si,ai.fromLang,ai.toLang,this.translateApi,this.translateApiConfig).then(gi=>{gi.success?(gi.translated_text.forEach((ri,Ei)=>{ri=ri.replace(/\.$/,"").trim(),common$1.isEnglish(ri)&&ri!==ri.toUpperCase()&&(ri=ri.toLowerCase());let $i=ai.tags[Ei];ri!==""&&Dn($i,ri),Pn($i,!1)}),delete nr[Object.keys(nr)[0]],ni()):(In(ei,!1),this.$toastr.error(gi.message),Bn(gi.message))}).catch(gi=>{In(ei,!1),this.$toastr.error(gi.message),Bn(gi.message)})};ni()};let Xn=ei=>{console.log("translateByCSV",ei.map(ni=>ni.value),{useNetwork:$n});let nr=[];ei.forEach(ni=>{const ai=common$1.splitTag(ni.value);ai.value!==ni.value&&(ni.value=ai.value,ni.splits=ai),ni.toLocal?nr.push(this.translateToLocalByCSV(ni.value,void 0,void 0,$n)):nr.push(this.translateToEnByCSV(ni.value))}),Promise.all(nr).then(ni=>{let ai=[];ni.forEach((si,gi)=>{let Si=ei[gi];Si.splits&&(Si.value=Si.splits.left+Si.value+Si.splits.right),si===""?ai.push(Si):(Si.splits&&(si=Si.splits.left+si+Si.splits.right),Pn(Si,!1),Dn(Si,si))}),console.log("No translated keywords: ",ai.map(si=>si.value)),$n?Hn(ai):(In(ai,!1),Nn())}).catch(ni=>{In(ei,!1),this.$toastr.error(ni),Bn(ni)})},Gn=ei=>{console.log("translateByGroupTags",ei.map(ni=>ni.value),{useNetwork:$n});let nr=[];ei.forEach(ni=>{const ai=common$1.splitTag(ni.value);ai.value!==ni.value&&(ni.value=ai.value,ni.splits=ai),ni.toLocal?nr.push(this.translateToLocalByGroupTags(ni.value,$n)):nr.push(this.translateToEnByGroupTags(ni.value,$n))}),Promise.allSettled(nr).then(ni=>{let ai=[],si=[];if(ni.forEach((gi,Si)=>{var Ei;let ri=ei[Si];ri.splits&&(ri.value=ri.splits.left+ri.value+ri.splits.right),gi.status!=="fulfilled"&&ai.push(gi.reason),!((Ei=gi.value)!=null&&Ei.length)||gi.status!=="fulfilled"?si.push(ri):(ri.splits&&(gi.value=ri.splits.left+gi.value+ri.splits.right),Pn(ri,!1),Dn(ri,gi.value))}),console.log("No translated keywords: ",si.map(gi=>gi.value)),this.tagCompleteFile)Xn(si);else{if(ai.length){In(ei,!1),this.$toastr.error(ai[0]),Bn(ai[0]);return}$n?Hn(si):(In(si,!1),Nn())}}).catch(ni=>{In(ei,!1),this.$toastr.error(ni),Bn(ni)})};this.groupTagsTranslate?Gn(Ln):this.tagCompleteFile?Xn(Ln):$n?Hn(Ln):(In(Ln,!1),Nn())})}}},_hoisted_1$d=["name"],_hoisted_2$c={class:"prompt-header"},_hoisted_3$c={class:"prompt-header-title"},_hoisted_4$c={class:"prompt-header-extend"},_hoisted_5$b={class:"extend-content"},_hoisted_6$a={class:"extend-btn-group"},_hoisted_7$9={key:0,class:"gradio-checkbox hover-scale-120"},_hoisted_8$9=["checked"],_hoisted_9$8={class:"gradio-checkbox hover-scale-120"},_hoisted_10$8=["checked"],_hoisted_11$8={class:"gradio-checkbox hover-scale-120"},_hoisted_12$8=["checked"],_hoisted_13$8={class:"gradio-checkbox hover-scale-120"},_hoisted_14$8=["checked"],_hoisted_15$8={class:"gradio-checkbox"},_hoisted_16$7={value:"disabled"},_hoisted_17$7={value:"last"},_hoisted_18$7=["label"],_hoisted_19$7=["value"],_hoisted_20$7={class:"prompt-header-extend"},_hoisted_21$7={class:"extend-content"},_hoisted_22$6={class:"extend-btn-group"},_hoisted_23$6={key:0,class:"prompt-header-extend"},_hoisted_24$5={class:"extend-content"},_hoisted_25$5={class:"extend-btn-group"},_hoisted_26$5={class:"prompt-header-extend"},_hoisted_27$5={class:"extend-content"},_hoisted_28$4={class:"extend-btn-group"},_hoisted_29$3={key:1,class:"prompt-header-extend"},_hoisted_30$2={class:"extend-content"},_hoisted_31$2={class:"extend-btn-group"},_hoisted_32$2={class:"prompt-header-extend prompt-append"},_hoisted_33$2={class:"extend-content"},_hoisted_34$2={class:"gradio-checkbox hover-scale-120"},_hoisted_35$2={key:0},_hoisted_36$2=["checked"],_hoisted_37$2={key:1},_hoisted_38$2=["checked"],_hoisted_39$2=["placeholder"],_hoisted_40$2=["onClick"],_hoisted_41$2={class:"arrow-right"},_hoisted_42$1=["onMouseleave","onMouseenter","onClick"],_hoisted_43$1={key:0,class:"tags-name"},_hoisted_44$1={key:1,class:"tags-name"},_hoisted_45$1={class:"tags-detail"},_hoisted_46$1={class:"tags-list"},_hoisted_47$1={key:0,class:"item-wrap"},_hoisted_48$1={key:1,class:"tags-item"},_hoisted_49$1={class:"item-tag-value"},_hoisted_50$1={class:"item-tag-local-value"},_hoisted_51$1={class:"prompt-tags-list",ref:"promptTagsList"},_hoisted_52$1=["data-id"],_hoisted_53$1=["onMouseenter","onMousemove","onMouseleave"],_hoisted_54$1={class:"prompt-tag-edit"},_hoisted_55$1=["onClick","onDblclick","onContextmenu","innerHTML"],_hoisted_56$1=["placeholder","value","onBlur","onKeydown","onChange"],_hoisted_57$1=["onClick"],_hoisted_58$1=["onClick"],_hoisted_59$1=["onClick"],_hoisted_60$1=["onClick"],_hoisted_61$1=["onClick"],_hoisted_62$1=["onClick"],_hoisted_63$1=["onClick"],_hoisted_64=["onClick"],_hoisted_65=["onClick"],_hoisted_66=["onClick"],_hoisted_67=["onClick"],_hoisted_68={class:"prompt-local-language"},_hoisted_69=["onClick"],_hoisted_70={class:"local-language"},_hoisted_71=["data-id"],_hoisted_72={class:"btns-title"},_hoisted_73={class:"group-tabs"},_hoisted_74={class:"group-header",ref:"groupTabsHeader"},_hoisted_75=["onClick","data-name"],_hoisted_76={class:"group-body"},_hoisted_77={key:0,class:"sub-group-header"},_hoisted_78=["onClick","data-name"],_hoisted_79={key:1,class:"sub-group-body"},_hoisted_80={key:0,class:"group-tags"},_hoisted_81=["onClick","onMouseenter"],_hoisted_82=["src"],_hoisted_83={class:"extra-network-name"},_hoisted_84={key:0,class:"extra-network-loading"},_hoisted_85=["onClick"],_hoisted_86={class:"tag-en"},_hoisted_87={key:0,class:"tags-footer"},_hoisted_88={class:"tags-size"},_hoisted_89={class:"tags-size-item"},_hoisted_90=["value"],_hoisted_91={class:"size-title"},_hoisted_92={class:"tags-size-item"},_hoisted_93=["value"],_hoisted_94={class:"size-title"},_hoisted_95={key:1,class:"tags-footer"},_hoisted_96={class:"tags-color"},_hoisted_97={class:"tags-color-picker hover-scale-120",unaffected:"true"},_hoisted_98=["onClick"],_hoisted_99=["onClick"],_hoisted_100={class:"tags-copyright"};function _sfc_render$d(_n,Cn,$n,Nn,Bn,Ln){const In=resolveComponent("icon-svg"),Pn=resolveComponent("vue-number-input"),Dn=resolveComponent("color-picker"),Un=resolveComponent("highlight-prompt"),Hn=resolveDirective("tooltip"),Xn=resolveDirective("animate");return openBlock(),createElementBlock("div",{class:"physton-prompt",name:$n.name},[createBaseVNode("div",{class:normalizeClass(["prompt-main",$n.hidePanel?"fold":""]),onClick:Cn[62]||(Cn[62]=(...Gn)=>Ln.onPromptMainClick&&Ln.onPromptMainClick(...Gn))},[createBaseVNode("div",_hoisted_2$c,[withDirectives((openBlock(),createElementBlock("div",{class:"prompt-unfold",onClick:Cn[0]||(Cn[0]=(...Gn)=>_n.onUnfoldClick&&_n.onUnfoldClick(...Gn))},[createVNode(In,{class:"hover-scale-120",name:"unfold"})])),[[Hn,_n.getLang($n.hidePanel?"show_panel":"hide_panel")]]),createBaseVNode("div",_hoisted_3$c,toDisplayString($n.neg?_n.getLang("negative_prompt"):_n.getLang("prompt")),1),withDirectives(createBaseVNode("div",{class:"prompt-header-counter"},"("+toDisplayString(Bn.counterText)+")",513),[[vShow,Bn.counterText]]),createBaseVNode("div",_hoisted_4$c,[createBaseVNode("div",_hoisted_5$b,[createBaseVNode("div",_hoisted_6$a,[withDirectives((openBlock(),createElementBlock("div",{class:"extend-btn-item",onClick:Cn[1]||(Cn[1]=Gn=>_n.$emit("click:selectLanguage",Gn))},[createVNode(In,{class:"hover-scale-120",name:"i18n"})])),[[Hn,"Language: "+_n.langName]]),createBaseVNode("div",{class:normalizeClass(["extend-btn-item",$n.isLatestVersion?"":"red-dot"])},[withDirectives(createVNode(In,{class:"hover-scale-120",name:"setting"},null,512),[[Hn,_n.getLang("setting_desc")]]),withDirectives((openBlock(),createElementBlock("div",{class:"setting-box",onMouseenter:Cn[15]||(Cn[15]=(...Gn)=>_n.onSettingBoxMouseEnter&&_n.onSettingBoxMouseEnter(...Gn))},[Ln.translateApiItem.name&&!Ln.isEnglish?withDirectives((openBlock(),createElementBlock("div",{key:0,class:"extend-btn-item",onClick:Cn[2]||(Cn[2]=Gn=>_n.$emit("click:translateApi",Gn))},[createVNode(In,{class:"hover-scale-120",name:"api"})])),[[Hn,_n.getLang("translate_api")+": "+Ln.translateApiItem.name]]):createCommentVNode("",!0),withDirectives((openBlock(),createElementBlock("div",{class:"extend-btn-item",onClick:Cn[3]||(Cn[3]=Gn=>_n.$emit("click:promptFormat",Gn))},[createVNode(In,{class:"hover-scale-120",name:"format"})])),[[Hn,_n.getLang("prompt_format")]]),withDirectives((openBlock(),createElementBlock("div",{class:"extend-btn-item",onClick:Cn[4]||(Cn[4]=Gn=>_n.$emit("click:blacklist",Gn))},[createVNode(In,{class:"hover-scale-120",name:"blacklist"})])),[[Hn,_n.getLang("keywords_blacklist")]]),withDirectives((openBlock(),createElementBlock("div",{class:"extend-btn-item",onClick:Cn[5]||(Cn[5]=Gn=>_n.$emit("click:hotkey",Gn))},[createVNode(In,{class:"hover-scale-120",name:"hotkey"})])),[[Hn,_n.getLang("hotkey_setting")]]),withDirectives((openBlock(),createElementBlock("div",{class:"extend-btn-item",onClick:Cn[6]||(Cn[6]=Gn=>_n.$emit("click:selectTheme",Gn))},[createVNode(In,{class:"hover-scale-120",name:"theme"})])),[[Hn,_n.getLang("theme_extension")]]),withDirectives((openBlock(),createElementBlock("div",{class:"extend-btn-item",onClick:Cn[7]||(Cn[7]=Gn=>_n.$emit("click:switchTheme",Gn))},[createVNode(In,{class:"hover-scale-120",name:$n.theme==="dark"?"sun":"moon"},null,8,["name"])])),[[Hn,_n.getLang($n.theme==="dark"?"switch_to_light_theme":"switch_to_dark_theme")]]),withDirectives((openBlock(),createElementBlock("div",{class:normalizeClass(["extend-btn-item",$n.isLatestVersion?"":"red-dot"]),onClick:Cn[8]||(Cn[8]=Gn=>_n.$emit("click:showAbout",Gn))},[createVNode(In,{class:"hover-scale-120",name:"about"})],2)),[[Hn,_n.getLang("about_desc")]]),Ln.isEnglish?createCommentVNode("",!0):(openBlock(),createElementBlock(Fragment,{key:1},[$n.canOneTranslate?(openBlock(),createElementBlock("div",_hoisted_7$9,[withDirectives((openBlock(),createElementBlock("label",null,[createBaseVNode("input",{type:"checkbox",name:"auto_translate",value:"1",checked:$n.autoTranslate,onChange:Cn[9]||(Cn[9]=Gn=>_n.$emit("update:autoTranslate",Gn.target.checked))},null,40,_hoisted_8$9),createVNode(In,{name:"translate"})])),[[Hn,_n.getLang("auto_translate")]])])):(openBlock(),createElementBlock(Fragment,{key:1},[createBaseVNode("div",_hoisted_9$8,[withDirectives((openBlock(),createElementBlock("label",null,[createBaseVNode("input",{type:"checkbox",name:"auto_translate_to_local_language",value:"1",checked:$n.autoTranslateToLocal,onChange:Cn[10]||(Cn[10]=Gn=>_n.$emit("update:autoTranslateToLocal",Gn.target.checked))},null,40,_hoisted_10$8),createVNode(In,{name:"translate"})])),[[Hn,_n.getLang("auto_translate_to_local_language")]])]),createBaseVNode("div",_hoisted_11$8,[withDirectives((openBlock(),createElementBlock("label",null,[createBaseVNode("input",{type:"checkbox",name:"auto_translate_to_english",value:"1",checked:$n.autoTranslateToEnglish,onChange:Cn[11]||(Cn[11]=Gn=>_n.$emit("update:autoTranslateToEnglish",Gn.target.checked))},null,40,_hoisted_12$8),createVNode(In,{name:"english"})])),[[Hn,_n.getLang("auto_translate_to_english")]])])],64))],64)),createBaseVNode("div",_hoisted_13$8,[withDirectives((openBlock(),createElementBlock("label",null,[createBaseVNode("input",{type:"checkbox",name:"enable_tooltip",value:"1",checked:$n.enableTooltip,onChange:Cn[12]||(Cn[12]=Gn=>_n.$emit("update:enableTooltip",Gn.target.checked))},null,40,_hoisted_14$8),createVNode(In,{name:"tooltip"})])),[[Hn,_n.getLang("whether_to_enable_tooltip")]])]),createBaseVNode("div",_hoisted_15$8,[withDirectives((openBlock(),createElementBlock("label",null,[withDirectives(createBaseVNode("select",{"onUpdate:modelValue":Cn[13]||(Cn[13]=Gn=>_n.autoInputPrompt=Gn),onChange:Cn[14]||(Cn[14]=(...Gn)=>_n.onAutoInputPromptChange&&_n.onAutoInputPromptChange(...Gn))},[createBaseVNode("option",_hoisted_16$7,toDisplayString(_n.getLang("auto_input_prompt"))+": "+toDisplayString(_n.getLang("disabled")),1),createBaseVNode("option",_hoisted_17$7,toDisplayString(_n.getLang("last_input_prompt")),1),(openBlock(!0),createElementBlock(Fragment,null,renderList(_n.getCurrentTypeFavorites(),Gn=>(openBlock(),createElementBlock("optgroup",{key:Gn.key,label:_n.getLang("favorite")+" / "+_n.getLang(Gn.name)},[(openBlock(!0),createElementBlock(Fragment,null,renderList(Gn.list,ei=>(openBlock(),createElementBlock("option",{value:ei.id},toDisplayString(ei.name||ei.prompt.substring(0,40)),9,_hoisted_19$7))),256))],8,_hoisted_18$7))),128))],544),[[vModelSelect,_n.autoInputPrompt]])])),[[Hn,_n.getLang("auto_input_prompt")]])])],32)),[[Xn,"fadeIn"]])],2)])])]),createBaseVNode("div",_hoisted_20$7,[createBaseVNode("div",_hoisted_21$7,[createBaseVNode("div",_hoisted_22$6,[withDirectives((openBlock(),createElementBlock("div",{class:"extend-btn-item",ref:"historyButton",onClick:Cn[16]||(Cn[16]=Gn=>_n.$emit("click:showHistory",Gn))},[createVNode(In,{class:"hover-scale-120",name:"history"})])),[[Hn,_n.getLang("history")]]),withDirectives((openBlock(),createElementBlock("div",{class:"extend-btn-item",ref:"favoriteButton",onClick:Cn[17]||(Cn[17]=Gn=>_n.$emit("click:showFavorite",Gn))},[createVNode(In,{class:"hover-scale-120",name:"favorite"})])),[[Hn,_n.getLang("favorite")]])])])]),Ln.isEnglish?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_23$6,[createBaseVNode("div",_hoisted_24$5,[createBaseVNode("div",_hoisted_25$5,[$n.canOneTranslate?withDirectives((openBlock(),createElementBlock("div",{key:0,class:"extend-btn-item",onClick:Cn[18]||(Cn[18]=(...Gn)=>_n.onTranslatesToLocalClick&&_n.onTranslatesToLocalClick(...Gn))},[Bn.loading.all_local?createCommentVNode("",!0):(openBlock(),createBlock(In,{key:0,class:"hover-scale-120",name:"translate"})),Bn.loading.all_local?(openBlock(),createBlock(In,{key:1,class:"hover-scale-120",name:"loading"})):createCommentVNode("",!0)])),[[Hn,_n.getLang("one_translate_all_keywords")]]):(openBlock(),createElementBlock(Fragment,{key:1},[withDirectives((openBlock(),createElementBlock("div",{class:"extend-btn-item",onClick:Cn[19]||(Cn[19]=(...Gn)=>_n.onTranslatesToLocalClick&&_n.onTranslatesToLocalClick(...Gn))},[Bn.loading.all_local?createCommentVNode("",!0):(openBlock(),createBlock(In,{key:0,class:"hover-scale-120",name:"translate"})),Bn.loading.all_local?(openBlock(),createBlock(In,{key:1,class:"hover-scale-120",name:"loading"})):createCommentVNode("",!0)])),[[Hn,_n.getLang("translate_keywords_to_local_language")]]),withDirectives((openBlock(),createElementBlock("div",{class:"extend-btn-item",onClick:Cn[20]||(Cn[20]=(...Gn)=>_n.onTranslatesToEnglishClick&&_n.onTranslatesToEnglishClick(...Gn))},[Bn.loading.all_en?createCommentVNode("",!0):(openBlock(),createBlock(In,{key:0,class:"hover-scale-120",name:"english"})),Bn.loading.all_en?(openBlock(),createBlock(In,{key:1,class:"hover-scale-120",name:"loading"})):createCommentVNode("",!0)])),[[Hn,_n.getLang("translate_all_keywords_to_english")]])],64))])])])),createBaseVNode("div",_hoisted_26$5,[createBaseVNode("div",_hoisted_27$5,[createBaseVNode("div",_hoisted_28$4,[withDirectives((openBlock(),createElementBlock("div",{class:"extend-btn-item",onClick:Cn[21]||(Cn[21]=(...Gn)=>_n.onCopyAllTagsClick&&_n.onCopyAllTagsClick(...Gn))},[createVNode(In,{class:"hover-scale-120",name:"copy"})])),[[Hn,_n.getLang("copy_keywords_to_clipboard")]]),withDirectives((openBlock(),createElementBlock("div",{class:"extend-btn-item",onClick:Cn[22]||(Cn[22]=(...Gn)=>_n.onDeleteAllTagsClick&&_n.onDeleteAllTagsClick(...Gn))},[createVNode(In,{class:"hover-scale-120",name:"remove"})])),[[Hn,_n.getLang("delete_all_keywords")]])])])]),$n.neg?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_29$3,[createBaseVNode("div",_hoisted_30$2,[createBaseVNode("div",_hoisted_31$2,[withDirectives((openBlock(),createElementBlock("div",{class:"extend-btn-item",onClick:Cn[23]||(Cn[23]=Gn=>_n.$emit("click:showChatgpt",Gn))},[createVNode(In,{class:"hover-scale-120",name:"chatgpt"})])),[[Hn,_n.getLang("use_chatgpt_gen_prompts")]])])])])),createBaseVNode("div",_hoisted_32$2,[createBaseVNode("div",_hoisted_33$2,[createBaseVNode("div",_hoisted_34$2,[$n.hideDefaultInput?withDirectives((openBlock(),createElementBlock("label",_hoisted_35$2,[createBaseVNode("input",{type:"checkbox",name:"hide_default_input",value:"1",checked:!$n.hideDefaultInput,onChange:Cn[24]||(Cn[24]=Gn=>_n.$emit("update:hideDefaultInput",!Gn.target.checked))},null,40,_hoisted_36$2),createVNode(In,{name:"input"})])),[[Hn,_n.getLang("show_default_input_box")]]):withDirectives((openBlock(),createElementBlock("label",_hoisted_37$2,[createBaseVNode("input",{type:"checkbox",name:"hide_default_input",value:"1",checked:!$n.hideDefaultInput,onChange:Cn[25]||(Cn[25]=Gn=>_n.$emit("update:hideDefaultInput",!Gn.target.checked))},null,40,_hoisted_38$2),createVNode(In,{name:"input"})])),[[Hn,_n.getLang("hide_default_input_box")]])]),withDirectives(createBaseVNode("textarea",{type:"text",class:"scroll-hide svelte-4xt1ch input-tag-append",ref:"promptTagAppend",placeholder:_n.getLang("please_enter_new_keyword"),onFocus:Cn[26]||(Cn[26]=(...Gn)=>_n.onAppendTagFocus&&_n.onAppendTagFocus(...Gn)),onBlur:Cn[27]||(Cn[27]=(...Gn)=>_n.onAppendTagBlur&&_n.onAppendTagBlur(...Gn)),onKeyup:Cn[28]||(Cn[28]=(...Gn)=>_n.onAppendTagKeyUp&&_n.onAppendTagKeyUp(...Gn)),onKeydown:Cn[29]||(Cn[29]=(...Gn)=>_n.onAppendTagKeyDown&&_n.onAppendTagKeyDown(...Gn))},null,40,_hoisted_39$2),[[Hn,_n.getLang("enter_to_add")]]),withDirectives(createBaseVNode("div",{class:"prompt-append-list",ref:"promptAppendList",style:normalizeStyle(_n.appendListStyle)},[(openBlock(!0),createElementBlock(Fragment,null,renderList(_n.appendList,(Gn,ei)=>(openBlock(),createElementBlock("div",{key:Gn.type,class:normalizeClass(["prompt-append-group",_n.appendListSelected===ei?"selected":""])},[createBaseVNode("div",{class:"append-group-name",onClick:nr=>_n.onAppendGroupClick(ei,null,nr)},[Gn.icon==="wrap"?(openBlock(),createBlock(In,{key:0,class:"name-icon",name:"wrap"})):Gn.icon==="history"?(openBlock(),createBlock(In,{key:1,class:"name-icon",name:"history"})):Gn.icon==="favorite"?(openBlock(),createBlock(In,{key:2,class:"name-icon",name:"favorite"})):createCommentVNode("",!0),createTextVNode(" "+toDisplayString(_n.appendListItemName(Gn))+" ",1),withDirectives(createBaseVNode("span",_hoisted_41$2,null,512),[[vShow,Gn.children.length>0]])],8,_hoisted_40$2),createVNode(Transition,{name:"fade"},{default:withCtx(()=>[withDirectives(createBaseVNode("div",{class:"append-group-list",ref_for:!0,ref:"promptAppendListChildren"},[(openBlock(!0),createElementBlock(Fragment,null,renderList(Gn.children,(nr,ni)=>(openBlock(),createElementBlock("div",{key:ni,ref_for:!0,ref:"promptAppendListChild",class:normalizeClass(["append-item",_n.appendListChildSelected===ni?"selected":""]),onMouseleave:ai=>_n.onAppendListChildMouseLeave(ei,ni,ai),onMouseenter:ai=>_n.onAppendListChildMouseEnter(ei,ni,ai),onClick:ai=>_n.onAppendGroupClick(ei,ni,ai)},[Gn.type==="favorite"||Gn.type==="history"?(openBlock(),createElementBlock(Fragment,{key:0},[nr.name?(openBlock(),createElementBlock("div",_hoisted_43$1,toDisplayString(nr.name),1)):(openBlock(),createElementBlock("div",_hoisted_44$1,toDisplayString(nr.prompt),1))],64)):createCommentVNode("",!0)],42,_hoisted_42$1))),128))],512),[[vShow,Gn.children.length>0]])]),_:2},1024),createVNode(Transition,{name:"fade"},{default:withCtx(()=>[withDirectives(createBaseVNode("div",_hoisted_45$1,[createBaseVNode("div",_hoisted_46$1,[(openBlock(!0),createElementBlock(Fragment,null,renderList(_n.appendListChildItemTags,(nr,ni)=>(openBlock(),createElementBlock(Fragment,{key:ni},[nr.type&&nr.type==="wrap"?(openBlock(),createElementBlock("div",_hoisted_47$1)):(openBlock(),createElementBlock("div",_hoisted_48$1,[createBaseVNode("div",_hoisted_49$1,toDisplayString(nr.value),1),createBaseVNode("div",_hoisted_50$1,toDisplayString(nr.localValue),1)]))],64))),128))])],512),[[vShow,_n.appendListSelected!==null&&_n.appendListChildSelected!==null&&_n.appendListSelected===ei&&(Gn.type==="favorite"||Gn.type==="history")]])]),_:2},1024)],2))),128))],4),[[vShow,_n.showAppendList]])])])]),createBaseVNode("div",{class:normalizeClass(["prompt-tags",Bn.droping?"droping":"",_n.dropIsSelecting||_n.dropIsEnd&&_n.dropTags.length?"selecting":""]),ref:"promptTags",onMousedown:Cn[54]||(Cn[54]=(...Gn)=>_n.onDropMouseDown&&_n.onDropMouseDown(...Gn)),onMousemove:Cn[55]||(Cn[55]=(...Gn)=>_n.onDropMouseMove&&_n.onDropMouseMove(...Gn)),onMouseup:Cn[56]||(Cn[56]=(...Gn)=>_n.onDropMouseUp&&_n.onDropMouseUp(...Gn))},[createBaseVNode("div",_hoisted_51$1,[(openBlock(!0),createElementBlock(Fragment,null,renderList(Bn.tags,(Gn,ei)=>(openBlock(),createElementBlock("div",{key:Gn.id,class:normalizeClass(["prompt-tag",Gn.disabled?"disabled":"",Gn.type==="wrap"?"wrap-tag":""]),ref_for:!0,ref:"promptTag-"+Gn.id,"data-id":Gn.id},[createBaseVNode("div",{class:"prompt-tag-main",onMouseenter:nr=>_n.onTagMouseEnter(Gn.id),onMousemove:withModifiers(nr=>_n.onTagMouseMove(Gn.id),["stop"]),onMouseleave:withModifiers(nr=>_n.onTagMouseLeave(Gn.id),["stop"])},[createBaseVNode("div",_hoisted_54$1,[Gn.type==="wrap"?withDirectives((openBlock(),createElementBlock("div",{key:0,class:"prompt-tag-value",ref_for:!0,ref:"promptTagValue-"+Gn.id,style:{width:"100%"}},[createVNode(In,{name:"wrap"})])),[[Hn,_n.getLang("line_break_character")+"<br/>"+_n.getLang("drop_to_order")]]):(openBlock(),createElementBlock(Fragment,{key:1},[withDirectives(createBaseVNode("div",{class:normalizeClass(Gn.classes),style:normalizeStyle(_n.getTagColorStyle(Gn)),ref_for:!0,ref:"promptTagValue-"+Gn.id,onClick:nr=>_n.onTagClick(Gn.id,nr),onDblclick:nr=>_n.onTagDblclick(Gn.id),onContextmenu:withModifiers(nr=>_n.onTagRightClick(Gn.id,nr),["right","prevent"]),innerHTML:_n.renderTag(Gn.id)},null,46,_hoisted_55$1),[[vShow,!Bn.editing[Gn.id]],[Hn,Gn.isLora||Gn.isLyco?"":_n.getLang("click_to_edit")+"<br/>"+_n.getLang("dblclick_to_disable")+"<br/>"+_n.getLang("drop_to_order")]]),withDirectives(createBaseVNode("textarea",{type:"text",class:"scroll-hide svelte-4xt1ch input-tag-edit",ref_for:!0,ref:"promptTagEdit-"+Gn.id,placeholder:_n.getLang("enter_to_save"),value:Gn.value,onMousedown:Cn[30]||(Cn[30]=withModifiers(()=>{},["stop"])),onMousemove:Cn[31]||(Cn[31]=withModifiers(()=>{},["stop"])),onMouseup:Cn[32]||(Cn[32]=withModifiers(()=>{},["stop"])),onBlur:nr=>_n.onTagInputBlur(Gn.id),onKeydown:nr=>_n.onTagInputKeyDown(Gn.id,nr),onChange:nr=>_n.onTagInputChange(Gn.id,nr)},null,40,_hoisted_56$1),[[vShow,Bn.editing[Gn.id]]])],64)),createBaseVNode("div",{class:"btn-tag-delete",ref_for:!0,ref:"promptTagDelete-"+Gn.id,onClick:nr=>_n.onDeleteTagClick(Gn.id),onMousedown:Cn[33]||(Cn[33]=withModifiers(()=>{},["stop"])),onMousemove:Cn[34]||(Cn[34]=withModifiers(()=>{},["stop"])),onMouseup:Cn[35]||(Cn[35]=withModifiers(()=>{},["stop"]))},[createVNode(In,{name:"close"})],40,_hoisted_57$1)]),withDirectives((openBlock(),createElementBlock("div",{class:"btn-tag-extend",style:normalizeStyle({display:(Gn.type==="text"||!Gn.type)&&_n.showExtendId===Gn.id&&!this.editing[Gn.id]?"flex":"none"}),onClick:Cn[36]||(Cn[36]=withModifiers(()=>{},["stop"])),onMousedown:Cn[37]||(Cn[37]=withModifiers(()=>{},["stop"])),onMousemove:Cn[38]||(Cn[38]=withModifiers(()=>{},["stop"])),onMouseup:Cn[39]||(Cn[39]=withModifiers(()=>{},["stop"]))},[createVNode(Pn,{class:"input-number",name:"input-number","model-value":Gn.weightNum,center:"",controls:"",min:-100,step:.1,size:"small","onUpdate:modelValue":nr=>_n.onTagWeightNumChange(Gn.id,nr)},null,8,["model-value","onUpdate:modelValue"]),withDirectives((openBlock(),createElementBlock("button",{type:"button",name:"weight-parentheses-inc",onClick:nr=>_n.onIncWeightClick(Gn.id,1)},[createVNode(In,{name:"weight-parentheses-inc"})],8,_hoisted_58$1)),[[Hn,_n.getLang("increase_weight_add_parentheses")]]),withDirectives((openBlock(),createElementBlock("button",{type:"button",name:"weight-parentheses-dec",onClick:nr=>_n.onIncWeightClick(Gn.id,-1)},[createVNode(In,{name:"weight-parentheses-dec"})],8,_hoisted_59$1)),[[Hn,_n.getLang("increase_weight_subtract_parentheses")]]),withDirectives((openBlock(),createElementBlock("button",{type:"button",name:"weight-brackets-inc",onClick:nr=>_n.onDecWeightClick(Gn.id,1)},[createVNode(In,{name:"weight-brackets-inc"})],8,_hoisted_60$1)),[[Hn,_n.getLang("decrease_weight_add_brackets")]]),withDirectives((openBlock(),createElementBlock("button",{type:"button",name:"weight-brackets-dec",onClick:nr=>_n.onDecWeightClick(Gn.id,-1)},[createVNode(In,{name:"weight-brackets-dec"})],8,_hoisted_61$1)),[[Hn,_n.getLang("decrease_weight_subtract_brackets")]]),withDirectives((openBlock(),createElementBlock("button",{type:"button",name:"wrap",onClick:nr=>_n.onWrapTagClick(Gn.id)},[createVNode(In,{name:"wrap"})],8,_hoisted_62$1)),[[Hn,_n.getLang("line_break_character")]]),withDirectives((openBlock(),createElementBlock("button",{type:"button",name:"translate",onClick:nr=>_n.onTranslateToEnglishClick(Gn.id)},[Bn.loading[Gn.id+"_en"]?createCommentVNode("",!0):(openBlock(),createBlock(In,{key:0,name:"english"})),Bn.loading[Gn.id+"_en"]?(openBlock(),createBlock(In,{key:1,name:"loading"})):createCommentVNode("",!0)],8,_hoisted_63$1)),[[Hn,_n.getLang("translate_keyword_to_english")],[vShow,!Ln.isEnglish]]),withDirectives((openBlock(),createElementBlock("button",{type:"button",name:"copy",onClick:nr=>Ln.copy(Gn.value)},[createVNode(In,{name:"copy"})],8,_hoisted_64)),[[Hn,_n.getLang("copy_to_clipboard")]]),withDirectives((openBlock(),createElementBlock("button",{type:"button",name:"favorite",onClick:nr=>_n.onFavoriteTagClick(Gn.id)},[Gn.isFavorite?(openBlock(),createBlock(In,{key:0,name:"favorite-yes"})):createCommentVNode("",!0),Gn.isFavorite?createCommentVNode("",!0):(openBlock(),createBlock(In,{key:1,name:"favorite-no"}))],8,_hoisted_65)),[[Hn,_n.getLang(Gn.isFavorite?"remove_from_favorite":"add_to_favorite")]]),withDirectives((openBlock(),createElementBlock("button",{type:"button",name:"blacklist",onClick:nr=>_n.onBlacklistClick(Gn.id)},[createVNode(In,{name:"blacklist"})],8,_hoisted_66)),[[Hn,_n.getLang("add_blacklist")]]),withDirectives((openBlock(),createElementBlock("button",{type:"button",name:"enable",onClick:nr=>_n.onDisabledTagClick(Gn.id)},[Gn.disabled?createCommentVNode("",!0):(openBlock(),createBlock(In,{key:0,name:"disabled"})),Gn.disabled?(openBlock(),createBlock(In,{key:1,name:"enable"})):createCommentVNode("",!0)],8,_hoisted_67)),[[Hn,_n.getLang(Gn.disabled?"enable_keyword":"disable_keyword")]])],36)),[[Xn,"fadeIn"]])],40,_hoisted_53$1),withDirectives(createBaseVNode("div",_hoisted_68,[withDirectives((openBlock(),createElementBlock("div",{class:"translate-to-local hover-scale-120",onClick:nr=>_n.onTranslateToLocalClick(Gn.id),onMousedown:Cn[40]||(Cn[40]=withModifiers(()=>{},["stop"])),onMousemove:Cn[41]||(Cn[41]=withModifiers(()=>{},["stop"])),onMouseup:Cn[42]||(Cn[42]=withModifiers(()=>{},["stop"]))},[Bn.loading[Gn.id+"_local"]?createCommentVNode("",!0):(openBlock(),createBlock(In,{key:0,name:"translate"})),Bn.loading[Gn.id+"_local"]?(openBlock(),createBlock(In,{key:1,name:"loading"})):createCommentVNode("",!0)],40,_hoisted_69)),[[Hn,_n.getLang("translate_keyword_to_local_language")]]),createBaseVNode("div",_hoisted_70,toDisplayString(Gn.localValue),1)],512),[[vShow,!Ln.isEnglish&&(Gn.type==="text"||!Gn.type)]])],10,_hoisted_52$1))),128)),(openBlock(!0),createElementBlock(Fragment,null,renderList(Bn.tags,(Gn,ei)=>(openBlock(),createElementBlock("div",{key:Gn.id,class:normalizeClass(["prompt-wrap",Gn.type==="wrap"?"wrap-tag":""]),"data-id":Gn.id,ref_for:!0,ref:"promptTagWrap",onMousedown:Cn[43]||(Cn[43]=withModifiers(()=>{},["stop"])),onMousemove:Cn[44]||(Cn[44]=withModifiers(()=>{},["stop"])),onMouseup:Cn[45]||(Cn[45]=withModifiers(()=>{},["stop"]))},null,42,_hoisted_71))),128))],512),createBaseVNode("div",{class:"drop-select-bg",ref:"dropSelectBg",style:normalizeStyle({display:_n.dropIsStart?"block":"none"})},null,4),createBaseVNode("div",{class:"drop-select-box",ref:"dropSelectBox",style:normalizeStyle({display:_n.dropIsSelecting?"block":"none",top:_n.dropArea.top+"px",left:_n.dropArea.left+"px",width:_n.dropArea.width+"px",height:_n.dropArea.height+"px"})},null,4),createBaseVNode("div",{class:"drop-select-btns",ref:"dropSelectBtns",style:normalizeStyle({display:_n.dropIsEnd&&_n.dropTags.length?"flex":"none",top:_n.dropEndY-32+"px",left:_n.dropEndX+"px"}),onMousedown:Cn[51]||(Cn[51]=withModifiers(()=>{},["stop"])),onMousemove:Cn[52]||(Cn[52]=withModifiers(()=>{},["stop"])),onMouseup:Cn[53]||(Cn[53]=withModifiers(()=>{},["stop"]))},[createBaseVNode("div",_hoisted_72,toDisplayString(_n.getLang("batch_operation")),1),withDirectives((openBlock(),createElementBlock("button",{type:"button",onClick:Cn[46]||(Cn[46]=(...Gn)=>_n.onDropCopy&&_n.onDropCopy(...Gn))},[createVNode(In,{name:"copy"})])),[[Hn,_n.getLang("copy_to_clipboard")]]),withDirectives((openBlock(),createElementBlock("button",{type:"button",onClick:Cn[47]||(Cn[47]=(...Gn)=>_n.onDropFavorite&&_n.onDropFavorite(...Gn))},[createVNode(In,{name:"favorite-no"})])),[[Hn,_n.getLang("add_to_favorite")]]),withDirectives((openBlock(),createElementBlock("button",{type:"button",onClick:Cn[48]||(Cn[48]=(...Gn)=>_n.onDropDisable&&_n.onDropDisable(...Gn))},[createVNode(In,{name:"disabled"})])),[[Hn,_n.getLang("disable_keyword")]]),withDirectives((openBlock(),createElementBlock("button",{type:"button",onClick:Cn[49]||(Cn[49]=(...Gn)=>_n.onDropEnable&&_n.onDropEnable(...Gn))},[createVNode(In,{name:"enable"})])),[[Hn,_n.getLang("enable_keyword")]]),createBaseVNode("button",{type:"button",onClick:Cn[50]||(Cn[50]=(...Gn)=>_n.onDropDelete&&_n.onDropDelete(...Gn))},[createVNode(In,{name:"remove"})])],36)],34),_n.groupTagsProcessed.length?withDirectives((openBlock(),createElementBlock("div",{key:0,class:normalizeClass(["show-group-tags",$n.hideGroupTags?"hided":""]),onClick:Cn[57]||(Cn[57]=(...Gn)=>_n.onClickHideGroupTags&&_n.onClickHideGroupTags(...Gn))},[createVNode(In,{class:"hover-scale-120",name:"unfold"})],2)),[[Hn,_n.getLang($n.hideGroupTags?"show_group_tags":"hide_group_tags")]]):createCommentVNode("",!0),createVNode(Transition,{name:"fade"},{default:withCtx(()=>[withDirectives(createBaseVNode("div",_hoisted_73,[createBaseVNode("div",_hoisted_74,[(openBlock(!0),createElementBlock(Fragment,null,renderList(_n.groupTagsProcessed,(Gn,ei)=>(openBlock(),createElementBlock("div",{key:ei,class:normalizeClass(["group-tab",Gn.tabKey==_n.groupTagsActive?"active":""]),onClick:nr=>_n.activeGroupTab(ei),"data-name":Gn.name},toDisplayString(Gn.name),11,_hoisted_75))),128))],512),createBaseVNode("div",_hoisted_76,[(openBlock(!0),createElementBlock(Fragment,null,renderList(_n.groupTagsProcessed,(Gn,ei)=>(openBlock(),createElementBlock("div",{key:ei,class:normalizeClass(["group-main",Gn.tabKey==_n.groupTagsActive?"active":""])},[Gn.tabKey==_n.groupTagsActive?(openBlock(),createElementBlock("div",_hoisted_77,[(openBlock(!0),createElementBlock(Fragment,null,renderList(Gn.groups,(nr,ni)=>(openBlock(),createElementBlock("div",{key:ni,class:normalizeClass([nr.type&&nr.type==="wrap"?"sub-group-tag-wrap":"sub-group-tab",nr.tabKey==_n.subGroupTagsActive?"active":""]),onClick:ai=>_n.activeSubGroupTab(ei,ni),"data-name":nr.name},toDisplayString(nr.name),11,_hoisted_78))),128))])):createCommentVNode("",!0),Gn.tabKey==_n.groupTagsActive?(openBlock(),createElementBlock("div",_hoisted_79,[(openBlock(!0),createElementBlock(Fragment,null,renderList(Gn.groups,(nr,ni)=>(openBlock(),createElementBlock("div",{key:ni,class:normalizeClass(["sub-group-main",nr.tabKey==_n.subGroupTagsActive?"active":""])},[createVNode(Transition,{name:"fade"},{default:withCtx(()=>[nr.tabKey==_n.subGroupTagsActive?(openBlock(),createElementBlock("div",_hoisted_80,[nr.type==="extraNetworks"?(openBlock(!0),createElementBlock(Fragment,{key:0},renderList(nr.datas,ai=>(openBlock(),createElementBlock("div",{class:"group-extra-network",key:ai.name,onClick:si=>_n.onClickGroupTagExtraNetwork(ai,Gn,nr),onMouseenter:si=>_n.onGroupExtraNetworkMouseEnter(si,ai.name),onMousemove:Cn[58]||(Cn[58]=(...si)=>_n.onGroupExtraNetworkMouseMove&&_n.onGroupExtraNetworkMouseMove(...si)),onMouseleave:Cn[59]||(Cn[59]=(...si)=>_n.onGroupExtraNetworkMouseLeave&&_n.onGroupExtraNetworkMouseLeave(...si)),style:normalizeStyle(_n.getGroupTagExtraNetworkStyle(ai))},[createBaseVNode("img",{class:"extra-network-preview",src:ai.preview||"./file=html/card-no-preview.png"},null,8,_hoisted_82),createBaseVNode("div",_hoisted_83,toDisplayString(ai.name),1),ai.loading?(openBlock(),createElementBlock("div",_hoisted_84,[createVNode(In,{name:"loading"})])):createCommentVNode("",!0)],44,_hoisted_81))),128)):(openBlock(!0),createElementBlock(Fragment,{key:1},renderList(nr.tags,(ai,si)=>withDirectives((openBlock(),createElementBlock("div",{class:"tag-item",ref_for:!0,ref:"groupTagItem",onClick:gi=>_n.onClickGroupTag(ai,si,Gn,nr)},[ai&&ai!=si?(openBlock(),createElementBlock(Fragment,{key:0},[createBaseVNode("div",{class:"tag-local",style:normalizeStyle(_n.getGroupTagStyle(Gn.name,nr.name,si))},toDisplayString(ai),5),createBaseVNode("div",_hoisted_86,toDisplayString(si),1)],64)):(openBlock(),createElementBlock("div",{key:1,class:"tag-local",style:normalizeStyle(_n.getGroupTagStyle(Gn.name,nr.name,si))},toDisplayString(si),5))],8,_hoisted_85)),[[Hn,_n.getGroupTagTooltip(ai,si)]])),256))])):createCommentVNode("",!0)]),_:2},1024),Gn.type==="extraNetworks"?(openBlock(),createElementBlock("div",_hoisted_87,[createBaseVNode("div",_hoisted_88,[createBaseVNode("div",_hoisted_89,[createBaseVNode("input",{class:"size-number",type:"number",min:"10",max:"1000",step:"1",value:$n.extraNetworksWidth,onChange:Cn[60]||(Cn[60]=ai=>_n.$emit("update:extraNetworksWidth",ai.target.value))},null,40,_hoisted_90),createBaseVNode("div",_hoisted_91,toDisplayString(this.getLang("width")),1)]),createBaseVNode("div",_hoisted_92,[createBaseVNode("input",{class:"size-number",type:"number",min:"10",max:"1000",step:"1",value:$n.extraNetworksHeight,onChange:Cn[61]||(Cn[61]=ai=>_n.$emit("update:extraNetworksHeight",ai.target.value))},null,40,_hoisted_93),createBaseVNode("div",_hoisted_94,toDisplayString(this.getLang("height")),1)])])])):createCommentVNode("",!0),Gn.type!=="favorite"&&Gn.type!=="extraNetworks"?(openBlock(),createElementBlock("div",_hoisted_95,[createBaseVNode("div",_hoisted_96,[createBaseVNode("div",null,toDisplayString(_n.getLang("tags_color"))+":",1),withDirectives((openBlock(),createElementBlock("div",_hoisted_97,[createVNode(Dn,{theme:$n.theme=="dark"?"black":"white",pureColor:$n.groupTagsColor[_n.getTagsColorKey(Gn.name,nr.name)],"onUpdate:pureColor":ai=>$n.groupTagsColor[_n.getTagsColorKey(Gn.name,nr.name)]=ai,onPureColorChange:ai=>_n.onTagsColorChange(_n.getTagsColorKey(Gn.name,nr.name))},null,8,["theme","pureColor","onUpdate:pureColor","onPureColorChange"])])),[[Hn,$n.groupTagsColor[_n.getTagsColorKey(Gn.name,nr.name)]]]),withDirectives((openBlock(),createElementBlock("div",{class:"tags-color-reset hover-scale-120",onClick:ai=>_n.onClickResetTagsColor(_n.getTagsColorKey(Gn.name,nr.name))},[createVNode(In,{name:"reset"})],8,_hoisted_98)),[[Hn,_n.getLang("reset_default_color")]]),withDirectives((openBlock(),createElementBlock("div",{class:"tags-color-clear hover-scale-120",onClick:ai=>_n.onClickClearTagsColor(_n.getTagsColorKey(Gn.name,nr.name))},[createVNode(In,{name:"clear"})],8,_hoisted_99)),[[Hn,_n.getLang("clear_color")]])]),createBaseVNode("div",_hoisted_100,toDisplayString(_n.getLang("tags-copyright")),1)])):createCommentVNode("",!0)],2))),128))])):createCommentVNode("",!0)],2))),128))])],512),[[vShow,!$n.hideGroupTags&&_n.groupTagsProcessed.length]])]),_:1})],2),createVNode(Un,{ref:"highlightPrompt",textarea:$n.textarea,"hide-default-input":$n.hideDefaultInput},null,8,["textarea","hide-default-input"])],8,_hoisted_1$d)}const PhystonPrompt=_export_sfc(_sfc_main$d,[["render",_sfc_render$d]]),_sfc_main$c={name:"TranslateSetting",components:{IconSvg},mixins:[LanguageMixin],props:{},data(){return{testText:"",translateSuccess:!1,errorMessage:"",translatedText:"",loading:!1,isOpen:!1,configs:[],apiKey:"",tagCompleteFiles:[],tagCompleteFilesLoading:!1,tagCompleteFileKey:"",tagCompleteResults:[],onlyCsvOnAutoValue:!1,groupTagsTranslateValue:!0,mbart50Loading:!1,mbart50Success:!1,mbart50Message:""}},computed:{apiItem(){return common$1.getTranslateApiItem(this.translateApis,this.apiKey)},supportApi(){if(!this.translateApis||this.translateApis.length<=0)return[];let _n=JSON.parse(JSON.stringify(this.translateApis));return _n.forEach(Cn=>{Cn.children.forEach($n=>{$n.disabled=!$n.support[this.languageCode]})}),_n}},mounted(){this.translateSuccess=!1,this.errorMessage="",this.translatedText="",this.loading=!1},emits:["update:translateApi","forceUpdate:translateApi","update:tagCompleteFile","update:onlyCsvOnAuto","update:groupTagsTranslate"],watch:{apiKey:{handler:function(_n,Cn){this.translateSuccess=!1,this.errorMessage="",this.translatedText="",this.loading=!1,this.configs=[],this.gradioAPI.getData("translate_api."+this.apiKey).then($n=>{const Nn=this.apiItem;if(Nn&&Nn.config){for(const Bn of this.apiItem.config)$n?Bn.value=$n[Bn.key]||Bn.default:Bn.value=Bn.default||"",this.configs.push(Bn);console.log(this.configs)}})},immediate:!1}},methods:{open(_n){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=common$1.replaceGlobals(this.testText),this.apiKey=_n,this.isOpen=!0,this.errorMessage="",this.translatedText="",this.loading=!1,this.tagCompleteFileKey=this.tagCompleteFile,this.onlyCsvOnAutoValue=this.onlyCsvOnAuto,this.groupTagsTranslateValue=this.groupTagsTranslate,this.mbart50Success=!1,this.mbart50Message="",this.refreshCSVs()},getItemName(_n){let Cn=_n.name;return Cn=Cn.replace("[Free] ","["+this.getLang("free")+"] "),Cn=Cn.replace("[ApiKey] ","["+this.getLang("apply_for_free")+"] "),Cn},onChangeConfigValue(_n){_n.type==="input"&&_n.value===""&&_n.default&&(_n.value=_n.default)},refreshCSVs(){this.tagCompleteFilesLoading||(this.tagCompleteFilesLoading=!0,this.tagCompleteFiles=[],this.gradioAPI.getCSVs().then(_n=>{if(this.tagCompleteFilesLoading=!1,!(!_n||_n.length<=0)){this.tagCompleteFiles.push({key:"",name:this.getLang("not_enable")});for(const Cn of _n)this.tagCompleteFiles.push({key:Cn.key,name:Cn.key})}}).catch(_n=>{this.tagCompleteFilesLoading=!1}))},onTestClick(){if(this.loading)return;this.translateSuccess=!1,this.errorMessage="",this.translatedText="",this.loading=!0;let _n={};for(const Cn of this.configs)_n[Cn.key]=Cn.value;this.translate(this.testText,"en_US",this.languageCode,this.apiKey,_n).then(Cn=>{Cn.success?(this.translatedText=Cn.translated_text,this.translateSuccess=!0):this.errorMessage=Cn.message,this.loading=!1}).catch(Cn=>{this.errorMessage=Cn.message,this.loading=!1})},translate(_n,Cn,$n,Nn=null,Bn=null){return new Promise(async(Ln,In)=>{Nn=Nn||this.translateApi,Bn=Bn||this.translateApiConfig||{},this.gradioAPI.translate(_n,Cn,$n,Nn,Bn).then(Pn=>{Pn.success?Ln(Pn):In(Pn)}).catch(Pn=>{In(Pn)})})},onSaveClick(){this.isOpen=!1;let _n={};for(const Cn of this.configs)_n[Cn.key]=Cn.value;this.$emit("update:translateApi",this.apiKey),this.$emit("update:tagCompleteFile",this.tagCompleteFileKey),this.$emit("update:onlyCsvOnAuto",this.onlyCsvOnAutoValue),this.$emit("update:groupTagsTranslate",this.groupTagsTranslateValue),this.gradioAPI.setData("translate_api."+this.apiKey,_n).then(Cn=>{this.apiKey===this.translateApi&&this.$emit("forceUpdate:translateApi")})},onCloseClick(){this.isOpen=!1},onTagCompleteTestClick(){this.tagCompleteResults=[],["1girl","Robot dog"].forEach(Cn=>{let $n=this.getLang("translate_result");this.translateToLocalByCSV(Cn,this.tagCompleteFileKey,!0).then(Nn=>{this.tagCompleteResults.push($n.replace("{0}",Cn).replace("{1}",Nn))}).catch(Nn=>{this.$toastr.error(Nn)})})},onMbart50Initialize(){this.mbart50Loading=!0,this.mbart50Success=!1,this.mbart50Message="",this.gradioAPI.mbart50Initialize().then(_n=>{this.mbart50Loading=!1,_n.success?(this.mbart50Success=!0,this.mbart50Message=this.getLang("initialize_finished")):this.mbart50Message=this.getLang("initialize_failed")+": "+_n.message}).catch(_n=>{this.mbart50Loading=!1,this.mbart50Message=_n.message})}}},_hoisted_1$c={key:0,class:"physton-prompt-translate-setting"},_hoisted_2$b={class:"translate-setting-main"},_hoisted_3$b={class:"translate-setting-content"},_hoisted_4$b={class:"setting-line"},_hoisted_5$a={class:"line-title"},_hoisted_6$9={class:"line-content"},_hoisted_7$8=["label"],_hoisted_8$8=["value","disabled"],_hoisted_9$7={key:0,class:"setting-line"},_hoisted_10$7=createBaseVNode("div",{class:"line-title"},null,-1),_hoisted_11$7={class:"line-content"},_hoisted_12$7={class:"common-red"},_hoisted_13$7={key:1,class:"setting-line"},_hoisted_14$7=createBaseVNode("div",{class:"line-title"},null,-1),_hoisted_15$7={class:"line-content"},_hoisted_16$6={class:"help-list"},_hoisted_17$6={class:"help-item"},_hoisted_18$6=["href"],_hoisted_19$6={class:"setting-line"},_hoisted_20$6={class:"line-title"},_hoisted_21$6={class:"line-content"},_hoisted_22$5=["onUpdate:modelValue","onChange"],_hoisted_23$5=["onUpdate:modelValue"],_hoisted_24$4=["value"],_hoisted_25$4=["innerHTML"],_hoisted_26$4={key:2,class:"setting-line"},_hoisted_27$4={class:"line-title"},_hoisted_28$3={class:"line-content"},_hoisted_29$2=["innerHTML"],_hoisted_30$1=["innerHTML"],_hoisted_31$1={key:3,class:"setting-line"},_hoisted_32$1=createBaseVNode("div",{class:"line-title"},null,-1),_hoisted_33$1={class:"line-content"},_hoisted_34$1={class:"setting-line"},_hoisted_35$1={class:"line-title"},_hoisted_36$1={class:"line-content"},_hoisted_37$1={class:"setting-line"},_hoisted_38$1=createBaseVNode("div",{class:"line-title"},null,-1),_hoisted_39$1={class:"line-content"},_hoisted_40$1={class:"setting-line"},_hoisted_41$1=createBaseVNode("div",{class:"line-title"},null,-1),_hoisted_42={class:"line-content"},_hoisted_43={key:0,class:"translate-error"},_hoisted_44={class:"setting-line"},_hoisted_45={class:"line-title"},_hoisted_46={class:"line-content"},_hoisted_47=["innerHTML"],_hoisted_48={class:"onlyCsvOnAuto"},_hoisted_49={class:"setting-line"},_hoisted_50=createBaseVNode("div",{class:"line-title"},"TagComplete",-1),_hoisted_51={class:"line-content"},_hoisted_52={class:"help-list"},_hoisted_53={class:"help-item"},_hoisted_54=["href"],_hoisted_55=["innerHTML"],_hoisted_56=["innerHTML"],_hoisted_57={class:"line-row"},_hoisted_58=["value"],_hoisted_59={class:"setting-line"},_hoisted_60=createBaseVNode("div",{class:"line-title"},null,-1),_hoisted_61={class:"line-content"},_hoisted_62={ref:"tagCompleteResults"},_hoisted_63={class:"setting-btns"};function _sfc_render$c(_n,Cn,$n,Nn,Bn,Ln){const In=resolveComponent("icon-svg"),Pn=resolveDirective("tooltip");return openBlock(),createBlock(Transition,{name:"fadeDown"},{default:withCtx(()=>[Bn.isOpen?(openBlock(),createElementBlock("div",_hoisted_1$c,[createBaseVNode("div",_hoisted_2$b,[createBaseVNode("div",_hoisted_3$b,[createBaseVNode("div",_hoisted_4$b,[createBaseVNode("div",_hoisted_5$a,toDisplayString(_n.getLang("translate_api")),1),createBaseVNode("div",_hoisted_6$9,[withDirectives(createBaseVNode("select",{"onUpdate:modelValue":Cn[0]||(Cn[0]=Dn=>Bn.apiKey=Dn)},[(openBlock(!0),createElementBlock(Fragment,null,renderList(Ln.supportApi,Dn=>(openBlock(),createElementBlock("optgroup",{key:Dn.type,label:_n.getLang(Dn.type)},[(openBlock(!0),createElementBlock(Fragment,null,renderList(Dn.children,Un=>(openBlock(),createElementBlock("option",{key:Un.key,value:Un.key,disabled:Un.disabled},toDisplayString(Ln.getItemName(Un)),9,_hoisted_8$8))),128))],8,_hoisted_7$8))),128))],512),[[vModelSelect,Bn.apiKey]])])]),Ln.apiItem&&Ln.apiItem.type=="translators"?(openBlock(),createElementBlock("div",_hoisted_9$7,[_hoisted_10$7,createBaseVNode("div",_hoisted_11$7,[createBaseVNode("span",_hoisted_12$7,"*"+toDisplayString(_n.getLang("not_api_key_desc")),1)])])):createCommentVNode("",!0),Ln.apiItem.help?(openBlock(),createElementBlock("div",_hoisted_13$7,[_hoisted_14$7,createBaseVNode("div",_hoisted_15$7,[(openBlock(!0),createElementBlock(Fragment,null,renderList(Ln.apiItem.help,Dn=>(openBlock(),createElementBlock("div",_hoisted_16$6,[createBaseVNode("div",_hoisted_17$6,[createTextVNode("[?] "),createBaseVNode("a",{href:Dn.url,target:"_blank"},toDisplayString(Dn.title),9,_hoisted_18$6)])]))),256))])])):createCommentVNode("",!0),(openBlock(!0),createElementBlock(Fragment,null,renderList(Bn.configs,Dn=>(openBlock(),createElementBlock("div",_hoisted_19$6,[createBaseVNode("div",_hoisted_20$6,toDisplayString(Dn.title),1),createBaseVNode("div",_hoisted_21$6,[Dn.type=="input"?withDirectives((openBlock(),createElementBlock("input",{key:0,type:"text","onUpdate:modelValue":Un=>Dn.value=Un,onChange:Un=>Ln.onChangeConfigValue(Dn)},null,40,_hoisted_22$5)),[[vModelText,Dn.value]]):createCommentVNode("",!0),Dn.type=="select"?withDirectives((openBlock(),createElementBlock("select",{key:1,"onUpdate:modelValue":Un=>Dn.value=Un},[(openBlock(!0),createElementBlock(Fragment,null,renderList(Dn.options,Un=>(openBlock(),createElementBlock("option",{value:Un},toDisplayString(Un),9,_hoisted_24$4))),256))],8,_hoisted_23$5)),[[vModelSelect,Dn.value]]):createCommentVNode("",!0),Dn.desc?(openBlock(),createElementBlock("div",{key:2,innerHTML:Dn.desc},null,8,_hoisted_25$4)):createCommentVNode("",!0)])]))),256)),Ln.apiItem.key==="mbart50"?(openBlock(),createElementBlock("div",_hoisted_26$4,[createBaseVNode("div",_hoisted_27$4,toDisplayString(_n.getLang("initialize")),1),createBaseVNode("div",_hoisted_28$3,[createBaseVNode("div",{class:"hover-scale-120 test-btn",onClick:Cn[1]||(Cn[1]=(...Dn)=>Ln.onMbart50Initialize&&Ln.onMbart50Initialize(...Dn))},[Bn.mbart50Loading?(openBlock(),createBlock(In,{key:0,name:"loading"})):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString(_n.getLang("initialize")),1)],64))]),createBaseVNode("p",{class:"common-red",innerHTML:_n.getLang("download_model_desc")},null,8,_hoisted_29$2),createBaseVNode("p",{class:"common-red",innerHTML:_n.getLang("download_model_desc2")},null,8,_hoisted_30$1)])])):createCommentVNode("",!0),Ln.apiItem.key==="mbart50"&&Bn.mbart50Message?(openBlock(),createElementBlock("div",_hoisted_31$1,[_hoisted_32$1,createBaseVNode("div",_hoisted_33$1,[createBaseVNode("div",{class:normalizeClass([Bn.mbart50Success?"":"common-red"])},toDisplayString(Bn.mbart50Message),3)])])):createCommentVNode("",!0),createBaseVNode("div",_hoisted_34$1,[createBaseVNode("div",_hoisted_35$1,toDisplayString(_n.getLang("translate_test")),1),createBaseVNode("div",_hoisted_36$1,[withDirectives(createBaseVNode("textarea",{class:"test-input","onUpdate:modelValue":Cn[2]||(Cn[2]=Dn=>Bn.testText=Dn)},null,512),[[vModelText,Bn.testText]])])]),createBaseVNode("div",_hoisted_37$1,[_hoisted_38$1,createBaseVNode("div",_hoisted_39$1,[createBaseVNode("div",{class:"hover-scale-120 test-btn",onClick:Cn[3]||(Cn[3]=(...Dn)=>Ln.onTestClick&&Ln.onTestClick(...Dn))},[Bn.loading?(openBlock(),createBlock(In,{key:0,name:"loading"})):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString(_n.getLang("test")),1)],64))])])]),createBaseVNode("div",_hoisted_40$1,[_hoisted_41$1,createBaseVNode("div",_hoisted_42,[!Bn.translateSuccess&&Bn.errorMessage?(openBlock(),createElementBlock("div",_hoisted_43,toDisplayString(Bn.errorMessage),1)):createCommentVNode("",!0),Bn.translatedText?withDirectives((openBlock(),createElementBlock("textarea",{key:1,class:"test-input","onUpdate:modelValue":Cn[4]||(Cn[4]=Dn=>Bn.translatedText=Dn)},null,512)),[[vModelText,Bn.translatedText]]):createCommentVNode("",!0)])]),createBaseVNode("div",_hoisted_44,[createBaseVNode("div",_hoisted_45,toDisplayString(_n.getLang("Keyword_group")),1),createBaseVNode("div",_hoisted_46,[createBaseVNode("div",{innerHTML:_n.getLang("enhance_translation_use_Keyword_group_desc")},null,8,_hoisted_47),createBaseVNode("label",_hoisted_48,[withDirectives(createBaseVNode("input",{class:"hover-scale-120",type:"checkbox",value:"1","onUpdate:modelValue":Cn[5]||(Cn[5]=Dn=>Bn.groupTagsTranslateValue=Dn)},null,512),[[vModelCheckbox,Bn.groupTagsTranslateValue]]),createBaseVNode("span",null,toDisplayString(_n.getLang("enhance_translation_use_keyword_group")),1)])])]),createBaseVNode("div",_hoisted_49,[_hoisted_50,createBaseVNode("div",_hoisted_51,[createBaseVNode("div",_hoisted_52,[createBaseVNode("div",_hoisted_53,[createTextVNode("[?] "),createBaseVNode("a",{href:_n.globals.docs+"/TranslationApiConfiguration.html#tagcomplete-translation-enhancement",target:"_blank"},"[Wiki] TagComplete Translation enhancement",8,_hoisted_54)])]),createBaseVNode("div",{innerHTML:_n.getLang("tagcomplete_translate_desc")},null,8,_hoisted_55),createBaseVNode("div",{class:"common-red",innerHTML:_n.getLang("tagcomplete_translate_desc2")},null,8,_hoisted_56),createBaseVNode("div",_hoisted_57,[withDirectives(createBaseVNode("select",{"onUpdate:modelValue":Cn[6]||(Cn[6]=Dn=>Bn.tagCompleteFileKey=Dn),onChange:Cn[7]||(Cn[7]=Dn=>Bn.tagCompleteResults=[])},[(openBlock(!0),createElementBlock(Fragment,null,renderList(Bn.tagCompleteFiles,Dn=>(openBlock(),createElementBlock("option",{value:Dn.key},toDisplayString(Dn.name),9,_hoisted_58))),256))],544),[[vModelSelect,Bn.tagCompleteFileKey]]),withDirectives((openBlock(),createElementBlock("div",{class:"refresh-btn hover-scale-120",onClick:Cn[8]||(Cn[8]=(...Dn)=>Ln.refreshCSVs&&Ln.refreshCSVs(...Dn))},[Bn.tagCompleteFilesLoading?(openBlock(),createBlock(In,{key:0,name:"loading"})):(openBlock(),createBlock(In,{key:1,name:"refresh"}))])),[[Pn,_n.getLang("refresh")]])]),createBaseVNode("label",{class:"onlyCsvOnAuto",style:normalizeStyle({display:Bn.tagCompleteFileKey?"flex":"none"})},[withDirectives(createBaseVNode("input",{class:"hover-scale-120",type:"checkbox",value:"1","onUpdate:modelValue":Cn[9]||(Cn[9]=Dn=>Bn.onlyCsvOnAutoValue=Dn)},null,512),[[vModelCheckbox,Bn.onlyCsvOnAutoValue]]),createBaseVNode("span",null,toDisplayString(_n.getLang("only_csv_on_auto")),1)],4)])]),withDirectives(createBaseVNode("div",_hoisted_59,[_hoisted_60,createBaseVNode("div",_hoisted_61,[createBaseVNode("div",{class:"hover-scale-120 test-btn",onClick:Cn[10]||(Cn[10]=(...Dn)=>Ln.onTagCompleteTestClick&&Ln.onTagCompleteTestClick(...Dn))},toDisplayString(_n.getLang("test")),1),withDirectives(createBaseVNode("div",_hoisted_62,[(openBlock(!0),createElementBlock(Fragment,null,renderList(Bn.tagCompleteResults,Dn=>(openBlock(),createElementBlock("p",{key:Dn},toDisplayString(Dn),1))),128))],512),[[vShow,Bn.tagCompleteResults.length>0]])])],512),[[vShow,Bn.tagCompleteFileKey]])]),createBaseVNode("div",_hoisted_63,[createBaseVNode("div",{class:"translate-save hover-scale-120",onClick:Cn[11]||(Cn[11]=(...Dn)=>Ln.onSaveClick&&Ln.onSaveClick(...Dn))},toDisplayString(_n.getLang("save")),1),createBaseVNode("div",{class:"translate-close hover-scale-120",onClick:Cn[12]||(Cn[12]=(...Dn)=>Ln.onCloseClick&&Ln.onCloseClick(...Dn))},toDisplayString(_n.getLang("close")),1)])])])):createCommentVNode("",!0)]),_:1})}const TranslateSetting=_export_sfc(_sfc_main$c,[["render",_sfc_render$c]]),_sfc_main$b={name:"SelectLanguage",components:{IconSvg},mixins:[LanguageMixin],props:{},data(){return{isOpen:!1}},computed:{},mounted(){},methods:{open(){this.isOpen=!0,this.$nextTick(()=>{this.scrollToSelectedItem()})},close(){this.isOpen=!1},onLanguageClick(_n){this.$emit("update:languageCode",_n.code),this.close()},scrollToSelectedItem(){const _n=this.$refs.items;for(let Cn=0;Cn<_n.length;Cn++)if(_n[Cn].classList.contains("selected")){_n[Cn].scrollIntoView({behavior:"smooth",block:"center"});break}}}},_hoisted_1$b=["onClick"];function _sfc_render$b(_n,Cn,$n,Nn,Bn,Ln){const In=resolveComponent("icon-svg");return openBlock(),createBlock(Transition,{name:"fadeDown"},{default:withCtx(()=>[Bn.isOpen?(openBlock(),createElementBlock("div",{key:0,class:"physton-prompt-select-language",onClick:Cn[3]||(Cn[3]=(...Pn)=>Ln.close&&Ln.close(...Pn))},[createBaseVNode("div",{class:"language-main",onClick:Cn[2]||(Cn[2]=withModifiers(()=>{},["stop"]))},[createBaseVNode("div",{class:"language-close",onClick:Cn[0]||(Cn[0]=(...Pn)=>Ln.close&&Ln.close(...Pn))},[createVNode(In,{name:"close"})]),createBaseVNode("div",{class:"language-list",onClick:Cn[1]||(Cn[1]=withModifiers(()=>{},["stop"]))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(_n.languages,Pn=>(openBlock(),createElementBlock("div",{key:Pn.code,class:normalizeClass(["language-item",Pn.code==_n.languageCode?"selected":""]),ref_for:!0,ref:"items",onClick:Dn=>Ln.onLanguageClick(Pn)},toDisplayString(Pn.code)+" - "+toDisplayString(Pn.name),11,_hoisted_1$b))),128))])])])):createCommentVNode("",!0)]),_:1})}const SelectLanguage=_export_sfc(_sfc_main$b,[["render",_sfc_render$b]]),_sfc_main$a={components:{IconSvg},props:{},mixins:[LanguageMixin],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(_n=>{this.getFavorites(_n.key)})},methods:{formatTime(_n){return common$1.formatTime(_n*1e3,!1)},getFavorites(_n){if(!_n)return;let Cn=this.favorites.find($n=>$n.key===_n);Cn&&(this.loading=!0,this.gradioAPI.getFavorites(_n).then($n=>{$n&&$n.length>0&&($n.reverse(),$n.forEach(Nn=>{Nn.is_favorite=!0}),Cn.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(_n,Cn){if(!(!_n||!Cn)){if(this.favoriteKey=_n,this.isShow){this.isShow=!1;return}this.mouseEnter=!1,this.loading=!0,this.isShow=!0,this.$refs.favorite.style.top=Cn.pageY+2+"px",this.$refs.favorite.style.left=Cn.pageX+2+"px",this.getFavorites(this.favoriteKey),this.$nextTick(()=>{let $n=this.$refs.favorite.getBoundingClientRect();$n.right>window.innerWidth&&(this.$refs.favorite.style.left=window.innerWidth-$n.width-2+"px")}),setTimeout(()=>{this.mouseEnter||this.hide()},3e3)}},hide(){this.mouseEnter=!1,this.isShow=!1},onMouseEnter(){this.mouseEnter=!0},onMouseLeave(_n){_n.relatedTarget&&this.hide()},onTabClick(_n){this.favoriteKey=_n,this.getFavorites(this.favoriteKey)},onFavoriteClick(_n){let Cn=this.favorites.find(Nn=>Nn.key===this.favoriteKey);if(!Cn)return;let $n=Cn.list[_n];$n.is_favorite?this.gradioAPI.unFavorite(this.favoriteKey,$n.id).then(Nn=>{Nn&&($n.is_favorite=!1,window.phystonPromptfavorites=this.favorites)}):this.gradioAPI.doFavorite(this.favoriteKey,$n.id).then(Nn=>{Nn&&($n.is_favorite=!0,window.phystonPromptfavorites=this.favorites)})},onCopyClick(_n){let Cn=this.favorites.find(Nn=>Nn.key===this.favoriteKey);if(!Cn)return;let $n=Cn.list[_n];this.$copyText($n.prompt).then(()=>{this.$toastr.success("success!")}).catch(()=>{this.$toastr.error("error!")})},onNameKeyDown(_n,Cn){Cn.keyCode===13&&Cn.target.blur()},onNameChange(_n,Cn){let $n=this.favorites.find(Ln=>Ln.key===this.favoriteKey);if(!$n)return;let Nn=$n.list[_n];const Bn=Cn.target.value;this.gradioAPI.setFavoriteName(this.favoriteKey,Nn.id,Bn).then(Ln=>{Ln?(Nn.name=Bn,window.phystonPromptfavorites=this.favorites):Cn.target.value=Nn.name}).catch(Ln=>{Cn.target.value=Nn.name})},onItemMouseEnter(_n){let Cn=this.favorites.find($n=>$n.key===this.favoriteKey);Cn&&(this.currentItem=Cn.list[_n],this.$nextTick(()=>{let $n=this.$refs.favoriteDetail.getBoundingClientRect();$n.right>window.innerWidth&&(this.$refs.favoriteDetail.style.left=0-$n.width-2+"px")}))},onItemMouseLeave(_n){this.currentItem={}},onUseClick(_n){let Cn=this.favorites.find($n=>$n.key===this.favoriteKey);Cn&&(this.hide(),this.$emit("use",Cn.list[_n]))},onMoveUpClick(_n){let Cn=this.favorites.find(Nn=>Nn.key===this.favoriteKey);if(!Cn)return;let $n=Cn.list[_n];_n!==0&&this.gradioAPI.moveDownFavorite(this.favoriteKey,$n.id).then(Nn=>{Nn&&(Cn.list.splice(_n,1),Cn.list.splice(_n-1,0,$n),window.phystonPromptfavorites=this.favorites)})},onMoveDownClick(_n){let Cn=this.favorites.find(Nn=>Nn.key===this.favoriteKey);if(!Cn)return;let $n=Cn.list[_n];_n!==Cn.list.length-1&&this.gradioAPI.moveUpFavorite(this.favoriteKey,$n.id).then(Nn=>{Nn&&(Cn.list.splice(_n,1),Cn.list.splice(_n+1,0,$n),window.phystonPromptfavorites=this.favorites)})}}},_hoisted_1$a={class:"popup-tabs"},_hoisted_2$a=["onClick"],_hoisted_3$a={class:"tab-name"},_hoisted_4$a={class:"tab-type"},_hoisted_5$9={class:"tab-count"},_hoisted_6$8={class:"popup-detail",ref:"favoriteDetail"},_hoisted_7$7={class:"popup-item-tags"},_hoisted_8$7={key:0,class:"item-wrap"},_hoisted_9$6={key:1,class:"item-tag"},_hoisted_10$6={class:"item-tag-value"},_hoisted_11$6={class:"item-tag-local-value"},_hoisted_12$6={class:"content-list"},_hoisted_13$6=["onMouseenter","onMouseleave"],_hoisted_14$6={class:"item-header"},_hoisted_15$6={class:"item-header-left"},_hoisted_16$5={class:"item-header-index"},_hoisted_17$5={class:"item-header-time"},_hoisted_18$5={class:"item-header-name"},_hoisted_19$5=["value","onKeydown","onChange","placeholder"],_hoisted_20$5={class:"item-header-right"},_hoisted_21$5=["onClick"],_hoisted_22$4=["onClick"],_hoisted_23$4=["onClick"],_hoisted_24$3=["onClick"],_hoisted_25$3=["onClick"],_hoisted_26$3=["onClick"],_hoisted_27$3={class:"item-prompt"},_hoisted_28$2={class:"content-empty"},_hoisted_29$1={key:1};function _sfc_render$a(_n,Cn,$n,Nn,Bn,Ln){const In=resolveComponent("icon-svg"),Pn=resolveDirective("tooltip");return openBlock(),createBlock(Transition,{name:"fade"},{default:withCtx(()=>[withDirectives(createBaseVNode("div",{class:"physton-prompt-favorite",ref:"favorite",onMouseenter:Cn[0]||(Cn[0]=(...Dn)=>Ln.onMouseEnter&&Ln.onMouseEnter(...Dn)),onMouseleave:Cn[1]||(Cn[1]=(...Dn)=>Ln.onMouseLeave&&Ln.onMouseLeave(...Dn)),onClick:Cn[2]||(Cn[2]=withModifiers(()=>{},["stop"]))},[createBaseVNode("div",_hoisted_1$a,[(openBlock(!0),createElementBlock(Fragment,null,renderList(Bn.favorites,Dn=>(openBlock(),createElementBlock("div",{key:Dn.key,class:normalizeClass(["popup-tab",Dn.key===Bn.favoriteKey?"active":""]),onClick:Un=>Ln.onTabClick(Dn.key)},[createBaseVNode("div",_hoisted_3$a,toDisplayString(_n.getLang(Dn.name)),1),createBaseVNode("div",_hoisted_4$a,toDisplayString(_n.getLang(Dn.type)),1),createBaseVNode("div",_hoisted_5$9,toDisplayString(Dn.list.length),1)],10,_hoisted_2$a))),128))]),withDirectives(createBaseVNode("div",_hoisted_6$8,[createBaseVNode("div",_hoisted_7$7,[(openBlock(!0),createElementBlock(Fragment,null,renderList(Bn.currentItem.tags,(Dn,Un)=>(openBlock(),createElementBlock(Fragment,{key:Un},[Dn.type&&Dn.type==="wrap"?(openBlock(),createElementBlock("div",_hoisted_8$7)):(openBlock(),createElementBlock("div",_hoisted_9$6,[createBaseVNode("div",_hoisted_10$6,toDisplayString(Dn.value),1),createBaseVNode("div",_hoisted_11$6,toDisplayString(Dn.localValue),1)]))],64))),128))])],512),[[vShow,Bn.currentItem&&Bn.currentItem.tags]]),(openBlock(!0),createElementBlock(Fragment,null,renderList(Bn.favorites,Dn=>(openBlock(),createElementBlock("div",{key:Dn.key,class:normalizeClass(["popup-tab-content",Dn.key===Bn.favoriteKey?"active":""])},[withDirectives(createBaseVNode("div",_hoisted_12$6,[(openBlock(!0),createElementBlock(Fragment,null,renderList(Dn.list,(Un,Hn)=>(openBlock(),createElementBlock("div",{class:"content-item",key:Un.id,onMouseenter:Xn=>Ln.onItemMouseEnter(Hn),onMouseleave:Xn=>Ln.onItemMouseLeave(Hn)},[createBaseVNode("div",_hoisted_14$6,[createBaseVNode("div",_hoisted_15$6,[createBaseVNode("div",_hoisted_16$5,toDisplayString(Dn.list.length-Hn),1),createBaseVNode("div",_hoisted_17$5,toDisplayString(Ln.formatTime(Un.time)),1),createBaseVNode("div",_hoisted_18$5,[createBaseVNode("input",{class:"header-name-input",value:Un.name,onKeydown:Xn=>Ln.onNameKeyDown(Hn,Xn),onChange:Xn=>Ln.onNameChange(Hn,Xn),placeholder:_n.getLang("unset_name")},null,40,_hoisted_19$5)])]),createBaseVNode("div",_hoisted_20$5,[withDirectives((openBlock(),createElementBlock("div",{class:"header-btn-favorite hover-scale-140",onClick:Xn=>Ln.onFavoriteClick(Hn)},[createVNode(In,{name:"favorite-yes"})],8,_hoisted_21$5)),[[vShow,Un.is_favorite],[Pn,_n.getLang("remove_from_favorite")]]),withDirectives((openBlock(),createElementBlock("div",{class:"header-btn-favorite hover-scale-140",onClick:Xn=>Ln.onFavoriteClick(Hn)},[createVNode(In,{name:"favorite-no"})],8,_hoisted_22$4)),[[vShow,!Un.is_favorite],[Pn,_n.getLang("add_to_favorite")]]),withDirectives((openBlock(),createElementBlock("div",{class:"header-btn-copy hover-scale-140",onClick:Xn=>Ln.onCopyClick(Hn)},[createVNode(In,{name:"copy"})],8,_hoisted_23$4)),[[Pn,_n.getLang("copy_to_clipboard")]]),withDirectives((openBlock(),createElementBlock("div",{class:"header-btn-use hover-scale-140",onClick:Xn=>Ln.onUseClick(Hn)},[createVNode(In,{name:"use"})],8,_hoisted_24$3)),[[Pn,_n.getLang("use")]]),withDirectives((openBlock(),createElementBlock("div",{class:"header-btn-move-up hover-scale-140",onClick:Xn=>Ln.onMoveUpClick(Hn)},[createVNode(In,{name:"move-up"})],8,_hoisted_25$3)),[[Pn,_n.getLang("move_up")]]),withDirectives((openBlock(),createElementBlock("div",{class:"header-btn-move-down hover-scale-140",onClick:Xn=>Ln.onMoveDownClick(Hn)},[createVNode(In,{name:"move-down"})],8,_hoisted_26$3)),[[Pn,_n.getLang("move_down")]])])]),createBaseVNode("div",_hoisted_27$3,toDisplayString(Un.prompt),1)],40,_hoisted_13$6))),128))],512),[[vShow,Dn.list.length>0]]),withDirectives(createBaseVNode("div",_hoisted_28$2,[Bn.loading?(openBlock(),createBlock(In,{key:0,name:"loading"})):(openBlock(),createElementBlock("span",_hoisted_29$1,toDisplayString(Bn.emptyMsg),1))],512),[[vShow,Dn.list.length===0]])],2))),128))],544),[[vShow,Bn.isShow]])]),_:1})}const Favorite=_export_sfc(_sfc_main$a,[["render",_sfc_render$a]]),_sfc_main$9={components:{IconSvg},props:{},mixins:[LanguageMixin],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(_n){return common$1.formatTime(_n*1e3,!1)},getHistories(_n){if(!_n)return;let Cn=this.histories.find($n=>$n.key===_n);Cn&&(this.loading=!0,this.gradioAPI.getHistories(_n).then($n=>{$n&&$n.length>0&&($n.reverse(),Cn.list=$n),this.emptyMsg=this.getLang("no_history"),this.loading=!1}).catch($n=>{this.emptyMsg=this.getLang("get_history_error"),this.loading=!1}))},show(_n,Cn){if(!(!_n||!Cn)){if(this.historyKey=_n,this.isShow){this.isShow=!1;return}this.mouseEnter=!1,this.loading=!0,this.isShow=!0,this.$refs.history.style.top=Cn.pageY+2+"px",this.$refs.history.style.left=Cn.pageX+2+"px",this.getHistories(this.historyKey),this.$nextTick(()=>{let $n=this.$refs.history.getBoundingClientRect();$n.right>window.innerWidth&&(this.$refs.history.style.left=window.innerWidth-$n.width-2+"px")}),setTimeout(()=>{this.mouseEnter||this.hide()},3e3)}},hide(){this.mouseEnter=!1,this.isShow=!1},onMouseEnter(){this.mouseEnter=!0},onMouseLeave(_n){_n.relatedTarget&&this.hide()},onTabClick(_n){this.historyKey=_n,this.getHistories(this.historyKey)},onDeleteClick(_n){let Cn=this.histories.find(Nn=>Nn.key===this.historyKey);if(!Cn)return;let $n=Cn.list[_n];this.gradioAPI.deleteHistory(this.historyKey,$n.id).then(Nn=>{Nn&&Cn.list.splice(_n,1)})},onFavoriteClick(_n){let Cn=this.histories.find(Nn=>Nn.key===this.historyKey);if(!Cn)return;let $n=Cn.list[_n];$n.is_favorite?this.gradioAPI.unFavorite(this.historyKey,$n.id).then(Nn=>{Nn&&($n.is_favorite=!1,this.$emit("refreshFavorites",this.historyKey))}):this.gradioAPI.doFavorite(this.historyKey,$n.id).then(Nn=>{Nn&&($n.is_favorite=!0,this.$emit("refreshFavorites",this.historyKey))})},onCopyClick(_n){let Cn=this.histories.find(Nn=>Nn.key===this.historyKey);if(!Cn)return;let $n=Cn.list[_n];this.$copyText($n.prompt).then(()=>{this.$toastr.success("success!")}).catch(()=>{this.$toastr.error("error!")})},onNameKeyDown(_n,Cn){Cn.keyCode===13&&Cn.target.blur()},onNameChange(_n,Cn){let $n=this.histories.find(Ln=>Ln.key===this.historyKey);if(!$n)return;let Nn=$n.list[_n];const Bn=Cn.target.value;this.gradioAPI.setHistoryName(this.historyKey,Nn.id,Bn).then(Ln=>{Ln?(Nn.name=Bn,this.$emit("refreshFavorites",this.historyKey)):Cn.target.value=Nn.name}).catch(Ln=>{Cn.target.value=Nn.name})},onItemMouseEnter(_n){let Cn=this.histories.find($n=>$n.key===this.historyKey);Cn&&(this.currentItem=Cn.list[_n],this.$nextTick(()=>{let $n=this.$refs.historyDetail.getBoundingClientRect();$n.right>window.innerWidth&&(this.$refs.historyDetail.style.left=0-$n.width-2+"px")}))},onItemMouseLeave(_n){this.currentItem={}},onUseClick(_n){let Cn=this.histories.find($n=>$n.key===this.historyKey);Cn&&(this.hide(),this.$emit("use",Cn.list[_n]))},onDeleteAllHistoryClick(){let _n=this.histories.find(Cn=>Cn.key===this.historyKey);_n&&confirm(this.getLang("delete_all_history_confirm"))&&this.gradioAPI.deleteHistories(this.historyKey).then(Cn=>{_n.list=[]}).catch(Cn=>{})}}},_hoisted_1$9={class:"popup-tabs"},_hoisted_2$9=["onClick"],_hoisted_3$9={class:"tab-name"},_hoisted_4$9={class:"tab-type"},_hoisted_5$8={class:"tab-count"},_hoisted_6$7={class:"popup-detail",ref:"historyDetail"},_hoisted_7$6={class:"popup-item-tags"},_hoisted_8$6={key:0,class:"item-wrap"},_hoisted_9$5={key:1,class:"item-tag"},_hoisted_10$5={class:"item-tag-value"},_hoisted_11$5={class:"item-tag-local-value"},_hoisted_12$5={class:"content-list"},_hoisted_13$5=["onMouseenter","onMouseleave"],_hoisted_14$5={class:"item-header"},_hoisted_15$5={class:"item-header-left"},_hoisted_16$4={class:"item-header-index"},_hoisted_17$4={class:"item-header-time"},_hoisted_18$4={class:"item-header-name"},_hoisted_19$4=["value","onKeydown","onChange","placeholder"],_hoisted_20$4={class:"item-header-right"},_hoisted_21$4=["onClick"],_hoisted_22$3=["onClick"],_hoisted_23$3=["onClick"],_hoisted_24$2=["onClick"],_hoisted_25$2=["onClick"],_hoisted_26$2={class:"item-prompt"},_hoisted_27$2={class:"content-empty"},_hoisted_28$1={key:1};function _sfc_render$9(_n,Cn,$n,Nn,Bn,Ln){const In=resolveComponent("icon-svg"),Pn=resolveDirective("tooltip");return openBlock(),createBlock(Transition,{name:"fade"},{default:withCtx(()=>[withDirectives(createBaseVNode("div",{class:"physton-prompt-history",ref:"history",onMouseenter:Cn[1]||(Cn[1]=(...Dn)=>Ln.onMouseEnter&&Ln.onMouseEnter(...Dn)),onMouseleave:Cn[2]||(Cn[2]=(...Dn)=>Ln.onMouseLeave&&Ln.onMouseLeave(...Dn)),onClick:Cn[3]||(Cn[3]=withModifiers(()=>{},["stop"]))},[createBaseVNode("div",_hoisted_1$9,[(openBlock(!0),createElementBlock(Fragment,null,renderList(Bn.histories,Dn=>(openBlock(),createElementBlock("div",{key:Dn.key,class:normalizeClass(["popup-tab",Dn.key===Bn.historyKey?"active":""]),onClick:Un=>Ln.onTabClick(Dn.key)},[createBaseVNode("div",_hoisted_3$9,toDisplayString(_n.getLang(Dn.name)),1),createBaseVNode("div",_hoisted_4$9,toDisplayString(_n.getLang(Dn.type)),1),createBaseVNode("div",_hoisted_5$8,toDisplayString(Dn.list.length),1)],10,_hoisted_2$9))),128))]),withDirectives(createBaseVNode("div",_hoisted_6$7,[createBaseVNode("div",_hoisted_7$6,[(openBlock(!0),createElementBlock(Fragment,null,renderList(Bn.currentItem.tags,(Dn,Un)=>(openBlock(),createElementBlock(Fragment,{key:Un},[Dn.type&&Dn.type==="wrap"?(openBlock(),createElementBlock("div",_hoisted_8$6)):(openBlock(),createElementBlock("div",_hoisted_9$5,[createBaseVNode("div",_hoisted_10$5,toDisplayString(Dn.value),1),createBaseVNode("div",_hoisted_11$5,toDisplayString(Dn.localValue),1)]))],64))),128))])],512),[[vShow,Bn.currentItem&&Bn.currentItem.tags]]),(openBlock(!0),createElementBlock(Fragment,null,renderList(Bn.histories,Dn=>(openBlock(),createElementBlock("div",{key:Dn.key,class:normalizeClass(["popup-tab-content",Dn.key===Bn.historyKey?"active":""])},[withDirectives(createBaseVNode("div",_hoisted_12$5,[createBaseVNode("div",{class:"clear-btn",onClick:Cn[0]||(Cn[0]=(...Un)=>Ln.onDeleteAllHistoryClick&&Ln.onDeleteAllHistoryClick(...Un))},[createVNode(In,{name:"remove"}),createTextVNode(" "+toDisplayString(_n.getLang("delete_all_history")),1)]),(openBlock(!0),createElementBlock(Fragment,null,renderList(Dn.list,(Un,Hn)=>(openBlock(),createElementBlock("div",{class:"content-item",key:Un.id,onMouseenter:Xn=>Ln.onItemMouseEnter(Hn),onMouseleave:Xn=>Ln.onItemMouseLeave(Hn)},[createBaseVNode("div",_hoisted_14$5,[createBaseVNode("div",_hoisted_15$5,[createBaseVNode("div",_hoisted_16$4,toDisplayString(Dn.list.length-Hn),1),createBaseVNode("div",_hoisted_17$4,toDisplayString(Ln.formatTime(Un.time)),1),createBaseVNode("div",_hoisted_18$4,[createBaseVNode("input",{class:"header-name-input",value:Un.name,onKeydown:Xn=>Ln.onNameKeyDown(Hn,Xn),onChange:Xn=>Ln.onNameChange(Hn,Xn),placeholder:_n.getLang("unset_name")},null,40,_hoisted_19$4)])]),createBaseVNode("div",_hoisted_20$4,[createBaseVNode("div",{class:"header-btn-favorite hover-scale-140",onClick:Xn=>Ln.onDeleteClick(Hn)},[createVNode(In,{name:"remove"})],8,_hoisted_21$4),withDirectives((openBlock(),createElementBlock("div",{class:"header-btn-favorite hover-scale-140",onClick:Xn=>Ln.onFavoriteClick(Hn)},[createVNode(In,{name:"favorite-yes"})],8,_hoisted_22$3)),[[vShow,Un.is_favorite],[Pn,_n.getLang("remove_from_favorite")]]),withDirectives((openBlock(),createElementBlock("div",{class:"header-btn-favorite hover-scale-140",onClick:Xn=>Ln.onFavoriteClick(Hn)},[createVNode(In,{name:"favorite-no"})],8,_hoisted_23$3)),[[vShow,!Un.is_favorite],[Pn,_n.getLang("add_to_favorite")]]),withDirectives((openBlock(),createElementBlock("div",{class:"header-btn-copy hover-scale-140",onClick:Xn=>Ln.onCopyClick(Hn)},[createVNode(In,{name:"copy"})],8,_hoisted_24$2)),[[Pn,_n.getLang("copy_to_clipboard")]]),withDirectives((openBlock(),createElementBlock("div",{class:"header-btn-use hover-scale-140",onClick:Xn=>Ln.onUseClick(Hn)},[createVNode(In,{name:"use"})],8,_hoisted_25$2)),[[Pn,_n.getLang("use")]])])]),createBaseVNode("div",_hoisted_26$2,toDisplayString(Un.prompt),1)],40,_hoisted_13$5))),128))],512),[[vShow,Dn.list.length>0]]),withDirectives(createBaseVNode("div",_hoisted_27$2,[Bn.loading?(openBlock(),createBlock(In,{key:0,name:"loading"})):(openBlock(),createElementBlock("span",_hoisted_28$1,toDisplayString(Bn.emptyMsg),1))],512),[[vShow,Dn.list.length===0]])],2))),128))],544),[[vShow,Bn.isShow]])]),_:1})}const History=_export_sfc(_sfc_main$9,[["render",_sfc_render$9]]),_sfc_main$8={name:"ExtensionCss",components:{IconSvg},mixins:[LanguageMixin],props:{},data(){return{isOpen:!1,list:[]}},computed:{},mounted(){},methods:{init(){this.refresh(!0)},refresh(_n=!1){this.gradioAPI.getExtensionCssList().then(Cn=>{let $n=[];for(let Nn=0;Nn<Cn.length;Nn++)Cn[Nn].manifest=JSON.parse(Cn[Nn].manifest),Cn[Nn].manifest&&typeof Cn[Nn].manifest=="object"&&Cn[Nn].manifest.name&&(Cn[Nn].selected=Cn[Nn].selected||!1,Cn[Nn].id="physton-prompt-extension-"+Cn[Nn].dir,$n.push(Cn[Nn]));$n.forEach(Nn=>{Nn.sort=Nn.manifest.type+"."+Nn.dir}),$n.sort((Nn,Bn)=>Nn.sort>Bn.sort?1:-1),this.list=$n,_n&&this.list.forEach(Nn=>{Nn.selected&&common$1.loadCSS(Nn.style,Nn.id,!0,!1)})})},getName(_n){if(!_n)return"";let Cn=_n.manifest.name;return _n.manifest.i18n&&_n.manifest.i18n[this.languageCode]&&(Cn=_n.manifest.i18n[this.languageCode]),Cn},onChangeSelect(_n){let Cn=this.list.find($n=>$n.id===_n);Cn&&(Cn.selected=!Cn.selected,Cn.selected?common$1.loadCSS(Cn.style,Cn.id,!0,!1):common$1.removeCSS(Cn.id),this.gradioAPI.setData(Cn.dataName,Cn.selected))},open(){this.isOpen=!0,this.refresh(!1)},close(){this.isOpen=!1}}},_hoisted_1$8={class:"extension-table"},_hoisted_2$8=["checked","onChange"],_hoisted_3$8={class:"extension-name"},_hoisted_4$8={class:"extension-type"},_hoisted_5$7={class:"extension-dir"},_hoisted_6$6={class:"extension-author"};function _sfc_render$8(_n,Cn,$n,Nn,Bn,Ln){const In=resolveComponent("icon-svg");return openBlock(),createBlock(Transition,{name:"slideRight"},{default:withCtx(()=>[Bn.isOpen?(openBlock(),createElementBlock("div",{key:0,class:"physton-prompt-extension-css",onClick:Cn[3]||(Cn[3]=(...Pn)=>Ln.close&&Ln.close(...Pn))},[createBaseVNode("div",{class:"extension-main",onClick:Cn[2]||(Cn[2]=withModifiers(()=>{},["stop"]))},[createBaseVNode("div",{class:"extension-close",onClick:Cn[0]||(Cn[0]=(...Pn)=>Ln.close&&Ln.close(...Pn))},[createVNode(In,{name:"close"})]),createBaseVNode("div",{class:"extension-list",onClick:Cn[1]||(Cn[1]=withModifiers(()=>{},["stop"]))},[createBaseVNode("table",_hoisted_1$8,[(openBlock(!0),createElementBlock(Fragment,null,renderList(Bn.list,(Pn,Dn)=>(openBlock(),createElementBlock("tr",{key:Pn.dir,class:"extension-item",ref_for:!0,ref:"items"},[createBaseVNode("td",null,[createBaseVNode("input",{class:"extension-checkbox",type:"checkbox",name:"extension-item",checked:Pn.selected,onChange:Un=>Ln.onChangeSelect(Pn.id)},null,40,_hoisted_2$8)]),createBaseVNode("td",_hoisted_3$8,toDisplayString(Ln.getName(Pn)),1),createBaseVNode("td",_hoisted_4$8,toDisplayString(_n.getLang(Pn.manifest.type)),1),createBaseVNode("td",_hoisted_5$7,toDisplayString(Pn.dir),1),createBaseVNode("td",_hoisted_6$6,[Pn.manifest.author?(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode("By: "+toDisplayString(Pn.manifest.author),1)],64)):createCommentVNode("",!0)])]))),128))])])])])):createCommentVNode("",!0)]),_:1})}const ExtensionCss=_export_sfc(_sfc_main$8,[["render",_sfc_render$8]]),_sfc_main$7={name:"PromptFormat",components:{IconSvg},mixins:[LanguageMixin],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},autoRemoveLoraBeforeComma:{type:Boolean,default:!1},autoRemoveLoraAfterComma:{type:Boolean,default:!1}},data(){return{isOpen:!1}},emits:["update:autoRemoveSpace","update:autoRemoveLastComma","update:autoKeepWeightZero","update:autoKeepWeightOne","update:autoBreakBeforeWrap","update:autoBreakAfterWrap","update:autoRemoveLoraBeforeComma","update:autoRemoveLoraAfterComma"],computed:{},mounted(){},methods:{open(){this.isOpen=!0},close(){this.isOpen=!1}}},_hoisted_1$7={class:"format-item"},_hoisted_2$7=["checked"],_hoisted_3$7=["innerHTML"],_hoisted_4$7={class:"format-item"},_hoisted_5$6=["checked"],_hoisted_6$5=["innerHTML"],_hoisted_7$5={class:"format-item"},_hoisted_8$5=["checked"],_hoisted_9$4=["innerHTML"],_hoisted_10$4={class:"format-item"},_hoisted_11$4=["checked"],_hoisted_12$4=["innerHTML"],_hoisted_13$4={class:"format-item"},_hoisted_14$4=["checked"],_hoisted_15$4=["innerHTML"],_hoisted_16$3={class:"format-item"},_hoisted_17$3=["checked"],_hoisted_18$3=["innerHTML"],_hoisted_19$3={class:"format-item"},_hoisted_20$3=["checked"],_hoisted_21$3=["innerHTML"];function _sfc_render$7(_n,Cn,$n,Nn,Bn,Ln){const In=resolveComponent("icon-svg");return openBlock(),createBlock(Transition,{name:"fadeDown"},{default:withCtx(()=>[Bn.isOpen?(openBlock(),createElementBlock("div",{key:0,class:"physton-prompt-format",onClick:Cn[10]||(Cn[10]=(...Pn)=>Ln.close&&Ln.close(...Pn))},[createBaseVNode("div",{class:"format-main",onClick:Cn[9]||(Cn[9]=withModifiers(()=>{},["stop"]))},[createBaseVNode("div",{class:"format-close",onClick:Cn[0]||(Cn[0]=(...Pn)=>Ln.close&&Ln.close(...Pn))},[createVNode(In,{name:"close"})]),createBaseVNode("div",{class:"format-list",onClick:Cn[8]||(Cn[8]=withModifiers(()=>{},["stop"]))},[createBaseVNode("div",_hoisted_1$7,[createBaseVNode("input",{class:"format-checkbox",type:"checkbox",checked:$n.autoRemoveSpace,onChange:Cn[1]||(Cn[1]=Pn=>_n.$emit("update:autoRemoveSpace",Pn.target.checked))},null,40,_hoisted_2$7),createBaseVNode("div",{class:"format-desc",innerHTML:_n.getLang("is_remove_space")},null,8,_hoisted_3$7)]),createBaseVNode("div",_hoisted_4$7,[createBaseVNode("input",{class:"format-checkbox",type:"checkbox",checked:$n.autoRemoveLastComma,onChange:Cn[2]||(Cn[2]=Pn=>_n.$emit("update:autoRemoveLastComma",Pn.target.checked))},null,40,_hoisted_5$6),createBaseVNode("div",{class:"format-desc",innerHTML:_n.getLang("is_remove_last_comma")},null,8,_hoisted_6$5)]),createBaseVNode("div",_hoisted_7$5,[createBaseVNode("input",{class:"format-checkbox",type:"checkbox",checked:$n.autoKeepWeightZero,onChange:Cn[3]||(Cn[3]=Pn=>_n.$emit("update:autoKeepWeightZero",Pn.target.checked))},null,40,_hoisted_8$5),createBaseVNode("div",{class:"format-desc",innerHTML:_n.getLang("is_keep_weight_zero")},null,8,_hoisted_9$4)]),createBaseVNode("div",_hoisted_10$4,[createBaseVNode("input",{class:"format-checkbox",type:"checkbox",checked:$n.autoBreakBeforeWrap,onChange:Cn[4]||(Cn[4]=Pn=>_n.$emit("update:autoBreakBeforeWrap",Pn.target.checked))},null,40,_hoisted_11$4),createBaseVNode("div",{class:"format-desc",innerHTML:_n.getLang("is_break_before_wrap")},null,8,_hoisted_12$4)]),createBaseVNode("div",_hoisted_13$4,[createBaseVNode("input",{class:"format-checkbox",type:"checkbox",checked:$n.autoBreakAfterWrap,onChange:Cn[5]||(Cn[5]=Pn=>_n.$emit("update:autoBreakAfterWrap",Pn.target.checked))},null,40,_hoisted_14$4),createBaseVNode("div",{class:"format-desc",innerHTML:_n.getLang("is_break_after_wrap")},null,8,_hoisted_15$4)]),createBaseVNode("div",_hoisted_16$3,[createBaseVNode("input",{class:"format-checkbox",type:"checkbox",checked:$n.autoRemoveLoraBeforeComma,onChange:Cn[6]||(Cn[6]=Pn=>_n.$emit("update:autoRemoveLoraBeforeComma",Pn.target.checked))},null,40,_hoisted_17$3),createBaseVNode("div",{class:"format-desc",innerHTML:_n.getLang("is_remove_lora_before_comma")},null,8,_hoisted_18$3)]),createBaseVNode("div",_hoisted_19$3,[createBaseVNode("input",{class:"format-checkbox",type:"checkbox",checked:$n.autoRemoveLoraAfterComma,onChange:Cn[7]||(Cn[7]=Pn=>_n.$emit("update:autoRemoveLoraAfterComma",Pn.target.checked))},null,40,_hoisted_20$3),createBaseVNode("div",{class:"format-desc",innerHTML:_n.getLang("is_remove_lora_after_comma")},null,8,_hoisted_21$3)])])])])):createCommentVNode("",!0)]),_:1})}const PromptFormat=_export_sfc(_sfc_main$7,[["render",_sfc_render$7]]),_sfc_main$6={name:"Blacklist",components:{IconSvg},mixins:[LanguageMixin],props:{},data(){return{isOpen:!1,data:{prompt:[],negative_prompt:[],lora:[],lycoris:[],embedding:[],translate:[]},cancelBlacklistConfirm:!1,textarea:{prompt:"",negative_prompt:"",lora:"",lycoris:"",embedding:"",translate:""}}},emits:["update:blacklist"],computed:{},mounted(){},methods:{open(){this.isOpen=!0,this.data={prompt:[],negative_prompt:[],lora:[],lycoris:[],embedding:[],translate:[]},this.textarea={prompt:"",negative_prompt:"",lora:"",lycoris:"",embedding:"",translate:""},this.gradioAPI.getDatas(["blacklist","cancelBlacklistConfirm"]).then(_n=>{_n.blacklist&&(this.data.prompt=_n.blacklist.prompt||[],this.data.negative_prompt=_n.blacklist.negative_prompt||[],this.data.lora=_n.blacklist.lora||[],this.data.lycoris=_n.blacklist.lycoris||[],this.data.embedding=_n.blacklist.embedding||[],this.data.translate=_n.blacklist.translate||[]),_n.cancelBlacklistConfirm&&(this.cancelBlacklistConfirm=_n.cancelBlacklistConfirm),this.textarea.prompt=this.data.prompt.join(`
|
||
`),this.textarea.negative_prompt=this.data.negative_prompt.join(`
|
||
`),this.textarea.lora=this.data.lora.join(`
|
||
`),this.textarea.lycoris=this.data.lycoris.join(`
|
||
`),this.textarea.embedding=this.data.embedding.join(`
|
||
`),this.textarea.translate=this.data.translate.join(`
|
||
`)})},close(){this.isOpen=!1},onCloseClick(){this.close()},onSaveClick(){this.data.prompt=this.textarea.prompt.split(/\s*\n\s*/).filter(_n=>_n==null?void 0:_n.trim().length),this.data.negative_prompt=this.textarea.negative_prompt.split(/\s*\n\s*/).filter(_n=>_n==null?void 0:_n.trim().length),this.data.lora=this.textarea.lora.split(/\s*\n\s*/).filter(_n=>_n==null?void 0:_n.trim().length),this.data.lycoris=this.textarea.lycoris.split(/\s*\n\s*/).filter(_n=>_n==null?void 0:_n.trim().length),this.data.embedding=this.textarea.embedding.split(/\s*\n\s*/).filter(_n=>_n==null?void 0:_n.trim().length),this.data.translate=this.textarea.translate.split(/\s*\n\s*/).filter(_n=>_n==null?void 0:_n.trim().length),this.gradioAPI.setData("blacklist",this.data),this.gradioAPI.setData("cancelBlacklistConfirm",this.cancelBlacklistConfirm),this.close(),this.$emit("update:blacklist",this.data,this.cancelBlacklistConfirm)}}},_hoisted_1$6={class:"blacklist-desc"},_hoisted_2$6={class:"blacklist-group"},_hoisted_3$6={class:"group-title"},_hoisted_4$6=["placeholder"],_hoisted_5$5={class:"blacklist-group"},_hoisted_6$4={class:"group-title"},_hoisted_7$4=["placeholder"],_hoisted_8$4=createBaseVNode("div",{class:"blacklist-wrap"},null,-1),_hoisted_9$3={class:"blacklist-group"},_hoisted_10$3={class:"group-title"},_hoisted_11$3=["placeholder"],_hoisted_12$3={class:"blacklist-group"},_hoisted_13$3={class:"group-title"},_hoisted_14$3=["placeholder"],_hoisted_15$3={class:"blacklist-group"},_hoisted_16$2={class:"group-title"},_hoisted_17$2=["placeholder"],_hoisted_18$2=createBaseVNode("div",{class:"blacklist-wrap"},null,-1),_hoisted_19$2={class:"blacklist-group"},_hoisted_20$2={class:"group-title"},_hoisted_21$2=createBaseVNode("div",{class:"blacklist-wrap"},null,-1),_hoisted_22$2={class:"blacklist-desc"},_hoisted_23$2={class:"blacklist-group"},_hoisted_24$1={class:"group-title"},_hoisted_25$1=["placeholder"],_hoisted_26$1=createBaseVNode("div",{class:"blacklist-wrap"},null,-1),_hoisted_27$1={class:"setting-btns"};function _sfc_render$6(_n,Cn,$n,Nn,Bn,Ln){return openBlock(),createBlock(Transition,{name:"fadeDown"},{default:withCtx(()=>[Bn.isOpen?(openBlock(),createElementBlock("div",{key:0,class:"physton-prompt-blacklist",onClick:Cn[11]||(Cn[11]=()=>{})},[createBaseVNode("div",{class:"blacklist-main",onClick:Cn[10]||(Cn[10]=withModifiers(()=>{},["stop"]))},[createBaseVNode("div",{class:"blacklist-body",onClick:Cn[9]||(Cn[9]=withModifiers(()=>{},["stop"]))},[createBaseVNode("div",_hoisted_1$6,"1. "+toDisplayString(_n.getLang("blacklist_desc")),1),createBaseVNode("div",_hoisted_2$6,[createBaseVNode("div",_hoisted_3$6,toDisplayString(_n.getLang("prompt_blacklist_list"))+":",1),withDirectives(createBaseVNode("textarea",{class:"group-content",placeholder:_n.getLang("one_keyword_per_line"),"onUpdate:modelValue":Cn[0]||(Cn[0]=In=>Bn.textarea.prompt=In)},null,8,_hoisted_4$6),[[vModelText,Bn.textarea.prompt]])]),createBaseVNode("div",_hoisted_5$5,[createBaseVNode("div",_hoisted_6$4,toDisplayString(_n.getLang("negative_prompt_blacklist_list"))+":",1),withDirectives(createBaseVNode("textarea",{class:"group-content",placeholder:_n.getLang("one_keyword_per_line"),"onUpdate:modelValue":Cn[1]||(Cn[1]=In=>Bn.textarea.negative_prompt=In)},null,8,_hoisted_7$4),[[vModelText,Bn.textarea.negative_prompt]])]),_hoisted_8$4,createBaseVNode("div",_hoisted_9$3,[createBaseVNode("div",_hoisted_10$3,toDisplayString(_n.getLang("lora_blacklist_list"))+":",1),withDirectives(createBaseVNode("textarea",{class:"group-content",placeholder:_n.getLang("one_keyword_per_line"),"onUpdate:modelValue":Cn[2]||(Cn[2]=In=>Bn.textarea.lora=In)},null,8,_hoisted_11$3),[[vModelText,Bn.textarea.lora]])]),createBaseVNode("div",_hoisted_12$3,[createBaseVNode("div",_hoisted_13$3,toDisplayString(_n.getLang("lycoris_blacklist_list"))+":",1),withDirectives(createBaseVNode("textarea",{class:"group-content",placeholder:_n.getLang("one_keyword_per_line"),"onUpdate:modelValue":Cn[3]||(Cn[3]=In=>Bn.textarea.lycoris=In)},null,8,_hoisted_14$3),[[vModelText,Bn.textarea.lycoris]])]),createBaseVNode("div",_hoisted_15$3,[createBaseVNode("div",_hoisted_16$2,toDisplayString(_n.getLang("embedding_blacklist_list"))+":",1),withDirectives(createBaseVNode("textarea",{class:"group-content",placeholder:_n.getLang("one_keyword_per_line"),"onUpdate:modelValue":Cn[4]||(Cn[4]=In=>Bn.textarea.embedding=In)},null,8,_hoisted_17$2),[[vModelText,Bn.textarea.embedding]])]),_hoisted_18$2,createBaseVNode("div",_hoisted_19$2,[createBaseVNode("div",_hoisted_20$2,[createBaseVNode("label",null,[withDirectives(createBaseVNode("input",{type:"checkbox","onUpdate:modelValue":Cn[5]||(Cn[5]=In=>Bn.cancelBlacklistConfirm=In)},null,512),[[vModelCheckbox,Bn.cancelBlacklistConfirm]]),createTextVNode(" "+toDisplayString(_n.getLang("cancel_confirm_add_blacklist")),1)])])]),_hoisted_21$2,createBaseVNode("div",_hoisted_22$2,"2. "+toDisplayString(_n.getLang("translate_blacklist_desc")),1),createBaseVNode("div",_hoisted_23$2,[createBaseVNode("div",_hoisted_24$1,toDisplayString(_n.getLang("disable_translate_prompt_blacklist_list"))+":",1),withDirectives(createBaseVNode("textarea",{class:"group-content",placeholder:_n.getLang("one_keyword_per_line"),"onUpdate:modelValue":Cn[6]||(Cn[6]=In=>Bn.textarea.translate=In)},null,8,_hoisted_25$1),[[vModelText,Bn.textarea.translate]])]),_hoisted_26$1,createBaseVNode("div",_hoisted_27$1,[createBaseVNode("div",{class:"blacklist-save hover-scale-120",onClick:Cn[7]||(Cn[7]=(...In)=>Ln.onSaveClick&&Ln.onSaveClick(...In))},toDisplayString(_n.getLang("save")),1),createBaseVNode("div",{class:"blacklist-close hover-scale-120",onClick:Cn[8]||(Cn[8]=(...In)=>Ln.onCloseClick&&Ln.onCloseClick(...In))},toDisplayString(_n.getLang("close")),1)])])])])):createCommentVNode("",!0)]),_:1})}const Blacklist=_export_sfc(_sfc_main$6,[["render",_sfc_render$6]]),_sfc_main$5={name:"PackagesState",components:{IconSvg},mixins:[LanguageMixin],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(_n){for(let Cn of this.packagesState)if(Cn.name===_n)return Cn.state;return!1},isAllInstalled(){for(let _n of this.packagesState)if(!_n.state)return!1;return!0},getCommand(_n){return`${this.python} -m pip install ${_n.package}`},onInstallClick(){if(this.loading)return;this.loading=!0,this.showResult=!0,this.result="";let _n=[];this.packagesState.forEach(Nn=>{Nn.state||_n.push(Nn)});const Cn=(Nn=!1)=>{this.loading=!1,Nn&&(this.result+=`
|
||
complete!`,setTimeout(this.close,2e3)),this.scrollToBottom()},$n=()=>{let Nn=_n.shift();if(!Nn)return Cn(!0);this.gradioAPI.installPackage(Nn.name,Nn.package).then(Bn=>{this.result+=`${Bn.message}
|
||
`,Bn.state?(this.scrollToBottom(),$n()):Cn(!1)}).catch(Bn=>{console.log(Bn),this.result+=`${Nn.name} install failed
|
||
${Bn.message}
|
||
`,Cn(!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(_n=>{_n&&_n===new Date().toLocaleDateString()?this.close():(this.result="",this.loading=!1,this.showResult=!1,this.isOpen=!0)}).catch(_n=>{})},close(){this.isOpen=!1}}},_hoisted_1$5={class:"today-now-show"},_hoisted_2$5=["value"],_hoisted_3$5={class:"state-body-name"},_hoisted_4$5=["innerHTML"],_hoisted_5$4={class:"package-list"},_hoisted_6$3={class:"package-name"},_hoisted_7$3={class:"package-command"},_hoisted_8$3={key:0,class:"install-result"};function _sfc_render$5(_n,Cn,$n,Nn,Bn,Ln){const In=resolveComponent("icon-svg");return openBlock(),createBlock(Transition,{name:"fadeDown"},{default:withCtx(()=>[Bn.isOpen?(openBlock(),createElementBlock("div",{key:0,class:"physton-packages-state",onClick:Cn[6]||(Cn[6]=(...Pn)=>Ln.close&&Ln.close(...Pn))},[createBaseVNode("div",{class:"state-main",onClick:Cn[5]||(Cn[5]=withModifiers(()=>{},["stop"]))},[createBaseVNode("div",{class:"state-close",onClick:Cn[0]||(Cn[0]=(...Pn)=>Ln.close&&Ln.close(...Pn))},[createVNode(In,{name:"close"})]),createBaseVNode("div",{class:"state-body",onClick:Cn[4]||(Cn[4]=withModifiers(()=>{},["stop"]))},[createBaseVNode("div",_hoisted_1$5,[createBaseVNode("label",null,[createBaseVNode("input",{type:"checkbox",value:Bn.todayNotShow,onChange:Cn[1]||(Cn[1]=(...Pn)=>Ln.onTodayNotShowChange&&Ln.onTodayNotShowChange(...Pn))},null,40,_hoisted_2$5),createTextVNode(" "+toDisplayString(_n.getLang("today_not_show")),1)])]),createBaseVNode("div",_hoisted_3$5,toDisplayString(_n.globals.shortName),1),createBaseVNode("div",{class:"state-body-language",onClick:Cn[2]||(Cn[2]=Pn=>_n.$emit("click:selectLanguage",Pn))},[createVNode(In,{name:"i18n"}),createBaseVNode("div",null,"Language: "+toDisplayString(_n.langName),1)]),createBaseVNode("div",{class:"state-body-desc",innerHTML:_n.getLang("packages_desc")},null,8,_hoisted_4$5),createBaseVNode("div",_hoisted_5$4,[(openBlock(!0),createElementBlock(Fragment,null,renderList($n.packagesState,Pn=>(openBlock(),createElementBlock("div",{key:Pn.name,class:"package-item"},[createBaseVNode("div",_hoisted_6$3,toDisplayString(Pn.name),1),createBaseVNode("div",{class:normalizeClass(["package-state",Pn.state?"installed":"not_install"])},toDisplayString(_n.getLang(Pn.state?"installed":"not_install")),3),createBaseVNode("div",_hoisted_7$3,toDisplayString(Ln.getCommand(Pn)),1)]))),128))]),createBaseVNode("div",{class:"btn-packages-install hover-scale-120",onClick:Cn[3]||(Cn[3]=(...Pn)=>Ln.onInstallClick&&Ln.onInstallClick(...Pn))},[Bn.loading?(openBlock(),createBlock(In,{key:0,name:"loading"})):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString(_n.getLang("install")),1)],64))]),Bn.showResult?(openBlock(),createElementBlock("div",_hoisted_8$3,[createTextVNode(toDisplayString(_n.getLang("packages_installing"))+" ",1),Bn.result?(openBlock(),createElementBlock("div",{key:0,class:"result-content",ref:"result"},toDisplayString(Bn.result),513)):createCommentVNode("",!0)])):createCommentVNode("",!0)])])])):createCommentVNode("",!0)]),_:1})}const PackagesState=_export_sfc(_sfc_main$5,[["render",_sfc_render$5]]),_sfc_main$4={name:"ChatgptPrompt",components:{IconSvg},mixins:[LanguageMixin],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(_n=>{console.log(_n),_n.chatgpt_prompts_preset!==null?this.chatPreset=_n.chatgpt_prompts_preset:this.chatPreset=this.getLang("chatgpt_prompts_preset"),this.configs=[];let Cn={},$n=common$1.getTranslateApiItem(this.translateApis,"openai");if($n=JSON.parse(JSON.stringify($n)),_n.chatgpt_key&&typeof _n.chatgpt_key=="object")for(const Nn of $n.config)Cn[Nn.key]=_n.chatgpt_key[Nn.key]||Nn.default||"";else for(const Nn of $n.config)Cn[Nn.key]=Nn.default||"";Cn.api_key||(this.hidePanels.api=!1);for(const Nn of $n.config)Nn.value=Cn[Nn.key],this.configs.push(Nn)})},close(){this.isOpen=!1},onUnfoldClick(_n){this.hidePanels[_n]=!this.hidePanels[_n]},onSaveConfigClick(){if(this.saveConfigIng)return;this.saveConfigIng=!0;let _n={};this.configs.forEach(Cn=>{_n[Cn.key]=Cn.value}),this.gradioAPI.setData("chatgpt_key",_n).then(Cn=>{this.$toastr.success(this.getLang("success")),this.saveConfigIng=!1}).catch(Cn=>{this.$toastr.error(Cn.message||Cn),this.saveConfigIng=!1})},onPresetChange(_n){this.chatPreset=_n.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 _n=[{role:"user",content:this.chatPreset},{role:"user",content:this.imageDesc}],Cn={};this.configs.forEach($n=>{Cn[$n.key]=$n.value}),this.gradioAPI.genOpenAI(_n,Cn).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()}}},_hoisted_1$4={class:"panel-header"},_hoisted_2$4={class:"panel-title"},_hoisted_3$4={class:"panel-content"},_hoisted_4$4={class:"body-line"},_hoisted_5$3={class:"line-title"},_hoisted_6$2={class:"line-content"},_hoisted_7$2=["onUpdate:modelValue"],_hoisted_8$2=["onUpdate:modelValue"],_hoisted_9$2=["value"],_hoisted_10$2=["innerHTML"],_hoisted_11$2={class:"body-line"},_hoisted_12$2=createBaseVNode("div",{class:"line-title"},null,-1),_hoisted_13$2={class:"line-content text-right"},_hoisted_14$2={class:"panel-header"},_hoisted_15$2={class:"panel-title"},_hoisted_16$1={class:"panel-content"},_hoisted_17$1={class:"body-line"},_hoisted_18$1={class:"line-title"},_hoisted_19$1={class:"line-subtitle"},_hoisted_20$1={class:"line-content"},_hoisted_21$1=["value"],_hoisted_22$1={class:"body-line"},_hoisted_23$1=createBaseVNode("div",{class:"line-title"},null,-1),_hoisted_24={class:"line-content text-right"},_hoisted_25={class:"body-line"},_hoisted_26={class:"line-title"},_hoisted_27={class:"line-subtitle"},_hoisted_28={class:"line-content"},_hoisted_29=["placeholder"],_hoisted_30={class:"body-line"},_hoisted_31=createBaseVNode("div",{class:"line-title"},null,-1),_hoisted_32={class:"line-content text-right"},_hoisted_33={class:"panel-header"},_hoisted_34={class:"panel-title"},_hoisted_35={class:"panel-content"},_hoisted_36={class:"body-line"},_hoisted_37={class:"line-title"},_hoisted_38={class:"line-content"},_hoisted_39={key:0,class:"body-line"},_hoisted_40=createBaseVNode("div",{class:"line-title"},null,-1),_hoisted_41={class:"line-content text-right"};function _sfc_render$4(_n,Cn,$n,Nn,Bn,Ln){const In=resolveComponent("icon-svg");return openBlock(),createBlock(Transition,{name:"fadeDown"},{default:withCtx(()=>[Bn.isOpen?(openBlock(),createElementBlock("div",{key:0,class:"physton-chatgpt-prompt",onClick:Cn[13]||(Cn[13]=(...Pn)=>Ln.close&&Ln.close(...Pn))},[createBaseVNode("div",{class:"chatgpt-main",onClick:Cn[12]||(Cn[12]=withModifiers(()=>{},["stop"]))},[createBaseVNode("div",{class:"chatgpt-close",onClick:Cn[0]||(Cn[0]=(...Pn)=>Ln.close&&Ln.close(...Pn))},[createVNode(In,{name:"close"})]),createBaseVNode("div",{class:"chatgpt-body",onClick:Cn[11]||(Cn[11]=withModifiers(()=>{},["stop"]))},[createBaseVNode("div",{class:normalizeClass(["body-panel",Bn.hidePanels.api?"fold":""])},[createBaseVNode("div",_hoisted_1$4,[createBaseVNode("div",{class:"panel-unfold",onClick:Cn[1]||(Cn[1]=Pn=>Ln.onUnfoldClick("api"))},[createVNode(In,{class:"hover-scale-120",name:"unfold"})]),createBaseVNode("div",_hoisted_2$4,toDisplayString(_n.getLang("api_config")),1)]),createBaseVNode("div",_hoisted_3$4,[(openBlock(!0),createElementBlock(Fragment,null,renderList(Bn.configs,Pn=>(openBlock(),createElementBlock("div",_hoisted_4$4,[createBaseVNode("div",_hoisted_5$3,toDisplayString(Pn.title),1),createBaseVNode("div",_hoisted_6$2,[Pn.type=="input"?withDirectives((openBlock(),createElementBlock("input",{key:0,type:"text","onUpdate:modelValue":Dn=>Pn.value=Dn},null,8,_hoisted_7$2)),[[vModelText,Pn.value]]):createCommentVNode("",!0),Pn.type=="select"?withDirectives((openBlock(),createElementBlock("select",{key:1,"onUpdate:modelValue":Dn=>Pn.value=Dn},[(openBlock(!0),createElementBlock(Fragment,null,renderList(Pn.options,Dn=>(openBlock(),createElementBlock("option",{value:Dn},toDisplayString(Dn),9,_hoisted_9$2))),256))],8,_hoisted_8$2)),[[vModelSelect,Pn.value]]):createCommentVNode("",!0),Pn.desc?(openBlock(),createElementBlock("div",{key:2,innerHTML:Pn.desc},null,8,_hoisted_10$2)):createCommentVNode("",!0)])]))),256)),createBaseVNode("div",_hoisted_11$2,[_hoisted_12$2,createBaseVNode("div",_hoisted_13$2,[createBaseVNode("div",{class:"common-btn hover-scale-120",onClick:Cn[2]||(Cn[2]=(...Pn)=>Ln.onSaveConfigClick&&Ln.onSaveConfigClick(...Pn))},[Bn.saveConfigIng?(openBlock(),createBlock(In,{key:0,name:"loading"})):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString(_n.getLang("save")),1)],64))])])])])],2),createBaseVNode("div",{class:normalizeClass(["body-panel",Bn.hidePanels.send?"fold":""])},[createBaseVNode("div",_hoisted_14$2,[createBaseVNode("div",{class:"panel-unfold",onClick:Cn[3]||(Cn[3]=Pn=>Ln.onUnfoldClick("send"))},[createVNode(In,{class:"hover-scale-120",name:"unfold"})]),createBaseVNode("div",_hoisted_15$2,toDisplayString(_n.getLang("image_desc")),1)]),createBaseVNode("div",_hoisted_16$1,[createBaseVNode("div",_hoisted_17$1,[createBaseVNode("div",_hoisted_18$1,[createTextVNode(toDisplayString(_n.getLang("preset"))+" ",1),createBaseVNode("div",_hoisted_19$1,toDisplayString(_n.getLang("ai_one")),1)]),createBaseVNode("div",_hoisted_20$1,[createBaseVNode("textarea",{value:Bn.chatPreset,onChange:Cn[4]||(Cn[4]=(...Pn)=>Ln.onPresetChange&&Ln.onPresetChange(...Pn)),style:{height:"100px"}},null,40,_hoisted_21$1)])]),createBaseVNode("div",_hoisted_22$1,[_hoisted_23$1,createBaseVNode("div",_hoisted_24,[createBaseVNode("a",{href:"javascript:",onClick:Cn[5]||(Cn[5]=(...Pn)=>Ln.onRestoreClick&&Ln.onRestoreClick(...Pn))},toDisplayString(_n.getLang("restore_to_default")),1)])]),createBaseVNode("div",_hoisted_25,[createBaseVNode("div",_hoisted_26,[createTextVNode(toDisplayString(_n.getLang("image_desc"))+" ",1),createBaseVNode("div",_hoisted_27,toDisplayString(_n.getLang("ai_two")),1)]),createBaseVNode("div",_hoisted_28,[withDirectives(createBaseVNode("textarea",{style:{height:"100px"},ref:"imageDesc","onUpdate:modelValue":Cn[6]||(Cn[6]=Pn=>Bn.imageDesc=Pn),placeholder:_n.getLang("input_image_desc")},null,8,_hoisted_29),[[vModelText,Bn.imageDesc]])])]),createBaseVNode("div",_hoisted_30,[_hoisted_31,createBaseVNode("div",_hoisted_32,[createBaseVNode("div",{class:"common-btn hover-scale-120",onClick:Cn[7]||(Cn[7]=(...Pn)=>Ln.onGenClick&&Ln.onGenClick(...Pn))},[Bn.genIng?(openBlock(),createBlock(In,{key:0,name:"loading"})):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString(_n.getLang("generate")),1)],64))])])])])],2),createBaseVNode("div",{class:normalizeClass(["body-panel",Bn.hidePanels.result?"fold":""])},[createBaseVNode("div",_hoisted_33,[createBaseVNode("div",{class:"panel-unfold",onClick:Cn[8]||(Cn[8]=Pn=>Ln.onUnfoldClick("result"))},[createVNode(In,{class:"hover-scale-120",name:"unfold"})]),createBaseVNode("div",_hoisted_34,toDisplayString(_n.getLang("generate_result")),1)]),createBaseVNode("div",_hoisted_35,[createBaseVNode("div",_hoisted_36,[createBaseVNode("div",_hoisted_37,toDisplayString(_n.getLang("generate_result")),1),createBaseVNode("div",_hoisted_38,[withDirectives(createBaseVNode("textarea",{style:{height:"100px"},"onUpdate:modelValue":Cn[9]||(Cn[9]=Pn=>Bn.promptResult=Pn)},null,512),[[vModelText,Bn.promptResult]])])]),Bn.promptResult?(openBlock(),createElementBlock("div",_hoisted_39,[_hoisted_40,createBaseVNode("div",_hoisted_41,[createBaseVNode("div",{class:"common-btn hover-scale-120",onClick:Cn[10]||(Cn[10]=(...Pn)=>Ln.onUseClick&&Ln.onUseClick(...Pn))},toDisplayString(_n.getLang("use")),1)])])):createCommentVNode("",!0)])],2)])])])):createCommentVNode("",!0)]),_:1})}const ChatgptPrompt=_export_sfc(_sfc_main$4,[["render",_sfc_render$4]]),_sfc_main$3={name:"About",components:{IconSvg},mixins:[LanguageMixin],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(_n=>{this.version=_n.version,this.latestVersion=_n.latest_version,this.isLatestVersion=_n.version===_n.latest_version}),this.gradioAPI.getRemoteVersions().then(_n=>{this.loading=!1;let Cn=[];_n.forEach(($n,Nn)=>{$n.is_update_readme||($n.date=common$1.formatTime($n.date),Cn.push($n))}),this.versions=Cn}).catch(_n=>{this.loading=!1})},close(){this.isOpen=!1},commitUrl(_n){return this.globals.github+"/commit/"+_n},formatVersion(_n){return _n?_n.slice(0,7):this.getLang("unknown_version")},message(_n){return _n=common$1.escapeHtml(_n),_n=_n.replace(/Former-commit-id: [a-z0-9]{40}/g,""),_n=_n.trim(),_n=_n.replace(`
|
||
`,"<br/>"),_n=_n.replace(/#(\d+)/g,'<a href="'+this.globals.github+'/issues/$1" target="_blank">#$1</a>'),_n}}},_hoisted_1$3={class:"body-title"},_hoisted_2$3=["href"],_hoisted_3$3=["href"],_hoisted_4$3=["src","alt"],_hoisted_5$2={key:0},_hoisted_6$1=["href"],_hoisted_7$1={key:0,class:"has-new-version"},_hoisted_8$1=["href"],_hoisted_9$1=["href"],_hoisted_10$1={class:"version-list"},_hoisted_11$1={class:"item-header"},_hoisted_12$1={class:"version-sha"},_hoisted_13$1=["href"],_hoisted_14$1={class:"version-date"},_hoisted_15$1=["innerHTML"];function _sfc_render$3(_n,Cn,$n,Nn,Bn,Ln){const In=resolveComponent("icon-svg");return openBlock(),createBlock(Transition,{name:"fadeDown"},{default:withCtx(()=>[Bn.isOpen?(openBlock(),createElementBlock("div",{key:0,class:"physton-about-prompt",onClick:Cn[3]||(Cn[3]=(...Pn)=>Ln.close&&Ln.close(...Pn))},[createBaseVNode("div",{class:"about-main",onClick:Cn[2]||(Cn[2]=withModifiers(()=>{},["stop"]))},[createBaseVNode("div",{class:"about-close",onClick:Cn[0]||(Cn[0]=(...Pn)=>Ln.close&&Ln.close(...Pn))},[createVNode(In,{name:"close"})]),createBaseVNode("div",{class:"about-body",onClick:Cn[1]||(Cn[1]=withModifiers(()=>{},["stop"]))},[createBaseVNode("p",_hoisted_1$3,[createBaseVNode("a",{href:_n.globals.github,target:"_blank"},toDisplayString(_n.globals.name),9,_hoisted_2$3)]),createBaseVNode("p",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(Bn.icons,Pn=>(openBlock(),createElementBlock("a",{key:Pn.title,href:Pn.url,target:"_blank"},[createBaseVNode("img",{src:Pn.image,alt:Pn.title},null,8,_hoisted_4$3)],8,_hoisted_3$3))),128))]),Bn.loading?createCommentVNode("",!0):(openBlock(),createElementBlock("p",_hoisted_5$2,[createBaseVNode("span",null,[createTextVNode(toDisplayString(_n.getLang("version"))+": ",1),createBaseVNode("a",{href:Ln.commitUrl(Bn.version),target:"_blank"},toDisplayString(Ln.formatVersion(Bn.version)),9,_hoisted_6$1)]),!Bn.isLatestVersion&&Bn.latestVersion?(openBlock(),createElementBlock("span",_hoisted_7$1,[createTextVNode(" ("+toDisplayString(_n.getLang("has_new_version"))+": ",1),createBaseVNode("a",{href:Ln.commitUrl(Bn.latestVersion),target:"_blank"},toDisplayString(Ln.formatVersion(Bn.latestVersion)),9,_hoisted_8$1),createTextVNode(")")])):createCommentVNode("",!0)])),createBaseVNode("p",null,[createTextVNode(toDisplayString(_n.getLang("wiki_desc"))+" ",1),createBaseVNode("a",{href:_n.replaceGlobals("{{docs}}"),target:"_blank"},"Wiki",8,_hoisted_9$1)]),createBaseVNode("div",_hoisted_10$1,[Bn.loading?(openBlock(),createBlock(In,{key:0,name:"loading"})):createCommentVNode("",!0),(openBlock(!0),createElementBlock(Fragment,null,renderList(Bn.versions,Pn=>(openBlock(),createElementBlock("div",{class:"version-item",key:Pn.version},[createBaseVNode("div",_hoisted_11$1,[createBaseVNode("div",_hoisted_12$1,[createBaseVNode("a",{href:Ln.commitUrl(Pn.version),target:"_blank"},toDisplayString(Ln.formatVersion(Pn.version)),9,_hoisted_13$1)]),createBaseVNode("div",_hoisted_14$1,toDisplayString(Pn.date),1)]),createBaseVNode("div",{class:"version-msg",innerHTML:Ln.message(Pn.message)},null,8,_hoisted_15$1)]))),128))])])])])):createCommentVNode("",!0)]),_:1})}const About=_export_sfc(_sfc_main$3,[["render",_sfc_render$3]]);/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function isNothing(_n){return typeof _n>"u"||_n===null}function isObject$1(_n){return typeof _n=="object"&&_n!==null}function toArray$1(_n){return Array.isArray(_n)?_n:isNothing(_n)?[]:[_n]}function extend$1(_n,Cn){var $n,Nn,Bn,Ln;if(Cn)for(Ln=Object.keys(Cn),$n=0,Nn=Ln.length;$n<Nn;$n+=1)Bn=Ln[$n],_n[Bn]=Cn[Bn];return _n}function repeat(_n,Cn){var $n="",Nn;for(Nn=0;Nn<Cn;Nn+=1)$n+=_n;return $n}function isNegativeZero(_n){return _n===0&&Number.NEGATIVE_INFINITY===1/_n}var isNothing_1=isNothing,isObject_1=isObject$1,toArray_1=toArray$1,repeat_1=repeat,isNegativeZero_1=isNegativeZero,extend_1=extend$1,common={isNothing:isNothing_1,isObject:isObject_1,toArray:toArray_1,repeat:repeat_1,isNegativeZero:isNegativeZero_1,extend:extend_1};function formatError(_n,Cn){var $n="",Nn=_n.reason||"(unknown reason)";return _n.mark?(_n.mark.name&&($n+='in "'+_n.mark.name+'" '),$n+="("+(_n.mark.line+1)+":"+(_n.mark.column+1)+")",!Cn&&_n.mark.snippet&&($n+=`
|
||
|
||
`+_n.mark.snippet),Nn+" "+$n):Nn}function YAMLException$1(_n,Cn){Error.call(this),this.name="YAMLException",this.reason=_n,this.mark=Cn,this.message=formatError(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}YAMLException$1.prototype=Object.create(Error.prototype),YAMLException$1.prototype.constructor=YAMLException$1,YAMLException$1.prototype.toString=function _n(Cn){return this.name+": "+formatError(this,Cn)};var exception=YAMLException$1;function getLine(_n,Cn,$n,Nn,Bn){var Ln="",In="",Pn=Math.floor(Bn/2)-1;return Nn-Cn>Pn&&(Ln=" ... ",Cn=Nn-Pn+Ln.length),$n-Nn>Pn&&(In=" ...",$n=Nn+Pn-In.length),{str:Ln+_n.slice(Cn,$n).replace(/\t/g,"→")+In,pos:Nn-Cn+Ln.length}}function padStart(_n,Cn){return common.repeat(" ",Cn-_n.length)+_n}function makeSnippet(_n,Cn){if(Cn=Object.create(Cn||null),!_n.buffer)return null;Cn.maxLength||(Cn.maxLength=79),typeof Cn.indent!="number"&&(Cn.indent=1),typeof Cn.linesBefore!="number"&&(Cn.linesBefore=3),typeof Cn.linesAfter!="number"&&(Cn.linesAfter=2);for(var $n=/\r?\n|\r|\0/g,Nn=[0],Bn=[],Ln,In=-1;Ln=$n.exec(_n.buffer);)Bn.push(Ln.index),Nn.push(Ln.index+Ln[0].length),_n.position<=Ln.index&&In<0&&(In=Nn.length-2);In<0&&(In=Nn.length-1);var Pn="",Dn,Un,Hn=Math.min(_n.line+Cn.linesAfter,Bn.length).toString().length,Xn=Cn.maxLength-(Cn.indent+Hn+3);for(Dn=1;Dn<=Cn.linesBefore&&!(In-Dn<0);Dn++)Un=getLine(_n.buffer,Nn[In-Dn],Bn[In-Dn],_n.position-(Nn[In]-Nn[In-Dn]),Xn),Pn=common.repeat(" ",Cn.indent)+padStart((_n.line-Dn+1).toString(),Hn)+" | "+Un.str+`
|
||
`+Pn;for(Un=getLine(_n.buffer,Nn[In],Bn[In],_n.position,Xn),Pn+=common.repeat(" ",Cn.indent)+padStart((_n.line+1).toString(),Hn)+" | "+Un.str+`
|
||
`,Pn+=common.repeat("-",Cn.indent+Hn+3+Un.pos)+`^
|
||
`,Dn=1;Dn<=Cn.linesAfter&&!(In+Dn>=Bn.length);Dn++)Un=getLine(_n.buffer,Nn[In+Dn],Bn[In+Dn],_n.position-(Nn[In]-Nn[In+Dn]),Xn),Pn+=common.repeat(" ",Cn.indent)+padStart((_n.line+Dn+1).toString(),Hn)+" | "+Un.str+`
|
||
`;return Pn.replace(/\n$/,"")}var snippet=makeSnippet,TYPE_CONSTRUCTOR_OPTIONS=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],YAML_NODE_KINDS=["scalar","sequence","mapping"];function compileStyleAliases(_n){var Cn={};return _n!==null&&Object.keys(_n).forEach(function($n){_n[$n].forEach(function(Nn){Cn[String(Nn)]=$n})}),Cn}function Type$1(_n,Cn){if(Cn=Cn||{},Object.keys(Cn).forEach(function($n){if(TYPE_CONSTRUCTOR_OPTIONS.indexOf($n)===-1)throw new exception('Unknown option "'+$n+'" is met in definition of "'+_n+'" YAML type.')}),this.options=Cn,this.tag=_n,this.kind=Cn.kind||null,this.resolve=Cn.resolve||function(){return!0},this.construct=Cn.construct||function($n){return $n},this.instanceOf=Cn.instanceOf||null,this.predicate=Cn.predicate||null,this.represent=Cn.represent||null,this.representName=Cn.representName||null,this.defaultStyle=Cn.defaultStyle||null,this.multi=Cn.multi||!1,this.styleAliases=compileStyleAliases(Cn.styleAliases||null),YAML_NODE_KINDS.indexOf(this.kind)===-1)throw new exception('Unknown kind "'+this.kind+'" is specified for "'+_n+'" YAML type.')}var type=Type$1;function compileList(_n,Cn){var $n=[];return _n[Cn].forEach(function(Nn){var Bn=$n.length;$n.forEach(function(Ln,In){Ln.tag===Nn.tag&&Ln.kind===Nn.kind&&Ln.multi===Nn.multi&&(Bn=In)}),$n[Bn]=Nn}),$n}function compileMap(){var _n={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},Cn,$n;function Nn(Bn){Bn.multi?(_n.multi[Bn.kind].push(Bn),_n.multi.fallback.push(Bn)):_n[Bn.kind][Bn.tag]=_n.fallback[Bn.tag]=Bn}for(Cn=0,$n=arguments.length;Cn<$n;Cn+=1)arguments[Cn].forEach(Nn);return _n}function Schema$1(_n){return this.extend(_n)}Schema$1.prototype.extend=function _n(Cn){var $n=[],Nn=[];if(Cn instanceof type)Nn.push(Cn);else if(Array.isArray(Cn))Nn=Nn.concat(Cn);else if(Cn&&(Array.isArray(Cn.implicit)||Array.isArray(Cn.explicit)))Cn.implicit&&($n=$n.concat(Cn.implicit)),Cn.explicit&&(Nn=Nn.concat(Cn.explicit));else throw new exception("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");$n.forEach(function(Ln){if(!(Ln instanceof type))throw new exception("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(Ln.loadKind&&Ln.loadKind!=="scalar")throw new exception("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(Ln.multi)throw new exception("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),Nn.forEach(function(Ln){if(!(Ln instanceof type))throw new exception("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var Bn=Object.create(Schema$1.prototype);return Bn.implicit=(this.implicit||[]).concat($n),Bn.explicit=(this.explicit||[]).concat(Nn),Bn.compiledImplicit=compileList(Bn,"implicit"),Bn.compiledExplicit=compileList(Bn,"explicit"),Bn.compiledTypeMap=compileMap(Bn.compiledImplicit,Bn.compiledExplicit),Bn};var schema=Schema$1,str=new type("tag:yaml.org,2002:str",{kind:"scalar",construct:function(_n){return _n!==null?_n:""}}),seq=new type("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(_n){return _n!==null?_n:[]}}),map=new type("tag:yaml.org,2002:map",{kind:"mapping",construct:function(_n){return _n!==null?_n:{}}}),failsafe=new schema({explicit:[str,seq,map]});function resolveYamlNull(_n){if(_n===null)return!0;var Cn=_n.length;return Cn===1&&_n==="~"||Cn===4&&(_n==="null"||_n==="Null"||_n==="NULL")}function constructYamlNull(){return null}function isNull(_n){return _n===null}var _null=new type("tag:yaml.org,2002:null",{kind:"scalar",resolve:resolveYamlNull,construct:constructYamlNull,predicate:isNull,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function resolveYamlBoolean(_n){if(_n===null)return!1;var Cn=_n.length;return Cn===4&&(_n==="true"||_n==="True"||_n==="TRUE")||Cn===5&&(_n==="false"||_n==="False"||_n==="FALSE")}function constructYamlBoolean(_n){return _n==="true"||_n==="True"||_n==="TRUE"}function isBoolean$1(_n){return Object.prototype.toString.call(_n)==="[object Boolean]"}var bool=new type("tag:yaml.org,2002:bool",{kind:"scalar",resolve:resolveYamlBoolean,construct:constructYamlBoolean,predicate:isBoolean$1,represent:{lowercase:function(_n){return _n?"true":"false"},uppercase:function(_n){return _n?"TRUE":"FALSE"},camelcase:function(_n){return _n?"True":"False"}},defaultStyle:"lowercase"});function isHexCode(_n){return 48<=_n&&_n<=57||65<=_n&&_n<=70||97<=_n&&_n<=102}function isOctCode(_n){return 48<=_n&&_n<=55}function isDecCode(_n){return 48<=_n&&_n<=57}function resolveYamlInteger(_n){if(_n===null)return!1;var Cn=_n.length,$n=0,Nn=!1,Bn;if(!Cn)return!1;if(Bn=_n[$n],(Bn==="-"||Bn==="+")&&(Bn=_n[++$n]),Bn==="0"){if($n+1===Cn)return!0;if(Bn=_n[++$n],Bn==="b"){for($n++;$n<Cn;$n++)if(Bn=_n[$n],Bn!=="_"){if(Bn!=="0"&&Bn!=="1")return!1;Nn=!0}return Nn&&Bn!=="_"}if(Bn==="x"){for($n++;$n<Cn;$n++)if(Bn=_n[$n],Bn!=="_"){if(!isHexCode(_n.charCodeAt($n)))return!1;Nn=!0}return Nn&&Bn!=="_"}if(Bn==="o"){for($n++;$n<Cn;$n++)if(Bn=_n[$n],Bn!=="_"){if(!isOctCode(_n.charCodeAt($n)))return!1;Nn=!0}return Nn&&Bn!=="_"}}if(Bn==="_")return!1;for(;$n<Cn;$n++)if(Bn=_n[$n],Bn!=="_"){if(!isDecCode(_n.charCodeAt($n)))return!1;Nn=!0}return!(!Nn||Bn==="_")}function constructYamlInteger(_n){var Cn=_n,$n=1,Nn;if(Cn.indexOf("_")!==-1&&(Cn=Cn.replace(/_/g,"")),Nn=Cn[0],(Nn==="-"||Nn==="+")&&(Nn==="-"&&($n=-1),Cn=Cn.slice(1),Nn=Cn[0]),Cn==="0")return 0;if(Nn==="0"){if(Cn[1]==="b")return $n*parseInt(Cn.slice(2),2);if(Cn[1]==="x")return $n*parseInt(Cn.slice(2),16);if(Cn[1]==="o")return $n*parseInt(Cn.slice(2),8)}return $n*parseInt(Cn,10)}function isInteger(_n){return Object.prototype.toString.call(_n)==="[object Number]"&&_n%1===0&&!common.isNegativeZero(_n)}var int=new type("tag:yaml.org,2002:int",{kind:"scalar",resolve:resolveYamlInteger,construct:constructYamlInteger,predicate:isInteger,represent:{binary:function(_n){return _n>=0?"0b"+_n.toString(2):"-0b"+_n.toString(2).slice(1)},octal:function(_n){return _n>=0?"0o"+_n.toString(8):"-0o"+_n.toString(8).slice(1)},decimal:function(_n){return _n.toString(10)},hexadecimal:function(_n){return _n>=0?"0x"+_n.toString(16).toUpperCase():"-0x"+_n.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),YAML_FLOAT_PATTERN=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function resolveYamlFloat(_n){return!(_n===null||!YAML_FLOAT_PATTERN.test(_n)||_n[_n.length-1]==="_")}function constructYamlFloat(_n){var Cn,$n;return Cn=_n.replace(/_/g,"").toLowerCase(),$n=Cn[0]==="-"?-1:1,"+-".indexOf(Cn[0])>=0&&(Cn=Cn.slice(1)),Cn===".inf"?$n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:Cn===".nan"?NaN:$n*parseFloat(Cn,10)}var SCIENTIFIC_WITHOUT_DOT=/^[-+]?[0-9]+e/;function representYamlFloat(_n,Cn){var $n;if(isNaN(_n))switch(Cn){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===_n)switch(Cn){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===_n)switch(Cn){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(common.isNegativeZero(_n))return"-0.0";return $n=_n.toString(10),SCIENTIFIC_WITHOUT_DOT.test($n)?$n.replace("e",".e"):$n}function isFloat(_n){return Object.prototype.toString.call(_n)==="[object Number]"&&(_n%1!==0||common.isNegativeZero(_n))}var float=new type("tag:yaml.org,2002:float",{kind:"scalar",resolve:resolveYamlFloat,construct:constructYamlFloat,predicate:isFloat,represent:representYamlFloat,defaultStyle:"lowercase"}),json=failsafe.extend({implicit:[_null,bool,int,float]}),core=json,YAML_DATE_REGEXP=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),YAML_TIMESTAMP_REGEXP=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 resolveYamlTimestamp(_n){return _n===null?!1:YAML_DATE_REGEXP.exec(_n)!==null||YAML_TIMESTAMP_REGEXP.exec(_n)!==null}function constructYamlTimestamp(_n){var Cn,$n,Nn,Bn,Ln,In,Pn,Dn=0,Un=null,Hn,Xn,Gn;if(Cn=YAML_DATE_REGEXP.exec(_n),Cn===null&&(Cn=YAML_TIMESTAMP_REGEXP.exec(_n)),Cn===null)throw new Error("Date resolve error");if($n=+Cn[1],Nn=+Cn[2]-1,Bn=+Cn[3],!Cn[4])return new Date(Date.UTC($n,Nn,Bn));if(Ln=+Cn[4],In=+Cn[5],Pn=+Cn[6],Cn[7]){for(Dn=Cn[7].slice(0,3);Dn.length<3;)Dn+="0";Dn=+Dn}return Cn[9]&&(Hn=+Cn[10],Xn=+(Cn[11]||0),Un=(Hn*60+Xn)*6e4,Cn[9]==="-"&&(Un=-Un)),Gn=new Date(Date.UTC($n,Nn,Bn,Ln,In,Pn,Dn)),Un&&Gn.setTime(Gn.getTime()-Un),Gn}function representYamlTimestamp(_n){return _n.toISOString()}var timestamp=new type("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:resolveYamlTimestamp,construct:constructYamlTimestamp,instanceOf:Date,represent:representYamlTimestamp});function resolveYamlMerge(_n){return _n==="<<"||_n===null}var merge$1=new type("tag:yaml.org,2002:merge",{kind:"scalar",resolve:resolveYamlMerge}),BASE64_MAP=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
||
\r`;function resolveYamlBinary(_n){if(_n===null)return!1;var Cn,$n,Nn=0,Bn=_n.length,Ln=BASE64_MAP;for($n=0;$n<Bn;$n++)if(Cn=Ln.indexOf(_n.charAt($n)),!(Cn>64)){if(Cn<0)return!1;Nn+=6}return Nn%8===0}function constructYamlBinary(_n){var Cn,$n,Nn=_n.replace(/[\r\n=]/g,""),Bn=Nn.length,Ln=BASE64_MAP,In=0,Pn=[];for(Cn=0;Cn<Bn;Cn++)Cn%4===0&&Cn&&(Pn.push(In>>16&255),Pn.push(In>>8&255),Pn.push(In&255)),In=In<<6|Ln.indexOf(Nn.charAt(Cn));return $n=Bn%4*6,$n===0?(Pn.push(In>>16&255),Pn.push(In>>8&255),Pn.push(In&255)):$n===18?(Pn.push(In>>10&255),Pn.push(In>>2&255)):$n===12&&Pn.push(In>>4&255),new Uint8Array(Pn)}function representYamlBinary(_n){var Cn="",$n=0,Nn,Bn,Ln=_n.length,In=BASE64_MAP;for(Nn=0;Nn<Ln;Nn++)Nn%3===0&&Nn&&(Cn+=In[$n>>18&63],Cn+=In[$n>>12&63],Cn+=In[$n>>6&63],Cn+=In[$n&63]),$n=($n<<8)+_n[Nn];return Bn=Ln%3,Bn===0?(Cn+=In[$n>>18&63],Cn+=In[$n>>12&63],Cn+=In[$n>>6&63],Cn+=In[$n&63]):Bn===2?(Cn+=In[$n>>10&63],Cn+=In[$n>>4&63],Cn+=In[$n<<2&63],Cn+=In[64]):Bn===1&&(Cn+=In[$n>>2&63],Cn+=In[$n<<4&63],Cn+=In[64],Cn+=In[64]),Cn}function isBinary(_n){return Object.prototype.toString.call(_n)==="[object Uint8Array]"}var binary=new type("tag:yaml.org,2002:binary",{kind:"scalar",resolve:resolveYamlBinary,construct:constructYamlBinary,predicate:isBinary,represent:representYamlBinary}),_hasOwnProperty$3=Object.prototype.hasOwnProperty,_toString$2=Object.prototype.toString;function resolveYamlOmap(_n){if(_n===null)return!0;var Cn=[],$n,Nn,Bn,Ln,In,Pn=_n;for($n=0,Nn=Pn.length;$n<Nn;$n+=1){if(Bn=Pn[$n],In=!1,_toString$2.call(Bn)!=="[object Object]")return!1;for(Ln in Bn)if(_hasOwnProperty$3.call(Bn,Ln))if(!In)In=!0;else return!1;if(!In)return!1;if(Cn.indexOf(Ln)===-1)Cn.push(Ln);else return!1}return!0}function constructYamlOmap(_n){return _n!==null?_n:[]}var omap=new type("tag:yaml.org,2002:omap",{kind:"sequence",resolve:resolveYamlOmap,construct:constructYamlOmap}),_toString$1=Object.prototype.toString;function resolveYamlPairs(_n){if(_n===null)return!0;var Cn,$n,Nn,Bn,Ln,In=_n;for(Ln=new Array(In.length),Cn=0,$n=In.length;Cn<$n;Cn+=1){if(Nn=In[Cn],_toString$1.call(Nn)!=="[object Object]"||(Bn=Object.keys(Nn),Bn.length!==1))return!1;Ln[Cn]=[Bn[0],Nn[Bn[0]]]}return!0}function constructYamlPairs(_n){if(_n===null)return[];var Cn,$n,Nn,Bn,Ln,In=_n;for(Ln=new Array(In.length),Cn=0,$n=In.length;Cn<$n;Cn+=1)Nn=In[Cn],Bn=Object.keys(Nn),Ln[Cn]=[Bn[0],Nn[Bn[0]]];return Ln}var pairs=new type("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:resolveYamlPairs,construct:constructYamlPairs}),_hasOwnProperty$2=Object.prototype.hasOwnProperty;function resolveYamlSet(_n){if(_n===null)return!0;var Cn,$n=_n;for(Cn in $n)if(_hasOwnProperty$2.call($n,Cn)&&$n[Cn]!==null)return!1;return!0}function constructYamlSet(_n){return _n!==null?_n:{}}var set=new type("tag:yaml.org,2002:set",{kind:"mapping",resolve:resolveYamlSet,construct:constructYamlSet}),_default=core.extend({implicit:[timestamp,merge$1],explicit:[binary,omap,pairs,set]}),_hasOwnProperty$1=Object.prototype.hasOwnProperty,CONTEXT_FLOW_IN=1,CONTEXT_FLOW_OUT=2,CONTEXT_BLOCK_IN=3,CONTEXT_BLOCK_OUT=4,CHOMPING_CLIP=1,CHOMPING_STRIP=2,CHOMPING_KEEP=3,PATTERN_NON_PRINTABLE=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,PATTERN_NON_ASCII_LINE_BREAKS=/[\x85\u2028\u2029]/,PATTERN_FLOW_INDICATORS=/[,\[\]\{\}]/,PATTERN_TAG_HANDLE=/^(?:!|!!|![a-z\-]+!)$/i,PATTERN_TAG_URI=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function _class(_n){return Object.prototype.toString.call(_n)}function is_EOL(_n){return _n===10||_n===13}function is_WHITE_SPACE(_n){return _n===9||_n===32}function is_WS_OR_EOL(_n){return _n===9||_n===32||_n===10||_n===13}function is_FLOW_INDICATOR(_n){return _n===44||_n===91||_n===93||_n===123||_n===125}function fromHexCode(_n){var Cn;return 48<=_n&&_n<=57?_n-48:(Cn=_n|32,97<=Cn&&Cn<=102?Cn-97+10:-1)}function escapedHexLen(_n){return _n===120?2:_n===117?4:_n===85?8:0}function fromDecimalCode(_n){return 48<=_n&&_n<=57?_n-48:-1}function simpleEscapeSequence(_n){return _n===48?"\0":_n===97?"\x07":_n===98?"\b":_n===116||_n===9?" ":_n===110?`
|
||
`:_n===118?"\v":_n===102?"\f":_n===114?"\r":_n===101?"\x1B":_n===32?" ":_n===34?'"':_n===47?"/":_n===92?"\\":_n===78?"
":_n===95?" ":_n===76?"\u2028":_n===80?"\u2029":""}function charFromCodepoint(_n){return _n<=65535?String.fromCharCode(_n):String.fromCharCode((_n-65536>>10)+55296,(_n-65536&1023)+56320)}for(var simpleEscapeCheck=new Array(256),simpleEscapeMap=new Array(256),i=0;i<256;i++)simpleEscapeCheck[i]=simpleEscapeSequence(i)?1:0,simpleEscapeMap[i]=simpleEscapeSequence(i);function State$1(_n,Cn){this.input=_n,this.filename=Cn.filename||null,this.schema=Cn.schema||_default,this.onWarning=Cn.onWarning||null,this.legacy=Cn.legacy||!1,this.json=Cn.json||!1,this.listener=Cn.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=_n.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function generateError(_n,Cn){var $n={name:_n.filename,buffer:_n.input.slice(0,-1),position:_n.position,line:_n.line,column:_n.position-_n.lineStart};return $n.snippet=snippet($n),new exception(Cn,$n)}function throwError(_n,Cn){throw generateError(_n,Cn)}function throwWarning(_n,Cn){_n.onWarning&&_n.onWarning.call(null,generateError(_n,Cn))}var directiveHandlers={YAML:function _n(Cn,$n,Nn){var Bn,Ln,In;Cn.version!==null&&throwError(Cn,"duplication of %YAML directive"),Nn.length!==1&&throwError(Cn,"YAML directive accepts exactly one argument"),Bn=/^([0-9]+)\.([0-9]+)$/.exec(Nn[0]),Bn===null&&throwError(Cn,"ill-formed argument of the YAML directive"),Ln=parseInt(Bn[1],10),In=parseInt(Bn[2],10),Ln!==1&&throwError(Cn,"unacceptable YAML version of the document"),Cn.version=Nn[0],Cn.checkLineBreaks=In<2,In!==1&&In!==2&&throwWarning(Cn,"unsupported YAML version of the document")},TAG:function _n(Cn,$n,Nn){var Bn,Ln;Nn.length!==2&&throwError(Cn,"TAG directive accepts exactly two arguments"),Bn=Nn[0],Ln=Nn[1],PATTERN_TAG_HANDLE.test(Bn)||throwError(Cn,"ill-formed tag handle (first argument) of the TAG directive"),_hasOwnProperty$1.call(Cn.tagMap,Bn)&&throwError(Cn,'there is a previously declared suffix for "'+Bn+'" tag handle'),PATTERN_TAG_URI.test(Ln)||throwError(Cn,"ill-formed tag prefix (second argument) of the TAG directive");try{Ln=decodeURIComponent(Ln)}catch{throwError(Cn,"tag prefix is malformed: "+Ln)}Cn.tagMap[Bn]=Ln}};function captureSegment(_n,Cn,$n,Nn){var Bn,Ln,In,Pn;if(Cn<$n){if(Pn=_n.input.slice(Cn,$n),Nn)for(Bn=0,Ln=Pn.length;Bn<Ln;Bn+=1)In=Pn.charCodeAt(Bn),In===9||32<=In&&In<=1114111||throwError(_n,"expected valid JSON character");else PATTERN_NON_PRINTABLE.test(Pn)&&throwError(_n,"the stream contains non-printable characters");_n.result+=Pn}}function mergeMappings(_n,Cn,$n,Nn){var Bn,Ln,In,Pn;for(common.isObject($n)||throwError(_n,"cannot merge mappings; the provided source object is unacceptable"),Bn=Object.keys($n),In=0,Pn=Bn.length;In<Pn;In+=1)Ln=Bn[In],_hasOwnProperty$1.call(Cn,Ln)||(Cn[Ln]=$n[Ln],Nn[Ln]=!0)}function storeMappingPair(_n,Cn,$n,Nn,Bn,Ln,In,Pn,Dn){var Un,Hn;if(Array.isArray(Bn))for(Bn=Array.prototype.slice.call(Bn),Un=0,Hn=Bn.length;Un<Hn;Un+=1)Array.isArray(Bn[Un])&&throwError(_n,"nested arrays are not supported inside keys"),typeof Bn=="object"&&_class(Bn[Un])==="[object Object]"&&(Bn[Un]="[object Object]");if(typeof Bn=="object"&&_class(Bn)==="[object Object]"&&(Bn="[object Object]"),Bn=String(Bn),Cn===null&&(Cn={}),Nn==="tag:yaml.org,2002:merge")if(Array.isArray(Ln))for(Un=0,Hn=Ln.length;Un<Hn;Un+=1)mergeMappings(_n,Cn,Ln[Un],$n);else mergeMappings(_n,Cn,Ln,$n);else!_n.json&&!_hasOwnProperty$1.call($n,Bn)&&_hasOwnProperty$1.call(Cn,Bn)&&(_n.line=In||_n.line,_n.lineStart=Pn||_n.lineStart,_n.position=Dn||_n.position,throwError(_n,"duplicated mapping key")),Bn==="__proto__"?Object.defineProperty(Cn,Bn,{configurable:!0,enumerable:!0,writable:!0,value:Ln}):Cn[Bn]=Ln,delete $n[Bn];return Cn}function readLineBreak(_n){var Cn;Cn=_n.input.charCodeAt(_n.position),Cn===10?_n.position++:Cn===13?(_n.position++,_n.input.charCodeAt(_n.position)===10&&_n.position++):throwError(_n,"a line break is expected"),_n.line+=1,_n.lineStart=_n.position,_n.firstTabInLine=-1}function skipSeparationSpace(_n,Cn,$n){for(var Nn=0,Bn=_n.input.charCodeAt(_n.position);Bn!==0;){for(;is_WHITE_SPACE(Bn);)Bn===9&&_n.firstTabInLine===-1&&(_n.firstTabInLine=_n.position),Bn=_n.input.charCodeAt(++_n.position);if(Cn&&Bn===35)do Bn=_n.input.charCodeAt(++_n.position);while(Bn!==10&&Bn!==13&&Bn!==0);if(is_EOL(Bn))for(readLineBreak(_n),Bn=_n.input.charCodeAt(_n.position),Nn++,_n.lineIndent=0;Bn===32;)_n.lineIndent++,Bn=_n.input.charCodeAt(++_n.position);else break}return $n!==-1&&Nn!==0&&_n.lineIndent<$n&&throwWarning(_n,"deficient indentation"),Nn}function testDocumentSeparator(_n){var Cn=_n.position,$n;return $n=_n.input.charCodeAt(Cn),!!(($n===45||$n===46)&&$n===_n.input.charCodeAt(Cn+1)&&$n===_n.input.charCodeAt(Cn+2)&&(Cn+=3,$n=_n.input.charCodeAt(Cn),$n===0||is_WS_OR_EOL($n)))}function writeFoldedLines(_n,Cn){Cn===1?_n.result+=" ":Cn>1&&(_n.result+=common.repeat(`
|
||
`,Cn-1))}function readPlainScalar(_n,Cn,$n){var Nn,Bn,Ln,In,Pn,Dn,Un,Hn,Xn=_n.kind,Gn=_n.result,ei;if(ei=_n.input.charCodeAt(_n.position),is_WS_OR_EOL(ei)||is_FLOW_INDICATOR(ei)||ei===35||ei===38||ei===42||ei===33||ei===124||ei===62||ei===39||ei===34||ei===37||ei===64||ei===96||(ei===63||ei===45)&&(Bn=_n.input.charCodeAt(_n.position+1),is_WS_OR_EOL(Bn)||$n&&is_FLOW_INDICATOR(Bn)))return!1;for(_n.kind="scalar",_n.result="",Ln=In=_n.position,Pn=!1;ei!==0;){if(ei===58){if(Bn=_n.input.charCodeAt(_n.position+1),is_WS_OR_EOL(Bn)||$n&&is_FLOW_INDICATOR(Bn))break}else if(ei===35){if(Nn=_n.input.charCodeAt(_n.position-1),is_WS_OR_EOL(Nn))break}else{if(_n.position===_n.lineStart&&testDocumentSeparator(_n)||$n&&is_FLOW_INDICATOR(ei))break;if(is_EOL(ei))if(Dn=_n.line,Un=_n.lineStart,Hn=_n.lineIndent,skipSeparationSpace(_n,!1,-1),_n.lineIndent>=Cn){Pn=!0,ei=_n.input.charCodeAt(_n.position);continue}else{_n.position=In,_n.line=Dn,_n.lineStart=Un,_n.lineIndent=Hn;break}}Pn&&(captureSegment(_n,Ln,In,!1),writeFoldedLines(_n,_n.line-Dn),Ln=In=_n.position,Pn=!1),is_WHITE_SPACE(ei)||(In=_n.position+1),ei=_n.input.charCodeAt(++_n.position)}return captureSegment(_n,Ln,In,!1),_n.result?!0:(_n.kind=Xn,_n.result=Gn,!1)}function readSingleQuotedScalar(_n,Cn){var $n,Nn,Bn;if($n=_n.input.charCodeAt(_n.position),$n!==39)return!1;for(_n.kind="scalar",_n.result="",_n.position++,Nn=Bn=_n.position;($n=_n.input.charCodeAt(_n.position))!==0;)if($n===39)if(captureSegment(_n,Nn,_n.position,!0),$n=_n.input.charCodeAt(++_n.position),$n===39)Nn=_n.position,_n.position++,Bn=_n.position;else return!0;else is_EOL($n)?(captureSegment(_n,Nn,Bn,!0),writeFoldedLines(_n,skipSeparationSpace(_n,!1,Cn)),Nn=Bn=_n.position):_n.position===_n.lineStart&&testDocumentSeparator(_n)?throwError(_n,"unexpected end of the document within a single quoted scalar"):(_n.position++,Bn=_n.position);throwError(_n,"unexpected end of the stream within a single quoted scalar")}function readDoubleQuotedScalar(_n,Cn){var $n,Nn,Bn,Ln,In,Pn;if(Pn=_n.input.charCodeAt(_n.position),Pn!==34)return!1;for(_n.kind="scalar",_n.result="",_n.position++,$n=Nn=_n.position;(Pn=_n.input.charCodeAt(_n.position))!==0;){if(Pn===34)return captureSegment(_n,$n,_n.position,!0),_n.position++,!0;if(Pn===92){if(captureSegment(_n,$n,_n.position,!0),Pn=_n.input.charCodeAt(++_n.position),is_EOL(Pn))skipSeparationSpace(_n,!1,Cn);else if(Pn<256&&simpleEscapeCheck[Pn])_n.result+=simpleEscapeMap[Pn],_n.position++;else if((In=escapedHexLen(Pn))>0){for(Bn=In,Ln=0;Bn>0;Bn--)Pn=_n.input.charCodeAt(++_n.position),(In=fromHexCode(Pn))>=0?Ln=(Ln<<4)+In:throwError(_n,"expected hexadecimal character");_n.result+=charFromCodepoint(Ln),_n.position++}else throwError(_n,"unknown escape sequence");$n=Nn=_n.position}else is_EOL(Pn)?(captureSegment(_n,$n,Nn,!0),writeFoldedLines(_n,skipSeparationSpace(_n,!1,Cn)),$n=Nn=_n.position):_n.position===_n.lineStart&&testDocumentSeparator(_n)?throwError(_n,"unexpected end of the document within a double quoted scalar"):(_n.position++,Nn=_n.position)}throwError(_n,"unexpected end of the stream within a double quoted scalar")}function readFlowCollection(_n,Cn){var $n=!0,Nn,Bn,Ln,In=_n.tag,Pn,Dn=_n.anchor,Un,Hn,Xn,Gn,ei,nr=Object.create(null),ni,ai,si,gi;if(gi=_n.input.charCodeAt(_n.position),gi===91)Hn=93,ei=!1,Pn=[];else if(gi===123)Hn=125,ei=!0,Pn={};else return!1;for(_n.anchor!==null&&(_n.anchorMap[_n.anchor]=Pn),gi=_n.input.charCodeAt(++_n.position);gi!==0;){if(skipSeparationSpace(_n,!0,Cn),gi=_n.input.charCodeAt(_n.position),gi===Hn)return _n.position++,_n.tag=In,_n.anchor=Dn,_n.kind=ei?"mapping":"sequence",_n.result=Pn,!0;$n?gi===44&&throwError(_n,"expected the node content, but found ','"):throwError(_n,"missed comma between flow collection entries"),ai=ni=si=null,Xn=Gn=!1,gi===63&&(Un=_n.input.charCodeAt(_n.position+1),is_WS_OR_EOL(Un)&&(Xn=Gn=!0,_n.position++,skipSeparationSpace(_n,!0,Cn))),Nn=_n.line,Bn=_n.lineStart,Ln=_n.position,composeNode(_n,Cn,CONTEXT_FLOW_IN,!1,!0),ai=_n.tag,ni=_n.result,skipSeparationSpace(_n,!0,Cn),gi=_n.input.charCodeAt(_n.position),(Gn||_n.line===Nn)&&gi===58&&(Xn=!0,gi=_n.input.charCodeAt(++_n.position),skipSeparationSpace(_n,!0,Cn),composeNode(_n,Cn,CONTEXT_FLOW_IN,!1,!0),si=_n.result),ei?storeMappingPair(_n,Pn,nr,ai,ni,si,Nn,Bn,Ln):Xn?Pn.push(storeMappingPair(_n,null,nr,ai,ni,si,Nn,Bn,Ln)):Pn.push(ni),skipSeparationSpace(_n,!0,Cn),gi=_n.input.charCodeAt(_n.position),gi===44?($n=!0,gi=_n.input.charCodeAt(++_n.position)):$n=!1}throwError(_n,"unexpected end of the stream within a flow collection")}function readBlockScalar(_n,Cn){var $n,Nn,Bn=CHOMPING_CLIP,Ln=!1,In=!1,Pn=Cn,Dn=0,Un=!1,Hn,Xn;if(Xn=_n.input.charCodeAt(_n.position),Xn===124)Nn=!1;else if(Xn===62)Nn=!0;else return!1;for(_n.kind="scalar",_n.result="";Xn!==0;)if(Xn=_n.input.charCodeAt(++_n.position),Xn===43||Xn===45)CHOMPING_CLIP===Bn?Bn=Xn===43?CHOMPING_KEEP:CHOMPING_STRIP:throwError(_n,"repeat of a chomping mode identifier");else if((Hn=fromDecimalCode(Xn))>=0)Hn===0?throwError(_n,"bad explicit indentation width of a block scalar; it cannot be less than one"):In?throwError(_n,"repeat of an indentation width identifier"):(Pn=Cn+Hn-1,In=!0);else break;if(is_WHITE_SPACE(Xn)){do Xn=_n.input.charCodeAt(++_n.position);while(is_WHITE_SPACE(Xn));if(Xn===35)do Xn=_n.input.charCodeAt(++_n.position);while(!is_EOL(Xn)&&Xn!==0)}for(;Xn!==0;){for(readLineBreak(_n),_n.lineIndent=0,Xn=_n.input.charCodeAt(_n.position);(!In||_n.lineIndent<Pn)&&Xn===32;)_n.lineIndent++,Xn=_n.input.charCodeAt(++_n.position);if(!In&&_n.lineIndent>Pn&&(Pn=_n.lineIndent),is_EOL(Xn)){Dn++;continue}if(_n.lineIndent<Pn){Bn===CHOMPING_KEEP?_n.result+=common.repeat(`
|
||
`,Ln?1+Dn:Dn):Bn===CHOMPING_CLIP&&Ln&&(_n.result+=`
|
||
`);break}for(Nn?is_WHITE_SPACE(Xn)?(Un=!0,_n.result+=common.repeat(`
|
||
`,Ln?1+Dn:Dn)):Un?(Un=!1,_n.result+=common.repeat(`
|
||
`,Dn+1)):Dn===0?Ln&&(_n.result+=" "):_n.result+=common.repeat(`
|
||
`,Dn):_n.result+=common.repeat(`
|
||
`,Ln?1+Dn:Dn),Ln=!0,In=!0,Dn=0,$n=_n.position;!is_EOL(Xn)&&Xn!==0;)Xn=_n.input.charCodeAt(++_n.position);captureSegment(_n,$n,_n.position,!1)}return!0}function readBlockSequence(_n,Cn){var $n,Nn=_n.tag,Bn=_n.anchor,Ln=[],In,Pn=!1,Dn;if(_n.firstTabInLine!==-1)return!1;for(_n.anchor!==null&&(_n.anchorMap[_n.anchor]=Ln),Dn=_n.input.charCodeAt(_n.position);Dn!==0&&(_n.firstTabInLine!==-1&&(_n.position=_n.firstTabInLine,throwError(_n,"tab characters must not be used in indentation")),!(Dn!==45||(In=_n.input.charCodeAt(_n.position+1),!is_WS_OR_EOL(In))));){if(Pn=!0,_n.position++,skipSeparationSpace(_n,!0,-1)&&_n.lineIndent<=Cn){Ln.push(null),Dn=_n.input.charCodeAt(_n.position);continue}if($n=_n.line,composeNode(_n,Cn,CONTEXT_BLOCK_IN,!1,!0),Ln.push(_n.result),skipSeparationSpace(_n,!0,-1),Dn=_n.input.charCodeAt(_n.position),(_n.line===$n||_n.lineIndent>Cn)&&Dn!==0)throwError(_n,"bad indentation of a sequence entry");else if(_n.lineIndent<Cn)break}return Pn?(_n.tag=Nn,_n.anchor=Bn,_n.kind="sequence",_n.result=Ln,!0):!1}function readBlockMapping(_n,Cn,$n){var Nn,Bn,Ln,In,Pn,Dn,Un=_n.tag,Hn=_n.anchor,Xn={},Gn=Object.create(null),ei=null,nr=null,ni=null,ai=!1,si=!1,gi;if(_n.firstTabInLine!==-1)return!1;for(_n.anchor!==null&&(_n.anchorMap[_n.anchor]=Xn),gi=_n.input.charCodeAt(_n.position);gi!==0;){if(!ai&&_n.firstTabInLine!==-1&&(_n.position=_n.firstTabInLine,throwError(_n,"tab characters must not be used in indentation")),Nn=_n.input.charCodeAt(_n.position+1),Ln=_n.line,(gi===63||gi===58)&&is_WS_OR_EOL(Nn))gi===63?(ai&&(storeMappingPair(_n,Xn,Gn,ei,nr,null,In,Pn,Dn),ei=nr=ni=null),si=!0,ai=!0,Bn=!0):ai?(ai=!1,Bn=!0):throwError(_n,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),_n.position+=1,gi=Nn;else{if(In=_n.line,Pn=_n.lineStart,Dn=_n.position,!composeNode(_n,$n,CONTEXT_FLOW_OUT,!1,!0))break;if(_n.line===Ln){for(gi=_n.input.charCodeAt(_n.position);is_WHITE_SPACE(gi);)gi=_n.input.charCodeAt(++_n.position);if(gi===58)gi=_n.input.charCodeAt(++_n.position),is_WS_OR_EOL(gi)||throwError(_n,"a whitespace character is expected after the key-value separator within a block mapping"),ai&&(storeMappingPair(_n,Xn,Gn,ei,nr,null,In,Pn,Dn),ei=nr=ni=null),si=!0,ai=!1,Bn=!1,ei=_n.tag,nr=_n.result;else if(si)throwError(_n,"can not read an implicit mapping pair; a colon is missed");else return _n.tag=Un,_n.anchor=Hn,!0}else if(si)throwError(_n,"can not read a block mapping entry; a multiline key may not be an implicit key");else return _n.tag=Un,_n.anchor=Hn,!0}if((_n.line===Ln||_n.lineIndent>Cn)&&(ai&&(In=_n.line,Pn=_n.lineStart,Dn=_n.position),composeNode(_n,Cn,CONTEXT_BLOCK_OUT,!0,Bn)&&(ai?nr=_n.result:ni=_n.result),ai||(storeMappingPair(_n,Xn,Gn,ei,nr,ni,In,Pn,Dn),ei=nr=ni=null),skipSeparationSpace(_n,!0,-1),gi=_n.input.charCodeAt(_n.position)),(_n.line===Ln||_n.lineIndent>Cn)&&gi!==0)throwError(_n,"bad indentation of a mapping entry");else if(_n.lineIndent<Cn)break}return ai&&storeMappingPair(_n,Xn,Gn,ei,nr,null,In,Pn,Dn),si&&(_n.tag=Un,_n.anchor=Hn,_n.kind="mapping",_n.result=Xn),si}function readTagProperty(_n){var Cn,$n=!1,Nn=!1,Bn,Ln,In;if(In=_n.input.charCodeAt(_n.position),In!==33)return!1;if(_n.tag!==null&&throwError(_n,"duplication of a tag property"),In=_n.input.charCodeAt(++_n.position),In===60?($n=!0,In=_n.input.charCodeAt(++_n.position)):In===33?(Nn=!0,Bn="!!",In=_n.input.charCodeAt(++_n.position)):Bn="!",Cn=_n.position,$n){do In=_n.input.charCodeAt(++_n.position);while(In!==0&&In!==62);_n.position<_n.length?(Ln=_n.input.slice(Cn,_n.position),In=_n.input.charCodeAt(++_n.position)):throwError(_n,"unexpected end of the stream within a verbatim tag")}else{for(;In!==0&&!is_WS_OR_EOL(In);)In===33&&(Nn?throwError(_n,"tag suffix cannot contain exclamation marks"):(Bn=_n.input.slice(Cn-1,_n.position+1),PATTERN_TAG_HANDLE.test(Bn)||throwError(_n,"named tag handle cannot contain such characters"),Nn=!0,Cn=_n.position+1)),In=_n.input.charCodeAt(++_n.position);Ln=_n.input.slice(Cn,_n.position),PATTERN_FLOW_INDICATORS.test(Ln)&&throwError(_n,"tag suffix cannot contain flow indicator characters")}Ln&&!PATTERN_TAG_URI.test(Ln)&&throwError(_n,"tag name cannot contain such characters: "+Ln);try{Ln=decodeURIComponent(Ln)}catch{throwError(_n,"tag name is malformed: "+Ln)}return $n?_n.tag=Ln:_hasOwnProperty$1.call(_n.tagMap,Bn)?_n.tag=_n.tagMap[Bn]+Ln:Bn==="!"?_n.tag="!"+Ln:Bn==="!!"?_n.tag="tag:yaml.org,2002:"+Ln:throwError(_n,'undeclared tag handle "'+Bn+'"'),!0}function readAnchorProperty(_n){var Cn,$n;if($n=_n.input.charCodeAt(_n.position),$n!==38)return!1;for(_n.anchor!==null&&throwError(_n,"duplication of an anchor property"),$n=_n.input.charCodeAt(++_n.position),Cn=_n.position;$n!==0&&!is_WS_OR_EOL($n)&&!is_FLOW_INDICATOR($n);)$n=_n.input.charCodeAt(++_n.position);return _n.position===Cn&&throwError(_n,"name of an anchor node must contain at least one character"),_n.anchor=_n.input.slice(Cn,_n.position),!0}function readAlias(_n){var Cn,$n,Nn;if(Nn=_n.input.charCodeAt(_n.position),Nn!==42)return!1;for(Nn=_n.input.charCodeAt(++_n.position),Cn=_n.position;Nn!==0&&!is_WS_OR_EOL(Nn)&&!is_FLOW_INDICATOR(Nn);)Nn=_n.input.charCodeAt(++_n.position);return _n.position===Cn&&throwError(_n,"name of an alias node must contain at least one character"),$n=_n.input.slice(Cn,_n.position),_hasOwnProperty$1.call(_n.anchorMap,$n)||throwError(_n,'unidentified alias "'+$n+'"'),_n.result=_n.anchorMap[$n],skipSeparationSpace(_n,!0,-1),!0}function composeNode(_n,Cn,$n,Nn,Bn){var Ln,In,Pn,Dn=1,Un=!1,Hn=!1,Xn,Gn,ei,nr,ni,ai;if(_n.listener!==null&&_n.listener("open",_n),_n.tag=null,_n.anchor=null,_n.kind=null,_n.result=null,Ln=In=Pn=CONTEXT_BLOCK_OUT===$n||CONTEXT_BLOCK_IN===$n,Nn&&skipSeparationSpace(_n,!0,-1)&&(Un=!0,_n.lineIndent>Cn?Dn=1:_n.lineIndent===Cn?Dn=0:_n.lineIndent<Cn&&(Dn=-1)),Dn===1)for(;readTagProperty(_n)||readAnchorProperty(_n);)skipSeparationSpace(_n,!0,-1)?(Un=!0,Pn=Ln,_n.lineIndent>Cn?Dn=1:_n.lineIndent===Cn?Dn=0:_n.lineIndent<Cn&&(Dn=-1)):Pn=!1;if(Pn&&(Pn=Un||Bn),(Dn===1||CONTEXT_BLOCK_OUT===$n)&&(CONTEXT_FLOW_IN===$n||CONTEXT_FLOW_OUT===$n?ni=Cn:ni=Cn+1,ai=_n.position-_n.lineStart,Dn===1?Pn&&(readBlockSequence(_n,ai)||readBlockMapping(_n,ai,ni))||readFlowCollection(_n,ni)?Hn=!0:(In&&readBlockScalar(_n,ni)||readSingleQuotedScalar(_n,ni)||readDoubleQuotedScalar(_n,ni)?Hn=!0:readAlias(_n)?(Hn=!0,(_n.tag!==null||_n.anchor!==null)&&throwError(_n,"alias node should not have any properties")):readPlainScalar(_n,ni,CONTEXT_FLOW_IN===$n)&&(Hn=!0,_n.tag===null&&(_n.tag="?")),_n.anchor!==null&&(_n.anchorMap[_n.anchor]=_n.result)):Dn===0&&(Hn=Pn&&readBlockSequence(_n,ai))),_n.tag===null)_n.anchor!==null&&(_n.anchorMap[_n.anchor]=_n.result);else if(_n.tag==="?"){for(_n.result!==null&&_n.kind!=="scalar"&&throwError(_n,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+_n.kind+'"'),Xn=0,Gn=_n.implicitTypes.length;Xn<Gn;Xn+=1)if(nr=_n.implicitTypes[Xn],nr.resolve(_n.result)){_n.result=nr.construct(_n.result),_n.tag=nr.tag,_n.anchor!==null&&(_n.anchorMap[_n.anchor]=_n.result);break}}else if(_n.tag!=="!"){if(_hasOwnProperty$1.call(_n.typeMap[_n.kind||"fallback"],_n.tag))nr=_n.typeMap[_n.kind||"fallback"][_n.tag];else for(nr=null,ei=_n.typeMap.multi[_n.kind||"fallback"],Xn=0,Gn=ei.length;Xn<Gn;Xn+=1)if(_n.tag.slice(0,ei[Xn].tag.length)===ei[Xn].tag){nr=ei[Xn];break}nr||throwError(_n,"unknown tag !<"+_n.tag+">"),_n.result!==null&&nr.kind!==_n.kind&&throwError(_n,"unacceptable node kind for !<"+_n.tag+'> tag; it should be "'+nr.kind+'", not "'+_n.kind+'"'),nr.resolve(_n.result,_n.tag)?(_n.result=nr.construct(_n.result,_n.tag),_n.anchor!==null&&(_n.anchorMap[_n.anchor]=_n.result)):throwError(_n,"cannot resolve a node with !<"+_n.tag+"> explicit tag")}return _n.listener!==null&&_n.listener("close",_n),_n.tag!==null||_n.anchor!==null||Hn}function readDocument(_n){var Cn=_n.position,$n,Nn,Bn,Ln=!1,In;for(_n.version=null,_n.checkLineBreaks=_n.legacy,_n.tagMap=Object.create(null),_n.anchorMap=Object.create(null);(In=_n.input.charCodeAt(_n.position))!==0&&(skipSeparationSpace(_n,!0,-1),In=_n.input.charCodeAt(_n.position),!(_n.lineIndent>0||In!==37));){for(Ln=!0,In=_n.input.charCodeAt(++_n.position),$n=_n.position;In!==0&&!is_WS_OR_EOL(In);)In=_n.input.charCodeAt(++_n.position);for(Nn=_n.input.slice($n,_n.position),Bn=[],Nn.length<1&&throwError(_n,"directive name must not be less than one character in length");In!==0;){for(;is_WHITE_SPACE(In);)In=_n.input.charCodeAt(++_n.position);if(In===35){do In=_n.input.charCodeAt(++_n.position);while(In!==0&&!is_EOL(In));break}if(is_EOL(In))break;for($n=_n.position;In!==0&&!is_WS_OR_EOL(In);)In=_n.input.charCodeAt(++_n.position);Bn.push(_n.input.slice($n,_n.position))}In!==0&&readLineBreak(_n),_hasOwnProperty$1.call(directiveHandlers,Nn)?directiveHandlers[Nn](_n,Nn,Bn):throwWarning(_n,'unknown document directive "'+Nn+'"')}if(skipSeparationSpace(_n,!0,-1),_n.lineIndent===0&&_n.input.charCodeAt(_n.position)===45&&_n.input.charCodeAt(_n.position+1)===45&&_n.input.charCodeAt(_n.position+2)===45?(_n.position+=3,skipSeparationSpace(_n,!0,-1)):Ln&&throwError(_n,"directives end mark is expected"),composeNode(_n,_n.lineIndent-1,CONTEXT_BLOCK_OUT,!1,!0),skipSeparationSpace(_n,!0,-1),_n.checkLineBreaks&&PATTERN_NON_ASCII_LINE_BREAKS.test(_n.input.slice(Cn,_n.position))&&throwWarning(_n,"non-ASCII line breaks are interpreted as content"),_n.documents.push(_n.result),_n.position===_n.lineStart&&testDocumentSeparator(_n)){_n.input.charCodeAt(_n.position)===46&&(_n.position+=3,skipSeparationSpace(_n,!0,-1));return}if(_n.position<_n.length-1)throwError(_n,"end of the stream or a document separator is expected");else return}function loadDocuments(_n,Cn){_n=String(_n),Cn=Cn||{},_n.length!==0&&(_n.charCodeAt(_n.length-1)!==10&&_n.charCodeAt(_n.length-1)!==13&&(_n+=`
|
||
`),_n.charCodeAt(0)===65279&&(_n=_n.slice(1)));var $n=new State$1(_n,Cn),Nn=_n.indexOf("\0");for(Nn!==-1&&($n.position=Nn,throwError($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;)readDocument($n);return $n.documents}function loadAll$1(_n,Cn,$n){Cn!==null&&typeof Cn=="object"&&typeof $n>"u"&&($n=Cn,Cn=null);var Nn=loadDocuments(_n,$n);if(typeof Cn!="function")return Nn;for(var Bn=0,Ln=Nn.length;Bn<Ln;Bn+=1)Cn(Nn[Bn])}function load$1(_n,Cn){var $n=loadDocuments(_n,Cn);if($n.length!==0){if($n.length===1)return $n[0];throw new exception("expected a single document in the stream, but found more")}}var loadAll_1=loadAll$1,load_1=load$1,loader={loadAll:loadAll_1,load:load_1},_toString=Object.prototype.toString,_hasOwnProperty=Object.prototype.hasOwnProperty,CHAR_BOM=65279,CHAR_TAB=9,CHAR_LINE_FEED=10,CHAR_CARRIAGE_RETURN=13,CHAR_SPACE=32,CHAR_EXCLAMATION=33,CHAR_DOUBLE_QUOTE=34,CHAR_SHARP=35,CHAR_PERCENT=37,CHAR_AMPERSAND=38,CHAR_SINGLE_QUOTE=39,CHAR_ASTERISK=42,CHAR_COMMA=44,CHAR_MINUS=45,CHAR_COLON=58,CHAR_EQUALS=61,CHAR_GREATER_THAN=62,CHAR_QUESTION=63,CHAR_COMMERCIAL_AT=64,CHAR_LEFT_SQUARE_BRACKET=91,CHAR_RIGHT_SQUARE_BRACKET=93,CHAR_GRAVE_ACCENT=96,CHAR_LEFT_CURLY_BRACKET=123,CHAR_VERTICAL_LINE=124,CHAR_RIGHT_CURLY_BRACKET=125,ESCAPE_SEQUENCES={};ESCAPE_SEQUENCES[0]="\\0",ESCAPE_SEQUENCES[7]="\\a",ESCAPE_SEQUENCES[8]="\\b",ESCAPE_SEQUENCES[9]="\\t",ESCAPE_SEQUENCES[10]="\\n",ESCAPE_SEQUENCES[11]="\\v",ESCAPE_SEQUENCES[12]="\\f",ESCAPE_SEQUENCES[13]="\\r",ESCAPE_SEQUENCES[27]="\\e",ESCAPE_SEQUENCES[34]='\\"',ESCAPE_SEQUENCES[92]="\\\\",ESCAPE_SEQUENCES[133]="\\N",ESCAPE_SEQUENCES[160]="\\_",ESCAPE_SEQUENCES[8232]="\\L",ESCAPE_SEQUENCES[8233]="\\P";var DEPRECATED_BOOLEANS_SYNTAX=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],DEPRECATED_BASE60_SYNTAX=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function compileStyleMap(_n,Cn){var $n,Nn,Bn,Ln,In,Pn,Dn;if(Cn===null)return{};for($n={},Nn=Object.keys(Cn),Bn=0,Ln=Nn.length;Bn<Ln;Bn+=1)In=Nn[Bn],Pn=String(Cn[In]),In.slice(0,2)==="!!"&&(In="tag:yaml.org,2002:"+In.slice(2)),Dn=_n.compiledTypeMap.fallback[In],Dn&&_hasOwnProperty.call(Dn.styleAliases,Pn)&&(Pn=Dn.styleAliases[Pn]),$n[In]=Pn;return $n}function encodeHex(_n){var Cn,$n,Nn;if(Cn=_n.toString(16).toUpperCase(),_n<=255)$n="x",Nn=2;else if(_n<=65535)$n="u",Nn=4;else if(_n<=4294967295)$n="U",Nn=8;else throw new exception("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+$n+common.repeat("0",Nn-Cn.length)+Cn}var QUOTING_TYPE_SINGLE=1,QUOTING_TYPE_DOUBLE=2;function State(_n){this.schema=_n.schema||_default,this.indent=Math.max(1,_n.indent||2),this.noArrayIndent=_n.noArrayIndent||!1,this.skipInvalid=_n.skipInvalid||!1,this.flowLevel=common.isNothing(_n.flowLevel)?-1:_n.flowLevel,this.styleMap=compileStyleMap(this.schema,_n.styles||null),this.sortKeys=_n.sortKeys||!1,this.lineWidth=_n.lineWidth||80,this.noRefs=_n.noRefs||!1,this.noCompatMode=_n.noCompatMode||!1,this.condenseFlow=_n.condenseFlow||!1,this.quotingType=_n.quotingType==='"'?QUOTING_TYPE_DOUBLE:QUOTING_TYPE_SINGLE,this.forceQuotes=_n.forceQuotes||!1,this.replacer=typeof _n.replacer=="function"?_n.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function indentString(_n,Cn){for(var $n=common.repeat(" ",Cn),Nn=0,Bn=-1,Ln="",In,Pn=_n.length;Nn<Pn;)Bn=_n.indexOf(`
|
||
`,Nn),Bn===-1?(In=_n.slice(Nn),Nn=Pn):(In=_n.slice(Nn,Bn+1),Nn=Bn+1),In.length&&In!==`
|
||
`&&(Ln+=$n),Ln+=In;return Ln}function generateNextLine(_n,Cn){return`
|
||
`+common.repeat(" ",_n.indent*Cn)}function testImplicitResolving(_n,Cn){var $n,Nn,Bn;for($n=0,Nn=_n.implicitTypes.length;$n<Nn;$n+=1)if(Bn=_n.implicitTypes[$n],Bn.resolve(Cn))return!0;return!1}function isWhitespace(_n){return _n===CHAR_SPACE||_n===CHAR_TAB}function isPrintable(_n){return 32<=_n&&_n<=126||161<=_n&&_n<=55295&&_n!==8232&&_n!==8233||57344<=_n&&_n<=65533&&_n!==CHAR_BOM||65536<=_n&&_n<=1114111}function isNsCharOrWhitespace(_n){return isPrintable(_n)&&_n!==CHAR_BOM&&_n!==CHAR_CARRIAGE_RETURN&&_n!==CHAR_LINE_FEED}function isPlainSafe(_n,Cn,$n){var Nn=isNsCharOrWhitespace(_n),Bn=Nn&&!isWhitespace(_n);return($n?Nn:Nn&&_n!==CHAR_COMMA&&_n!==CHAR_LEFT_SQUARE_BRACKET&&_n!==CHAR_RIGHT_SQUARE_BRACKET&&_n!==CHAR_LEFT_CURLY_BRACKET&&_n!==CHAR_RIGHT_CURLY_BRACKET)&&_n!==CHAR_SHARP&&!(Cn===CHAR_COLON&&!Bn)||isNsCharOrWhitespace(Cn)&&!isWhitespace(Cn)&&_n===CHAR_SHARP||Cn===CHAR_COLON&&Bn}function isPlainSafeFirst(_n){return isPrintable(_n)&&_n!==CHAR_BOM&&!isWhitespace(_n)&&_n!==CHAR_MINUS&&_n!==CHAR_QUESTION&&_n!==CHAR_COLON&&_n!==CHAR_COMMA&&_n!==CHAR_LEFT_SQUARE_BRACKET&&_n!==CHAR_RIGHT_SQUARE_BRACKET&&_n!==CHAR_LEFT_CURLY_BRACKET&&_n!==CHAR_RIGHT_CURLY_BRACKET&&_n!==CHAR_SHARP&&_n!==CHAR_AMPERSAND&&_n!==CHAR_ASTERISK&&_n!==CHAR_EXCLAMATION&&_n!==CHAR_VERTICAL_LINE&&_n!==CHAR_EQUALS&&_n!==CHAR_GREATER_THAN&&_n!==CHAR_SINGLE_QUOTE&&_n!==CHAR_DOUBLE_QUOTE&&_n!==CHAR_PERCENT&&_n!==CHAR_COMMERCIAL_AT&&_n!==CHAR_GRAVE_ACCENT}function isPlainSafeLast(_n){return!isWhitespace(_n)&&_n!==CHAR_COLON}function codePointAt(_n,Cn){var $n=_n.charCodeAt(Cn),Nn;return $n>=55296&&$n<=56319&&Cn+1<_n.length&&(Nn=_n.charCodeAt(Cn+1),Nn>=56320&&Nn<=57343)?($n-55296)*1024+Nn-56320+65536:$n}function needIndentIndicator(_n){var Cn=/^\n* /;return Cn.test(_n)}var STYLE_PLAIN=1,STYLE_SINGLE=2,STYLE_LITERAL=3,STYLE_FOLDED=4,STYLE_DOUBLE=5;function chooseScalarStyle(_n,Cn,$n,Nn,Bn,Ln,In,Pn){var Dn,Un=0,Hn=null,Xn=!1,Gn=!1,ei=Nn!==-1,nr=-1,ni=isPlainSafeFirst(codePointAt(_n,0))&&isPlainSafeLast(codePointAt(_n,_n.length-1));if(Cn||In)for(Dn=0;Dn<_n.length;Un>=65536?Dn+=2:Dn++){if(Un=codePointAt(_n,Dn),!isPrintable(Un))return STYLE_DOUBLE;ni=ni&&isPlainSafe(Un,Hn,Pn),Hn=Un}else{for(Dn=0;Dn<_n.length;Un>=65536?Dn+=2:Dn++){if(Un=codePointAt(_n,Dn),Un===CHAR_LINE_FEED)Xn=!0,ei&&(Gn=Gn||Dn-nr-1>Nn&&_n[nr+1]!==" ",nr=Dn);else if(!isPrintable(Un))return STYLE_DOUBLE;ni=ni&&isPlainSafe(Un,Hn,Pn),Hn=Un}Gn=Gn||ei&&Dn-nr-1>Nn&&_n[nr+1]!==" "}return!Xn&&!Gn?ni&&!In&&!Bn(_n)?STYLE_PLAIN:Ln===QUOTING_TYPE_DOUBLE?STYLE_DOUBLE:STYLE_SINGLE:$n>9&&needIndentIndicator(_n)?STYLE_DOUBLE:In?Ln===QUOTING_TYPE_DOUBLE?STYLE_DOUBLE:STYLE_SINGLE:Gn?STYLE_FOLDED:STYLE_LITERAL}function writeScalar(_n,Cn,$n,Nn,Bn){_n.dump=function(){if(Cn.length===0)return _n.quotingType===QUOTING_TYPE_DOUBLE?'""':"''";if(!_n.noCompatMode&&(DEPRECATED_BOOLEANS_SYNTAX.indexOf(Cn)!==-1||DEPRECATED_BASE60_SYNTAX.test(Cn)))return _n.quotingType===QUOTING_TYPE_DOUBLE?'"'+Cn+'"':"'"+Cn+"'";var Ln=_n.indent*Math.max(1,$n),In=_n.lineWidth===-1?-1:Math.max(Math.min(_n.lineWidth,40),_n.lineWidth-Ln),Pn=Nn||_n.flowLevel>-1&&$n>=_n.flowLevel;function Dn(Un){return testImplicitResolving(_n,Un)}switch(chooseScalarStyle(Cn,Pn,_n.indent,In,Dn,_n.quotingType,_n.forceQuotes&&!Nn,Bn)){case STYLE_PLAIN:return Cn;case STYLE_SINGLE:return"'"+Cn.replace(/'/g,"''")+"'";case STYLE_LITERAL:return"|"+blockHeader(Cn,_n.indent)+dropEndingNewline(indentString(Cn,Ln));case STYLE_FOLDED:return">"+blockHeader(Cn,_n.indent)+dropEndingNewline(indentString(foldString(Cn,In),Ln));case STYLE_DOUBLE:return'"'+escapeString(Cn)+'"';default:throw new exception("impossible error: invalid scalar style")}}()}function blockHeader(_n,Cn){var $n=needIndentIndicator(_n)?String(Cn):"",Nn=_n[_n.length-1]===`
|
||
`,Bn=Nn&&(_n[_n.length-2]===`
|
||
`||_n===`
|
||
`),Ln=Bn?"+":Nn?"":"-";return $n+Ln+`
|
||
`}function dropEndingNewline(_n){return _n[_n.length-1]===`
|
||
`?_n.slice(0,-1):_n}function foldString(_n,Cn){for(var $n=/(\n+)([^\n]*)/g,Nn=function(){var Un=_n.indexOf(`
|
||
`);return Un=Un!==-1?Un:_n.length,$n.lastIndex=Un,foldLine(_n.slice(0,Un),Cn)}(),Bn=_n[0]===`
|
||
`||_n[0]===" ",Ln,In;In=$n.exec(_n);){var Pn=In[1],Dn=In[2];Ln=Dn[0]===" ",Nn+=Pn+(!Bn&&!Ln&&Dn!==""?`
|
||
`:"")+foldLine(Dn,Cn),Bn=Ln}return Nn}function foldLine(_n,Cn){if(_n===""||_n[0]===" ")return _n;for(var $n=/ [^ ]/g,Nn,Bn=0,Ln,In=0,Pn=0,Dn="";Nn=$n.exec(_n);)Pn=Nn.index,Pn-Bn>Cn&&(Ln=In>Bn?In:Pn,Dn+=`
|
||
`+_n.slice(Bn,Ln),Bn=Ln+1),In=Pn;return Dn+=`
|
||
`,_n.length-Bn>Cn&&In>Bn?Dn+=_n.slice(Bn,In)+`
|
||
`+_n.slice(In+1):Dn+=_n.slice(Bn),Dn.slice(1)}function escapeString(_n){for(var Cn="",$n=0,Nn,Bn=0;Bn<_n.length;$n>=65536?Bn+=2:Bn++)$n=codePointAt(_n,Bn),Nn=ESCAPE_SEQUENCES[$n],!Nn&&isPrintable($n)?(Cn+=_n[Bn],$n>=65536&&(Cn+=_n[Bn+1])):Cn+=Nn||encodeHex($n);return Cn}function writeFlowSequence(_n,Cn,$n){var Nn="",Bn=_n.tag,Ln,In,Pn;for(Ln=0,In=$n.length;Ln<In;Ln+=1)Pn=$n[Ln],_n.replacer&&(Pn=_n.replacer.call($n,String(Ln),Pn)),(writeNode(_n,Cn,Pn,!1,!1)||typeof Pn>"u"&&writeNode(_n,Cn,null,!1,!1))&&(Nn!==""&&(Nn+=","+(_n.condenseFlow?"":" ")),Nn+=_n.dump);_n.tag=Bn,_n.dump="["+Nn+"]"}function writeBlockSequence(_n,Cn,$n,Nn){var Bn="",Ln=_n.tag,In,Pn,Dn;for(In=0,Pn=$n.length;In<Pn;In+=1)Dn=$n[In],_n.replacer&&(Dn=_n.replacer.call($n,String(In),Dn)),(writeNode(_n,Cn+1,Dn,!0,!0,!1,!0)||typeof Dn>"u"&&writeNode(_n,Cn+1,null,!0,!0,!1,!0))&&((!Nn||Bn!=="")&&(Bn+=generateNextLine(_n,Cn)),_n.dump&&CHAR_LINE_FEED===_n.dump.charCodeAt(0)?Bn+="-":Bn+="- ",Bn+=_n.dump);_n.tag=Ln,_n.dump=Bn||"[]"}function writeFlowMapping(_n,Cn,$n){var Nn="",Bn=_n.tag,Ln=Object.keys($n),In,Pn,Dn,Un,Hn;for(In=0,Pn=Ln.length;In<Pn;In+=1)Hn="",Nn!==""&&(Hn+=", "),_n.condenseFlow&&(Hn+='"'),Dn=Ln[In],Un=$n[Dn],_n.replacer&&(Un=_n.replacer.call($n,Dn,Un)),writeNode(_n,Cn,Dn,!1,!1)&&(_n.dump.length>1024&&(Hn+="? "),Hn+=_n.dump+(_n.condenseFlow?'"':"")+":"+(_n.condenseFlow?"":" "),writeNode(_n,Cn,Un,!1,!1)&&(Hn+=_n.dump,Nn+=Hn));_n.tag=Bn,_n.dump="{"+Nn+"}"}function writeBlockMapping(_n,Cn,$n,Nn){var Bn="",Ln=_n.tag,In=Object.keys($n),Pn,Dn,Un,Hn,Xn,Gn;if(_n.sortKeys===!0)In.sort();else if(typeof _n.sortKeys=="function")In.sort(_n.sortKeys);else if(_n.sortKeys)throw new exception("sortKeys must be a boolean or a function");for(Pn=0,Dn=In.length;Pn<Dn;Pn+=1)Gn="",(!Nn||Bn!=="")&&(Gn+=generateNextLine(_n,Cn)),Un=In[Pn],Hn=$n[Un],_n.replacer&&(Hn=_n.replacer.call($n,Un,Hn)),writeNode(_n,Cn+1,Un,!0,!0,!0)&&(Xn=_n.tag!==null&&_n.tag!=="?"||_n.dump&&_n.dump.length>1024,Xn&&(_n.dump&&CHAR_LINE_FEED===_n.dump.charCodeAt(0)?Gn+="?":Gn+="? "),Gn+=_n.dump,Xn&&(Gn+=generateNextLine(_n,Cn)),writeNode(_n,Cn+1,Hn,!0,Xn)&&(_n.dump&&CHAR_LINE_FEED===_n.dump.charCodeAt(0)?Gn+=":":Gn+=": ",Gn+=_n.dump,Bn+=Gn));_n.tag=Ln,_n.dump=Bn||"{}"}function detectType(_n,Cn,$n){var Nn,Bn,Ln,In,Pn,Dn;for(Bn=$n?_n.explicitTypes:_n.implicitTypes,Ln=0,In=Bn.length;Ln<In;Ln+=1)if(Pn=Bn[Ln],(Pn.instanceOf||Pn.predicate)&&(!Pn.instanceOf||typeof Cn=="object"&&Cn instanceof Pn.instanceOf)&&(!Pn.predicate||Pn.predicate(Cn))){if($n?Pn.multi&&Pn.representName?_n.tag=Pn.representName(Cn):_n.tag=Pn.tag:_n.tag="?",Pn.represent){if(Dn=_n.styleMap[Pn.tag]||Pn.defaultStyle,_toString.call(Pn.represent)==="[object Function]")Nn=Pn.represent(Cn,Dn);else if(_hasOwnProperty.call(Pn.represent,Dn))Nn=Pn.represent[Dn](Cn,Dn);else throw new exception("!<"+Pn.tag+'> tag resolver accepts not "'+Dn+'" style');_n.dump=Nn}return!0}return!1}function writeNode(_n,Cn,$n,Nn,Bn,Ln,In){_n.tag=null,_n.dump=$n,detectType(_n,$n,!1)||detectType(_n,$n,!0);var Pn=_toString.call(_n.dump),Dn=Nn,Un;Nn&&(Nn=_n.flowLevel<0||_n.flowLevel>Cn);var Hn=Pn==="[object Object]"||Pn==="[object Array]",Xn,Gn;if(Hn&&(Xn=_n.duplicates.indexOf($n),Gn=Xn!==-1),(_n.tag!==null&&_n.tag!=="?"||Gn||_n.indent!==2&&Cn>0)&&(Bn=!1),Gn&&_n.usedDuplicates[Xn])_n.dump="*ref_"+Xn;else{if(Hn&&Gn&&!_n.usedDuplicates[Xn]&&(_n.usedDuplicates[Xn]=!0),Pn==="[object Object]")Nn&&Object.keys(_n.dump).length!==0?(writeBlockMapping(_n,Cn,_n.dump,Bn),Gn&&(_n.dump="&ref_"+Xn+_n.dump)):(writeFlowMapping(_n,Cn,_n.dump),Gn&&(_n.dump="&ref_"+Xn+" "+_n.dump));else if(Pn==="[object Array]")Nn&&_n.dump.length!==0?(_n.noArrayIndent&&!In&&Cn>0?writeBlockSequence(_n,Cn-1,_n.dump,Bn):writeBlockSequence(_n,Cn,_n.dump,Bn),Gn&&(_n.dump="&ref_"+Xn+_n.dump)):(writeFlowSequence(_n,Cn,_n.dump),Gn&&(_n.dump="&ref_"+Xn+" "+_n.dump));else if(Pn==="[object String]")_n.tag!=="?"&&writeScalar(_n,_n.dump,Cn,Ln,Dn);else{if(Pn==="[object Undefined]")return!1;if(_n.skipInvalid)return!1;throw new exception("unacceptable kind of an object to dump "+Pn)}_n.tag!==null&&_n.tag!=="?"&&(Un=encodeURI(_n.tag[0]==="!"?_n.tag.slice(1):_n.tag).replace(/!/g,"%21"),_n.tag[0]==="!"?Un="!"+Un:Un.slice(0,18)==="tag:yaml.org,2002:"?Un="!!"+Un.slice(18):Un="!<"+Un+">",_n.dump=Un+" "+_n.dump)}return!0}function getDuplicateReferences(_n,Cn){var $n=[],Nn=[],Bn,Ln;for(inspectNode(_n,$n,Nn),Bn=0,Ln=Nn.length;Bn<Ln;Bn+=1)Cn.duplicates.push($n[Nn[Bn]]);Cn.usedDuplicates=new Array(Ln)}function inspectNode(_n,Cn,$n){var Nn,Bn,Ln;if(_n!==null&&typeof _n=="object")if(Bn=Cn.indexOf(_n),Bn!==-1)$n.indexOf(Bn)===-1&&$n.push(Bn);else if(Cn.push(_n),Array.isArray(_n))for(Bn=0,Ln=_n.length;Bn<Ln;Bn+=1)inspectNode(_n[Bn],Cn,$n);else for(Nn=Object.keys(_n),Bn=0,Ln=Nn.length;Bn<Ln;Bn+=1)inspectNode(_n[Nn[Bn]],Cn,$n)}function dump$1(_n,Cn){Cn=Cn||{};var $n=new State(Cn);$n.noRefs||getDuplicateReferences(_n,$n);var Nn=_n;return $n.replacer&&(Nn=$n.replacer.call({"":Nn},"",Nn)),writeNode($n,0,Nn,!0,!0)?$n.dump+`
|
||
`:""}var dump_1=dump$1,dumper={dump:dump_1};function renamed(_n,Cn){return function(){throw new Error("Function yaml."+_n+" is removed in js-yaml 4. Use yaml."+Cn+" instead, which is now safe by default.")}}var Type=type,Schema=schema,FAILSAFE_SCHEMA=failsafe,JSON_SCHEMA=json,CORE_SCHEMA=core,DEFAULT_SCHEMA=_default,load=loader.load,loadAll=loader.loadAll,dump=dumper.dump,YAMLException=exception,types={binary,float,map,null:_null,pairs,set,timestamp,bool,int,merge:merge$1,omap,seq,str},safeLoad=renamed("safeLoad","load"),safeLoadAll=renamed("safeLoadAll","loadAll"),safeDump=renamed("safeDump","dump"),jsYaml={Type,Schema,FAILSAFE_SCHEMA,JSON_SCHEMA,CORE_SCHEMA,DEFAULT_SCHEMA,load,loadAll,dump,YAMLException,types,safeLoad,safeLoadAll,safeDump};const _sfc_main$2={name:"Hotkey",components:{IconSvg},mixins:[LanguageMixin],props:{defaultHotkey:{type:Object,default:()=>({})}},data(){return{isOpen:!1,hotkeys:[{name:"click",title:"left_click_keyword_tag",value:"",options:[{name:"",title:"none"},{name:"edit",title:"edit_keyword"},{name:"disable",title:"disable_enable_keyword"},{name:"extend",title:"show_keyword_extend_panel"}]},{name:"rightClick",title:"right_click_keyword_tag",value:"",options:[{name:"",title:"none"},{name:"edit",title:"edit_keyword"},{name:"disable",title:"disable_enable_keyword"},{name:"extend",title:"show_keyword_extend_panel"}]},{name:"dblClick",title:"dblclick_keyword_tag",value:"",options:[{name:"",title:"none"},{name:"edit",title:"edit_keyword"},{name:"disable",title:"disable_enable_keyword"},{name:"extend",title:"show_keyword_extend_panel"}]},{name:"hover",title:"hover_keyword_tag",value:"",options:[{name:"",title:"none"},{name:"extend",title:"show_keyword_extend_panel"}]}]}},emits:["update:hotkey"],computed:{},mounted(){},methods:{open(){this.isOpen=!0,this.hotkeys.forEach(_n=>{this.defaultHotkey[_n.name]?_n.value=this.defaultHotkey[_n.name]:_n.value=""})},close(){this.isOpen=!1},onCloseClick(){this.close()},onSaveClick(){let _n={};this.hotkeys.forEach(Cn=>{_n[Cn.name]=Cn.value}),this.gradioAPI.setData("hotkey",_n),this.close(),this.$emit("update:hotkey",_n)}}},_hoisted_1$2={class:"hotkey-list"},_hoisted_2$2={class:"hotkey-title"},_hoisted_3$2=["onUpdate:modelValue"],_hoisted_4$2=["value"],_hoisted_5$1={class:"setting-btns"};function _sfc_render$2(_n,Cn,$n,Nn,Bn,Ln){return openBlock(),createBlock(Transition,{name:"fadeDown"},{default:withCtx(()=>[Bn.isOpen?(openBlock(),createElementBlock("div",{key:0,class:"physton-prompt-hotkey",onClick:Cn[4]||(Cn[4]=()=>{})},[createBaseVNode("div",{class:"hotkey-main",onClick:Cn[3]||(Cn[3]=withModifiers(()=>{},["stop"]))},[createBaseVNode("div",{class:"hotkey-body",onClick:Cn[2]||(Cn[2]=withModifiers(()=>{},["stop"]))},[createBaseVNode("div",_hoisted_1$2,[(openBlock(!0),createElementBlock(Fragment,null,renderList(Bn.hotkeys,In=>(openBlock(),createElementBlock("div",{class:"hotkey-item",key:In.name},[createBaseVNode("div",_hoisted_2$2,toDisplayString(_n.getLang(In.title)),1),withDirectives(createBaseVNode("select",{class:"hotkey-select","onUpdate:modelValue":Pn=>In.value=Pn},[(openBlock(!0),createElementBlock(Fragment,null,renderList(In.options,Pn=>(openBlock(),createElementBlock("option",{key:Pn.name,value:Pn.name},toDisplayString(_n.getLang(Pn.title)),9,_hoisted_4$2))),128))],8,_hoisted_3$2),[[vModelSelect,In.value]])]))),128))]),createBaseVNode("div",_hoisted_5$1,[createBaseVNode("div",{class:"hotkey-save hover-scale-120",onClick:Cn[0]||(Cn[0]=(...In)=>Ln.onSaveClick&&Ln.onSaveClick(...In))},toDisplayString(_n.getLang("save")),1),createBaseVNode("div",{class:"hotkey-close hover-scale-120",onClick:Cn[1]||(Cn[1]=(...In)=>Ln.onCloseClick&&Ln.onCloseClick(...In))},toDisplayString(_n.getLang("close")),1)])])])])):createCommentVNode("",!0)]),_:1})}const Hotkey=_export_sfc(_sfc_main$2,[["render",_sfc_render$2]]),TYPE_LORA="lora",TYPE_LYCO="lyco",TYPE_EMBEDDING="embedding",_sfc_main$1={name:"ExtraNetworksPopup",components:{IconSvg},mixins:[LanguageMixin],props:{extraNetworks:{type:Array,default:()=>[]}},data(){return{isShow:!1,e:null,name:"",useCallback:null,type:"",from:"tags",data:{},style:{},previewStyle:{},mouseIn:!1,eMouseIn:!1}},computed:{},mounted(){},methods:{show(_n,Cn,$n,Nn=!1,Bn="tags"){this.mouseIn=!1,this.eMouseIn=!0,this.e=_n,this.name=Cn,this.useCallback=$n,this.type="",this.from=Bn,this.data={},this.style={},this.previewStyle={};let Ln;Cn=Cn.toLowerCase();for(let In of this.extraNetworks)if(In.name==="textual inversion"){for(let Pn of In.items)if(Pn.name.toLowerCase()===Cn){this.type=TYPE_EMBEDDING,Ln=Pn;break}}else if(In.name==="lora"||In.name==="lycoris"){for(let Pn of In.items)if(Pn.name.toLowerCase()===Cn||Pn.output_name&&Pn.output_name.toLowerCase()===Cn){this.type=In.name==="lora"?TYPE_LORA:TYPE_LYCO,Ln=Pn;break}}else if(Nn&&In.name==="checkpoints"){for(let Pn of In.items)if(Pn.name.toLowerCase()===Cn){this.type="checkpoints",Ln=Pn;break}}if(!this.type)return this.isShow=!1;this.isShow=!0,this.data.name=Ln.civitai_info&&Ln.civitai_info.model&&Ln.civitai_info.model.name?Ln.civitai_info.model.name:Ln.name,this.data.output_name=Ln.output_name&&Ln.output_name!==this.data.name?Ln.output_name:"",this.data.basename=Ln.basename||"",this.data.dirname=Ln.dirname||"",this.data.description=Ln.civitai_info&&Ln.civitai_info.description?Ln.civitai_info.description:Ln.description||"",this.data.description=this.data.description.replace(/<[^>]+>/g,""),this.data.trainedWords=Ln.civitai_info&&Ln.civitai_info.trainedWords?Ln.civitai_info.trainedWords:[],this.data.preview=Ln.preview||(Ln.civitai_info&&Ln.civitai_info.images&&Ln.civitai_info.images.length?Ln.civitai_info.images[0]:""),this.data.modelId=Ln.civitai_info&&Ln.civitai_info.modelId?Ln.civitai_info.modelId:"",this.data.civitaiUrl=this.data.modelId?this.getCivitaiUrl(this.data.modelId):"",this.$nextTick(()=>{const In=_n.getBoundingClientRect();this.style.top=In.top+_n.offsetHeight+4+"px",this.style.left=In.left+"px",this.data.preview&&(this.previewStyle={width:"auto",height:this.$refs.extraNetworks.offsetHeight+"px"}),this.$nextTick(()=>{this.onPreviewLoad()})})},onPreviewLoad(){const _n=this.$refs.extraNetworks.getBoundingClientRect();_n.right>window.innerWidth&&(this.style.left=window.innerWidth-_n.width-10+"px")},_hide(){this.isShow&&(this.hideTimer&&clearTimeout(this.hideTimer),this.hideTimer=setTimeout(()=>{this.hideTimer=null,!this.mouseIn&&!this.eMouseIn&&(this.isShow=!1)},10))},hide(){this.eMouseIn=!1,this._hide()},onMouseEnter(){this.mouseIn=!0},onMouseMove(){this.mouseIn=!0},onMouseLeave(){this.mouseIn=!1,this._hide()},copy(_n){this.$copyText(_n).then(()=>{this.$toastr.success(this.getLang("success"))}).catch(()=>{this.$toastr.error(this.getLang("failed"))})},getCivitaiUrl(_n){return globals.civitaiUrl+"/models/"+_n},onOpenCivitaiClick(){if(!this.data.modelId)return;let _n=this.getCivitaiUrl(this.data.modelId);window.open(_n)},onUseKeywordsClick(_n){if(!_n||typeof this.useCallback!="function")return;let Cn=common$1.splitTags(_n);console.log(Cn),this.useCallback(Cn)}}},_hoisted_1$1=["data-from"],_hoisted_2$1={class:"popup-main"},_hoisted_3$1=["src"],_hoisted_4$1={class:"info-raws"},_hoisted_5={class:"info-raw"},_hoisted_6={class:"raw-name"},_hoisted_7={key:0,class:"info-raw"},_hoisted_8={class:"raw-name"},_hoisted_9={key:1,class:"info-raw"},_hoisted_10={class:"raw-name"},_hoisted_11={key:2,class:"info-raw"},_hoisted_12={class:"raw-name"},_hoisted_13={key:3,class:"info-raw"},_hoisted_14={class:"raw-name"},_hoisted_15={class:"raw-value"},_hoisted_16=["onClick"],_hoisted_17={key:4,class:"info-raw"},_hoisted_18={class:"raw-name"},_hoisted_19={class:"raw-description"},_hoisted_20={key:5,class:"info-raw"},_hoisted_21=createBaseVNode("div",{class:"raw-name"},"Civitai",-1),_hoisted_22={class:"raw-value"},_hoisted_23=["href"];function _sfc_render$1(_n,Cn,$n,Nn,Bn,Ln){const In=resolveDirective("tooltip");return withDirectives((openBlock(),createElementBlock("div",{class:"physton-prompt-extra-networks-popup",ref:"extraNetworks","data-from":Bn.from,onMouseenter:Cn[6]||(Cn[6]=withModifiers((...Pn)=>Ln.onMouseEnter&&Ln.onMouseEnter(...Pn),["stop"])),onMousemove:Cn[7]||(Cn[7]=withModifiers((...Pn)=>Ln.onMouseMove&&Ln.onMouseMove(...Pn),["stop"])),onMouseleave:Cn[8]||(Cn[8]=withModifiers((...Pn)=>Ln.onMouseLeave&&Ln.onMouseLeave(...Pn),["stop"])),style:normalizeStyle(Bn.style)},[createBaseVNode("div",_hoisted_2$1,[Bn.data.preview?(openBlock(),createElementBlock("img",{key:0,class:"info-preview",src:Bn.data.preview,style:normalizeStyle(Bn.previewStyle),onLoad:Cn[0]||(Cn[0]=(...Pn)=>Ln.onPreviewLoad&&Ln.onPreviewLoad(...Pn))},null,44,_hoisted_3$1)):createCommentVNode("",!0),createBaseVNode("div",_hoisted_4$1,[createBaseVNode("div",_hoisted_5,[createBaseVNode("div",_hoisted_6,toDisplayString(_n.getLang("model_name")),1),createBaseVNode("div",{class:"raw-value",onClick:Cn[1]||(Cn[1]=Pn=>Ln.copy(Bn.data.name))},toDisplayString(Bn.data.name),1)]),Bn.data.output_name?(openBlock(),createElementBlock("div",_hoisted_7,[createBaseVNode("div",_hoisted_8,toDisplayString(_n.getLang("output_name")),1),createBaseVNode("div",{class:"raw-value",onClick:Cn[2]||(Cn[2]=Pn=>Ln.copy(Bn.data.output_name))},toDisplayString(Bn.data.output_name),1)])):createCommentVNode("",!0),Bn.data.basename?(openBlock(),createElementBlock("div",_hoisted_9,[createBaseVNode("div",_hoisted_10,toDisplayString(_n.getLang("filename")),1),createBaseVNode("div",{class:"raw-value",onClick:Cn[3]||(Cn[3]=Pn=>Ln.copy(Bn.data.basename))},toDisplayString(Bn.data.basename),1)])):createCommentVNode("",!0),Bn.data.dirname?(openBlock(),createElementBlock("div",_hoisted_11,[createBaseVNode("div",_hoisted_12,toDisplayString(_n.getLang("filepath")),1),createBaseVNode("div",{class:"raw-value",onClick:Cn[4]||(Cn[4]=Pn=>Ln.copy(Bn.data.dirname))},toDisplayString(Bn.data.dirname),1)])):createCommentVNode("",!0),Bn.data.trainedWords&&Bn.data.trainedWords.length?(openBlock(),createElementBlock("div",_hoisted_13,[createBaseVNode("div",_hoisted_14,toDisplayString(_n.getLang("trained_words")),1),createBaseVNode("div",_hoisted_15,[(openBlock(!0),createElementBlock(Fragment,null,renderList(Bn.data.trainedWords,Pn=>(openBlock(),createElementBlock("div",{class:"raw-words",key:Pn,onClick:Dn=>Ln.onUseKeywordsClick(Pn)},toDisplayString(Pn),9,_hoisted_16))),128))])])):createCommentVNode("",!0),Bn.data.description?(openBlock(),createElementBlock("div",_hoisted_17,[createBaseVNode("div",_hoisted_18,toDisplayString(_n.getLang("description")),1),withDirectives((openBlock(),createElementBlock("div",{class:"raw-value",onClick:Cn[5]||(Cn[5]=Pn=>Ln.copy(Bn.data.description))},[createBaseVNode("div",_hoisted_19,toDisplayString(Bn.data.description),1)])),[[In,Bn.data.description]])])):createCommentVNode("",!0),Bn.data.civitaiUrl?(openBlock(),createElementBlock("div",_hoisted_20,[_hoisted_21,createBaseVNode("div",_hoisted_22,[createBaseVNode("a",{href:Bn.data.civitaiUrl,target:"_blank",class:"raw-link"},toDisplayString(Bn.data.civitaiUrl),9,_hoisted_23)])])):createCommentVNode("",!0)])])],44,_hoisted_1$1)),[[vShow,Bn.isShow]])}const ExtraNetworksPopup=_export_sfc(_sfc_main$1,[["render",_sfc_render$1]]),_sfc_main={name:"App",components:{Hotkey,About,ChatgptPrompt,PackagesState,PromptFormat,Blacklist,ExtensionCss,IconSvg,History,Favorite,SelectLanguage,TranslateSetting,PhystonPrompt,ExtraNetworksPopup},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,autoRemoveLoraBeforeComma:!1,autoRemoveLoraAfterComma:!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:{},groupTagsColorKeyCache:{},groupTagsTranslate:!0,groupTagsTranslateCache:{toEn:new Map,toLocal:new Map},extraNetworksWidth:100,extraNetworksHeight:120,blacklist:{},cancelBlacklistConfirm:!1,hotkey:{click:"edit",dblClick:"disable",rightClick:"",hover:"extend"}}},watch:{languageCode:{handler:function(_n,Cn){this.startWatchSave&&(console.log("onLanguageCodeChange",_n),this.canOneTranslate=common$1.canOneTranslate(this.languageCode),this.gradioAPI.setData("languageCode",_n).then($n=>{}).catch($n=>{}),this.loadGroupTags())},immediate:!1},autoTranslateToEnglish:{handler:function(_n,Cn){this.startWatchSave&&(console.log("onAutoTranslateToEnglishChange",_n),this.gradioAPI.setData("autoTranslateToEnglish",_n).then($n=>{}).catch($n=>{}))},immediate:!1},autoTranslateToLocal:{handler:function(_n,Cn){this.startWatchSave&&(console.log("onAutoTranslateToLocalChange",_n),this.gradioAPI.setData("autoTranslateToLocal",_n).then($n=>{}).catch($n=>{}))},immediate:!1},autoTranslate:{handler:function(_n,Cn){this.startWatchSave&&(this.autoTranslateToEnglish=this.autoTranslate,this.autoTranslateToLocal=this.autoTranslate,console.log("onAutoTranslateChange",_n),this.gradioAPI.setData("autoTranslate",_n).then($n=>{}).catch($n=>{}))},immediate:!1},autoRemoveSpace:{handler:function(_n,Cn){this.startWatchSave&&(console.log("onAutoRemoveSpaceChange",_n),this.gradioAPI.setData("autoRemoveSpace",_n).then($n=>{this.prompts.forEach(Nn=>{this.$refs[Nn.id][0].updatePrompt()})}).catch($n=>{}))},immediate:!1},autoRemoveLastComma:{handler:function(_n,Cn){this.startWatchSave&&(console.log("onAutoRemoveLastCommaChange",_n),this.gradioAPI.setData("autoRemoveLastComma",_n).then($n=>{this.prompts.forEach(Nn=>{this.$refs[Nn.id][0].updatePrompt()})}).catch($n=>{}))},immediate:!1},autoKeepWeightZero:{handler:function(_n,Cn){this.startWatchSave&&(console.log("onAutoKeepWeightZeroChange",_n),this.gradioAPI.setData("autoKeepWeightZero",_n).then($n=>{}).catch($n=>{}))},immediate:!1},autoKeepWeightOne:{handler:function(_n,Cn){this.startWatchSave&&(console.log("onAutoKeepWeightOneChange",_n),this.gradioAPI.setData("autoKeepWeightOne",_n).then($n=>{}).catch($n=>{}))},immediate:!1},autoBreakBeforeWrap:{handler:function(_n,Cn){this.startWatchSave&&(console.log("onAutoBreakBeforeWrap",_n),this.gradioAPI.setData("autoBreakBeforeWrap",_n).then($n=>{this.prompts.forEach(Nn=>{this.$refs[Nn.id][0].updatePrompt()})}).catch($n=>{}))},immediate:!1},autoBreakAfterWrap:{handler:function(_n,Cn){this.startWatchSave&&(console.log("onAutoBreakAfterWrap",_n),this.gradioAPI.setData("autoBreakAfterWrap",_n).then($n=>{this.prompts.forEach(Nn=>{this.$refs[Nn.id][0].updatePrompt()})}).catch($n=>{}))},immediate:!1},autoRemoveLoraBeforeComma:{handler:function(_n,Cn){this.startWatchSave&&(console.log("onAutoRemoveLoraBeforeCommaChange",_n),this.gradioAPI.setData("autoRemoveLoraBeforeComma",_n).then($n=>{}).catch($n=>{}))},immediate:!1},autoRemoveLoraAfterComma:{handler:function(_n,Cn){this.startWatchSave&&(console.log("onAutoRemoveLoraAfterCommaChange",_n),this.gradioAPI.setData("autoRemoveLoraAfterComma",_n).then($n=>{}).catch($n=>{}))},immediate:!1},enableTooltip:{handler:function(_n,Cn){this.startWatchSave&&(localStorage.setItem("phystonPromptEnableTooltip",_n?"true":"false"),this.updateTippyState(),this.gradioAPI.setData("enableTooltip",_n).then($n=>{}).catch($n=>{}))},immediate:!1},translateApi:{handler:function(_n,Cn){this.startWatchSave&&(console.log("onTranslateApiChange",_n,Cn),this.updateTranslateApiConfig(),this.gradioAPI.setData("translateApi",_n).then($n=>{}).catch($n=>{}))},immediate:!1},tagCompleteFile:{handler:function(_n,Cn){this.startWatchSave&&(console.log("onTagCompleteFileChange",_n,Cn),this.gradioAPI.setData("tagCompleteFile",_n).then($n=>{}).catch($n=>{}))},immediate:!1},groupTagsColor:{handler:function(_n,Cn){this.startWatchSave&&(console.log("onGroupTagsColorChange",_n,Cn),this.gradioAPI.setData("groupTagsColor",_n).then($n=>{}).catch($n=>{}))},deep:!0,immediate:!1},groupTagsTranslate:{handler:function(_n,Cn){this.startWatchSave&&(console.log("onGroupTagsTranslateChange",_n,Cn),this.gradioAPI.setData("groupTagsTranslate",_n).then($n=>{}).catch($n=>{}))},immediate:!1},onlyCsvOnAuto(){this.startWatchSave&&(console.log("onOnlyCsvOnAutoChange",this.onlyCsvOnAuto),this.gradioAPI.setData("onlyCsvOnAuto",this.onlyCsvOnAuto).then(_n=>{}).catch(_n=>{}))},extraNetworksWidth(){this.startWatchSave&&(this.extraNetworksWidthTimer&&clearTimeout(this.extraNetworksWidthTimer),this.extraNetworksWidthTimer=setTimeout(()=>{console.log("onExtraNetworksWidthChange",this.extraNetworksWidth),this.gradioAPI.setData("extraNetworksWidth",this.extraNetworksWidth).then(_n=>{}).catch(_n=>{})},500))},extraNetworksHeight(){this.startWatchSave&&(this.extraNetworksHeightTimer&&clearTimeout(this.extraNetworksHeightTimer),this.extraNetworksHeightTimer=setTimeout(()=>{console.log("onExtraNetworksHeightChange",this.extraNetworksHeight),this.gradioAPI.setData("extraNetworksHeight",this.extraNetworksHeight).then(_n=>{}).catch(_n=>{})},500))}},mounted(){common$1.loadCSS("toastr.min.css","physton-prompt-toastr",!0,!0,!1),common$1.loadCSS("tippy.css","physton-prompt-tippy",!0,!0,!1),common$1.loadCSS("vue3-colorpicker.css","physton-prompt-vue3-colorpicker",!0,!0,!1),common$1.loadCSS("animate.min.css","physton-prompt-animate",!0,!0,!1),common$1.loadCSS("main.min.css","physton-prompt-main",!0);let Cn=new URLSearchParams(window.location.search).get("__theme");["dark","light"].includes(Cn)&&(this.theme=Cn,common$1.gradioApp().classList.contains(this.theme)||common$1.gradioApp().classList.add(this.theme)),setTimeout(()=>{var Bn,Ln,In;let $n=!1,Nn=!1;if(localStorage.getItem("SD-LOBE-SETTING")||localStorage.getItem("SD-KITCHEN-SETTING")||(In=(Ln=(Bn=document.querySelector('head > meta[name="application-name"]'))==null?void 0:Bn.content)==null?void 0:Ln.includes)!=null&&In.call(Ln,"Lobe")){let Pn=document.getElementsByTagName("link");for(let Dn=0;Dn<Pn.length;Dn++){let Un=Pn[Dn];if(Un.href.includes("lobehub/")){$n=!0;break}else Un.href.includes("kitchen-theme")&&(Nn=!0)}}$n?common$1.gradioApp().classList.add("physton-prompt-lobehub"):Nn&&common$1.gradioApp().classList.add("physton-prompt-kitchen")},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 Nn={};$n.i18n.languages.forEach(Bn=>{Nn[Bn.code]=Bn}),this.languages=Nn,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,globals.shortName,{timeOut:2e4}),console.log($n)})},methods:{getLang(_n){return common$1.getLang(_n,this.languageCode,this.languages)},init(){this.loadExtraNetworks();let _n=["languageCode","autoTranslate","autoTranslateToEnglish","autoTranslateToLocal","autoRemoveSpace","autoRemoveLastComma","autoKeepWeightZero","autoKeepWeightOne","autoBreakBeforeWrap","autoBreakAfterWrap","autoRemoveLoraBeforeComma","autoRemoveLoraAfterComma","translateApi","enableTooltip","tagCompleteFile","onlyCsvOnAuto","extensionSelect.minimalist","groupTagsColor","groupTagsTranslate","blacklist","cancelBlacklistConfirm","hotkey","extraNetworksWidth","extraNetworksHeight"];this.prompts.forEach(Cn=>{_n.push(Cn.hideDefaultInputKey),_n.push(Cn.hidePanelKey),_n.push(Cn.hideGroupTagsKey)}),this.gradioAPI.getDatas(_n).then(Cn=>{if(Cn.languageCode!==null){let $n=!1;for(let Nn in this.languages)if(this.languages[Nn].code===Cn.languageCode){$n=!0;break}$n&&(this.languageCode=Cn.languageCode,this.$forceUpdate(),this.gradioAPI.setData("languageCode",this.languageCode))}else{let $n=navigator.language||navigator.userLanguage||"";if($n){for(let Nn in this.languages)if(common$1.isSameLang(this.languages[Nn].code,$n)){this.languageCode=this.languages[Nn].code,this.$forceUpdate(),this.gradioAPI.setData("languageCode",this.languageCode);break}}}if(this.canOneTranslate=common$1.canOneTranslate(this.languageCode),Cn.autoTranslateToEnglish!==null&&(this.autoTranslateToEnglish=Cn.autoTranslateToEnglish),Cn.autoTranslateToLocal!==null&&(this.autoTranslateToLocal=Cn.autoTranslateToLocal),Cn.autoTranslate!==null?this.canOneTranslate?(this.autoTranslate=Cn.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,Cn.autoRemoveSpace!==null&&(this.autoRemoveSpace=Cn.autoRemoveSpace),Cn.autoRemoveLastComma!==null&&(this.autoRemoveLastComma=Cn.autoRemoveLastComma),Cn.autoKeepWeightZero!==null&&(this.autoKeepWeightZero=Cn.autoKeepWeightZero),Cn.autoKeepWeightOne!==null&&(this.autoKeepWeightOne=Cn.autoKeepWeightOne),Cn.autoBreakBeforeWrap!==null&&(this.autoBreakBeforeWrap=Cn.autoBreakBeforeWrap),Cn.autoBreakAfterWrap!==null&&(this.autoBreakAfterWrap=Cn.autoBreakAfterWrap),Cn.autoRemoveLoraBeforeComma!==null&&(this.autoRemoveLoraBeforeComma=Cn.autoRemoveLoraBeforeComma),Cn.autoRemoveLoraAfterComma!==null&&(this.autoRemoveLoraAfterComma=Cn.autoRemoveLoraAfterComma),Cn.enableTooltip!==null&&(this.enableTooltip=Cn.enableTooltip),localStorage.setItem("phystonPromptEnableTooltip",this.enableTooltip?"true":"false"),this.updateTippyState(),Cn.translateApi!==null&&(this.translateApi=Cn.translateApi),Cn.tagCompleteFile!==null&&(this.tagCompleteFile=Cn.tagCompleteFile,this.$nextTick(()=>{this.$refs.translateSetting.getCSV(this.tagCompleteFile)})),Cn.onlyCsvOnAuto!==null&&(this.onlyCsvOnAuto=Cn.onlyCsvOnAuto),Cn["extensionSelect.minimalist"]===null&&this.gradioAPI.setData("extensionSelect.minimalist",!0),Cn.groupTagsColor!==null&&typeof Cn.groupTagsColor=="object"){this.groupTagsColor={};for(let $n in Cn.groupTagsColor){let Nn=Cn.groupTagsColor[$n];this.groupTagsColor[$n]=ref(common$1.fitterInputColor(Nn))}}Cn.groupTagsTranslate!==null&&(this.groupTagsTranslate=Cn.groupTagsTranslate),Cn.blacklist!==null&&(this.blacklist=this._handleBlacklist(Cn.blacklist)),Cn.cancelBlacklistConfirm!==null&&(this.cancelBlacklistConfirm=Cn.cancelBlacklistConfirm),Cn.hotkey!==null&&(this.hotkey=Cn.hotkey),Cn.extraNetworksWidth!==null&&(this.extraNetworksWidth=Cn.extraNetworksWidth),Cn.extraNetworksHeight!==null&&(this.extraNetworksHeight=Cn.extraNetworksHeight),this.updateTranslateApiConfig(),this.$refs.extensionCss.init(),this.prompts.forEach($n=>{Cn[$n.hideDefaultInputKey]!==null&&($n.hideDefaultInput=Cn[$n.hideDefaultInputKey]),Cn[$n.hidePanelKey]!==null&&($n.hidePanel=Cn[$n.hidePanelKey]),Cn[$n.hideGroupTagsKey]!==null&&($n.hideGroupTags=Cn[$n.hideGroupTagsKey]),$n.$prompt=common$1.gradioApp().querySelector("#"+$n.prompt),$n.$textarea=$n.$prompt.getElementsByTagName("textarea")[0],$n.$steps=common$1.gradioApp().querySelector("#"+$n.steps)}),this.$nextTick(()=>{this.prompts.forEach($n=>{const Nn=common$1.gradioApp().querySelector("#"+$n.id);$n.$prompt.parentElement.parentElement.parentElement.appendChild(Nn),$n.$prompt.parentElement.parentElement.style.display=$n.hideDefaultInput?"none":"flex"}),this.startWatchSave=!0}),this.handlePaste(),this.loadGroupTags()})},loadGroupTags(){this.gradioAPI.getGroupTags(this.languageCode).then(_n=>{if(!_n||_n==="")this.groupTags=[];else try{this.groupTags=jsYaml.load(_n),Array.isArray(this.groupTags)||(this.groupTags=[])}catch(Cn){console.log(Cn),this.groupTags=[]}this._handleGroupTags()})},_handleGroupTags(){let _n={toEn:new Map,toLocal:new Map},Cn=($n,Nn)=>{[$n,$n.replace(/\_/g," "),$n.replace(/\-/g," ")].forEach(Ln=>{if(_n.toLocal.has(Ln)){let In=_n.toLocal.get(Ln);In.includes(Nn)||In.push(Nn)}else _n.toLocal.set(Ln,[Nn])}),_n.toEn.set(Nn,$n)};this.groupTags.forEach(($n,Nn)=>{$n.type=$n.type||"",$n.tabKey="groupTags-"+Nn,$n.groups.forEach((Bn,Ln)=>{if(Bn.type=Bn.type||"",Bn.tabKey="subGroupTags-"+Nn+"-"+Ln,Bn.type=="wrap")return;let In=common$1.getTagsColorKey($n.name,Bn.name);this.groupTagsColor[In]||(this.groupTagsColor[In]=ref(common$1.fitterInputColor(Bn.color)));for(let Pn in Bn.tags){if(!Pn)continue;this.groupTagsColorKeyCache[Pn]=In;let Dn=Bn.tags[Pn];!Dn||Pn==Dn||Cn(Pn,Dn)}})}),this.groupTagsTranslateCache=_n},updateTippyState(){for(const _n of this.$tippyList)this.enableTooltip?_n.enable():_n.disable()},updateTranslateApiConfig(){this.gradioAPI.getData("translate_api."+this.translateApi).then(_n=>{let Cn={};const $n=common$1.getTranslateApiItem(this.translateApis,this.translateApi);if($n.config){for(const Nn of $n.config)$n.type==="translators"&&Nn.key==="region"&&!_n.region?Cn[Nn.key]=this.languageCode==="zh_CN"||this.languageCode==="zh_HK"||this.languageCode==="zh_TW"?"China":"EN":_n?Cn[Nn.key]=_n[Nn.key]:Cn[Nn.key]=Nn.default||"";Cn.concurrent=$n.concurrent||0}this.translateApiConfig=Cn})},onPromptFormatClick(_n){this.$refs.promptFormat.open(_n)},onBlacklistClick(_n){this.$refs.blacklist.open(_n)},onHotkeyClick(_n){this.$refs.hotkey.open(_n)},onSelectLanguageClick(_n){this.$refs.selectLanguage.open(_n)},onTranslateApiClick(){this.$refs.translateSetting.open(this.translateApi)},onSelectThemeClick(){this.$refs.extensionCss.open()},handlePaste(){if(typeof gradioApp!="function")return;const _n=gradioApp().querySelectorAll("#paste");!_n||_n.length<=0||_n.forEach((Cn,$n)=>{const Nn=Cn.cloneNode(!0);Nn.id="paste-new-"+$n,Nn.innerHTML="🗒",Cn.parentNode.insertBefore(Nn,Cn.nextSibling),Nn.addEventListener("click",()=>{this.pasteBtn=Cn,this.openPastePopup()}),this.pasteTitle=Cn.title})},openPastePopup(){this.pasteContent="",this.pasteLoading=!1,this.showPastePopup=!0},closePastePopup(){this.showPastePopup=!1},onClickPasteSubmit(){this.pasteLoading=!0;const _n=get_uiCurrentTabContent();let Cn=null,$n=null,Nn=null,Bn=null,Ln=[];for(const In of this.prompts)In.tab==_n.id&&(console.log(In),Ln.push(In.id),In.neg?($n=In.$textarea,Bn=In.$prompt):(Cn=In.$textarea,Nn=In.$prompt));if(!Cn||!Nn||!Bn){this.pasteLoading=!1;return}Cn.value=this.pasteContent,Cn.dispatchEvent(new Event("input")),this.pasteBtn.dispatchEvent(new Event("click")),setTimeout(()=>{let In=0,Pn=0;In=setInterval(()=>{if(Pn++,Pn>100){this.pasteLoading=!1,clearInterval(In);return}Nn.getElementsByClassName("hide").length>0&&Bn.getElementsByClassName("hide").length>0&&(this.pasteLoading=!1,this.closePastePopup(),clearInterval(In),common$1.hideCompleteResults(Cn),common$1.hideCompleteResults($n),Ln.forEach((Dn,Un)=>{setTimeout(()=>{this.$refs[Dn][0].onTextareaChange(!0)},1e3)}))},100)},1e3)},onUpdateHideDefaultInput(_n,Cn){const $n=this.prompts.find(Nn=>Nn.id==_n);$n&&($n.hideDefaultInput=Cn,this.gradioAPI.setData($n.hideDefaultInputKey,$n.hideDefaultInput),$n.$prompt.parentElement.parentElement.style.display=$n.hideDefaultInput?"none":"flex")},onUpdateHidePanel(_n,Cn){const $n=this.prompts.find(Nn=>Nn.id==_n);$n&&($n.hidePanel=Cn,this.gradioAPI.setData($n.hidePanelKey,$n.hidePanel))},onUpdateHideGroupTags(_n,Cn){const $n=this.prompts.find(Nn=>Nn.id==_n);$n&&($n.hideGroupTags=Cn,this.gradioAPI.setData($n.hideGroupTagsKey,$n.hideGroupTags))},onShowHistory(_n,Cn){this.$refs.favorite.hide(),this.historyCurrentPrompt=_n;const $n=this.prompts.find(Nn=>Nn.id==_n);$n&&this.$refs.history.show($n.historyKey,Cn)},onUseHistory(_n){if(!this.historyCurrentPrompt)return;const Cn=this.prompts.find($n=>$n.id==this.historyCurrentPrompt);Cn&&this.$refs[Cn.id][0].useFavorite(_n)},onShowFavorite(_n,Cn){this.$refs.history.hide(),this.favoriteCurrentPrompt=_n;const $n=this.prompts.find(Nn=>Nn.id==_n);$n&&this.$refs.favorite.show($n.favoriteKey,Cn)},onUseFavorite(_n){if(!this.favoriteCurrentPrompt)return;const Cn=this.prompts.find($n=>$n.id==this.favoriteCurrentPrompt);Cn&&this.$refs[Cn.id][0].useFavorite(_n)},onRefreshFavorites(_n){this.$refs.favorite.getFavorites(_n)},onShowChatgpt(_n,Cn){this.chatgptCurrentPrompt=_n,this.prompts.find(Nn=>Nn.id==_n)&&this.$refs.chatgptPrompt.open()},onUseChatgpt(_n){if(!this.chatgptCurrentPrompt)return;const Cn=this.prompts.find($n=>$n.id==this.chatgptCurrentPrompt);Cn&&this.$refs[Cn.id][0].useChatgpt(_n)},onShowAbout(){this.$refs.about.open()},onSwitchTheme(){this.theme=this.theme==="dark"?"light":"dark";let _n=window.location.href,Cn=new URL(_n),$n=new URLSearchParams(Cn.search);$n.has("__theme")?$n.set("__theme",this.theme):$n.append("__theme",this.theme);let Nn=Cn.origin+Cn.pathname+"?"+$n.toString();window.location.href=Nn},_handleBlacklist(_n){var Cn,$n,Nn,Bn,Ln,In;return _n={..._n},_n.prompt=(Cn=_n.prompt)==null?void 0:Cn.slice().map(Pn=>Pn.toLowerCase()),_n.negative_prompt=($n=_n.negative_prompt)==null?void 0:$n.slice().map(Pn=>Pn.toLowerCase()),_n.lora=(Nn=_n.lora)==null?void 0:Nn.slice().map(Pn=>Pn.toLowerCase()),_n.lycoris=(Bn=_n.lycoris)==null?void 0:Bn.slice().map(Pn=>Pn.toLowerCase()),_n.embedding=(Ln=_n.embedding)==null?void 0:Ln.slice().map(Pn=>Pn.toLowerCase()),_n.translate=(In=_n.translate)==null?void 0:In.slice().map(Pn=>Pn.toLowerCase()),_n},onUpdateBlacklist(_n,Cn){this.blacklist=this._handleBlacklist(_n),typeof Cn=="boolean"&&(this.cancelBlacklistConfirm=Cn)},onUpdateHotkey(_n){this.hotkey=_n},onShowExtraNetworks(_n,Cn,$n,Nn,Bn){this.$refs.extraNetworksPopup.show(_n,Cn,$n,Nn,Bn)},onHideExtraNetworks(){this.$refs.extraNetworksPopup.hide()}}},_hoisted_1={class:"paste-popup-title"},_hoisted_2={class:"paste-popup-body"},_hoisted_3=["placeholder"],_hoisted_4={key:1,class:"paste-submit"};function _sfc_render(_n,Cn,$n,Nn,Bn,Ln){const In=resolveComponent("physton-prompt"),Pn=resolveComponent("translate-setting"),Dn=resolveComponent("select-language"),Un=resolveComponent("prompt-format"),Hn=resolveComponent("blacklist"),Xn=resolveComponent("hotkey"),Gn=resolveComponent("history"),ei=resolveComponent("favorite"),nr=resolveComponent("extension-css"),ni=resolveComponent("packages-state"),ai=resolveComponent("chatgpt-prompt"),si=resolveComponent("about"),gi=resolveComponent("extra-networks-popup"),Si=resolveComponent("icon-svg");return openBlock(),createElementBlock("div",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(Bn.prompts,ri=>(openBlock(),createElementBlock(Fragment,{key:ri.name},[ri.$textarea?(openBlock(),createBlock(In,{key:0,id:ri.id,ref_for:!0,ref:ri.id,name:ri.name,neg:ri.neg,textarea:ri.$textarea,steps:ri.$steps,"language-code":Bn.languageCode,"onUpdate:languageCode":Cn[0]||(Cn[0]=Ei=>Bn.languageCode=Ei),"translate-apis":Bn.translateApis,languages:Bn.languages,"history-key":ri.historyKey,"onClick:showHistory":Ei=>Ln.onShowHistory(ri.id,Ei),"favorite-key":ri.favoriteKey,onRefreshFavorites:Ln.onRefreshFavorites,"onClick:showFavorite":Ei=>Ln.onShowFavorite(ri.id,Ei),"can-one-translate":Bn.canOneTranslate,"onUpdate:canOneTranslate":Cn[1]||(Cn[1]=Ei=>Bn.canOneTranslate=Ei),"auto-translate":Bn.autoTranslate,"onUpdate:autoTranslate":Cn[2]||(Cn[2]=Ei=>Bn.autoTranslate=Ei),"auto-translate-to-english":Bn.autoTranslateToEnglish,"onUpdate:autoTranslateToEnglish":Cn[3]||(Cn[3]=Ei=>Bn.autoTranslateToEnglish=Ei),"auto-translate-to-local":Bn.autoTranslateToLocal,"onUpdate:autoTranslateToLocal":Cn[4]||(Cn[4]=Ei=>Bn.autoTranslateToLocal=Ei),"auto-remove-space":Bn.autoRemoveSpace,"onUpdate:autoRemoveSpace":Cn[5]||(Cn[5]=Ei=>Bn.autoRemoveSpace=Ei),"auto-remove-last-comma":Bn.autoRemoveLastComma,"onUpdate:autoRemoveLastComma":Cn[6]||(Cn[6]=Ei=>Bn.autoRemoveLastComma=Ei),"auto-keep-weight-zero":Bn.autoKeepWeightZero,"onUpdate:autoKeepWeightZero":Cn[7]||(Cn[7]=Ei=>Bn.autoKeepWeightZero=Ei),"auto-keep-weight-one":Bn.autoKeepWeightOne,"onUpdate:autoKeepWeightOne":Cn[8]||(Cn[8]=Ei=>Bn.autoKeepWeightOne=Ei),"auto-break-before-wrap":Bn.autoBreakBeforeWrap,"onUpdate:autoBreakBeforeWrap":Cn[9]||(Cn[9]=Ei=>Bn.autoBreakBeforeWrap=Ei),"auto-break-after-wrap":Bn.autoBreakAfterWrap,"onUpdate:autoBreakAfterWrap":Cn[10]||(Cn[10]=Ei=>Bn.autoBreakAfterWrap=Ei),"auto-remove-lora-before-comma":Bn.autoRemoveLoraBeforeComma,"onUpdate:autoRemoveLoraBeforeComma":Cn[11]||(Cn[11]=Ei=>Bn.autoRemoveLoraBeforeComma=Ei),"auto-remove-lora-after-comma":Bn.autoRemoveLoraAfterComma,"onUpdate:autoRemoveLoraAfterComma":Cn[12]||(Cn[12]=Ei=>Bn.autoRemoveLoraAfterComma=Ei),"hide-default-input":ri.hideDefaultInput,"onUpdate:hideDefaultInput":Ei=>Ln.onUpdateHideDefaultInput(ri.id,Ei),"hide-panel":ri.hidePanel,"onUpdate:hidePanel":Ei=>Ln.onUpdateHidePanel(ri.id,Ei),"enable-tooltip":Bn.enableTooltip,"onUpdate:enableTooltip":Cn[13]||(Cn[13]=Ei=>Bn.enableTooltip=Ei),"translate-api":Bn.translateApi,"onUpdate:translateApi":Cn[14]||(Cn[14]=Ei=>Bn.translateApi=Ei),"translate-api-config":Bn.translateApiConfig,"onClick:translateApi":Ln.onTranslateApiClick,"onClick:promptFormat":Ln.onPromptFormatClick,"onClick:blacklist":Ln.onBlacklistClick,"onClick:hotkey":Ln.onHotkeyClick,"tag-complete-file":Bn.tagCompleteFile,"onUpdate:tagCompleteFile":Cn[15]||(Cn[15]=Ei=>Bn.tagCompleteFile=Ei),"only-csv-on-auto":Bn.onlyCsvOnAuto,"onUpdate:onlyCsvOnAuto":Cn[16]||(Cn[16]=Ei=>Bn.onlyCsvOnAuto=Ei),"group-tags-translate":Bn.groupTagsTranslate,"onUpdate:groupTagsTranslate":Cn[17]||(Cn[17]=Ei=>Bn.groupTagsTranslate=Ei),"onClick:selectLanguage":Ln.onSelectLanguageClick,"onClick:selectTheme":Ln.onSelectThemeClick,"onClick:showChatgpt":Ei=>Ln.onShowChatgpt(ri.id,Ei),"extra-networks":Bn.extraNetworks,loras:Bn.loras,lycos:Bn.lycos,embeddings:Bn.embeddings,version:Bn.version,"latest-version":Bn.latestVersion,"is-latest-version":Bn.isLatestVersion,"onClick:showAbout":Ln.onShowAbout,theme:Bn.theme,"onClick:switchTheme":Ln.onSwitchTheme,"group-tags":Bn.groupTags,"hide-group-tags":ri.hideGroupTags,"group-tags-color":Bn.groupTagsColor,"onUpdate:groupTagsColor":Cn[18]||(Cn[18]=Ei=>Bn.groupTagsColor=Ei),"group-tags-color-key-cache":Bn.groupTagsColorKeyCache,"onUpdate:hideGroupTags":Ei=>Ln.onUpdateHideGroupTags(ri.id,Ei),"group-tags-translate-cache":Bn.groupTagsTranslateCache,"extra-networks-width":Bn.extraNetworksWidth,"onUpdate:extraNetworksWidth":Cn[19]||(Cn[19]=Ei=>Bn.extraNetworksWidth=Ei),"extra-networks-height":Bn.extraNetworksHeight,"onUpdate:extraNetworksHeight":Cn[20]||(Cn[20]=Ei=>Bn.extraNetworksHeight=Ei),blacklist:Bn.blacklist,"cancel-blacklist-confirm":Bn.cancelBlacklistConfirm,"onUpdate:blacklist":Ln.onUpdateBlacklist,hotkey:Bn.hotkey,onShowExtraNetworks:Ln.onShowExtraNetworks,onHideExtraNetworks:Ln.onHideExtraNetworks},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","auto-remove-lora-before-comma","auto-remove-lora-after-comma","hide-default-input","onUpdate:hideDefaultInput","hide-panel","onUpdate:hidePanel","enable-tooltip","translate-api","translate-api-config","onClick:translateApi","onClick:promptFormat","onClick:blacklist","onClick:hotkey","tag-complete-file","only-csv-on-auto","group-tags-translate","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","group-tags-color-key-cache","onUpdate:hideGroupTags","group-tags-translate-cache","extra-networks-width","extra-networks-height","blacklist","cancel-blacklist-confirm","onUpdate:blacklist","hotkey","onShowExtraNetworks","onHideExtraNetworks"])):createCommentVNode("",!0)],64))),128)),createVNode(Pn,{ref:"translateSetting","language-code":Bn.languageCode,"onUpdate:languageCode":Cn[21]||(Cn[21]=ri=>Bn.languageCode=ri),"translate-apis":Bn.translateApis,languages:Bn.languages,"onForceUpdate:translateApi":Ln.updateTranslateApiConfig,"tag-complete-file":Bn.tagCompleteFile,"onUpdate:tagCompleteFile":Cn[22]||(Cn[22]=ri=>Bn.tagCompleteFile=ri),"only-csv-on-auto":Bn.onlyCsvOnAuto,"onUpdate:onlyCsvOnAuto":Cn[23]||(Cn[23]=ri=>Bn.onlyCsvOnAuto=ri),"group-tags-translate":Bn.groupTagsTranslate,"onUpdate:groupTagsTranslate":Cn[24]||(Cn[24]=ri=>Bn.groupTagsTranslate=ri),"translate-api":Bn.translateApi,"onUpdate:translateApi":Cn[25]||(Cn[25]=ri=>Bn.translateApi=ri)},null,8,["language-code","translate-apis","languages","onForceUpdate:translateApi","tag-complete-file","only-csv-on-auto","group-tags-translate","translate-api"]),createVNode(Dn,{ref:"selectLanguage","language-code":Bn.languageCode,"onUpdate:languageCode":Cn[26]||(Cn[26]=ri=>Bn.languageCode=ri),"translate-apis":Bn.translateApis,languages:Bn.languages,"translate-api":Bn.translateApi,"onUpdate:translateApi":Cn[27]||(Cn[27]=ri=>Bn.translateApi=ri),"tag-complete-file":Bn.tagCompleteFile,"onUpdate:tagCompleteFile":Cn[28]||(Cn[28]=ri=>Bn.tagCompleteFile=ri),"only-csv-on-auto":Bn.onlyCsvOnAuto,"onUpdate:onlyCsvOnAuto":Cn[29]||(Cn[29]=ri=>Bn.onlyCsvOnAuto=ri)},null,8,["language-code","translate-apis","languages","translate-api","tag-complete-file","only-csv-on-auto"]),createVNode(Un,{ref:"promptFormat","language-code":Bn.languageCode,"onUpdate:languageCode":Cn[30]||(Cn[30]=ri=>Bn.languageCode=ri),"translate-apis":Bn.translateApis,languages:Bn.languages,"auto-remove-space":Bn.autoRemoveSpace,"onUpdate:autoRemoveSpace":Cn[31]||(Cn[31]=ri=>Bn.autoRemoveSpace=ri),"auto-remove-last-comma":Bn.autoRemoveLastComma,"onUpdate:autoRemoveLastComma":Cn[32]||(Cn[32]=ri=>Bn.autoRemoveLastComma=ri),"auto-keep-weight-zero":Bn.autoKeepWeightZero,"onUpdate:autoKeepWeightZero":Cn[33]||(Cn[33]=ri=>Bn.autoKeepWeightZero=ri),"auto-keep-weight-one":Bn.autoKeepWeightOne,"onUpdate:autoKeepWeightOne":Cn[34]||(Cn[34]=ri=>Bn.autoKeepWeightOne=ri),"auto-break-before-wrap":Bn.autoBreakBeforeWrap,"onUpdate:autoBreakBeforeWrap":Cn[35]||(Cn[35]=ri=>Bn.autoBreakBeforeWrap=ri),"auto-break-after-wrap":Bn.autoBreakAfterWrap,"onUpdate:autoBreakAfterWrap":Cn[36]||(Cn[36]=ri=>Bn.autoBreakAfterWrap=ri),"auto-remove-lora-before-comma":Bn.autoRemoveLoraBeforeComma,"onUpdate:autoRemoveLoraBeforeComma":Cn[37]||(Cn[37]=ri=>Bn.autoRemoveLoraBeforeComma=ri),"auto-remove-lora-after-comma":Bn.autoRemoveLoraAfterComma,"onUpdate:autoRemoveLoraAfterComma":Cn[38]||(Cn[38]=ri=>Bn.autoRemoveLoraAfterComma=ri)},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","auto-remove-lora-before-comma","auto-remove-lora-after-comma"]),createVNode(Hn,{ref:"blacklist","language-code":Bn.languageCode,"onUpdate:languageCode":Cn[39]||(Cn[39]=ri=>Bn.languageCode=ri),"translate-apis":Bn.translateApis,languages:Bn.languages,"onUpdate:blacklist":Ln.onUpdateBlacklist},null,8,["language-code","translate-apis","languages","onUpdate:blacklist"]),createVNode(Xn,{ref:"hotkey","language-code":Bn.languageCode,"onUpdate:languageCode":Cn[40]||(Cn[40]=ri=>Bn.languageCode=ri),"translate-apis":Bn.translateApis,languages:Bn.languages,"default-hotkey":Bn.hotkey,"onUpdate:hotkey":Ln.onUpdateHotkey},null,8,["language-code","translate-apis","languages","default-hotkey","onUpdate:hotkey"]),createVNode(Gn,{ref:"history","language-code":Bn.languageCode,"onUpdate:languageCode":Cn[41]||(Cn[41]=ri=>Bn.languageCode=ri),"translate-apis":Bn.translateApis,languages:Bn.languages,"tag-complete-file":Bn.tagCompleteFile,"onUpdate:tagCompleteFile":Cn[42]||(Cn[42]=ri=>Bn.tagCompleteFile=ri),"only-csv-on-auto":Bn.onlyCsvOnAuto,"onUpdate:onlyCsvOnAuto":Cn[43]||(Cn[43]=ri=>Bn.onlyCsvOnAuto=ri),onRefreshFavorites:Ln.onRefreshFavorites,onUse:Ln.onUseHistory},null,8,["language-code","translate-apis","languages","tag-complete-file","only-csv-on-auto","onRefreshFavorites","onUse"]),createVNode(ei,{ref:"favorite","language-code":Bn.languageCode,"onUpdate:languageCode":Cn[44]||(Cn[44]=ri=>Bn.languageCode=ri),"translate-apis":Bn.translateApis,languages:Bn.languages,"tag-complete-file":Bn.tagCompleteFile,"onUpdate:tagCompleteFile":Cn[45]||(Cn[45]=ri=>Bn.tagCompleteFile=ri),"only-csv-on-auto":Bn.onlyCsvOnAuto,"onUpdate:onlyCsvOnAuto":Cn[46]||(Cn[46]=ri=>Bn.onlyCsvOnAuto=ri),onUse:Ln.onUseFavorite},null,8,["language-code","translate-apis","languages","tag-complete-file","only-csv-on-auto","onUse"]),createVNode(nr,{ref:"extensionCss","language-code":Bn.languageCode,"onUpdate:languageCode":Cn[47]||(Cn[47]=ri=>Bn.languageCode=ri),"translate-apis":Bn.translateApis,languages:Bn.languages},null,8,["language-code","translate-apis","languages"]),createVNode(ni,{ref:"packagesState","language-code":Bn.languageCode,"onUpdate:languageCode":Cn[48]||(Cn[48]=ri=>Bn.languageCode=ri),"translate-apis":Bn.translateApis,languages:Bn.languages,"onClick:selectLanguage":Ln.onSelectLanguageClick,"packages-state":Bn.packagesState,python:Bn.python},null,8,["language-code","translate-apis","languages","onClick:selectLanguage","packages-state","python"]),createVNode(ai,{ref:"chatgptPrompt","language-code":Bn.languageCode,"onUpdate:languageCode":Cn[49]||(Cn[49]=ri=>Bn.languageCode=ri),"translate-apis":Bn.translateApis,languages:Bn.languages,onUse:Ln.onUseChatgpt},null,8,["language-code","translate-apis","languages","onUse"]),createVNode(si,{ref:"about","language-code":Bn.languageCode,"onUpdate:languageCode":Cn[50]||(Cn[50]=ri=>Bn.languageCode=ri),"translate-apis":Bn.translateApis,languages:Bn.languages},null,8,["language-code","translate-apis","languages"]),createVNode(gi,{ref:"extraNetworksPopup","language-code":Bn.languageCode,"onUpdate:languageCode":Cn[51]||(Cn[51]=ri=>Bn.languageCode=ri),"translate-apis":Bn.translateApis,languages:Bn.languages,"extra-networks":Bn.extraNetworks},null,8,["language-code","translate-apis","languages","extra-networks"]),Bn.showPastePopup?(openBlock(),createElementBlock("div",{key:0,class:"physton-paste-popup",onClick:Cn[56]||(Cn[56]=(...ri)=>Ln.closePastePopup&&Ln.closePastePopup(...ri))},[createBaseVNode("div",{class:"paste-popup-main",onClick:Cn[55]||(Cn[55]=withModifiers(()=>{},["stop"]))},[createBaseVNode("div",{class:"paste-popup-close",onClick:Cn[52]||(Cn[52]=(...ri)=>Ln.closePastePopup&&Ln.closePastePopup(...ri))},[createVNode(Si,{name:"close"})]),createBaseVNode("div",_hoisted_1,toDisplayString(Bn.pasteTitle),1),createBaseVNode("div",_hoisted_2,[withDirectives(createBaseVNode("textarea",{class:"paste-content","onUpdate:modelValue":Cn[53]||(Cn[53]=ri=>Bn.pasteContent=ri),placeholder:Ln.getLang("please_enter_the_content_here")},null,8,_hoisted_3),[[vModelText,Bn.pasteContent]]),Bn.pasteLoading?(openBlock(),createElementBlock("div",_hoisted_4,[createVNode(Si,{name:"loading"})])):(openBlock(),createElementBlock("div",{key:0,class:"paste-submit",onClick:Cn[54]||(Cn[54]=(...ri)=>Ln.onClickPasteSubmit&&Ln.onClickPasteSubmit(...ri))},"Submit"))])])])):createCommentVNode("",!0)])}const App=_export_sfc(_sfc_main,[["render",_sfc_render]]);var toastr$1={exports:{}},jquery={exports:{}};/*!
|
||
* jQuery JavaScript Library v3.7.1
|
||
* https://jquery.com/
|
||
*
|
||
* Copyright OpenJS Foundation and other contributors
|
||
* Released under the MIT license
|
||
* https://jquery.org/license
|
||
*
|
||
* Date: 2023-08-28T13:37Z
|
||
*/var hasRequiredJquery;function requireJquery(){return hasRequiredJquery||(hasRequiredJquery=1,function(_n){(function(Cn,$n){_n.exports=Cn.document?$n(Cn,!0):function(Nn){if(!Nn.document)throw new Error("jQuery requires a window with a document");return $n(Nn)}})(typeof window<"u"?window:commonjsGlobal,function(Cn,$n){var Nn=[],Bn=Object.getPrototypeOf,Ln=Nn.slice,In=Nn.flat?function(Rn){return Nn.flat.call(Rn)}:function(Rn){return Nn.concat.apply([],Rn)},Pn=Nn.push,Dn=Nn.indexOf,Un={},Hn=Un.toString,Xn=Un.hasOwnProperty,Gn=Xn.toString,ei=Gn.call(Object),nr={},ni=function(Fn){return typeof Fn=="function"&&typeof Fn.nodeType!="number"&&typeof Fn.item!="function"},ai=function(Fn){return Fn!=null&&Fn===Fn.window},si=Cn.document,gi={type:!0,src:!0,nonce:!0,noModule:!0};function Si(Rn,Fn,Wn){Wn=Wn||si;var Yn,rr,ti=Wn.createElement("script");if(ti.text=Rn,Fn)for(Yn in gi)rr=Fn[Yn]||Fn.getAttribute&&Fn.getAttribute(Yn),rr&&ti.setAttribute(Yn,rr);Wn.head.appendChild(ti).parentNode.removeChild(ti)}function ri(Rn){return Rn==null?Rn+"":typeof Rn=="object"||typeof Rn=="function"?Un[Hn.call(Rn)]||"object":typeof Rn}var Ei="3.7.1",$i=/HTML$/i,zn=function(Rn,Fn){return new zn.fn.init(Rn,Fn)};zn.fn=zn.prototype={jquery:Ei,constructor:zn,length:0,toArray:function(){return Ln.call(this)},get:function(Rn){return Rn==null?Ln.call(this):Rn<0?this[Rn+this.length]:this[Rn]},pushStack:function(Rn){var Fn=zn.merge(this.constructor(),Rn);return Fn.prevObject=this,Fn},each:function(Rn){return zn.each(this,Rn)},map:function(Rn){return this.pushStack(zn.map(this,function(Fn,Wn){return Rn.call(Fn,Wn,Fn)}))},slice:function(){return this.pushStack(Ln.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(zn.grep(this,function(Rn,Fn){return(Fn+1)%2}))},odd:function(){return this.pushStack(zn.grep(this,function(Rn,Fn){return Fn%2}))},eq:function(Rn){var Fn=this.length,Wn=+Rn+(Rn<0?Fn:0);return this.pushStack(Wn>=0&&Wn<Fn?[this[Wn]]:[])},end:function(){return this.prevObject||this.constructor()},push:Pn,sort:Nn.sort,splice:Nn.splice},zn.extend=zn.fn.extend=function(){var Rn,Fn,Wn,Yn,rr,ti,ii=arguments[0]||{},pi=1,fi=arguments.length,bi=!1;for(typeof ii=="boolean"&&(bi=ii,ii=arguments[pi]||{},pi++),typeof ii!="object"&&!ni(ii)&&(ii={}),pi===fi&&(ii=this,pi--);pi<fi;pi++)if((Rn=arguments[pi])!=null)for(Fn in Rn)Yn=Rn[Fn],!(Fn==="__proto__"||ii===Yn)&&(bi&&Yn&&(zn.isPlainObject(Yn)||(rr=Array.isArray(Yn)))?(Wn=ii[Fn],rr&&!Array.isArray(Wn)?ti=[]:!rr&&!zn.isPlainObject(Wn)?ti={}:ti=Wn,rr=!1,ii[Fn]=zn.extend(bi,ti,Yn)):Yn!==void 0&&(ii[Fn]=Yn));return ii},zn.extend({expando:"jQuery"+(Ei+Math.random()).replace(/\D/g,""),isReady:!0,error:function(Rn){throw new Error(Rn)},noop:function(){},isPlainObject:function(Rn){var Fn,Wn;return!Rn||Hn.call(Rn)!=="[object Object]"?!1:(Fn=Bn(Rn),Fn?(Wn=Xn.call(Fn,"constructor")&&Fn.constructor,typeof Wn=="function"&&Gn.call(Wn)===ei):!0)},isEmptyObject:function(Rn){var Fn;for(Fn in Rn)return!1;return!0},globalEval:function(Rn,Fn,Wn){Si(Rn,{nonce:Fn&&Fn.nonce},Wn)},each:function(Rn,Fn){var Wn,Yn=0;if(li(Rn))for(Wn=Rn.length;Yn<Wn&&Fn.call(Rn[Yn],Yn,Rn[Yn])!==!1;Yn++);else for(Yn in Rn)if(Fn.call(Rn[Yn],Yn,Rn[Yn])===!1)break;return Rn},text:function(Rn){var Fn,Wn="",Yn=0,rr=Rn.nodeType;if(!rr)for(;Fn=Rn[Yn++];)Wn+=zn.text(Fn);return rr===1||rr===11?Rn.textContent:rr===9?Rn.documentElement.textContent:rr===3||rr===4?Rn.nodeValue:Wn},makeArray:function(Rn,Fn){var Wn=Fn||[];return Rn!=null&&(li(Object(Rn))?zn.merge(Wn,typeof Rn=="string"?[Rn]:Rn):Pn.call(Wn,Rn)),Wn},inArray:function(Rn,Fn,Wn){return Fn==null?-1:Dn.call(Fn,Rn,Wn)},isXMLDoc:function(Rn){var Fn=Rn&&Rn.namespaceURI,Wn=Rn&&(Rn.ownerDocument||Rn).documentElement;return!$i.test(Fn||Wn&&Wn.nodeName||"HTML")},merge:function(Rn,Fn){for(var Wn=+Fn.length,Yn=0,rr=Rn.length;Yn<Wn;Yn++)Rn[rr++]=Fn[Yn];return Rn.length=rr,Rn},grep:function(Rn,Fn,Wn){for(var Yn,rr=[],ti=0,ii=Rn.length,pi=!Wn;ti<ii;ti++)Yn=!Fn(Rn[ti],ti),Yn!==pi&&rr.push(Rn[ti]);return rr},map:function(Rn,Fn,Wn){var Yn,rr,ti=0,ii=[];if(li(Rn))for(Yn=Rn.length;ti<Yn;ti++)rr=Fn(Rn[ti],ti,Wn),rr!=null&&ii.push(rr);else for(ti in Rn)rr=Fn(Rn[ti],ti,Wn),rr!=null&&ii.push(rr);return In(ii)},guid:1,support:nr}),typeof Symbol=="function"&&(zn.fn[Symbol.iterator]=Nn[Symbol.iterator]),zn.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(Rn,Fn){Un["[object "+Fn+"]"]=Fn.toLowerCase()});function li(Rn){var Fn=!!Rn&&"length"in Rn&&Rn.length,Wn=ri(Rn);return ni(Rn)||ai(Rn)?!1:Wn==="array"||Fn===0||typeof Fn=="number"&&Fn>0&&Fn-1 in Rn}function oi(Rn,Fn){return Rn.nodeName&&Rn.nodeName.toLowerCase()===Fn.toLowerCase()}var ui=Nn.pop,mi=Nn.sort,_i=Nn.splice,yi="[\\x20\\t\\r\\n\\f]",Fi=new RegExp("^"+yi+"+|((?:^|[^\\\\])(?:\\\\.)*)"+yi+"+$","g");zn.contains=function(Rn,Fn){var Wn=Fn&&Fn.parentNode;return Rn===Wn||!!(Wn&&Wn.nodeType===1&&(Rn.contains?Rn.contains(Wn):Rn.compareDocumentPosition&&Rn.compareDocumentPosition(Wn)&16))};var ta=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function qo(Rn,Fn){return Fn?Rn==="\0"?"<22>":Rn.slice(0,-1)+"\\"+Rn.charCodeAt(Rn.length-1).toString(16)+" ":"\\"+Rn}zn.escapeSelector=function(Rn){return(Rn+"").replace(ta,qo)};var Ci=si,Ri=Pn;(function(){var Rn,Fn,Wn,Yn,rr,ti=Ri,ii,pi,fi,bi,Oi,Mi=zn.expando,Ti=0,qi=0,ca=As(),_a=As(),pa=As(),Ia=As(),Ba=function(ci,vi){return ci===vi&&(rr=!0),0},za="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",qa="(?:\\\\[\\da-fA-F]{1,6}"+yi+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",ba="\\["+yi+"*("+qa+")(?:"+yi+"*([*^$|!~]?=)"+yi+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+qa+"))|)"+yi+"*\\]",as=":("+qa+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+ba+")*)|.*)\\)|)",Ea=new RegExp(yi+"+","g"),Aa=new RegExp("^"+yi+"*,"+yi+"*"),Cs=new RegExp("^"+yi+"*([>+~]|"+yi+")"+yi+"*"),Ks=new RegExp(yi+"|>"),Ga=new RegExp(as),Es=new RegExp("^"+qa+"$"),Ya={ID:new RegExp("^#("+qa+")"),CLASS:new RegExp("^\\.("+qa+")"),TAG:new RegExp("^("+qa+"|[*])"),ATTR:new RegExp("^"+ba),PSEUDO:new RegExp("^"+as),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+yi+"*(even|odd|(([+-]|)(\\d*)n|)"+yi+"*(?:([+-]|)"+yi+"*(\\d+)|))"+yi+"*\\)|)","i"),bool:new RegExp("^(?:"+za+")$","i"),needsContext:new RegExp("^"+yi+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+yi+"*((?:-\\d)?\\d*)"+yi+"*\\)|)(?=[^-]|$)","i")},es=/^(?:input|select|textarea|button)$/i,ts=/^h\d$/i,Ha=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,zs=/[+~]/,Ja=new RegExp("\\\\[\\da-fA-F]{1,6}"+yi+"?|\\\\([^\\r\\n\\f])","g"),Qa=function(ci,vi){var ki="0x"+ci.slice(1)-65536;return vi||(ki<0?String.fromCharCode(ki+65536):String.fromCharCode(ki>>10|55296,ki&1023|56320))},oc=function(){ns()},ac=Ns(function(ci){return ci.disabled===!0&&oi(ci,"fieldset")},{dir:"parentNode",next:"legend"});function sc(){try{return ii.activeElement}catch{}}try{ti.apply(Nn=Ln.call(Ci.childNodes),Ci.childNodes),Nn[Ci.childNodes.length].nodeType}catch{ti={apply:function(vi,ki){Ri.apply(vi,Ln.call(ki))},call:function(vi){Ri.apply(vi,Ln.call(arguments,1))}}}function ka(ci,vi,ki,Ai){var Di,Qi,Xo,na,Jo,ma,oa,ua=vi&&vi.ownerDocument,va=vi?vi.nodeType:9;if(ki=ki||[],typeof ci!="string"||!ci||va!==1&&va!==9&&va!==11)return ki;if(!Ai&&(ns(vi),vi=vi||ii,fi)){if(va!==11&&(Jo=Ha.exec(ci)))if(Di=Jo[1]){if(va===9)if(Xo=vi.getElementById(Di)){if(Xo.id===Di)return ti.call(ki,Xo),ki}else return ki;else if(ua&&(Xo=ua.getElementById(Di))&&ka.contains(vi,Xo)&&Xo.id===Di)return ti.call(ki,Xo),ki}else{if(Jo[2])return ti.apply(ki,vi.getElementsByTagName(ci)),ki;if((Di=Jo[3])&&vi.getElementsByClassName)return ti.apply(ki,vi.getElementsByClassName(Di)),ki}if(!Ia[ci+" "]&&(!bi||!bi.test(ci))){if(oa=ci,ua=vi,va===1&&(Ks.test(ci)||Cs.test(ci))){for(ua=zs.test(ci)&&qs(vi.parentNode)||vi,(ua!=vi||!nr.scope)&&((na=vi.getAttribute("id"))?na=zn.escapeSelector(na):vi.setAttribute("id",na=Mi)),ma=ks(ci),Qi=ma.length;Qi--;)ma[Qi]=(na?"#"+na:":scope")+" "+$s(ma[Qi]);oa=ma.join(",")}try{return ti.apply(ki,ua.querySelectorAll(oa)),ki}catch{Ia(ci,!0)}finally{na===Mi&&vi.removeAttribute("id")}}}return Tl(ci.replace(Fi,"$1"),vi,ki,Ai)}function As(){var ci=[];function vi(ki,Ai){return ci.push(ki+" ")>Fn.cacheLength&&delete vi[ci.shift()],vi[ki+" "]=Ai}return vi}function Wa(ci){return ci[Mi]=!0,ci}function ps(ci){var vi=ii.createElement("fieldset");try{return!!ci(vi)}catch{return!1}finally{vi.parentNode&&vi.parentNode.removeChild(vi),vi=null}}function lc(ci){return function(vi){return oi(vi,"input")&&vi.type===ci}}function cc(ci){return function(vi){return(oi(vi,"input")||oi(vi,"button"))&&vi.type===ci}}function El(ci){return function(vi){return"form"in vi?vi.parentNode&&vi.disabled===!1?"label"in vi?"label"in vi.parentNode?vi.parentNode.disabled===ci:vi.disabled===ci:vi.isDisabled===ci||vi.isDisabled!==!ci&&ac(vi)===ci:vi.disabled===ci:"label"in vi?vi.disabled===ci:!1}}function ss(ci){return Wa(function(vi){return vi=+vi,Wa(function(ki,Ai){for(var Di,Qi=ci([],ki.length,vi),Xo=Qi.length;Xo--;)ki[Di=Qi[Xo]]&&(ki[Di]=!(Ai[Di]=ki[Di]))})})}function qs(ci){return ci&&typeof ci.getElementsByTagName<"u"&&ci}function ns(ci){var vi,ki=ci?ci.ownerDocument||ci:Ci;return ki==ii||ki.nodeType!==9||!ki.documentElement||(ii=ki,pi=ii.documentElement,fi=!zn.isXMLDoc(ii),Oi=pi.matches||pi.webkitMatchesSelector||pi.msMatchesSelector,pi.msMatchesSelector&&Ci!=ii&&(vi=ii.defaultView)&&vi.top!==vi&&vi.addEventListener("unload",oc),nr.getById=ps(function(Ai){return pi.appendChild(Ai).id=zn.expando,!ii.getElementsByName||!ii.getElementsByName(zn.expando).length}),nr.disconnectedMatch=ps(function(Ai){return Oi.call(Ai,"*")}),nr.scope=ps(function(){return ii.querySelectorAll(":scope")}),nr.cssHas=ps(function(){try{return ii.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),nr.getById?(Fn.filter.ID=function(Ai){var Di=Ai.replace(Ja,Qa);return function(Qi){return Qi.getAttribute("id")===Di}},Fn.find.ID=function(Ai,Di){if(typeof Di.getElementById<"u"&&fi){var Qi=Di.getElementById(Ai);return Qi?[Qi]:[]}}):(Fn.filter.ID=function(Ai){var Di=Ai.replace(Ja,Qa);return function(Qi){var Xo=typeof Qi.getAttributeNode<"u"&&Qi.getAttributeNode("id");return Xo&&Xo.value===Di}},Fn.find.ID=function(Ai,Di){if(typeof Di.getElementById<"u"&&fi){var Qi,Xo,na,Jo=Di.getElementById(Ai);if(Jo){if(Qi=Jo.getAttributeNode("id"),Qi&&Qi.value===Ai)return[Jo];for(na=Di.getElementsByName(Ai),Xo=0;Jo=na[Xo++];)if(Qi=Jo.getAttributeNode("id"),Qi&&Qi.value===Ai)return[Jo]}return[]}}),Fn.find.TAG=function(Ai,Di){return typeof Di.getElementsByTagName<"u"?Di.getElementsByTagName(Ai):Di.querySelectorAll(Ai)},Fn.find.CLASS=function(Ai,Di){if(typeof Di.getElementsByClassName<"u"&&fi)return Di.getElementsByClassName(Ai)},bi=[],ps(function(Ai){var Di;pi.appendChild(Ai).innerHTML="<a id='"+Mi+"' href='' disabled='disabled'></a><select id='"+Mi+"-\r\\' disabled='disabled'><option selected=''></option></select>",Ai.querySelectorAll("[selected]").length||bi.push("\\["+yi+"*(?:value|"+za+")"),Ai.querySelectorAll("[id~="+Mi+"-]").length||bi.push("~="),Ai.querySelectorAll("a#"+Mi+"+*").length||bi.push(".#.+[+~]"),Ai.querySelectorAll(":checked").length||bi.push(":checked"),Di=ii.createElement("input"),Di.setAttribute("type","hidden"),Ai.appendChild(Di).setAttribute("name","D"),pi.appendChild(Ai).disabled=!0,Ai.querySelectorAll(":disabled").length!==2&&bi.push(":enabled",":disabled"),Di=ii.createElement("input"),Di.setAttribute("name",""),Ai.appendChild(Di),Ai.querySelectorAll("[name='']").length||bi.push("\\["+yi+"*name"+yi+"*="+yi+`*(?:''|"")`)}),nr.cssHas||bi.push(":has"),bi=bi.length&&new RegExp(bi.join("|")),Ba=function(Ai,Di){if(Ai===Di)return rr=!0,0;var Qi=!Ai.compareDocumentPosition-!Di.compareDocumentPosition;return Qi||(Qi=(Ai.ownerDocument||Ai)==(Di.ownerDocument||Di)?Ai.compareDocumentPosition(Di):1,Qi&1||!nr.sortDetached&&Di.compareDocumentPosition(Ai)===Qi?Ai===ii||Ai.ownerDocument==Ci&&ka.contains(Ci,Ai)?-1:Di===ii||Di.ownerDocument==Ci&&ka.contains(Ci,Di)?1:Yn?Dn.call(Yn,Ai)-Dn.call(Yn,Di):0:Qi&4?-1:1)}),ii}ka.matches=function(ci,vi){return ka(ci,null,null,vi)},ka.matchesSelector=function(ci,vi){if(ns(ci),fi&&!Ia[vi+" "]&&(!bi||!bi.test(vi)))try{var ki=Oi.call(ci,vi);if(ki||nr.disconnectedMatch||ci.document&&ci.document.nodeType!==11)return ki}catch{Ia(vi,!0)}return ka(vi,ii,null,[ci]).length>0},ka.contains=function(ci,vi){return(ci.ownerDocument||ci)!=ii&&ns(ci),zn.contains(ci,vi)},ka.attr=function(ci,vi){(ci.ownerDocument||ci)!=ii&&ns(ci);var ki=Fn.attrHandle[vi.toLowerCase()],Ai=ki&&Xn.call(Fn.attrHandle,vi.toLowerCase())?ki(ci,vi,!fi):void 0;return Ai!==void 0?Ai:ci.getAttribute(vi)},ka.error=function(ci){throw new Error("Syntax error, unrecognized expression: "+ci)},zn.uniqueSort=function(ci){var vi,ki=[],Ai=0,Di=0;if(rr=!nr.sortStable,Yn=!nr.sortStable&&Ln.call(ci,0),mi.call(ci,Ba),rr){for(;vi=ci[Di++];)vi===ci[Di]&&(Ai=ki.push(Di));for(;Ai--;)_i.call(ci,ki[Ai],1)}return Yn=null,ci},zn.fn.uniqueSort=function(){return this.pushStack(zn.uniqueSort(Ln.apply(this)))},Fn=zn.expr={cacheLength:50,createPseudo:Wa,match:Ya,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(ci){return ci[1]=ci[1].replace(Ja,Qa),ci[3]=(ci[3]||ci[4]||ci[5]||"").replace(Ja,Qa),ci[2]==="~="&&(ci[3]=" "+ci[3]+" "),ci.slice(0,4)},CHILD:function(ci){return ci[1]=ci[1].toLowerCase(),ci[1].slice(0,3)==="nth"?(ci[3]||ka.error(ci[0]),ci[4]=+(ci[4]?ci[5]+(ci[6]||1):2*(ci[3]==="even"||ci[3]==="odd")),ci[5]=+(ci[7]+ci[8]||ci[3]==="odd")):ci[3]&&ka.error(ci[0]),ci},PSEUDO:function(ci){var vi,ki=!ci[6]&&ci[2];return Ya.CHILD.test(ci[0])?null:(ci[3]?ci[2]=ci[4]||ci[5]||"":ki&&Ga.test(ki)&&(vi=ks(ki,!0))&&(vi=ki.indexOf(")",ki.length-vi)-ki.length)&&(ci[0]=ci[0].slice(0,vi),ci[2]=ki.slice(0,vi)),ci.slice(0,3))}},filter:{TAG:function(ci){var vi=ci.replace(Ja,Qa).toLowerCase();return ci==="*"?function(){return!0}:function(ki){return oi(ki,vi)}},CLASS:function(ci){var vi=ca[ci+" "];return vi||(vi=new RegExp("(^|"+yi+")"+ci+"("+yi+"|$)"))&&ca(ci,function(ki){return vi.test(typeof ki.className=="string"&&ki.className||typeof ki.getAttribute<"u"&&ki.getAttribute("class")||"")})},ATTR:function(ci,vi,ki){return function(Ai){var Di=ka.attr(Ai,ci);return Di==null?vi==="!=":vi?(Di+="",vi==="="?Di===ki:vi==="!="?Di!==ki:vi==="^="?ki&&Di.indexOf(ki)===0:vi==="*="?ki&&Di.indexOf(ki)>-1:vi==="$="?ki&&Di.slice(-ki.length)===ki:vi==="~="?(" "+Di.replace(Ea," ")+" ").indexOf(ki)>-1:vi==="|="?Di===ki||Di.slice(0,ki.length+1)===ki+"-":!1):!0}},CHILD:function(ci,vi,ki,Ai,Di){var Qi=ci.slice(0,3)!=="nth",Xo=ci.slice(-4)!=="last",na=vi==="of-type";return Ai===1&&Di===0?function(Jo){return!!Jo.parentNode}:function(Jo,ma,oa){var ua,va,ia,Ta,Va,Pa=Qi!==Xo?"nextSibling":"previousSibling",ja=Jo.parentNode,Xa=na&&Jo.nodeName.toLowerCase(),hs=!oa&&!na,Ra=!1;if(ja){if(Qi){for(;Pa;){for(ia=Jo;ia=ia[Pa];)if(na?oi(ia,Xa):ia.nodeType===1)return!1;Va=Pa=ci==="only"&&!Va&&"nextSibling"}return!0}if(Va=[Xo?ja.firstChild:ja.lastChild],Xo&&hs){for(va=ja[Mi]||(ja[Mi]={}),ua=va[ci]||[],Ta=ua[0]===Ti&&ua[1],Ra=Ta&&ua[2],ia=Ta&&ja.childNodes[Ta];ia=++Ta&&ia&&ia[Pa]||(Ra=Ta=0)||Va.pop();)if(ia.nodeType===1&&++Ra&&ia===Jo){va[ci]=[Ti,Ta,Ra];break}}else if(hs&&(va=Jo[Mi]||(Jo[Mi]={}),ua=va[ci]||[],Ta=ua[0]===Ti&&ua[1],Ra=Ta),Ra===!1)for(;(ia=++Ta&&ia&&ia[Pa]||(Ra=Ta=0)||Va.pop())&&!((na?oi(ia,Xa):ia.nodeType===1)&&++Ra&&(hs&&(va=ia[Mi]||(ia[Mi]={}),va[ci]=[Ti,Ra]),ia===Jo)););return Ra-=Di,Ra===Ai||Ra%Ai===0&&Ra/Ai>=0}}},PSEUDO:function(ci,vi){var ki,Ai=Fn.pseudos[ci]||Fn.setFilters[ci.toLowerCase()]||ka.error("unsupported pseudo: "+ci);return Ai[Mi]?Ai(vi):Ai.length>1?(ki=[ci,ci,"",vi],Fn.setFilters.hasOwnProperty(ci.toLowerCase())?Wa(function(Di,Qi){for(var Xo,na=Ai(Di,vi),Jo=na.length;Jo--;)Xo=Dn.call(Di,na[Jo]),Di[Xo]=!(Qi[Xo]=na[Jo])}):function(Di){return Ai(Di,0,ki)}):Ai}},pseudos:{not:Wa(function(ci){var vi=[],ki=[],Ai=Js(ci.replace(Fi,"$1"));return Ai[Mi]?Wa(function(Di,Qi,Xo,na){for(var Jo,ma=Ai(Di,null,na,[]),oa=Di.length;oa--;)(Jo=ma[oa])&&(Di[oa]=!(Qi[oa]=Jo))}):function(Di,Qi,Xo){return vi[0]=Di,Ai(vi,null,Xo,ki),vi[0]=null,!ki.pop()}}),has:Wa(function(ci){return function(vi){return ka(ci,vi).length>0}}),contains:Wa(function(ci){return ci=ci.replace(Ja,Qa),function(vi){return(vi.textContent||zn.text(vi)).indexOf(ci)>-1}}),lang:Wa(function(ci){return Es.test(ci||"")||ka.error("unsupported lang: "+ci),ci=ci.replace(Ja,Qa).toLowerCase(),function(vi){var ki;do if(ki=fi?vi.lang:vi.getAttribute("xml:lang")||vi.getAttribute("lang"))return ki=ki.toLowerCase(),ki===ci||ki.indexOf(ci+"-")===0;while((vi=vi.parentNode)&&vi.nodeType===1);return!1}}),target:function(ci){var vi=Cn.location&&Cn.location.hash;return vi&&vi.slice(1)===ci.id},root:function(ci){return ci===pi},focus:function(ci){return ci===sc()&&ii.hasFocus()&&!!(ci.type||ci.href||~ci.tabIndex)},enabled:El(!1),disabled:El(!0),checked:function(ci){return oi(ci,"input")&&!!ci.checked||oi(ci,"option")&&!!ci.selected},selected:function(ci){return ci.parentNode&&ci.parentNode.selectedIndex,ci.selected===!0},empty:function(ci){for(ci=ci.firstChild;ci;ci=ci.nextSibling)if(ci.nodeType<6)return!1;return!0},parent:function(ci){return!Fn.pseudos.empty(ci)},header:function(ci){return ts.test(ci.nodeName)},input:function(ci){return es.test(ci.nodeName)},button:function(ci){return oi(ci,"input")&&ci.type==="button"||oi(ci,"button")},text:function(ci){var vi;return oi(ci,"input")&&ci.type==="text"&&((vi=ci.getAttribute("type"))==null||vi.toLowerCase()==="text")},first:ss(function(){return[0]}),last:ss(function(ci,vi){return[vi-1]}),eq:ss(function(ci,vi,ki){return[ki<0?ki+vi:ki]}),even:ss(function(ci,vi){for(var ki=0;ki<vi;ki+=2)ci.push(ki);return ci}),odd:ss(function(ci,vi){for(var ki=1;ki<vi;ki+=2)ci.push(ki);return ci}),lt:ss(function(ci,vi,ki){var Ai;for(ki<0?Ai=ki+vi:ki>vi?Ai=vi:Ai=ki;--Ai>=0;)ci.push(Ai);return ci}),gt:ss(function(ci,vi,ki){for(var Ai=ki<0?ki+vi:ki;++Ai<vi;)ci.push(Ai);return ci})}},Fn.pseudos.nth=Fn.pseudos.eq;for(Rn in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})Fn.pseudos[Rn]=lc(Rn);for(Rn in{submit:!0,reset:!0})Fn.pseudos[Rn]=cc(Rn);function kl(){}kl.prototype=Fn.filters=Fn.pseudos,Fn.setFilters=new kl;function ks(ci,vi){var ki,Ai,Di,Qi,Xo,na,Jo,ma=_a[ci+" "];if(ma)return vi?0:ma.slice(0);for(Xo=ci,na=[],Jo=Fn.preFilter;Xo;){(!ki||(Ai=Aa.exec(Xo)))&&(Ai&&(Xo=Xo.slice(Ai[0].length)||Xo),na.push(Di=[])),ki=!1,(Ai=Cs.exec(Xo))&&(ki=Ai.shift(),Di.push({value:ki,type:Ai[0].replace(Fi," ")}),Xo=Xo.slice(ki.length));for(Qi in Fn.filter)(Ai=Ya[Qi].exec(Xo))&&(!Jo[Qi]||(Ai=Jo[Qi](Ai)))&&(ki=Ai.shift(),Di.push({value:ki,type:Qi,matches:Ai}),Xo=Xo.slice(ki.length));if(!ki)break}return vi?Xo.length:Xo?ka.error(ci):_a(ci,na).slice(0)}function $s(ci){for(var vi=0,ki=ci.length,Ai="";vi<ki;vi++)Ai+=ci[vi].value;return Ai}function Ns(ci,vi,ki){var Ai=vi.dir,Di=vi.next,Qi=Di||Ai,Xo=ki&&Qi==="parentNode",na=qi++;return vi.first?function(Jo,ma,oa){for(;Jo=Jo[Ai];)if(Jo.nodeType===1||Xo)return ci(Jo,ma,oa);return!1}:function(Jo,ma,oa){var ua,va,ia=[Ti,na];if(oa){for(;Jo=Jo[Ai];)if((Jo.nodeType===1||Xo)&&ci(Jo,ma,oa))return!0}else for(;Jo=Jo[Ai];)if(Jo.nodeType===1||Xo)if(va=Jo[Mi]||(Jo[Mi]={}),Di&&oi(Jo,Di))Jo=Jo[Ai]||Jo;else{if((ua=va[Qi])&&ua[0]===Ti&&ua[1]===na)return ia[2]=ua[2];if(va[Qi]=ia,ia[2]=ci(Jo,ma,oa))return!0}return!1}}function Gs(ci){return ci.length>1?function(vi,ki,Ai){for(var Di=ci.length;Di--;)if(!ci[Di](vi,ki,Ai))return!1;return!0}:ci[0]}function uc(ci,vi,ki){for(var Ai=0,Di=vi.length;Ai<Di;Ai++)ka(ci,vi[Ai],ki);return ki}function Bs(ci,vi,ki,Ai,Di){for(var Qi,Xo=[],na=0,Jo=ci.length,ma=vi!=null;na<Jo;na++)(Qi=ci[na])&&(!ki||ki(Qi,Ai,Di))&&(Xo.push(Qi),ma&&vi.push(na));return Xo}function Ys(ci,vi,ki,Ai,Di,Qi){return Ai&&!Ai[Mi]&&(Ai=Ys(Ai)),Di&&!Di[Mi]&&(Di=Ys(Di,Qi)),Wa(function(Xo,na,Jo,ma){var oa,ua,va,ia,Ta=[],Va=[],Pa=na.length,ja=Xo||uc(vi||"*",Jo.nodeType?[Jo]:Jo,[]),Xa=ci&&(Xo||!vi)?Bs(ja,Ta,ci,Jo,ma):ja;if(ki?(ia=Di||(Xo?ci:Pa||Ai)?[]:na,ki(Xa,ia,Jo,ma)):ia=Xa,Ai)for(oa=Bs(ia,Va),Ai(oa,[],Jo,ma),ua=oa.length;ua--;)(va=oa[ua])&&(ia[Va[ua]]=!(Xa[Va[ua]]=va));if(Xo){if(Di||ci){if(Di){for(oa=[],ua=ia.length;ua--;)(va=ia[ua])&&oa.push(Xa[ua]=va);Di(null,ia=[],oa,ma)}for(ua=ia.length;ua--;)(va=ia[ua])&&(oa=Di?Dn.call(Xo,va):Ta[ua])>-1&&(Xo[oa]=!(na[oa]=va))}}else ia=Bs(ia===na?ia.splice(Pa,ia.length):ia),Di?Di(null,na,ia,ma):ti.apply(na,ia)})}function Xs(ci){for(var vi,ki,Ai,Di=ci.length,Qi=Fn.relative[ci[0].type],Xo=Qi||Fn.relative[" "],na=Qi?1:0,Jo=Ns(function(ua){return ua===vi},Xo,!0),ma=Ns(function(ua){return Dn.call(vi,ua)>-1},Xo,!0),oa=[function(ua,va,ia){var Ta=!Qi&&(ia||va!=Wn)||((vi=va).nodeType?Jo(ua,va,ia):ma(ua,va,ia));return vi=null,Ta}];na<Di;na++)if(ki=Fn.relative[ci[na].type])oa=[Ns(Gs(oa),ki)];else{if(ki=Fn.filter[ci[na].type].apply(null,ci[na].matches),ki[Mi]){for(Ai=++na;Ai<Di&&!Fn.relative[ci[Ai].type];Ai++);return Ys(na>1&&Gs(oa),na>1&&$s(ci.slice(0,na-1).concat({value:ci[na-2].type===" "?"*":""})).replace(Fi,"$1"),ki,na<Ai&&Xs(ci.slice(na,Ai)),Ai<Di&&Xs(ci=ci.slice(Ai)),Ai<Di&&$s(ci))}oa.push(ki)}return Gs(oa)}function dc(ci,vi){var ki=vi.length>0,Ai=ci.length>0,Di=function(Qi,Xo,na,Jo,ma){var oa,ua,va,ia=0,Ta="0",Va=Qi&&[],Pa=[],ja=Wn,Xa=Qi||Ai&&Fn.find.TAG("*",ma),hs=Ti+=ja==null?1:Math.random()||.1,Ra=Xa.length;for(ma&&(Wn=Xo==ii||Xo||ma);Ta!==Ra&&(oa=Xa[Ta])!=null;Ta++){if(Ai&&oa){for(ua=0,!Xo&&oa.ownerDocument!=ii&&(ns(oa),na=!fi);va=ci[ua++];)if(va(oa,Xo||ii,na)){ti.call(Jo,oa);break}ma&&(Ti=hs)}ki&&((oa=!va&&oa)&&ia--,Qi&&Va.push(oa))}if(ia+=Ta,ki&&Ta!==ia){for(ua=0;va=vi[ua++];)va(Va,Pa,Xo,na);if(Qi){if(ia>0)for(;Ta--;)Va[Ta]||Pa[Ta]||(Pa[Ta]=ui.call(Jo));Pa=Bs(Pa)}ti.apply(Jo,Pa),ma&&!Qi&&Pa.length>0&&ia+vi.length>1&&zn.uniqueSort(Jo)}return ma&&(Ti=hs,Wn=ja),Va};return ki?Wa(Di):Di}function Js(ci,vi){var ki,Ai=[],Di=[],Qi=pa[ci+" "];if(!Qi){for(vi||(vi=ks(ci)),ki=vi.length;ki--;)Qi=Xs(vi[ki]),Qi[Mi]?Ai.push(Qi):Di.push(Qi);Qi=pa(ci,dc(Di,Ai)),Qi.selector=ci}return Qi}function Tl(ci,vi,ki,Ai){var Di,Qi,Xo,na,Jo,ma=typeof ci=="function"&&ci,oa=!Ai&&ks(ci=ma.selector||ci);if(ki=ki||[],oa.length===1){if(Qi=oa[0]=oa[0].slice(0),Qi.length>2&&(Xo=Qi[0]).type==="ID"&&vi.nodeType===9&&fi&&Fn.relative[Qi[1].type]){if(vi=(Fn.find.ID(Xo.matches[0].replace(Ja,Qa),vi)||[])[0],vi)ma&&(vi=vi.parentNode);else return ki;ci=ci.slice(Qi.shift().value.length)}for(Di=Ya.needsContext.test(ci)?0:Qi.length;Di--&&(Xo=Qi[Di],!Fn.relative[na=Xo.type]);)if((Jo=Fn.find[na])&&(Ai=Jo(Xo.matches[0].replace(Ja,Qa),zs.test(Qi[0].type)&&qs(vi.parentNode)||vi))){if(Qi.splice(Di,1),ci=Ai.length&&$s(Qi),!ci)return ti.apply(ki,Ai),ki;break}}return(ma||Js(ci,oa))(Ai,vi,!fi,ki,!vi||zs.test(ci)&&qs(vi.parentNode)||vi),ki}nr.sortStable=Mi.split("").sort(Ba).join("")===Mi,ns(),nr.sortDetached=ps(function(ci){return ci.compareDocumentPosition(ii.createElement("fieldset"))&1}),zn.find=ka,zn.expr[":"]=zn.expr.pseudos,zn.unique=zn.uniqueSort,ka.compile=Js,ka.select=Tl,ka.setDocument=ns,ka.tokenize=ks,ka.escape=zn.escapeSelector,ka.getText=zn.text,ka.isXML=zn.isXMLDoc,ka.selectors=zn.expr,ka.support=zn.support,ka.uniqueSort=zn.uniqueSort})();var Hi=function(Rn,Fn,Wn){for(var Yn=[],rr=Wn!==void 0;(Rn=Rn[Fn])&&Rn.nodeType!==9;)if(Rn.nodeType===1){if(rr&&zn(Rn).is(Wn))break;Yn.push(Rn)}return Yn},aa=function(Rn,Fn){for(var Wn=[];Rn;Rn=Rn.nextSibling)Rn.nodeType===1&&Rn!==Fn&&Wn.push(Rn);return Wn},sa=zn.expr.match.needsContext,Pi=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function Ki(Rn,Fn,Wn){return ni(Fn)?zn.grep(Rn,function(Yn,rr){return!!Fn.call(Yn,rr,Yn)!==Wn}):Fn.nodeType?zn.grep(Rn,function(Yn){return Yn===Fn!==Wn}):typeof Fn!="string"?zn.grep(Rn,function(Yn){return Dn.call(Fn,Yn)>-1!==Wn}):zn.filter(Fn,Rn,Wn)}zn.filter=function(Rn,Fn,Wn){var Yn=Fn[0];return Wn&&(Rn=":not("+Rn+")"),Fn.length===1&&Yn.nodeType===1?zn.find.matchesSelector(Yn,Rn)?[Yn]:[]:zn.find.matches(Rn,zn.grep(Fn,function(rr){return rr.nodeType===1}))},zn.fn.extend({find:function(Rn){var Fn,Wn,Yn=this.length,rr=this;if(typeof Rn!="string")return this.pushStack(zn(Rn).filter(function(){for(Fn=0;Fn<Yn;Fn++)if(zn.contains(rr[Fn],this))return!0}));for(Wn=this.pushStack([]),Fn=0;Fn<Yn;Fn++)zn.find(Rn,rr[Fn],Wn);return Yn>1?zn.uniqueSort(Wn):Wn},filter:function(Rn){return this.pushStack(Ki(this,Rn||[],!1))},not:function(Rn){return this.pushStack(Ki(this,Rn||[],!0))},is:function(Rn){return!!Ki(this,typeof Rn=="string"&&sa.test(Rn)?zn(Rn):Rn||[],!1).length}});var Yi,Ji=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,Zi=zn.fn.init=function(Rn,Fn,Wn){var Yn,rr;if(!Rn)return this;if(Wn=Wn||Yi,typeof Rn=="string")if(Rn[0]==="<"&&Rn[Rn.length-1]===">"&&Rn.length>=3?Yn=[null,Rn,null]:Yn=Ji.exec(Rn),Yn&&(Yn[1]||!Fn))if(Yn[1]){if(Fn=Fn instanceof zn?Fn[0]:Fn,zn.merge(this,zn.parseHTML(Yn[1],Fn&&Fn.nodeType?Fn.ownerDocument||Fn:si,!0)),Pi.test(Yn[1])&&zn.isPlainObject(Fn))for(Yn in Fn)ni(this[Yn])?this[Yn](Fn[Yn]):this.attr(Yn,Fn[Yn]);return this}else return rr=si.getElementById(Yn[2]),rr&&(this[0]=rr,this.length=1),this;else return!Fn||Fn.jquery?(Fn||Wn).find(Rn):this.constructor(Fn).find(Rn);else{if(Rn.nodeType)return this[0]=Rn,this.length=1,this;if(ni(Rn))return Wn.ready!==void 0?Wn.ready(Rn):Rn(zn)}return zn.makeArray(Rn,this)};Zi.prototype=zn.fn,Yi=zn(si);var Qo=/^(?:parents|prev(?:Until|All))/,la={children:!0,contents:!0,next:!0,prev:!0};zn.fn.extend({has:function(Rn){var Fn=zn(Rn,this),Wn=Fn.length;return this.filter(function(){for(var Yn=0;Yn<Wn;Yn++)if(zn.contains(this,Fn[Yn]))return!0})},closest:function(Rn,Fn){var Wn,Yn=0,rr=this.length,ti=[],ii=typeof Rn!="string"&&zn(Rn);if(!sa.test(Rn)){for(;Yn<rr;Yn++)for(Wn=this[Yn];Wn&&Wn!==Fn;Wn=Wn.parentNode)if(Wn.nodeType<11&&(ii?ii.index(Wn)>-1:Wn.nodeType===1&&zn.find.matchesSelector(Wn,Rn))){ti.push(Wn);break}}return this.pushStack(ti.length>1?zn.uniqueSort(ti):ti)},index:function(Rn){return Rn?typeof Rn=="string"?Dn.call(zn(Rn),this[0]):Dn.call(this,Rn.jquery?Rn[0]:Rn):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(Rn,Fn){return this.pushStack(zn.uniqueSort(zn.merge(this.get(),zn(Rn,Fn))))},addBack:function(Rn){return this.add(Rn==null?this.prevObject:this.prevObject.filter(Rn))}});function Go(Rn,Fn){for(;(Rn=Rn[Fn])&&Rn.nodeType!==1;);return Rn}zn.each({parent:function(Rn){var Fn=Rn.parentNode;return Fn&&Fn.nodeType!==11?Fn:null},parents:function(Rn){return Hi(Rn,"parentNode")},parentsUntil:function(Rn,Fn,Wn){return Hi(Rn,"parentNode",Wn)},next:function(Rn){return Go(Rn,"nextSibling")},prev:function(Rn){return Go(Rn,"previousSibling")},nextAll:function(Rn){return Hi(Rn,"nextSibling")},prevAll:function(Rn){return Hi(Rn,"previousSibling")},nextUntil:function(Rn,Fn,Wn){return Hi(Rn,"nextSibling",Wn)},prevUntil:function(Rn,Fn,Wn){return Hi(Rn,"previousSibling",Wn)},siblings:function(Rn){return aa((Rn.parentNode||{}).firstChild,Rn)},children:function(Rn){return aa(Rn.firstChild)},contents:function(Rn){return Rn.contentDocument!=null&&Bn(Rn.contentDocument)?Rn.contentDocument:(oi(Rn,"template")&&(Rn=Rn.content||Rn),zn.merge([],Rn.childNodes))}},function(Rn,Fn){zn.fn[Rn]=function(Wn,Yn){var rr=zn.map(this,Fn,Wn);return Rn.slice(-5)!=="Until"&&(Yn=Wn),Yn&&typeof Yn=="string"&&(rr=zn.filter(Yn,rr)),this.length>1&&(la[Rn]||zn.uniqueSort(rr),Qo.test(Rn)&&rr.reverse()),this.pushStack(rr)}});var ra=/[^\x20\t\r\n\f]+/g;function ha(Rn){var Fn={};return zn.each(Rn.match(ra)||[],function(Wn,Yn){Fn[Yn]=!0}),Fn}zn.Callbacks=function(Rn){Rn=typeof Rn=="string"?ha(Rn):zn.extend({},Rn);var Fn,Wn,Yn,rr,ti=[],ii=[],pi=-1,fi=function(){for(rr=rr||Rn.once,Yn=Fn=!0;ii.length;pi=-1)for(Wn=ii.shift();++pi<ti.length;)ti[pi].apply(Wn[0],Wn[1])===!1&&Rn.stopOnFalse&&(pi=ti.length,Wn=!1);Rn.memory||(Wn=!1),Fn=!1,rr&&(Wn?ti=[]:ti="")},bi={add:function(){return ti&&(Wn&&!Fn&&(pi=ti.length-1,ii.push(Wn)),function Oi(Mi){zn.each(Mi,function(Ti,qi){ni(qi)?(!Rn.unique||!bi.has(qi))&&ti.push(qi):qi&&qi.length&&ri(qi)!=="string"&&Oi(qi)})}(arguments),Wn&&!Fn&&fi()),this},remove:function(){return zn.each(arguments,function(Oi,Mi){for(var Ti;(Ti=zn.inArray(Mi,ti,Ti))>-1;)ti.splice(Ti,1),Ti<=pi&&pi--}),this},has:function(Oi){return Oi?zn.inArray(Oi,ti)>-1:ti.length>0},empty:function(){return ti&&(ti=[]),this},disable:function(){return rr=ii=[],ti=Wn="",this},disabled:function(){return!ti},lock:function(){return rr=ii=[],!Wn&&!Fn&&(ti=Wn=""),this},locked:function(){return!!rr},fireWith:function(Oi,Mi){return rr||(Mi=Mi||[],Mi=[Oi,Mi.slice?Mi.slice():Mi],ii.push(Mi),Fn||fi()),this},fire:function(){return bi.fireWith(this,arguments),this},fired:function(){return!!Yn}};return bi};function di(Rn){return Rn}function hi(Rn){throw Rn}function wi(Rn,Fn,Wn,Yn){var rr;try{Rn&&ni(rr=Rn.promise)?rr.call(Rn).done(Fn).fail(Wn):Rn&&ni(rr=Rn.then)?rr.call(Rn,Fn,Wn):Fn.apply(void 0,[Rn].slice(Yn))}catch(ti){Wn.apply(void 0,[ti])}}zn.extend({Deferred:function(Rn){var Fn=[["notify","progress",zn.Callbacks("memory"),zn.Callbacks("memory"),2],["resolve","done",zn.Callbacks("once memory"),zn.Callbacks("once memory"),0,"resolved"],["reject","fail",zn.Callbacks("once memory"),zn.Callbacks("once memory"),1,"rejected"]],Wn="pending",Yn={state:function(){return Wn},always:function(){return rr.done(arguments).fail(arguments),this},catch:function(ti){return Yn.then(null,ti)},pipe:function(){var ti=arguments;return zn.Deferred(function(ii){zn.each(Fn,function(pi,fi){var bi=ni(ti[fi[4]])&&ti[fi[4]];rr[fi[1]](function(){var Oi=bi&&bi.apply(this,arguments);Oi&&ni(Oi.promise)?Oi.promise().progress(ii.notify).done(ii.resolve).fail(ii.reject):ii[fi[0]+"With"](this,bi?[Oi]:arguments)})}),ti=null}).promise()},then:function(ti,ii,pi){var fi=0;function bi(Oi,Mi,Ti,qi){return function(){var ca=this,_a=arguments,pa=function(){var Ba,za;if(!(Oi<fi)){if(Ba=Ti.apply(ca,_a),Ba===Mi.promise())throw new TypeError("Thenable self-resolution");za=Ba&&(typeof Ba=="object"||typeof Ba=="function")&&Ba.then,ni(za)?qi?za.call(Ba,bi(fi,Mi,di,qi),bi(fi,Mi,hi,qi)):(fi++,za.call(Ba,bi(fi,Mi,di,qi),bi(fi,Mi,hi,qi),bi(fi,Mi,di,Mi.notifyWith))):(Ti!==di&&(ca=void 0,_a=[Ba]),(qi||Mi.resolveWith)(ca,_a))}},Ia=qi?pa:function(){try{pa()}catch(Ba){zn.Deferred.exceptionHook&&zn.Deferred.exceptionHook(Ba,Ia.error),Oi+1>=fi&&(Ti!==hi&&(ca=void 0,_a=[Ba]),Mi.rejectWith(ca,_a))}};Oi?Ia():(zn.Deferred.getErrorHook?Ia.error=zn.Deferred.getErrorHook():zn.Deferred.getStackHook&&(Ia.error=zn.Deferred.getStackHook()),Cn.setTimeout(Ia))}}return zn.Deferred(function(Oi){Fn[0][3].add(bi(0,Oi,ni(pi)?pi:di,Oi.notifyWith)),Fn[1][3].add(bi(0,Oi,ni(ti)?ti:di)),Fn[2][3].add(bi(0,Oi,ni(ii)?ii:hi))}).promise()},promise:function(ti){return ti!=null?zn.extend(ti,Yn):Yn}},rr={};return zn.each(Fn,function(ti,ii){var pi=ii[2],fi=ii[5];Yn[ii[1]]=pi.add,fi&&pi.add(function(){Wn=fi},Fn[3-ti][2].disable,Fn[3-ti][3].disable,Fn[0][2].lock,Fn[0][3].lock),pi.add(ii[3].fire),rr[ii[0]]=function(){return rr[ii[0]+"With"](this===rr?void 0:this,arguments),this},rr[ii[0]+"With"]=pi.fireWith}),Yn.promise(rr),Rn&&Rn.call(rr,rr),rr},when:function(Rn){var Fn=arguments.length,Wn=Fn,Yn=Array(Wn),rr=Ln.call(arguments),ti=zn.Deferred(),ii=function(pi){return function(fi){Yn[pi]=this,rr[pi]=arguments.length>1?Ln.call(arguments):fi,--Fn||ti.resolveWith(Yn,rr)}};if(Fn<=1&&(wi(Rn,ti.done(ii(Wn)).resolve,ti.reject,!Fn),ti.state()==="pending"||ni(rr[Wn]&&rr[Wn].then)))return ti.then();for(;Wn--;)wi(rr[Wn],ii(Wn),ti.reject);return ti.promise()}});var Ii=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;zn.Deferred.exceptionHook=function(Rn,Fn){Cn.console&&Cn.console.warn&&Rn&&Ii.test(Rn.name)&&Cn.console.warn("jQuery.Deferred exception: "+Rn.message,Rn.stack,Fn)},zn.readyException=function(Rn){Cn.setTimeout(function(){throw Rn})};var Ni=zn.Deferred();zn.fn.ready=function(Rn){return Ni.then(Rn).catch(function(Fn){zn.readyException(Fn)}),this},zn.extend({isReady:!1,readyWait:1,ready:function(Rn){(Rn===!0?--zn.readyWait:zn.isReady)||(zn.isReady=!0,!(Rn!==!0&&--zn.readyWait>0)&&Ni.resolveWith(si,[zn]))}}),zn.ready.then=Ni.then;function Bi(){si.removeEventListener("DOMContentLoaded",Bi),Cn.removeEventListener("load",Bi),zn.ready()}si.readyState==="complete"||si.readyState!=="loading"&&!si.documentElement.doScroll?Cn.setTimeout(zn.ready):(si.addEventListener("DOMContentLoaded",Bi),Cn.addEventListener("load",Bi));var Ui=function(Rn,Fn,Wn,Yn,rr,ti,ii){var pi=0,fi=Rn.length,bi=Wn==null;if(ri(Wn)==="object"){rr=!0;for(pi in Wn)Ui(Rn,Fn,pi,Wn[pi],!0,ti,ii)}else if(Yn!==void 0&&(rr=!0,ni(Yn)||(ii=!0),bi&&(ii?(Fn.call(Rn,Yn),Fn=null):(bi=Fn,Fn=function(Oi,Mi,Ti){return bi.call(zn(Oi),Ti)})),Fn))for(;pi<fi;pi++)Fn(Rn[pi],Wn,ii?Yn:Yn.call(Rn[pi],pi,Fn(Rn[pi],Wn)));return rr?Rn:bi?Fn.call(Rn):fi?Fn(Rn[0],Wn):ti},ji=/^-ms-/,Wi=/-([a-z])/g;function Vi(Rn,Fn){return Fn.toUpperCase()}function Gi(Rn){return Rn.replace(ji,"ms-").replace(Wi,Vi)}var zi=function(Rn){return Rn.nodeType===1||Rn.nodeType===9||!+Rn.nodeType};function Yo(){this.expando=zn.expando+Yo.uid++}Yo.uid=1,Yo.prototype={cache:function(Rn){var Fn=Rn[this.expando];return Fn||(Fn={},zi(Rn)&&(Rn.nodeType?Rn[this.expando]=Fn:Object.defineProperty(Rn,this.expando,{value:Fn,configurable:!0}))),Fn},set:function(Rn,Fn,Wn){var Yn,rr=this.cache(Rn);if(typeof Fn=="string")rr[Gi(Fn)]=Wn;else for(Yn in Fn)rr[Gi(Yn)]=Fn[Yn];return rr},get:function(Rn,Fn){return Fn===void 0?this.cache(Rn):Rn[this.expando]&&Rn[this.expando][Gi(Fn)]},access:function(Rn,Fn,Wn){return Fn===void 0||Fn&&typeof Fn=="string"&&Wn===void 0?this.get(Rn,Fn):(this.set(Rn,Fn,Wn),Wn!==void 0?Wn:Fn)},remove:function(Rn,Fn){var Wn,Yn=Rn[this.expando];if(Yn!==void 0){if(Fn!==void 0)for(Array.isArray(Fn)?Fn=Fn.map(Gi):(Fn=Gi(Fn),Fn=Fn in Yn?[Fn]:Fn.match(ra)||[]),Wn=Fn.length;Wn--;)delete Yn[Fn[Wn]];(Fn===void 0||zn.isEmptyObject(Yn))&&(Rn.nodeType?Rn[this.expando]=void 0:delete Rn[this.expando])}},hasData:function(Rn){var Fn=Rn[this.expando];return Fn!==void 0&&!zn.isEmptyObject(Fn)}};var Li=new Yo,Zo=new Yo,da=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,fa=/[A-Z]/g;function Ca(Rn){return Rn==="true"?!0:Rn==="false"?!1:Rn==="null"?null:Rn===+Rn+""?+Rn:da.test(Rn)?JSON.parse(Rn):Rn}function wa(Rn,Fn,Wn){var Yn;if(Wn===void 0&&Rn.nodeType===1)if(Yn="data-"+Fn.replace(fa,"-$&").toLowerCase(),Wn=Rn.getAttribute(Yn),typeof Wn=="string"){try{Wn=Ca(Wn)}catch{}Zo.set(Rn,Fn,Wn)}else Wn=void 0;return Wn}zn.extend({hasData:function(Rn){return Zo.hasData(Rn)||Li.hasData(Rn)},data:function(Rn,Fn,Wn){return Zo.access(Rn,Fn,Wn)},removeData:function(Rn,Fn){Zo.remove(Rn,Fn)},_data:function(Rn,Fn,Wn){return Li.access(Rn,Fn,Wn)},_removeData:function(Rn,Fn){Li.remove(Rn,Fn)}}),zn.fn.extend({data:function(Rn,Fn){var Wn,Yn,rr,ti=this[0],ii=ti&&ti.attributes;if(Rn===void 0){if(this.length&&(rr=Zo.get(ti),ti.nodeType===1&&!Li.get(ti,"hasDataAttrs"))){for(Wn=ii.length;Wn--;)ii[Wn]&&(Yn=ii[Wn].name,Yn.indexOf("data-")===0&&(Yn=Gi(Yn.slice(5)),wa(ti,Yn,rr[Yn])));Li.set(ti,"hasDataAttrs",!0)}return rr}return typeof Rn=="object"?this.each(function(){Zo.set(this,Rn)}):Ui(this,function(pi){var fi;if(ti&&pi===void 0)return fi=Zo.get(ti,Rn),fi!==void 0||(fi=wa(ti,Rn),fi!==void 0)?fi:void 0;this.each(function(){Zo.set(this,Rn,pi)})},null,Fn,arguments.length>1,null,!0)},removeData:function(Rn){return this.each(function(){Zo.remove(this,Rn)})}}),zn.extend({queue:function(Rn,Fn,Wn){var Yn;if(Rn)return Fn=(Fn||"fx")+"queue",Yn=Li.get(Rn,Fn),Wn&&(!Yn||Array.isArray(Wn)?Yn=Li.access(Rn,Fn,zn.makeArray(Wn)):Yn.push(Wn)),Yn||[]},dequeue:function(Rn,Fn){Fn=Fn||"fx";var Wn=zn.queue(Rn,Fn),Yn=Wn.length,rr=Wn.shift(),ti=zn._queueHooks(Rn,Fn),ii=function(){zn.dequeue(Rn,Fn)};rr==="inprogress"&&(rr=Wn.shift(),Yn--),rr&&(Fn==="fx"&&Wn.unshift("inprogress"),delete ti.stop,rr.call(Rn,ii,ti)),!Yn&&ti&&ti.empty.fire()},_queueHooks:function(Rn,Fn){var Wn=Fn+"queueHooks";return Li.get(Rn,Wn)||Li.access(Rn,Wn,{empty:zn.Callbacks("once memory").add(function(){Li.remove(Rn,[Fn+"queue",Wn])})})}}),zn.fn.extend({queue:function(Rn,Fn){var Wn=2;return typeof Rn!="string"&&(Fn=Rn,Rn="fx",Wn--),arguments.length<Wn?zn.queue(this[0],Rn):Fn===void 0?this:this.each(function(){var Yn=zn.queue(this,Rn,Fn);zn._queueHooks(this,Rn),Rn==="fx"&&Yn[0]!=="inprogress"&&zn.dequeue(this,Rn)})},dequeue:function(Rn){return this.each(function(){zn.dequeue(this,Rn)})},clearQueue:function(Rn){return this.queue(Rn||"fx",[])},promise:function(Rn,Fn){var Wn,Yn=1,rr=zn.Deferred(),ti=this,ii=this.length,pi=function(){--Yn||rr.resolveWith(ti,[ti])};for(typeof Rn!="string"&&(Fn=Rn,Rn=void 0),Rn=Rn||"fx";ii--;)Wn=Li.get(ti[ii],Rn+"queueHooks"),Wn&&Wn.empty&&(Yn++,Wn.empty.add(pi));return pi(),rr.promise(Fn)}});var Na=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Sa=new RegExp("^(?:([+-])=|)("+Na+")([a-z%]*)$","i"),xa=["Top","Right","Bottom","Left"],xi=si.documentElement,Xi=function(Rn){return zn.contains(Rn.ownerDocument,Rn)},ea={composed:!0};xi.getRootNode&&(Xi=function(Rn){return zn.contains(Rn.ownerDocument,Rn)||Rn.getRootNode(ea)===Rn.ownerDocument});var ga=function(Rn,Fn){return Rn=Fn||Rn,Rn.style.display==="none"||Rn.style.display===""&&Xi(Rn)&&zn.css(Rn,"display")==="none"};function ya(Rn,Fn,Wn,Yn){var rr,ti,ii=20,pi=Yn?function(){return Yn.cur()}:function(){return zn.css(Rn,Fn,"")},fi=pi(),bi=Wn&&Wn[3]||(zn.cssNumber[Fn]?"":"px"),Oi=Rn.nodeType&&(zn.cssNumber[Fn]||bi!=="px"&&+fi)&&Sa.exec(zn.css(Rn,Fn));if(Oi&&Oi[3]!==bi){for(fi=fi/2,bi=bi||Oi[3],Oi=+fi||1;ii--;)zn.style(Rn,Fn,Oi+bi),(1-ti)*(1-(ti=pi()/fi||.5))<=0&&(ii=0),Oi=Oi/ti;Oi=Oi*2,zn.style(Rn,Fn,Oi+bi),Wn=Wn||[]}return Wn&&(Oi=+Oi||+fi||0,rr=Wn[1]?Oi+(Wn[1]+1)*Wn[2]:+Wn[2],Yn&&(Yn.unit=bi,Yn.start=Oi,Yn.end=rr)),rr}var Oa={};function Da(Rn){var Fn,Wn=Rn.ownerDocument,Yn=Rn.nodeName,rr=Oa[Yn];return rr||(Fn=Wn.body.appendChild(Wn.createElement(Yn)),rr=zn.css(Fn,"display"),Fn.parentNode.removeChild(Fn),rr==="none"&&(rr="block"),Oa[Yn]=rr,rr)}function Fa(Rn,Fn){for(var Wn,Yn,rr=[],ti=0,ii=Rn.length;ti<ii;ti++)Yn=Rn[ti],Yn.style&&(Wn=Yn.style.display,Fn?(Wn==="none"&&(rr[ti]=Li.get(Yn,"display")||null,rr[ti]||(Yn.style.display="")),Yn.style.display===""&&ga(Yn)&&(rr[ti]=Da(Yn))):Wn!=="none"&&(rr[ti]="none",Li.set(Yn,"display",Wn)));for(ti=0;ti<ii;ti++)rr[ti]!=null&&(Rn[ti].style.display=rr[ti]);return Rn}zn.fn.extend({show:function(){return Fa(this,!0)},hide:function(){return Fa(this)},toggle:function(Rn){return typeof Rn=="boolean"?Rn?this.show():this.hide():this.each(function(){ga(this)?zn(this).show():zn(this).hide()})}});var Za=/^(?:checkbox|radio)$/i,Ka=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,ls=/^$|^module$|\/(?:java|ecma)script/i;(function(){var Rn=si.createDocumentFragment(),Fn=Rn.appendChild(si.createElement("div")),Wn=si.createElement("input");Wn.setAttribute("type","radio"),Wn.setAttribute("checked","checked"),Wn.setAttribute("name","t"),Fn.appendChild(Wn),nr.checkClone=Fn.cloneNode(!0).cloneNode(!0).lastChild.checked,Fn.innerHTML="<textarea>x</textarea>",nr.noCloneChecked=!!Fn.cloneNode(!0).lastChild.defaultValue,Fn.innerHTML="<option></option>",nr.option=!!Fn.lastChild})();var La={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,"",""]};La.tbody=La.tfoot=La.colgroup=La.caption=La.thead,La.th=La.td,nr.option||(La.optgroup=La.option=[1,"<select multiple='multiple'>","</select>"]);function $a(Rn,Fn){var Wn;return typeof Rn.getElementsByTagName<"u"?Wn=Rn.getElementsByTagName(Fn||"*"):typeof Rn.querySelectorAll<"u"?Wn=Rn.querySelectorAll(Fn||"*"):Wn=[],Fn===void 0||Fn&&oi(Rn,Fn)?zn.merge([Rn],Wn):Wn}function gs(Rn,Fn){for(var Wn=0,Yn=Rn.length;Wn<Yn;Wn++)Li.set(Rn[Wn],"globalEval",!Fn||Li.get(Fn[Wn],"globalEval"))}var ms=/<|&#?\w+;/;function rs(Rn,Fn,Wn,Yn,rr){for(var ti,ii,pi,fi,bi,Oi,Mi=Fn.createDocumentFragment(),Ti=[],qi=0,ca=Rn.length;qi<ca;qi++)if(ti=Rn[qi],ti||ti===0)if(ri(ti)==="object")zn.merge(Ti,ti.nodeType?[ti]:ti);else if(!ms.test(ti))Ti.push(Fn.createTextNode(ti));else{for(ii=ii||Mi.appendChild(Fn.createElement("div")),pi=(Ka.exec(ti)||["",""])[1].toLowerCase(),fi=La[pi]||La._default,ii.innerHTML=fi[1]+zn.htmlPrefilter(ti)+fi[2],Oi=fi[0];Oi--;)ii=ii.lastChild;zn.merge(Ti,ii.childNodes),ii=Mi.firstChild,ii.textContent=""}for(Mi.textContent="",qi=0;ti=Ti[qi++];){if(Yn&&zn.inArray(ti,Yn)>-1){rr&&rr.push(ti);continue}if(bi=Xi(ti),ii=$a(Mi.appendChild(ti),"script"),bi&&gs(ii),Wn)for(Oi=0;ti=ii[Oi++];)ls.test(ti.type||"")&&Wn.push(ti)}return Mi}var Qs=/^([^.]*)(?:\.(.+)|)/;function cs(){return!0}function us(){return!1}function Os(Rn,Fn,Wn,Yn,rr,ti){var ii,pi;if(typeof Fn=="object"){typeof Wn!="string"&&(Yn=Yn||Wn,Wn=void 0);for(pi in Fn)Os(Rn,pi,Wn,Yn,Fn[pi],ti);return Rn}if(Yn==null&&rr==null?(rr=Wn,Yn=Wn=void 0):rr==null&&(typeof Wn=="string"?(rr=Yn,Yn=void 0):(rr=Yn,Yn=Wn,Wn=void 0)),rr===!1)rr=us;else if(!rr)return Rn;return ti===1&&(ii=rr,rr=function(fi){return zn().off(fi),ii.apply(this,arguments)},rr.guid=ii.guid||(ii.guid=zn.guid++)),Rn.each(function(){zn.event.add(this,Fn,rr,Yn,Wn)})}zn.event={global:{},add:function(Rn,Fn,Wn,Yn,rr){var ti,ii,pi,fi,bi,Oi,Mi,Ti,qi,ca,_a,pa=Li.get(Rn);if(zi(Rn))for(Wn.handler&&(ti=Wn,Wn=ti.handler,rr=ti.selector),rr&&zn.find.matchesSelector(xi,rr),Wn.guid||(Wn.guid=zn.guid++),(fi=pa.events)||(fi=pa.events=Object.create(null)),(ii=pa.handle)||(ii=pa.handle=function(Ia){return typeof zn<"u"&&zn.event.triggered!==Ia.type?zn.event.dispatch.apply(Rn,arguments):void 0}),Fn=(Fn||"").match(ra)||[""],bi=Fn.length;bi--;)pi=Qs.exec(Fn[bi])||[],qi=_a=pi[1],ca=(pi[2]||"").split(".").sort(),qi&&(Mi=zn.event.special[qi]||{},qi=(rr?Mi.delegateType:Mi.bindType)||qi,Mi=zn.event.special[qi]||{},Oi=zn.extend({type:qi,origType:_a,data:Yn,handler:Wn,guid:Wn.guid,selector:rr,needsContext:rr&&zn.expr.match.needsContext.test(rr),namespace:ca.join(".")},ti),(Ti=fi[qi])||(Ti=fi[qi]=[],Ti.delegateCount=0,(!Mi.setup||Mi.setup.call(Rn,Yn,ca,ii)===!1)&&Rn.addEventListener&&Rn.addEventListener(qi,ii)),Mi.add&&(Mi.add.call(Rn,Oi),Oi.handler.guid||(Oi.handler.guid=Wn.guid)),rr?Ti.splice(Ti.delegateCount++,0,Oi):Ti.push(Oi),zn.event.global[qi]=!0)},remove:function(Rn,Fn,Wn,Yn,rr){var ti,ii,pi,fi,bi,Oi,Mi,Ti,qi,ca,_a,pa=Li.hasData(Rn)&&Li.get(Rn);if(!(!pa||!(fi=pa.events))){for(Fn=(Fn||"").match(ra)||[""],bi=Fn.length;bi--;){if(pi=Qs.exec(Fn[bi])||[],qi=_a=pi[1],ca=(pi[2]||"").split(".").sort(),!qi){for(qi in fi)zn.event.remove(Rn,qi+Fn[bi],Wn,Yn,!0);continue}for(Mi=zn.event.special[qi]||{},qi=(Yn?Mi.delegateType:Mi.bindType)||qi,Ti=fi[qi]||[],pi=pi[2]&&new RegExp("(^|\\.)"+ca.join("\\.(?:.*\\.|)")+"(\\.|$)"),ii=ti=Ti.length;ti--;)Oi=Ti[ti],(rr||_a===Oi.origType)&&(!Wn||Wn.guid===Oi.guid)&&(!pi||pi.test(Oi.namespace))&&(!Yn||Yn===Oi.selector||Yn==="**"&&Oi.selector)&&(Ti.splice(ti,1),Oi.selector&&Ti.delegateCount--,Mi.remove&&Mi.remove.call(Rn,Oi));ii&&!Ti.length&&((!Mi.teardown||Mi.teardown.call(Rn,ca,pa.handle)===!1)&&zn.removeEvent(Rn,qi,pa.handle),delete fi[qi])}zn.isEmptyObject(fi)&&Li.remove(Rn,"handle events")}},dispatch:function(Rn){var Fn,Wn,Yn,rr,ti,ii,pi=new Array(arguments.length),fi=zn.event.fix(Rn),bi=(Li.get(this,"events")||Object.create(null))[fi.type]||[],Oi=zn.event.special[fi.type]||{};for(pi[0]=fi,Fn=1;Fn<arguments.length;Fn++)pi[Fn]=arguments[Fn];if(fi.delegateTarget=this,!(Oi.preDispatch&&Oi.preDispatch.call(this,fi)===!1)){for(ii=zn.event.handlers.call(this,fi,bi),Fn=0;(rr=ii[Fn++])&&!fi.isPropagationStopped();)for(fi.currentTarget=rr.elem,Wn=0;(ti=rr.handlers[Wn++])&&!fi.isImmediatePropagationStopped();)(!fi.rnamespace||ti.namespace===!1||fi.rnamespace.test(ti.namespace))&&(fi.handleObj=ti,fi.data=ti.data,Yn=((zn.event.special[ti.origType]||{}).handle||ti.handler).apply(rr.elem,pi),Yn!==void 0&&(fi.result=Yn)===!1&&(fi.preventDefault(),fi.stopPropagation()));return Oi.postDispatch&&Oi.postDispatch.call(this,fi),fi.result}},handlers:function(Rn,Fn){var Wn,Yn,rr,ti,ii,pi=[],fi=Fn.delegateCount,bi=Rn.target;if(fi&&bi.nodeType&&!(Rn.type==="click"&&Rn.button>=1)){for(;bi!==this;bi=bi.parentNode||this)if(bi.nodeType===1&&!(Rn.type==="click"&&bi.disabled===!0)){for(ti=[],ii={},Wn=0;Wn<fi;Wn++)Yn=Fn[Wn],rr=Yn.selector+" ",ii[rr]===void 0&&(ii[rr]=Yn.needsContext?zn(rr,this).index(bi)>-1:zn.find(rr,this,null,[bi]).length),ii[rr]&&ti.push(Yn);ti.length&&pi.push({elem:bi,handlers:ti})}}return bi=this,fi<Fn.length&&pi.push({elem:bi,handlers:Fn.slice(fi)}),pi},addProp:function(Rn,Fn){Object.defineProperty(zn.Event.prototype,Rn,{enumerable:!0,configurable:!0,get:ni(Fn)?function(){if(this.originalEvent)return Fn(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[Rn]},set:function(Wn){Object.defineProperty(this,Rn,{enumerable:!0,configurable:!0,writable:!0,value:Wn})}})},fix:function(Rn){return Rn[zn.expando]?Rn:new zn.Event(Rn)},special:{load:{noBubble:!0},click:{setup:function(Rn){var Fn=this||Rn;return Za.test(Fn.type)&&Fn.click&&oi(Fn,"input")&&Ts(Fn,"click",!0),!1},trigger:function(Rn){var Fn=this||Rn;return Za.test(Fn.type)&&Fn.click&&oi(Fn,"input")&&Ts(Fn,"click"),!0},_default:function(Rn){var Fn=Rn.target;return Za.test(Fn.type)&&Fn.click&&oi(Fn,"input")&&Li.get(Fn,"click")||oi(Fn,"a")}},beforeunload:{postDispatch:function(Rn){Rn.result!==void 0&&Rn.originalEvent&&(Rn.originalEvent.returnValue=Rn.result)}}}};function Ts(Rn,Fn,Wn){if(!Wn){Li.get(Rn,Fn)===void 0&&zn.event.add(Rn,Fn,cs);return}Li.set(Rn,Fn,!1),zn.event.add(Rn,Fn,{namespace:!1,handler:function(Yn){var rr,ti=Li.get(this,Fn);if(Yn.isTrigger&1&&this[Fn]){if(ti)(zn.event.special[Fn]||{}).delegateType&&Yn.stopPropagation();else if(ti=Ln.call(arguments),Li.set(this,Fn,ti),this[Fn](),rr=Li.get(this,Fn),Li.set(this,Fn,!1),ti!==rr)return Yn.stopImmediatePropagation(),Yn.preventDefault(),rr}else ti&&(Li.set(this,Fn,zn.event.trigger(ti[0],ti.slice(1),this)),Yn.stopPropagation(),Yn.isImmediatePropagationStopped=cs)}})}zn.removeEvent=function(Rn,Fn,Wn){Rn.removeEventListener&&Rn.removeEventListener(Fn,Wn)},zn.Event=function(Rn,Fn){if(!(this instanceof zn.Event))return new zn.Event(Rn,Fn);Rn&&Rn.type?(this.originalEvent=Rn,this.type=Rn.type,this.isDefaultPrevented=Rn.defaultPrevented||Rn.defaultPrevented===void 0&&Rn.returnValue===!1?cs:us,this.target=Rn.target&&Rn.target.nodeType===3?Rn.target.parentNode:Rn.target,this.currentTarget=Rn.currentTarget,this.relatedTarget=Rn.relatedTarget):this.type=Rn,Fn&&zn.extend(this,Fn),this.timeStamp=Rn&&Rn.timeStamp||Date.now(),this[zn.expando]=!0},zn.Event.prototype={constructor:zn.Event,isDefaultPrevented:us,isPropagationStopped:us,isImmediatePropagationStopped:us,isSimulated:!1,preventDefault:function(){var Rn=this.originalEvent;this.isDefaultPrevented=cs,Rn&&!this.isSimulated&&Rn.preventDefault()},stopPropagation:function(){var Rn=this.originalEvent;this.isPropagationStopped=cs,Rn&&!this.isSimulated&&Rn.stopPropagation()},stopImmediatePropagation:function(){var Rn=this.originalEvent;this.isImmediatePropagationStopped=cs,Rn&&!this.isSimulated&&Rn.stopImmediatePropagation(),this.stopPropagation()}},zn.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},zn.event.addProp),zn.each({focus:"focusin",blur:"focusout"},function(Rn,Fn){function Wn(Yn){if(si.documentMode){var rr=Li.get(this,"handle"),ti=zn.event.fix(Yn);ti.type=Yn.type==="focusin"?"focus":"blur",ti.isSimulated=!0,rr(Yn),ti.target===ti.currentTarget&&rr(ti)}else zn.event.simulate(Fn,Yn.target,zn.event.fix(Yn))}zn.event.special[Rn]={setup:function(){var Yn;if(Ts(this,Rn,!0),si.documentMode)Yn=Li.get(this,Fn),Yn||this.addEventListener(Fn,Wn),Li.set(this,Fn,(Yn||0)+1);else return!1},trigger:function(){return Ts(this,Rn),!0},teardown:function(){var Yn;if(si.documentMode)Yn=Li.get(this,Fn)-1,Yn?Li.set(this,Fn,Yn):(this.removeEventListener(Fn,Wn),Li.remove(this,Fn));else return!1},_default:function(Yn){return Li.get(Yn.target,Rn)},delegateType:Fn},zn.event.special[Fn]={setup:function(){var Yn=this.ownerDocument||this.document||this,rr=si.documentMode?this:Yn,ti=Li.get(rr,Fn);ti||(si.documentMode?this.addEventListener(Fn,Wn):Yn.addEventListener(Rn,Wn,!0)),Li.set(rr,Fn,(ti||0)+1)},teardown:function(){var Yn=this.ownerDocument||this.document||this,rr=si.documentMode?this:Yn,ti=Li.get(rr,Fn)-1;ti?Li.set(rr,Fn,ti):(si.documentMode?this.removeEventListener(Fn,Wn):Yn.removeEventListener(Rn,Wn,!0),Li.remove(rr,Fn))}}}),zn.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(Rn,Fn){zn.event.special[Rn]={delegateType:Fn,bindType:Fn,handle:function(Wn){var Yn,rr=this,ti=Wn.relatedTarget,ii=Wn.handleObj;return(!ti||ti!==rr&&!zn.contains(rr,ti))&&(Wn.type=ii.origType,Yn=ii.handler.apply(this,arguments),Wn.type=Fn),Yn}}}),zn.fn.extend({on:function(Rn,Fn,Wn,Yn){return Os(this,Rn,Fn,Wn,Yn)},one:function(Rn,Fn,Wn,Yn){return Os(this,Rn,Fn,Wn,Yn,1)},off:function(Rn,Fn,Wn){var Yn,rr;if(Rn&&Rn.preventDefault&&Rn.handleObj)return Yn=Rn.handleObj,zn(Rn.delegateTarget).off(Yn.namespace?Yn.origType+"."+Yn.namespace:Yn.origType,Yn.selector,Yn.handler),this;if(typeof Rn=="object"){for(rr in Rn)this.off(rr,Fn,Rn[rr]);return this}return(Fn===!1||typeof Fn=="function")&&(Wn=Fn,Fn=void 0),Wn===!1&&(Wn=us),this.each(function(){zn.event.remove(this,Rn,Wn,Fn)})}});var Sl=/<script|<style|<link/i,xl=/checked\s*(?:[^=]|=\s*.checked.)/i,Al=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Zs(Rn,Fn){return oi(Rn,"table")&&oi(Fn.nodeType!==11?Fn:Fn.firstChild,"tr")&&zn(Rn).children("tbody")[0]||Rn}function $l(Rn){return Rn.type=(Rn.getAttribute("type")!==null)+"/"+Rn.type,Rn}function Nl(Rn){return(Rn.type||"").slice(0,5)==="true/"?Rn.type=Rn.type.slice(5):Rn.removeAttribute("type"),Rn}function el(Rn,Fn){var Wn,Yn,rr,ti,ii,pi,fi;if(Fn.nodeType===1){if(Li.hasData(Rn)&&(ti=Li.get(Rn),fi=ti.events,fi)){Li.remove(Fn,"handle events");for(rr in fi)for(Wn=0,Yn=fi[rr].length;Wn<Yn;Wn++)zn.event.add(Fn,rr,fi[rr][Wn])}Zo.hasData(Rn)&&(ii=Zo.access(Rn),pi=zn.extend({},ii),Zo.set(Fn,pi))}}function Bl(Rn,Fn){var Wn=Fn.nodeName.toLowerCase();Wn==="input"&&Za.test(Rn.type)?Fn.checked=Rn.checked:(Wn==="input"||Wn==="textarea")&&(Fn.defaultValue=Rn.defaultValue)}function ds(Rn,Fn,Wn,Yn){Fn=In(Fn);var rr,ti,ii,pi,fi,bi,Oi=0,Mi=Rn.length,Ti=Mi-1,qi=Fn[0],ca=ni(qi);if(ca||Mi>1&&typeof qi=="string"&&!nr.checkClone&&xl.test(qi))return Rn.each(function(_a){var pa=Rn.eq(_a);ca&&(Fn[0]=qi.call(this,_a,pa.html())),ds(pa,Fn,Wn,Yn)});if(Mi&&(rr=rs(Fn,Rn[0].ownerDocument,!1,Rn,Yn),ti=rr.firstChild,rr.childNodes.length===1&&(rr=ti),ti||Yn)){for(ii=zn.map($a(rr,"script"),$l),pi=ii.length;Oi<Mi;Oi++)fi=rr,Oi!==Ti&&(fi=zn.clone(fi,!0,!0),pi&&zn.merge(ii,$a(fi,"script"))),Wn.call(Rn[Oi],fi,Oi);if(pi)for(bi=ii[ii.length-1].ownerDocument,zn.map(ii,Nl),Oi=0;Oi<pi;Oi++)fi=ii[Oi],ls.test(fi.type||"")&&!Li.access(fi,"globalEval")&&zn.contains(bi,fi)&&(fi.src&&(fi.type||"").toLowerCase()!=="module"?zn._evalUrl&&!fi.noModule&&zn._evalUrl(fi.src,{nonce:fi.nonce||fi.getAttribute("nonce")},bi):Si(fi.textContent.replace(Al,""),fi,bi))}return Rn}function tl(Rn,Fn,Wn){for(var Yn,rr=Fn?zn.filter(Fn,Rn):Rn,ti=0;(Yn=rr[ti])!=null;ti++)!Wn&&Yn.nodeType===1&&zn.cleanData($a(Yn)),Yn.parentNode&&(Wn&&Xi(Yn)&&gs($a(Yn,"script")),Yn.parentNode.removeChild(Yn));return Rn}zn.extend({htmlPrefilter:function(Rn){return Rn},clone:function(Rn,Fn,Wn){var Yn,rr,ti,ii,pi=Rn.cloneNode(!0),fi=Xi(Rn);if(!nr.noCloneChecked&&(Rn.nodeType===1||Rn.nodeType===11)&&!zn.isXMLDoc(Rn))for(ii=$a(pi),ti=$a(Rn),Yn=0,rr=ti.length;Yn<rr;Yn++)Bl(ti[Yn],ii[Yn]);if(Fn)if(Wn)for(ti=ti||$a(Rn),ii=ii||$a(pi),Yn=0,rr=ti.length;Yn<rr;Yn++)el(ti[Yn],ii[Yn]);else el(Rn,pi);return ii=$a(pi,"script"),ii.length>0&&gs(ii,!fi&&$a(Rn,"script")),pi},cleanData:function(Rn){for(var Fn,Wn,Yn,rr=zn.event.special,ti=0;(Wn=Rn[ti])!==void 0;ti++)if(zi(Wn)){if(Fn=Wn[Li.expando]){if(Fn.events)for(Yn in Fn.events)rr[Yn]?zn.event.remove(Wn,Yn):zn.removeEvent(Wn,Yn,Fn.handle);Wn[Li.expando]=void 0}Wn[Zo.expando]&&(Wn[Zo.expando]=void 0)}}}),zn.fn.extend({detach:function(Rn){return tl(this,Rn,!0)},remove:function(Rn){return tl(this,Rn)},text:function(Rn){return Ui(this,function(Fn){return Fn===void 0?zn.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=Fn)})},null,Rn,arguments.length)},append:function(){return ds(this,arguments,function(Rn){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var Fn=Zs(this,Rn);Fn.appendChild(Rn)}})},prepend:function(){return ds(this,arguments,function(Rn){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var Fn=Zs(this,Rn);Fn.insertBefore(Rn,Fn.firstChild)}})},before:function(){return ds(this,arguments,function(Rn){this.parentNode&&this.parentNode.insertBefore(Rn,this)})},after:function(){return ds(this,arguments,function(Rn){this.parentNode&&this.parentNode.insertBefore(Rn,this.nextSibling)})},empty:function(){for(var Rn,Fn=0;(Rn=this[Fn])!=null;Fn++)Rn.nodeType===1&&(zn.cleanData($a(Rn,!1)),Rn.textContent="");return this},clone:function(Rn,Fn){return Rn=Rn??!1,Fn=Fn??Rn,this.map(function(){return zn.clone(this,Rn,Fn)})},html:function(Rn){return Ui(this,function(Fn){var Wn=this[0]||{},Yn=0,rr=this.length;if(Fn===void 0&&Wn.nodeType===1)return Wn.innerHTML;if(typeof Fn=="string"&&!Sl.test(Fn)&&!La[(Ka.exec(Fn)||["",""])[1].toLowerCase()]){Fn=zn.htmlPrefilter(Fn);try{for(;Yn<rr;Yn++)Wn=this[Yn]||{},Wn.nodeType===1&&(zn.cleanData($a(Wn,!1)),Wn.innerHTML=Fn);Wn=0}catch{}}Wn&&this.empty().append(Fn)},null,Rn,arguments.length)},replaceWith:function(){var Rn=[];return ds(this,arguments,function(Fn){var Wn=this.parentNode;zn.inArray(this,Rn)<0&&(zn.cleanData($a(this)),Wn&&Wn.replaceChild(Fn,this))},Rn)}}),zn.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(Rn,Fn){zn.fn[Rn]=function(Wn){for(var Yn,rr=[],ti=zn(Wn),ii=ti.length-1,pi=0;pi<=ii;pi++)Yn=pi===ii?this:this.clone(!0),zn(ti[pi])[Fn](Yn),Pn.apply(rr,Yn.get());return this.pushStack(rr)}});var Ls=new RegExp("^("+Na+")(?!px)[a-z%]+$","i"),Is=/^--/,ws=function(Rn){var Fn=Rn.ownerDocument.defaultView;return(!Fn||!Fn.opener)&&(Fn=Cn),Fn.getComputedStyle(Rn)},nl=function(Rn,Fn,Wn){var Yn,rr,ti={};for(rr in Fn)ti[rr]=Rn.style[rr],Rn.style[rr]=Fn[rr];Yn=Wn.call(Rn);for(rr in Fn)Rn.style[rr]=ti[rr];return Yn},Ol=new RegExp(xa.join("|"),"i");(function(){function Rn(){if(bi){fi.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",bi.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",xi.appendChild(fi).appendChild(bi);var Oi=Cn.getComputedStyle(bi);Wn=Oi.top!=="1%",pi=Fn(Oi.marginLeft)===12,bi.style.right="60%",ti=Fn(Oi.right)===36,Yn=Fn(Oi.width)===36,bi.style.position="absolute",rr=Fn(bi.offsetWidth/3)===12,xi.removeChild(fi),bi=null}}function Fn(Oi){return Math.round(parseFloat(Oi))}var Wn,Yn,rr,ti,ii,pi,fi=si.createElement("div"),bi=si.createElement("div");bi.style&&(bi.style.backgroundClip="content-box",bi.cloneNode(!0).style.backgroundClip="",nr.clearCloneStyle=bi.style.backgroundClip==="content-box",zn.extend(nr,{boxSizingReliable:function(){return Rn(),Yn},pixelBoxStyles:function(){return Rn(),ti},pixelPosition:function(){return Rn(),Wn},reliableMarginLeft:function(){return Rn(),pi},scrollboxSize:function(){return Rn(),rr},reliableTrDimensions:function(){var Oi,Mi,Ti,qi;return ii==null&&(Oi=si.createElement("table"),Mi=si.createElement("tr"),Ti=si.createElement("div"),Oi.style.cssText="position:absolute;left:-11111px;border-collapse:separate",Mi.style.cssText="box-sizing:content-box;border:1px solid",Mi.style.height="1px",Ti.style.height="9px",Ti.style.display="block",xi.appendChild(Oi).appendChild(Mi).appendChild(Ti),qi=Cn.getComputedStyle(Mi),ii=parseInt(qi.height,10)+parseInt(qi.borderTopWidth,10)+parseInt(qi.borderBottomWidth,10)===Mi.offsetHeight,xi.removeChild(Oi)),ii}}))})();function vs(Rn,Fn,Wn){var Yn,rr,ti,ii,pi=Is.test(Fn),fi=Rn.style;return Wn=Wn||ws(Rn),Wn&&(ii=Wn.getPropertyValue(Fn)||Wn[Fn],pi&&ii&&(ii=ii.replace(Fi,"$1")||void 0),ii===""&&!Xi(Rn)&&(ii=zn.style(Rn,Fn)),!nr.pixelBoxStyles()&&Ls.test(ii)&&Ol.test(Fn)&&(Yn=fi.width,rr=fi.minWidth,ti=fi.maxWidth,fi.minWidth=fi.maxWidth=fi.width=ii,ii=Wn.width,fi.width=Yn,fi.minWidth=rr,fi.maxWidth=ti)),ii!==void 0?ii+"":ii}function rl(Rn,Fn){return{get:function(){if(Rn()){delete this.get;return}return(this.get=Fn).apply(this,arguments)}}}var il=["Webkit","Moz","ms"],ol=si.createElement("div").style,al={};function Ll(Rn){for(var Fn=Rn[0].toUpperCase()+Rn.slice(1),Wn=il.length;Wn--;)if(Rn=il[Wn]+Fn,Rn in ol)return Rn}function Ps(Rn){var Fn=zn.cssProps[Rn]||al[Rn];return Fn||(Rn in ol?Rn:al[Rn]=Ll(Rn)||Rn)}var Il=/^(none|table(?!-c[ea]).+)/,Pl={position:"absolute",visibility:"hidden",display:"block"},sl={letterSpacing:"0",fontWeight:"400"};function ll(Rn,Fn,Wn){var Yn=Sa.exec(Fn);return Yn?Math.max(0,Yn[2]-(Wn||0))+(Yn[3]||"px"):Fn}function Rs(Rn,Fn,Wn,Yn,rr,ti){var ii=Fn==="width"?1:0,pi=0,fi=0,bi=0;if(Wn===(Yn?"border":"content"))return 0;for(;ii<4;ii+=2)Wn==="margin"&&(bi+=zn.css(Rn,Wn+xa[ii],!0,rr)),Yn?(Wn==="content"&&(fi-=zn.css(Rn,"padding"+xa[ii],!0,rr)),Wn!=="margin"&&(fi-=zn.css(Rn,"border"+xa[ii]+"Width",!0,rr))):(fi+=zn.css(Rn,"padding"+xa[ii],!0,rr),Wn!=="padding"?fi+=zn.css(Rn,"border"+xa[ii]+"Width",!0,rr):pi+=zn.css(Rn,"border"+xa[ii]+"Width",!0,rr));return!Yn&&ti>=0&&(fi+=Math.max(0,Math.ceil(Rn["offset"+Fn[0].toUpperCase()+Fn.slice(1)]-ti-fi-pi-.5))||0),fi+bi}function cl(Rn,Fn,Wn){var Yn=ws(Rn),rr=!nr.boxSizingReliable()||Wn,ti=rr&&zn.css(Rn,"boxSizing",!1,Yn)==="border-box",ii=ti,pi=vs(Rn,Fn,Yn),fi="offset"+Fn[0].toUpperCase()+Fn.slice(1);if(Ls.test(pi)){if(!Wn)return pi;pi="auto"}return(!nr.boxSizingReliable()&&ti||!nr.reliableTrDimensions()&&oi(Rn,"tr")||pi==="auto"||!parseFloat(pi)&&zn.css(Rn,"display",!1,Yn)==="inline")&&Rn.getClientRects().length&&(ti=zn.css(Rn,"boxSizing",!1,Yn)==="border-box",ii=fi in Rn,ii&&(pi=Rn[fi])),pi=parseFloat(pi)||0,pi+Rs(Rn,Fn,Wn||(ti?"border":"content"),ii,Yn,pi)+"px"}zn.extend({cssHooks:{opacity:{get:function(Rn,Fn){if(Fn){var Wn=vs(Rn,"opacity");return Wn===""?"1":Wn}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!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,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(Rn,Fn,Wn,Yn){if(!(!Rn||Rn.nodeType===3||Rn.nodeType===8||!Rn.style)){var rr,ti,ii,pi=Gi(Fn),fi=Is.test(Fn),bi=Rn.style;if(fi||(Fn=Ps(pi)),ii=zn.cssHooks[Fn]||zn.cssHooks[pi],Wn!==void 0){if(ti=typeof Wn,ti==="string"&&(rr=Sa.exec(Wn))&&rr[1]&&(Wn=ya(Rn,Fn,rr),ti="number"),Wn==null||Wn!==Wn)return;ti==="number"&&!fi&&(Wn+=rr&&rr[3]||(zn.cssNumber[pi]?"":"px")),!nr.clearCloneStyle&&Wn===""&&Fn.indexOf("background")===0&&(bi[Fn]="inherit"),(!ii||!("set"in ii)||(Wn=ii.set(Rn,Wn,Yn))!==void 0)&&(fi?bi.setProperty(Fn,Wn):bi[Fn]=Wn)}else return ii&&"get"in ii&&(rr=ii.get(Rn,!1,Yn))!==void 0?rr:bi[Fn]}},css:function(Rn,Fn,Wn,Yn){var rr,ti,ii,pi=Gi(Fn),fi=Is.test(Fn);return fi||(Fn=Ps(pi)),ii=zn.cssHooks[Fn]||zn.cssHooks[pi],ii&&"get"in ii&&(rr=ii.get(Rn,!0,Wn)),rr===void 0&&(rr=vs(Rn,Fn,Yn)),rr==="normal"&&Fn in sl&&(rr=sl[Fn]),Wn===""||Wn?(ti=parseFloat(rr),Wn===!0||isFinite(ti)?ti||0:rr):rr}}),zn.each(["height","width"],function(Rn,Fn){zn.cssHooks[Fn]={get:function(Wn,Yn,rr){if(Yn)return Il.test(zn.css(Wn,"display"))&&(!Wn.getClientRects().length||!Wn.getBoundingClientRect().width)?nl(Wn,Pl,function(){return cl(Wn,Fn,rr)}):cl(Wn,Fn,rr)},set:function(Wn,Yn,rr){var ti,ii=ws(Wn),pi=!nr.scrollboxSize()&&ii.position==="absolute",fi=pi||rr,bi=fi&&zn.css(Wn,"boxSizing",!1,ii)==="border-box",Oi=rr?Rs(Wn,Fn,rr,bi,ii):0;return bi&&pi&&(Oi-=Math.ceil(Wn["offset"+Fn[0].toUpperCase()+Fn.slice(1)]-parseFloat(ii[Fn])-Rs(Wn,Fn,"border",!1,ii)-.5)),Oi&&(ti=Sa.exec(Yn))&&(ti[3]||"px")!=="px"&&(Wn.style[Fn]=Yn,Yn=zn.css(Wn,Fn)),ll(Wn,Yn,Oi)}}}),zn.cssHooks.marginLeft=rl(nr.reliableMarginLeft,function(Rn,Fn){if(Fn)return(parseFloat(vs(Rn,"marginLeft"))||Rn.getBoundingClientRect().left-nl(Rn,{marginLeft:0},function(){return Rn.getBoundingClientRect().left}))+"px"}),zn.each({margin:"",padding:"",border:"Width"},function(Rn,Fn){zn.cssHooks[Rn+Fn]={expand:function(Wn){for(var Yn=0,rr={},ti=typeof Wn=="string"?Wn.split(" "):[Wn];Yn<4;Yn++)rr[Rn+xa[Yn]+Fn]=ti[Yn]||ti[Yn-2]||ti[0];return rr}},Rn!=="margin"&&(zn.cssHooks[Rn+Fn].set=ll)}),zn.fn.extend({css:function(Rn,Fn){return Ui(this,function(Wn,Yn,rr){var ti,ii,pi={},fi=0;if(Array.isArray(Yn)){for(ti=ws(Wn),ii=Yn.length;fi<ii;fi++)pi[Yn[fi]]=zn.css(Wn,Yn[fi],!1,ti);return pi}return rr!==void 0?zn.style(Wn,Yn,rr):zn.css(Wn,Yn)},Rn,Fn,arguments.length>1)}});function Ma(Rn,Fn,Wn,Yn,rr){return new Ma.prototype.init(Rn,Fn,Wn,Yn,rr)}zn.Tween=Ma,Ma.prototype={constructor:Ma,init:function(Rn,Fn,Wn,Yn,rr,ti){this.elem=Rn,this.prop=Wn,this.easing=rr||zn.easing._default,this.options=Fn,this.start=this.now=this.cur(),this.end=Yn,this.unit=ti||(zn.cssNumber[Wn]?"":"px")},cur:function(){var Rn=Ma.propHooks[this.prop];return Rn&&Rn.get?Rn.get(this):Ma.propHooks._default.get(this)},run:function(Rn){var Fn,Wn=Ma.propHooks[this.prop];return this.options.duration?this.pos=Fn=zn.easing[this.easing](Rn,this.options.duration*Rn,0,1,this.options.duration):this.pos=Fn=Rn,this.now=(this.end-this.start)*Fn+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),Wn&&Wn.set?Wn.set(this):Ma.propHooks._default.set(this),this}},Ma.prototype.init.prototype=Ma.prototype,Ma.propHooks={_default:{get:function(Rn){var Fn;return Rn.elem.nodeType!==1||Rn.elem[Rn.prop]!=null&&Rn.elem.style[Rn.prop]==null?Rn.elem[Rn.prop]:(Fn=zn.css(Rn.elem,Rn.prop,""),!Fn||Fn==="auto"?0:Fn)},set:function(Rn){zn.fx.step[Rn.prop]?zn.fx.step[Rn.prop](Rn):Rn.elem.nodeType===1&&(zn.cssHooks[Rn.prop]||Rn.elem.style[Ps(Rn.prop)]!=null)?zn.style(Rn.elem,Rn.prop,Rn.now+Rn.unit):Rn.elem[Rn.prop]=Rn.now}}},Ma.propHooks.scrollTop=Ma.propHooks.scrollLeft={set:function(Rn){Rn.elem.nodeType&&Rn.elem.parentNode&&(Rn.elem[Rn.prop]=Rn.now)}},zn.easing={linear:function(Rn){return Rn},swing:function(Rn){return .5-Math.cos(Rn*Math.PI)/2},_default:"swing"},zn.fx=Ma.prototype.init,zn.fx.step={};var fs,Ss,Rl=/^(?:toggle|show|hide)$/,Dl=/queueHooks$/;function Ds(){Ss&&(si.hidden===!1&&Cn.requestAnimationFrame?Cn.requestAnimationFrame(Ds):Cn.setTimeout(Ds,zn.fx.interval),zn.fx.tick())}function ul(){return Cn.setTimeout(function(){fs=void 0}),fs=Date.now()}function xs(Rn,Fn){var Wn,Yn=0,rr={height:Rn};for(Fn=Fn?1:0;Yn<4;Yn+=2-Fn)Wn=xa[Yn],rr["margin"+Wn]=rr["padding"+Wn]=Rn;return Fn&&(rr.opacity=rr.width=Rn),rr}function dl(Rn,Fn,Wn){for(var Yn,rr=(Ua.tweeners[Fn]||[]).concat(Ua.tweeners["*"]),ti=0,ii=rr.length;ti<ii;ti++)if(Yn=rr[ti].call(Wn,Fn,Rn))return Yn}function Ml(Rn,Fn,Wn){var Yn,rr,ti,ii,pi,fi,bi,Oi,Mi="width"in Fn||"height"in Fn,Ti=this,qi={},ca=Rn.style,_a=Rn.nodeType&&ga(Rn),pa=Li.get(Rn,"fxshow");Wn.queue||(ii=zn._queueHooks(Rn,"fx"),ii.unqueued==null&&(ii.unqueued=0,pi=ii.empty.fire,ii.empty.fire=function(){ii.unqueued||pi()}),ii.unqueued++,Ti.always(function(){Ti.always(function(){ii.unqueued--,zn.queue(Rn,"fx").length||ii.empty.fire()})}));for(Yn in Fn)if(rr=Fn[Yn],Rl.test(rr)){if(delete Fn[Yn],ti=ti||rr==="toggle",rr===(_a?"hide":"show"))if(rr==="show"&&pa&&pa[Yn]!==void 0)_a=!0;else continue;qi[Yn]=pa&&pa[Yn]||zn.style(Rn,Yn)}if(fi=!zn.isEmptyObject(Fn),!(!fi&&zn.isEmptyObject(qi))){Mi&&Rn.nodeType===1&&(Wn.overflow=[ca.overflow,ca.overflowX,ca.overflowY],bi=pa&&pa.display,bi==null&&(bi=Li.get(Rn,"display")),Oi=zn.css(Rn,"display"),Oi==="none"&&(bi?Oi=bi:(Fa([Rn],!0),bi=Rn.style.display||bi,Oi=zn.css(Rn,"display"),Fa([Rn]))),(Oi==="inline"||Oi==="inline-block"&&bi!=null)&&zn.css(Rn,"float")==="none"&&(fi||(Ti.done(function(){ca.display=bi}),bi==null&&(Oi=ca.display,bi=Oi==="none"?"":Oi)),ca.display="inline-block")),Wn.overflow&&(ca.overflow="hidden",Ti.always(function(){ca.overflow=Wn.overflow[0],ca.overflowX=Wn.overflow[1],ca.overflowY=Wn.overflow[2]})),fi=!1;for(Yn in qi)fi||(pa?"hidden"in pa&&(_a=pa.hidden):pa=Li.access(Rn,"fxshow",{display:bi}),ti&&(pa.hidden=!_a),_a&&Fa([Rn],!0),Ti.done(function(){_a||Fa([Rn]),Li.remove(Rn,"fxshow");for(Yn in qi)zn.style(Rn,Yn,qi[Yn])})),fi=dl(_a?pa[Yn]:0,Yn,Ti),Yn in pa||(pa[Yn]=fi.start,_a&&(fi.end=fi.start,fi.start=0))}}function Vl(Rn,Fn){var Wn,Yn,rr,ti,ii;for(Wn in Rn)if(Yn=Gi(Wn),rr=Fn[Yn],ti=Rn[Wn],Array.isArray(ti)&&(rr=ti[1],ti=Rn[Wn]=ti[0]),Wn!==Yn&&(Rn[Yn]=ti,delete Rn[Wn]),ii=zn.cssHooks[Yn],ii&&"expand"in ii){ti=ii.expand(ti),delete Rn[Yn];for(Wn in ti)Wn in Rn||(Rn[Wn]=ti[Wn],Fn[Wn]=rr)}else Fn[Yn]=rr}function Ua(Rn,Fn,Wn){var Yn,rr,ti=0,ii=Ua.prefilters.length,pi=zn.Deferred().always(function(){delete fi.elem}),fi=function(){if(rr)return!1;for(var Mi=fs||ul(),Ti=Math.max(0,bi.startTime+bi.duration-Mi),qi=Ti/bi.duration||0,ca=1-qi,_a=0,pa=bi.tweens.length;_a<pa;_a++)bi.tweens[_a].run(ca);return pi.notifyWith(Rn,[bi,ca,Ti]),ca<1&&pa?Ti:(pa||pi.notifyWith(Rn,[bi,1,0]),pi.resolveWith(Rn,[bi]),!1)},bi=pi.promise({elem:Rn,props:zn.extend({},Fn),opts:zn.extend(!0,{specialEasing:{},easing:zn.easing._default},Wn),originalProperties:Fn,originalOptions:Wn,startTime:fs||ul(),duration:Wn.duration,tweens:[],createTween:function(Mi,Ti){var qi=zn.Tween(Rn,bi.opts,Mi,Ti,bi.opts.specialEasing[Mi]||bi.opts.easing);return bi.tweens.push(qi),qi},stop:function(Mi){var Ti=0,qi=Mi?bi.tweens.length:0;if(rr)return this;for(rr=!0;Ti<qi;Ti++)bi.tweens[Ti].run(1);return Mi?(pi.notifyWith(Rn,[bi,1,0]),pi.resolveWith(Rn,[bi,Mi])):pi.rejectWith(Rn,[bi,Mi]),this}}),Oi=bi.props;for(Vl(Oi,bi.opts.specialEasing);ti<ii;ti++)if(Yn=Ua.prefilters[ti].call(bi,Rn,Oi,bi.opts),Yn)return ni(Yn.stop)&&(zn._queueHooks(bi.elem,bi.opts.queue).stop=Yn.stop.bind(Yn)),Yn;return zn.map(Oi,dl,bi),ni(bi.opts.start)&&bi.opts.start.call(Rn,bi),bi.progress(bi.opts.progress).done(bi.opts.done,bi.opts.complete).fail(bi.opts.fail).always(bi.opts.always),zn.fx.timer(zn.extend(fi,{elem:Rn,anim:bi,queue:bi.opts.queue})),bi}zn.Animation=zn.extend(Ua,{tweeners:{"*":[function(Rn,Fn){var Wn=this.createTween(Rn,Fn);return ya(Wn.elem,Rn,Sa.exec(Fn),Wn),Wn}]},tweener:function(Rn,Fn){ni(Rn)?(Fn=Rn,Rn=["*"]):Rn=Rn.match(ra);for(var Wn,Yn=0,rr=Rn.length;Yn<rr;Yn++)Wn=Rn[Yn],Ua.tweeners[Wn]=Ua.tweeners[Wn]||[],Ua.tweeners[Wn].unshift(Fn)},prefilters:[Ml],prefilter:function(Rn,Fn){Fn?Ua.prefilters.unshift(Rn):Ua.prefilters.push(Rn)}}),zn.speed=function(Rn,Fn,Wn){var Yn=Rn&&typeof Rn=="object"?zn.extend({},Rn):{complete:Wn||!Wn&&Fn||ni(Rn)&&Rn,duration:Rn,easing:Wn&&Fn||Fn&&!ni(Fn)&&Fn};return zn.fx.off?Yn.duration=0:typeof Yn.duration!="number"&&(Yn.duration in zn.fx.speeds?Yn.duration=zn.fx.speeds[Yn.duration]:Yn.duration=zn.fx.speeds._default),(Yn.queue==null||Yn.queue===!0)&&(Yn.queue="fx"),Yn.old=Yn.complete,Yn.complete=function(){ni(Yn.old)&&Yn.old.call(this),Yn.queue&&zn.dequeue(this,Yn.queue)},Yn},zn.fn.extend({fadeTo:function(Rn,Fn,Wn,Yn){return this.filter(ga).css("opacity",0).show().end().animate({opacity:Fn},Rn,Wn,Yn)},animate:function(Rn,Fn,Wn,Yn){var rr=zn.isEmptyObject(Rn),ti=zn.speed(Fn,Wn,Yn),ii=function(){var pi=Ua(this,zn.extend({},Rn),ti);(rr||Li.get(this,"finish"))&&pi.stop(!0)};return ii.finish=ii,rr||ti.queue===!1?this.each(ii):this.queue(ti.queue,ii)},stop:function(Rn,Fn,Wn){var Yn=function(rr){var ti=rr.stop;delete rr.stop,ti(Wn)};return typeof Rn!="string"&&(Wn=Fn,Fn=Rn,Rn=void 0),Fn&&this.queue(Rn||"fx",[]),this.each(function(){var rr=!0,ti=Rn!=null&&Rn+"queueHooks",ii=zn.timers,pi=Li.get(this);if(ti)pi[ti]&&pi[ti].stop&&Yn(pi[ti]);else for(ti in pi)pi[ti]&&pi[ti].stop&&Dl.test(ti)&&Yn(pi[ti]);for(ti=ii.length;ti--;)ii[ti].elem===this&&(Rn==null||ii[ti].queue===Rn)&&(ii[ti].anim.stop(Wn),rr=!1,ii.splice(ti,1));(rr||!Wn)&&zn.dequeue(this,Rn)})},finish:function(Rn){return Rn!==!1&&(Rn=Rn||"fx"),this.each(function(){var Fn,Wn=Li.get(this),Yn=Wn[Rn+"queue"],rr=Wn[Rn+"queueHooks"],ti=zn.timers,ii=Yn?Yn.length:0;for(Wn.finish=!0,zn.queue(this,Rn,[]),rr&&rr.stop&&rr.stop.call(this,!0),Fn=ti.length;Fn--;)ti[Fn].elem===this&&ti[Fn].queue===Rn&&(ti[Fn].anim.stop(!0),ti.splice(Fn,1));for(Fn=0;Fn<ii;Fn++)Yn[Fn]&&Yn[Fn].finish&&Yn[Fn].finish.call(this);delete Wn.finish})}}),zn.each(["toggle","show","hide"],function(Rn,Fn){var Wn=zn.fn[Fn];zn.fn[Fn]=function(Yn,rr,ti){return Yn==null||typeof Yn=="boolean"?Wn.apply(this,arguments):this.animate(xs(Fn,!0),Yn,rr,ti)}}),zn.each({slideDown:xs("show"),slideUp:xs("hide"),slideToggle:xs("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(Rn,Fn){zn.fn[Rn]=function(Wn,Yn,rr){return this.animate(Fn,Wn,Yn,rr)}}),zn.timers=[],zn.fx.tick=function(){var Rn,Fn=0,Wn=zn.timers;for(fs=Date.now();Fn<Wn.length;Fn++)Rn=Wn[Fn],!Rn()&&Wn[Fn]===Rn&&Wn.splice(Fn--,1);Wn.length||zn.fx.stop(),fs=void 0},zn.fx.timer=function(Rn){zn.timers.push(Rn),zn.fx.start()},zn.fx.interval=13,zn.fx.start=function(){Ss||(Ss=!0,Ds())},zn.fx.stop=function(){Ss=null},zn.fx.speeds={slow:600,fast:200,_default:400},zn.fn.delay=function(Rn,Fn){return Rn=zn.fx&&zn.fx.speeds[Rn]||Rn,Fn=Fn||"fx",this.queue(Fn,function(Wn,Yn){var rr=Cn.setTimeout(Wn,Rn);Yn.stop=function(){Cn.clearTimeout(rr)}})},function(){var Rn=si.createElement("input"),Fn=si.createElement("select"),Wn=Fn.appendChild(si.createElement("option"));Rn.type="checkbox",nr.checkOn=Rn.value!=="",nr.optSelected=Wn.selected,Rn=si.createElement("input"),Rn.value="t",Rn.type="radio",nr.radioValue=Rn.value==="t"}();var fl,ys=zn.expr.attrHandle;zn.fn.extend({attr:function(Rn,Fn){return Ui(this,zn.attr,Rn,Fn,arguments.length>1)},removeAttr:function(Rn){return this.each(function(){zn.removeAttr(this,Rn)})}}),zn.extend({attr:function(Rn,Fn,Wn){var Yn,rr,ti=Rn.nodeType;if(!(ti===3||ti===8||ti===2)){if(typeof Rn.getAttribute>"u")return zn.prop(Rn,Fn,Wn);if((ti!==1||!zn.isXMLDoc(Rn))&&(rr=zn.attrHooks[Fn.toLowerCase()]||(zn.expr.match.bool.test(Fn)?fl:void 0)),Wn!==void 0){if(Wn===null){zn.removeAttr(Rn,Fn);return}return rr&&"set"in rr&&(Yn=rr.set(Rn,Wn,Fn))!==void 0?Yn:(Rn.setAttribute(Fn,Wn+""),Wn)}return rr&&"get"in rr&&(Yn=rr.get(Rn,Fn))!==null?Yn:(Yn=zn.find.attr(Rn,Fn),Yn??void 0)}},attrHooks:{type:{set:function(Rn,Fn){if(!nr.radioValue&&Fn==="radio"&&oi(Rn,"input")){var Wn=Rn.value;return Rn.setAttribute("type",Fn),Wn&&(Rn.value=Wn),Fn}}}},removeAttr:function(Rn,Fn){var Wn,Yn=0,rr=Fn&&Fn.match(ra);if(rr&&Rn.nodeType===1)for(;Wn=rr[Yn++];)Rn.removeAttribute(Wn)}}),fl={set:function(Rn,Fn,Wn){return Fn===!1?zn.removeAttr(Rn,Wn):Rn.setAttribute(Wn,Wn),Wn}},zn.each(zn.expr.match.bool.source.match(/\w+/g),function(Rn,Fn){var Wn=ys[Fn]||zn.find.attr;ys[Fn]=function(Yn,rr,ti){var ii,pi,fi=rr.toLowerCase();return ti||(pi=ys[fi],ys[fi]=ii,ii=Wn(Yn,rr,ti)!=null?fi:null,ys[fi]=pi),ii}});var Fl=/^(?:input|select|textarea|button)$/i,Hl=/^(?:a|area)$/i;zn.fn.extend({prop:function(Rn,Fn){return Ui(this,zn.prop,Rn,Fn,arguments.length>1)},removeProp:function(Rn){return this.each(function(){delete this[zn.propFix[Rn]||Rn]})}}),zn.extend({prop:function(Rn,Fn,Wn){var Yn,rr,ti=Rn.nodeType;if(!(ti===3||ti===8||ti===2))return(ti!==1||!zn.isXMLDoc(Rn))&&(Fn=zn.propFix[Fn]||Fn,rr=zn.propHooks[Fn]),Wn!==void 0?rr&&"set"in rr&&(Yn=rr.set(Rn,Wn,Fn))!==void 0?Yn:Rn[Fn]=Wn:rr&&"get"in rr&&(Yn=rr.get(Rn,Fn))!==null?Yn:Rn[Fn]},propHooks:{tabIndex:{get:function(Rn){var Fn=zn.find.attr(Rn,"tabindex");return Fn?parseInt(Fn,10):Fl.test(Rn.nodeName)||Hl.test(Rn.nodeName)&&Rn.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),nr.optSelected||(zn.propHooks.selected={get:function(Rn){var Fn=Rn.parentNode;return Fn&&Fn.parentNode&&Fn.parentNode.selectedIndex,null},set:function(Rn){var Fn=Rn.parentNode;Fn&&(Fn.selectedIndex,Fn.parentNode&&Fn.parentNode.selectedIndex)}}),zn.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){zn.propFix[this.toLowerCase()]=this});function is(Rn){var Fn=Rn.match(ra)||[];return Fn.join(" ")}function os(Rn){return Rn.getAttribute&&Rn.getAttribute("class")||""}function Ms(Rn){return Array.isArray(Rn)?Rn:typeof Rn=="string"?Rn.match(ra)||[]:[]}zn.fn.extend({addClass:function(Rn){var Fn,Wn,Yn,rr,ti,ii;return ni(Rn)?this.each(function(pi){zn(this).addClass(Rn.call(this,pi,os(this)))}):(Fn=Ms(Rn),Fn.length?this.each(function(){if(Yn=os(this),Wn=this.nodeType===1&&" "+is(Yn)+" ",Wn){for(ti=0;ti<Fn.length;ti++)rr=Fn[ti],Wn.indexOf(" "+rr+" ")<0&&(Wn+=rr+" ");ii=is(Wn),Yn!==ii&&this.setAttribute("class",ii)}}):this)},removeClass:function(Rn){var Fn,Wn,Yn,rr,ti,ii;return ni(Rn)?this.each(function(pi){zn(this).removeClass(Rn.call(this,pi,os(this)))}):arguments.length?(Fn=Ms(Rn),Fn.length?this.each(function(){if(Yn=os(this),Wn=this.nodeType===1&&" "+is(Yn)+" ",Wn){for(ti=0;ti<Fn.length;ti++)for(rr=Fn[ti];Wn.indexOf(" "+rr+" ")>-1;)Wn=Wn.replace(" "+rr+" "," ");ii=is(Wn),Yn!==ii&&this.setAttribute("class",ii)}}):this):this.attr("class","")},toggleClass:function(Rn,Fn){var Wn,Yn,rr,ti,ii=typeof Rn,pi=ii==="string"||Array.isArray(Rn);return ni(Rn)?this.each(function(fi){zn(this).toggleClass(Rn.call(this,fi,os(this),Fn),Fn)}):typeof Fn=="boolean"&&pi?Fn?this.addClass(Rn):this.removeClass(Rn):(Wn=Ms(Rn),this.each(function(){if(pi)for(ti=zn(this),rr=0;rr<Wn.length;rr++)Yn=Wn[rr],ti.hasClass(Yn)?ti.removeClass(Yn):ti.addClass(Yn);else(Rn===void 0||ii==="boolean")&&(Yn=os(this),Yn&&Li.set(this,"__className__",Yn),this.setAttribute&&this.setAttribute("class",Yn||Rn===!1?"":Li.get(this,"__className__")||""))}))},hasClass:function(Rn){var Fn,Wn,Yn=0;for(Fn=" "+Rn+" ";Wn=this[Yn++];)if(Wn.nodeType===1&&(" "+is(os(Wn))+" ").indexOf(Fn)>-1)return!0;return!1}});var jl=/\r/g;zn.fn.extend({val:function(Rn){var Fn,Wn,Yn,rr=this[0];return arguments.length?(Yn=ni(Rn),this.each(function(ti){var ii;this.nodeType===1&&(Yn?ii=Rn.call(this,ti,zn(this).val()):ii=Rn,ii==null?ii="":typeof ii=="number"?ii+="":Array.isArray(ii)&&(ii=zn.map(ii,function(pi){return pi==null?"":pi+""})),Fn=zn.valHooks[this.type]||zn.valHooks[this.nodeName.toLowerCase()],(!Fn||!("set"in Fn)||Fn.set(this,ii,"value")===void 0)&&(this.value=ii))})):rr?(Fn=zn.valHooks[rr.type]||zn.valHooks[rr.nodeName.toLowerCase()],Fn&&"get"in Fn&&(Wn=Fn.get(rr,"value"))!==void 0?Wn:(Wn=rr.value,typeof Wn=="string"?Wn.replace(jl,""):Wn??"")):void 0}}),zn.extend({valHooks:{option:{get:function(Rn){var Fn=zn.find.attr(Rn,"value");return Fn??is(zn.text(Rn))}},select:{get:function(Rn){var Fn,Wn,Yn,rr=Rn.options,ti=Rn.selectedIndex,ii=Rn.type==="select-one",pi=ii?null:[],fi=ii?ti+1:rr.length;for(ti<0?Yn=fi:Yn=ii?ti:0;Yn<fi;Yn++)if(Wn=rr[Yn],(Wn.selected||Yn===ti)&&!Wn.disabled&&(!Wn.parentNode.disabled||!oi(Wn.parentNode,"optgroup"))){if(Fn=zn(Wn).val(),ii)return Fn;pi.push(Fn)}return pi},set:function(Rn,Fn){for(var Wn,Yn,rr=Rn.options,ti=zn.makeArray(Fn),ii=rr.length;ii--;)Yn=rr[ii],(Yn.selected=zn.inArray(zn.valHooks.option.get(Yn),ti)>-1)&&(Wn=!0);return Wn||(Rn.selectedIndex=-1),ti}}}}),zn.each(["radio","checkbox"],function(){zn.valHooks[this]={set:function(Rn,Fn){if(Array.isArray(Fn))return Rn.checked=zn.inArray(zn(Rn).val(),Fn)>-1}},nr.checkOn||(zn.valHooks[this].get=function(Rn){return Rn.getAttribute("value")===null?"on":Rn.value})});var bs=Cn.location,pl={guid:Date.now()},Vs=/\?/;zn.parseXML=function(Rn){var Fn,Wn;if(!Rn||typeof Rn!="string")return null;try{Fn=new Cn.DOMParser().parseFromString(Rn,"text/xml")}catch{}return Wn=Fn&&Fn.getElementsByTagName("parsererror")[0],(!Fn||Wn)&&zn.error("Invalid XML: "+(Wn?zn.map(Wn.childNodes,function(Yn){return Yn.textContent}).join(`
|
||
`):Rn)),Fn};var hl=/^(?:focusinfocus|focusoutblur)$/,gl=function(Rn){Rn.stopPropagation()};zn.extend(zn.event,{trigger:function(Rn,Fn,Wn,Yn){var rr,ti,ii,pi,fi,bi,Oi,Mi,Ti=[Wn||si],qi=Xn.call(Rn,"type")?Rn.type:Rn,ca=Xn.call(Rn,"namespace")?Rn.namespace.split("."):[];if(ti=Mi=ii=Wn=Wn||si,!(Wn.nodeType===3||Wn.nodeType===8)&&!hl.test(qi+zn.event.triggered)&&(qi.indexOf(".")>-1&&(ca=qi.split("."),qi=ca.shift(),ca.sort()),fi=qi.indexOf(":")<0&&"on"+qi,Rn=Rn[zn.expando]?Rn:new zn.Event(qi,typeof Rn=="object"&&Rn),Rn.isTrigger=Yn?2:3,Rn.namespace=ca.join("."),Rn.rnamespace=Rn.namespace?new RegExp("(^|\\.)"+ca.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,Rn.result=void 0,Rn.target||(Rn.target=Wn),Fn=Fn==null?[Rn]:zn.makeArray(Fn,[Rn]),Oi=zn.event.special[qi]||{},!(!Yn&&Oi.trigger&&Oi.trigger.apply(Wn,Fn)===!1))){if(!Yn&&!Oi.noBubble&&!ai(Wn)){for(pi=Oi.delegateType||qi,hl.test(pi+qi)||(ti=ti.parentNode);ti;ti=ti.parentNode)Ti.push(ti),ii=ti;ii===(Wn.ownerDocument||si)&&Ti.push(ii.defaultView||ii.parentWindow||Cn)}for(rr=0;(ti=Ti[rr++])&&!Rn.isPropagationStopped();)Mi=ti,Rn.type=rr>1?pi:Oi.bindType||qi,bi=(Li.get(ti,"events")||Object.create(null))[Rn.type]&&Li.get(ti,"handle"),bi&&bi.apply(ti,Fn),bi=fi&&ti[fi],bi&&bi.apply&&zi(ti)&&(Rn.result=bi.apply(ti,Fn),Rn.result===!1&&Rn.preventDefault());return Rn.type=qi,!Yn&&!Rn.isDefaultPrevented()&&(!Oi._default||Oi._default.apply(Ti.pop(),Fn)===!1)&&zi(Wn)&&fi&&ni(Wn[qi])&&!ai(Wn)&&(ii=Wn[fi],ii&&(Wn[fi]=null),zn.event.triggered=qi,Rn.isPropagationStopped()&&Mi.addEventListener(qi,gl),Wn[qi](),Rn.isPropagationStopped()&&Mi.removeEventListener(qi,gl),zn.event.triggered=void 0,ii&&(Wn[fi]=ii)),Rn.result}},simulate:function(Rn,Fn,Wn){var Yn=zn.extend(new zn.Event,Wn,{type:Rn,isSimulated:!0});zn.event.trigger(Yn,null,Fn)}}),zn.fn.extend({trigger:function(Rn,Fn){return this.each(function(){zn.event.trigger(Rn,Fn,this)})},triggerHandler:function(Rn,Fn){var Wn=this[0];if(Wn)return zn.event.trigger(Rn,Fn,Wn,!0)}});var Ul=/\[\]$/,ml=/\r?\n/g,Wl=/^(?:submit|button|image|reset|file)$/i,Kl=/^(?:input|select|textarea|keygen)/i;function Fs(Rn,Fn,Wn,Yn){var rr;if(Array.isArray(Fn))zn.each(Fn,function(ti,ii){Wn||Ul.test(Rn)?Yn(Rn,ii):Fs(Rn+"["+(typeof ii=="object"&&ii!=null?ti:"")+"]",ii,Wn,Yn)});else if(!Wn&&ri(Fn)==="object")for(rr in Fn)Fs(Rn+"["+rr+"]",Fn[rr],Wn,Yn);else Yn(Rn,Fn)}zn.param=function(Rn,Fn){var Wn,Yn=[],rr=function(ti,ii){var pi=ni(ii)?ii():ii;Yn[Yn.length]=encodeURIComponent(ti)+"="+encodeURIComponent(pi??"")};if(Rn==null)return"";if(Array.isArray(Rn)||Rn.jquery&&!zn.isPlainObject(Rn))zn.each(Rn,function(){rr(this.name,this.value)});else for(Wn in Rn)Fs(Wn,Rn[Wn],Fn,rr);return Yn.join("&")},zn.fn.extend({serialize:function(){return zn.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var Rn=zn.prop(this,"elements");return Rn?zn.makeArray(Rn):this}).filter(function(){var Rn=this.type;return this.name&&!zn(this).is(":disabled")&&Kl.test(this.nodeName)&&!Wl.test(Rn)&&(this.checked||!Za.test(Rn))}).map(function(Rn,Fn){var Wn=zn(this).val();return Wn==null?null:Array.isArray(Wn)?zn.map(Wn,function(Yn){return{name:Fn.name,value:Yn.replace(ml,`\r
|
||
`)}}):{name:Fn.name,value:Wn.replace(ml,`\r
|
||
`)}}).get()}});var zl=/%20/g,ql=/#.*$/,Gl=/([?&])_=[^&]*/,Yl=/^(.*?):[ \t]*([^\r\n]*)$/mg,Xl=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Jl=/^(?:GET|HEAD)$/,Ql=/^\/\//,vl={},Hs={},yl="*/".concat("*"),js=si.createElement("a");js.href=bs.href;function bl(Rn){return function(Fn,Wn){typeof Fn!="string"&&(Wn=Fn,Fn="*");var Yn,rr=0,ti=Fn.toLowerCase().match(ra)||[];if(ni(Wn))for(;Yn=ti[rr++];)Yn[0]==="+"?(Yn=Yn.slice(1)||"*",(Rn[Yn]=Rn[Yn]||[]).unshift(Wn)):(Rn[Yn]=Rn[Yn]||[]).push(Wn)}}function _l(Rn,Fn,Wn,Yn){var rr={},ti=Rn===Hs;function ii(pi){var fi;return rr[pi]=!0,zn.each(Rn[pi]||[],function(bi,Oi){var Mi=Oi(Fn,Wn,Yn);if(typeof Mi=="string"&&!ti&&!rr[Mi])return Fn.dataTypes.unshift(Mi),ii(Mi),!1;if(ti)return!(fi=Mi)}),fi}return ii(Fn.dataTypes[0])||!rr["*"]&&ii("*")}function Us(Rn,Fn){var Wn,Yn,rr=zn.ajaxSettings.flatOptions||{};for(Wn in Fn)Fn[Wn]!==void 0&&((rr[Wn]?Rn:Yn||(Yn={}))[Wn]=Fn[Wn]);return Yn&&zn.extend(!0,Rn,Yn),Rn}function Zl(Rn,Fn,Wn){for(var Yn,rr,ti,ii,pi=Rn.contents,fi=Rn.dataTypes;fi[0]==="*";)fi.shift(),Yn===void 0&&(Yn=Rn.mimeType||Fn.getResponseHeader("Content-Type"));if(Yn){for(rr in pi)if(pi[rr]&&pi[rr].test(Yn)){fi.unshift(rr);break}}if(fi[0]in Wn)ti=fi[0];else{for(rr in Wn){if(!fi[0]||Rn.converters[rr+" "+fi[0]]){ti=rr;break}ii||(ii=rr)}ti=ti||ii}if(ti)return ti!==fi[0]&&fi.unshift(ti),Wn[ti]}function ec(Rn,Fn,Wn,Yn){var rr,ti,ii,pi,fi,bi={},Oi=Rn.dataTypes.slice();if(Oi[1])for(ii in Rn.converters)bi[ii.toLowerCase()]=Rn.converters[ii];for(ti=Oi.shift();ti;)if(Rn.responseFields[ti]&&(Wn[Rn.responseFields[ti]]=Fn),!fi&&Yn&&Rn.dataFilter&&(Fn=Rn.dataFilter(Fn,Rn.dataType)),fi=ti,ti=Oi.shift(),ti){if(ti==="*")ti=fi;else if(fi!=="*"&&fi!==ti){if(ii=bi[fi+" "+ti]||bi["* "+ti],!ii){for(rr in bi)if(pi=rr.split(" "),pi[1]===ti&&(ii=bi[fi+" "+pi[0]]||bi["* "+pi[0]],ii)){ii===!0?ii=bi[rr]:bi[rr]!==!0&&(ti=pi[0],Oi.unshift(pi[1]));break}}if(ii!==!0)if(ii&&Rn.throws)Fn=ii(Fn);else try{Fn=ii(Fn)}catch(Mi){return{state:"parsererror",error:ii?Mi:"No conversion from "+fi+" to "+ti}}}}return{state:"success",data:Fn}}zn.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:bs.href,type:"GET",isLocal:Xl.test(bs.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":yl,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":zn.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(Rn,Fn){return Fn?Us(Us(Rn,zn.ajaxSettings),Fn):Us(zn.ajaxSettings,Rn)},ajaxPrefilter:bl(vl),ajaxTransport:bl(Hs),ajax:function(Rn,Fn){typeof Rn=="object"&&(Fn=Rn,Rn=void 0),Fn=Fn||{};var Wn,Yn,rr,ti,ii,pi,fi,bi,Oi,Mi,Ti=zn.ajaxSetup({},Fn),qi=Ti.context||Ti,ca=Ti.context&&(qi.nodeType||qi.jquery)?zn(qi):zn.event,_a=zn.Deferred(),pa=zn.Callbacks("once memory"),Ia=Ti.statusCode||{},Ba={},za={},qa="canceled",ba={readyState:0,getResponseHeader:function(Ea){var Aa;if(fi){if(!ti)for(ti={};Aa=Yl.exec(rr);)ti[Aa[1].toLowerCase()+" "]=(ti[Aa[1].toLowerCase()+" "]||[]).concat(Aa[2]);Aa=ti[Ea.toLowerCase()+" "]}return Aa==null?null:Aa.join(", ")},getAllResponseHeaders:function(){return fi?rr:null},setRequestHeader:function(Ea,Aa){return fi==null&&(Ea=za[Ea.toLowerCase()]=za[Ea.toLowerCase()]||Ea,Ba[Ea]=Aa),this},overrideMimeType:function(Ea){return fi==null&&(Ti.mimeType=Ea),this},statusCode:function(Ea){var Aa;if(Ea)if(fi)ba.always(Ea[ba.status]);else for(Aa in Ea)Ia[Aa]=[Ia[Aa],Ea[Aa]];return this},abort:function(Ea){var Aa=Ea||qa;return Wn&&Wn.abort(Aa),as(0,Aa),this}};if(_a.promise(ba),Ti.url=((Rn||Ti.url||bs.href)+"").replace(Ql,bs.protocol+"//"),Ti.type=Fn.method||Fn.type||Ti.method||Ti.type,Ti.dataTypes=(Ti.dataType||"*").toLowerCase().match(ra)||[""],Ti.crossDomain==null){pi=si.createElement("a");try{pi.href=Ti.url,pi.href=pi.href,Ti.crossDomain=js.protocol+"//"+js.host!=pi.protocol+"//"+pi.host}catch{Ti.crossDomain=!0}}if(Ti.data&&Ti.processData&&typeof Ti.data!="string"&&(Ti.data=zn.param(Ti.data,Ti.traditional)),_l(vl,Ti,Fn,ba),fi)return ba;bi=zn.event&&Ti.global,bi&&zn.active++===0&&zn.event.trigger("ajaxStart"),Ti.type=Ti.type.toUpperCase(),Ti.hasContent=!Jl.test(Ti.type),Yn=Ti.url.replace(ql,""),Ti.hasContent?Ti.data&&Ti.processData&&(Ti.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(Ti.data=Ti.data.replace(zl,"+")):(Mi=Ti.url.slice(Yn.length),Ti.data&&(Ti.processData||typeof Ti.data=="string")&&(Yn+=(Vs.test(Yn)?"&":"?")+Ti.data,delete Ti.data),Ti.cache===!1&&(Yn=Yn.replace(Gl,"$1"),Mi=(Vs.test(Yn)?"&":"?")+"_="+pl.guid+++Mi),Ti.url=Yn+Mi),Ti.ifModified&&(zn.lastModified[Yn]&&ba.setRequestHeader("If-Modified-Since",zn.lastModified[Yn]),zn.etag[Yn]&&ba.setRequestHeader("If-None-Match",zn.etag[Yn])),(Ti.data&&Ti.hasContent&&Ti.contentType!==!1||Fn.contentType)&&ba.setRequestHeader("Content-Type",Ti.contentType),ba.setRequestHeader("Accept",Ti.dataTypes[0]&&Ti.accepts[Ti.dataTypes[0]]?Ti.accepts[Ti.dataTypes[0]]+(Ti.dataTypes[0]!=="*"?", "+yl+"; q=0.01":""):Ti.accepts["*"]);for(Oi in Ti.headers)ba.setRequestHeader(Oi,Ti.headers[Oi]);if(Ti.beforeSend&&(Ti.beforeSend.call(qi,ba,Ti)===!1||fi))return ba.abort();if(qa="abort",pa.add(Ti.complete),ba.done(Ti.success),ba.fail(Ti.error),Wn=_l(Hs,Ti,Fn,ba),!Wn)as(-1,"No Transport");else{if(ba.readyState=1,bi&&ca.trigger("ajaxSend",[ba,Ti]),fi)return ba;Ti.async&&Ti.timeout>0&&(ii=Cn.setTimeout(function(){ba.abort("timeout")},Ti.timeout));try{fi=!1,Wn.send(Ba,as)}catch(Ea){if(fi)throw Ea;as(-1,Ea)}}function as(Ea,Aa,Cs,Ks){var Ga,Es,Ya,es,ts,Ha=Aa;fi||(fi=!0,ii&&Cn.clearTimeout(ii),Wn=void 0,rr=Ks||"",ba.readyState=Ea>0?4:0,Ga=Ea>=200&&Ea<300||Ea===304,Cs&&(es=Zl(Ti,ba,Cs)),!Ga&&zn.inArray("script",Ti.dataTypes)>-1&&zn.inArray("json",Ti.dataTypes)<0&&(Ti.converters["text script"]=function(){}),es=ec(Ti,es,ba,Ga),Ga?(Ti.ifModified&&(ts=ba.getResponseHeader("Last-Modified"),ts&&(zn.lastModified[Yn]=ts),ts=ba.getResponseHeader("etag"),ts&&(zn.etag[Yn]=ts)),Ea===204||Ti.type==="HEAD"?Ha="nocontent":Ea===304?Ha="notmodified":(Ha=es.state,Es=es.data,Ya=es.error,Ga=!Ya)):(Ya=Ha,(Ea||!Ha)&&(Ha="error",Ea<0&&(Ea=0))),ba.status=Ea,ba.statusText=(Aa||Ha)+"",Ga?_a.resolveWith(qi,[Es,Ha,ba]):_a.rejectWith(qi,[ba,Ha,Ya]),ba.statusCode(Ia),Ia=void 0,bi&&ca.trigger(Ga?"ajaxSuccess":"ajaxError",[ba,Ti,Ga?Es:Ya]),pa.fireWith(qi,[ba,Ha]),bi&&(ca.trigger("ajaxComplete",[ba,Ti]),--zn.active||zn.event.trigger("ajaxStop")))}return ba},getJSON:function(Rn,Fn,Wn){return zn.get(Rn,Fn,Wn,"json")},getScript:function(Rn,Fn){return zn.get(Rn,void 0,Fn,"script")}}),zn.each(["get","post"],function(Rn,Fn){zn[Fn]=function(Wn,Yn,rr,ti){return ni(Yn)&&(ti=ti||rr,rr=Yn,Yn=void 0),zn.ajax(zn.extend({url:Wn,type:Fn,dataType:ti,data:Yn,success:rr},zn.isPlainObject(Wn)&&Wn))}}),zn.ajaxPrefilter(function(Rn){var Fn;for(Fn in Rn.headers)Fn.toLowerCase()==="content-type"&&(Rn.contentType=Rn.headers[Fn]||"")}),zn._evalUrl=function(Rn,Fn,Wn){return zn.ajax({url:Rn,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(Yn){zn.globalEval(Yn,Fn,Wn)}})},zn.fn.extend({wrapAll:function(Rn){var Fn;return this[0]&&(ni(Rn)&&(Rn=Rn.call(this[0])),Fn=zn(Rn,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&Fn.insertBefore(this[0]),Fn.map(function(){for(var Wn=this;Wn.firstElementChild;)Wn=Wn.firstElementChild;return Wn}).append(this)),this},wrapInner:function(Rn){return ni(Rn)?this.each(function(Fn){zn(this).wrapInner(Rn.call(this,Fn))}):this.each(function(){var Fn=zn(this),Wn=Fn.contents();Wn.length?Wn.wrapAll(Rn):Fn.append(Rn)})},wrap:function(Rn){var Fn=ni(Rn);return this.each(function(Wn){zn(this).wrapAll(Fn?Rn.call(this,Wn):Rn)})},unwrap:function(Rn){return this.parent(Rn).not("body").each(function(){zn(this).replaceWith(this.childNodes)}),this}}),zn.expr.pseudos.hidden=function(Rn){return!zn.expr.pseudos.visible(Rn)},zn.expr.pseudos.visible=function(Rn){return!!(Rn.offsetWidth||Rn.offsetHeight||Rn.getClientRects().length)},zn.ajaxSettings.xhr=function(){try{return new Cn.XMLHttpRequest}catch{}};var tc={0:200,1223:204},_s=zn.ajaxSettings.xhr();nr.cors=!!_s&&"withCredentials"in _s,nr.ajax=_s=!!_s,zn.ajaxTransport(function(Rn){var Fn,Wn;if(nr.cors||_s&&!Rn.crossDomain)return{send:function(Yn,rr){var ti,ii=Rn.xhr();if(ii.open(Rn.type,Rn.url,Rn.async,Rn.username,Rn.password),Rn.xhrFields)for(ti in Rn.xhrFields)ii[ti]=Rn.xhrFields[ti];Rn.mimeType&&ii.overrideMimeType&&ii.overrideMimeType(Rn.mimeType),!Rn.crossDomain&&!Yn["X-Requested-With"]&&(Yn["X-Requested-With"]="XMLHttpRequest");for(ti in Yn)ii.setRequestHeader(ti,Yn[ti]);Fn=function(pi){return function(){Fn&&(Fn=Wn=ii.onload=ii.onerror=ii.onabort=ii.ontimeout=ii.onreadystatechange=null,pi==="abort"?ii.abort():pi==="error"?typeof ii.status!="number"?rr(0,"error"):rr(ii.status,ii.statusText):rr(tc[ii.status]||ii.status,ii.statusText,(ii.responseType||"text")!=="text"||typeof ii.responseText!="string"?{binary:ii.response}:{text:ii.responseText},ii.getAllResponseHeaders()))}},ii.onload=Fn(),Wn=ii.onerror=ii.ontimeout=Fn("error"),ii.onabort!==void 0?ii.onabort=Wn:ii.onreadystatechange=function(){ii.readyState===4&&Cn.setTimeout(function(){Fn&&Wn()})},Fn=Fn("abort");try{ii.send(Rn.hasContent&&Rn.data||null)}catch(pi){if(Fn)throw pi}},abort:function(){Fn&&Fn()}}}),zn.ajaxPrefilter(function(Rn){Rn.crossDomain&&(Rn.contents.script=!1)}),zn.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(Rn){return zn.globalEval(Rn),Rn}}}),zn.ajaxPrefilter("script",function(Rn){Rn.cache===void 0&&(Rn.cache=!1),Rn.crossDomain&&(Rn.type="GET")}),zn.ajaxTransport("script",function(Rn){if(Rn.crossDomain||Rn.scriptAttrs){var Fn,Wn;return{send:function(Yn,rr){Fn=zn("<script>").attr(Rn.scriptAttrs||{}).prop({charset:Rn.scriptCharset,src:Rn.url}).on("load error",Wn=function(ti){Fn.remove(),Wn=null,ti&&rr(ti.type==="error"?404:200,ti.type)}),si.head.appendChild(Fn[0])},abort:function(){Wn&&Wn()}}}});var Cl=[],Ws=/(=)\?(?=&|$)|\?\?/;zn.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var Rn=Cl.pop()||zn.expando+"_"+pl.guid++;return this[Rn]=!0,Rn}}),zn.ajaxPrefilter("json jsonp",function(Rn,Fn,Wn){var Yn,rr,ti,ii=Rn.jsonp!==!1&&(Ws.test(Rn.url)?"url":typeof Rn.data=="string"&&(Rn.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&Ws.test(Rn.data)&&"data");if(ii||Rn.dataTypes[0]==="jsonp")return Yn=Rn.jsonpCallback=ni(Rn.jsonpCallback)?Rn.jsonpCallback():Rn.jsonpCallback,ii?Rn[ii]=Rn[ii].replace(Ws,"$1"+Yn):Rn.jsonp!==!1&&(Rn.url+=(Vs.test(Rn.url)?"&":"?")+Rn.jsonp+"="+Yn),Rn.converters["script json"]=function(){return ti||zn.error(Yn+" was not called"),ti[0]},Rn.dataTypes[0]="json",rr=Cn[Yn],Cn[Yn]=function(){ti=arguments},Wn.always(function(){rr===void 0?zn(Cn).removeProp(Yn):Cn[Yn]=rr,Rn[Yn]&&(Rn.jsonpCallback=Fn.jsonpCallback,Cl.push(Yn)),ti&&ni(rr)&&rr(ti[0]),ti=rr=void 0}),"script"}),nr.createHTMLDocument=function(){var Rn=si.implementation.createHTMLDocument("").body;return Rn.innerHTML="<form></form><form></form>",Rn.childNodes.length===2}(),zn.parseHTML=function(Rn,Fn,Wn){if(typeof Rn!="string")return[];typeof Fn=="boolean"&&(Wn=Fn,Fn=!1);var Yn,rr,ti;return Fn||(nr.createHTMLDocument?(Fn=si.implementation.createHTMLDocument(""),Yn=Fn.createElement("base"),Yn.href=si.location.href,Fn.head.appendChild(Yn)):Fn=si),rr=Pi.exec(Rn),ti=!Wn&&[],rr?[Fn.createElement(rr[1])]:(rr=rs([Rn],Fn,ti),ti&&ti.length&&zn(ti).remove(),zn.merge([],rr.childNodes))},zn.fn.load=function(Rn,Fn,Wn){var Yn,rr,ti,ii=this,pi=Rn.indexOf(" ");return pi>-1&&(Yn=is(Rn.slice(pi)),Rn=Rn.slice(0,pi)),ni(Fn)?(Wn=Fn,Fn=void 0):Fn&&typeof Fn=="object"&&(rr="POST"),ii.length>0&&zn.ajax({url:Rn,type:rr||"GET",dataType:"html",data:Fn}).done(function(fi){ti=arguments,ii.html(Yn?zn("<div>").append(zn.parseHTML(fi)).find(Yn):fi)}).always(Wn&&function(fi,bi){ii.each(function(){Wn.apply(this,ti||[fi.responseText,bi,fi])})}),this},zn.expr.pseudos.animated=function(Rn){return zn.grep(zn.timers,function(Fn){return Rn===Fn.elem}).length},zn.offset={setOffset:function(Rn,Fn,Wn){var Yn,rr,ti,ii,pi,fi,bi,Oi=zn.css(Rn,"position"),Mi=zn(Rn),Ti={};Oi==="static"&&(Rn.style.position="relative"),pi=Mi.offset(),ti=zn.css(Rn,"top"),fi=zn.css(Rn,"left"),bi=(Oi==="absolute"||Oi==="fixed")&&(ti+fi).indexOf("auto")>-1,bi?(Yn=Mi.position(),ii=Yn.top,rr=Yn.left):(ii=parseFloat(ti)||0,rr=parseFloat(fi)||0),ni(Fn)&&(Fn=Fn.call(Rn,Wn,zn.extend({},pi))),Fn.top!=null&&(Ti.top=Fn.top-pi.top+ii),Fn.left!=null&&(Ti.left=Fn.left-pi.left+rr),"using"in Fn?Fn.using.call(Rn,Ti):Mi.css(Ti)}},zn.fn.extend({offset:function(Rn){if(arguments.length)return Rn===void 0?this:this.each(function(rr){zn.offset.setOffset(this,Rn,rr)});var Fn,Wn,Yn=this[0];if(Yn)return Yn.getClientRects().length?(Fn=Yn.getBoundingClientRect(),Wn=Yn.ownerDocument.defaultView,{top:Fn.top+Wn.pageYOffset,left:Fn.left+Wn.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var Rn,Fn,Wn,Yn=this[0],rr={top:0,left:0};if(zn.css(Yn,"position")==="fixed")Fn=Yn.getBoundingClientRect();else{for(Fn=this.offset(),Wn=Yn.ownerDocument,Rn=Yn.offsetParent||Wn.documentElement;Rn&&(Rn===Wn.body||Rn===Wn.documentElement)&&zn.css(Rn,"position")==="static";)Rn=Rn.parentNode;Rn&&Rn!==Yn&&Rn.nodeType===1&&(rr=zn(Rn).offset(),rr.top+=zn.css(Rn,"borderTopWidth",!0),rr.left+=zn.css(Rn,"borderLeftWidth",!0))}return{top:Fn.top-rr.top-zn.css(Yn,"marginTop",!0),left:Fn.left-rr.left-zn.css(Yn,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var Rn=this.offsetParent;Rn&&zn.css(Rn,"position")==="static";)Rn=Rn.offsetParent;return Rn||xi})}}),zn.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(Rn,Fn){var Wn=Fn==="pageYOffset";zn.fn[Rn]=function(Yn){return Ui(this,function(rr,ti,ii){var pi;if(ai(rr)?pi=rr:rr.nodeType===9&&(pi=rr.defaultView),ii===void 0)return pi?pi[Fn]:rr[ti];pi?pi.scrollTo(Wn?pi.pageXOffset:ii,Wn?ii:pi.pageYOffset):rr[ti]=ii},Rn,Yn,arguments.length)}}),zn.each(["top","left"],function(Rn,Fn){zn.cssHooks[Fn]=rl(nr.pixelPosition,function(Wn,Yn){if(Yn)return Yn=vs(Wn,Fn),Ls.test(Yn)?zn(Wn).position()[Fn]+"px":Yn})}),zn.each({Height:"height",Width:"width"},function(Rn,Fn){zn.each({padding:"inner"+Rn,content:Fn,"":"outer"+Rn},function(Wn,Yn){zn.fn[Yn]=function(rr,ti){var ii=arguments.length&&(Wn||typeof rr!="boolean"),pi=Wn||(rr===!0||ti===!0?"margin":"border");return Ui(this,function(fi,bi,Oi){var Mi;return ai(fi)?Yn.indexOf("outer")===0?fi["inner"+Rn]:fi.document.documentElement["client"+Rn]:fi.nodeType===9?(Mi=fi.documentElement,Math.max(fi.body["scroll"+Rn],Mi["scroll"+Rn],fi.body["offset"+Rn],Mi["offset"+Rn],Mi["client"+Rn])):Oi===void 0?zn.css(fi,bi,pi):zn.style(fi,bi,Oi,pi)},Fn,ii?rr:void 0,ii)}})}),zn.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(Rn,Fn){zn.fn[Fn]=function(Wn){return this.on(Fn,Wn)}}),zn.fn.extend({bind:function(Rn,Fn,Wn){return this.on(Rn,null,Fn,Wn)},unbind:function(Rn,Fn){return this.off(Rn,null,Fn)},delegate:function(Rn,Fn,Wn,Yn){return this.on(Fn,Rn,Wn,Yn)},undelegate:function(Rn,Fn,Wn){return arguments.length===1?this.off(Rn,"**"):this.off(Fn,Rn||"**",Wn)},hover:function(Rn,Fn){return this.on("mouseenter",Rn).on("mouseleave",Fn||Rn)}}),zn.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(Rn,Fn){zn.fn[Fn]=function(Wn,Yn){return arguments.length>0?this.on(Fn,null,Wn,Yn):this.trigger(Fn)}});var nc=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;zn.proxy=function(Rn,Fn){var Wn,Yn,rr;if(typeof Fn=="string"&&(Wn=Rn[Fn],Fn=Rn,Rn=Wn),!!ni(Rn))return Yn=Ln.call(arguments,2),rr=function(){return Rn.apply(Fn||this,Yn.concat(Ln.call(arguments)))},rr.guid=Rn.guid=Rn.guid||zn.guid++,rr},zn.holdReady=function(Rn){Rn?zn.readyWait++:zn.ready(!0)},zn.isArray=Array.isArray,zn.parseJSON=JSON.parse,zn.nodeName=oi,zn.isFunction=ni,zn.isWindow=ai,zn.camelCase=Gi,zn.type=ri,zn.now=Date.now,zn.isNumeric=function(Rn){var Fn=zn.type(Rn);return(Fn==="number"||Fn==="string")&&!isNaN(Rn-parseFloat(Rn))},zn.trim=function(Rn){return Rn==null?"":(Rn+"").replace(nc,"$1")};var rc=Cn.jQuery,ic=Cn.$;return zn.noConflict=function(Rn){return Cn.$===zn&&(Cn.$=ic),Rn&&Cn.jQuery===zn&&(Cn.jQuery=rc),zn},typeof $n>"u"&&(Cn.jQuery=Cn.$=zn),zn})}(jquery)),jquery.exports}(function(_n){(function(Cn){Cn(["jquery"],function($n){return function(){var Nn,Bn,Ln=0,In={error:"error",info:"info",success:"success",warning:"warning"},Pn={clear:ni,remove:ai,error:Un,getContainer:Hn,info:Xn,options:{},subscribe:Gn,success:ei,version:"2.1.4",warning:nr},Dn;return Pn;function Un(oi,ui,mi){return $i({type:In.error,iconClass:zn().iconClasses.error,message:oi,optionsOverride:mi,title:ui})}function Hn(oi,ui){return oi||(oi=zn()),Nn=$n("#"+oi.containerId),Nn.length||ui&&(Nn=Si(oi)),Nn}function Xn(oi,ui,mi){return $i({type:In.info,iconClass:zn().iconClasses.info,message:oi,optionsOverride:mi,title:ui})}function Gn(oi){Bn=oi}function ei(oi,ui,mi){return $i({type:In.success,iconClass:zn().iconClasses.success,message:oi,optionsOverride:mi,title:ui})}function nr(oi,ui,mi){return $i({type:In.warning,iconClass:zn().iconClasses.warning,message:oi,optionsOverride:mi,title:ui})}function ni(oi,ui){var mi=zn();Nn||Hn(mi),gi(oi,mi,ui)||si(mi)}function ai(oi){var ui=zn();if(Nn||Hn(ui),oi&&$n(":focus",oi).length===0){li(oi);return}Nn.children().length&&Nn.remove()}function si(oi){for(var ui=Nn.children(),mi=ui.length-1;mi>=0;mi--)gi($n(ui[mi]),oi)}function gi(oi,ui,mi){var _i=mi&&mi.force?mi.force:!1;return oi&&(_i||$n(":focus",oi).length===0)?(oi[ui.hideMethod]({duration:ui.hideDuration,easing:ui.hideEasing,complete:function(){li(oi)}}),!0):!1}function Si(oi){return Nn=$n("<div/>").attr("id",oi.containerId).addClass(oi.positionClass),Nn.appendTo($n(oi.target)),Nn}function ri(){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 Ei(oi){Bn&&Bn(oi)}function $i(oi){var ui=zn(),mi=oi.iconClass||ui.iconClass;if(typeof oi.optionsOverride<"u"&&(ui=$n.extend(ui,oi.optionsOverride),mi=oi.optionsOverride.iconClass||mi),di(ui,oi))return;Ln++,Nn=Hn(ui,!0);var _i=null,yi=$n("<div/>"),Fi=$n("<div/>"),ta=$n("<div/>"),qo=$n("<div/>"),Ci=$n(ui.closeHtml),Ri={intervalId:null,hideEta:null,maxHideTime:null},Hi={toastId:Ln,state:"visible",startTime:new Date,options:ui,map:oi};return sa(),Yi(),Ki(),Ei(Hi),ui.debug&&console&&console.log(Hi),yi;function aa(Bi){return Bi==null&&(Bi=""),Bi.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function sa(){Ji(),Qo(),la(),Go(),ra(),ha(),Zi(),Pi()}function Pi(){var Bi="";switch(oi.iconClass){case"toast-success":case"toast-info":Bi="polite";break;default:Bi="assertive"}yi.attr("aria-live",Bi)}function Ki(){ui.closeOnHover&&yi.hover(Ii,wi),!ui.onclick&&ui.tapToDismiss&&yi.click(hi),ui.closeButton&&Ci&&Ci.click(function(Bi){Bi.stopPropagation?Bi.stopPropagation():Bi.cancelBubble!==void 0&&Bi.cancelBubble!==!0&&(Bi.cancelBubble=!0),ui.onCloseClick&&ui.onCloseClick(Bi),hi(!0)}),ui.onclick&&yi.click(function(Bi){ui.onclick(Bi),hi()})}function Yi(){yi.hide(),yi[ui.showMethod]({duration:ui.showDuration,easing:ui.showEasing,complete:ui.onShown}),ui.timeOut>0&&(_i=setTimeout(hi,ui.timeOut),Ri.maxHideTime=parseFloat(ui.timeOut),Ri.hideEta=new Date().getTime()+Ri.maxHideTime,ui.progressBar&&(Ri.intervalId=setInterval(Ni,10)))}function Ji(){oi.iconClass&&yi.addClass(ui.toastClass).addClass(mi)}function Zi(){ui.newestOnTop?Nn.prepend(yi):Nn.append(yi)}function Qo(){if(oi.title){var Bi=oi.title;ui.escapeHtml&&(Bi=aa(oi.title)),Fi.append(Bi).addClass(ui.titleClass),yi.append(Fi)}}function la(){if(oi.message){var Bi=oi.message;ui.escapeHtml&&(Bi=aa(oi.message)),ta.append(Bi).addClass(ui.messageClass),yi.append(ta)}}function Go(){ui.closeButton&&(Ci.addClass(ui.closeClass).attr("role","button"),yi.prepend(Ci))}function ra(){ui.progressBar&&(qo.addClass(ui.progressClass),yi.prepend(qo))}function ha(){ui.rtl&&yi.addClass("rtl")}function di(Bi,Ui){if(Bi.preventDuplicates){if(Ui.message===Dn)return!0;Dn=Ui.message}return!1}function hi(Bi){var Ui=Bi&&ui.closeMethod!==!1?ui.closeMethod:ui.hideMethod,ji=Bi&&ui.closeDuration!==!1?ui.closeDuration:ui.hideDuration,Wi=Bi&&ui.closeEasing!==!1?ui.closeEasing:ui.hideEasing;if(!($n(":focus",yi).length&&!Bi))return clearTimeout(Ri.intervalId),yi[Ui]({duration:ji,easing:Wi,complete:function(){li(yi),clearTimeout(_i),ui.onHidden&&Hi.state!=="hidden"&&ui.onHidden(),Hi.state="hidden",Hi.endTime=new Date,Ei(Hi)}})}function wi(){(ui.timeOut>0||ui.extendedTimeOut>0)&&(_i=setTimeout(hi,ui.extendedTimeOut),Ri.maxHideTime=parseFloat(ui.extendedTimeOut),Ri.hideEta=new Date().getTime()+Ri.maxHideTime)}function Ii(){clearTimeout(_i),Ri.hideEta=0,yi.stop(!0,!0)[ui.showMethod]({duration:ui.showDuration,easing:ui.showEasing})}function Ni(){var Bi=(Ri.hideEta-new Date().getTime())/Ri.maxHideTime*100;qo.width(Bi+"%")}}function zn(){return $n.extend({},ri(),Pn.options)}function li(oi){Nn||(Nn=Hn()),!oi.is(":visible")&&(oi.remove(),oi=null,Nn.children().length===0&&(Nn.remove(),Dn=void 0))}}()})})(function(Cn,$n){_n.exports?_n.exports=$n(requireJquery()):window.toastr=$n(window.jQuery)})})(toastr$1);var toastrExports=toastr$1.exports;const toastr=getDefaultExportFromCjs(toastrExports);var clipboard={exports:{}};/*!
|
||
* clipboard.js v2.0.11
|
||
* https://clipboardjs.com/
|
||
*
|
||
* Licensed MIT © Zeno Rocha
|
||
*/(function(_n,Cn){(function(Nn,Bn){_n.exports=Bn()})(commonjsGlobal,function(){return function(){var $n={686:function(Ln,In,Pn){Pn.d(In,{default:function(){return sa}});var Dn=Pn(279),Un=Pn.n(Dn),Hn=Pn(370),Xn=Pn.n(Hn),Gn=Pn(817),ei=Pn.n(Gn);function nr(Pi){try{return document.execCommand(Pi)}catch{return!1}}var ni=function(Ki){var Yi=ei()(Ki);return nr("cut"),Yi},ai=ni;function si(Pi){var Ki=document.documentElement.getAttribute("dir")==="rtl",Yi=document.createElement("textarea");Yi.style.fontSize="12pt",Yi.style.border="0",Yi.style.padding="0",Yi.style.margin="0",Yi.style.position="absolute",Yi.style[Ki?"right":"left"]="-9999px";var Ji=window.pageYOffset||document.documentElement.scrollTop;return Yi.style.top="".concat(Ji,"px"),Yi.setAttribute("readonly",""),Yi.value=Pi,Yi}var gi=function(Ki,Yi){var Ji=si(Ki);Yi.container.appendChild(Ji);var Zi=ei()(Ji);return nr("copy"),Ji.remove(),Zi},Si=function(Ki){var Yi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},Ji="";return typeof Ki=="string"?Ji=gi(Ki,Yi):Ki instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(Ki==null?void 0:Ki.type)?Ji=gi(Ki.value,Yi):(Ji=ei()(Ki),nr("copy")),Ji},ri=Si;function Ei(Pi){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ei=function(Yi){return typeof Yi}:Ei=function(Yi){return Yi&&typeof Symbol=="function"&&Yi.constructor===Symbol&&Yi!==Symbol.prototype?"symbol":typeof Yi},Ei(Pi)}var $i=function(){var Ki=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Yi=Ki.action,Ji=Yi===void 0?"copy":Yi,Zi=Ki.container,Qo=Ki.target,la=Ki.text;if(Ji!=="copy"&&Ji!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(Qo!==void 0)if(Qo&&Ei(Qo)==="object"&&Qo.nodeType===1){if(Ji==="copy"&&Qo.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(Ji==="cut"&&(Qo.hasAttribute("readonly")||Qo.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(la)return ri(la,{container:Zi});if(Qo)return Ji==="cut"?ai(Qo):ri(Qo,{container:Zi})},zn=$i;function li(Pi){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?li=function(Yi){return typeof Yi}:li=function(Yi){return Yi&&typeof Symbol=="function"&&Yi.constructor===Symbol&&Yi!==Symbol.prototype?"symbol":typeof Yi},li(Pi)}function oi(Pi,Ki){if(!(Pi instanceof Ki))throw new TypeError("Cannot call a class as a function")}function ui(Pi,Ki){for(var Yi=0;Yi<Ki.length;Yi++){var Ji=Ki[Yi];Ji.enumerable=Ji.enumerable||!1,Ji.configurable=!0,"value"in Ji&&(Ji.writable=!0),Object.defineProperty(Pi,Ji.key,Ji)}}function mi(Pi,Ki,Yi){return Ki&&ui(Pi.prototype,Ki),Yi&&ui(Pi,Yi),Pi}function _i(Pi,Ki){if(typeof Ki!="function"&&Ki!==null)throw new TypeError("Super expression must either be null or a function");Pi.prototype=Object.create(Ki&&Ki.prototype,{constructor:{value:Pi,writable:!0,configurable:!0}}),Ki&&yi(Pi,Ki)}function yi(Pi,Ki){return yi=Object.setPrototypeOf||function(Ji,Zi){return Ji.__proto__=Zi,Ji},yi(Pi,Ki)}function Fi(Pi){var Ki=Ci();return function(){var Ji=Ri(Pi),Zi;if(Ki){var Qo=Ri(this).constructor;Zi=Reflect.construct(Ji,arguments,Qo)}else Zi=Ji.apply(this,arguments);return ta(this,Zi)}}function ta(Pi,Ki){return Ki&&(li(Ki)==="object"||typeof Ki=="function")?Ki:qo(Pi)}function qo(Pi){if(Pi===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Pi}function Ci(){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 Ri(Pi){return Ri=Object.setPrototypeOf?Object.getPrototypeOf:function(Yi){return Yi.__proto__||Object.getPrototypeOf(Yi)},Ri(Pi)}function Hi(Pi,Ki){var Yi="data-clipboard-".concat(Pi);if(Ki.hasAttribute(Yi))return Ki.getAttribute(Yi)}var aa=function(Pi){_i(Yi,Pi);var Ki=Fi(Yi);function Yi(Ji,Zi){var Qo;return oi(this,Yi),Qo=Ki.call(this),Qo.resolveOptions(Zi),Qo.listenClick(Ji),Qo}return mi(Yi,[{key:"resolveOptions",value:function(){var Zi=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof Zi.action=="function"?Zi.action:this.defaultAction,this.target=typeof Zi.target=="function"?Zi.target:this.defaultTarget,this.text=typeof Zi.text=="function"?Zi.text:this.defaultText,this.container=li(Zi.container)==="object"?Zi.container:document.body}},{key:"listenClick",value:function(Zi){var Qo=this;this.listener=Xn()(Zi,"click",function(la){return Qo.onClick(la)})}},{key:"onClick",value:function(Zi){var Qo=Zi.delegateTarget||Zi.currentTarget,la=this.action(Qo)||"copy",Go=zn({action:la,container:this.container,target:this.target(Qo),text:this.text(Qo)});this.emit(Go?"success":"error",{action:la,text:Go,trigger:Qo,clearSelection:function(){Qo&&Qo.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(Zi){return Hi("action",Zi)}},{key:"defaultTarget",value:function(Zi){var Qo=Hi("target",Zi);if(Qo)return document.querySelector(Qo)}},{key:"defaultText",value:function(Zi){return Hi("text",Zi)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(Zi){var Qo=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return ri(Zi,Qo)}},{key:"cut",value:function(Zi){return ai(Zi)}},{key:"isSupported",value:function(){var Zi=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],Qo=typeof Zi=="string"?[Zi]:Zi,la=!!document.queryCommandSupported;return Qo.forEach(function(Go){la=la&&!!document.queryCommandSupported(Go)}),la}}]),Yi}(Un()),sa=aa},828:function(Ln){var In=9;if(typeof Element<"u"&&!Element.prototype.matches){var Pn=Element.prototype;Pn.matches=Pn.matchesSelector||Pn.mozMatchesSelector||Pn.msMatchesSelector||Pn.oMatchesSelector||Pn.webkitMatchesSelector}function Dn(Un,Hn){for(;Un&&Un.nodeType!==In;){if(typeof Un.matches=="function"&&Un.matches(Hn))return Un;Un=Un.parentNode}}Ln.exports=Dn},438:function(Ln,In,Pn){var Dn=Pn(828);function Un(Gn,ei,nr,ni,ai){var si=Xn.apply(this,arguments);return Gn.addEventListener(nr,si,ai),{destroy:function(){Gn.removeEventListener(nr,si,ai)}}}function Hn(Gn,ei,nr,ni,ai){return typeof Gn.addEventListener=="function"?Un.apply(null,arguments):typeof nr=="function"?Un.bind(null,document).apply(null,arguments):(typeof Gn=="string"&&(Gn=document.querySelectorAll(Gn)),Array.prototype.map.call(Gn,function(si){return Un(si,ei,nr,ni,ai)}))}function Xn(Gn,ei,nr,ni){return function(ai){ai.delegateTarget=Dn(ai.target,ei),ai.delegateTarget&&ni.call(Gn,ai)}}Ln.exports=Hn},879:function(Ln,In){In.node=function(Pn){return Pn!==void 0&&Pn instanceof HTMLElement&&Pn.nodeType===1},In.nodeList=function(Pn){var Dn=Object.prototype.toString.call(Pn);return Pn!==void 0&&(Dn==="[object NodeList]"||Dn==="[object HTMLCollection]")&&"length"in Pn&&(Pn.length===0||In.node(Pn[0]))},In.string=function(Pn){return typeof Pn=="string"||Pn instanceof String},In.fn=function(Pn){var Dn=Object.prototype.toString.call(Pn);return Dn==="[object Function]"}},370:function(Ln,In,Pn){var Dn=Pn(879),Un=Pn(438);function Hn(nr,ni,ai){if(!nr&&!ni&&!ai)throw new Error("Missing required arguments");if(!Dn.string(ni))throw new TypeError("Second argument must be a String");if(!Dn.fn(ai))throw new TypeError("Third argument must be a Function");if(Dn.node(nr))return Xn(nr,ni,ai);if(Dn.nodeList(nr))return Gn(nr,ni,ai);if(Dn.string(nr))return ei(nr,ni,ai);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function Xn(nr,ni,ai){return nr.addEventListener(ni,ai),{destroy:function(){nr.removeEventListener(ni,ai)}}}function Gn(nr,ni,ai){return Array.prototype.forEach.call(nr,function(si){si.addEventListener(ni,ai)}),{destroy:function(){Array.prototype.forEach.call(nr,function(si){si.removeEventListener(ni,ai)})}}}function ei(nr,ni,ai){return Un(document.body,nr,ni,ai)}Ln.exports=Hn},817:function(Ln){function In(Pn){var Dn;if(Pn.nodeName==="SELECT")Pn.focus(),Dn=Pn.value;else if(Pn.nodeName==="INPUT"||Pn.nodeName==="TEXTAREA"){var Un=Pn.hasAttribute("readonly");Un||Pn.setAttribute("readonly",""),Pn.select(),Pn.setSelectionRange(0,Pn.value.length),Un||Pn.removeAttribute("readonly"),Dn=Pn.value}else{Pn.hasAttribute("contenteditable")&&Pn.focus();var Hn=window.getSelection(),Xn=document.createRange();Xn.selectNodeContents(Pn),Hn.removeAllRanges(),Hn.addRange(Xn),Dn=Hn.toString()}return Dn}Ln.exports=In},279:function(Ln){function In(){}In.prototype={on:function(Pn,Dn,Un){var Hn=this.e||(this.e={});return(Hn[Pn]||(Hn[Pn]=[])).push({fn:Dn,ctx:Un}),this},once:function(Pn,Dn,Un){var Hn=this;function Xn(){Hn.off(Pn,Xn),Dn.apply(Un,arguments)}return Xn._=Dn,this.on(Pn,Xn,Un)},emit:function(Pn){var Dn=[].slice.call(arguments,1),Un=((this.e||(this.e={}))[Pn]||[]).slice(),Hn=0,Xn=Un.length;for(Hn;Hn<Xn;Hn++)Un[Hn].fn.apply(Un[Hn].ctx,Dn);return this},off:function(Pn,Dn){var Un=this.e||(this.e={}),Hn=Un[Pn],Xn=[];if(Hn&&Dn)for(var Gn=0,ei=Hn.length;Gn<ei;Gn++)Hn[Gn].fn!==Dn&&Hn[Gn].fn._!==Dn&&Xn.push(Hn[Gn]);return Xn.length?Un[Pn]=Xn:delete Un[Pn],this}},Ln.exports=In,Ln.exports.TinyEmitter=In}},Nn={};function Bn(Ln){if(Nn[Ln])return Nn[Ln].exports;var In=Nn[Ln]={exports:{}};return $n[Ln](In,In.exports,Bn),In.exports}return function(){Bn.n=function(Ln){var In=Ln&&Ln.__esModule?function(){return Ln.default}:function(){return Ln};return Bn.d(In,{a:In}),In}}(),function(){Bn.d=function(Ln,In){for(var Pn in In)Bn.o(In,Pn)&&!Bn.o(Ln,Pn)&&Object.defineProperty(Ln,Pn,{enumerable:!0,get:In[Pn]})}}(),function(){Bn.o=function(Ln,In){return Object.prototype.hasOwnProperty.call(Ln,In)}}(),Bn(686)}().default})})(clipboard);var clipboardExports=clipboard.exports;const Clipboard=getDefaultExportFromCjs(clipboardExports),VueClipboard=_n=>{const Cn=(_n==null?void 0:_n.appendToBody)===void 0?!0:_n.appendToBody;return{toClipboard($n,Nn){return new Promise((Bn,Ln)=>{const In=document.createElement("button"),Pn=new Clipboard(In,{text:()=>$n,action:()=>"copy",container:Nn!==void 0?Nn:document.body});Pn.on("success",Dn=>{Pn.destroy(),Bn(Dn)}),Pn.on("error",Dn=>{Pn.destroy(),Ln(Dn)}),Cn&&document.body.appendChild(In),In.click(),Cn&&document.body.removeChild(In)})}}};function bind(_n,Cn){return function(){return _n.apply(Cn,arguments)}}const{toString}=Object.prototype,{getPrototypeOf}=Object,kindOf=(_n=>Cn=>{const $n=toString.call(Cn);return _n[$n]||(_n[$n]=$n.slice(8,-1).toLowerCase())})(Object.create(null)),kindOfTest=_n=>(_n=_n.toLowerCase(),Cn=>kindOf(Cn)===_n),typeOfTest=_n=>Cn=>typeof Cn===_n,{isArray}=Array,isUndefined=typeOfTest("undefined");function isBuffer(_n){return _n!==null&&!isUndefined(_n)&&_n.constructor!==null&&!isUndefined(_n.constructor)&&isFunction(_n.constructor.isBuffer)&&_n.constructor.isBuffer(_n)}const isArrayBuffer=kindOfTest("ArrayBuffer");function isArrayBufferView(_n){let Cn;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?Cn=ArrayBuffer.isView(_n):Cn=_n&&_n.buffer&&isArrayBuffer(_n.buffer),Cn}const isString=typeOfTest("string"),isFunction=typeOfTest("function"),isNumber=typeOfTest("number"),isObject=_n=>_n!==null&&typeof _n=="object",isBoolean=_n=>_n===!0||_n===!1,isPlainObject=_n=>{if(kindOf(_n)!=="object")return!1;const Cn=getPrototypeOf(_n);return(Cn===null||Cn===Object.prototype||Object.getPrototypeOf(Cn)===null)&&!(Symbol.toStringTag in _n)&&!(Symbol.iterator in _n)},isDate=kindOfTest("Date"),isFile=kindOfTest("File"),isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList"),isStream=_n=>isObject(_n)&&isFunction(_n.pipe),isFormData=_n=>{let Cn;return _n&&(typeof FormData=="function"&&_n instanceof FormData||isFunction(_n.append)&&((Cn=kindOf(_n))==="formdata"||Cn==="object"&&isFunction(_n.toString)&&_n.toString()==="[object FormData]"))},isURLSearchParams=kindOfTest("URLSearchParams"),trim=_n=>_n.trim?_n.trim():_n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach(_n,Cn,{allOwnKeys:$n=!1}={}){if(_n===null||typeof _n>"u")return;let Nn,Bn;if(typeof _n!="object"&&(_n=[_n]),isArray(_n))for(Nn=0,Bn=_n.length;Nn<Bn;Nn++)Cn.call(null,_n[Nn],Nn,_n);else{const Ln=$n?Object.getOwnPropertyNames(_n):Object.keys(_n),In=Ln.length;let Pn;for(Nn=0;Nn<In;Nn++)Pn=Ln[Nn],Cn.call(null,_n[Pn],Pn,_n)}}function findKey(_n,Cn){Cn=Cn.toLowerCase();const $n=Object.keys(_n);let Nn=$n.length,Bn;for(;Nn-- >0;)if(Bn=$n[Nn],Cn===Bn.toLowerCase())return Bn;return null}const _global=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),isContextDefined=_n=>!isUndefined(_n)&&_n!==_global;function merge(){const{caseless:_n}=isContextDefined(this)&&this||{},Cn={},$n=(Nn,Bn)=>{const Ln=_n&&findKey(Cn,Bn)||Bn;isPlainObject(Cn[Ln])&&isPlainObject(Nn)?Cn[Ln]=merge(Cn[Ln],Nn):isPlainObject(Nn)?Cn[Ln]=merge({},Nn):isArray(Nn)?Cn[Ln]=Nn.slice():Cn[Ln]=Nn};for(let Nn=0,Bn=arguments.length;Nn<Bn;Nn++)arguments[Nn]&&forEach(arguments[Nn],$n);return Cn}const extend=(_n,Cn,$n,{allOwnKeys:Nn}={})=>(forEach(Cn,(Bn,Ln)=>{$n&&isFunction(Bn)?_n[Ln]=bind(Bn,$n):_n[Ln]=Bn},{allOwnKeys:Nn}),_n),stripBOM=_n=>(_n.charCodeAt(0)===65279&&(_n=_n.slice(1)),_n),inherits=(_n,Cn,$n,Nn)=>{_n.prototype=Object.create(Cn.prototype,Nn),_n.prototype.constructor=_n,Object.defineProperty(_n,"super",{value:Cn.prototype}),$n&&Object.assign(_n.prototype,$n)},toFlatObject=(_n,Cn,$n,Nn)=>{let Bn,Ln,In;const Pn={};if(Cn=Cn||{},_n==null)return Cn;do{for(Bn=Object.getOwnPropertyNames(_n),Ln=Bn.length;Ln-- >0;)In=Bn[Ln],(!Nn||Nn(In,_n,Cn))&&!Pn[In]&&(Cn[In]=_n[In],Pn[In]=!0);_n=$n!==!1&&getPrototypeOf(_n)}while(_n&&(!$n||$n(_n,Cn))&&_n!==Object.prototype);return Cn},endsWith=(_n,Cn,$n)=>{_n=String(_n),($n===void 0||$n>_n.length)&&($n=_n.length),$n-=Cn.length;const Nn=_n.indexOf(Cn,$n);return Nn!==-1&&Nn===$n},toArray=_n=>{if(!_n)return null;if(isArray(_n))return _n;let Cn=_n.length;if(!isNumber(Cn))return null;const $n=new Array(Cn);for(;Cn-- >0;)$n[Cn]=_n[Cn];return $n},isTypedArray=(_n=>Cn=>_n&&Cn instanceof _n)(typeof Uint8Array<"u"&&getPrototypeOf(Uint8Array)),forEachEntry=(_n,Cn)=>{const Nn=(_n&&_n[Symbol.iterator]).call(_n);let Bn;for(;(Bn=Nn.next())&&!Bn.done;){const Ln=Bn.value;Cn.call(_n,Ln[0],Ln[1])}},matchAll=(_n,Cn)=>{let $n;const Nn=[];for(;($n=_n.exec(Cn))!==null;)Nn.push($n);return Nn},isHTMLForm=kindOfTest("HTMLFormElement"),toCamelCase=_n=>_n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function($n,Nn,Bn){return Nn.toUpperCase()+Bn}),hasOwnProperty=(({hasOwnProperty:_n})=>(Cn,$n)=>_n.call(Cn,$n))(Object.prototype),isRegExp=kindOfTest("RegExp"),reduceDescriptors=(_n,Cn)=>{const $n=Object.getOwnPropertyDescriptors(_n),Nn={};forEach($n,(Bn,Ln)=>{let In;(In=Cn(Bn,Ln,_n))!==!1&&(Nn[Ln]=In||Bn)}),Object.defineProperties(_n,Nn)},freezeMethods=_n=>{reduceDescriptors(_n,(Cn,$n)=>{if(isFunction(_n)&&["arguments","caller","callee"].indexOf($n)!==-1)return!1;const Nn=_n[$n];if(isFunction(Nn)){if(Cn.enumerable=!1,"writable"in Cn){Cn.writable=!1;return}Cn.set||(Cn.set=()=>{throw Error("Can not rewrite read-only method '"+$n+"'")})}})},toObjectSet=(_n,Cn)=>{const $n={},Nn=Bn=>{Bn.forEach(Ln=>{$n[Ln]=!0})};return isArray(_n)?Nn(_n):Nn(String(_n).split(Cn)),$n},noop=()=>{},toFiniteNumber=(_n,Cn)=>(_n=+_n,Number.isFinite(_n)?_n:Cn),ALPHA="abcdefghijklmnopqrstuvwxyz",DIGIT="0123456789",ALPHABET={DIGIT,ALPHA,ALPHA_DIGIT:ALPHA+ALPHA.toUpperCase()+DIGIT},generateString=(_n=16,Cn=ALPHABET.ALPHA_DIGIT)=>{let $n="";const{length:Nn}=Cn;for(;_n--;)$n+=Cn[Math.random()*Nn|0];return $n};function isSpecCompliantForm(_n){return!!(_n&&isFunction(_n.append)&&_n[Symbol.toStringTag]==="FormData"&&_n[Symbol.iterator])}const toJSONObject=_n=>{const Cn=new Array(10),$n=(Nn,Bn)=>{if(isObject(Nn)){if(Cn.indexOf(Nn)>=0)return;if(!("toJSON"in Nn)){Cn[Bn]=Nn;const Ln=isArray(Nn)?[]:{};return forEach(Nn,(In,Pn)=>{const Dn=$n(In,Bn+1);!isUndefined(Dn)&&(Ln[Pn]=Dn)}),Cn[Bn]=void 0,Ln}}return Nn};return $n(_n,0)},isAsyncFn=kindOfTest("AsyncFunction"),isThenable=_n=>_n&&(isObject(_n)||isFunction(_n))&&isFunction(_n.then)&&isFunction(_n.catch),utils$1={isArray,isArrayBuffer,isBuffer,isFormData,isArrayBufferView,isString,isNumber,isBoolean,isObject,isPlainObject,isUndefined,isDate,isFile,isBlob,isRegExp,isFunction,isStream,isURLSearchParams,isTypedArray,isFileList,forEach,merge,extend,trim,stripBOM,inherits,toFlatObject,kindOf,kindOfTest,endsWith,toArray,forEachEntry,matchAll,isHTMLForm,hasOwnProperty,hasOwnProp:hasOwnProperty,reduceDescriptors,freezeMethods,toObjectSet,toCamelCase,noop,toFiniteNumber,findKey,global:_global,isContextDefined,ALPHABET,generateString,isSpecCompliantForm,toJSONObject,isAsyncFn,isThenable};function AxiosError(_n,Cn,$n,Nn,Bn){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=_n,this.name="AxiosError",Cn&&(this.code=Cn),$n&&(this.config=$n),Nn&&(this.request=Nn),Bn&&(this.response=Bn)}utils$1.inherits(AxiosError,Error,{toJSON:function _n(){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:utils$1.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const prototype$1=AxiosError.prototype,descriptors={};["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(_n=>{descriptors[_n]={value:_n}}),Object.defineProperties(AxiosError,descriptors),Object.defineProperty(prototype$1,"isAxiosError",{value:!0}),AxiosError.from=(_n,Cn,$n,Nn,Bn,Ln)=>{const In=Object.create(prototype$1);return utils$1.toFlatObject(_n,In,function(Dn){return Dn!==Error.prototype},Pn=>Pn!=="isAxiosError"),AxiosError.call(In,_n.message,Cn,$n,Nn,Bn),In.cause=_n,In.name=_n.name,Ln&&Object.assign(In,Ln),In};const httpAdapter=null;function isVisitable(_n){return utils$1.isPlainObject(_n)||utils$1.isArray(_n)}function removeBrackets(_n){return utils$1.endsWith(_n,"[]")?_n.slice(0,-2):_n}function renderKey(_n,Cn,$n){return _n?_n.concat(Cn).map(function(Bn,Ln){return Bn=removeBrackets(Bn),!$n&&Ln?"["+Bn+"]":Bn}).join($n?".":""):Cn}function isFlatArray(_n){return utils$1.isArray(_n)&&!_n.some(isVisitable)}const predicates=utils$1.toFlatObject(utils$1,{},null,function _n(Cn){return/^is[A-Z]/.test(Cn)});function toFormData(_n,Cn,$n){if(!utils$1.isObject(_n))throw new TypeError("target must be an object");Cn=Cn||new FormData,$n=utils$1.toFlatObject($n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(ni,ai){return!utils$1.isUndefined(ai[ni])});const Nn=$n.metaTokens,Bn=$n.visitor||Hn,Ln=$n.dots,In=$n.indexes,Dn=($n.Blob||typeof Blob<"u"&&Blob)&&utils$1.isSpecCompliantForm(Cn);if(!utils$1.isFunction(Bn))throw new TypeError("visitor must be a function");function Un(nr){if(nr===null)return"";if(utils$1.isDate(nr))return nr.toISOString();if(!Dn&&utils$1.isBlob(nr))throw new AxiosError("Blob is not supported. Use a Buffer instead.");return utils$1.isArrayBuffer(nr)||utils$1.isTypedArray(nr)?Dn&&typeof Blob=="function"?new Blob([nr]):Buffer.from(nr):nr}function Hn(nr,ni,ai){let si=nr;if(nr&&!ai&&typeof nr=="object"){if(utils$1.endsWith(ni,"{}"))ni=Nn?ni:ni.slice(0,-2),nr=JSON.stringify(nr);else if(utils$1.isArray(nr)&&isFlatArray(nr)||(utils$1.isFileList(nr)||utils$1.endsWith(ni,"[]"))&&(si=utils$1.toArray(nr)))return ni=removeBrackets(ni),si.forEach(function(Si,ri){!(utils$1.isUndefined(Si)||Si===null)&&Cn.append(In===!0?renderKey([ni],ri,Ln):In===null?ni:ni+"[]",Un(Si))}),!1}return isVisitable(nr)?!0:(Cn.append(renderKey(ai,ni,Ln),Un(nr)),!1)}const Xn=[],Gn=Object.assign(predicates,{defaultVisitor:Hn,convertValue:Un,isVisitable});function ei(nr,ni){if(!utils$1.isUndefined(nr)){if(Xn.indexOf(nr)!==-1)throw Error("Circular reference detected in "+ni.join("."));Xn.push(nr),utils$1.forEach(nr,function(si,gi){(!(utils$1.isUndefined(si)||si===null)&&Bn.call(Cn,si,utils$1.isString(gi)?gi.trim():gi,ni,Gn))===!0&&ei(si,ni?ni.concat(gi):[gi])}),Xn.pop()}}if(!utils$1.isObject(_n))throw new TypeError("data must be an object");return ei(_n),Cn}function encode$1(_n){const Cn={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(_n).replace(/[!'()~]|%20|%00/g,function(Nn){return Cn[Nn]})}function AxiosURLSearchParams(_n,Cn){this._pairs=[],_n&&toFormData(_n,this,Cn)}const prototype=AxiosURLSearchParams.prototype;prototype.append=function _n(Cn,$n){this._pairs.push([Cn,$n])},prototype.toString=function _n(Cn){const $n=Cn?function(Nn){return Cn.call(this,Nn,encode$1)}:encode$1;return this._pairs.map(function(Bn){return $n(Bn[0])+"="+$n(Bn[1])},"").join("&")};function encode(_n){return encodeURIComponent(_n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function buildURL(_n,Cn,$n){if(!Cn)return _n;const Nn=$n&&$n.encode||encode,Bn=$n&&$n.serialize;let Ln;if(Bn?Ln=Bn(Cn,$n):Ln=utils$1.isURLSearchParams(Cn)?Cn.toString():new AxiosURLSearchParams(Cn,$n).toString(Nn),Ln){const In=_n.indexOf("#");In!==-1&&(_n=_n.slice(0,In)),_n+=(_n.indexOf("?")===-1?"?":"&")+Ln}return _n}class InterceptorManager{constructor(){this.handlers=[]}use(Cn,$n,Nn){return this.handlers.push({fulfilled:Cn,rejected:$n,synchronous:Nn?Nn.synchronous:!1,runWhen:Nn?Nn.runWhen:null}),this.handlers.length-1}eject(Cn){this.handlers[Cn]&&(this.handlers[Cn]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(Cn){utils$1.forEach(this.handlers,function(Nn){Nn!==null&&Cn(Nn)})}}const InterceptorManager$1=InterceptorManager,transitionalDefaults={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},URLSearchParams$1=typeof URLSearchParams<"u"?URLSearchParams:AxiosURLSearchParams,FormData$1=typeof FormData<"u"?FormData:null,Blob$1=typeof Blob<"u"?Blob:null,platform$1={isBrowser:!0,classes:{URLSearchParams:URLSearchParams$1,FormData:FormData$1,Blob:Blob$1},protocols:["http","https","file","blob","url","data"]},hasBrowserEnv=typeof window<"u"&&typeof document<"u",hasStandardBrowserEnv=(_n=>hasBrowserEnv&&["ReactNative","NativeScript","NS"].indexOf(_n)<0)(typeof navigator<"u"&&navigator.product),hasStandardBrowserWebWorkerEnv=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),utils=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv,hasStandardBrowserEnv,hasStandardBrowserWebWorkerEnv},Symbol.toStringTag,{value:"Module"})),platform={...utils,...platform$1};function toURLEncodedForm(_n,Cn){return toFormData(_n,new platform.classes.URLSearchParams,Object.assign({visitor:function($n,Nn,Bn,Ln){return platform.isNode&&utils$1.isBuffer($n)?(this.append(Nn,$n.toString("base64")),!1):Ln.defaultVisitor.apply(this,arguments)}},Cn))}function parsePropPath(_n){return utils$1.matchAll(/\w+|\[(\w*)]/g,_n).map(Cn=>Cn[0]==="[]"?"":Cn[1]||Cn[0])}function arrayToObject(_n){const Cn={},$n=Object.keys(_n);let Nn;const Bn=$n.length;let Ln;for(Nn=0;Nn<Bn;Nn++)Ln=$n[Nn],Cn[Ln]=_n[Ln];return Cn}function formDataToJSON(_n){function Cn($n,Nn,Bn,Ln){let In=$n[Ln++];const Pn=Number.isFinite(+In),Dn=Ln>=$n.length;return In=!In&&utils$1.isArray(Bn)?Bn.length:In,Dn?(utils$1.hasOwnProp(Bn,In)?Bn[In]=[Bn[In],Nn]:Bn[In]=Nn,!Pn):((!Bn[In]||!utils$1.isObject(Bn[In]))&&(Bn[In]=[]),Cn($n,Nn,Bn[In],Ln)&&utils$1.isArray(Bn[In])&&(Bn[In]=arrayToObject(Bn[In])),!Pn)}if(utils$1.isFormData(_n)&&utils$1.isFunction(_n.entries)){const $n={};return utils$1.forEachEntry(_n,(Nn,Bn)=>{Cn(parsePropPath(Nn),Bn,$n,0)}),$n}return null}function stringifySafely(_n,Cn,$n){if(utils$1.isString(_n))try{return(Cn||JSON.parse)(_n),utils$1.trim(_n)}catch(Nn){if(Nn.name!=="SyntaxError")throw Nn}return($n||JSON.stringify)(_n)}const defaults={transitional:transitionalDefaults,adapter:["xhr","http"],transformRequest:[function _n(Cn,$n){const Nn=$n.getContentType()||"",Bn=Nn.indexOf("application/json")>-1,Ln=utils$1.isObject(Cn);if(Ln&&utils$1.isHTMLForm(Cn)&&(Cn=new FormData(Cn)),utils$1.isFormData(Cn))return Bn&&Bn?JSON.stringify(formDataToJSON(Cn)):Cn;if(utils$1.isArrayBuffer(Cn)||utils$1.isBuffer(Cn)||utils$1.isStream(Cn)||utils$1.isFile(Cn)||utils$1.isBlob(Cn))return Cn;if(utils$1.isArrayBufferView(Cn))return Cn.buffer;if(utils$1.isURLSearchParams(Cn))return $n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),Cn.toString();let Pn;if(Ln){if(Nn.indexOf("application/x-www-form-urlencoded")>-1)return toURLEncodedForm(Cn,this.formSerializer).toString();if((Pn=utils$1.isFileList(Cn))||Nn.indexOf("multipart/form-data")>-1){const Dn=this.env&&this.env.FormData;return toFormData(Pn?{"files[]":Cn}:Cn,Dn&&new Dn,this.formSerializer)}}return Ln||Bn?($n.setContentType("application/json",!1),stringifySafely(Cn)):Cn}],transformResponse:[function _n(Cn){const $n=this.transitional||defaults.transitional,Nn=$n&&$n.forcedJSONParsing,Bn=this.responseType==="json";if(Cn&&utils$1.isString(Cn)&&(Nn&&!this.responseType||Bn)){const In=!($n&&$n.silentJSONParsing)&&Bn;try{return JSON.parse(Cn)}catch(Pn){if(In)throw Pn.name==="SyntaxError"?AxiosError.from(Pn,AxiosError.ERR_BAD_RESPONSE,this,null,this.response):Pn}}return Cn}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform.classes.FormData,Blob:platform.classes.Blob},validateStatus:function _n(Cn){return Cn>=200&&Cn<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};utils$1.forEach(["delete","get","head","post","put","patch"],_n=>{defaults.headers[_n]={}});const defaults$1=defaults,ignoreDuplicateOf=utils$1.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"]),parseHeaders=_n=>{const Cn={};let $n,Nn,Bn;return _n&&_n.split(`
|
||
`).forEach(function(In){Bn=In.indexOf(":"),$n=In.substring(0,Bn).trim().toLowerCase(),Nn=In.substring(Bn+1).trim(),!(!$n||Cn[$n]&&ignoreDuplicateOf[$n])&&($n==="set-cookie"?Cn[$n]?Cn[$n].push(Nn):Cn[$n]=[Nn]:Cn[$n]=Cn[$n]?Cn[$n]+", "+Nn:Nn)}),Cn},$internals=Symbol("internals");function normalizeHeader(_n){return _n&&String(_n).trim().toLowerCase()}function normalizeValue(_n){return _n===!1||_n==null?_n:utils$1.isArray(_n)?_n.map(normalizeValue):String(_n)}function parseTokens(_n){const Cn=Object.create(null),$n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let Nn;for(;Nn=$n.exec(_n);)Cn[Nn[1]]=Nn[2];return Cn}const isValidHeaderName=_n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(_n.trim());function matchHeaderValue(_n,Cn,$n,Nn,Bn){if(utils$1.isFunction(Nn))return Nn.call(this,Cn,$n);if(Bn&&(Cn=$n),!!utils$1.isString(Cn)){if(utils$1.isString(Nn))return Cn.indexOf(Nn)!==-1;if(utils$1.isRegExp(Nn))return Nn.test(Cn)}}function formatHeader(_n){return _n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(Cn,$n,Nn)=>$n.toUpperCase()+Nn)}function buildAccessors(_n,Cn){const $n=utils$1.toCamelCase(" "+Cn);["get","set","has"].forEach(Nn=>{Object.defineProperty(_n,Nn+$n,{value:function(Bn,Ln,In){return this[Nn].call(this,Cn,Bn,Ln,In)},configurable:!0})})}class AxiosHeaders{constructor(Cn){Cn&&this.set(Cn)}set(Cn,$n,Nn){const Bn=this;function Ln(Pn,Dn,Un){const Hn=normalizeHeader(Dn);if(!Hn)throw new Error("header name must be a non-empty string");const Xn=utils$1.findKey(Bn,Hn);(!Xn||Bn[Xn]===void 0||Un===!0||Un===void 0&&Bn[Xn]!==!1)&&(Bn[Xn||Dn]=normalizeValue(Pn))}const In=(Pn,Dn)=>utils$1.forEach(Pn,(Un,Hn)=>Ln(Un,Hn,Dn));return utils$1.isPlainObject(Cn)||Cn instanceof this.constructor?In(Cn,$n):utils$1.isString(Cn)&&(Cn=Cn.trim())&&!isValidHeaderName(Cn)?In(parseHeaders(Cn),$n):Cn!=null&&Ln($n,Cn,Nn),this}get(Cn,$n){if(Cn=normalizeHeader(Cn),Cn){const Nn=utils$1.findKey(this,Cn);if(Nn){const Bn=this[Nn];if(!$n)return Bn;if($n===!0)return parseTokens(Bn);if(utils$1.isFunction($n))return $n.call(this,Bn,Nn);if(utils$1.isRegExp($n))return $n.exec(Bn);throw new TypeError("parser must be boolean|regexp|function")}}}has(Cn,$n){if(Cn=normalizeHeader(Cn),Cn){const Nn=utils$1.findKey(this,Cn);return!!(Nn&&this[Nn]!==void 0&&(!$n||matchHeaderValue(this,this[Nn],Nn,$n)))}return!1}delete(Cn,$n){const Nn=this;let Bn=!1;function Ln(In){if(In=normalizeHeader(In),In){const Pn=utils$1.findKey(Nn,In);Pn&&(!$n||matchHeaderValue(Nn,Nn[Pn],Pn,$n))&&(delete Nn[Pn],Bn=!0)}}return utils$1.isArray(Cn)?Cn.forEach(Ln):Ln(Cn),Bn}clear(Cn){const $n=Object.keys(this);let Nn=$n.length,Bn=!1;for(;Nn--;){const Ln=$n[Nn];(!Cn||matchHeaderValue(this,this[Ln],Ln,Cn,!0))&&(delete this[Ln],Bn=!0)}return Bn}normalize(Cn){const $n=this,Nn={};return utils$1.forEach(this,(Bn,Ln)=>{const In=utils$1.findKey(Nn,Ln);if(In){$n[In]=normalizeValue(Bn),delete $n[Ln];return}const Pn=Cn?formatHeader(Ln):String(Ln).trim();Pn!==Ln&&delete $n[Ln],$n[Pn]=normalizeValue(Bn),Nn[Pn]=!0}),this}concat(...Cn){return this.constructor.concat(this,...Cn)}toJSON(Cn){const $n=Object.create(null);return utils$1.forEach(this,(Nn,Bn)=>{Nn!=null&&Nn!==!1&&($n[Bn]=Cn&&utils$1.isArray(Nn)?Nn.join(", "):Nn)}),$n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([Cn,$n])=>Cn+": "+$n).join(`
|
||
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(Cn){return Cn instanceof this?Cn:new this(Cn)}static concat(Cn,...$n){const Nn=new this(Cn);return $n.forEach(Bn=>Nn.set(Bn)),Nn}static accessor(Cn){const Nn=(this[$internals]=this[$internals]={accessors:{}}).accessors,Bn=this.prototype;function Ln(In){const Pn=normalizeHeader(In);Nn[Pn]||(buildAccessors(Bn,In),Nn[Pn]=!0)}return utils$1.isArray(Cn)?Cn.forEach(Ln):Ln(Cn),this}}AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),utils$1.reduceDescriptors(AxiosHeaders.prototype,({value:_n},Cn)=>{let $n=Cn[0].toUpperCase()+Cn.slice(1);return{get:()=>_n,set(Nn){this[$n]=Nn}}}),utils$1.freezeMethods(AxiosHeaders);const AxiosHeaders$1=AxiosHeaders;function transformData(_n,Cn){const $n=this||defaults$1,Nn=Cn||$n,Bn=AxiosHeaders$1.from(Nn.headers);let Ln=Nn.data;return utils$1.forEach(_n,function(Pn){Ln=Pn.call($n,Ln,Bn.normalize(),Cn?Cn.status:void 0)}),Bn.normalize(),Ln}function isCancel(_n){return!!(_n&&_n.__CANCEL__)}function CanceledError(_n,Cn,$n){AxiosError.call(this,_n??"canceled",AxiosError.ERR_CANCELED,Cn,$n),this.name="CanceledError"}utils$1.inherits(CanceledError,AxiosError,{__CANCEL__:!0});function settle(_n,Cn,$n){const Nn=$n.config.validateStatus;!$n.status||!Nn||Nn($n.status)?_n($n):Cn(new AxiosError("Request failed with status code "+$n.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor($n.status/100)-4],$n.config,$n.request,$n))}const cookies=platform.hasStandardBrowserEnv?function _n(){return{write:function($n,Nn,Bn,Ln,In,Pn){const Dn=[];Dn.push($n+"="+encodeURIComponent(Nn)),utils$1.isNumber(Bn)&&Dn.push("expires="+new Date(Bn).toGMTString()),utils$1.isString(Ln)&&Dn.push("path="+Ln),utils$1.isString(In)&&Dn.push("domain="+In),Pn===!0&&Dn.push("secure"),document.cookie=Dn.join("; ")},read:function($n){const Nn=document.cookie.match(new RegExp("(^|;\\s*)("+$n+")=([^;]*)"));return Nn?decodeURIComponent(Nn[3]):null},remove:function($n){this.write($n,"",Date.now()-864e5)}}}():function _n(){return{write:function(){},read:function(){return null},remove:function(){}}}();function isAbsoluteURL(_n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(_n)}function combineURLs(_n,Cn){return Cn?_n.replace(/\/+$/,"")+"/"+Cn.replace(/^\/+/,""):_n}function buildFullPath(_n,Cn){return _n&&!isAbsoluteURL(Cn)?combineURLs(_n,Cn):Cn}const isURLSameOrigin=platform.hasStandardBrowserEnv?function _n(){const Cn=/(msie|trident)/i.test(navigator.userAgent),$n=document.createElement("a");let Nn;function Bn(Ln){let In=Ln;return Cn&&($n.setAttribute("href",In),In=$n.href),$n.setAttribute("href",In),{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 Nn=Bn(window.location.href),function(In){const Pn=utils$1.isString(In)?Bn(In):In;return Pn.protocol===Nn.protocol&&Pn.host===Nn.host}}():function _n(){return function(){return!0}}();function parseProtocol(_n){const Cn=/^([-+\w]{1,25})(:?\/\/|:)/.exec(_n);return Cn&&Cn[1]||""}function speedometer(_n,Cn){_n=_n||10;const $n=new Array(_n),Nn=new Array(_n);let Bn=0,Ln=0,In;return Cn=Cn!==void 0?Cn:1e3,function(Dn){const Un=Date.now(),Hn=Nn[Ln];In||(In=Un),$n[Bn]=Dn,Nn[Bn]=Un;let Xn=Ln,Gn=0;for(;Xn!==Bn;)Gn+=$n[Xn++],Xn=Xn%_n;if(Bn=(Bn+1)%_n,Bn===Ln&&(Ln=(Ln+1)%_n),Un-In<Cn)return;const ei=Hn&&Un-Hn;return ei?Math.round(Gn*1e3/ei):void 0}}function progressEventReducer(_n,Cn){let $n=0;const Nn=speedometer(50,250);return Bn=>{const Ln=Bn.loaded,In=Bn.lengthComputable?Bn.total:void 0,Pn=Ln-$n,Dn=Nn(Pn),Un=Ln<=In;$n=Ln;const Hn={loaded:Ln,total:In,progress:In?Ln/In:void 0,bytes:Pn,rate:Dn||void 0,estimated:Dn&&In&&Un?(In-Ln)/Dn:void 0,event:Bn};Hn[Cn?"download":"upload"]=!0,_n(Hn)}}const isXHRAdapterSupported=typeof XMLHttpRequest<"u",xhrAdapter=isXHRAdapterSupported&&function(_n){return new Promise(function($n,Nn){let Bn=_n.data;const Ln=AxiosHeaders$1.from(_n.headers).normalize(),In=_n.responseType;let Pn;function Dn(){_n.cancelToken&&_n.cancelToken.unsubscribe(Pn),_n.signal&&_n.signal.removeEventListener("abort",Pn)}let Un;if(utils$1.isFormData(Bn)){if(platform.hasStandardBrowserEnv||platform.hasStandardBrowserWebWorkerEnv)Ln.setContentType(!1);else if((Un=Ln.getContentType())!==!1){const[nr,...ni]=Un?Un.split(";").map(ai=>ai.trim()).filter(Boolean):[];Ln.setContentType([nr||"multipart/form-data",...ni].join("; "))}}let Hn=new XMLHttpRequest;if(_n.auth){const nr=_n.auth.username||"",ni=_n.auth.password?unescape(encodeURIComponent(_n.auth.password)):"";Ln.set("Authorization","Basic "+btoa(nr+":"+ni))}const Xn=buildFullPath(_n.baseURL,_n.url);Hn.open(_n.method.toUpperCase(),buildURL(Xn,_n.params,_n.paramsSerializer),!0),Hn.timeout=_n.timeout;function Gn(){if(!Hn)return;const nr=AxiosHeaders$1.from("getAllResponseHeaders"in Hn&&Hn.getAllResponseHeaders()),ai={data:!In||In==="text"||In==="json"?Hn.responseText:Hn.response,status:Hn.status,statusText:Hn.statusText,headers:nr,config:_n,request:Hn};settle(function(gi){$n(gi),Dn()},function(gi){Nn(gi),Dn()},ai),Hn=null}if("onloadend"in Hn?Hn.onloadend=Gn:Hn.onreadystatechange=function(){!Hn||Hn.readyState!==4||Hn.status===0&&!(Hn.responseURL&&Hn.responseURL.indexOf("file:")===0)||setTimeout(Gn)},Hn.onabort=function(){Hn&&(Nn(new AxiosError("Request aborted",AxiosError.ECONNABORTED,_n,Hn)),Hn=null)},Hn.onerror=function(){Nn(new AxiosError("Network Error",AxiosError.ERR_NETWORK,_n,Hn)),Hn=null},Hn.ontimeout=function(){let ni=_n.timeout?"timeout of "+_n.timeout+"ms exceeded":"timeout exceeded";const ai=_n.transitional||transitionalDefaults;_n.timeoutErrorMessage&&(ni=_n.timeoutErrorMessage),Nn(new AxiosError(ni,ai.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,_n,Hn)),Hn=null},platform.hasStandardBrowserEnv){const nr=isURLSameOrigin(Xn)&&_n.xsrfCookieName&&cookies.read(_n.xsrfCookieName);nr&&Ln.set(_n.xsrfHeaderName,nr)}Bn===void 0&&Ln.setContentType(null),"setRequestHeader"in Hn&&utils$1.forEach(Ln.toJSON(),function(ni,ai){Hn.setRequestHeader(ai,ni)}),utils$1.isUndefined(_n.withCredentials)||(Hn.withCredentials=!!_n.withCredentials),In&&In!=="json"&&(Hn.responseType=_n.responseType),typeof _n.onDownloadProgress=="function"&&Hn.addEventListener("progress",progressEventReducer(_n.onDownloadProgress,!0)),typeof _n.onUploadProgress=="function"&&Hn.upload&&Hn.upload.addEventListener("progress",progressEventReducer(_n.onUploadProgress)),(_n.cancelToken||_n.signal)&&(Pn=nr=>{Hn&&(Nn(!nr||nr.type?new CanceledError(null,_n,Hn):nr),Hn.abort(),Hn=null)},_n.cancelToken&&_n.cancelToken.subscribe(Pn),_n.signal&&(_n.signal.aborted?Pn():_n.signal.addEventListener("abort",Pn)));const ei=parseProtocol(Xn);if(ei&&platform.protocols.indexOf(ei)===-1){Nn(new AxiosError("Unsupported protocol "+ei+":",AxiosError.ERR_BAD_REQUEST,_n));return}Hn.send(Bn||null)})},knownAdapters={http:httpAdapter,xhr:xhrAdapter};utils$1.forEach(knownAdapters,(_n,Cn)=>{if(_n){try{Object.defineProperty(_n,"name",{value:Cn})}catch{}Object.defineProperty(_n,"adapterName",{value:Cn})}});const renderReason=_n=>`- ${_n}`,isResolvedHandle=_n=>utils$1.isFunction(_n)||_n===null||_n===!1,adapters={getAdapter:_n=>{_n=utils$1.isArray(_n)?_n:[_n];const{length:Cn}=_n;let $n,Nn;const Bn={};for(let Ln=0;Ln<Cn;Ln++){$n=_n[Ln];let In;if(Nn=$n,!isResolvedHandle($n)&&(Nn=knownAdapters[(In=String($n)).toLowerCase()],Nn===void 0))throw new AxiosError(`Unknown adapter '${In}'`);if(Nn)break;Bn[In||"#"+Ln]=Nn}if(!Nn){const Ln=Object.entries(Bn).map(([Pn,Dn])=>`adapter ${Pn} `+(Dn===!1?"is not supported by the environment":"is not available in the build"));let In=Cn?Ln.length>1?`since :
|
||
`+Ln.map(renderReason).join(`
|
||
`):" "+renderReason(Ln[0]):"as no adapter specified";throw new AxiosError("There is no suitable adapter to dispatch the request "+In,"ERR_NOT_SUPPORT")}return Nn},adapters:knownAdapters};function throwIfCancellationRequested(_n){if(_n.cancelToken&&_n.cancelToken.throwIfRequested(),_n.signal&&_n.signal.aborted)throw new CanceledError(null,_n)}function dispatchRequest(_n){return throwIfCancellationRequested(_n),_n.headers=AxiosHeaders$1.from(_n.headers),_n.data=transformData.call(_n,_n.transformRequest),["post","put","patch"].indexOf(_n.method)!==-1&&_n.headers.setContentType("application/x-www-form-urlencoded",!1),adapters.getAdapter(_n.adapter||defaults$1.adapter)(_n).then(function(Nn){return throwIfCancellationRequested(_n),Nn.data=transformData.call(_n,_n.transformResponse,Nn),Nn.headers=AxiosHeaders$1.from(Nn.headers),Nn},function(Nn){return isCancel(Nn)||(throwIfCancellationRequested(_n),Nn&&Nn.response&&(Nn.response.data=transformData.call(_n,_n.transformResponse,Nn.response),Nn.response.headers=AxiosHeaders$1.from(Nn.response.headers))),Promise.reject(Nn)})}const headersToObject=_n=>_n instanceof AxiosHeaders$1?_n.toJSON():_n;function mergeConfig(_n,Cn){Cn=Cn||{};const $n={};function Nn(Un,Hn,Xn){return utils$1.isPlainObject(Un)&&utils$1.isPlainObject(Hn)?utils$1.merge.call({caseless:Xn},Un,Hn):utils$1.isPlainObject(Hn)?utils$1.merge({},Hn):utils$1.isArray(Hn)?Hn.slice():Hn}function Bn(Un,Hn,Xn){if(utils$1.isUndefined(Hn)){if(!utils$1.isUndefined(Un))return Nn(void 0,Un,Xn)}else return Nn(Un,Hn,Xn)}function Ln(Un,Hn){if(!utils$1.isUndefined(Hn))return Nn(void 0,Hn)}function In(Un,Hn){if(utils$1.isUndefined(Hn)){if(!utils$1.isUndefined(Un))return Nn(void 0,Un)}else return Nn(void 0,Hn)}function Pn(Un,Hn,Xn){if(Xn in Cn)return Nn(Un,Hn);if(Xn in _n)return Nn(void 0,Un)}const Dn={url:Ln,method:Ln,data:Ln,baseURL:In,transformRequest:In,transformResponse:In,paramsSerializer:In,timeout:In,timeoutMessage:In,withCredentials:In,adapter:In,responseType:In,xsrfCookieName:In,xsrfHeaderName:In,onUploadProgress:In,onDownloadProgress:In,decompress:In,maxContentLength:In,maxBodyLength:In,beforeRedirect:In,transport:In,httpAgent:In,httpsAgent:In,cancelToken:In,socketPath:In,responseEncoding:In,validateStatus:Pn,headers:(Un,Hn)=>Bn(headersToObject(Un),headersToObject(Hn),!0)};return utils$1.forEach(Object.keys(Object.assign({},_n,Cn)),function(Hn){const Xn=Dn[Hn]||Bn,Gn=Xn(_n[Hn],Cn[Hn],Hn);utils$1.isUndefined(Gn)&&Xn!==Pn||($n[Hn]=Gn)}),$n}const VERSION="1.6.1",validators$1={};["object","boolean","number","function","string","symbol"].forEach((_n,Cn)=>{validators$1[_n]=function(Nn){return typeof Nn===_n||"a"+(Cn<1?"n ":" ")+_n}});const deprecatedWarnings={};validators$1.transitional=function _n(Cn,$n,Nn){function Bn(Ln,In){return"[Axios v"+VERSION+"] Transitional option '"+Ln+"'"+In+(Nn?". "+Nn:"")}return(Ln,In,Pn)=>{if(Cn===!1)throw new AxiosError(Bn(In," has been removed"+($n?" in "+$n:"")),AxiosError.ERR_DEPRECATED);return $n&&!deprecatedWarnings[In]&&(deprecatedWarnings[In]=!0,console.warn(Bn(In," has been deprecated since v"+$n+" and will be removed in the near future"))),Cn?Cn(Ln,In,Pn):!0}};function assertOptions(_n,Cn,$n){if(typeof _n!="object")throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);const Nn=Object.keys(_n);let Bn=Nn.length;for(;Bn-- >0;){const Ln=Nn[Bn],In=Cn[Ln];if(In){const Pn=_n[Ln],Dn=Pn===void 0||In(Pn,Ln,_n);if(Dn!==!0)throw new AxiosError("option "+Ln+" must be "+Dn,AxiosError.ERR_BAD_OPTION_VALUE);continue}if($n!==!0)throw new AxiosError("Unknown option "+Ln,AxiosError.ERR_BAD_OPTION)}}const validator={assertOptions,validators:validators$1},validators=validator.validators;class Axios{constructor(Cn){this.defaults=Cn,this.interceptors={request:new InterceptorManager$1,response:new InterceptorManager$1}}request(Cn,$n){typeof Cn=="string"?($n=$n||{},$n.url=Cn):$n=Cn||{},$n=mergeConfig(this.defaults,$n);const{transitional:Nn,paramsSerializer:Bn,headers:Ln}=$n;Nn!==void 0&&validator.assertOptions(Nn,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),Bn!=null&&(utils$1.isFunction(Bn)?$n.paramsSerializer={serialize:Bn}:validator.assertOptions(Bn,{encode:validators.function,serialize:validators.function},!0)),$n.method=($n.method||this.defaults.method||"get").toLowerCase();let In=Ln&&utils$1.merge(Ln.common,Ln[$n.method]);Ln&&utils$1.forEach(["delete","get","head","post","put","patch","common"],nr=>{delete Ln[nr]}),$n.headers=AxiosHeaders$1.concat(In,Ln);const Pn=[];let Dn=!0;this.interceptors.request.forEach(function(ni){typeof ni.runWhen=="function"&&ni.runWhen($n)===!1||(Dn=Dn&&ni.synchronous,Pn.unshift(ni.fulfilled,ni.rejected))});const Un=[];this.interceptors.response.forEach(function(ni){Un.push(ni.fulfilled,ni.rejected)});let Hn,Xn=0,Gn;if(!Dn){const nr=[dispatchRequest.bind(this),void 0];for(nr.unshift.apply(nr,Pn),nr.push.apply(nr,Un),Gn=nr.length,Hn=Promise.resolve($n);Xn<Gn;)Hn=Hn.then(nr[Xn++],nr[Xn++]);return Hn}Gn=Pn.length;let ei=$n;for(Xn=0;Xn<Gn;){const nr=Pn[Xn++],ni=Pn[Xn++];try{ei=nr(ei)}catch(ai){ni.call(this,ai);break}}try{Hn=dispatchRequest.call(this,ei)}catch(nr){return Promise.reject(nr)}for(Xn=0,Gn=Un.length;Xn<Gn;)Hn=Hn.then(Un[Xn++],Un[Xn++]);return Hn}getUri(Cn){Cn=mergeConfig(this.defaults,Cn);const $n=buildFullPath(Cn.baseURL,Cn.url);return buildURL($n,Cn.params,Cn.paramsSerializer)}}utils$1.forEach(["delete","get","head","options"],function _n(Cn){Axios.prototype[Cn]=function($n,Nn){return this.request(mergeConfig(Nn||{},{method:Cn,url:$n,data:(Nn||{}).data}))}}),utils$1.forEach(["post","put","patch"],function _n(Cn){function $n(Nn){return function(Ln,In,Pn){return this.request(mergeConfig(Pn||{},{method:Cn,headers:Nn?{"Content-Type":"multipart/form-data"}:{},url:Ln,data:In}))}}Axios.prototype[Cn]=$n(),Axios.prototype[Cn+"Form"]=$n(!0)});const Axios$1=Axios;class CancelToken{constructor(Cn){if(typeof Cn!="function")throw new TypeError("executor must be a function.");let $n;this.promise=new Promise(function(Ln){$n=Ln});const Nn=this;this.promise.then(Bn=>{if(!Nn._listeners)return;let Ln=Nn._listeners.length;for(;Ln-- >0;)Nn._listeners[Ln](Bn);Nn._listeners=null}),this.promise.then=Bn=>{let Ln;const In=new Promise(Pn=>{Nn.subscribe(Pn),Ln=Pn}).then(Bn);return In.cancel=function(){Nn.unsubscribe(Ln)},In},Cn(function(Ln,In,Pn){Nn.reason||(Nn.reason=new CanceledError(Ln,In,Pn),$n(Nn.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(Cn){if(this.reason){Cn(this.reason);return}this._listeners?this._listeners.push(Cn):this._listeners=[Cn]}unsubscribe(Cn){if(!this._listeners)return;const $n=this._listeners.indexOf(Cn);$n!==-1&&this._listeners.splice($n,1)}static source(){let Cn;return{token:new CancelToken(function(Bn){Cn=Bn}),cancel:Cn}}}const CancelToken$1=CancelToken;function spread(_n){return function($n){return _n.apply(null,$n)}}function isAxiosError(_n){return utils$1.isObject(_n)&&_n.isAxiosError===!0}const HttpStatusCode={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(HttpStatusCode).forEach(([_n,Cn])=>{HttpStatusCode[Cn]=_n});const HttpStatusCode$1=HttpStatusCode;function createInstance(_n){const Cn=new Axios$1(_n),$n=bind(Axios$1.prototype.request,Cn);return utils$1.extend($n,Axios$1.prototype,Cn,{allOwnKeys:!0}),utils$1.extend($n,Cn,null,{allOwnKeys:!0}),$n.create=function(Bn){return createInstance(mergeConfig(_n,Bn))},$n}const axios=createInstance(defaults$1);axios.Axios=Axios$1,axios.CanceledError=CanceledError,axios.CancelToken=CancelToken$1,axios.isCancel=isCancel,axios.VERSION=VERSION,axios.toFormData=toFormData,axios.AxiosError=AxiosError,axios.Cancel=axios.CanceledError,axios.all=function _n(Cn){return Promise.all(Cn)},axios.spread=spread,axios.isAxiosError=isAxiosError,axios.mergeConfig=mergeConfig,axios.AxiosHeaders=AxiosHeaders$1,axios.formToJSON=_n=>formDataToJSON(utils$1.isHTMLForm(_n)?new FormData(_n):_n),axios.getAdapter=adapters.getAdapter,axios.HttpStatusCode=HttpStatusCode$1,axios.default=axios;const axios$1=axios;class GradioAPI{constructor(){wl(this,"apiBaseURL","");this.apiBaseURL=common$1.apiUrl(),this.api=axios$1.create({baseURL:this.apiBaseURL,timeout:6e4,headers:{"Content-Type":"application/json"}})}async getVersion(){return(await this.api.get("/get_version")).data}async getRemoteVersions(Cn=1,$n=100){return(await this.api.get("/get_remote_versions",{params:{page:Cn,per_page:$n}})).data.versions}async getConfig(){return(await this.api.get("/get_config")).data}async installPackage(Cn,$n){const Nn={timeout:1e7};return(await this.api.post("/install_package",{name:Cn,package:$n},Nn)).data.result}async getExtensions(){return(await this.api.get("/get_extensions")).data.extensions}async tokenCounter(Cn,$n){return(await this.api.post("/token_counter",{text:Cn,steps:$n})).data}async getData(Cn){return(await this.api.get("/get_data",{params:{key:Cn}})).data.data}async getDatas(Cn){return typeof Cn=="object"&&(Cn=Cn.join(",")),(await this.api.get("/get_datas",{params:{keys:Cn}})).data.datas}async setData(Cn,$n){return(await this.api.post("/set_data",{key:Cn,data:$n})).data.success}async setDatas(Cn){return(await this.api.post("/set_datas",{datas:Cn})).data.success}async getDataListItem(Cn,$n){return(await this.api.get("/get_data_list_item",{params:{key:Cn,index:$n}})).data.item}async pushDataList(Cn,$n){return(await this.api.post("/push_data_list",{key:Cn,item:$n})).data.success}async popDataList(Cn){return(await this.api.post("/pop_data_list",{key:Cn})).data.item}async shiftDataList(Cn){return(await this.api.post("/shift_data_list",{key:Cn})).data.item}async removeDataList(Cn,$n){return(await this.api.post("/remove_data_list",{key:Cn,index:$n})).data.success}async clearDataList(Cn){return(await this.api.post("/clear_data_list",{key:Cn})).data.success}async getHistories(Cn){return(await this.api.get("/get_histories",{params:{type:Cn}})).data.histories}async getFavorites(Cn){return(await this.api.get("/get_favorites",{params:{type:Cn}})).data.favorites}async pushHistory(Cn,$n,Nn,Bn=""){return(await this.api.post("/push_history",{type:Cn,tags:$n,prompt:Nn,name:Bn})).data.success}async pushFavorite(Cn,$n,Nn,Bn=""){return(await this.api.post("/push_favorite",{type:Cn,tags:$n,prompt:Nn,name:Bn})).data.success}async moveUpFavorite(Cn,$n){return(await this.api.post("/move_up_favorite",{type:Cn,id:$n})).data.success}async moveDownFavorite(Cn,$n){return(await this.api.post("/move_down_favorite",{type:Cn,id:$n})).data.success}async getLatestHistory(Cn){return(await this.api.get("/get_latest_history",{params:{type:Cn}})).data.history}async setHistory(Cn,$n,Nn,Bn,Ln){return(await this.api.post("/set_history",{type:Cn,id:$n,tags:Nn,prompt:Bn,name:Ln})).data.success}async setHistoryName(Cn,$n,Nn){return(await this.api.post("/set_history_name",{type:Cn,id:$n,name:Nn})).data.success}async setFavoriteName(Cn,$n,Nn){return(await this.api.post("/set_favorite_name",{type:Cn,id:$n,name:Nn})).data.success}async doFavorite(Cn,$n){return(await this.api.post("/dofavorite",{type:Cn,id:$n})).data.success}async unFavorite(Cn,$n){return(await this.api.post("/unfavorite",{type:Cn,id:$n})).data.success}async deleteHistory(Cn,$n){return(await this.api.post("/delete_history",{type:Cn,id:$n})).data.success}async deleteHistories(Cn){return(await this.api.post("/delete_histories",{type:Cn})).data.success}async translate(Cn,$n,Nn,Bn,Ln={}){let In=(await this.api.post("/translate",{text:Cn,from_lang:$n,to_lang:Nn,api:Bn,api_config:Ln})).data;return In.translated_text&&(In.translated_text=common$1.unescapeHtml(In.translated_text)),In}async translates(Cn,$n,Nn,Bn,Ln={}){let In=(await this.api.post("/translates",{texts:Cn,from_lang:$n,to_lang:Nn,api:Bn,api_config:Ln})).data;return In.translated_text&&In.translated_text.forEach((Pn,Dn)=>{In.translated_text[Dn]=common$1.unescapeHtml(Pn)}),In}async getCSVs(){return(await this.api.get("/get_csvs")).data.csvs}async getCSV(Cn){return(await this.api.get("/get_csv",{params:{key:Cn}})).data}async styles(Cn,$n=""){return(await this.api.get("/styles",{params:{file:Cn,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(Cn,$n){return(await this.api.post("/gen_openai",{messages:Cn,api_config:$n})).data}async mbart50Initialize(){const Cn={timeout:1e11};return(await this.api.post("/mbart50_initialize",{},Cn)).data}async getGroupTags(Cn){return(await this.api.get("/get_group_tags",{params:{lang:Cn}})).data.tags}}const CommonMixin={data(){return{gradioAPI:null}},beforeMount(){this.gradioAPI=new GradioAPI},methods:{loadExtraNetworks(_n=0){if(common$1.gradioApp().querySelectorAll("#txt2img_checkpoints_cards .card").length)return this._loadExtraNetworks();if(_n>10)return this._loadExtraNetworks();setTimeout(this.loadExtraNetworks,1e3,_n+1)},_loadExtraNetworks(){this.gradioAPI.getExtraNetworks().then(_n=>{_n&&(this.extraNetworks=_n,_n.forEach(Cn=>{if(Cn.name==="textual inversion"){let $n={};Cn.items.forEach(Nn=>{$n[Nn.name.toLowerCase()]=Nn.name}),this.embeddings=$n}else if(Cn.name==="lora"||Cn.name==="lycoris"){let $n={};Cn.items.forEach(Nn=>{$n[Nn.name.toLowerCase()]=Nn.name,Nn.output_name&&($n[Nn.output_name.toLowerCase()]=Nn.name)}),Cn.name==="lora"?this.loras=$n:this.lycos=$n}}))})},getExtraNetworkFullName(_n,Cn="lora"){var $n,Nn,Bn;if(typeof this.extraNetworks!="object")return _n;for(let Ln of this.extraNetworks){if(Ln.name!==Cn)continue;const In=_n.toLowerCase();for(let Pn of Ln.items)if(Pn.name.toLowerCase()===In||(($n=Pn.output_name)==null?void 0:$n.toLowerCase())===In)return(Nn=Pn.civitai_info)!=null&&Nn.name?(Bn=Pn.civitai_info.model)!=null&&Bn.name&&Pn.civitai_info.model.name!==Pn.civitai_info.name?"["+Pn.civitai_info.name+"] "+Pn.civitai_info.model.name:Pn.civitai_info.name:_n}return _n},loraExists(_n){return typeof this.loras!="object"?_n:this.loras[_n.toLowerCase()]??!1},lycoExists(_n){return typeof this.lycos!="object"?_n:this.lycos[_n.toLowerCase()]??!1},embeddingExists(_n){return typeof this.embeddings!="object"?_n:this.embeddings[_n.toLowerCase()]??!1}}};var BOX_CLASS="tippy-box",CONTENT_CLASS="tippy-content",BACKDROP_CLASS="tippy-backdrop",ARROW_CLASS="tippy-arrow",SVG_ARROW_CLASS="tippy-svg-arrow",TOUCH_OPTIONS={passive:!0,capture:!0},TIPPY_DEFAULT_APPEND_TO=function _n(){return document.body};function getValueAtIndexOrReturn(_n,Cn,$n){if(Array.isArray(_n)){var Nn=_n[Cn];return Nn??(Array.isArray($n)?$n[Cn]:$n)}return _n}function isType(_n,Cn){var $n={}.toString.call(_n);return $n.indexOf("[object")===0&&$n.indexOf(Cn+"]")>-1}function invokeWithArgsOrReturn(_n,Cn){return typeof _n=="function"?_n.apply(void 0,Cn):_n}function debounce(_n,Cn){if(Cn===0)return _n;var $n;return function(Nn){clearTimeout($n),$n=setTimeout(function(){_n(Nn)},Cn)}}function splitBySpaces(_n){return _n.split(/\s+/).filter(Boolean)}function normalizeToArray(_n){return[].concat(_n)}function pushIfUnique(_n,Cn){_n.indexOf(Cn)===-1&&_n.push(Cn)}function unique(_n){return _n.filter(function(Cn,$n){return _n.indexOf(Cn)===$n})}function getBasePlacement(_n){return _n.split("-")[0]}function arrayFrom(_n){return[].slice.call(_n)}function removeUndefinedProps(_n){return Object.keys(_n).reduce(function(Cn,$n){return _n[$n]!==void 0&&(Cn[$n]=_n[$n]),Cn},{})}function div(){return document.createElement("div")}function isElement(_n){return["Element","Fragment"].some(function(Cn){return isType(_n,Cn)})}function isNodeList(_n){return isType(_n,"NodeList")}function isMouseEvent(_n){return isType(_n,"MouseEvent")}function isReferenceElement(_n){return!!(_n&&_n._tippy&&_n._tippy.reference===_n)}function getArrayOfElements(_n){return isElement(_n)?[_n]:isNodeList(_n)?arrayFrom(_n):Array.isArray(_n)?_n:arrayFrom(document.querySelectorAll(_n))}function setTransitionDuration(_n,Cn){_n.forEach(function($n){$n&&($n.style.transitionDuration=Cn+"ms")})}function setVisibilityState(_n,Cn){_n.forEach(function($n){$n&&$n.setAttribute("data-state",Cn)})}function getOwnerDocument(_n){var Cn,$n=normalizeToArray(_n),Nn=$n[0];return Nn!=null&&(Cn=Nn.ownerDocument)!=null&&Cn.body?Nn.ownerDocument:document}function isCursorOutsideInteractiveBorder(_n,Cn){var $n=Cn.clientX,Nn=Cn.clientY;return _n.every(function(Bn){var Ln=Bn.popperRect,In=Bn.popperState,Pn=Bn.props,Dn=Pn.interactiveBorder,Un=getBasePlacement(In.placement),Hn=In.modifiersData.offset;if(!Hn)return!0;var Xn=Un==="bottom"?Hn.top.y:0,Gn=Un==="top"?Hn.bottom.y:0,ei=Un==="right"?Hn.left.x:0,nr=Un==="left"?Hn.right.x:0,ni=Ln.top-Nn+Xn>Dn,ai=Nn-Ln.bottom-Gn>Dn,si=Ln.left-$n+ei>Dn,gi=$n-Ln.right-nr>Dn;return ni||ai||si||gi})}function updateTransitionEndListener(_n,Cn,$n){var Nn=Cn+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(Bn){_n[Nn](Bn,$n)})}function actualContains(_n,Cn){for(var $n=Cn;$n;){var Nn;if(_n.contains($n))return!0;$n=$n.getRootNode==null||(Nn=$n.getRootNode())==null?void 0:Nn.host}return!1}var currentInput={isTouch:!1},lastMouseMoveTime=0;function onDocumentTouchStart(){currentInput.isTouch||(currentInput.isTouch=!0,window.performance&&document.addEventListener("mousemove",onDocumentMouseMove))}function onDocumentMouseMove(){var _n=performance.now();_n-lastMouseMoveTime<20&&(currentInput.isTouch=!1,document.removeEventListener("mousemove",onDocumentMouseMove)),lastMouseMoveTime=_n}function onWindowBlur(){var _n=document.activeElement;if(isReferenceElement(_n)){var Cn=_n._tippy;_n.blur&&!Cn.state.isVisible&&_n.blur()}}function bindGlobalEventListeners(){document.addEventListener("touchstart",onDocumentTouchStart,TOUCH_OPTIONS),window.addEventListener("blur",onWindowBlur)}var isBrowser=typeof window<"u"&&typeof document<"u",isIE11=isBrowser?!!window.msCrypto:!1,pluginProps={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},renderProps={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},defaultProps=Object.assign({appendTo:TIPPY_DEFAULT_APPEND_TO,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 _n(){},onBeforeUpdate:function _n(){},onCreate:function _n(){},onDestroy:function _n(){},onHidden:function _n(){},onHide:function _n(){},onMount:function _n(){},onShow:function _n(){},onShown:function _n(){},onTrigger:function _n(){},onUntrigger:function _n(){},onClickOutside:function _n(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},pluginProps,renderProps),defaultKeys=Object.keys(defaultProps),setDefaultProps=function _n(Cn){var $n=Object.keys(Cn);$n.forEach(function(Nn){defaultProps[Nn]=Cn[Nn]})};function getExtendedPassedProps(_n){var Cn=_n.plugins||[],$n=Cn.reduce(function(Nn,Bn){var Ln=Bn.name,In=Bn.defaultValue;if(Ln){var Pn;Nn[Ln]=_n[Ln]!==void 0?_n[Ln]:(Pn=defaultProps[Ln])!=null?Pn:In}return Nn},{});return Object.assign({},_n,$n)}function getDataAttributeProps(_n,Cn){var $n=Cn?Object.keys(getExtendedPassedProps(Object.assign({},defaultProps,{plugins:Cn}))):defaultKeys,Nn=$n.reduce(function(Bn,Ln){var In=(_n.getAttribute("data-tippy-"+Ln)||"").trim();if(!In)return Bn;if(Ln==="content")Bn[Ln]=In;else try{Bn[Ln]=JSON.parse(In)}catch{Bn[Ln]=In}return Bn},{});return Nn}function evaluateProps(_n,Cn){var $n=Object.assign({},Cn,{content:invokeWithArgsOrReturn(Cn.content,[_n])},Cn.ignoreAttributes?{}:getDataAttributeProps(_n,Cn.plugins));return $n.aria=Object.assign({},defaultProps.aria,$n.aria),$n.aria={expanded:$n.aria.expanded==="auto"?Cn.interactive:$n.aria.expanded,content:$n.aria.content==="auto"?Cn.interactive?null:"describedby":$n.aria.content},$n}var innerHTML=function _n(){return"innerHTML"};function dangerouslySetInnerHTML(_n,Cn){_n[innerHTML()]=Cn}function createArrowElement(_n){var Cn=div();return _n===!0?Cn.className=ARROW_CLASS:(Cn.className=SVG_ARROW_CLASS,isElement(_n)?Cn.appendChild(_n):dangerouslySetInnerHTML(Cn,_n)),Cn}function setContent(_n,Cn){isElement(Cn.content)?(dangerouslySetInnerHTML(_n,""),_n.appendChild(Cn.content)):typeof Cn.content!="function"&&(Cn.allowHTML?dangerouslySetInnerHTML(_n,Cn.content):_n.textContent=Cn.content)}function getChildren(_n){var Cn=_n.firstElementChild,$n=arrayFrom(Cn.children);return{box:Cn,content:$n.find(function(Nn){return Nn.classList.contains(CONTENT_CLASS)}),arrow:$n.find(function(Nn){return Nn.classList.contains(ARROW_CLASS)||Nn.classList.contains(SVG_ARROW_CLASS)}),backdrop:$n.find(function(Nn){return Nn.classList.contains(BACKDROP_CLASS)})}}function render(_n){var Cn=div(),$n=div();$n.className=BOX_CLASS,$n.setAttribute("data-state","hidden"),$n.setAttribute("tabindex","-1");var Nn=div();Nn.className=CONTENT_CLASS,Nn.setAttribute("data-state","hidden"),setContent(Nn,_n.props),Cn.appendChild($n),$n.appendChild(Nn),Bn(_n.props,_n.props);function Bn(Ln,In){var Pn=getChildren(Cn),Dn=Pn.box,Un=Pn.content,Hn=Pn.arrow;In.theme?Dn.setAttribute("data-theme",In.theme):Dn.removeAttribute("data-theme"),typeof In.animation=="string"?Dn.setAttribute("data-animation",In.animation):Dn.removeAttribute("data-animation"),In.inertia?Dn.setAttribute("data-inertia",""):Dn.removeAttribute("data-inertia"),Dn.style.maxWidth=typeof In.maxWidth=="number"?In.maxWidth+"px":In.maxWidth,In.role?Dn.setAttribute("role",In.role):Dn.removeAttribute("role"),(Ln.content!==In.content||Ln.allowHTML!==In.allowHTML)&&setContent(Un,_n.props),In.arrow?Hn?Ln.arrow!==In.arrow&&(Dn.removeChild(Hn),Dn.appendChild(createArrowElement(In.arrow))):Dn.appendChild(createArrowElement(In.arrow)):Hn&&Dn.removeChild(Hn)}return{popper:Cn,onUpdate:Bn}}render.$$tippy=!0;var idCounter=1,mouseMoveListeners=[],mountedInstances=[];function createTippy(_n,Cn){var $n=evaluateProps(_n,Object.assign({},defaultProps,getExtendedPassedProps(removeUndefinedProps(Cn)))),Nn,Bn,Ln,In=!1,Pn=!1,Dn=!1,Un=!1,Hn,Xn,Gn,ei=[],nr=debounce(wi,$n.interactiveDebounce),ni,ai=idCounter++,si=null,gi=unique($n.plugins),Si={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},ri={id:ai,reference:_n,popper:div(),popperInstance:si,props:$n,state:Si,plugins:gi,clearDelayTimeouts:Zo,setProps:da,setContent:fa,show:Ca,hide:wa,hideWithInteractivity:Na,enable:Yo,disable:Li,unmount:Sa,destroy:xa};if(!$n.render)return ri;var Ei=$n.render(ri),$i=Ei.popper,zn=Ei.onUpdate;$i.setAttribute("data-tippy-root",""),$i.id="tippy-"+ri.id,ri.popper=$i,_n._tippy=ri,$i._tippy=ri;var li=gi.map(function(xi){return xi.fn(ri)}),oi=_n.hasAttribute("aria-expanded");return ha(),aa(),Ci(),Ri("onCreate",[ri]),$n.showOnCreate&&Gi(),$i.addEventListener("mouseenter",function(){ri.props.interactive&&ri.state.isVisible&&ri.clearDelayTimeouts()}),$i.addEventListener("mouseleave",function(){ri.props.interactive&&ri.props.trigger.indexOf("mouseenter")>=0&&Fi().addEventListener("mousemove",nr)}),ri;function ui(){var xi=ri.props.touch;return Array.isArray(xi)?xi:[xi,0]}function mi(){return ui()[0]==="hold"}function _i(){var xi;return!!((xi=ri.props.render)!=null&&xi.$$tippy)}function yi(){return ni||_n}function Fi(){var xi=yi().parentNode;return xi?getOwnerDocument(xi):document}function ta(){return getChildren($i)}function qo(xi){return ri.state.isMounted&&!ri.state.isVisible||currentInput.isTouch||Hn&&Hn.type==="focus"?0:getValueAtIndexOrReturn(ri.props.delay,xi?0:1,defaultProps.delay)}function Ci(xi){xi===void 0&&(xi=!1),$i.style.pointerEvents=ri.props.interactive&&!xi?"":"none",$i.style.zIndex=""+ri.props.zIndex}function Ri(xi,Xi,ea){if(ea===void 0&&(ea=!0),li.forEach(function(ya){ya[xi]&&ya[xi].apply(ya,Xi)}),ea){var ga;(ga=ri.props)[xi].apply(ga,Xi)}}function Hi(){var xi=ri.props.aria;if(xi.content){var Xi="aria-"+xi.content,ea=$i.id,ga=normalizeToArray(ri.props.triggerTarget||_n);ga.forEach(function(ya){var Oa=ya.getAttribute(Xi);if(ri.state.isVisible)ya.setAttribute(Xi,Oa?Oa+" "+ea:ea);else{var Da=Oa&&Oa.replace(ea,"").trim();Da?ya.setAttribute(Xi,Da):ya.removeAttribute(Xi)}})}}function aa(){if(!(oi||!ri.props.aria.expanded)){var xi=normalizeToArray(ri.props.triggerTarget||_n);xi.forEach(function(Xi){ri.props.interactive?Xi.setAttribute("aria-expanded",ri.state.isVisible&&Xi===yi()?"true":"false"):Xi.removeAttribute("aria-expanded")})}}function sa(){Fi().removeEventListener("mousemove",nr),mouseMoveListeners=mouseMoveListeners.filter(function(xi){return xi!==nr})}function Pi(xi){if(!(currentInput.isTouch&&(Dn||xi.type==="mousedown"))){var Xi=xi.composedPath&&xi.composedPath()[0]||xi.target;if(!(ri.props.interactive&&actualContains($i,Xi))){if(normalizeToArray(ri.props.triggerTarget||_n).some(function(ea){return actualContains(ea,Xi)})){if(currentInput.isTouch||ri.state.isVisible&&ri.props.trigger.indexOf("click")>=0)return}else Ri("onClickOutside",[ri,xi]);ri.props.hideOnClick===!0&&(ri.clearDelayTimeouts(),ri.hide(),Pn=!0,setTimeout(function(){Pn=!1}),ri.state.isMounted||Zi())}}}function Ki(){Dn=!0}function Yi(){Dn=!1}function Ji(){var xi=Fi();xi.addEventListener("mousedown",Pi,!0),xi.addEventListener("touchend",Pi,TOUCH_OPTIONS),xi.addEventListener("touchstart",Yi,TOUCH_OPTIONS),xi.addEventListener("touchmove",Ki,TOUCH_OPTIONS)}function Zi(){var xi=Fi();xi.removeEventListener("mousedown",Pi,!0),xi.removeEventListener("touchend",Pi,TOUCH_OPTIONS),xi.removeEventListener("touchstart",Yi,TOUCH_OPTIONS),xi.removeEventListener("touchmove",Ki,TOUCH_OPTIONS)}function Qo(xi,Xi){Go(xi,function(){!ri.state.isVisible&&$i.parentNode&&$i.parentNode.contains($i)&&Xi()})}function la(xi,Xi){Go(xi,Xi)}function Go(xi,Xi){var ea=ta().box;function ga(ya){ya.target===ea&&(updateTransitionEndListener(ea,"remove",ga),Xi())}if(xi===0)return Xi();updateTransitionEndListener(ea,"remove",Xn),updateTransitionEndListener(ea,"add",ga),Xn=ga}function ra(xi,Xi,ea){ea===void 0&&(ea=!1);var ga=normalizeToArray(ri.props.triggerTarget||_n);ga.forEach(function(ya){ya.addEventListener(xi,Xi,ea),ei.push({node:ya,eventType:xi,handler:Xi,options:ea})})}function ha(){mi()&&(ra("touchstart",hi,{passive:!0}),ra("touchend",Ii,{passive:!0})),splitBySpaces(ri.props.trigger).forEach(function(xi){if(xi!=="manual")switch(ra(xi,hi),xi){case"mouseenter":ra("mouseleave",Ii);break;case"focus":ra(isIE11?"focusout":"blur",Ni);break;case"focusin":ra("focusout",Ni);break}})}function di(){ei.forEach(function(xi){var Xi=xi.node,ea=xi.eventType,ga=xi.handler,ya=xi.options;Xi.removeEventListener(ea,ga,ya)}),ei=[]}function hi(xi){var Xi,ea=!1;if(!(!ri.state.isEnabled||Bi(xi)||Pn)){var ga=((Xi=Hn)==null?void 0:Xi.type)==="focus";Hn=xi,ni=xi.currentTarget,aa(),!ri.state.isVisible&&isMouseEvent(xi)&&mouseMoveListeners.forEach(function(ya){return ya(xi)}),xi.type==="click"&&(ri.props.trigger.indexOf("mouseenter")<0||In)&&ri.props.hideOnClick!==!1&&ri.state.isVisible?ea=!0:Gi(xi),xi.type==="click"&&(In=!ea),ea&&!ga&&zi(xi)}}function wi(xi){var Xi=xi.target,ea=yi().contains(Xi)||$i.contains(Xi);if(!(xi.type==="mousemove"&&ea)){var ga=Vi().concat($i).map(function(ya){var Oa,Da=ya._tippy,Fa=(Oa=Da.popperInstance)==null?void 0:Oa.state;return Fa?{popperRect:ya.getBoundingClientRect(),popperState:Fa,props:$n}:null}).filter(Boolean);isCursorOutsideInteractiveBorder(ga,xi)&&(sa(),zi(xi))}}function Ii(xi){var Xi=Bi(xi)||ri.props.trigger.indexOf("click")>=0&&In;if(!Xi){if(ri.props.interactive){ri.hideWithInteractivity(xi);return}zi(xi)}}function Ni(xi){ri.props.trigger.indexOf("focusin")<0&&xi.target!==yi()||ri.props.interactive&&xi.relatedTarget&&$i.contains(xi.relatedTarget)||zi(xi)}function Bi(xi){return currentInput.isTouch?mi()!==xi.type.indexOf("touch")>=0:!1}function Ui(){ji();var xi=ri.props,Xi=xi.popperOptions,ea=xi.placement,ga=xi.offset,ya=xi.getReferenceClientRect,Oa=xi.moveTransition,Da=_i()?getChildren($i).arrow:null,Fa=ya?{getBoundingClientRect:ya,contextElement:ya.contextElement||yi()}:_n,Za={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(La){var $a=La.state;if(_i()){var gs=ta(),ms=gs.box;["placement","reference-hidden","escaped"].forEach(function(rs){rs==="placement"?ms.setAttribute("data-placement",$a.placement):$a.attributes.popper["data-popper-"+rs]?ms.setAttribute("data-"+rs,""):ms.removeAttribute("data-"+rs)}),$a.attributes.popper={}}}},Ka=[{name:"offset",options:{offset:ga}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!Oa}},Za];_i()&&Da&&Ka.push({name:"arrow",options:{element:Da,padding:3}}),Ka.push.apply(Ka,(Xi==null?void 0:Xi.modifiers)||[]),ri.popperInstance=createPopper(Fa,$i,Object.assign({},Xi,{placement:ea,onFirstUpdate:Gn,modifiers:Ka}))}function ji(){ri.popperInstance&&(ri.popperInstance.destroy(),ri.popperInstance=null)}function Wi(){var xi=ri.props.appendTo,Xi,ea=yi();ri.props.interactive&&xi===TIPPY_DEFAULT_APPEND_TO||xi==="parent"?Xi=ea.parentNode:Xi=invokeWithArgsOrReturn(xi,[ea]),Xi.contains($i)||Xi.appendChild($i),ri.state.isMounted=!0,Ui()}function Vi(){return arrayFrom($i.querySelectorAll("[data-tippy-root]"))}function Gi(xi){ri.clearDelayTimeouts(),xi&&Ri("onTrigger",[ri,xi]),Ji();var Xi=qo(!0),ea=ui(),ga=ea[0],ya=ea[1];currentInput.isTouch&&ga==="hold"&&ya&&(Xi=ya),Xi?Nn=setTimeout(function(){ri.show()},Xi):ri.show()}function zi(xi){if(ri.clearDelayTimeouts(),Ri("onUntrigger",[ri,xi]),!ri.state.isVisible){Zi();return}if(!(ri.props.trigger.indexOf("mouseenter")>=0&&ri.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(xi.type)>=0&&In)){var Xi=qo(!1);Xi?Bn=setTimeout(function(){ri.state.isVisible&&ri.hide()},Xi):Ln=requestAnimationFrame(function(){ri.hide()})}}function Yo(){ri.state.isEnabled=!0}function Li(){ri.hide(),ri.state.isEnabled=!1}function Zo(){clearTimeout(Nn),clearTimeout(Bn),cancelAnimationFrame(Ln)}function da(xi){if(!ri.state.isDestroyed){Ri("onBeforeUpdate",[ri,xi]),di();var Xi=ri.props,ea=evaluateProps(_n,Object.assign({},Xi,removeUndefinedProps(xi),{ignoreAttributes:!0}));ri.props=ea,ha(),Xi.interactiveDebounce!==ea.interactiveDebounce&&(sa(),nr=debounce(wi,ea.interactiveDebounce)),Xi.triggerTarget&&!ea.triggerTarget?normalizeToArray(Xi.triggerTarget).forEach(function(ga){ga.removeAttribute("aria-expanded")}):ea.triggerTarget&&_n.removeAttribute("aria-expanded"),aa(),Ci(),zn&&zn(Xi,ea),ri.popperInstance&&(Ui(),Vi().forEach(function(ga){requestAnimationFrame(ga._tippy.popperInstance.forceUpdate)})),Ri("onAfterUpdate",[ri,xi])}}function fa(xi){ri.setProps({content:xi})}function Ca(){var xi=ri.state.isVisible,Xi=ri.state.isDestroyed,ea=!ri.state.isEnabled,ga=currentInput.isTouch&&!ri.props.touch,ya=getValueAtIndexOrReturn(ri.props.duration,0,defaultProps.duration);if(!(xi||Xi||ea||ga)&&!yi().hasAttribute("disabled")&&(Ri("onShow",[ri],!1),ri.props.onShow(ri)!==!1)){if(ri.state.isVisible=!0,_i()&&($i.style.visibility="visible"),Ci(),Ji(),ri.state.isMounted||($i.style.transition="none"),_i()){var Oa=ta(),Da=Oa.box,Fa=Oa.content;setTransitionDuration([Da,Fa],0)}Gn=function(){var Ka;if(!(!ri.state.isVisible||Un)){if(Un=!0,$i.offsetHeight,$i.style.transition=ri.props.moveTransition,_i()&&ri.props.animation){var ls=ta(),La=ls.box,$a=ls.content;setTransitionDuration([La,$a],ya),setVisibilityState([La,$a],"visible")}Hi(),aa(),pushIfUnique(mountedInstances,ri),(Ka=ri.popperInstance)==null||Ka.forceUpdate(),Ri("onMount",[ri]),ri.props.animation&&_i()&&la(ya,function(){ri.state.isShown=!0,Ri("onShown",[ri])})}},Wi()}}function wa(){var xi=!ri.state.isVisible,Xi=ri.state.isDestroyed,ea=!ri.state.isEnabled,ga=getValueAtIndexOrReturn(ri.props.duration,1,defaultProps.duration);if(!(xi||Xi||ea)&&(Ri("onHide",[ri],!1),ri.props.onHide(ri)!==!1)){if(ri.state.isVisible=!1,ri.state.isShown=!1,Un=!1,In=!1,_i()&&($i.style.visibility="hidden"),sa(),Zi(),Ci(!0),_i()){var ya=ta(),Oa=ya.box,Da=ya.content;ri.props.animation&&(setTransitionDuration([Oa,Da],ga),setVisibilityState([Oa,Da],"hidden"))}Hi(),aa(),ri.props.animation?_i()&&Qo(ga,ri.unmount):ri.unmount()}}function Na(xi){Fi().addEventListener("mousemove",nr),pushIfUnique(mouseMoveListeners,nr),nr(xi)}function Sa(){ri.state.isVisible&&ri.hide(),ri.state.isMounted&&(ji(),Vi().forEach(function(xi){xi._tippy.unmount()}),$i.parentNode&&$i.parentNode.removeChild($i),mountedInstances=mountedInstances.filter(function(xi){return xi!==ri}),ri.state.isMounted=!1,Ri("onHidden",[ri]))}function xa(){ri.state.isDestroyed||(ri.clearDelayTimeouts(),ri.unmount(),di(),delete _n._tippy,ri.state.isDestroyed=!0,Ri("onDestroy",[ri]))}}function tippy(_n,Cn){Cn===void 0&&(Cn={});var $n=defaultProps.plugins.concat(Cn.plugins||[]);bindGlobalEventListeners();var Nn=Object.assign({},Cn,{plugins:$n}),Bn=getArrayOfElements(_n),Ln=Bn.reduce(function(In,Pn){var Dn=Pn&&createTippy(Pn,Nn);return Dn&&In.push(Dn),In},[]);return isElement(_n)?Ln[0]:Ln}tippy.defaultProps=defaultProps,tippy.setDefaultProps=setDefaultProps,tippy.currentInput=currentInput,Object.assign({},applyStyles$1,{effect:function _n(Cn){var $n=Cn.state,Nn={popper:{position:$n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign($n.elements.popper.style,Nn.popper),$n.styles=Nn,$n.elements.arrow&&Object.assign($n.elements.arrow.style,Nn.arrow)}}),tippy.setDefaultProps({render});const{toClipboard}=VueClipboard();onUiLoaded(()=>{const _n=document.createElement("div");_n.id="physton-prompt-all-in-one",common$1.gradioApp().appendChild(_n);const Cn=createApp(App);Cn.config.globalProperties.$appMode=typeof APP_MODE<"u"&&APP_MODE,Cn.config.globalProperties.$toastr=toastr,Cn.config.globalProperties.$copyText=toClipboard,Cn.config.globalProperties.$tippyList=[],Cn.mixin(CommonMixin),Cn.directive("animate",{mounted($n,Nn){$n.classList.add("animate__animated",`animate__${Nn.value}`,"animate__faster")},updated($n,Nn){$n.classList.remove(`animate__${Nn.oldValue}`),$n.classList.add(`animate__${Nn.value}`)}}),Cn.directive("tooltip",{mounted($n,Nn){$n.setAttribute("data-tippy-content",Nn.value);let Bn=$n.getAttribute("unaffected");Bn=Bn===null?!1:Bn==="true";const Ln=tippy($n,{placement:"bottom",theme:"light",allowHTML:!0,onCreate(In,Pn){if(!Nn.value||Bn)return;In.enable(),localStorage.getItem("phystonPromptEnableTooltip")==="true"||In.disable()}});$n.$tippyInstance=Ln,Bn||Cn.config.globalProperties.$tippyList.push(Ln)},updated($n,Nn){Nn.value?($n.setAttribute("data-tippy-content",Nn.value),$n.$tippyInstance.setContent(Nn.value)):$n.$tippyInstance.disable()}}),Cn.mount(_n)})});
|
||
//# sourceMappingURL=main.entry.js.map
|